MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

FunctionTestRetrieveQueryDoesNotChangeAfterManyCalls
(t *testing.T)
mcp/engine_tools_retrieve_test.go:90
FunctionTestRetrieveQueryNarrowsToRelevantSections
TestRetrieveQueryNarrowsToRelevantSections checks query-targeted recovery path: empty query is byte-exact, a query returns only the BM25-relevant sect
engine/engine_test.go:296
FunctionTestRetrieveReportsCorruptRecoveryDistinctly
(t *testing.T)
mcp/engine_tools_retrieve_test.go:127
FunctionTestRetrieveReportsExpiredObjectDistinctly
(t *testing.T)
mcp/engine_tools_retrieve_test.go:152
FunctionTestRetrieveResolvesNativeRuntimeObjectPointers
TestRetrieveResolvesNativeRuntimeObjectPointers is the root-cause pin. The CCR store holds two id spaces. Compression mints blob handles (`ccr_…`); t
mcp/retrieve_integration_test.go:314
FunctionTestRetrieveReturnsRawRowsForInventoryCatalog
TestRetrieveReturnsRawRowsForInventoryCatalog is the inventory-mismatch shape: a JSON catalog whose records compress to a marker.
mcp/retrieve_integration_test.go:115
FunctionTestRetrieveReturnsRawRowsForStockCSV
TestRetrieveReturnsRawRowsForStockCSV is the tabular half of inventory-mismatch.
mcp/retrieve_integration_test.go:193
FunctionTestRetrieveReturnsRawRowsForWebhookEvents
TestRetrieveReturnsRawRowsForWebhookEvents is the webhook-delivery-gaps shape.
mcp/retrieve_integration_test.go:156
FunctionTestRetrieveReturnsValidEmptyTypedObject
(t *testing.T)
engine/engine_test.go:123
FunctionTestRetrieveRewritesPreserveLargeIntegerLiterals
TestRetrieveRewritesPreserveLargeIntegerLiterals pins the gateway siblings of the Bedrock cache-points defect (#1057). Both rewrites in the recovery l
proxy/internal/gateway/retrieve_tool_test.go:236
FunctionTestRetrieveRewritesRejectTrailingBytes
Same guard on the gateway side: switching from json.Unmarshal to a Decoder must not start accepting a document with trailing bytes and silently drop t
proxy/internal/gateway/retrieve_tool_test.go:293
FunctionTestRetrieveToolSchemaValid
(t *testing.T)
proxy/internal/gateway/retrieve_tool_test.go:214
FunctionTestRetrieveUnknownHandleFailsClosed
(t *testing.T)
mcp/server_test.go:287
FunctionTestRetroDiscoveryDeadlineReturnsMeasuredPartialResult
(t *testing.T)
proxy/internal/store/learn_retro_test.go:1006
FunctionTestRetroSessionPathsAreNewestFirst
(t *testing.T)
proxy/internal/store/learn_retro_test.go:1135
FunctionTestRetroStreamFamiliesShareOneResidencyCap
(t *testing.T)
proxy/internal/store/learn_retro_test.go:701
FunctionTestRetryOnBusyCapsTotalBackoff
(t *testing.T)
engine/ccr/retry_busy_test.go:11
FunctionTestRetryOnBusyRetriesAfterSQLiteTimeout
(t *testing.T)
engine/ccr/retry_busy_test.go:56
FunctionTestRetryOnBusyReturnsNonBusyErrorWithoutSleeping
(t *testing.T)
engine/ccr/retry_busy_test.go:39
FunctionTestReusedChoiceNeedsItsTransformInPolicy
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:443
FunctionTestReversibleClasses
(t *testing.T)
engine/safety/safety_test.go:49
FunctionTestRevisionTolerantAndTolerantReader
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:395
FunctionTestRevokedSessionStaysRevokedUnderANewScopeID
GO-3: a revoked session stays revoked when the same authority comes back under another adapter or serialization revision (a new scope id).
proxy/internal/middleware/hardening_test.go:225
FunctionTestRoleSlots
(t *testing.T)
engine/pixel/render_test.go:325
FunctionTestRootAcceptsOnlyCompleteObjects
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:10
FunctionTestRoundTripStreamTTFB
TestRoundTripStreamTTFB proves the streaming path tees usage from SSE without buffering the client copy: time-to-first-byte is a real positive value b
proxy/internal/gateway/server_test.go:222
FunctionTestRoundUSDBoundaries
(t *testing.T)
shared/platform/cost/cost_contract_test.go:47
FunctionTestRouteAskReportsTheSessionsLastRequest
Each answer is remembered as the session's last: the model the provider names, the effort in force, the usage and its age.
proxy/internal/gateway/route_effort_test.go:433
FunctionTestRouteEffortAndLastOnOpenAI
OpenAI chat and Responses: the effort goes into the request's own field and last reads the provider's usage object and the model it names.
proxy/internal/gateway/route_effort_test.go:455
FunctionTestRouteEffortFailsOpenByteIdentical
A session without marks: every failure leaves the request byte-identical, and so does a message answer without a session.
proxy/internal/gateway/route_effort_test.go:498
FunctionTestRouteLabelsMatchTheContract
Every label the gateway reads is one route-ask-v1 allows, at the same bound.
proxy/internal/gateway/route_effort_test.go:819
FunctionTestRouteRunReadsLabelsAndSessionKeys
(t *testing.T)
proxy/internal/gateway/route_effort_test.go:23
FunctionTestRouteSessionsUnderConcurrency
Requests of one session, its child and a side request at once share no mutable state outside the lock (run with -race).
proxy/internal/gateway/route_effort_test.go:744
FunctionTestRouteStageClientCancelBeforeTheAnswerBlamesNoModel
The user stopping before any answer (Esc while the request is in flight) is no failure of the routed model, on either path.
proxy/internal/gateway/route_test.go:498
FunctionTestRouteStageCompressedAndRoutedRefusalBlamesNoModel
Compressed and routed, refused: the original bytes getting through proves nothing about the model (compression changed the bytes too), so the ask move
proxy/internal/gateway/route_test.go:531
FunctionTestRouteStageFailsOpenToTheAskedModel
(t *testing.T)
proxy/internal/gateway/route_test.go:183
FunctionTestRouteStageFailuresOnTheRoutedModel
(t *testing.T)
proxy/internal/gateway/route_test.go:368
FunctionTestRouteStageKeepsTheDecisionWhenTheRetryFailsToo
A refusal the asked model's own bytes get too (an expired login, a prompt too long) was not the route stage's doing: the ask keeps its decision.
proxy/internal/gateway/route_test.go:679
FunctionTestRouteStageMovesTheModelAndRecordsBoth
(t *testing.T)
proxy/internal/gateway/route_test.go:164
FunctionTestRouteStageNeverAsksAboutANamedModel
A model the agent named itself is never asked about and goes as sent.
proxy/internal/gateway/route_test.go:577
FunctionTestRouteStageRejectedModelRetriesTheAskedOne
A provider that rejects the routed model gets the original request, on the model the agent asked for, through the existing original-bytes retry.
proxy/internal/gateway/route_test.go:207
FunctionTestRouteStageRoutesSubscriptionTurns
An Auto subscription (Pro/Max OAuth) turn asks like an API-key one, in record and compress mode alike, and the routed model goes upstream. Its row sta
proxy/internal/gateway/route_test.go:286
FunctionTestRouteStageRoutesSubscriptions
Auto on a subscription routes too: the routed model goes to the provider's own API on the subscription's own token, and a model the plan refuses repla
proxy/internal/gateway/route_test.go:245
FunctionTestRouteStageSkipsCustomOrigins
A custom upstream origin (a proxy, Azure, a local server) is never routed.
proxy/internal/gateway/route_test.go:315
FunctionTestRouteStageSkipsPassThrough
The request-wide opt-out never asks.
proxy/internal/gateway/route_test.go:230
FunctionTestRouteStageStreamEndsOnTheRoutedModel
(t *testing.T)
proxy/internal/gateway/route_test.go:480
FunctionTestRouteStageSubscriptionChangesOnlyTheModel
On the subscription path the routed request differs from the agent's only in the model, in every runtime mode.
proxy/internal/gateway/route_test.go:556
FunctionTestRoutedAnswerShowsTheAskedModel
When the request moved, the agent reads the model it asked for, in a JSON answer (top-level "model" only, Content-Length right) and in a stream; usage
proxy/internal/gateway/route_effort_test.go:929
FunctionTestRoutedEffortNeverOutlivesAnAgentDefault
When the agent sets no effort, a routed one never becomes the session's top-level, and without Cloud's effort the request goes as the agent sent it: n
proxy/internal/gateway/route_effort_test.go:1178
FunctionTestRoutedModelAtItsLimitGivesWayToTheAskedModel
A routed model at its rate limit (a 429 with Retry-After) or overloaded (529, any 5xx) is returned as is, never replayed, and the decision is rejected
proxy/internal/gateway/route_test.go:868
FunctionTestRoutedOpenAIAnswerShowsTheAskedModel
OpenAI chat and Responses JSON answers show the asked model too.
proxy/internal/gateway/route_effort_test.go:995
FunctionTestRoutedRequestsDropBrotli
A request the route stage may change but keeps on its asked model (a heal on a session that carries marks) does not offer br upstream: its answer is r
proxy/internal/gateway/route_effort_test.go:770
FunctionTestRoutingUpstreamsNeverPublishesURLCredentials
(t *testing.T)
proxy/internal/runstate/runstate_test.go:369
FunctionTestRowFieldsSkipsUnnamedAndEmptyCells
(t *testing.T)
engine/compressors/invariants_test.go:414
FunctionTestRunDelegatesThroughRecordedNodeWhenPathHasNone
GUI- and launchd-started hosts often run hooks with no node on PATH. The lifecycle adapter must still run, through the node recorded at setup, and thr
proxy/internal/nativehook/hook_unix_test.go:114
FunctionTestRunDirUsesNamedCorpusAndRejectsEscapes
(t *testing.T)
engine/evals/harness_test.go:13
FunctionTestRunInvalidRuntimeResponseFailsOpenAndRecordsBoundedFallback
(t *testing.T)
proxy/internal/nativehook/hook_unix_test.go:73
FunctionTestRunManifestReportsWordRatio
(t *testing.T)
engine/evals/harness_test.go:166
FunctionTestRunManifestWithQualityPassesEchoModel
(t *testing.T)
engine/evals/harness_test.go:272
FunctionTestRunPreToolUsesNativeBridgeAndIncludesFileCurrentness
(t *testing.T)
proxy/internal/nativehook/hook_unix_test.go:20
FunctionTestRunStatusRequiresThisListenerGeneration
(t *testing.T)
proxy/cmd/caveman-proxy/status_test.go:181
FunctionTestRunStatus_UnloadableConfigIsUnknownAndLogged
A config that does not load says nothing about the listener. Reporting the state of DefaultListen instead would answer for some other port, and doing
proxy/cmd/caveman-proxy/status_test.go:24
FunctionTestRunUntilSignalReturnsOnContextDoneWithoutWaitingForServe
TestRunUntilSignalReturnsOnContextDoneWithoutWaitingForServe pins issue #1016: srv.Serve(in, out) blocks reading in until EOF, so a bare call cannot b
browse/cmd/caveman-browse/main_test.go:119
FunctionTestRunUntilSignalReturnsServeError
TestRunUntilSignalReturnsServeError confirms the ordinary EOF path is unchanged: when in reaches EOF before ctx is done, runUntilSignal reports Serve'
browse/cmd/caveman-browse/main_test.go:142
FunctionTestRuntimeBuildsContractStoresExactOutputAndInformsOnRepeat
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:50
FunctionTestRuntimeFailsClosedOnUnknownProtocolOrEvent
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1104
FunctionTestRuntimeNeverSuggestsUnsafeOrUnprovenReuse
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1209
FunctionTestRuntimeTracksSessionsUntilSessionEnd
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1120
FunctionTestS4IsLossyAndRequiresCCR
(t *testing.T)
engine/safety/safety_test.go:24
FunctionTestSQLiteCorruptionMidOperationStopsWrites
(t *testing.T)
engine/ccr/store_integrity_test.go:122
FunctionTestSQLiteGenerationCapturesFileIdentityAtInspection
(t *testing.T)
engine/ccr/store_generation_test.go:494
FunctionTestSQLiteLockingConsumerProcess
(t *testing.T)
engine/ccr/store_locking_test.go:92
FunctionTestSQLiteRevokedUnpurgedLookupUsesTheIndex
The sweep and the backlog gauge look for unfinished deletes on every pass: an index range, never a scan of a grace period's worth of tombstones.
proxy/internal/store/middleware_test.go:850
FunctionTestSQLiteSidecarFilesArePrivate
S7: the WAL and shared-memory files hold the same plaintext originals as the database, so they get its 0600 mode, not the umask's.
proxy/internal/store/middleware_test.go:646
FunctionTestSSLModeIsTheOnePgxRuns
The mode is pgx's reading of the string, not a second parse of it: a quoted value that contains "sslmode=", a repeated key (pgx keeps the last) and PG
shared/platform/postgresconfig/postgresconfig_test.go:80
FunctionTestSafeTermRejectsGitHubAppInstallationToken
(t *testing.T)
proxy/internal/repointel/index_test.go:429
FunctionTestSafeTermRejectsGitHubOAuthAndAppTokens
(t *testing.T)
proxy/internal/repointel/index_test.go:441
FunctionTestSanitizeAndMapHeaders_AnthropicBearerSchemePreserved
TestSanitizeAndMapHeaders_AnthropicBearerSchemePreserved proves scheme preservation for Anthropic: a key that arrived as `Authorization: Bearer` (Clau
proxy/providers/adapter_contract_test.go:292
FunctionTestSanitizeAndMapHeaders_AzurePlaceholderBearerDefersToFallback
(t *testing.T)
proxy/providers/adapter_contract_test.go:236
FunctionTestSanitizeAndMapHeaders_AzurePreservesDeclaredAuthScheme
(t *testing.T)
proxy/providers/adapter_contract_test.go:213
FunctionTestSanitizeAndMapHeaders_BedrockAPIKeyUsesBearer
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:417
FunctionTestSanitizeAndMapHeaders_BuildsSigV4AndNeverLeaksSecret
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:309
FunctionTestSanitizeAndMapHeaders_FailsClosedWithoutCredentials
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:475
FunctionTestSanitizeAndMapHeaders_GeminiAPIKeyDropsQuotaProject
(t *testing.T)
proxy/providers/adapter_contract_test.go:353
FunctionTestSanitizeAndMapHeaders_GeminiBearerRequiresQuotaProject
(t *testing.T)
proxy/providers/adapter_contract_test.go:331
FunctionTestSanitizeAndMapHeaders_GeminiPlaceholderDefersToFallback
(t *testing.T)
proxy/providers/adapter_contract_test.go:370
FunctionTestSanitizeAndMapHeaders_IAMRejectsUnknownWirePayload
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:401
FunctionTestSanitizeAndMapHeaders_MantleAuthShapes
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:436
FunctionTestSanitizeAndMapHeaders_NoKeyLeakAndCorrectMapping
Header sanitization is the security-critical contract: the inbound client's Caveman key / authorization must NOT be forwarded upstream; only the expli
proxy/providers/adapter_contract_test.go:147
FunctionTestSanitizeAndMapHeaders_SetsBearerAndDropsInboundAuth
--- Header mapping: bearer pass-through + NO client-key leak -------------
proxy/providers/vertex/vertex_test.go:162
FunctionTestSanitizeAndMapHeaders_SignsBoundWirePayloadAndRuntimeMetadata
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:365
FunctionTestSanitizeAndMapHeaders_TracePropagationIsOptIn
(t *testing.T)
proxy/providers/adapter_contract_test.go:252
FunctionTestSanitizeCaptureIDRejectsPathSeparators
A request id reaches the filename as a string; a separator in it would be a traversal. Filter rather than trust.
proxy/internal/gateway/capture_test.go:306
FunctionTestSaveDirectStateIsPrivateAndComplete
(t *testing.T)
browse/cmd/caveman-browse/main_test.go:39
FunctionTestSaveDirectStateKeepsZeroTargetSessionCloseable
(t *testing.T)
browse/cmd/caveman-browse/main_test.go:74
FunctionTestSaveWritesTheIndexAndAFileSecret
(t *testing.T)
proxy/internal/pool/pool_test.go:206
FunctionTestSavingsNeverSumAcrossRungs
TestSavingsNeverSumAcrossRungs is the anti-laundering guard. A deterministic re-measure and a before/after guess must never collapse into one headline
proxy/internal/store/learn_attribution_test.go:97
FunctionTestScanConfigCountsAncestorClaudeFiles
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:313
FunctionTestScanDeadlinesPollBeforeEveryLineParse
(t *testing.T)
proxy/internal/store/learn_retro_test.go:1060
FunctionTestScanJSONStringMatchesByteLoop
TestScanJSONStringMatchesByteLoop: the IndexByte scan ends every string where the byte loop did, escapes and unterminated strings included.
proxy/providers/anthropic/scan_string_test.go:37
← previousnext →10,601–10,700 of 12,853, ranked by callers