MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

FunctionTestCacheBreakpoint_NonPAYGIsPassthrough
(t *testing.T)
proxy/providers/anthropic/cache_breakpoints_test.go:159
FunctionTestCacheBreakpoint_PreservesUntouchedRawBytes
(t *testing.T)
proxy/providers/anthropic/cache_breakpoints_test.go:131
FunctionTestCacheBreakpoint_SkipsDeferredTool
(t *testing.T)
proxy/providers/anthropic/cache_breakpoints_test.go:61
FunctionTestCacheBreakpoint_SystemArrayLastBlock
(t *testing.T)
proxy/providers/anthropic/cache_breakpoints_test.go:118
FunctionTestCacheBreakpoint_SystemStringConverted
(t *testing.T)
proxy/providers/anthropic/cache_breakpoints_test.go:98
FunctionTestCacheBreakpoint_SystemStringPreservesEscapeSpelling
(t *testing.T)
proxy/providers/anthropic/cache_breakpoints_test.go:140
FunctionTestCacheBreakpoint_ToolsGetBreakpoint
(t *testing.T)
proxy/providers/anthropic/cache_breakpoints_test.go:35
FunctionTestCacheBreakpoint_UnicodeEscapedCallerKeyCannotMintAttribution
(t *testing.T)
proxy/providers/anthropic/cache_breakpoints_test.go:188
FunctionTestCacheChurnFloorSumsOnlyPostFirstTurnSpikes
(t *testing.T)
proxy/internal/store/detect_cache_hygiene_test.go:11
FunctionTestCacheChurnSourceMixedSessions
(t *testing.T)
proxy/internal/store/detect_cache_hygiene_test.go:107
FunctionTestCacheComponentMaintenanceStopsWithContext
(t *testing.T)
proxy/internal/store/cache_components_test.go:370
FunctionTestCacheEfficiencySinkNamesCandidatesNotCauses
TestCacheEfficiencySinkNamesCandidatesNotCauses guards the honesty boundary on the biggest money number: it reports a measured multiplier and lists pe
proxy/internal/store/detect_tool_portfolio_test.go:92
FunctionTestCacheEpochAllowsRunsGuardWithoutHeaders
TestCacheEpochAllowsRunsGuardWithoutHeaders pins what the epoch check may veto. Header-less wrap clients (Claude Code, Codex, Gemini CLI) are always a
proxy/internal/gateway/prefix_monitor_test.go:265
FunctionTestCacheKeyNeverForcesAReplay
The session's prompt_cache_key never costs a second send: a 4xx on a request the route stage only keyed is not replayed, and a replay of a request it
proxy/internal/gateway/route_effort_responses_test.go:262
FunctionTestCacheKeySurvivesTheHealAndA429IsNotDoubled
The heal of a refused update keeps the session's prompt_cache_key, and a 429 on a request the route stage only keyed is not sent again.
proxy/internal/gateway/route_effort_responses_test.go:238
FunctionTestCachePointEligibilityCoversInferenceProfiles
TestCachePointEligibilityCoversInferenceProfiles pins the population fix (2026-08-02): the router strips global./us./eu. routing scopes before its Cla
proxy/providers/bedrock/cache_points_test.go:337
FunctionTestCachePointsAnthropicInvokeAddsCacheControl
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:109
FunctionTestCachePointsAnthropicInvokeEmptySystemStringPassesThrough
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:164
FunctionTestCachePointsAnthropicInvokeFallsBackToSystemWithoutTools
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:125
FunctionTestCachePointsConverseAddsToolCheckpointUpstreamOnly
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:51
FunctionTestCachePointsConverseFallsBackToSystemCheckpoint
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:91
FunctionTestCachePointsConverseUninjectableShapesPassThrough
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:282
FunctionTestCachePointsDisabledNonPAYGAndMalformedPassThrough
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:254
FunctionTestCachePointsInjectsForGlobalInferenceProfile
TestCachePointsInjectsForGlobalInferenceProfile proves the widened population end to end at the transform: a Converse body carrying a modern global.*
proxy/providers/bedrock/cache_points_test.go:402
FunctionTestCachePointsPreservesLargeIntegersElsewhereInBody
TestCachePointsPreservesLargeIntegersElsewhereInBody pins the fix: a decode-then-remarshal through map[string]any rounds any integer above 2^53 to the
proxy/providers/bedrock/cache_points_test.go:362
FunctionTestCachePointsRespectCallerMarkersByteIdentically
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:222
FunctionTestCachePointsSigV4HashesExactTransformedWireBody
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:304
FunctionTestCachePointsUnsupportedVendorAndSurfaceAreByteIdentical
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:176
FunctionTestCachePrefixInvariant
--- scenarios --------------------------------------------------------------------
proxy/internal/gateway/cache_prefix_invariant_test.go:562
FunctionTestCachePrefixInvariantPixel
(t *testing.T)
proxy/internal/gateway/cache_prefix_invariant_test.go:1727
FunctionTestCachePrefixInvariantRawRetryRacingAFork
TestCachePrefixInvariantRawRetryRacingAFork races a turn that takes the raw retry against a fork of it, with no ordering imposed: the fork may be deci
proxy/internal/gateway/cache_prefix_invariant_test.go:1602
FunctionTestCachePrefixInvariantResponses
TestCachePrefixInvariantResponses drives Codex-shaped Responses traffic through the net. OpenAI caches the whole prompt, so every item counts, and par
proxy/internal/gateway/cache_prefix_invariant_test.go:1839
FunctionTestCacheRefreshesInsideExpiryWindow
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:490
FunctionTestCacheSpikeAttribution
(t *testing.T)
proxy/internal/store/detect_cache_hygiene_test.go:56
FunctionTestCacheStatus
(t *testing.T)
proxy/providers/adapter_usage_test.go:413
FunctionTestCacheTTLIsReadFromTheBody
(t *testing.T)
proxy/internal/cloudlink/cache_ttl_test.go:14
FunctionTestCacheTTLRefreshAcrossReadOnlyHits
(t *testing.T)
proxy/internal/store/detect_cache_hygiene_test.go:200
FunctionTestCacheWarmBeginNeverBlocks
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:316
FunctionTestCacheWarmBounds
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:379
FunctionTestCacheWarmCapsConcurrentWarms
Sibling subagents answered together come due together: at most two warms are in flight in the whole process; one that gets no slot before its own dead
proxy/internal/gateway/cache_warm_policy_test.go:501
FunctionTestCacheWarmChainStopsWhereThePredictionDoes
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:360
FunctionTestCacheWarmClassComesFromTheAnswer
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:114
FunctionTestCacheWarmCorruptGapsFileStartsFromDefaults
(t *testing.T)
proxy/internal/gateway/cache_warm_table_test.go:114
FunctionTestCacheWarmCostsExample
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:401
FunctionTestCacheWarmDelay
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:415
FunctionTestCacheWarmEconomicsFailClosed
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:423
FunctionTestCacheWarmEncodedAnswerIsNotClassed
An encoded answer's stop reason is not read: the stream is planned as whichever class warms less, and its next gap teaches neither class.
proxy/internal/gateway/cache_warm_table_test.go:402
FunctionTestCacheWarmEvictedPendingStreamIsCounted
A stream evicted (or alive at shutdown) while still waiting is counted as coming back later than it was seen silent, never dropped: the returns that c
proxy/internal/gateway/cache_warm_table_test.go:170
FunctionTestCacheWarmFollowsAutoAcrossModels
Auto on Anthropic: the warm belongs to the stream, replays the bytes that went upstream (the routed model, never the literal Auto id), is priced at th
proxy/internal/gateway/cache_warm_policy_test.go:440
FunctionTestCacheWarmHeadersAndBytesAreTheAnsweredRequests
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:137
FunctionTestCacheWarmJitterIsOnlyEarlier
Warms planned for the same instant are spread over the seconds before it, never after: a late warm is a full-price write.
proxy/internal/gateway/cache_warm_policy_test.go:559
FunctionTestCacheWarmKillSwitch
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:483
FunctionTestCacheWarmLearnsAndPersistsGaps
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:73
FunctionTestCacheWarmLogsThePlanOrTheSkip
One line per answered request says what was planned (info) or why nothing was (debug), with the session as a hash and no content or credential.
proxy/internal/gateway/cache_warm_table_test.go:354
FunctionTestCacheWarmMixedLifetimesAreNotWarmed
(t *testing.T)
proxy/internal/gateway/cache_warm_table_test.go:318
FunctionTestCacheWarmModelSwitchStopsTheOldModel
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:230
FunctionTestCacheWarmNeverLogsCredentials
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:522
FunctionTestCacheWarmNewRequestRearms
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:381
FunctionTestCacheWarmOneHourLifetime
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:328
FunctionTestCacheWarmOverloadPausesTheCredential
An overloaded or failing provider (529, 5xx) pauses warming on the credential, as a 429 does: five minutes unless it names a wait.
proxy/internal/gateway/cache_warm_policy_test.go:581
FunctionTestCacheWarmParentRequestLeavesSubagentWarms
A subagent can still be running when its parent talks: the parent's request stops the parent's own warms, never its children's (on the measured sessio
proxy/internal/gateway/cache_warm_policy_test.go:210
FunctionTestCacheWarmPlanCountsNeverReturningOnce
Half the streams never come back, half come back at 20 min and pay the whole miss: realized (measured over the streams that return) is 1, and the chan
proxy/internal/gateway/cache_warm_table_test.go:73
FunctionTestCacheWarmPlanCountsTheWholeChain
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:32
FunctionTestCacheWarmPlanMatchesTheSimulator
The plans .blocks/cache-warm-sim.py prints for the shipped table (--table cache_warm_table.json --plan-cases <the keys>, one digit per warm point): th
proxy/internal/gateway/cache_warm_table_test.go:25
FunctionTestCacheWarmPricesTheLiveUsageShape
The usage object exactly as api.anthropic.com sent it on live subscription traffic: priced at the catalog rate, and a stream answered with it is warme
proxy/internal/gateway/cache_warm_test.go:538
FunctionTestCacheWarmRealRequest429BacksOff
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:294
FunctionTestCacheWarmReleasesTheRequestWhenTheChainEnds
The held request (body and credential headers) goes as soon as the chain is over, not when the stream is next heard from or evicted.
proxy/internal/gateway/cache_warm_table_test.go:252
FunctionTestCacheWarmReplaysExactBytesAtZeroOutput
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:235
FunctionTestCacheWarmReplaysTheRoutedRequest
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:180
FunctionTestCacheWarmSavesOutsideTheWarmerLock
The gaps file is written with the warmer unlocked: a slow disk never holds up the other streams' requests.
proxy/internal/gateway/cache_warm_table_test.go:286
FunctionTestCacheWarmScopeFailsClosed
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:457
FunctionTestCacheWarmShippedTable
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:53
FunctionTestCacheWarmShutdownSavesWhatItLearned
(t *testing.T)
proxy/internal/gateway/cache_warm_table_test.go:216
FunctionTestCacheWarmSideRequestLeavesWarmAlone
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:506
FunctionTestCacheWarmSkipsRequestsZeroOutputCannotReplay
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:301
FunctionTestCacheWarmStopsOnErrorAndOnLostCache
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:400
FunctionTestCacheWarmStreamingRequestWarmsWithoutStream
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:282
FunctionTestCacheWarmSubscription429PausesTheLogin
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:243
FunctionTestCacheWarmSwitchFollowsWasteFixesModule
(t *testing.T)
proxy/cmd/caveman-proxy/cache_warm_test.go:10
FunctionTestCacheWarmToolStopAcrossAnyReads
(t *testing.T)
proxy/internal/gateway/cache_warm_table_test.go:93
FunctionTestCacheWarmToolStopAcrossChunks
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:100
FunctionTestCacheWarmWaitsForInFlightRealRequest
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:342
FunctionTestCacheWarmWallClockDeadline
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:362
FunctionTestCachedPrefixComponentsCoverTheMarkedMessage
TestCachedPrefixComponentsCoverTheMarkedMessage pins the difference from FrozenPrefixComponents: the provider caches THROUGH the last marked message,
proxy/providers/anthropic/content_compress_test.go:534
FunctionTestCancelledCallerIsNotNegativeCached
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:674
FunctionTestCancelledProbeDoesNotMakeTheReplicaUnready
FX2: readiness is unauthenticated and cached, so a caller that hangs up must not have its cancellation cached as "store not writable" for every probe,
proxy/internal/middleware/hardening_test.go:528
FunctionTestCanonicalProviderAttributionIsMountScoped
(t *testing.T)
proxy/providers/openaicompat/provider_attribution_test.go:11
FunctionTestCapabilityManifestDigestIsPinned
TestCapabilityManifestDigestIsPinned guards every Cave Build lock in the field. A lock records transform_registry_sha256 and the agent re-checks it at
engine/compressors/capabilities_test.go:58
FunctionTestCapabilityManifestStableAndComplete
(t *testing.T)
engine/compressors/capabilities_test.go:10
FunctionTestCaptureDirDeletedAtRecordTimeLeavesTrafficUnaffected
The capture directory can disappear under a running proxy. Traffic must not notice — the instrument fails open on every error.
proxy/internal/gateway/capture_test.go:483
FunctionTestCaptureDisabledByDefaultWritesNothing
Default-off, through the real handler: an operator who never set the env var gets no instrument at all, and the bytes on the wire are untouched.
proxy/internal/gateway/capture_test.go:321
FunctionTestCaptureEnabledLeavesUpstreamBytesIdentical
Enabling the instrument may not change one byte of what the upstream receives.
proxy/internal/gateway/capture_test.go:343
FunctionTestCaptureRecordsChatGPTRoute
An operator who sets CAVE_CAPTURE_DIR and runs Codex must not get an empty directory: the ChatGPT route captures the same two sides.
proxy/internal/gateway/capture_test.go:444
FunctionTestCaptureRecordsRetryWithOriginalBytes
The 4xx fail-open retry sends the ORIGINAL bytes. Without a second record the file on disk would claim the transformed bytes served the request — conf
proxy/internal/gateway/capture_test.go:393
FunctionTestCaptureStdoutHandlesLargeOutput
(t *testing.T)
proxy/cmd/caveman-proxy/status_test.go:247
FunctionTestCaptureThroughHandlerPreservesInvalidUTF8Bytes
End to end through the handler on a body carrying invalid UTF-8: the capture must reproduce exactly the bytes the upstream received.
proxy/internal/gateway/capture_test.go:368
FunctionTestCaseFoldedKeysAreRefused
§4: encoding/json would match "Scope" to scope; a key that differs from a defined field only by case is refused, at any depth, not given its meaning.
proxy/internal/middleware/hardening_test.go:784
FunctionTestCatalogLookupsDoNotDependOnWorkingDirectory
A binary launched outside the repo once found no catalog file by walking up from its working directory, so every window fell back to a provider defaul
shared/platform/catalog/cwd_test.go:35
FunctionTestCavemanCacheBustCountedOnOldDB
TestCavemanCacheBustCountedOnOldDB: cache_bust_cause reaches a store created before the column existed, and only caveman-caused busts are counted as c
proxy/internal/store/cache_columns_test.go:119
FunctionTestCellAdvanceFourReferenceWidth
TestCellAdvanceFourReferenceWidth pins the reference cell-advance-4 geometry: width = 2*pad + cols*advance + max(0, glyphW-advance), and a lone glyph
engine/pixel/render_density_test.go:27
← previousnext →8,501–8,600 of 12,391, ranked by callers