Repository navigation
Authenticated fixtures reach audit readiness (#914) - #918
Merged
Merged
Conversation
- {{origin}}: a built-in fixture reference to the site origin (single and
steps fixtures, benchmark, verify-deployment), so one fixture file works
under any --origin; it cannot be captured.
- A status mismatch in `urlcode test` carries the start of the response body,
so a refusal shows its reason code (cross_origin_refused,
authentication_required).
- Coverage: HEAD is implied by a covered GET (impliedRouteMethods); a
coveredElsewhere waiver on a route behind a principal gate is honoured once
the gate's asserted anonymous 401 is observed (basis: gate-refusal); the
inventory reports gatedBy; coverageNotes explain unasserted successes,
uncovered gated routes and ignored waivers.
- Signed-in coverage stays a steps fixture through the provider's real
sign-in endpoint and the cookie jar: no test principal is added.
- Proofs use {{origin}} and are audited ready under a second --origin.
- Docs: READINESS coverage rules and authenticated routes, AI-AUTHORING,
TOOLING, auth README, proof READMEs, agents guide, llms.
- Core package budget raised with measured sizes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 13:44
… budget Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
added a commit
that referenced
this pull request
Sep 29, 2026
…budget Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
added a commit
that referenced
this pull request
Sep 29, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #914, found by the #841 agent trial:
auth: trueroutes couldn't reach audit readiness.Decisions
Sign in through the provider's real endpoint; no test principal.
stepsfixture signs in through the provider's real endpoint and uses the [Request]: let urlcode test fixtures carry a cookie session between steps #811 cookie jar. That already worked end to end, and both proofs were already audit-ready this way; the trial agent missed it because it was only documented under "Cookies".auth: true)", with accounts fromnpx urlcode-auth create-user.Waivers. A
coveredElsewherewaiver is honoured only when the route is shown to be served. Each honoured waiver reports itsbasis:route-covered: another method of the same route is covered.gate-refusal: the route is gated by a principal-providing extension, and a passing fixture asserts the gate's anonymous 401 with a body or headers.A bare status, or a 401 from an ungated function, doesn't count. The inventory reports
gatedBy.HEAD. A covered GET implies HEAD (
impliedRouteMethods); the runtime strips HEAD bodies for every handler.A 200 with no body assertion still doesn't count, because it can't tell the right handler from a catch-all. A new
coverageNotesfield explains why:unasserted-success,gated-route-uncovered,waiver-without-proof.Origin.
{{origin}}, the configured site origin. It works in single andstepsfixtures and in the benchmark.urlcode testshows the start of the response body (redacted), so reason codes likecross_origin_refusedare visible.Evidence (macOS, Node 26)
test/authenticated-fixtures.test.ts(5 tests).{{origin}}and assert thecross_origin_refusedbody. They audit again under a second origin with no sign-in coverage notes.npm test1180,test:proof12/12,test:proof:authjs13/13.npm run verifypasses after merging main.test:packagepassed before the merge.Limits
🤖 Generated with Claude Code