From 3340d95ea24fdbee72101e8cb371f083980f3cef Mon Sep 17 00:00:00 2001 From: garrytan Date: Fri, 30 Oct 2026 01:29:22 +0000 Subject: [PATCH] test: gateway reports a missing OpenRouter key first; register the model panel in the paid count and test-of-test baseline Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/eng-finding-retry-budget.test.ts | 2 +- test/helpers/providers/gateway.ts | 6 +++--- test/test-of-test-ratchet.test.ts | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/eng-finding-retry-budget.test.ts b/test/eng-finding-retry-budget.test.ts index 687cc2ea03..c390233f74 100644 --- a/test/eng-finding-retry-budget.test.ts +++ b/test/eng-finding-retry-budget.test.ts @@ -141,7 +141,7 @@ test('live periodic census fits the declared CI wall including setup', () => { test('registered allocation is deterministic and preserves every discovered file', () => { const files = collectPaidTestFiles(); - expect(files).toHaveLength(112); // + skill-e2e-write-skill (GSTA-133); + skill-e2e-ship-frozen-scope (frozen review scope, GSTA-113 PR 2); + skill-e2e-failure-routing (#3157/#3158); + skill-e2e-dx-error-contract (#3226); + skill-e2e-gate-integrity (HONEST_WORK_GATE_INTEGRITY W8); + skill-e2e-autoplan-schema-canary, -guard-pty and -long-session (Oct 7 wave, CEO-13, ENG-18, CEO-15); + skill-e2e-ship-measure-seeded-flake (v1.91.32.0); W5a: 15 carve wrappers became one case-sharded file; + codex-e2e-multiblock-live and skill-e2e-design-model-smoke (v1.91.30.0); + expect(files).toHaveLength(113); // + skill-e2e-model-panel (GSTA-173); + skill-e2e-write-skill (GSTA-133); + skill-e2e-ship-frozen-scope (frozen review scope, GSTA-113 PR 2); + skill-e2e-failure-routing (#3157/#3158); + skill-e2e-dx-error-contract (#3226); + skill-e2e-gate-integrity (HONEST_WORK_GATE_INTEGRITY W8); + skill-e2e-autoplan-schema-canary, -guard-pty and -long-session (Oct 7 wave, CEO-13, ENG-18, CEO-15); + skill-e2e-ship-measure-seeded-flake (v1.91.32.0); W5a: 15 carve wrappers became one case-sharded file; + codex-e2e-multiblock-live and skill-e2e-design-model-smoke (v1.91.30.0); expect(files).toContain('test/skill-e2e-ship-skip.test.ts'); const m = livePlan(files); expect(livePlan([...files].reverse())).toEqual(m); diff --git a/test/helpers/providers/gateway.ts b/test/helpers/providers/gateway.ts index 88efa1fa8b..21b4557e1f 100644 --- a/test/helpers/providers/gateway.ts +++ b/test/helpers/providers/gateway.ts @@ -72,12 +72,12 @@ export class GatewayAdapter implements ProviderAdapter { } async available(): Promise { - if (!resolveClaudeCommand()) { - return { ok: false, reason: 'claude CLI not found on PATH (the gateway arms run in Claude Code). Install: npm i -g @anthropic-ai/claude-code' }; - } if (!this.source[GATEWAY_KEY_ENV]) { return { ok: false, reason: `${GATEWAY_KEY_ENV} is not set. Create a key at https://openrouter.ai/keys and export it.` }; } + if (!resolveClaudeCommand()) { + return { ok: false, reason: 'claude CLI not found on PATH (the gateway arms run in Claude Code). Install: npm i -g @anthropic-ai/claude-code' }; + } return { ok: true }; } diff --git a/test/test-of-test-ratchet.test.ts b/test/test-of-test-ratchet.test.ts index 983429d253..9f20161324 100644 --- a/test/test-of-test-ratchet.test.ts +++ b/test/test-of-test-ratchet.test.ts @@ -131,6 +131,7 @@ const BASELINE = [ 'test/llm-judge-frontier.test.ts', 'test/llm-judge-stream.test.ts', // landed in v1.91.7.0 before this ratchet: harness owner for its functional-QA/docsync paid evals 'test/memory-cache-injection.test.ts', + 'test/model-panel-selftest.test.ts', // GSTA-173: free instrument check for the paid model panel; its hidden checks, INFRA classes and wording rule live in the paid-path helper 'test/module-size-ratchet.test.ts', // ratchet (c) source scanner (W2): measures product modules as text; its counter is test tooling 'test/native-auto-decide-pty.test.ts', 'test/no-suicide-exit.test.ts',