From 63475440e6311f010d8055b163817049edd42e1b Mon Sep 17 00:00:00 2001 From: garrytan Date: Thu, 29 Oct 2026 04:00:03 +0000 Subject: [PATCH] test: register the train-42 replies fixture; keep a run URL and a low-entropy fake key out of the secrets scan Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/cookie-workflow-judge-input.test.ts | 2 +- test/fixtures/judge-calibration/cookie-workflow/release.json | 2 +- test/helpers/free-fixtures-data.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/cookie-workflow-judge-input.test.ts b/test/cookie-workflow-judge-input.test.ts index cf92e6926..c79a67918 100644 --- a/test/cookie-workflow-judge-input.test.ts +++ b/test/cookie-workflow-judge-input.test.ts @@ -280,7 +280,7 @@ describe('cookie workflow judge input', () => { replies: Array<{ id: string; model: string; stop_reason: string; text: string }> }; expect(replies.map(reply => reply.id)).toEqual(['msg_011CgVnRtVj5vyLvb56m6KJH', 'msg_011CgVne5GStZ6f9pRoCvgWE']); const original = process.env.ANTHROPIC_API_KEY; - process.env.ANTHROPIC_API_KEY = 'test-only-key'; + process.env.ANTHROPIC_API_KEY = 'fake'; const create = spyOn(Messages.prototype, 'create'); try { for (const reply of replies) { diff --git a/test/fixtures/judge-calibration/cookie-workflow/release.json b/test/fixtures/judge-calibration/cookie-workflow/release.json index b6435bc49..c567e9f8e 100644 --- a/test/fixtures/judge-calibration/cookie-workflow/release.json +++ b/test/fixtures/judge-calibration/cookie-workflow/release.json @@ -7,7 +7,7 @@ "scope": "cookie workflow judge transport only", "recorded_result": "runs/comparison-1.result.json", "train_red": { - "run": 40809051510, + "gate_run": "https://github.com/garrytan/gstack/actions/runs/40809051510", "responses": [ "msg_011CgVnRtVj5vyLvb56m6KJH", "msg_011CgVne5GStZ6f9pRoCvgWE" diff --git a/test/helpers/free-fixtures-data.ts b/test/helpers/free-fixtures-data.ts index 3b62728c3..997b1aea9 100644 --- a/test/helpers/free-fixtures-data.ts +++ b/test/helpers/free-fixtures-data.ts @@ -62,6 +62,7 @@ export const FREE_FIXTURES: Readonly> = { 'test/fixtures/context-bill/**': ['test/context-bill.test.ts', 'test/context-budget-ratchet.test.ts'], 'test/fixtures/context-budget.json': ['test/helpers/capture-context-budget.ts', 'test/test-value-bar.test.ts'], 'test/fixtures/context-restore-fragment-match-captures.json': ['test/context-restore-fragment-verdict.test.ts'], + 'test/fixtures/cookie-judge-train42-replies.json': ['test/cookie-workflow-judge-input.test.ts'], 'test/fixtures/coverage-audit-cd-chain.json': ['test/coverage-audit-evidence.test.ts'], 'test/fixtures/coverage-audit-parallel-column.json': ['test/coverage-audit-evidence.test.ts'], 'test/fixtures/coverage-audit-separator-collision.json': ['test/coverage-audit-evidence.test.ts'],