MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

FunctionTestChatGPTAutoCompressedAndRoutedRefusalBlamesNoModel
Compressed and routed, refused: one replay of the fallback's exact bytes, and since compression changed the bytes too the replay getting through prove
proxy/internal/gateway/chatgpt_auto_test.go:790
FunctionTestChatGPTAutoFailuresOnTheRoutedModel
routedFailures (route_test.go) on the ChatGPT Auto path: the replay is the fallback model's exact bytes, and a row naming it drops routed-from.
proxy/internal/gateway/chatgpt_auto_test.go:741
FunctionTestChatGPTAutoFallsBack
A model the login refuses replays on the fallback model's bytes; without a Cloud link, and from OpenCode's ChatGPT login, Auto runs on the fallback.
proxy/internal/gateway/chatgpt_auto_test.go:160
FunctionTestChatGPTAutoHeldModelGivesWay
A held model that does not serve is not held again, and a side request is never held on the session's model.
proxy/internal/gateway/chatgpt_auto_test.go:623
FunctionTestChatGPTAutoKeepsTheDecisionWhenTheReplayFailsToo
A refusal the fallback model's own bytes get too was not the route stage's: the ask keeps its decision.
proxy/internal/gateway/chatgpt_auto_test.go:516
FunctionTestChatGPTAutoOnEveryPathAndSize
Any other POST naming Auto (Codex compaction) runs gpt-6.1-sol unasked; a body over CAVE_MAX_REQUEST_BYTES streams with only its model changed; a POST
proxy/internal/gateway/chatgpt_auto_test.go:208
FunctionTestChatGPTAutoOverloadedRoutedModelGivesWay
An overloaded or failing routed model (529, any 5xx) is that model's, not the plan's limit: it is returned as is, never replayed, and the decision is
proxy/internal/gateway/chatgpt_auto_test.go:483
FunctionTestChatGPTAutoOversizedEncodedBodies
An encoded body over CAVE_MAX_REQUEST_BYTES streams decoded on the fallback model: the literal id never goes upstream, no stale Content-Encoding or Co
proxy/internal/gateway/chatgpt_auto_test.go:312
FunctionTestChatGPTAutoRateLimitedReplayDoesNotDoubleTheAgentsRetries
A 429 without Retry-After on the routed model and on the replay: the decision is rejected, so the agent's own retries send one request each.
proxy/internal/gateway/chatgpt_auto_test.go:604
FunctionTestChatGPTAutoReadsRawDeflate
Content-Encoding: deflate without the zlib wrapper is still read: the turn is routed like any other.
proxy/internal/gateway/chatgpt_auto_test.go:353
FunctionTestChatGPTAutoRefusedUpdateHealsAndLatches
A login that refuses a configuration_update: one retry at Cloud's effort top-level, then the session is latched and later requests go out once.
proxy/internal/gateway/chatgpt_auto_test.go:421
FunctionTestChatGPTAutoRefusesOtherModels
An answer naming a model outside AutoOpenAIModels runs gpt-6.1-sol at that answer's effort; the ask offered Cloud the three alone.
proxy/internal/gateway/chatgpt_auto_test.go:191
FunctionTestChatGPTAutoReturnsRateLimitsAndAuthFailures
A rate-limit 429 or an auth failure on routed bytes is returned, never replayed: the fallback model's bytes cannot beat the limit or the login.
proxy/internal/gateway/chatgpt_auto_test.go:460
FunctionTestChatGPTAutoRoutesOnTheLogin
Auto on a ChatGPT login asks without a pool, runs the answered model and effort on the agent's own login, and the agent reads Auto.
proxy/internal/gateway/chatgpt_auto_test.go:135
FunctionTestChatGPTAutoRowReachesCloudAsCodex
A Codex Auto turn on its ChatGPT login asks as Codex, only the model changes upstream, and the row reaches Cloud as Codex's, tokens-only (ADR 0110).
proxy/internal/gateway/chatgpt_auto_test.go:693
FunctionTestChatGPTAutoSniffLeavesNoDecoderBehind
The sniff stops 64 KiB into the decoded head; a zstd decoder left open there must not outlive the call.
proxy/internal/gateway/chatgpt_auto_test.go:295
FunctionTestChatGPTAutoSniffReadsAWholeZstdBlock
A zstd block that barely compresses is up to 128 KiB as sent: the head read covers one whole block, so the model at its start is still seen.
proxy/internal/gateway/chatgpt_auto_test.go:399
FunctionTestChatGPTAutoStreamEndsOnTheRoutedModel
(t *testing.T)
proxy/internal/gateway/chatgpt_auto_test.go:772
FunctionTestChatGPTAutoTakesThe1MSuffix
The Auto id with Claude Code's [1m] suffix is Auto: the fallback model goes upstream and the agent reads the id it sent.
proxy/internal/gateway/chatgpt_auto_test.go:572
FunctionTestChatGPTCaptureRecordsRetryWithOriginalBytes
The ChatGPT route's OAuth 4xx retry is the documented real-world fallback, so its capture record needs its own coverage: without it, a regression that
proxy/internal/gateway/chatgpt_test.go:910
FunctionTestChatGPTCatalogListsAutoWhileOffered
(t *testing.T)
proxy/internal/gateway/chatgpt_auto_test.go:36
FunctionTestChatGPTCodexArrayToolOutputCompresses
TestChatGPTCodexArrayToolOutputCompresses pins the Codex 0.149+ wire shape: custom_tool_call_output.output is an ARRAY of input_text parts, not a stri
proxy/internal/gateway/chatgpt_test.go:1033
FunctionTestChatGPTCodexClientCancellationAfterTerminalDeliveryPreservesAccounting
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:473
FunctionTestChatGPTCodexSubscriptionCompressesLiveZoneAndRecordsTokensOnly
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:686
FunctionTestChatGPTCodexSubscriptionCompressesOnlyExactResponsesRoute
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:737
FunctionTestChatGPTCodexSubscriptionRealEngineShrinksAndRecoversExactOriginal
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:814
FunctionTestChatGPTCodexSubscriptionTransformed4xxRetriesOriginal
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:872
FunctionTestChatGPTCodexZstdWithoutCompressionForwardsExactWire
#1155 widened zstd decoding to every /chatgpt/responses caller, so a Codex CLI zstd body that ends up uncompressed must still reach the backend as the
proxy/internal/gateway/chatgpt_test.go:1218
FunctionTestChatGPTCompressionHonorsCompiledPlanAndCacheEpochGates
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:785
FunctionTestChatGPTCompressionHonorsRequestWidePassThrough
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:764
FunctionTestChatGPTEpochVetoKeepsSubstitutions
TestChatGPTEpochVetoKeepsSubstitutions: a declared epoch that drifted may veto new compression only; the replacement an earlier turn was cached with i
proxy/internal/gateway/chatgpt_test.go:1506
FunctionTestChatGPTExplicitIdentityEncodingCompresses
An explicit Content-Encoding: identity is a plain body. The generic route accepts it, and /chatgpt compressed it before it learned to decode zstd.
proxy/internal/gateway/chatgpt_test.go:1417
FunctionTestChatGPTGenuineJSONOnStreamRequestedRouteStaysExact
A stream-requested Responses call whose upstream answers with a genuine JSON body must stay byte-exact. The route trusts the REQUEST's stream flag, so
proxy/internal/gateway/chatgpt_test.go:545
FunctionTestChatGPTHeadersForwardedByteExactExceptHost
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:249
FunctionTestChatGPTInBodyRecoveryToolOpensCompression
#1053: without the CAVEMAN_RECOVERY stamp (a manually started caveman-proxy), the request's own Caveman MCP retrieve tool proves recovery on /chatgpt,
proxy/internal/gateway/chatgpt_test.go:1270
FunctionTestChatGPTLoginExpiryAndRefresh
(t *testing.T)
proxy/internal/pool/pool_test.go:156
FunctionTestChatGPTLoginFitting
(t *testing.T)
proxy/internal/translate/responses_test.go:540
FunctionTestChatGPTMalformedBodyForwardedByteExactNothingInvented
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:959
FunctionTestChatGPTNoCredentialFallback
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:1001
FunctionTestChatGPTOverCaptureLimitKeepsSubstitutions
TestChatGPTOverCaptureLimitKeepsSubstitutions: a Codex session's body crosses the 4 MiB capture limit as screenshots and reasoning items pile up. That
proxy/internal/gateway/chatgpt_test.go:1563
FunctionTestChatGPTPathAndQueryPreserved
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:228
FunctionTestChatGPTPiClientCancellationOnlySucceedsAfterTerminalDelivered
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:641
FunctionTestChatGPTPiStreamRequestRecognizesSSEWithoutEventStreamHeader
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:354
FunctionTestChatGPTRateLimit429IsReturnedNotReplayed
TestChatGPTRateLimit429IsReturnedNotReplayed: raw bytes cannot beat a rate limit, and replaying them sends the provider a raw prefix in place of the c
proxy/internal/gateway/chatgpt_test.go:1471
FunctionTestChatGPTRequestHeadersRemovePrivateAndHopByHopFields
(t *testing.T)
proxy/internal/gateway/headers_test.go:8
FunctionTestChatGPTRowOverTheCaptureLimitNamesNoModel
A named-model body over the capture limit streams through byte-exact, is never asked about, and its row names no model to Cloud.
proxy/internal/gateway/chatgpt_auto_test.go:813
FunctionTestChatGPTSSECleanEOFWithoutTerminalEventAborts
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:436
FunctionTestChatGPTSSEStreamsThroughAndMetersUsage
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:311
FunctionTestChatGPTSSETerminalDelimiterWithContentLength
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:400
FunctionTestChatGPTSSETerminalEventAtEOFGetsDispatched
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:377
FunctionTestChatGPTSkippedStampedRequestIsNotEligible
A stamped request that never reaches the compressor forwards its exact wire bytes, names the reason in the log, and is not counted eligible: eligible
proxy/internal/gateway/chatgpt_test.go:1355
FunctionTestChatGPTSubstantiveTurnKeepsReplayedEffortMarks
(t *testing.T)
proxy/internal/gateway/local_turn_effort_test.go:358
FunctionTestChatGPTTripwireRecordsCavemansBust
TestChatGPTTripwireRecordsCavemansBust: the /chatgpt route takes the same compression path as the generic one, so it is held to the same rule on live
proxy/internal/gateway/chatgpt_test.go:1531
FunctionTestChatGPTUnprovenRecoveryToolsStayExact
Only the namespaced Caveman MCP spelling proves recovery. A bare caveman_retrieve (possibly a caller's own tool) or one under another namespace must n
proxy/internal/gateway/chatgpt_test.go:1323
FunctionTestChatGPTUpstreamUnreachableFailsWithCaveCode
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:980
FunctionTestChatGPTZstdKeepsTheCacheInvariant
TestChatGPTZstdKeepsTheCacheInvariant: Pi and Codex send zstd bodies, so the raw pin, the tripwire and the request-size limit all work on the decoded
proxy/internal/gateway/chatgpt_test.go:1582
FunctionTestChatOrdinaryToolResultStaysRewritable
An ordinary tool message stays rewritable — the exemption must be keyed on the recovery tool, not on tool messages generally.
proxy/providers/openai/recovery_exempt_test.go:51
FunctionTestChatParameterRules
(t *testing.T)
proxy/internal/translate/messages_test.go:301
FunctionTestChatRecoveryToolResultIsNotRewritable
A tool message answering caveman_retrieve carries the exact bytes an earlier elision removed. Exposing it as rewritable lets the prefix cache substitu
proxy/providers/openai/recovery_exempt_test.go:37
FunctionTestChatRelay
(t *testing.T)
proxy/internal/translate/responses_test.go:608
FunctionTestChatRoleChunkIsNotContent
A chat chunk that only opens the message is not content: a failure after it still falls back.
proxy/internal/translate/review_regressions_test.go:151
FunctionTestChatStreamStopReasonsErrorsAndCuts
(t *testing.T)
proxy/internal/translate/messages_test.go:406
FunctionTestChatStreamToMessages
The chat stream fixture: reasoning, text, a tool call whose arguments arrive in two pieces, then usage with cache reads, then [DONE].
proxy/internal/translate/messages_test.go:358
FunctionTestChatStreamToolIDsAreAnthropicSafe
A chat upstream's tool call ids reach Claude Code as ids Anthropic accepts: a foreign one rewritten, a missing one minted, parallel calls distinct, a
proxy/internal/translate/messages_test.go:445
FunctionTestChatToMessagesRequest
(t *testing.T)
proxy/internal/translate/wire_gaps_test.go:313
FunctionTestChatToResponsesRequest
(t *testing.T)
proxy/internal/translate/wire_gaps_test.go:350
FunctionTestCheckIntegrityOnceNeverRecordsADamagedStore
(t *testing.T)
engine/ccr/store_integrity_test.go:205
FunctionTestCheckIntegrityOnceRecordsAPassPerBuild
(t *testing.T)
engine/ccr/store_integrity_test.go:181
FunctionTestChildrenShareTheirParentsAffinity
A child's cache affinity is its parent's: siblings and forked children land on the machine (or OpenRouter provider) that holds the family's prefix.
proxy/internal/gateway/route_cache_test.go:244
FunctionTestChmodSQLiteFileRejectsReplacedInode
(t *testing.T)
engine/ccr/store_permissions_test.go:223
FunctionTestChmodSQLiteFileSkipsFchmodat2OnAndroid
On Android the fchmodat2 syscall itself is fatal (SIGSYS), so the gate must skip it outright and go straight to procfs.
engine/ccr/store_locking_procfs_linux_test.go:159
FunctionTestClassifyAuthModeTable
(t *testing.T)
proxy/internal/gateway/authmode_test.go:10
FunctionTestClassifyContent
(t *testing.T)
engine/pixel/textprep_test.go:44
FunctionTestClassifyResolvedAuthModeBedrockCredentialsArePAYG
(t *testing.T)
proxy/internal/gateway/authmode_test.go:49
FunctionTestClassifyResolvedAuthModeUsesConfiguredCredential
(t *testing.T)
proxy/internal/gateway/authmode_test.go:37
FunctionTestClassifyToolCoversClosedLedgerObjectTypes
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:24
FunctionTestClaudeBillingUsageKeepsBucketsDisjoint
TestClaudeBillingUsageKeepsBucketsDisjoint pins the opposite convention: Anthropic's input_tokens is already uncached-only.
proxy/internal/store/learn_pricing_test.go:128
FunctionTestClaudeCacheTTL
(t *testing.T)
proxy/internal/store/detect_cache_hygiene_test.go:177
FunctionTestClaudeImporterReadsProjectsRealUsage
TestClaudeImporterReadsProjectsRealUsage proves the importer reads ~/.claude/projects transcripts and the real usage block as observed_local (R3).
proxy/internal/store/trial_feature_test.go:390
FunctionTestClaudeMDSectionEchoPositiveControlEmitsOnlyUnechoedSection
(t *testing.T)
proxy/internal/store/detect_sections_test.go:64
FunctionTestClaudeMDSectionEchoPositiveExcludesEchoedSection
(t *testing.T)
proxy/internal/store/detect_sections_test.go:30
FunctionTestClaudeMDSectionEchoZeroCapabilityEmitsNothing
(t *testing.T)
proxy/internal/store/detect_sections_test.go:47
FunctionTestClaudeProviderModelSplitsOnlyKnownVendorPrefixes
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:520
FunctionTestClaudeSessionSourceExcludesStaleSessionOnlyFromSessionsScanned
(t *testing.T)
proxy/internal/store/source_claude_test.go:50
FunctionTestClaudeSessionSourceUsesTranscriptCWDForHyphenatedRepo
(t *testing.T)
proxy/internal/store/source_claude_test.go:9
FunctionTestClaudeStructuredSkillReferencesReadsAgentSubagentType
The structured reference scan classified a spawn by the literal name "Task", so an Agent-named tool_use block never contributed its subagent_type. Tha
proxy/internal/store/source_claude_test.go:89
FunctionTestClaudeSystemReminderUnwrapsListingAndJSONAndPreservesVerbatim
(t *testing.T)
engine/harness_envelopes_test.go:48
FunctionTestClaudeTaskSpawnsCountsAgentToolName
(t *testing.T)
proxy/internal/store/source_claude_test.go:69
FunctionTestClaudeTaskSpawnsIgnoresNestedAgentFields
claudeTaskSpawns counted raw JSON substrings, so ANY nested object carrying name:"agent" satisfied the byte sequence regardless of the enclosing tool'
proxy/internal/store/source_claude_test.go:123
FunctionTestCleaningKeepsPerMessageMarks
The harness path's cleaning never touches the session's per-message marks: a history carrying reasoning another host wrote is cleaned, and the marks s
proxy/internal/gateway/route_effort_test.go:1857
FunctionTestClientCARotationCutsLiveConnections
S6: rotating the client CA cuts a keep-alive connection opened under the old CA at its next request, not at its next handshake.
proxy/internal/identity/tls_test.go:221
FunctionTestClientCancellationReleasesUpstream
(t *testing.T)
proxy/internal/gateway/reliability_test.go:197
FunctionTestCloseNeverShutsExternalCDPEndpoint
(t *testing.T)
browse/cmd/caveman-browse/main_integration_test.go:145
FunctionTestCloudFailureKeepsTheSessionsModel
A transient Cloud failure runs the model the session's previous request went to (its cache holds the prefix) and records the failure as it was; a deli
proxy/internal/gateway/route_test.go:705
FunctionTestCloudJSONRewriteWithTheSameSecretKeepsTheTurn
Ordinary CLI commands rewrite cloud.json (telemetry watermarks, token refreshes). With the same secret that changes nothing: the credential never blan
proxy/internal/cloudlink/link_test.go:1152
FunctionTestCloudOffIsReadFromTheIndex
(t *testing.T)
proxy/internal/pool/pool_test.go:342
FunctionTestCodeC
(t *testing.T)
engine/compressors/code_langs_test.go:63
FunctionTestCodeCommentRemove
(t *testing.T)
engine/compressors/code_langs_test.go:91
FunctionTestCodeCommentRemovePreservesDirectives
(t *testing.T)
engine/compressors/code_langs_test.go:145
FunctionTestCodeCompressorGoElidesBodiesKeepsSignatures
(t *testing.T)
engine/compressors/code_test.go:41
← previousnext →9,001–9,100 of 12,853, ranked by callers