MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

FunctionTestOpenAIPAYGPrefixCacheUnavailablePassesThrough
TestOpenAIPAYGPrefixCacheUnavailablePassesThrough pins the fail-open rule: a replacement the proxy cannot persist could not be reproduced next turn, s
proxy/internal/gateway/prefix_stability_payg_test.go:230
FunctionTestOpenAIPAYGPrefixStableAcrossTurns
TestOpenAIPAYGPrefixStableAcrossTurns is the exact probe that failed: an OpenAI PAYG compress session compresses turn 1, and turn 2 must still carry t
proxy/internal/gateway/prefix_stability_payg_test.go:92
FunctionTestOpenAIPAYGPrefixStableSurvivesRestart
TestOpenAIPAYGPrefixStableSurvivesRestart pins durability: a new process whose compressor now emits different bytes must still send what the FIRST pro
proxy/internal/gateway/prefix_stability_payg_test.go:173
FunctionTestOpenAIPAYGPrefixStableThreeTurns
TestOpenAIPAYGPrefixStableThreeTurns extends the invariant past a single hop and checks the literal byte prefix, which is what the provider's automati
proxy/internal/gateway/prefix_stability_payg_test.go:119
FunctionTestOpenAIPAYGPrefixStableToolMessages
TestOpenAIPAYGPrefixStableToolMessages runs the invariant over tool messages, which carry the bulk of an agent conversation's tokens.
proxy/internal/gateway/prefix_stability_payg_test.go:152
FunctionTestOpenAIPAYGPrefixSubstitutionBooksSavingsOnce
TestOpenAIPAYGPrefixSubstitutionBooksSavingsOnce is the no-fake-savings pin: a message's token delta is counted on the turn it was first compressed an
proxy/internal/gateway/prefix_stability_payg_test.go:250
FunctionTestOpenAIPrefixStableTenTurns
(t *testing.T)
proxy/internal/gateway/prefix_stability_test.go:294
FunctionTestOpenAIPromptCacheKeyCannotClaimCausalSavings
(t *testing.T)
proxy/internal/gateway/pricing_semantics_test.go:143
FunctionTestOpenAIStreamingWithMCPDisabledStaysByteIdentical
(t *testing.T)
proxy/internal/gateway/local_turn_effort_test.go:424
FunctionTestOpenAddsJulianDayIndexToExistingDatabase
(t *testing.T)
proxy/internal/store/stats_test.go:364
FunctionTestOpenAllowsResolvedStickyParentSymlink
(t *testing.T)
engine/ccr/store_permissions_test.go:91
FunctionTestOpenAllowsStickyTemporaryDirectory
(t *testing.T)
engine/ccr/store_permissions_test.go:76
FunctionTestOpenClosePeerPreservesLiveWriter
The writer must stay open while independent consumers come and go. Closing the writer before checking would checkpoint its WAL and hide lost locks.
engine/ccr/store_locking_test.go:30
FunctionTestOpenCodeChatGPTOAuthReroutesToSubscriptionUpstream
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:1076
FunctionTestOpenCodeChatGPTSubscriptionDetection
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:1124
FunctionTestOpenCodeReadEnvelopeUnwrapsAndRewraps
(t *testing.T)
engine/harness_envelopes_test.go:130
FunctionTestOpenCodeSessionSourceAddsExclusiveCacheAndRoundTripsPartLocator
(t *testing.T)
proxy/internal/store/source_opencode_test.go:12
FunctionTestOpenDoesNotRecreateDatabaseLostAfterPreparation
(t *testing.T)
engine/ccr/store_generation_test.go:565
FunctionTestOpenMigratesLegacyMemorySchema
(t *testing.T)
mem/store_test.go:330
FunctionTestOpenRecoveryStoreCreatesFreshCavemanHome
(t *testing.T)
browse/cmd/caveman-browse/main_test.go:22
FunctionTestOpenRefusesGenerationChangesAfterSQLiteInitialization
(t *testing.T)
engine/ccr/store_generation_test.go:711
FunctionTestOpenRejectsDatabaseSymlink
(t *testing.T)
engine/ccr/store_permissions_test.go:42
FunctionTestOpenRejectsImpossibleBudgetBeforePreparingFiles
(t *testing.T)
engine/ccr/store_reopen_race_test.go:132
FunctionTestOpenRejectsWritableParentDirectory
(t *testing.T)
engine/ccr/store_permissions_test.go:60
FunctionTestOpenResolverIsTheOperator
(t *testing.T)
proxy/internal/identity/identity_test.go:157
FunctionTestOpenRouterPinsTheProviderASessionIsWarmOn
Sticky on OpenRouter: x-session-id from the session (hashed); once warm on one of its providers the session's entry is pinned there with no fallback;
proxy/internal/gateway/route_cache_test.go:48
FunctionTestOpenSecuresDatabaseAndSidecarPermissions
(t *testing.T)
engine/ccr/store_permissions_test.go:12
FunctionTestOpenUsesCanonicalParentAfterSymlinkSwap
(t *testing.T)
engine/ccr/store_permissions_test.go:114
FunctionTestOrdinaryFunctionResponseStaysRewritable
(t *testing.T)
proxy/providers/gemini/recovery_exempt_test.go:47
FunctionTestOriginalUnderAMissingKeyIsResealed
GO-4: a choice whose original no configured key opens keeps its bytes (the provider cache keeps its prefix): the request's verified content is sealed
proxy/internal/middleware/hardening_test.go:254
FunctionTestOriginalsDoNotOutliveTheirScopeThroughASibling
GO-8: an original is reclaimed with the last scope that references it, not kept alive by a sibling scope of the same authority.
proxy/internal/middleware/hardening_test.go:400
FunctionTestOriginalsFollowTheirScope
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:456
FunctionTestOriginalsSealedAtRestAndKeysRotate
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:519
FunctionTestOtherBadRequestsAreNeverRetried
Only a 400 that names pool is retried, once, without it; the ask text goes once otherwise.
proxy/internal/cloudlink/pool_test.go:208
FunctionTestOutcomeBudgetSkipsRatherThanMiscounts
TestOutcomeBudgetSkipsRatherThanMiscounts proves the total git budget bounds the whole join, and that a repository skipped for time is EXCLUDED and di
proxy/internal/store/detect_outcomes_test.go:143
FunctionTestOutcomeCohortsSplitOnCommitOverlap
TestOutcomeCohortsSplitOnCommitOverlap proves the core join: sessions whose window contains a commit land in one cohort, the rest in the other, and th
proxy/internal/store/detect_outcomes_test.go:20
FunctionTestOutcomeOmitsRepositoriesGitCannotAnswer
TestOutcomeOmitsRepositoriesGitCannotAnswer is the fail-closed guard. A directory that is not a git checkout must be DROPPED, never counted as commitl
proxy/internal/store/detect_outcomes_test.go:78
FunctionTestOutcomeSilentOnThinHistory
TestOutcomeSilentOnThinHistory keeps cohorts off a machine where they would be noise.
proxy/internal/store/detect_outcomes_test.go:94
FunctionTestOversizedInboundRejectedWithCaveCode
An inbound message longer than the cap must be rejected with cave_payload_too_large, and the stream must survive to serve the next request. Sub-issue
mcp/server_test.go:685
FunctionTestOversizedResultRejectedWithCaveCode
A tool result larger than the cap must be replaced with a fail-closed cave_payload_too_large error rather than dumped whole into host context. Sub-iss
mcp/server_test.go:708
FunctionTestOwnerIndexCreatedOnStoreWithoutDataRefColumn
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:124
FunctionTestOwnerLookupUsesIndex
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:108
FunctionTestOwnerTieBreakUsesSmallestObjectID
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:58
FunctionTestPAYGStreamWithMCPToolIsNotAStreamSwitch
interleaved is a Claude Code process: the main thread, two subagents with their own system prompts, a haiku side request and the prompt-suggestion for
proxy/internal/gateway/cache_prefix_invariant_test.go:946
FunctionTestPackKeepsPinnedItemsWhenTheyFit
(t *testing.T)
engine/contextwindow/contextwindow_test.go:36
FunctionTestPackReservesTokens
(t *testing.T)
engine/contextwindow/contextwindow_test.go:67
FunctionTestPackSelectsBM25RelevantItemsWithinBudget
(t *testing.T)
engine/contextwindow/contextwindow_test.go:11
FunctionTestPackUsesRecencyWhenQueryIsEmpty
(t *testing.T)
engine/contextwindow/contextwindow_test.go:53
FunctionTestPageCapUsesActualPageSize
(t *testing.T)
engine/ccr/store_full_test.go:79
FunctionTestPageExhaustionBelowPayloadBudgetReportsPageCap
(t *testing.T)
engine/ccr/store_full_test.go:116
FunctionTestPageGeometryPatchAligned
(t *testing.T)
engine/pixel/render_test.go:276
FunctionTestPagingMarkerNumbersAndDegenerate
(t *testing.T)
engine/pixel/textprep_test.go:121
FunctionTestParallelToolCallsCrossDirections
--- 3. disable_parallel_tool_use <-> parallel_tool_calls ------------------------
proxy/internal/translate/wire_gaps_test.go:166
FunctionTestParseCountTokens
(t *testing.T)
proxy/providers/gemini/count_tokens_test.go:48
FunctionTestParseCountTokens
(t *testing.T)
proxy/providers/bedrock/count_tokens_test.go:37
FunctionTestParseCountTokens
(t *testing.T)
proxy/providers/anthropic/count_tokens_test.go:45
FunctionTestParseCountTokens
(t *testing.T)
proxy/providers/openai/count_tokens_test.go:148
FunctionTestParseErrorResyncsAndKeepsServing
A malformed line must not kill the session: the server responds -32700 for the bad line, RESYNCHRONIZES to the next newline, and keeps serving. Sub-is
mcp/server_test.go:582
FunctionTestParseJSONTOONRejectsDuplicateKeys
(t *testing.T)
engine/compressors/toon_roundtrip_test.go:20
FunctionTestParseModelPath_VersionedModelWithColon
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:238
FunctionTestParseNonNegativeInt
(t *testing.T)
proxy/providers/internal/counttokens/counttokens_test.go:184
FunctionTestParsePredictPath_VersionedModelWithAtDate
(t *testing.T)
proxy/providers/vertex/vertex_test.go:112
FunctionTestParseRetrieveCallReadsHandleAndQuery
(t *testing.T)
proxy/internal/gateway/retrieve_tool_test.go:69
FunctionTestParseUsageBytes_AnthropicCacheCreationTTLBreakdown
(t *testing.T)
proxy/providers/adapter_usage_test.go:379
FunctionTestParseUsageBytes_CompleteStreamIsNotStampedIncomplete
A complete stream must NOT be stamped: the label has to mean something.
proxy/providers/adapter_raw_usage_test.go:182
FunctionTestParseUsageBytes_ExplicitNullCountersAreMalformed
(t *testing.T)
proxy/providers/adapter_usage_test.go:167
FunctionTestParseUsageBytes_GeminiNestedToolFinishReasonIsNotTerminal
(t *testing.T)
proxy/providers/adapter_usage_test.go:155
FunctionTestParseUsageBytes_GeminiStreamingJSONArray
(t *testing.T)
proxy/providers/adapter_usage_test.go:146
FunctionTestParseUsageBytes_LargeSingleLine
A single SSE/JSONL line larger than the old 4MB cap must not silently drop usage.
proxy/providers/adapter_usage_test.go:576
FunctionTestParseUsageBytes_MalformedCountersFailClosed
(t *testing.T)
proxy/providers/adapter_usage_test.go:332
FunctionTestParseUsageBytes_MissingAndPartialUsage
(t *testing.T)
proxy/providers/adapter_usage_test.go:359
FunctionTestParseUsageBytes_NonStream
These payloads mirror what cmd/provider-stub and the real providers emit, so the assertions double as a contract for the usage parser.
proxy/providers/adapter_usage_test.go:17
FunctionTestParseUsageBytes_NormalizesProviderSemantics
(t *testing.T)
proxy/providers/adapter_usage_test.go:284
FunctionTestParseUsageBytes_RawUsageAbsentWhenNoUsageReported
No usage-bearing chunk at all (e.g. a provider error body): RawUsage stays empty rather than capturing something unrelated.
proxy/providers/adapter_raw_usage_test.go:78
FunctionTestParseUsageBytes_RawUsageAgreesWithTypedCountersOnNonMonotonicStream
CW 15: the merge rule its own doc claimed (max, matching the typed counters) and the rule it implemented (last-non-null-wins) diverge on a non-monoton
proxy/providers/adapter_raw_usage_test.go:123
FunctionTestParseUsageBytes_RawUsageMergesAnthropicSplitAcrossChunks
C8 review finding 4: RawUsage must MERGE across chunks, not keep only the last one. Anthropic is the concrete failure case this guards: message_start
proxy/providers/adapter_raw_usage_test.go:92
FunctionTestParseUsageBytes_RawUsageNonStream
C8c: raw usage persistence. The gateway already normalizes provider usage into typed token fields (InputTokens, OutputTokens, ...); RawUsage exists so
proxy/providers/adapter_raw_usage_test.go:28
FunctionTestParseUsageBytes_RawUsageNullDoesNotEraseEarlierValue
A later chunk's explicit JSON null for a field must never erase an earlier chunk's real value for that SAME field — only a non-null value may overwrit
proxy/providers/adapter_raw_usage_test.go:197
FunctionTestParseUsageBytes_RawUsageStreamCapturesTerminalChunk
A streamed OpenAI chat-completions response with stream_options.include_usage emits one final chunk carrying usage on an otherwise-empty choices array
proxy/providers/adapter_raw_usage_test.go:54
FunctionTestParseUsageBytes_Stream
(t *testing.T)
proxy/providers/adapter_usage_test.go:90
FunctionTestParseUsageBytes_TruncatedStreamStampsRawUsageIncomplete
CW 6: when the parser zeroes a typed counter because the stream ended without its terminal usage event, the raw blob still carried the provisional cou
proxy/providers/adapter_raw_usage_test.go:147
FunctionTestParseUsage_AnthropicBinaryStreamNullTerminalCounterIsMalformed
(t *testing.T)
proxy/providers/bedrock/usage_test.go:111
FunctionTestParseUsage_AnthropicBinaryStreamWithoutFinalUsageIsPartial
(t *testing.T)
proxy/providers/bedrock/usage_test.go:97
FunctionTestParseUsage_AnthropicInvokeSnakeCaseWithCacheHit
InvokeModel on an Anthropic model returns the native snake_case usage shape, including cache telemetry.
proxy/providers/bedrock/usage_test.go:41
FunctionTestParseUsage_BedrockExactDuplicateAliasesRemainUnambiguous
(t *testing.T)
proxy/providers/bedrock/usage_test.go:393
FunctionTestParseUsage_BedrockMixedUsageFamiliesFailClosed
(t *testing.T)
proxy/providers/bedrock/usage_test.go:361
FunctionTestParseUsage_BedrockRawTotalsFailClosedAndKeepMantleSemantics
(t *testing.T)
proxy/providers/bedrock/usage_test.go:294
FunctionTestParseUsage_BedrockTotalIncludesCacheBuckets
(t *testing.T)
proxy/providers/bedrock/usage_test.go:257
FunctionTestParseUsage_ClaudeMessagesSnakeCaseWithCacheHit
Claude on Vertex returns the native Anthropic Messages usage (snake_case), including cache telemetry. Also understood by the shared parser.
proxy/providers/vertex/usage_test.go:42
FunctionTestParseUsage_CompleteBedrockStreamIsNotStampedIncomplete
The label has to mean something: a complete Bedrock stream must not carry it.
proxy/providers/bedrock/usage_test.go:565
FunctionTestParseUsage_ConverseAWSBlogTokenCountAliases
(t *testing.T)
proxy/providers/bedrock/usage_test.go:272
FunctionTestParseUsage_ConverseCacheDetailsFailClosed
(t *testing.T)
proxy/providers/bedrock/usage_test.go:212
FunctionTestParseUsage_ConverseCacheDetailsPreserveTTLBreakdown
(t *testing.T)
proxy/providers/bedrock/usage_test.go:193
FunctionTestParseUsage_ConverseCacheWrite
(t *testing.T)
proxy/providers/bedrock/usage_test.go:175
FunctionTestParseUsage_ConverseCamelCase
Converse responses report usage in camelCase, which the shared ParseUsageBytes does not understand — the Bedrock adapter must parse it itself.
proxy/providers/bedrock/usage_test.go:22
FunctionTestParseUsage_ConverseStreamBinaryEvent
(t *testing.T)
proxy/providers/bedrock/usage_test.go:60
FunctionTestParseUsage_GeminiNoCacheStaysUnknown
No cache telemetry -> cache_status stays the honest "unknown".
proxy/providers/vertex/usage_test.go:62
FunctionTestParseUsage_GeminiUsageMetadata
Gemini on Vertex returns usage in usageMetadata (camelCase). The shared ParseUsageBytes understands this shape, so the Vertex adapter needs no custom
proxy/providers/vertex/usage_test.go:18
FunctionTestParseUsage_InvalidEventCRCIsUnavailable
(t *testing.T)
proxy/providers/bedrock/usage_test.go:84
FunctionTestParseUsage_MantleSSERequiresTerminalUsage
(t *testing.T)
proxy/providers/bedrock/usage_test.go:126
← previousnext →10,001–10,100 of 12,853, ranked by callers