Skip to content

Spec 002 T020: the replay, a reusable check - #215

Merged
adamjohnwright merged 1 commit into
mainfrom
spec002/t020-replay
Nov 14, 2026
Merged

adamjohnwright merged 1 commit into
mainfrom
spec002/t020-replay

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Spec 002 (specs/002-analysis-report), T020, part 1 of 2: the replay of User Story 2 (SC-202) as a reusable check. The run's results and T020's tick follow in a second PR.

  • src/compare/replay.ts: T001's request set (research R5), with T020's additions (number=7&number=abc, importableOnly=true&importableOnly=maybe, resource=UNIPROT&resource=ENSEMBL, importableOnly=%20), and the comparison of each pair of answers: status, Content-Type, file name, and the body of anything but a PDF; the framework's 400 by its form (its time apart). A listed difference (spec Assumptions: a malformed token, %2F, a flag of spaces) holds only with the listed answer; today's answer there is a difference. pdf-export's 202 is followed to its answer and counted (FR-210).
  • Call 4's refusals (another content type, 415; an empty body, 400) checked against T004's stub.
  • ci/replay.ts runs it against two services on loopback, reading the token from a file; it prints no token, identifier or body.
  • test/compare/replay.test.ts: the comparison, a run against made-up services, and call 4's check against the stub. Each check seen failing on a planted fault (seven mutations of replay.ts).

Run against the development host's own services: 39 cases, 3 listed differences, none other; call 4's refusals as the stub's.

🤖 Generated with Claude Code

ci/replay.ts sends T001's requests for the report's address, with T020's
additions (a parameter given twice, importableOnly of a space), to today's
analysis service and to pdf-export's serve, one at a time, and compares
each pair: status, Content-Type, file name, and the body of anything but a
PDF; the framework's 400 by its form. A listed difference holds only with
the listed answer. It also checks call 4's refusals (415, 400) against
T004's stub. It prints no token, identifier or body.

Each check seen failing on a planted fault (seven mutations).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 95d2781 into main Nov 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant