Skip to content

feat(dox): cut the Dox gates to three and close the gate set (DOX-G19) - #594

Merged
craig-o-curtis merged 3 commits into
mainfrom
593-dox-gate-193-new-failures-in-one-run
Nov 30, 2026
Merged

craig-o-curtis merged 3 commits into
mainfrom
593-dox-gate-193-new-failures-in-one-run

Conversation

@craig-o-curtis

Copy link
Copy Markdown
Contributor

Refs #593 (DOX-G19)

Summary

The weekly sweep ran 24 gates on 18 legs and filed 193 failures in one issue (#593). This PR keeps three gates, a11y-axe, rendered-links and data-credits-check, and deletes the other 21 with everything only they used.

  • The runner has no tiers. A PR runs one Chromium leg (dox-gates). The weekly sweep runs six legs: Chromium 4, Firefox 1, WebKit 1.
  • The gate set is closed. registry.test.ts fails if a fourth entry is added, and one rule in context/dox/built/tier-2-gates.md says no story adds a gate without the owner's word. A check a feature needs goes in that feature's own test.
  • The data-credits-check failures Dox gate: 193 new failures in one run #593 names are fixed. Two were wrong readings in the gate: WebKit's panel fade (a fixed 500 ms wait, now a wait for motion to end) and Firefox's Tab from Zoom in (Zoom in is the last Tab stop on /, so the gate now fails only on a real trap). One was a page defect: in WebKit at 375 px the credits popup flipped below its button while opening, so the side is now chosen once as it opens.
  • The leak guard (apps/dox/src/test/leak-guard.ts) allowed any capturing toggle listener on the document. It now allows exactly three by name: toggle syncCreditsExpanded, beforetoggle pickCreditsSide and toggle readOpenedBoxes. Every other capturing toggle or beforetoggle listener on the document is tracked. A new test covers it.
  • The capturing toggle listener in apps/dox/src/lib/scroll-regions.ts lives for the page by design (one per root, behind a WeakSet). It is now named readOpenedBoxes, so the allow-list can match it.
  • No public function, output or bundle size changes. The changeset is empty.

Validation

  • pnpm run validate: exit 0, 27 checks passed. Two earlier runs at load average 22 to 25 failed without a code failure: one on 10 browser-test timeouts in 4 files this PR does not touch (the 4 pass alone, 329 of 329), one on a vitest worker SIGTERM at startup.
  • Full sweep across Chromium, Firefox and WebKit in dark and light: gates: PASS 4 ran, 0 skipped ... 1332 pages ... 78m41s.
  • scripts/gates: 130 tests pass. data-credits-check: 3 passes in a row in all three engines. ui-standards: 0 findings. Dox test: 803 files pass.

After merge

The weekly workflow is dispatched and watched. #593 is closed on the owner's word, not by this PR.

…#593)

Keep `a11y-axe`, `rendered-links` and `data-credits-check`. Delete the other 21 gates with their tests, helpers, fixtures and package scripts. The runner has no tiers, the PR runs one Chromium leg, and the weekly sweep runs six legs. A test pins the registry at three entries, so a fourth gate needs a deliberate edit.

Fix the `data-credits-check` failures from #593. Two were readings in the gate: the WebKit panel fade, now a wait for motion to end, and the Firefox Tab from Zoom in, which now fails only on a real trap. One was a page defect: in WebKit at 375 px the credits popup flipped below its button while opening, so the side is now chosen once as it opens. The leak guard now allows only three named page-lifetime listeners (`syncCreditsExpanded`, `pickCreditsSide` and `readOpenedBoxes`) instead of every capturing `toggle` listener on the document, and the listener in `scroll-regions.ts` is named `readOpenedBoxes` to match.
@craig-o-curtis craig-o-curtis added ai skills Adds AI skills, commands, context, enhancements documentation Improvements or additions to documentation enhancement New feature or request gmt monorepo pipes labels Nov 30, 2026
@craig-o-curtis
craig-o-curtis enabled auto-merge (squash) November 30, 2026 06:26

@baldurpan baldurpan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small thing, all in the context docs. The code changes look right to me: I went through the credits side picking in data-credits.ts and its CSS, the leak-guard allow-list and its test, the three-entry gate registry, and the dox-table-fit job leaving ci.yml (nothing needs: it, and it isn't a required check on main).

Comment thread context/dox/built/tier-4-globe.md Resolved
The context docs and some code comments still named scripts and checks this branch deletes, such as `hero-space`, `text-floor` and `frame-budget`, as if they ran. Keep each rule and drop the statement that a gate checks it.

@baldurpan baldurpan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at 0aa6f7b. The gate cut reads right, and the context docs no longer promise checks that are gone. CI was still running when I approved (2 passed, 36 pending), so keep an eye on it.

@craig-o-curtis
craig-o-curtis merged commit 337bbd6 into main Nov 30, 2026
43 of 44 checks passed
@craig-o-curtis
craig-o-curtis deleted the 593-dox-gate-193-new-failures-in-one-run branch November 30, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai skills Adds AI skills, commands, context, enhancements documentation Improvements or additions to documentation enhancement New feature or request gmt monorepo pipes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants