MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

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
FunctionTestTurnEffortSignalsHermesErrorsMechanicalUserAndRecoveryNames
(t *testing.T)
proxy/providers/openai/turn_effort_test.go:98
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
FunctionTestUnchangedObjectKeepsRefusalState
(t *testing.T)
engine/ccr/store_full_test.go:364
FunctionTestUniqueRecentSessionFailsClosedOnAmbiguityAndStaleness
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:984
FunctionTestUniqueRecentSessionUsesKnownModelToRejectOtherSessions
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1020
FunctionTestUnixServerConcurrentSessionsAndPermissions
(t *testing.T)
proxy/internal/nativeruntime/server_test.go:19
FunctionTestUnknownArgumentExitsTwo
(t *testing.T)
mcp/cmd/caveman-mcp/main_test.go:38
FunctionTestUnknownClassFailsClosed
(t *testing.T)
engine/safety/safety_test.go:64
FunctionTestUnknownGraderFailsClosed
(t *testing.T)
engine/evals/harness_test.go:84
FunctionTestUnknownMethodIsJSONRPCError
(t *testing.T)
mcp/server_test.go:452
FunctionTestUnknownModeFailsClosedToRecord
(t *testing.T)
engine/engine_test.go:78
FunctionTestUnknownRouteFailsClosed
TestUnknownRouteFailsClosed proves an unrecognized path is a 404, never a blind pass-through.
proxy/internal/gateway/server_test.go:494
FunctionTestUnknownRouteIsNotFoundBeforeQuotaAndBody
§1: an unknown route is 404 whatever its body, before it takes a quota count.
proxy/internal/middleware/hardening_test.go:764
FunctionTestUnknownSchemaFailsClosed
(t *testing.T)
proxy/internal/runstate/runstate_test.go:169
FunctionTestUnlockRemovesOnlyItsOwnLock
A holder only ever removes its own lock: after a stale break handed the lock to another writer, the first holder's unlock leaves it alone.
proxy/internal/pool/pool_test.go:356
FunctionTestUnmatchedBodiesKeepTheirMarksToThemselves
A body matching none of the session's marks gets its own mark only: a side request (even one repeated word for word) never replaces the main thread's
proxy/internal/gateway/route_effort_test.go:1245
FunctionTestUnpersistedRawDecisionHolds
TestUnpersistedRawDecisionHolds: when the replacement store cannot take a write, the turn's new block goes out raw and that decision cannot be stored.
proxy/internal/gateway/cache_prefix_invariant_test.go:1419
FunctionTestUnreadableAnswerPauses
A 200 that is not JSON pauses like any other bad answer.
proxy/internal/cloudlink/link_test.go:916
FunctionTestUnsignedThinkingScan
(t *testing.T)
proxy/internal/translate/jsonfast_test.go:5
FunctionTestUnstructuredRunsKeepTheBareMarker
TestUnstructuredRunsKeepTheBareMarker is the fallback contract: a payload the extractors cannot read must produce exactly the marker this compressor e
engine/compressors/invariants_test.go:536
FunctionTestUnsummarizableToolOutputIsStillMasked
TestUnsummarizableToolOutputIsStillMasked: masking keeps its original job.
proxy/internal/nativeruntime/mask_elidable_test.go:143
FunctionTestUnwrapCodexExecOnlyTakesCodexResultLines
(t *testing.T)
engine/codexexec_test.go:67
FunctionTestUnwrapFileWrapper
(t *testing.T)
engine/filewrap_test.go:10
FunctionTestUnwrapInputNumberedListingEmptyLines
(t *testing.T)
engine/filewrap_test.go:55
FunctionTestUpdatesComeBackAfterATruncationRequest
A session's updates survive a request that may carry none.
proxy/internal/gateway/route_effort_responses_test.go:417
FunctionTestUpstreamAmbiguousFailureNeverReplaysInference
(t *testing.T)
proxy/internal/gateway/upstream_retry_test.go:103
FunctionTestUpstreamAuthFallbackHeaders
(t *testing.T)
proxy/internal/gateway/auth_fallback_test.go:55
FunctionTestUpstreamIDIsKept
The host's own answer id is kept for looking the call up there (its cost): OpenRouter's gen- id under a Codex caller's translated resp_ id.
proxy/internal/translate/review_regressions_test.go:302
FunctionTestUpstreamProxyConnectFailureRetries
#1001: a corporate proxy that is down fails at proxy connection setup, which net/http reports as Op "proxyconnect", not Op "dial". A dial-only test le
proxy/internal/gateway/upstream_retry_test.go:82
FunctionTestUpstreamProxyFunc_HandBuiltConfigNeverPanics
The accessor is a cached-field read for a loaded Config and must never panic on a Config assembled in code: a request path is a bad place to discover
proxy/internal/config/config_test.go:741
FunctionTestUpstreamRetryLogRemovesURLCredentials
(t *testing.T)
proxy/internal/gateway/upstream_log_redaction_test.go:14
FunctionTestUpstreamTransportErrorRetries
Dial failures occur before the request reaches the provider and can be retried.
proxy/internal/gateway/upstream_retry_test.go:19
FunctionTestUsageAfterFlushWritesPendingRowsFirst
A receipt reads session usage only after the rows still being finished are written: the flush lands the session's last row before the sum.
proxy/cmd/caveman-proxy/usage_flush_test.go:12
FunctionTestUsageAndCost_NonZeroForCatalogModel
Catalog cost for a Bedrock model in the catalog must be non-zero (the catalog entry was added with this adapter), proving usage+cost are parsed correc
proxy/providers/bedrock/usage_test.go:233
FunctionTestUsageAndCost_NonZeroForCatalogModels
Catalog cost for a Vertex model in the catalog must be non-zero (the catalog entries were added with this adapter), proving usage+cost wiring. Since 2
proxy/providers/vertex/usage_test.go:79
FunctionTestUsageImportsCodexClaudeAndReportRedactsRawContent
(t *testing.T)
proxy/internal/store/trial_feature_test.go:37
FunctionTestUsageLineFilterMatchesDecodingEveryLine
TestUsageLineFilterMatchesDecodingEveryLine: skipping the lines mayCarryUsage rules out leaves every observed value as it was.
proxy/providers/usage_line_filter_test.go:74
FunctionTestUsagePricingQualifiersAndTerminalProof
(t *testing.T)
proxy/providers/adapter_usage_test.go:189
FunctionTestUsageScannerRetainsObservedErrorFromBoundedTail
(t *testing.T)
proxy/providers/stream_error_test.go:36
FunctionTestUsageScanner_CorruptSupportedEncodingIsExplicitlyUnpriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:485
FunctionTestUsageScanner_DecodedSideCopyHonorsScanLimit
(t *testing.T)
proxy/providers/adapter_usage_test.go:499
FunctionTestUsageScanner_DecodesSupportedSideCopyWithoutChangingWireBytes
(t *testing.T)
proxy/providers/adapter_usage_test.go:451
FunctionTestUsageScanner_RecoversCompleteTerminalUsageFromBoundedTail
(t *testing.T)
proxy/providers/adapter_usage_test.go:565
FunctionTestUsageScanner_StackedEncodingIsExplicitlyUnpriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:514
FunctionTestUsageScanner_TeeAndStatus
(t *testing.T)
proxy/providers/adapter_usage_test.go:391
FunctionTestUsageScanner_Truncation
(t *testing.T)
proxy/providers/adapter_usage_test.go:441
FunctionTestUsageScanner_UnsupportedEncodingIsExplicitlyUnpriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:556
FunctionTestUserClaudeMDAndCodexAgentsRatesCountOnlyTheirOwnSource
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:533
FunctionTestValidPriceAcceptsCatalogShapeAndRejectsUnsafeFields
(t *testing.T)
shared/platform/cost/cost_contract_test.go:110
FunctionTestValidateChecksProcessAndListenerIdentity
(t *testing.T)
proxy/internal/runstate/runstate_test.go:107
FunctionTestValidateHost
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:393
FunctionTestValidateHost_InvalidInputDoesNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:341
FunctionTestValidateHost_LoopbackAllowlist
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:598
FunctionTestValidateHost_ZonedAddressesBlocked
IPv6 zone identifiers must not defeat the block lists: a zoned link-local or loopback literal has to be rejected just like its un-zoned form.
shared/platform/ssrf/ssrf_zone_test.go:14
FunctionTestValidatePayloadProductionRequiresDedicatedKey
(t *testing.T)
shared/platform/kms/kms_test.go:177
FunctionTestValidateProductionFailsClosed
(t *testing.T)
shared/platform/kms/kms_test.go:138
FunctionTestValidateURL
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:261
FunctionTestValidateURL_HostResolvingToLoopback
--- DNS-resolved hostname test --- This test starts a real local server on 127.0.0.1 to act as a resolution target. We can't control what external DN
shared/platform/ssrf/ssrf_test.go:415
FunctionTestValidateURL_InvalidPortDoesNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:327
FunctionTestValidateURL_ParseErrorsDoNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:277
FunctionTestValidateURL_ValidUserinfoKeepsGenericRejection
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:313
FunctionTestValidateURL_ZonedLiteralBlocked
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:172
FunctionTestVerificationDoesNotConsumeRecovery
(t *testing.T)
mcp/retrieve_verification_test.go:10
FunctionTestVerificationRejectsUnknownHandle
(t *testing.T)
mcp/retrieve_verification_test.go:42
FunctionTestVersionAdvertisesSupersedeStdin
(t *testing.T)
mem/cmd/cavemem/main_test.go:343
FunctionTestVersionJSON
(t *testing.T)
engine/cmd/caveman-engine/version_test.go:11
FunctionTestVersionJSON
(t *testing.T)
shrink/cmd/caveman-shrink/version_test.go:11
FunctionTestVersionJSON
(t *testing.T)
browse/cmd/caveman-browse/version_test.go:11
FunctionTestVersionJSON
(t *testing.T)
mem/cmd/cavemem/version_test.go:11
← previousnext →11,101–11,200 of 12,853, ranked by callers