MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

FunctionTestFreshStoreSocketAnswersDecisionWellWithinBudget
TestFreshStoreSocketAnswersDecisionWellWithinBudget is the healthy-home half of #1279's differential: a fresh store answers with a real decision far b
proxy/internal/nativeruntime/hook_budget_test.go:187
FunctionTestFrozenPrefixBytesTracksExactFrozenWireAndIgnoresLiveTail
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:402
FunctionTestFrozenPrefixComponentsIgnoreCacheControlPlacement
TestFrozenPrefixComponentsIgnoreCacheControlPlacement pins #1094: Claude Code moves its cache_control marker forward every turn, so the message frozen
proxy/providers/anthropic/content_compress_test.go:446
FunctionTestFullCycleCompressRetrieveStats
(t *testing.T)
mcp/server_test.go:432
FunctionTestFullProfileWarmsRepositoryMapAndInjectsTypedTaskEvidence
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:357
FunctionTestFullStoreConsolidatesDuplicateRepositoryMaps
Before #1023 every session stored its own full copy of an unchanged map. A store full of those copies now consolidates them on the first refused write
engine/ccr/store_reclaim_test.go:237
FunctionTestFullStoreExpiresEndedSessionsAndAcceptsNewRecovery
(t *testing.T)
engine/ccr/store_reclaim_test.go:67
FunctionTestFullStoreWithNothingExpirableStaysRefusedAndKeepsEverything
(t *testing.T)
engine/ccr/store_reclaim_test.go:169
FunctionTestGDScriptBodyEndsAtDedentNotAtBlankLine
(t *testing.T)
engine/compressors/code_gdscript_test.go:166
FunctionTestGDScriptElidesBodiesKeepsDeclarations
(t *testing.T)
engine/compressors/code_gdscript_test.go:134
FunctionTestGDScriptIdempotent
(t *testing.T)
engine/compressors/code_gdscript_test.go:144
FunctionTestGDScriptNothingToElidePassesThrough
(t *testing.T)
engine/compressors/code_gdscript_test.go:180
FunctionTestGDScriptSpaceIndentation
(t *testing.T)
engine/compressors/code_gdscript_test.go:154
FunctionTestGateAmortizedAndMaxChars
(t *testing.T)
engine/pixel/gate_test.go:77
FunctionTestGateAntiFlap
(t *testing.T)
engine/pixel/gate_test.go:11
FunctionTestGateCommitsOnSilenceAfterTheHold
A silent upstream stays behind the gate for gateHold only: after it the next silence tick commits the headers and pings, and a failure after that reac
proxy/internal/translate/review_regressions_test.go:106
FunctionTestGateHeadTypesTheAnswer
A gated answer always names its type and says nosniff, so no browser renders an upstream's bytes as a page; a type a path set is kept.
proxy/internal/translate/gate_test.go:11
FunctionTestGateHoldIsBoundedUnderSteadyHeldLines
Lines without content arriving steadily (OpenRouter's processing comments, Anthropic pings) do not keep the headers back past gateHold.
proxy/internal/translate/review_regressions_test.go:208
FunctionTestGateTripKeepsEarlierSubstitutions
TestGateTripKeepsEarlierSubstitutions: a rewind makes the client's own prefix diverge from the previous turn. Whatever the proxy decides about NEW con
proxy/internal/gateway/cache_prefix_invariant_test.go:1278
FunctionTestGeminiAndOpencodeRootsHonorRelocationVariables
Gemini CLI and opencode relocate their roots the same way Claude Code and Codex do, and the TypeScript CLI already honors both (GEMINI_CLI_HOME at pac
proxy/internal/store/agent_roots_test.go:57
FunctionTestGeminiForeignAPIKeyHeaderNeitherConflictsNorDisplaces
x-api-key is not one of Google's credential spellings (only x-goog-api-key and the key/$key system parameters are). Treating it as one made a client t
proxy/internal/standalone/gemini_query_auth_test.go:100
FunctionTestGeminiPAYGPrefixCacheBeatsNonDeterministicCompressor
TestGeminiPAYGPrefixCacheBeatsNonDeterministicCompressor is the Gemini authority pin against a compressor whose output changes on every call.
proxy/internal/gateway/prefix_stability_payg_test.go:347
FunctionTestGeminiPAYGPrefixCacheUnavailablePassesThrough
TestGeminiPAYGPrefixCacheUnavailablePassesThrough is the Gemini fail-open pin.
proxy/internal/gateway/prefix_stability_payg_test.go:371
FunctionTestGeminiPAYGPrefixStableAcrossTurns
TestGeminiPAYGPrefixStableAcrossTurns is the Gemini shape of the same probe.
proxy/internal/gateway/prefix_stability_payg_test.go:288
FunctionTestGeminiPAYGPrefixStableSurvivesRestart
TestGeminiPAYGPrefixStableSurvivesRestart is the Gemini durability pin.
proxy/internal/gateway/prefix_stability_payg_test.go:323
FunctionTestGeminiPAYGPrefixSubstitutionBooksSavingsOnce
TestGeminiPAYGPrefixSubstitutionBooksSavingsOnce is the Gemini no-fake-savings pin: substituting an earlier turn re-books nothing.
proxy/internal/gateway/prefix_stability_payg_test.go:390
FunctionTestGeminiQueryOAuthTokenSuppressesEnvironmentFallback
A caller that authenticates with an OAuth token in the URL has already named a principal. Adding the operator's environment key beside it would bill t
proxy/internal/standalone/gemini_query_auth_test.go:142
FunctionTestGeminiRetrieveWireRoundTrip
(t *testing.T)
proxy/internal/gateway/retrieve_tool_test.go:131
FunctionTestGeminiRouteMetadata
(t *testing.T)
proxy/providers/gemini/gemini_test.go:55
FunctionTestGeminiSessionSourceCountsInputOnceAndRoundTripsMessageIndexLocator
(t *testing.T)
proxy/internal/store/source_gemini_test.go:12
FunctionTestGeminiThoughtSignatureRoundTrips
The thought signature Gemini puts on a tool call goes back on that call, to the same route and model only, through Claude Code's history and Codex's;
proxy/internal/translate/messages_test.go:246
FunctionTestGeneratedLearnSinksCarryPracticeIDOrHonestEmpty
(t *testing.T)
proxy/internal/store/practice_mapping_test.go:54
FunctionTestGenericRefusalOfABadAskLatchesNothing
A refusal that dropping the fields does not cure is a bad ask: nothing is latched off, and the next ask carries them again.
proxy/internal/cloudlink/cache_ttl_test.go:109
FunctionTestGetObjectReadsOneSnapshot
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:230
FunctionTestGetObjectRefusesDataThatDoesNotMatchContentHash
(t *testing.T)
engine/ccr/store_corrupt_test.go:50
FunctionTestGetRefusesBlobThatDoesNotMatchHandle
(t *testing.T)
engine/ccr/store_corrupt_test.go:24
FunctionTestGetUnknownHandleFailsClosed
(t *testing.T)
engine/ccr/store_test.go:296
FunctionTestGitListedPathsStillGetDependencyFiltering
Everything git lists still goes through the content-based filter: a .gitignore that forgot an installed environment, or a committed dependency tree, m
proxy/internal/repointel/index_test.go:191
FunctionTestGitListingIgnoresRepositoryControlledCommands
Running git inside a repository executes what that repository's config says to execute. core.fsmonitor runs during an index read, so `ls-files` alone
proxy/internal/repointel/index_test.go:261
FunctionTestGitListingLeavesBudgetForTheWalkFallback
The fallback walk is the more expensive path, so git must never be allowed to spend the warm budget it needs: a listing that times out at 2s inside a
proxy/internal/repointel/index_test.go:475
FunctionTestGlyphAtlasSurgery
(t *testing.T)
engine/pixel/glyphs_test.go:100
FunctionTestGoldenFixtures
(t *testing.T)
engine/pixel/golden_test.go:37
FunctionTestGptProfileEnvRejectsInvalidCostsAndSubPixelGeometry
(t *testing.T)
engine/pixel/transform_openai_test.go:58
FunctionTestGptProfilesAndVisionCosts
(t *testing.T)
engine/pixel/transform_openai_test.go:21
FunctionTestGrantsBroadAccessIsAnAllowlist
Anyone but this user, SYSTEM, Administrators, CREATOR OWNER and OWNER RIGHTS is broad. A denylist of Everyone, Authenticated Users, Users and Guests m
proxy/internal/securehome/securehome_windows_test.go:111
FunctionTestGutteredContentCompressesLikeItsContent
The whole point: a file the agent read compresses about as well as the file itself. Accounting stays against the bytes the caller actually supplied.
engine/listing_test.go:55
FunctionTestGutteredGDScriptReachesTheCodeCompressor
GDScript arrives the same way and must reach the code compressor in both builds, gutter and all.
engine/listing_test.go:110
FunctionTestGutteredSourceReachesTheCodeCompressor
Guttered source must reach the code compressor too — that path is what a coding agent's Read of a source file produces.
engine/listing_test.go:79
FunctionTestHTMLDeterministic
(t *testing.T)
engine/compressors/html_test.go:51
FunctionTestHTMLExtractsArticleDropsBoilerplate
(t *testing.T)
engine/compressors/html_test.go:27
FunctionTestHTMLInlineTagsKeepWordBoundary
(t *testing.T)
engine/compressors/html_test.go:77
FunctionTestHTMLKeepsAllSections
(t *testing.T)
engine/compressors/html_test.go:93
FunctionTestHTMLLinkFarmBails
(t *testing.T)
engine/compressors/html_test.go:63
FunctionTestHTMLNonDocumentBails
(t *testing.T)
engine/compressors/html_test.go:126
FunctionTestHTMLPreservesPreIndentation
(t *testing.T)
engine/compressors/html_test.go:111
FunctionTestHTTPUpstreamJSONAndSSEAndReadWriteSplit
(t *testing.T)
mcp/codemode/stdio_js_builtin_test.go:662
FunctionTestHTTPUpstreamOpenSSEAndRedirectCredentialStripping
(t *testing.T)
mcp/codemode/stdio_js_builtin_test.go:1080
FunctionTestHandleArgsDispatch
(t *testing.T)
mem/cmd/cavemem/main_test.go:40
FunctionTestHandleArgsRecallTokenBudget
(t *testing.T)
mem/cmd/cavemem/main_test.go:114
FunctionTestHandleArgsRememberRecallRoundTrip
(t *testing.T)
mem/cmd/cavemem/main_test.go:82
FunctionTestHandleArgsRememberTooLarge
(t *testing.T)
mem/cmd/cavemem/main_test.go:214
FunctionTestHandleIsContentAddressedAndIdempotent
(t *testing.T)
engine/ccr/store_test.go:257
FunctionTestHandleReturnsBeforeStoreBusyTimeoutUnderHeldWriteLock
TestHandleReturnsBeforeStoreBusyTimeoutUnderHeldWriteLock is the #1279 mechanism: a store write blocked by a stale process holding the database must s
proxy/internal/nativeruntime/hook_budget_test.go:71
FunctionTestHandlerPanicYieldsToolErrorNotCrash
A handler panic must be contained as a cave_tool_panicked ToolError; the process must survive and keep serving. Sub-issue #3.
mcp/server_test.go:630
FunctionTestHandlerPublishesUpstreamProxySelectorToAdapters
The endpoint pre-flight in the Bedrock and Vertex adapters must be able to see that this request leaves through a proxy (#1001). The selector it reads
proxy/internal/gateway/upstream_bounds_test.go:64
FunctionTestHarnessChatCleaningOnEveryOrigin
A chat request carries the runtime's reasoning envelopes to no chat API, whatever its origin (routing off included): DeepSeek never gets another host'
proxy/internal/gateway/route_pool_test.go:578
FunctionTestHarnessCleaningOnlyOnTheProvidersOwnAPI
Pass-through traffic and other origins are never cleaned: only the provider's own API refuses another host's reasoning.
proxy/internal/gateway/route_pool_test.go:541
FunctionTestHarnessEnvelopesFailClosedOnMalformedInputs
(t *testing.T)
engine/harness_envelopes_test.go:168
FunctionTestHarnessPathDropsReasoningAPoolHostWrote
(t *testing.T)
proxy/internal/gateway/route_pool_test.go:306
FunctionTestHealRetryFailingForAnotherReasonDoesNotLatch
A heal retry refused for another reason (overload, rate limit, an unrelated 400) teaches nothing: the next request heals again.
proxy/internal/gateway/route_effort_test.go:1551
FunctionTestHealthReadyIdentifiesCavemanProxyRuntime
--- tests --------------------------------------------------------------------
proxy/internal/gateway/server_test.go:92
FunctionTestHeldModelGuards
What heldModel refuses: another provider's model under the same session key, and a session whose last request was a compaction (no cache to keep).
proxy/internal/gateway/route_test.go:913
FunctionTestHeldModelThatFailsGivesWayToTheFallback
A held model that does not serve is not held again: the next attempt runs the fallback. One that is refused costs the replay once.
proxy/internal/gateway/route_test.go:889
FunctionTestHelperMockMCPServer
TestHelperMockMCPServer acts as a real stdio MCP server child process when spawned by TestStdioUpstreamEndToEnd with GO_WANT_MOCK_MCP_SERVER=1.
mcp/codemode/stdio_js_builtin_test.go:27
FunctionTestHermesToolJSONEnvelopeUnwrapsAndSeparatesExitCodes
(t *testing.T)
engine/harness_envelopes_test.go:234
FunctionTestHermesYAMLAndCodexTOMLHardenedParsing
(t *testing.T)
mcp/codemode/stdio_js_builtin_test.go:833
FunctionTestHeuristicModelNameDoesNotReactivateRetiredRoutingMove
(t *testing.T)
proxy/internal/store/trial_feature_test.go:311
FunctionTestHeuristicProviderAndCostAloneEmitNoCacheMove
(t *testing.T)
proxy/internal/store/trial_feature_test.go:298
FunctionTestHiResPageGeometryPatchAligned
TestHiResPageGeometryPatchAligned extends the std-page patch-alignment guard (render_test.go TestPageGeometryPatchAligned) to the hi-res tier: a full
engine/pixel/density_gate_test.go:68
FunctionTestHistorySyntheticIntroVerbatim
(t *testing.T)
engine/pixel/history_anthropic_test.go:12
FunctionTestHotPathFactsGolden
TestHotPathFactsGolden pins those facts for a 2k, 50k and 200k request as the build before this hot-path work derived them.
proxy/internal/gateway/hotpath_golden_test.go:46
FunctionTestIMDSDisabledSkipsEndpoint
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:335
FunctionTestIMDSEndpointAllowlist
AWS_EC2_METADATA_SERVICE_ENDPOINT was taken verbatim and then dialled with the client that ignores every proxy setting.
shared/platform/awscreds/awscreds_test.go:214
FunctionTestIMDSEndpointRejectionNeverDials
A rejected endpoint must be rejected before anything is dialled.
shared/platform/awscreds/awscreds_test.go:235
FunctionTestIMDSHangFailsFast
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:352
FunctionTestIMDSWithoutTokenEndpointFails
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:315
FunctionTestIMDSv2Sequence
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:289
FunctionTestISOWeekBoundariesAreUTC
(t *testing.T)
proxy/internal/store/learn_trends_test.go:31
FunctionTestIdempotencyRejectsDifferentInput
(t *testing.T)
proxy/internal/middleware/runtime_test.go:389
FunctionTestIdempotentZeroAccountingPutCannotEraseMeasuredStats
(t *testing.T)
engine/ccr/store_test.go:274
FunctionTestIdenticalDocumentsKeepSeparateGrantsAndOneUniqueCredit
(t *testing.T)
proxy/internal/middleware/runtime_test.go:191
FunctionTestIdentifierEnumerationsAreShedFirst
TestIdentifierEnumerationsAreShedFirst pins the budget priority. An enumeration averaging two units or fewer per bucket barely describes a class, so i
engine/compressors/invariants_test.go:291
FunctionTestIdleSessionExpiresOnlyAfterIdleRetention
(t *testing.T)
engine/ccr/store_reclaim_test.go:134
FunctionTestIdlessRequestGetsNoResponse
A request with no usable id (absent OR explicitly null) is a JSON-RPC notification and must get no response. Sub-issue #4.
mcp/server_test.go:670
FunctionTestImageCostSafetyMarginApplication
TestImageCostSafetyMarginApplication asserts the 1.10 margin is applied on top of the raw patch tokens, tested separately from the raw geometry.
engine/pixel/pricing_test.go:61
FunctionTestImageOnlyAskKeepsTheModel
A latest turn without text keeps the model and asks nothing.
proxy/internal/cloudlink/link_test.go:398
FunctionTestImageTokensForRowsPerLevel
TestImageTokensForRowsPerLevel asserts the gate prices each level's actual geometry: for the same rows the balanced page is cheaper (narrower + shorte
engine/pixel/density_gate_test.go:107
FunctionTestImpactTestsUsesDirectAndPackageRelationshipsWithoutCoverageClaims
(t *testing.T)
proxy/internal/repointel/index_test.go:455
FunctionTestImportSummaryUsesWeakestTokenBasis
(t *testing.T)
proxy/internal/store/trial_feature_test.go:503
FunctionTestImportedAnthropicUsagePricesDisjointCacheBucketsWhenBillingEvidenceExists
(t *testing.T)
proxy/internal/store/trial_feature_test.go:471
← previousnext →9,501–9,600 of 12,853, ranked by callers