MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

FunctionTestBedrockHostAndRegionInventory
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:150
FunctionTestBedrockInvoke_EndToEndTruthfulUsage
End-to-end (success criterion 3): a Bedrock invoke routed through the adapter against a Bedrock-shaped httptest stub records a truthful usage row — to
proxy/providers/bedrock/usage_test.go:409
FunctionTestBedrockRegionPrecedence
(t *testing.T)
proxy/internal/config/config_test.go:409
FunctionTestBehaviorBudgetCannotErasePartialRetroResult
(t *testing.T)
proxy/internal/store/learn_retro_test.go:925
FunctionTestBehaviorScanDedupsUsageByMessageID
The base behavior scan (dumbzone, turn counts) must apply the same once-per-API-response rule as the retro pass.
proxy/internal/store/learn_retro_test.go:418
FunctionTestBehaviorScanPlanJSONIsDeterministic
(t *testing.T)
proxy/internal/store/source_codex_test.go:61
FunctionTestBehavioralSinksAreNotFingerprinted
TestBehavioralSinksAreNotFingerprinted keeps the mechanism honest in the other direction: a sink with no file to edit must not invent a target.
proxy/internal/store/learn_attribution_test.go:58
FunctionTestBestOfJSONCanChooseElisionAndReportsExplicitFalse
(t *testing.T)
engine/engine_test.go:181
FunctionTestBestOfJSONUsesInjectedCounterAndReportsTOON
(t *testing.T)
engine/engine_test.go:149
FunctionTestBillingLimitPausesWithCloudsNotice
A billing limit pauses like the allowance and keeps Cloud's notice for status.
proxy/internal/cloudlink/link_test.go:735
FunctionTestBindingHealIsRemembered
After a served binding heal the session's later requests ask for drop_block up front (one attempt each), a forked child of it too.
proxy/internal/gateway/route_effort_test.go:663
FunctionTestBindingHealOnTheAskedModel
The binding heal is for history the marks changed: a routed model is left to the original-bytes retry on the asked one (which rejects the decision), a
proxy/internal/gateway/route_effort_test.go:636
FunctionTestBindingHealOnlyWhereTheRouteStageChangedTheSession
The binding heal is only for sessions the route stage changed, and never for an agent that chose its own block_binding.
proxy/internal/gateway/route_effort_test.go:1285
FunctionTestBindingHealStripsWhereDropBlockIsRefused
With between_tools (no drop_block there) the heal strips thinking from the failing message on, and later requests strip the same blocks up front.
proxy/internal/gateway/route_effort_test.go:687
FunctionTestBodyCaptureConcurrentRecordsAreRaceFree
The writer is a single goroutine behind a bounded queue: concurrent records must be race-free, and every record must be either written or counted as d
proxy/internal/gateway/capture_test.go:278
FunctionTestBodyCaptureDisabledIsNilAndSafe
Capture is off by default. A nil capture must be safe to call — the proxy path calls it unconditionally.
proxy/internal/gateway/capture_test.go:90
FunctionTestBodyCaptureOmitsDuplicateUpstreamButProvesEquality
A pass-through would otherwise write the same payload twice. The hashes still have to prove the two sides matched, because "identical" is a claim.
proxy/internal/gateway/capture_test.go:171
FunctionTestBodyCaptureOversizeBodyOmitsBytesButHashesWholeBody
Over the per-side cap the bytes are dropped entirely rather than stored as a prefix that would fail the record's own hash. The hash and length still d
proxy/internal/gateway/capture_test.go:197
FunctionTestBodyCaptureRecordsBothSidesWhenTransformed
A transformed request is the case the instrument exists for: both sides must be recoverable, byte for byte, from the capture alone.
proxy/internal/gateway/capture_test.go:101
FunctionTestBodyCaptureRoundTripsInvalidUTF8
The bodies this instrument diagnoses are arbitrary bytes: a truncating compressor cuts mid-rune, and a JSON string would swap the invalid sequence for
proxy/internal/gateway/capture_test.go:146
FunctionTestBodyCaptureSequencesEachRequest
Each request gets its own file, and the sequence is what puts a session's requests back in order — the whole point is reading prefix growth turn by tu
proxy/internal/gateway/capture_test.go:250
FunctionTestBodyCaptureStreamedBodyRecordsHashWithoutBytes
A caller that streamed the body through without ever holding it whole (the ChatGPT over-limit path) can still state the length and hash truthfully. It
proxy/internal/gateway/capture_test.go:224
FunctionTestBreakpointPlanAdapterSeam
TestBreakpointPlanAdapterSeam pins the capability method the gateway calls.
proxy/providers/anthropic/breakpoint_plan_test.go:296
FunctionTestBreakpointPlanClosesTheCompositionDeadZone
TestBreakpointPlanClosesTheCompositionDeadZone is F5: when the sibling anthropic-cache-breakpoints optimizer has already put a breakpoint on the tool
proxy/providers/anthropic/breakpoint_plan_test.go:214
FunctionTestBreakpointPlanColdStartConvertsStringSystem
TestBreakpointPlanColdStartConvertsStringSystem covers the one reshape the cold arm performs: a string system prompt has no block that can hold a mark
proxy/providers/anthropic/breakpoint_plan_test.go:110
FunctionTestBreakpointPlanColdStartIsDeterministic
TestBreakpointPlanColdStartIsDeterministic pins the arm for agents that manage no caching at all: the planner places its own set (tools tail, system t
proxy/providers/anthropic/breakpoint_plan_test.go:62
FunctionTestBreakpointPlanColdStartIsPAYGOnly
TestBreakpointPlanColdStartIsPAYGOnly: a subscription/OAuth session's caching is its harness's business. With no cache_control to guard, the planner d
proxy/providers/anthropic/breakpoint_plan_test.go:136
FunctionTestBreakpointPlanIsOffByDefault
TestBreakpointPlanIsOffByDefault is the default-off pin: an unconfigured wrap forwards the request byte-identically and claims nothing.
proxy/internal/gateway/breakpoint_plan_test.go:58
FunctionTestBreakpointPlanLeavesShapesItCannotWalk
TestBreakpointPlanLeavesShapesItCannotWalk covers the byte-safe rule: anything the planner cannot parse exactly forwards unchanged.
proxy/providers/anthropic/breakpoint_plan_test.go:265
FunctionTestBreakpointPlanLookbackGuardIsDisabled
TestBreakpointPlanLookbackGuardIsDisabled pins the disablement, so a future change has to be deliberate rather than accidental. The guard that shippe
proxy/providers/anthropic/breakpoint_plan_test.go:153
FunctionTestBreakpointPlanNeedsASession
TestBreakpointPlanNeedsASession: without x-cave-session there is no stable scope to key on, so OpenAI's arm declines rather than invent one.
proxy/internal/gateway/breakpoint_plan_test.go:180
FunctionTestBreakpointPlanNeverMovesHarnessBreakpoints
TestBreakpointPlanNeverMovesHarnessBreakpoints is the arm's core promise, and with the guard disabled it holds in its strongest form: a request whose
proxy/providers/anthropic/breakpoint_plan_test.go:178
FunctionTestBreakpointPlanNeverRunsInRecordMode
TestBreakpointPlanNeverRunsInRecordMode: record is an unconditional wire-preservation boundary, and so is the request-wide pass-through opt-out.
proxy/internal/gateway/breakpoint_plan_test.go:126
FunctionTestBreakpointPlanPlacesAndDiscloses
TestBreakpointPlanPlacesAndDiscloses: enabled, the planner places its cold-start set, names itself on the response and the row — and mints nothing.
proxy/internal/gateway/breakpoint_plan_test.go:96
FunctionTestBreakpointPlanRespectsTheFourBudget
TestBreakpointPlanRespectsTheFourBudget: a request already carrying the provider's maximum is left completely alone.
proxy/providers/anthropic/breakpoint_plan_test.go:195
FunctionTestBreakpointPlanSetsOpenAISessionCacheKey
TestBreakpointPlanSetsOpenAISessionCacheKey covers the cross-provider half: OpenAI's routing key is set from the session, hashed, and the raw session
proxy/internal/gateway/breakpoint_plan_test.go:158
FunctionTestBreakpointPlanSkipsDeferredToolsThinkingBlocksEmptySystemAndAutoCache
(t *testing.T)
proxy/providers/anthropic/breakpoint_plan_test.go:323
FunctionTestBreakpointPlanSystemBlocksCountAsContent
TestBreakpointPlanSystemBlocksCountAsContent: a marker on the system tail says the caller IS caching content blocks, so the dead-zone fall-through mus
proxy/providers/anthropic/breakpoint_plan_test.go:285
FunctionTestBreakpointPlanUnknownFlagValueIsOff
TestBreakpointPlanUnknownFlagValueIsOff: the flag fails closed. Anything the config loader does not recognize normalizes to "off", and the decision po
proxy/internal/gateway/breakpoint_plan_test.go:78
FunctionTestBrevity_ChatCompletionsUsesMaxCompletionTokens
(t *testing.T)
proxy/providers/openai/output_brevity_test.go:58
FunctionTestBrevity_ComposesWithCacheKey
Both optimizers can run together (pipeline): cache key + brevity.
proxy/providers/openai/output_brevity_test.go:67
FunctionTestBrevity_RecordModePassThrough
(t *testing.T)
proxy/providers/openai/output_brevity_test.go:42
FunctionTestBrevity_RequiresBothFlagAndEvalGate
(t *testing.T)
proxy/providers/openai/output_brevity_test.go:17
FunctionTestBrevity_RespectsCallerCap
(t *testing.T)
proxy/providers/openai/output_brevity_test.go:50
FunctionTestBrokenImports
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:131
FunctionTestBrokenImportsSkipsCodexOnlyFiles
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:351
FunctionTestBrowseUpstreamSurvivesCanceledFirstCallContext
(t *testing.T)
mcp/codemode/stdio_js_builtin_test.go:946
FunctionTestBrowserToolsExactlyFour
(t *testing.T)
browse/session_test.go:76
FunctionTestBrowserToolsFailClosedOnInvalidArgumentsAndDriverErrors
(t *testing.T)
browse/session_test.go:260
FunctionTestBudgetShedsRangesBeforeEnumerations
TestBudgetShedsRangesBeforeEnumerations pins the shedding order. An enumeration answers whether anything in state X was elided; a range only bounds a
engine/compressors/invariants_test.go:315
FunctionTestBuildAdapters_DefaultCompatBareRoutePreservesConfiguredBase
(t *testing.T)
proxy/internal/standalone/standalone_test.go:908
FunctionTestBuildAdapters_OpenCodeGoRouteUsesOpenCodeUpstream
(t *testing.T)
proxy/internal/standalone/standalone_test.go:854
FunctionTestBuildAdapters_OpenCodeGoUserEntryReplacesBuiltin
TestBuildAdapters_OpenCodeGoUserEntryReplacesBuiltin shows that a user `compat.opencode-go` entry replaces the built-in upstream on the adapter path.
proxy/internal/standalone/standalone_test.go:870
FunctionTestBuildAdapters_PassesCompatWireDialect
TestBuildAdapters_PassesCompatWireDialect verifies the mount's configured usage dialect reaches the adapter's usage scanner (issue #1026): an anthropi
proxy/internal/standalone/standalone_test.go:793
FunctionTestBuildAdapters_RegistersBedrockFromResolvedRegion
(t *testing.T)
proxy/internal/standalone/standalone_test.go:931
FunctionTestBuildAdapters_RegistersNamedCompatBeforeLegacy
(t *testing.T)
proxy/internal/standalone/standalone_test.go:733
FunctionTestBuildCreatesDeterministicMapAndTaskEvidenceWithoutSensitiveContent
(t *testing.T)
proxy/internal/repointel/index_test.go:25
FunctionTestBuildLearnPlanSurfacesHashedFailureLoopEvidence
(t *testing.T)
proxy/internal/store/learn_loops_test.go:55
FunctionTestBuildLearnSimulationFilteredUsesPrimaryFilteredTurnCount
(t *testing.T)
proxy/internal/store/learn_simulate_test.go:50
FunctionTestBuildLearnTrendsBucketsAndCompares
(t *testing.T)
proxy/internal/store/learn_trends_test.go:79
FunctionTestBuildLearnTrendsInsufficientData
(t *testing.T)
proxy/internal/store/learn_trends_test.go:127
FunctionTestBuildPrefersGitIgnoreRulesOverNameHeuristics
git already knows which files are source: an ignored dependency tree never reaches the index even when its directory name is unknown to us.
proxy/internal/repointel/index_test.go:159
FunctionTestBuiltinCompat_EntriesPassValidation
buildAdapters panics on a compat entry that fails validation. Only config.Load validates the user entries. This test validates the built-in entries.
proxy/internal/config/config_test.go:492
FunctionTestBuiltinRepoPRAndBrowseUpstreams
(t *testing.T)
mcp/codemode/stdio_js_builtin_test.go:356
FunctionTestBundleReportsScannedAndRankedCountsSeparately
(t *testing.T)
proxy/internal/repointel/index_test.go:412
FunctionTestBuriedRules
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:230
FunctionTestByteSafeClasses
(t *testing.T)
engine/safety/safety_test.go:37
FunctionTestCCRFailedOpenProcess
The supported connection hook stops at a deterministic point after the connection opens its journals, before Open records their identities. Separate w
engine/ccr/store_reopen_race_test.go:26
FunctionTestCCRGenerationProcess
Run each connection in its own process: same-process SQLite VFS shared-memory caches can hide the actual cross-process journal failure. The helper exi
engine/ccr/store_generation_test.go:39
FunctionTestCCROpenGenerationProcess
(t *testing.T)
engine/ccr/store_generation_test.go:660
FunctionTestCCRWriteFailureReturnsPassThroughResult
(t *testing.T)
engine/engine_test.go:256
FunctionTestCDPActionabilityRejectsDisabledButton
(t *testing.T)
browse/cdp_integration_test.go:32
FunctionTestCDPFullTokenEfficientReadActVerifyRecoverLoop
(t *testing.T)
browse/cdp_integration_test.go:69
FunctionTestCDPQueryScalesOnTwoHundredRowDashboard
(t *testing.T)
browse/cdp_integration_test.go:182
FunctionTestCDPStaleUIDFailsClosedAfterDOMReplacement
(t *testing.T)
browse/cdp_integration_test.go:148
FunctionTestCROnlyDocumentPipelineAndDetection
(t *testing.T)
engine/terminal_test.go:35
FunctionTestCacheBreakpoint_AllDeferredToolsFallsBackToSystem
(t *testing.T)
proxy/providers/anthropic/cache_breakpoints_test.go:80
FunctionTestCacheBreakpoint_DisabledIsPassthrough
(t *testing.T)
proxy/providers/anthropic/cache_breakpoints_test.go:148
FunctionTestCacheBreakpoint_IdempotentAndRespectsExisting
(t *testing.T)
proxy/providers/anthropic/cache_breakpoints_test.go:172
FunctionTestCacheBreakpoint_NoStablePrefixOrBadJSON
(t *testing.T)
proxy/providers/anthropic/cache_breakpoints_test.go:196
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
← previousnext →8,801–8,900 of 12,853, ranked by callers