fix(add-portal): keep generated tests offline in CI

Merged
RU
2d ago
+325-27

What changed and why

/add-portal Step 3 tells the generator to create a live portal smoke test. Step 5 then registers that CLI for automatic CI, whose discovery job runs every *.test.ts through bun test on each push. This contradicts the CI workflow's explicit rule against live portal requests.

Generate fixture/mock tests using captured responses and the shipped local HTTP/fetch-preload pattern instead. Keep Step 4's mandatory, bounded live search and detail checks as manual registration checks.

Failing case / reproduction (for fixes)

Follow the persisted Step 3 instruction to put a live search test under .agents/skills/<name>/cli/tests/, then follow Step 5 registration: .github/workflows/ci.yml discovers its package and executes the live test. The revised instructions separate those paths; no live portal was contacted from CI to demonstrate the conflict.

Verification

Existing /add-portal command test, lint, framework-version and security guards passed; git diff --check clean. Python 3.13.5 with openpyxl 3.1.5: 800 tests OK (6 optional-dependency skips). No workflow, permissions or portal implementation changed.

The source, specification and verification evidence were reviewed.