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>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-29 04:00:03 +00:00
1 parent 93085fcb55
commit 63475440e6
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -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) {
@@ -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"
+1
View File
@@ -62,6 +62,7 @@ export const FREE_FIXTURES: Readonly<Record<string, readonly string[]>> = {
'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'],