Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions tests/fork-nudge-trigger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,16 @@ async function runCase(opts: { anonymous: boolean }): Promise<{
routes: { [`http://127.0.0.1:${upstreamPort}`]: { models: { "claude-small": { context: WINDOW } } } },
modelContextLimit: 400_000,
kernelConfig: defaultConfig(400_000),
compress: { injectTool: true, injectNudge: true },
// #5860 shipped the phantom-pressure guard (estimate-grade readings no
// longer arm the pressure band); these suites predate it and pin
// pre-guard mechanisms (fork regime / image term / judge baseline), so
// they opt out via the documented escape hatch — the guard is covered
// by its own suites (nudge-pressure-no-sample-armed.test.ts).
compress: {
injectTool: true,
injectNudge: true,
requireUsageSampleForPressure: false,
},
promptCache: { routing: "auto" },
sessionHeader: "x-acp-session",
log: false,
Expand Down Expand Up @@ -265,7 +274,16 @@ async function runImageCase(): Promise<Array<{ stream: boolean; body: string }>>
routes: { [`http://127.0.0.1:${upstreamPort}`]: { models: { "claude-small": { context: IMG_WINDOW } } } },
modelContextLimit: 400_000,
kernelConfig: defaultConfig(400_000),
compress: { injectTool: true, injectNudge: true },
// #5860 shipped the phantom-pressure guard (estimate-grade readings no
// longer arm the pressure band); these suites predate it and pin
// pre-guard mechanisms (fork regime / image term / judge baseline), so
// they opt out via the documented escape hatch — the guard is covered
// by its own suites (nudge-pressure-no-sample-armed.test.ts).
compress: {
injectTool: true,
injectNudge: true,
requireUsageSampleForPressure: false,
},
promptCache: { routing: "auto" },
sessionHeader: "x-acp-session",
log: false,
Expand Down
6 changes: 3 additions & 3 deletions tests/golden/storage-render/anthropic.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@
"foldAt": 9,
"editedAt": 12,
"summaryFrom": 9,
"stateDigest": "e1c4662975aaef423f2de518d3f4ffc0cc6baa27ec7fcf2c13289a12645d3e48",
"stateDigestAligned": "27b0656a52c71cf65497e7e11c90e59d49efeab2bbb2a2d52999eaaef04ff30c",
"stateDigest": "769f37660d00c1493c5fd6685d46f33d616fafb989e0ab8e20376a3f73aac798",
"stateDigestAligned": "3ff89ce95e826f411374971aef567f6e252ef7e3591f9a1703ff6f4598ad17fc",
"sectionDigests": {
"state": "56e66f6b72c7f0dd",
"blockContents": "dc7d13d250c94bb4",
"stats": "e83198a55e6b2c29",
"metadata": "12c05de38706b0a4"
"metadata": "3f0a403a86a95d21"
},
"stateKeyDigests": {
"blocks": "3a454b9a16e4f0b9",
Expand Down
6 changes: 3 additions & 3 deletions tests/golden/storage-render/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@
"foldAt": 9,
"editedAt": 12,
"summaryFrom": 9,
"stateDigest": "2dc15ac4e3235969e26282916259c6947121b507725151fbd9d5a37e7123af35",
"stateDigestAligned": "d8938cf78272caa52a0b75b348cfe6ec79f2869fa2eced9aab8e8b7b01456f27",
"stateDigest": "f53ae7a74cb65acee70a1a1745b9e0111ac004a535f6b864ed4d1717edfa097b",
"stateDigestAligned": "0d0a46517ddc009705218f03e8d733f2f217c0c29c8bffe96644a55b87bfa2fd",
"sectionDigests": {
"state": "90857fbf82001a2b",
"blockContents": "94a58f96d7c5cfc3",
"stats": "3e6858671f4b9a9d",
"metadata": "499784b12a0c8366"
"metadata": "0aa87883e1afd3d5"
},
"stateKeyDigests": {
"blocks": "d9770feee91dafc6",
Expand Down
6 changes: 3 additions & 3 deletions tests/golden/storage-render/google.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@
"foldAt": 9,
"editedAt": 12,
"summaryFrom": 9,
"stateDigest": "f55747dc03782cedf1887b2b1b01c7f435a9fc3f9eee80f9ca058d9af4a39afd",
"stateDigestAligned": "7462b011498cdb9886bb1e64e747f552fc8a2411fde6fb8b2cb73867349c85ae",
"stateDigest": "2c935a3aa2ea69d6c940fefd7ff7e24150bf53d7fba971659045d856cbf65901",
"stateDigestAligned": "396425bd142ef952862ba9004efd8c818178a2e1456c28e5e517a15575cf3267",
"sectionDigests": {
"state": "c5243ba17364d3ac",
"blockContents": "473264d9df8ba338",
"stats": "a3c84817f1d0c3dd",
"metadata": "2cbb56bb9d0a35fc"
"metadata": "ccd5496952909304"
},
"stateKeyDigests": {
"blocks": "0cfd0b9c0fc53073",
Expand Down
6 changes: 3 additions & 3 deletions tests/golden/storage-render/responses.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@
"foldAt": 9,
"editedAt": 12,
"summaryFrom": 9,
"stateDigest": "9e182fe80de27b4add507dad50eb3d96e80fc0cfac96808ddd266f460a32e572",
"stateDigestAligned": "4398b34b74816f517fb66a3ead2533df1afa6172b1604ae126f6afb0cd61b89b",
"stateDigest": "01c80a6119edbe1914cd8ccaede4687d66bf711d8b32c9fbfd69e6eb681589b0",
"stateDigestAligned": "5e5c437a116d15369032faa1f30fa3a407d842181f8733549981ba73c2b07d64",
"sectionDigests": {
"state": "e686a14f31d69ce5",
"blockContents": "b6701268a0bdcd8a",
"stats": "099bde0a9cf64cad",
"metadata": "2d70b1b88b5bc399"
"metadata": "fa97fca618040493"
},
"stateKeyDigests": {
"blocks": "34b0dc17f8c24595",
Expand Down
3 changes: 2 additions & 1 deletion tests/golden/wire-contract/kernel.json
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,8 @@
"minGrowthFloor": 20000,
"minGrowthRatio": 0.45,
"emergencyThresholdPct": 0.95,
"tier2GrowthMultiplier": 1.5
"tier2GrowthMultiplier": 1.5,
"requireUsageSampleForPressure": true
},
"promotionThreshold": 5,
"truncate": {
Expand Down
11 changes: 10 additions & 1 deletion tests/issue4241-judge-render-baseline.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,16 @@ async function withHarness(fn: (h: Harness) => Promise<void>): Promise<void> {
routes: { [`http://127.0.0.1:${upstreamPort}`]: { models: { "gpt-test": { context: 30_000 } } } },
modelContextLimit: 30_000,
kernelConfig: defaultConfig(30_000),
compress: { injectTool: true, injectNudge: true },
// #5860 shipped the phantom-pressure guard (estimate-grade readings no
// longer arm the pressure band); these suites predate it and pin
// pre-guard mechanisms (fork regime / image term / judge baseline), so
// they opt out via the documented escape hatch — the guard is covered
// by its own suites (nudge-pressure-no-sample-armed.test.ts).
compress: {
injectTool: true,
injectNudge: true,
requireUsageSampleForPressure: false,
},
promptCache: { routing: "auto" },
sessionHeader: "x-acp-session",
log: Boolean(process.env.SNAP_DEBUG),
Expand Down
11 changes: 10 additions & 1 deletion tests/silent-backend-nudge.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,16 @@ async function runCase(opts: { inputTokens: number | null; sessionId?: string; t
routes: { [`http://127.0.0.1:${upstreamPort}`]: { models: { "claude-small": { context: opts.window ?? WINDOW } } } },
modelContextLimit: 400_000,
kernelConfig: defaultConfig(400_000),
compress: { injectTool: true, injectNudge: true },
// #5860 shipped the phantom-pressure guard (estimate-grade readings no
// longer arm the pressure band); these suites predate it and pin
// pre-guard mechanisms (fork regime / image term / judge baseline), so
// they opt out via the documented escape hatch — the guard is covered
// by its own suites (nudge-pressure-no-sample-armed.test.ts).
compress: {
injectTool: true,
injectNudge: true,
requireUsageSampleForPressure: false,
},
promptCache: { routing: "auto" },
sessionHeader: "x-acp-session",
log: false,
Expand Down
Loading