MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

FunctionTestPutGetByteExact
(t *testing.T)
engine/ccr/store_test.go:13
FunctionTestPutGetMetadata
(t *testing.T)
engine/ccr/store_test.go:192
FunctionTestPutObjectRejectsImmutableIDCollision
(t *testing.T)
engine/ccr/store_test.go:91
FunctionTestPutObjectReturnsStorageFullInsteadOfMintingHandle
(t *testing.T)
engine/ccr/store_full_test.go:15
FunctionTestQualityRunnerErrorReturnsError
(t *testing.T)
engine/evals/harness_test.go:325
FunctionTestQualityStageFailsClosedWithoutQualityGraders
(t *testing.T)
engine/evals/harness_test.go:299
FunctionTestQueryCredentialsDoNotOverrideResolvedPrincipal
(t *testing.T)
proxy/providers/gemini/gemini_test.go:13
FunctionTestQueryFilteredRetrieveReturnsRawRecords
TestQueryFilteredRetrieveReturnsRawRecords covers the query path the storming agents actually used — narrowed views must still be raw records, never p
mcp/retrieve_integration_test.go:215
FunctionTestQueryRetrieveNarrowsOwnedOriginalWithoutCCR
A query retrieve ranks a middleware-owned original directly: no CCR, not even a scratch one, is involved.
proxy/internal/middleware/identity_test.go:174
FunctionTestQueryViewFallsBackToTheWholeOriginal
TestQueryViewFallsBackToTheWholeOriginal is the safety valve: JSON whose records cannot be identified is never line-split, because a line of JSON is a
engine/retrieve_query_test.go:265
FunctionTestQueryViewKeepsCSVRowsWhole
TestQueryViewKeepsCSVRowsWhole covers the tabular path: whole records sliced out of the original bytes, and the header exactly once so the columns can
engine/retrieve_query_test.go:222
FunctionTestQueryViewKeepsMixedMessageContentShapesWhole
Mixed provider-style content shapes stay as whole message records. Array-form content and its sibling facts may not disappear through a string-only pa
engine/retrieve_query_test.go:142
FunctionTestQueryViewKeepsNDJSONLinesWhole
TestQueryViewKeepsNDJSONLinesWhole covers the one-JSON-object-per-line shape: event per line. Each line is already a whole unit, so the fix there is t
engine/retrieve_query_test.go:287
FunctionTestQueryViewKeepsTextBearingJSONRecordsWhole
A field named text/content is ordinary tool data, not permission to detach its value from the record that identifies it.
engine/retrieve_query_test.go:102
FunctionTestQueryViewKeepsToolMessageContentWithItsID
A top-level messages array is not proof that JSON came from a provider. Tool output can use the same shape, so message ids must remain attached to con
engine/retrieve_query_test.go:125
FunctionTestQueryViewMarksEveryGap
TestQueryViewMarksEveryGap is the other half: whole units are not enough if two of them touch when they did not touch in the original.
engine/retrieve_query_test.go:191
FunctionTestQueryViewMarksOmittedJSONEnvelope
Even when every record matches, extracting them drops the JSON envelope and scalar metadata. Leading/trailing markers make that omission explicit.
engine/retrieve_query_test.go:177
FunctionTestQueryViewMarksSeparateJSONArraysAsNonAdjacent
Records from different JSON arrays are not neighbours even when each record is the only hit in its array. A visible gap must separate them.
engine/retrieve_query_test.go:158
FunctionTestQueryViewNeverOrphansAJSONField
TestQueryViewNeverOrphansAJSONField covers wrong-record attribution when a answer. A match on a field line must yield that field's WHOLE record, so no
engine/retrieve_query_test.go:53
FunctionTestQueuedSessionEventReturnsBeforeStoreBusyTimeout
TestQueuedSessionEventReturnsBeforeStoreBusyTimeout covers the pileup: the event after a blocked one must fail open at its own deadline instead of que
proxy/internal/nativeruntime/hook_budget_test.go:95
FunctionTestRateLimit429IsReturnedNotReplayed
TestRateLimit429IsReturnedNotReplayed: a 429 that says it is a rate limit goes back to the client. Replaying it raw cannot beat the limit, and a raw r
proxy/internal/gateway/cache_prefix_invariant_test.go:1444
FunctionTestRateLimitOnAHealRetryIsNotReplayed
A heal retry counts as the route stage changing the bytes: its 429 is passed on, not replayed as the original.
proxy/internal/gateway/route_effort_test.go:1785
FunctionTestRateLimitOnARoutedRequestIsNotRetried
A routed request's 429 on the asked model is passed on: no original-bytes retry, no reject. On a moved model it falls back to the asked one, and a 429
proxy/internal/gateway/route_effort_test.go:1074
FunctionTestRateLimitWithMarksWhileOffIsNotRetried
A 429 on a request that carried the session's marks (routing off) is passed on: replaying the original without them cannot help.
proxy/internal/gateway/route_effort_test.go:1533
FunctionTestRateLimitedRetryDoesNotDoubleTheAgentsRetries
A 429 without Retry-After on the routed model and on the retry: the decision is rejected, so the agent's own retries send one request each.
proxy/internal/gateway/route_test.go:855
FunctionTestReLoginSwapsTheKeychainSecretWithoutAPause
A real re-login swaps the secret; the new login asks with its own token and no 401 pause from the old one survives.
proxy/internal/cloudlink/link_test.go:1186
FunctionTestReadBoundedInput
(t *testing.T)
shrink/cmd/caveman-shrink/main_test.go:50
FunctionTestReadNativeHookPayloadReturnsBeforeEOF
(t *testing.T)
proxy/cmd/caveman-proxy/main_test.go:43
FunctionTestReadRejectsEveryInvalidContractField
(t *testing.T)
proxy/internal/runstate/runstate_test.go:139
FunctionTestReadSkillFrontmatterDescriptionForms
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:288
FunctionTestReaderSplitsLikeEncodingJSON
The reader agrees with encoding/json on what is a value and where it ends.
proxy/internal/translate/jsonfast_test.go:25
FunctionTestReadinessProbesTheStoreAtMostOncePerSecond
S13: readiness is unauthenticated, so a probe flood must not become a flood of write transactions.
proxy/internal/middleware/hardening_test.go:179
FunctionTestReadinessReflectsMiddlewareStore
A middleware store outage degrades readiness only where the middleware is all the listener serves; provider inference keeps its replicas in the Servic
proxy/internal/gateway/middleware_ops_test.go:77
FunctionTestReasoningEffort_ByteSafeOnlyFieldAdded
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:79
FunctionTestReasoningEffort_DisabledIsPassthrough
TestReasoningEffort_DisabledIsPassthrough checks the adapter layer: with the optimizer disabled the body is untouched, including when a direct caller
proxy/providers/openai/reasoning_effort_test.go:53
FunctionTestReasoningEffort_LowersNotRaises
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:43
FunctionTestReasoningEffort_PreservesCallerSettingsPerEndpoint
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:144
FunctionTestReasoningEffort_RequiresBothFlagAndEvalGate
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:17
FunctionTestReasoningEffort_RespectsCallerEffort
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:61
FunctionTestReasoningEffort_ResponsesPreservesExistingReasoningFields
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:129
FunctionTestReasoningEffort_ResponsesRouteAliasUsesNestedEffort
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:117
FunctionTestReasoningEffort_ResponsesUsesNestedEffort
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:98
FunctionTestReasoningEffort_SkipsNonReasoningModel
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:69
FunctionTestReasoningEffort_SkipsUnsupportedProModelsOnBothEndpoints
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:238
FunctionTestReasoningEffort_UnknownEndpointOrShapePassesThrough
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:181
FunctionTestRecallByteSafeRoundTrip
(t *testing.T)
mem/store_test.go:143
FunctionTestRecallFailsTowardNothing
(t *testing.T)
mem/store_test.go:114
FunctionTestRecallOversizedSingleHitReturnsHeadAndHandle
TestRecallOversizedSingleHitReturnsHeadAndHandle reproduces the 440k-token bug: a single large memory that compression does not shrink. Recall must re
mem/recall_budget_test.go:88
FunctionTestRecallRejectsUnknownNegativeTokenBudget
(t *testing.T)
mem/recall_budget_test.go:77
FunctionTestRecallRespectsTokenBudget
TestRecallRespectsTokenBudget stores several matching memories whose combined injected tokens exceed a small budget and asserts Recall packs them gree
mem/recall_budget_test.go:14
FunctionTestRecallReturnsRelevantAboveThreshold
(t *testing.T)
mem/store_test.go:90
FunctionTestRecallThresholdGates
(t *testing.T)
mem/store_test.go:129
FunctionTestRecallToolExposesAndMapsTokenBudget
(t *testing.T)
mem/cmd/cavemem/main_test.go:153
FunctionTestRecallUnlimitedSentinelReturnsEveryRankedHit
(t *testing.T)
mem/recall_budget_test.go:47
FunctionTestReceiptAfterDeleteAnswersDeleted
§12: once deleted, a receipt answers "deleted" and stores nothing.
proxy/internal/middleware/hardening_test.go:722
FunctionTestRecentRequests
(t *testing.T)
proxy/internal/store/store_test.go:87
FunctionTestReclaimLookupsUseIndexes
Each reclaim lookup must use an index: on a 500 MB store a full scan per candidate walks every large object's overflow pages.
engine/ccr/store_reclaim_test.go:370
FunctionTestReclaimNeverWritesToADamagedStore
(t *testing.T)
engine/ccr/store_integrity_test.go:146
FunctionTestReconcileAcceptsProviderHeaderVariants
TestReconcileAcceptsProviderHeaderVariants covers the shapes the two major exports actually ship, including a BOM and thousands separators.
proxy/internal/store/learn_reconcile_test.go:79
FunctionTestReconcileFailsClosedOnUnknownSchema
TestReconcileFailsClosedOnUnknownSchema is the safety property. A provider changing its export must produce an error naming the problem, never a confi
proxy/internal/store/learn_reconcile_test.go:62
FunctionTestReconcileFindsTheUnattributedShare
TestReconcileFindsTheUnattributedShare is the value of the whole feature: the gap between the bill and what transcripts explain is where untracked spe
proxy/internal/store/learn_reconcile_test.go:22
FunctionTestReconcileFlagsMismatchedWindows
TestReconcileFlagsMismatchedWindows catches the most likely user error before they read a nonsense coverage figure.
proxy/internal/store/learn_reconcile_test.go:120
FunctionTestReconcileNeverBorrowsAnotherModelsCoverage
TestReconcileNeverBorrowsAnotherModelsCoverage keeps model matching exact (plus the dated alias), so coverage cannot be manufactured.
proxy/internal/store/learn_reconcile_test.go:100
FunctionTestRecordAndSummary_InferredBasis
(t *testing.T)
proxy/internal/store/store_test.go:11
FunctionTestRecordAppliedFixPrefersOlderReportSnapshotAndRecoversMissingLiveSink
(t *testing.T)
proxy/internal/store/learn_outcomes_test.go:72
FunctionTestRecordBatchFallbackStoresCacheComponentsOutsideRequestsRow
TestRecordBatchFallbackStoresCacheComponentsOutsideRequestsRow: one row that cannot be inserted fails the batch; every other row then goes through Rec
proxy/internal/store/cache_components_test.go:175
FunctionTestRecordBatchStoresCacheComponentsOutsideRequestsRow
(t *testing.T)
proxy/internal/store/cache_components_test.go:162
FunctionTestRecordBatchStoresWhatRecordStores
TestRecordBatchStoresWhatRecordStores: one transaction for several rows stores, column for column, what one Record per row stores, the persistence bou
proxy/internal/store/record_batch_test.go:104
FunctionTestRecordForcesInferredAndSanitizesInvalidAccounting
(t *testing.T)
proxy/internal/store/store_test.go:65
FunctionTestRecordKeepsThePoolAttempt
A pool attempt is on its row: the entry, why it fell back, and the host's own answer id to look the call up there.
proxy/internal/store/store_test.go:133
FunctionTestRecordModeAndRoutingOffAreNeverKeyed
Record mode and routing off (or signed out) stay byte for byte: never a key. A stateful chain, answered off for a reason, keeps it (above).
proxy/internal/gateway/route_effort_responses_test.go:339
FunctionTestRecordModeCollectsMetadataWithoutCoreStateReuseOrExactCCR
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1174
FunctionTestRecordModeGetsNoCacheMechanics
Record mode gets none of the cache mechanics: no pin, no prompt_cache_key, no family affinity (above), no fan-out wait.
proxy/internal/gateway/route_cache_test.go:376
FunctionTestRecordModeIsPassThrough
(t *testing.T)
engine/engine_test.go:50
FunctionTestRecordModePassThrough
TestRecordModePassThrough proves the standalone proxy is byte-safe in record mode: the request reaches the upstream unmodified, the response is return
proxy/internal/gateway/server_test.go:119
FunctionTestRecordModeStillNeverTransformsAListing
record mode never transforms, gutter or no gutter.
engine/listing_test.go:138
FunctionTestRecordStoresCacheComponentsOutsideRequestsRow
(t *testing.T)
proxy/internal/store/cache_components_test.go:154
FunctionTestRecorderBatchesFinishedRows
TestRecorderBatchesFinishedRows: finished rows queued together go out in one write, in order, and a row still being counted does not hold up the finis
proxy/internal/gateway/recorder_test.go:258
FunctionTestRecorderSurvivesPanics
TestRecorderSurvivesPanics: a panic while finishing or writing rows drops those rows, as a panicking handler did, and neither stops the proxy nor the
proxy/internal/gateway/recorder_test.go:232
FunctionTestRecoverUnknownHandleFails
(t *testing.T)
shrink/shrink_test.go:227
FunctionTestRecoverUnknownHandleFailsClosed
(t *testing.T)
browse/session_test.go:372
FunctionTestRecoveryFunctionResponseIsNotRewritable
A functionResponse from caveman_retrieve carries the exact bytes an earlier elision removed. Rewriting it hands the agent back its own elision.
proxy/providers/gemini/recovery_exempt_test.go:39
FunctionTestRecoveryResultIsNeverRecompressed
TestRecoveryResultIsNeverRecompressed is the citation-check regression. Measured on 2026-08-06: the agent read a file, saw it elided, called its own
proxy/internal/gateway/recovery_exempt_test.go:38
FunctionTestRecoveryStoreFreshHomeProcess
Exercise the shipped entrypoint in fresh homes: an installed binary may be launched directly without the npm downloader having created .caveman first.
mcp/cmd/caveman-mcp/recovery_process_test.go:19
FunctionTestRecoveryStoreStatusOnAHealthyAndAMissingStore
(t *testing.T)
proxy/cmd/caveman-proxy/recovery_store_test.go:81
FunctionTestRecurringMinerIgnoresHostAndHookInjectedContext
#1459: the repaste miner mined every text payload in a transcript turn, so context the HOST and caveman's own hook re-inject each session — Claude Cod
proxy/internal/store/recurring_test.go:24
FunctionTestRecurringMinerKeepsHumanBlocksThatOnlyMentionInjectedText
A payload is injected or it is not; the guard must not spread across a turn. A user's own paste in the same turn as a system-reminder still counts, an
proxy/internal/store/recurring_test.go:69
FunctionTestRecurringPositionsAreRetroOnly
(t *testing.T)
proxy/internal/store/learn_retro_test.go:643
FunctionTestRefIntegrityGuardDetectsDrop
TestRefIntegrityGuardDetectsDrop checks that the $ref-integrity assertion catches: it must report a dropped definition as unresolvable and a present o
engine/compressors/toolschema_test.go:505
FunctionTestRefIntegrityGuardDoesNotCrossToolSchemaRoots
(t *testing.T)
engine/compressors/toolschema_test.go:522
FunctionTestRefIntegrityGuardRejectsNonCanonicalArrayIndex
(t *testing.T)
engine/compressors/toolschema_test.go:542
FunctionTestRefIntegrityGuardUsesNearestIDResourceRoot
(t *testing.T)
engine/compressors/toolschema_test.go:532
FunctionTestReferenceToReferenceResolvesThroughFallback
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:162
FunctionTestReflowAndDereflow
(t *testing.T)
engine/pixel/render_test.go:37
FunctionTestRefreshNeverResurrectsARemovedOrNewerLogin
A refresh that lands after the login was removed, or after a new sign-in, saves nothing.
proxy/internal/pool/pool_test.go:252
FunctionTestRefreshRetriesASaveThatMetTheLock
A refresh whose save meets a held lock tries once more, so a single-use refresh token is not lost to contention.
proxy/internal/pool/pool_test.go:387
FunctionTestRefusalHoldsForTheSessionsModelPair
A refusal drops the routed model from that scope's pool for rememberFor: with only the asked model left the ask still goes (Cloud decides its effort)
proxy/internal/cloudlink/link_test.go:1013
FunctionTestRefusalIsScopedToAgentAndEndpoint
Without a session id a refusal is scoped to the agent and endpoint: Codex on the ChatGPT plan (/responses) losing a model leaves an API-key client on
proxy/internal/cloudlink/link_test.go:1063
FunctionTestRefusalWordingVariantsHealAndLatch
A refusal saying "configuration updates" heals and latches like the item name does: one extra send, never one per request.
proxy/internal/gateway/route_effort_responses_test.go:318
FunctionTestRefuseGatewayProductionDefaultsDoesNotRequireControlPlaneSecrets
(t *testing.T)
shared/platform/env/env_test.go:123
← previousnext →9,901–10,000 of 12,391, ranked by callers