MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

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:361
FunctionTestCacheWarmClassComesFromTheAnswer
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:114
FunctionTestCacheWarmClassifiesSpacedAndGzippedToolUse
TestCacheWarmClassifiesSpacedAndGzippedToolUse verifies the real-world wire shapes api.anthropic.com sends on tool turns: SSE with whitespace after `:
proxy/internal/gateway/cache_warm_test.go:580
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:424
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:484
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:523
FunctionTestCacheWarmNewRequestRearms
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:382
FunctionTestCacheWarmOneHourLifetime
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:329
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:539
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:236
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:458
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:507
FunctionTestCacheWarmSkipsRequestsZeroOutputCannotReplay
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:302
FunctionTestCacheWarmStopsOnErrorAndOnLostCache
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:401
FunctionTestCacheWarmStreamingRequestWarmsWithoutStream
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:283
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
FunctionTestCachedPrefixComponentsIgnoresReasoningEnvelopeAndTracksPrompt
(t *testing.T)
proxy/providers/openai/turn_effort_test.go:35
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
FunctionTestCanonicalDedupKeyIgnoresVolatileCodexAndClaudeEnvelopes
(t *testing.T)
engine/harness_envelopes_test.go:183
FunctionTestCanonicalProviderAttributionIsMountScoped
(t *testing.T)
proxy/providers/openaicompat/provider_attribution_test.go:11
FunctionTestCanonicalizeToolCatalogAnthropicPreservesTrailingCacheControl
(t *testing.T)
proxy/providers/toolzone_canonical_test.go:9
FunctionTestCanonicalizeToolCatalogAnthropicSkipsDeferredToolForCacheControl
(t *testing.T)
proxy/providers/toolzone_canonical_test.go:72
FunctionTestCanonicalizeToolCatalogBailsOnMultipleCacheControls
(t *testing.T)
proxy/providers/toolzone_canonical_test.go:97
FunctionTestCanonicalizeToolCatalogOpenAIAndGemini
(t *testing.T)
proxy/providers/toolzone_canonical_test.go:107
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
FunctionTestCertificatesFailClosed
A bundle is all-or-nothing: one bad block rejects the file so the trust store is never silently incomplete.
shared/platform/cabundle/cabundle_test.go:33
FunctionTestCharsPerPageBalancedVsConservative
TestCharsPerPageBalancedVsConservative pins per-page character capacity on the standard canvas. Geometry changes must update this test and its rendere
engine/pixel/density_gate_test.go:46
FunctionTestChatAnswerFailuresAreNotServed
(t *testing.T)
proxy/internal/translate/review_regressions_test.go:52
FunctionTestChatAnswerToMessages
--- Messages -> chat: answers ------------------------------------------------
proxy/internal/translate/messages_test.go:311
FunctionTestChatCallerFailures
Failures for a chat caller: before content nothing is written (the pool falls back); a cut after content never ends with a finish or [DONE].
proxy/internal/translate/wire_gaps_test.go:461
FunctionTestChatCallerReviewFindings
Review findings, each pinned.
proxy/internal/translate/wire_gaps_test.go:609
FunctionTestChatDialectGoldens
--- chat -> chat -------------------------------------------------------------- One golden per chat dialect, through a chat caller.
proxy/internal/translate/responses_test.go:569
FunctionTestChatEnvelopeNeverForgesASignature
--- envelopes never forge a signature ------------------------------------------------ A reasoning_details envelope carrying unsigned thinking, or thi
proxy/internal/translate/wire_gaps_test.go:567
FunctionTestChatGPTAcceptedRawRetryPinsTheConversation
TestChatGPTAcceptedRawRetryPinsTheConversation: once the backend accepted a conversation only as raw bytes, that is what it cached, so the next turn g
proxy/internal/gateway/chatgpt_test.go:1487
FunctionTestChatGPTAgentNamesCodexByItsOwnHeaders
(t *testing.T)
proxy/internal/gateway/chatgpt_auto_test.go:723
FunctionTestChatGPTAutoAcceptedReplayPinsTheConversationRaw
An accepted replay of the fallback model's own bytes pins the conversation raw, as on a named model: the provider cached those bytes.
proxy/internal/gateway/chatgpt_auto_test.go:584
FunctionTestChatGPTAutoBrokenEncodingHasItsOwnReason
A body that fits but does not decode whole is not "too large": it records its own reason, and its decoder is closed when the upstream send aborts.
proxy/internal/gateway/chatgpt_auto_test.go:371
FunctionTestChatGPTAutoCloudFailureKeepsTheSessionsModel
A transient Cloud failure runs the model the session was last served by; a limit or a refused login runs the fallback.
proxy/internal/gateway/chatgpt_auto_test.go:532
← previousnext →8,901–9,000 of 12,853, ranked by callers