MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

FunctionTestPayloadRedactsVendorPrefixedTokens
A vendor-published prefix is direct evidence, so it gets its own rule rather than relying on the assignment shape or on entropy. None of these was red
shared/platform/redact/payload_test.go:655
FunctionTestPayloadRedactsWeldedKeyAssignments
--- Boundary-screen bypasses closed 2026-07-31 ----------------------------- The key-assignment pattern required the keyword to be ADJACENT to the del
shared/platform/redact/payload_test.go:627
FunctionTestPayloadRejectsOversizeBody
(t *testing.T)
shared/platform/redact/payload_test.go:229
FunctionTestPayloadReportNeverEchoesMatches
(t *testing.T)
shared/platform/redact/payload_test.go:243
FunctionTestPayloadRuleSetHashTracksRules
(t *testing.T)
shared/platform/redact/payload_test.go:286
FunctionTestPayloadStalePrescreenCannotDropAMatch
TestPayloadStalePrescreenCannotDropAMatch is the guard on the optimisation in finding 3. The prescreen is derived once and re-derived only after a rul
shared/platform/redact/payload_test.go:525
FunctionTestPendingSetsAreKeptPerRequestShape
A side request starting with the same message as a compacted conversation keeps its own pending set: the continuation still takes the session over.
proxy/internal/gateway/route_effort_test.go:1648
FunctionTestPerMessageBetaHeader
(t *testing.T)
proxy/internal/gateway/route_effort_test.go:518
FunctionTestPerMessageEffortCountsTheAgentsOwn
The agent's own per-message effort counts as in force, and a new mark goes after it, never before.
proxy/internal/gateway/route_effort_test.go:316
FunctionTestPerMessageEffortFreshConversationSetsTheTopLevel
A fresh conversation needs no mark: its top-level effort is the routed one, and stays fixed for the session even though the agent keeps sending its ow
proxy/internal/gateway/route_effort_test.go:268
FunctionTestPerMessageEffortHealsARefusedMark
Marks refused: one retry with top-level effort only (no marks, no beta); once that is served the session's latch is on and the next ask says so.
proxy/internal/gateway/route_effort_test.go:339
FunctionTestPerMessageEffortHealsTheThinkingBinding
A broken thinking binding: one retry asking the provider to drop the unbound thinking blocks, marks kept.
proxy/internal/gateway/route_effort_test.go:367
FunctionTestPerMessageEffortLatchesOnRefusalWithoutMarks
Refusal wording on a request without marks latches the session at once; an unrelated 400 neither heals nor latches. Neither retries more than once.
proxy/internal/gateway/route_effort_test.go:410
FunctionTestPerMessageEffortMarksReplayByteIdentical
(t *testing.T)
proxy/internal/gateway/route_effort_test.go:192
FunctionTestPerMessageEffortSideRequestsAndChildren
Compaction and side requests get the session's marks back but never a new one; a forked child resending the parent's history inherits its marks.
proxy/internal/gateway/route_effort_test.go:284
FunctionTestPerMessageHealReadsACompressedRefusal
A compressed refusal is read decoded: the heal and the latch still fire.
proxy/internal/gateway/route_effort_test.go:597
FunctionTestPerMessageMarksComeBackOnEveryAnswer
A session's marks come back whatever the answer: a Cloud failure, routing off, or a top-level answer without an effort.
proxy/internal/gateway/route_effort_test.go:714
FunctionTestPerMessageMarksSurviveMovingCacheControl
Agents and the breakpoint planner move cache_control every request; the anchors ignore it, so the marks stay put.
proxy/internal/gateway/route_effort_test.go:560
FunctionTestPerRequestAsksEveryTime
A compaction or side request is asked every time and carries no ask text; a turn's tool loop asks once.
proxy/internal/cloudlink/route_effort_test.go:197
FunctionTestPersistedChoicesSurviveARevisionChange
Scope identity no longer includes the policy revision, so an upgrade that changes the revision keeps every persisted choice and its exact bytes.
proxy/internal/middleware/protocol_v11_test.go:427
FunctionTestPersistentRuntimePrunesAbandonedCorrelationEntries
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1452
FunctionTestPersistentStoreBudgetRefusesNewRecoveryAndPreservesExisting
(t *testing.T)
engine/ccr/store_test.go:350
FunctionTestPiChatGPTMalformedZstdFailsOpenByteExact
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:198
FunctionTestPiChatGPTOAuthZstdRoutesAndCompresses
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:97
FunctionTestPiChatGPTSubscriptionDetection
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:60
FunctionTestPiChatGPTZstdTransformed4xxRetriesExactOriginalWire
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:153
FunctionTestPiRootsHonorRelocationVariables
Pi reads PI_CODING_AGENT_DIR as its agent directory and PI_CODING_AGENT_SESSION_DIR as an outright session-storage override (both tilde-expanded via e
proxy/internal/store/agent_roots_test.go:108
FunctionTestPiSessionSourceHonorsRelocatedSessionsDirs
TestPiSessionSourceHonorsRelocatedSessionsDirs proves the scanner follows Pi's relocation variables instead of only <CAVEMAN_PI_ROOT>/agent/sessions.
proxy/internal/store/source_pi_test.go:154
FunctionTestPiSessionSourceReadsUsageAndCompletesToolCalls
(t *testing.T)
proxy/internal/store/source_pi_test.go:80
FunctionTestPiTaskSpawnsCountsOnlySpawnTools
(t *testing.T)
proxy/internal/store/source_pi_test.go:259
FunctionTestPiUsageReadsOneSpellingNeverSums
(t *testing.T)
proxy/internal/store/source_pi_test.go:272
FunctionTestPingNeverSplitsAPacedRelayedEvent
(t *testing.T)
proxy/internal/translate/relay_framing_test.go:87
FunctionTestPingNeverSplitsARelayedEvent
(t *testing.T)
proxy/internal/translate/relay_framing_test.go:57
FunctionTestPinnedFailureRetriesTheEntryUnpinned
A pinned provider that fails: once more on the same OpenRouter entry without the pin, so the request stays on the pool model.
proxy/internal/gateway/route_cache_test.go:327
FunctionTestPinnedTransportErrorIsNeverResent
A transport error on a pinned send may come after OpenRouter read the request: never sent to OpenRouter again; the pin goes and the asked model runs.
proxy/internal/gateway/route_cache_test.go:349
FunctionTestPitchSixGeometry
TestPitchSixGeometry pins the reference pitch-6 page geometry: page height is 2*pad + (rows-1)*pitch + glyphH (descenders/ascenders both fit), and a h
engine/pixel/render_density_test.go:69
FunctionTestPixelModeAnthropicImagesAndStoresOriginal
(t *testing.T)
proxy/internal/gateway/pixel_test.go:69
FunctionTestPixelModeDisallowedModelPassesThrough
(t *testing.T)
proxy/internal/gateway/pixel_test.go:118
FunctionTestPixelModeGeminiImagesAllowedModel
(t *testing.T)
proxy/internal/gateway/pixel_test.go:284
FunctionTestPixelModeKeepsPreviousTurnStable
TestPixelModeKeepsPreviousTurnStable: pixel renders the live message, which the provider then caches as images. The next turn carries that message bel
proxy/internal/gateway/pixel_test.go:478
FunctionTestPixelModeMalformedJSONPassesThrough
(t *testing.T)
proxy/internal/gateway/pixel_test.go:259
FunctionTestPixelModeOpenAIImagesGPT56
(t *testing.T)
proxy/internal/gateway/pixel_test.go:310
FunctionTestPixelModeOpenAIKeepsPreviousTurnStable
TestPixelModeOpenAIKeepsPreviousTurnStable: OpenAI caches every long prompt implicitly, so the user message rendered on turn 1 must come back as the s
proxy/internal/gateway/pixel_test.go:511
FunctionTestPixelModeOpenAIResponsesStringInput
(t *testing.T)
proxy/internal/gateway/pixel_test.go:338
FunctionTestPixelModeOpenAIResponsesUserAndToolOutput
(t *testing.T)
proxy/internal/gateway/pixel_test.go:359
FunctionTestPixelModeRecordPassesThrough
(t *testing.T)
proxy/internal/gateway/pixel_test.go:149
FunctionTestPixelModeStoreFailurePassesThrough
(t *testing.T)
proxy/internal/gateway/pixel_test.go:231
FunctionTestPixelModeStreamingAnthropicMCPAndPlain
(t *testing.T)
proxy/internal/gateway/pixel_test.go:383
FunctionTestPixelModeSubscriptionDefaultPassesThrough
(t *testing.T)
proxy/internal/gateway/pixel_test.go:195
FunctionTestPixelRenderDefaultsToReflowWithOptOut
(t *testing.T)
engine/cmd/caveman-engine/main_test.go:103
FunctionTestPixelRenderDensityLabelMatchesPixels
The load-bearing invariant: for EVERY flag combination the reported density + layers must match the pixels actually drawn. Walk the matrix {plain, --d
engine/cmd/caveman-engine/pixel_density_test.go:167
FunctionTestPixelRenderDensityPageRatios
End-to-end: the same document rendered at three levels must produce the expected page-count ordering, and each report's resolved `density` field must
engine/cmd/caveman-engine/pixel_density_test.go:65
FunctionTestPixelRenderRejectsUnknownDensity
An invalid --density is a LOUD usage error on the dev surface (the engine's env path stays fail-closed-to-conservative; the flag does not).
engine/cmd/caveman-engine/pixel_density_test.go:245
FunctionTestPixelRenderReportsSummary
The summary line is what `caveman convert` gates on: it must count both sides (text vs. rendered image estimate) and total the per-page estimates exac
engine/cmd/caveman-engine/main_test.go:64
FunctionTestPixelUsageDocumentsNoReflow
(t *testing.T)
engine/cmd/caveman-engine/main_test.go:122
FunctionTestPlainTextPassesThrough
(t *testing.T)
engine/engine_test.go:216
FunctionTestPlaintextOriginalsRefusedOnceAKeyIsConfigured
S10: once a key is configured, plaintext originals are refused unless the operator is migrating, and each refusal is counted.
proxy/internal/middleware/hardening_test.go:335
FunctionTestPlanGptCollapseGatesAndClosedBoundaries
(t *testing.T)
engine/pixel/history_openai_test.go:57
FunctionTestPlanGptCollapsePinsLatestUserRequest
(t *testing.T)
engine/pixel/history_openai_test.go:160
FunctionTestPlanGptCollapseTokenFloorAndAppendOnlyImages
(t *testing.T)
engine/pixel/history_openai_test.go:117
FunctionTestPlanRowsLastTheReplayWindow
A plan row exists for idempotent replay only, so it lasts the replay window, not the whole retention.
proxy/internal/middleware/hardening_test.go:828
FunctionTestPlumbingDispatchWithMockEngine
(t *testing.T)
mcp/server_test.go:178
FunctionTestPoolAnswerHarnessEntryAppliesLikeModels
(t *testing.T)
proxy/internal/cloudlink/pool_test.go:117
FunctionTestPoolAnswerLocalLoginBecomesATarget
(t *testing.T)
proxy/internal/cloudlink/pool_test.go:92
FunctionTestPoolAnswerViaCloudGoesToTheGateway
(t *testing.T)
proxy/internal/cloudlink/pool_test.go:131
FunctionTestPoolAttemptIsOnTheRow
The row says a pool attempt happened: on a fallback, the entry and why it failed; on a served answer, the entry and the host's own answer id.
proxy/internal/gateway/route_pool_test.go:627
FunctionTestPoolClaudeCodeOnTheChatGPTLogin
A Claude Code request runs on the ChatGPT login (Responses only) and reads an Anthropic stream back; a refusal before the first byte falls back.
proxy/internal/gateway/route_pool_test.go:365
FunctionTestPoolCloudFailureBeforeContentFallsBack
A gateway 2xx that fails before content still falls back.
proxy/internal/gateway/route_pool_test.go:474
FunctionTestPoolCloudTargetCarriesTheAnsweredEffort
(t *testing.T)
proxy/internal/gateway/route_pool_test.go:460
FunctionTestPoolCloudTargetSendsTheCallersGrammarToTheGateway
(t *testing.T)
proxy/internal/gateway/route_pool_test.go:287
FunctionTestPoolConstructorsReturnParseErrorsWithoutDialing
(t *testing.T)
shared/platform/postgresconfig/postgresconfig_test.go:220
FunctionTestPoolCutStreamNeverEndsAsACleanEOF
(t *testing.T)
proxy/internal/gateway/route_pool_test.go:343
FunctionTestPoolFailureAfterHeadersBeforeContentFallsBack
A 2xx that fails before any content still falls back to the asked model.
proxy/internal/gateway/route_pool_test.go:422
FunctionTestPoolFailureBeforeTheFirstByteFallsBackToTheAskedModel
(t *testing.T)
proxy/internal/gateway/route_pool_test.go:250
FunctionTestPoolFallbackFitsTheEffortToTheAskedModel
A failed target falls back at the answered effort fitted to the asked model: the word was chosen for the target, and minimal to Claude or max to OpenA
proxy/internal/gateway/route_pool_test.go:506
FunctionTestPoolHostGetsItsOwnReasoningBackOnTheNextTurn
The pool host gets its own reasoning back on the next turn: the harness path's cleaning never touches what the pool host is sent.
proxy/internal/gateway/route_pool_test.go:402
FunctionTestPoolLocalTargetStreamsBackInTheCallersGrammar
(t *testing.T)
proxy/internal/gateway/route_pool_test.go:236
FunctionTestPoolLocalTargetTranslatesAndNeverTouchesTheHarnessPath
(t *testing.T)
proxy/internal/gateway/route_pool_test.go:174
FunctionTestPoolMoonshotK3TargetSendsFittedChatRequest
(t *testing.T)
proxy/internal/gateway/route_pool_test.go:201
FunctionTestPoolOpenAIKeyIsResponsesOnly
A Claude Code request with tools on an OpenAI API key goes out on the Responses wire with function tools, at the answered effort (the catalog lists ma
proxy/internal/gateway/route_pool_test.go:434
FunctionTestPoolOpenAILoginCacheKeyByMode
The prompt_cache_key on an OpenAI pool login: compress mode adds the session's, record mode sends none.
proxy/internal/gateway/route_cache_test.go:398
FunctionTestPoolOpenAILoginReasoningIsTaggedUnlessItIsTheHarnessKey
An OpenAI login the pool holds is not the harness's credential unless it is the same key: its reasoning comes back tagged to that login, never as the
proxy/internal/gateway/route_pool_test.go:486
FunctionTestPoolTargetDropsTheSubscriptionsOAuthBetas
A subscription's own betas and token stay off a pool target: the gateway gets the agent's other betas on the project key only.
proxy/internal/gateway/route_pool_test.go:648
FunctionTestPoolUpstreamFailureAfterContentEndsCleanly
The host's own failure after content is relayed as the stream's end: the agent gets it once and the connection ends cleanly, no abort.
proxy/internal/gateway/route_pool_test.go:612
FunctionTestPortFromListenAcceptsIPv4AndIPv6AndRejectsInvalidPorts
(t *testing.T)
proxy/internal/runstate/runstate_test.go:16
FunctionTestPostgresConcurrentReplicasChooseOneDurableReplacement
The SQLite single-writer guarantee, across replicas: concurrent first turns of one scope publish exactly one durable replacement and all succeed.
proxy/internal/middleware/postgres_test.go:244
FunctionTestPostgresHandleMintedOnOneReplicaServesOnAnother
A5: a handle minted by one replica is retrieved, continued and revoked through another; no affinity needed.
proxy/internal/middleware/postgres_test.go:211
FunctionTestPostgresMiddlewareRestartsWithoutCreatePrivilege
Once the schema is in place a role with only DML on it restarts: Postgres checks CREATE on the schema even for CREATE TABLE IF NOT EXISTS on an existi
proxy/internal/store/middleware_test.go:992
FunctionTestPostgresMigrationRetriesPastALiveWriter
A replica upgrading a store whose writers are live does not fail startup: the migration's table lock times out (or deadlocks) behind a writer, rolls b
proxy/internal/middleware/postgres_test.go:77
FunctionTestPostgresMigrationsAreSafeFromConcurrentReplicas
Replicas that start together migrate one after another under the advisory lock; without it, concurrent CREATE ... IF NOT EXISTS collide in the catalog
proxy/internal/store/middleware_concurrency_test.go:144
FunctionTestPostgresOptimizeStatementsDoNotGrowWithSegments
GO-1: an optimize is a constant number of round trips to Postgres, however many segments it carries; a first turn and a turn reusing every choice alik
proxy/internal/middleware/postgres_test.go:327
FunctionTestPostgresSweepIsExclusiveAndSkipsBusyAuthorities
Only one replica sweeps at a time, and a sweep never waits for, or deletes under, a transaction writing the same data: an authority's writer, or a rep
proxy/internal/store/middleware_concurrency_test.go:100
FunctionTestPracticeIDForSink
(t *testing.T)
proxy/internal/store/practice_mapping_test.go:8
FunctionTestPrefilledSideRequestNeverTakesOver
A prefilled side request sent twice (same length, an assistant turn of its own) never takes the session over.
proxy/internal/gateway/route_effort_test.go:1466
FunctionTestPrefixCacheBeatsNonDeterministicCompressor
TestPrefixCacheBeatsNonDeterministicCompressor pins WHO is authoritative: once a replacement has gone upstream, the cache re-emits those exact bytes e
proxy/internal/gateway/prefix_stability_test.go:560
FunctionTestPrefixCacheEvictionDegradesToOriginals
TestPrefixCacheEvictionDegradesToOriginals pins the bounded-storage behavior: an evicted entry is a plain miss, so that message reverts to the client'
proxy/internal/gateway/prefix_stability_test.go:426
FunctionTestPrefixCacheUnavailablePassesThrough
TestPrefixCacheUnavailablePassesThrough pins the fail-open rule: a replacement the proxy cannot persist must never go on the wire, because it could no
proxy/internal/gateway/prefix_stability_test.go:354
FunctionTestPrefixModelFindsOnlyTheTopLevelModel
(t *testing.T)
proxy/internal/gateway/chatgpt_auto_test.go:230
FunctionTestPrefixMonitorAnchorsAcceptedBytes
TestPrefixMonitorAnchorsAcceptedBytes: the monitor must remember what the provider accepted. Anchoring the rejected transformed attempt of a raw retry
proxy/internal/gateway/cache_prefix_invariant_test.go:1520
FunctionTestPrefixMonitorBoundsAnchorsPerSession
(t *testing.T)
proxy/internal/gateway/prefix_monitor_test.go:126
← previousnext →9,701–9,800 of 12,391, ranked by callers