MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

FunctionTestToolSchemaByteSafeOnMalformed
(t *testing.T)
engine/compressors/toolschema_test.go:181
FunctionTestToolSchemaDependencyPropertyNamesSurvive
(t *testing.T)
engine/compressors/toolschema_test.go:152
FunctionTestToolSchemaDescriptionTruncationStaysUTF8
TestToolSchemaDescriptionTruncationStaysUTF8 guards UTF-8 safety: the byte-index cut must back off to a rune boundary so no U+FFFD replacement charact
engine/compressors/toolschema_test.go:234
FunctionTestToolSchemaIdempotent
(t *testing.T)
engine/compressors/toolschema_test.go:208
FunctionTestToolSchemaKeepsDefault
TestToolSchemaKeepsDefault guards default preservation: a `default` value is part of argument construction (an agent omits the argument to inherit it)
engine/compressors/toolschema_test.go:340
FunctionTestToolSchemaPreservesArgumentConstraints
TestToolSchemaPreservesArgumentConstraints is the call-VALIDITY conformance gate. A compressed catalog must not turn valid tool calls into invalid one
engine/compressors/toolschema_test.go:559
FunctionTestToolSchemaPreservesEnvelopeAndMCPAnnotationTitle
(t *testing.T)
engine/compressors/toolschema_test.go:89
FunctionTestToolSchemaPreservesSelectionTokens
(t *testing.T)
engine/compressors/toolschema_test.go:49
FunctionTestToolSchemaPropertyNamedDescriptionSurvives
(t *testing.T)
engine/compressors/toolschema_test.go:125
FunctionTestToolSchemaRefIntegrity
TestToolSchemaRefIntegrity guards reference integrity: a $defs / definitions entry whose name collides with a schema-metadata key must not be dropped,
engine/compressors/toolschema_test.go:356
FunctionTestToolSchemaRejectsEveryTrailingNonWhitespaceToken
(t *testing.T)
engine/compressors/toolschema_test.go:191
FunctionTestToolSchemaRetainsMarkerlessConstraints
TestToolSchemaRetainsMarkerlessConstraints reproduces the round-2 review's under-keep cases and asserts each constraint SURVIVES compression — both th
engine/compressors/toolschema_test.go:281
FunctionTestToolSchemaStripFailsClosed
TestToolSchemaStripFailsClosed covers every way the lever must decline: an unrecognized flag value, the explicit request-wide opt-out, a missing recov
proxy/internal/gateway/toolschema_strip_test.go:270
FunctionTestToolSchemaStripIgnoresEpochVeto
TestToolSchemaStripIgnoresEpochVeto: the strip is a pure function of the tool catalog at the head of the prefix. Gating it per request flipped the cat
proxy/internal/gateway/cache_prefix_invariant_test.go:1325
FunctionTestToolSchemaStripIsCacheStable
TestToolSchemaStripIsCacheStable is the reason a frozen-prefix rewrite is admissible at all: two consecutive requests carrying the same catalog must p
proxy/internal/gateway/toolschema_strip_test.go:209
FunctionTestToolSchemaStripIsOffByDefault
TestToolSchemaStripIsOffByDefault is the default-off pin: a wrap with every technical condition satisfied and no strip configured forwards the catalog
proxy/internal/gateway/toolschema_strip_test.go:113
FunctionTestToolSchemaStripRecordModeIsPassThrough
TestToolSchemaStripRecordModeIsPassThrough keeps record mode what it has always been: a byte-safe pass-through, whatever the operator configured.
proxy/internal/gateway/toolschema_strip_test.go:241
FunctionTestToolSchemaStripRemovesAnnotationsAndDisclosesRecovery
TestToolSchemaStripRemovesAnnotationsAndDisclosesRecovery pins the whole contract of an enabled strip: the four annotations leave, everything that sel
proxy/internal/gateway/toolschema_strip_test.go:140
FunctionTestToolSchemaStripSurvivesStoreFailure
TestToolSchemaStripSurvivesStoreFailure: the catalog is the head of the provider prefix. A strip that fell back to the original catalog whenever the r
proxy/internal/gateway/toolschema_strip_test.go:398
FunctionTestToolSchemaStripWithoutPrefixCachePassesThrough
TestToolSchemaStripWithoutPrefixCachePassesThrough pins the maintainability half of the gate. Without a durable replacement cache the proxy cannot kee
proxy/internal/gateway/toolschema_strip_test.go:368
FunctionTestToolSchemaStripWithoutStripperCapabilityPassesThrough
TestToolSchemaStripWithoutStripperCapabilityPassesThrough pins the seam: an embedder whose Compressor cannot strip keeps the catalog, whatever the ope
proxy/internal/gateway/toolschema_strip_test.go:345
FunctionTestToolSequenceGrader
(t *testing.T)
engine/evals/harness_test.go:136
FunctionTestToolSignatureGroupsWithoutLeakingPaths
TestToolSignatureGroupsWithoutLeakingPaths pins both halves of the normalization contract: calls collapse into an actionable shape, and no user path,
proxy/internal/store/detect_tool_portfolio_test.go:11
FunctionTestToolsListExactlyFive
--- tests ------------------------------------------------------------------
mcp/server_test.go:107
FunctionTestToolsListIncludesOptionalMetadata
(t *testing.T)
mcp/server_test.go:139
FunctionTestToonDecodeEngineErrorFailsLoudly
(t *testing.T)
mcp/server_test.go:420
FunctionTestToonDecodeFailsLoudlyOnGarbage
(t *testing.T)
mcp/server_test.go:402
FunctionTestToonDecodeRoundTrips
(t *testing.T)
mcp/server_test.go:377
FunctionTestToonEncodeDegradesByteSafeWithNote
(t *testing.T)
mcp/server_test.go:357
FunctionTestToonEncodeHappyPathIncludesBothSizes
(t *testing.T)
mcp/server_test.go:337
FunctionTestTopAnswerForACompactionIsAnUnsavedMark
A "top" answer for a compaction on a marked session goes in as a mark for that request only.
proxy/internal/gateway/route_effort_test.go:1729
FunctionTestTopAnswerOnAMarkedSessionAppendsAMark
A "top" answer on a session with marks goes in as one more mark: the marks stay and the history is unchanged.
proxy/internal/gateway/route_effort_test.go:1613
FunctionTestTopAnswersNeverBringMarks
Cloud answering "top" never brings marks or the beta: a timeout in between sends the agent's own bytes (one cache restart), and no 400 path runs.
proxy/internal/gateway/route_effort_test.go:1582
FunctionTestTopSinksCapsAt20
(t *testing.T)
proxy/internal/store/report_chart_test.go:33
FunctionTestTraceAndSpanIDs
(t *testing.T)
shared/platform/id/id_test.go:56
FunctionTestTransformAnthropicCacheControlNeverAdds
(t *testing.T)
engine/pixel/transform_anthropic_test.go:22
FunctionTestTransformAnthropicGoldenFixtures
(t *testing.T)
engine/pixel/transform_anthropic_test.go:215
FunctionTestTransformAnthropicHiResBalancedGeometry
TestTransformAnthropicHiResBalancedGeometry is the end-to-end check that a hi-res reader (Fable 5) renders REAL hi-res pages by default: the slab page
engine/pixel/transform_anthropic_density_test.go:29
FunctionTestTransformAnthropicHistoryRunsOnEarlyExit
(t *testing.T)
engine/pixel/transform_anthropic_test.go:197
FunctionTestTransformAnthropicKeepSharpAndRecoverable
(t *testing.T)
engine/pixel/transform_anthropic_test.go:68
FunctionTestTransformAnthropicMalformedAndPassThroughShapes
(t *testing.T)
engine/pixel/transform_anthropic_test.go:175
FunctionTestTransformAnthropicMaxLargeSlabTwoLayer
TestTransformAnthropicMaxLargeSlabTwoLayer is the end-to-end check that a max slab exceeding one layer renders the red/blue overlay AND that its doubl
engine/pixel/transform_anthropic_twolayer_test.go:71
FunctionTestTransformAnthropicMaxSmallSlabBlack
TestTransformAnthropicMaxSmallSlabBlack asserts the fail-soft path: a max slab that fits one layer renders as a single mono-BLACK page (never red, nev
engine/pixel/transform_anthropic_twolayer_test.go:49
FunctionTestTransformAnthropicMaxSmallToolResultBlackNoNote
TestTransformAnthropicMaxSmallToolResultBlackNoNote is the fail-soft companion: a tool result that fits one layer renders mono black and gets NO 2-lay
engine/pixel/transform_anthropic_twolayer_test.go:146
FunctionTestTransformAnthropicMaxToolResultEmitsNote
TestTransformAnthropicMaxToolResultEmitsNote checks that a 2-layer tool-result image never reaches the model without its red/blue note — even when the
engine/pixel/transform_anthropic_twolayer_test.go:106
FunctionTestTransformAnthropicPreservesExactToolNumbers
(t *testing.T)
engine/pixel/transform_numbers_test.go:59
FunctionTestTransformAnthropicRelocatesExistingCacheControlToHistory
(t *testing.T)
engine/pixel/transform_anthropic_test.go:42
FunctionTestTransformAnthropicStaticTagCanary
(t *testing.T)
engine/pixel/transform_anthropic_test.go:115
FunctionTestTransformErrorFailsOpen
TestTransformErrorFailsOpen proves the byte-safe fail-open contract: in active mode, when the optimizer step errors, the proxy forwards the ORIGINAL r
proxy/internal/gateway/server_test.go:329
FunctionTestTransformGeminiExplicitHighMediaResolutionUsesHighBudget
(t *testing.T)
engine/pixel/transform_gemini_test.go:231
FunctionTestTransformGeminiKeepsFunctionResponsePairing
(t *testing.T)
engine/pixel/transform_gemini_test.go:301
FunctionTestTransformGeminiMalformedBody
(t *testing.T)
engine/pixel/transform_gemini_test.go:249
FunctionTestTransformGeminiNonHighGlobalMediaResolutionFailsClosed
(t *testing.T)
engine/pixel/transform_gemini_test.go:186
FunctionTestTransformGeminiPassThroughByteIdentity
(t *testing.T)
engine/pixel/transform_gemini_test.go:145
FunctionTestTransformGeminiStructural
(t *testing.T)
engine/pixel/transform_gemini_test.go:14
FunctionTestTransformGeminiUnknownModelFailsClosedBeforeTokenGate
(t *testing.T)
engine/pixel/transform_gemini_test.go:172
FunctionTestTransformGeminiUnknownTopLevelRawPreserved
(t *testing.T)
engine/pixel/transform_gemini_test.go:262
FunctionTestTransformGeminiUsesModelSpecificMediaResolutionGate
(t *testing.T)
engine/pixel/transform_gemini_test.go:280
FunctionTestTransformOpenAIChatCompressesDenseSystemSlab
(t *testing.T)
engine/pixel/transform_openai_regression_test.go:8
FunctionTestTransformOpenAIChatCompressesSystemAndToolDocs
(t *testing.T)
engine/pixel/transform_openai_test.go:81
FunctionTestTransformOpenAIDefaultBalancedGeometry
TestTransformOpenAIDefaultBalancedGeometry checks the standalone OpenAI path renders balanced by default for gpt-5.6 (a density-capable reader on the
engine/pixel/transform_openai_density_test.go:14
FunctionTestTransformOpenAIGoldenFixtures
(t *testing.T)
engine/pixel/transform_openai_test.go:235
FunctionTestTransformOpenAIHistoryCollapseResponsesAndChat
(t *testing.T)
engine/pixel/history_openai_test.go:206
FunctionTestTransformOpenAIPassThroughAndErrors
(t *testing.T)
engine/pixel/transform_openai_test.go:214
FunctionTestTransformOpenAIPreservesExactToolSchemaNumbers
(t *testing.T)
engine/pixel/transform_numbers_test.go:96
FunctionTestTransformOpenAIResponsesBareStringInput
(t *testing.T)
engine/pixel/transform_openai_test.go:188
FunctionTestTransformOpenAIResponsesCompressesInstructionsAndTools
(t *testing.T)
engine/pixel/transform_openai_test.go:145
FunctionTestTransformPreservesLargeIntegersOnRemarshalFallback
TestTransformPreservesLargeIntegersOnRemarshalFallback pins the sibling of the Bedrock cache-points defect (#1057). spliceTopLevelFields cannot expres
proxy/providers/openai/cache_key_test.go:169
FunctionTestTransformRejected4xxFailsOpenWithOriginalBytes
TestTransformRejected4xxFailsOpenWithOriginalBytes proves the byte-safe fail-open retry: when the upstream rejects a request whose bytes the proxy mod
proxy/internal/gateway/compress_test.go:1098
FunctionTestTransformRejectsTrailingBytesAfterTheTopLevelValue
Decoding with a json.Decoder instead of json.Unmarshal must not widen what this adapter accepts. json.Unmarshal rejects trailing bytes after the top-l
proxy/providers/openai/cache_key_test.go:224
FunctionTestTransientInspectFailureDoesNotQuarantineStore
A parent directory whose mode is loose for one instant, an antivirus lock, or an I/O error means "could not verify", not "was replaced". Quarantine is
engine/ccr/store_generation_test.go:747
FunctionTestTranslatedMessageStartEstimatesInput
A translated stream's message_start carries an input estimate (Claude Code's context meter reads it), marked as one; message_delta carries the host's
proxy/internal/translate/review_regressions_test.go:268
FunctionTestTranslatedThinkingIsStrippedBeforeAnthropic
Reasoning another provider produced is signed caveman:…, and a native Anthropic forward strips it (and unsigned thinking) while keeping Claude's own s
proxy/internal/translate/messages_test.go:611
FunctionTestTrendDirectionDeadBand
(t *testing.T)
proxy/internal/store/learn_trends_test.go:52
FunctionTestTrialPayloadCaptureOnlyTrialLabel
(t *testing.T)
proxy/internal/store/trial_feature_test.go:18
FunctionTestTrialReportKeepsImportedHistoryContextual
(t *testing.T)
proxy/internal/store/trial_feature_test.go:223
FunctionTestTrimmedHistoryStartsANewEpoch
PY-3: a trimmed or summarized history (or a nested agent on the same scope) starts a new epoch for a 1.1 client instead of failing every later turn; i
proxy/internal/middleware/hardening_test.go:484
FunctionTestTrimmedSummaryDeclaresWhatItShed
TestTrimmedSummaryDeclaresWhatItShed is the honesty gate for shedding, the same one TestEnumeratedCountsCoverEveryElidedUnit applies to enumeration. s
engine/compressors/invariants_test.go:909
FunctionTestTripwireFlagsADroppedBreakpoint
TestTripwireFlagsADroppedBreakpoint: a forwarded request that caches less than the client asked for leaves the next turn no entry to read, and only ca
proxy/internal/gateway/prefix_monitor_test.go:455
FunctionTestTripwireFollowsThePinAcrossSessions
TestTripwireFollowsThePinAcrossSessions: the raw retry that pinned a conversation can arrive without a session id (correlation is best effort), so the
proxy/internal/gateway/prefix_monitor_test.go:403
FunctionTestTripwireFreezesTheToolSchemaStrip
TestTripwireFreezesTheToolSchemaStrip is the first consumer of LeverAllowed, end to end: a session whose cache-creation blows up after the strip ran l
proxy/internal/gateway/breakpoint_plan_test.go:196
FunctionTestTripwireIsInertWithoutASession
TestTripwireIsInertWithoutASession: a caller that does not identify its session keeps every lever forever. The tripwire needs a session to attribute h
proxy/internal/gateway/breakpoint_plan_test.go:244
FunctionTestTripwireLeverFreezeIsNotCavemansBust
TestTripwireLeverFreezeIsNotCavemansBust: the harm tripwire freezing the tool-schema strip for a session is a deliberate one-time rollover of the cata
proxy/internal/gateway/prefix_monitor_test.go:419
FunctionTestTruncateForBudget
(t *testing.T)
engine/pixel/textprep_test.go:78
FunctionTestTruncatedBeforeFirstParseDoesNotClaimUsageFreeSession
(t *testing.T)
proxy/internal/store/learn_retro_test.go:1097
FunctionTestTruncatedMapKeepsDirectEvidenceUsable
A truncated or large map used to silence every hit through Scout status. Scout advice and injection eligibility are now separate judgements.
proxy/internal/repointel/index_test.go:362
FunctionTestTurnStartedInAPauseKeepsItsAnswer
A turn that starts during a pause keeps the paused answer for its whole tool loop: the pause ending halfway never switches the model.
proxy/internal/cloudlink/link_test.go:1248
FunctionTestTurnStartsRunOnTurnStart
A session or prompt start runs OnTurnStart (the Cloud link warms its route path before the model request); no other event does.
proxy/internal/nativeruntime/runtime_test.go:1614
FunctionTestTwentyTurnsAcrossRestartAndWorkers
(t *testing.T)
proxy/internal/middleware/runtime_test.go:297
FunctionTestTwoLayerCapacitySeam
TestTwoLayerCapacitySeam pins that the layer-aware capacity flows through the SAME seam into EstimateImageCount and TruncateForBudget: a tool result s
engine/pixel/overlay_test.go:223
FunctionTestTwoLayerGateParityAndCapacity
TestTwoLayerGateParityAndCapacity asserts the two invariants of the max gate: a max image costs the SAME tokens as a balanced page (identical pixels)
engine/pixel/overlay_test.go:189
FunctionTestTwoLayerOverlapMatchesReferenceComposite
TestTwoLayerOverlapMatchesReferenceComposite renders the SAME glyph in both layers at the same cell (so red and blue coverage are identical at every p
engine/pixel/overlay_test.go:71
FunctionTestTwoLayerReaderNote
TestTwoLayerReaderNote pins the max-level reader instruction: two red/blue layers, red-before-blue, row order continues red→blue, black = single layer
engine/pixel/transform_anthropic_twolayer_test.go:33
FunctionTestTwoLayerSplitter
TestTwoLayerSplitter covers page-by-page halving across layers: exact 2N, odd (shorter blue), single-line (black not red), empty, and spill into a sec
engine/pixel/overlay_test.go:112
FunctionTestTwoPrincipalsCannotFillAQueue
FX2: two principals each holding their full share of both queues still leave a slot for a principal holding none: its optimize and retrieve answer wit
proxy/internal/middleware/hardening_test.go:556
FunctionTestTypedObjectFailsClosedAndIsSessionScoped
(t *testing.T)
engine/ccr/store_test.go:125
FunctionTestTypedObjectPersistsOnDisk
(t *testing.T)
engine/ccr/store_test.go:170
FunctionTestTypedObjectRoundTripAndCurrentness
(t *testing.T)
engine/ccr/store_test.go:33
FunctionTestUnavailableClassifierFallsBackToMasking
TestUnavailableClassifierFallsBackToMasking is the fail-safe direction: without a classifier the runtime cannot know what elision would do, so it mask
proxy/internal/nativeruntime/mask_elidable_test.go:193
FunctionTestUnavailableSessionFailsClosedWithoutPanicking
(t *testing.T)
browse/session_test.go:136
← previousnext →10,601–10,700 of 12,391, ranked by callers