Repository navigation
test(router): accept array-valued schema types and report ref cycles in the gate walker - #446
Merged
dayvidpham merged 4 commits intoNov 29, 2026
Merged
Conversation
…claredContractRoutes
Contributor
Author
Review — curated reportThree independent reviewers (correctness, tests, elegance): three ACCEPT, zero blockers. Checked:
Noted, not fixed: an OpenAPI 3.1 boolean schema ( Gates on |
dayvidpham
enabled auto-merge
November 29, 2026 10:31
journey results: all passedworkflow run: 46252616249 no screenshots or clips: the report lists 468, but none of them is in the downloaded artifact. account-settings.journey › opens from the account menu and shows every row — passedvalidation mediaaccount-settings.journey › says peasant is signed in nowhere — passedvalidation mediaaccount-settings.journey › refuses a handle somebody else holds — passedvalidation mediacollective-settings.journey › walks the sections from the section bar, and draws no check-mode radios — passedvalidation mediacollective-settings.journey › keeps its section bar on a phone — passedvalidation mediacollective-settings.journey › edits a text field only after edit, and saves it — passedvalidation mediacollective-settings.journey › saves who can publish the moment a card is pressed — passedvalidation mediacollective-settings.journey › settles a switch the moment it changes — passedvalidation mediacollective-settings.journey › says github connected after the install handshake, and lands on the github section — passedvalidation mediacollective-settings.journey › retains github user search and confirms the selected invitation — passedvalidation mediacollective-settings.journey › deletes the collective only after the owner says they understand — passedvalidation mediacollective.journey › lists the collectives the viewer belongs to in a table — passedvalidation mediacollective.journey › shows the owner the chips, the tabs, the table and the github org — passedvalidation mediacollective.journey › shows the owner of a curated collective what waits for approval — passedvalidation mediacollective.journey › retains transcript grouping and private contribution withdrawal on the mounted detail page — passedvalidation mediacollective.journey › shows a member the org without manage, and leave — passedvalidation mediacollective.journey › sends a signed-out reader of a public collective to the marketing log-in, coming back to it — passedvalidation mediacollective.journey › uses the inline repo picker, links a repository and says what it saved — passedvalidation mediadiscover.journey › discovers, searches and joins collectives — passedvalidation mediadiscover.journey › creates a collective and reports who was invited — passedvalidation mediaexplore.journey › browses, searches, and opens a transcript — passedvalidation mediaexplore.journey › filters the list by provider — passedvalidation mediaexplore.journey › reorders the list by turn count — passedvalidation mediaexplore.journey › switches between grid and list — passedvalidation mediaexplore.journey › search surfaces a matching collective and opens it — passedvalidation mediaexplore.journey › renders no rows when the server returns an empty list — passedvalidation mediahome.journey › lists your transcripts once, with totals and one searchable library — passedvalidation mediahome.journey › remembers how the table is arranged — passedvalidation mediahome.journey › searches your transcripts — passedvalidation mediahome.journey › fits a phone, with the table scrolling in its own box — passedvalidation mediahome.journey › teaches publishing when nothing is published yet — passedvalidation mediapositioned-transcript.journey › journey-capability-absent-content-page — passedvalidation mediapositioned-transcript.journey › journey-deeplink-request-set — passedvalidation mediapositioned-transcript.journey › journey-v2-failure-no-content-request — passedvalidation mediapositioned-transcript.journey › journey-number-far-target — passedvalidation mediapositioned-transcript.journey › journey-number-history-section — passedvalidation mediapositioned-transcript.journey › journey-turn-requested-row-filtered — passedvalidation mediapositioned-transcript.journey › journey-restore-reading-position — passedvalidation mediapositioned-transcript.journey › journey-download-after-segment-failure — passedvalidation mediapositioned-transcript.journey › journey-preview-readonly — passedvalidation mediapositioned-transcript.journey › journey-referrer-policy-and-no-id-in-logs — passedvalidation mediapositioned-transcript.journey › browser-revalidation-then-revoked — passedvalidation mediapositioned-transcript.journey › withheld-fields-not-rendered — passedvalidation mediaproject.journey › expands the orphan group and opens a session — passedvalidation mediapull-request.journey › the author sees what matches and who can read it — passedvalidation mediapull-request.journey › reads the attached transcripts beside the code — passedvalidation mediapull-request.journey › moves through the split list with j and k — passedvalidation mediapull-request.journey › lists them newest first, by the day they were asked for — passedvalidation mediapull-request.journey › says nothing is waiting, and how a pull request comes to wait — passedvalidation mediapull-request.journey › asks a signed-out visitor to sign in and come back — passedvalidation mediasign-in.journey › a visitor with no session at the root is sent to the marketing log-in popup — passedvalidation mediasign-in.journey › a stale session at the root also leaves for the marketing log-in popup — passedvalidation mediasign-in.journey › a signed-out deep link comes back to its page, query and all — passedvalidation mediasign-in.journey › a signed-out page links home to the marketing site and fetches nothing cross-origin — passedvalidation mediasign-in.journey › the app's own fetch of the root is served, not sent to another origin — passedvalidation mediasign-in.journey › with no stored choice the theme follows a light system from the first paint — passedvalidation mediasign-in.journey › with no stored choice the theme follows a dark system from the first paint — passedvalidation mediasign-in.journey › the public privacy notice hydrates without an error on a light system — passedvalidation mediasign-in.journey › the public privacy notice hydrates without an error on a dark system — passedvalidation mediasign-in.journey › the sign-in page hands off to the marketing log-in popup, keeping where to return — passedvalidation mediasign-in.journey › the sign-in page drops a foreign return address — passedvalidation mediasign-in.journey › signing in from a page comes back to it — passedvalidation mediasign-in.journey › a provider hand-off never follows a foreign return address — passedvalidation mediasign-in.journey › the public privacy notice fits a phone — passedvalidation mediasign-in.journey › the public privacy notice is accessible signed out — passedvalidation mediasign-in.journey › a signed-in sidebar is home, discover, pull requests and collectives — passedvalidation mediasign-in.journey › the account menu holds profile, settings and sign out — passedvalidation mediasign-in.journey › sign-out announces pending and failed requests with retry — passedvalidation mediatranscript.journey › home-control: full root, header and zen — passedvalidation mediatranscript.journey › direct-collective: full root, header and zen — passedvalidation mediatranscript.journey › inferred-collective: full root, header and zen — passedvalidation mediatranscript.journey › collective-with-pending-notice: full root, header and zen — passedvalidation mediatranscript.journey › compact-home: native controls and footer focus — passedvalidation mediatranscript.journey › compact-pending-collective: native controls and footer focus — passedvalidation mediatranscript.journey › unverified source opens the original call from another tab — passedvalidation mediatranscript.journey › home-short: mobile utilities and exits — passedvalidation mediatranscript.journey › home-long: mobile utilities and exits — passedvalidation mediatranscript.journey › collective-short: mobile utilities and exits — passedvalidation mediatranscript.journey › collective-long-pending: mobile utilities and exits — passedvalidation mediatranscript.journey › home-compact-laptop: mobile utilities and exits — passedvalidation mediatranscript.journey › home-clipboard-denied: mobile utilities and exits — passedvalidation mediatranscript.journey › opens a stored transcript — passedvalidation mediatranscript.journey › the header copies the address and keeps more — passedvalidation mediatranscript.journey › the more menu, open — passedvalidation mediatranscript.journey › manage access, open — passedvalidation mediatranscript.journey › pull requests, collapsed — passedvalidation mediatranscript.journey › pull requests, expanded — passedvalidation media |
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.
Closes #445.
What and why
The contract gates from #444 walk the served document's schemas. The walker made three simplifying assumptions, none of which matters for today's document:
type."type": ["array","null"]failed to decode, and the route dropped out of the gate silently.typenow accepts a string or an array of strings, and a schema that cannot be decoded fails the test with its operation.$refcycles. References now resolve one hop at a time, with each hop tracked, so a cycle of two or more hops is reported.declaredContractRoutesreuses the shared parser and method check.Scope boundary
Tests only. The closed-body set and the list-route set derived from the served document are unchanged.
Acceptance
A synthetic-document fixture (
schema_walker_cases.yaml, with a required-name manifest) covers four cases:["array","null"]response is derived as a list route;["object","null"]closed request body is derived as closed;$refcycle is reported;typethat is neither a string nor a string array is reported.Verification (head
f2605f0c)go build,go vet(with and without the integration tag),gofmtandgo test -count=1 ./...pass.scripts/run-integration-gates.shpasses every package, with PostgreSQL, RustFS and the CI key ring.make check-unstringhas no findings.Merge dependencies
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.