MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

FunctionTestStreamUsage_NonObjectStreamOptionsUntouched
stream_options present but not an object shape (malformed on the client's part) must not be guessed at — leave it exactly as sent.
proxy/providers/openai/stream_usage_test.go:138
FunctionTestStreamUsage_NonStreamingRequestUntouched
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:76
FunctionTestStreamUsage_StreamedResponsesBodyIsUntouched
CW 2: stream_options is a Chat-Completions-only parameter. A streamed Responses request was getting one injected, which sends the provider a field the
proxy/providers/openai/stream_usage_test.go:90
FunctionTestString
(t *testing.T)
shared/platform/redact/redact_test.go:149
FunctionTestStripCacheControl
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:502
FunctionTestStripHealKeepsTheMarks
A strip heal leaves the marks' anchors alone (they skip thinking blocks): the next request replays the mark and extends the history that was served.
proxy/internal/gateway/route_effort_test.go:1488
FunctionTestStripRetrieveCallNormalizesOpenAINullContent
(t *testing.T)
proxy/internal/gateway/compress_test.go:860
FunctionTestStripSchemaDepthCapAndStructure
(t *testing.T)
engine/pixel/schemastrip_test.go:87
FunctionTestStripSchemaDescriptionsCases
(t *testing.T)
engine/pixel/schemastrip_test.go:11
FunctionTestStripToolSchemaAnnotations
(t *testing.T)
engine/compressors/toolschema_annotations_test.go:13
FunctionTestStripToolSchemaAnnotationsIsDeterministic
TestStripToolSchemaAnnotationsIsDeterministic pins the cache-stability property the proxy relies on: the same catalog bytes always produce the same ou
engine/compressors/toolschema_annotations_test.go:191
FunctionTestStripToolSchemaAnnotationsPreservesOrderAndSpacing
TestStripToolSchemaAnnotationsPreservesOrderAndSpacing pins the minimal-splice property: only the dropped members move, and every other byte — element
engine/compressors/toolschema_annotations_test.go:163
FunctionTestStructuralSelectionSurfaceInvariant
TestStructuralSelectionSurfaceInvariant proves the compressed catalog exposes the exact same structural surface (param names, enums, required) as the
shrink/shrink_test.go:105
FunctionTestStructuredOutputEveryDirection
--- 2. structured output in every direction ------------------------------------
proxy/internal/translate/wire_gaps_test.go:118
FunctionTestStructuredToolOutputIsNotMasked
TestStructuredToolOutputIsNotMasked: the classes with a field grammar reach the elision engine intact, however large they are.
proxy/internal/nativeruntime/mask_elidable_test.go:110
FunctionTestSubagentEvidenceMergesAsTypedPointersIntoParentScope
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:911
FunctionTestSubagentSpendCountsAgentNamedSpawns
TestSubagentSpendCountsAgentNamedSpawns covers the other half of the tool rename behind #1075. The raw-line spawn counter learned the new "Agent" name
proxy/internal/store/detect_subagent_spend_test.go:88
FunctionTestSubagentSpendMeasuresCostWithoutClaimingWaste
TestSubagentSpendMeasuresCostWithoutClaimingWaste pins the decree boundary: the sink reports the measured split and the per-type spawn counts, and it
proxy/internal/store/detect_subagent_spend_test.go:11
FunctionTestSubagentSpendSilentWithoutFanOut
TestSubagentSpendSilentWithoutFanOut keeps the sink off a machine that does not delegate.
proxy/internal/store/detect_subagent_spend_test.go:65
FunctionTestSubscriptionCompressesLiveZoneByDefault
TestSubscriptionCompressesLiveZoneByDefault pins the product decision: subscription compression is on by default — no account and no extra config valu
proxy/internal/gateway/subscription_live_zone_test.go:191
FunctionTestSubscriptionDefaultPassesThroughWithoutMutation
(t *testing.T)
proxy/internal/gateway/live_zone_test.go:185
FunctionTestSubscriptionLiveZoneClampCompressesNewestMarkedTurn
TestSubscriptionLiveZoneClampCompressesNewestMarkedTurn documents the one case where the live zone reaches a message that itself carries cache_control
proxy/internal/gateway/subscription_live_zone_test.go:355
FunctionTestSubscriptionLiveZoneDeterministicDoubleRun
TestSubscriptionLiveZoneDeterministicDoubleRun pins determinism: the same client bytes must always produce the same upstream bytes, so a replayed pref
proxy/internal/gateway/subscription_live_zone_test.go:389
FunctionTestSubscriptionLiveZoneKeepsCacheBreakpointPrefixByteEqual
TestSubscriptionLiveZoneKeepsCacheBreakpointPrefixByteEqual is the cache-safety invariant: every byte at or before the last mid-conversation cache_con
proxy/internal/gateway/subscription_live_zone_test.go:315
FunctionTestSubscriptionLiveZoneNeedsNoAccount
TestSubscriptionLiveZoneNeedsNoAccount pins the invariant: local compression is NOT account-gated. A bare server with no entitlement signal of any kin
proxy/internal/gateway/subscription_live_zone_test.go:80
FunctionTestSubscriptionLiveZoneOptInCompressesWithoutToolInjectionOrHeaderMutation
(t *testing.T)
proxy/internal/gateway/live_zone_test.go:228
FunctionTestSubscriptionLiveZoneRecordsTokensNeverDollars
TestSubscriptionLiveZoneRecordsTokensNeverDollars is the no-fake-savings pin: a compressed subscription row carries the local o200k token estimate wit
proxy/internal/gateway/subscription_live_zone_test.go:429
FunctionTestSubscriptionLiveZoneUncompressibleBodyPassesThrough
TestSubscriptionLiveZoneUncompressibleBodyPassesThrough pins the fail-open rule: a request whose live zone cannot be extracted (here: no user message
proxy/internal/gateway/subscription_live_zone_test.go:408
FunctionTestSubscriptionLiveZoneUnknownOffSwitchFailsClosed
TestSubscriptionLiveZoneUnknownOffSwitchFailsClosed keeps the operator opt-out fail-closed: an unrecognized subscription_compress value means passthro
proxy/internal/gateway/subscription_live_zone_test.go:112
FunctionTestSubscriptionOffSwitchPassesThrough
TestSubscriptionOffSwitchPassesThrough pins the off-switch: the operator can still turn the capability off through the existing subscription_compress
proxy/internal/gateway/subscription_live_zone_test.go:294
FunctionTestSubscriptionRecoveryFromRequestToolList
(t *testing.T)
proxy/internal/gateway/subscription_live_zone_test.go:472
FunctionTestSubscriptionWithoutMCPRecoveryPassesThrough
TestSubscriptionWithoutMCPRecoveryPassesThrough pins recoverability. Subscription compression is marker-only — the proxy never injects its server-side
proxy/internal/gateway/subscription_live_zone_test.go:136
FunctionTestSubscriptionWithoutPrefixCachePassesThrough
TestSubscriptionWithoutPrefixCachePassesThrough pins the maintainability half of the same rule: a rewrite the proxy cannot re-issue on the next turn w
proxy/internal/gateway/subscription_live_zone_test.go:163
FunctionTestSuggestedAllowlistEntryWorksAtDialTime
The suggestion must also work at DIAL time, which is where a real request is actually stopped — a token that only satisfies pre-flight sends the opera
shared/platform/ssrf/ssrf_test.go:682
FunctionTestSummarizeElidedRespectsItsBudget
(t *testing.T)
engine/compressors/invariants_test.go:247
FunctionTestSummarizeElidedStatesOnlyWhatHoldsEverywhere
(t *testing.T)
engine/compressors/invariants_test.go:37
FunctionTestSummary
(t *testing.T)
engine/ccr/store_test.go:307
FunctionTestSummaryDisclosesCacheWarms
(t *testing.T)
proxy/internal/store/cache_warm_stats_test.go:37
FunctionTestSupersedeCanRevertToAnEarlierValue
(t *testing.T)
mem/store_test.go:407
FunctionTestSupersedeExpiresOldMemoryAndRecallUsesCurrentVersion
(t *testing.T)
mem/store_test.go:234
FunctionTestSupersedeFailsClosedWithoutCorruptingLineage
(t *testing.T)
mem/store_test.go:287
FunctionTestSupersedeReadsReplacementFromStdinAndMapsTooLargeExit
(t *testing.T)
mem/cmd/cavemem/main_test.go:317
FunctionTestSupersedeRejectsOversizedReplacementWithoutExpiringCurrent
(t *testing.T)
mem/store_test.go:309
FunctionTestSupported
(t *testing.T)
proxy/internal/translate/messages_test.go:17
FunctionTestSupportsReasoningEffort
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:293
FunctionTestSupportsReasoningEffortForEndpointSkipsProAliases
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:272
FunctionTestSweepBudgetAndBacklogGauge
GO-9: the sweep stops at its time budget, and whatever it left is reported.
proxy/internal/middleware/hardening_test.go:433
FunctionTestSweepReclaimsWithoutRequests
Expiry used to run in front of every optimize, sharing its writer. It now runs in the background sweep, in its own transactions, so it commits whether
proxy/internal/middleware/runtime_test.go:543
FunctionTestSweptGrantAnswersExpiredUntilGraceEnds
GO-2: a swept grant keeps answering 410 expired until its grace ends, and only then becomes unknown.
proxy/internal/middleware/hardening_test.go:195
FunctionTestSwitchingStoresLeavesOneSecret
(t *testing.T)
proxy/internal/pool/pool_test.go:284
FunctionTestTLSListenerMapsClientCertificatesToPrincipals
(t *testing.T)
proxy/internal/identity/tls_test.go:64
FunctionTestTOONCompressorTabularArrayRoundTrips
(t *testing.T)
engine/compressors/toon_test.go:10
FunctionTestTOONCompressorUnsupportedShapesPassThrough
(t *testing.T)
engine/compressors/toon_test.go:27
FunctionTestTOONDeterministic
(t *testing.T)
engine/compressors/toon_test.go:73
FunctionTestTOONEncodeDecodeRoundTrip
The agent emits the compact TOON form; downstream recovers JSON. The two must be semantically identical so nothing the agent omits gets corrupted on t
engine/cmd/caveman-engine/main_test.go:21
FunctionTestTOONNumbersPreserveLexicalForm
(t *testing.T)
engine/compressors/toon_test.go:57
FunctionTestTOONRootScalarAndScalarArrayRoundTrip
(t *testing.T)
engine/compressors/toon_test.go:106
FunctionTestTOONSortsNonTabularObjectKeys
(t *testing.T)
engine/compressors/toon_test.go:89
FunctionTestTOONStringsNeedingQuotesRoundTrip
(t *testing.T)
engine/compressors/toon_test.go:41
FunctionTestTOONVerbsFailClosed
Both verbs fail closed: encode refuses shapes it cannot prove round-trip, and decode refuses malformed input, rather than emitting a lossy/guessed res
engine/cmd/caveman-engine/main_test.go:45
FunctionTestTabularCSVMarkerHasStableFieldCount
(t *testing.T)
engine/compressors/tabular_test.go:175
FunctionTestTabularCSVPreservesCRLFWithoutAddingTrailingNewline
(t *testing.T)
engine/compressors/tabular_test.go:196
FunctionTestTabularCSVStaysValidAndKeepsHeaderExtremaAndErrors
(t *testing.T)
engine/compressors/tabular_test.go:30
FunctionTestTabularLargeIntegerRangeCoversEveryElidedRow
Past 2^53 two different integers can parse to the same float64 (snowflake IDs, nanosecond timestamps). The id column stayed on the numeric track, the
engine/compressors/tabular_test.go:257
FunctionTestTabularMalformedOrTinyPassesThrough
(t *testing.T)
engine/compressors/tabular_test.go:162
FunctionTestTabularMarkdownKeepsEscapedPipesInsideCells
(t *testing.T)
engine/compressors/tabular_test.go:130
FunctionTestTabularMarkdownKeepsShapeAndIsIdempotent
(t *testing.T)
engine/compressors/tabular_test.go:108
FunctionTestTabularMarkerCarriesRowInvariants
(t *testing.T)
engine/compressors/invariants_test.go:458
FunctionTestTabularNonFiniteCellIsNotAbsorbedIntoARange
A CSV export with one non-numeric measurement — how pandas, Postgres `numeric` and R all spell a missing value — must not compress to something indist
engine/compressors/tabular_test.go:221
FunctionTestTabularQueryKeepsRelevantMiddleRows
(t *testing.T)
engine/compressors/tabular_test.go:62
FunctionTestTabularTSVStaysValidAndKeepsQueryRow
(t *testing.T)
engine/compressors/tabular_test.go:80
FunctionTestTakeoverKeepsTheDropBlockRefusal
A side loop taking the session over keeps the refused drop_block: back on the main thread a new binding 400 goes straight to the strip.
proxy/internal/gateway/route_effort_test.go:1835
FunctionTestTakeoverKeepsTheFixedTopLevel
The main thread's fixed top-level effort comes back with its marks after a side loop took the session over.
proxy/internal/gateway/route_effort_test.go:1763
FunctionTestTakeoverKeepsThePreviousMarksPending
An unlabeled multi-turn side loop that takes the session over leaves the main thread's marks pending: the main thread takes them back.
proxy/internal/gateway/route_effort_test.go:1665
FunctionTestTamperedPriceCapabilityBreaksTheSnapshotPin
TestTamperedPriceCapabilityBreaksTheSnapshotPin reproduces the 2026-07-31 review probe verbatim: change regional_processing_multiplier from the 1.10 t
shared/platform/catalog/catalog_test.go:342
FunctionTestTamperedSignatureHealsByStripping
A tampered or undecryptable signature is no prefix change: drop_block does not apply, so the heal strips from the failing message on.
proxy/internal/gateway/route_effort_test.go:1315
FunctionTestTargetCarriesTheLoginsCredentialAndTheHostsWire
(t *testing.T)
proxy/internal/pool/pool_test.go:109
FunctionTestTaskContractKeepsPolicyAcrossFollowupsAndInjectsOnlyOnPolicyChange
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:169
FunctionTestTaskContractStartsNewGeneralTaskAndRefreshesGoalIdentity
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:275
FunctionTestTemporaryCredentialWithoutExpiryStillRefreshes
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:716
FunctionTestTerminalANSIColoredOutput
(t *testing.T)
engine/compressors/terminal_test.go:107
FunctionTestTerminalCRLFDocumentBehavior
(t *testing.T)
engine/compressors/terminal_test.go:121
FunctionTestTerminalCRNumberedRecordsAllSurvive
The collapse decision is all or nothing per line. Dropping only the segments the redundancy gate judges redundant reintroduced #1294 at a smaller scal
engine/compressors/terminal_test.go:219
FunctionTestTerminalCRTerminatedDocumentKeepsEveryLine
A bare \r is only a redraw when the frame it overwrote said the same thing. The same byte terminates lines in a classic-Mac document and shows up as a
engine/compressors/terminal_test.go:149
FunctionTestTerminalCRTerminatedDocumentWithANSIKeepsEveryLine
(t *testing.T)
engine/compressors/terminal_test.go:167
FunctionTestTerminalCollapsesCarriageReturns
(t *testing.T)
engine/compressors/terminal_test.go:27
FunctionTestTerminalColoredFinalFrameCollapses
Compress strips ANSI only after collapsing, so the segments have to be compared by their visible text. Judging the raw bytes let a frame that merely g
engine/compressors/terminal_test.go:235
FunctionTestTerminalCompressRoundTrip
TestTerminalCompressRoundTrip checks the recoverable-RTK contract end to end: noisy command output is auto-detected as terminal, compressed (lossy, S4
engine/terminal_test.go:82
FunctionTestTerminalEventEndsTheStream
An answer ends when the upstream's terminal event arrives, not when the upstream closes the connection: with the upstream lingering 30 s after it, eve
proxy/internal/translate/wire_gaps_test.go:930
FunctionTestTerminalIntraLineCRKeepsDistinctSegments
(t *testing.T)
engine/compressors/terminal_test.go:182
FunctionTestTerminalIsIdempotent
(t *testing.T)
engine/compressors/terminal_test.go:129
FunctionTestTerminalKeepsMixedLineEndings
A single CRLF anywhere used to decide the line ending for the whole document: terminal/config/tabular rewrote every LF to CRLF, and log/searchresult/d
engine/compressors/lineends_test.go:15
FunctionTestTerminalKeepsSignalElidesMiddle
(t *testing.T)
engine/compressors/terminal_test.go:44
FunctionTestTerminalPassesThroughPlainShort
(t *testing.T)
engine/compressors/terminal_test.go:81
FunctionTestTerminalProgressRedrawStillCollapsesWithoutLF
(t *testing.T)
engine/compressors/terminal_test.go:197
FunctionTestTerminalProgressRedrawWithLFAndANSI
(t *testing.T)
engine/compressors/terminal_test.go:90
FunctionTestTerminalStripsANSI
(t *testing.T)
engine/compressors/terminal_test.go:10
FunctionTestTestReportAllPassed
(t *testing.T)
engine/compressors/testreport_test.go:537
FunctionTestTestReportDetectedShapesCompress
TestTestReportDetectedShapesCompress pins that a payload Detect routes to test-report really compresses through the engine. Engine.Compress has no fal
engine/compressors/testreport_test.go:398
FunctionTestTestReportDetection
Test detection
engine/compressors/testreport_test.go:298
← previousnext →10,901–11,000 of 12,853, ranked by callers