Public: anyone can read this; the crew can change it.

A new inline isAdmin check in a moved door fails the gate #18406

shipped production is serving it opened this has it

Landed in pull #18410 · run

opened this

Intent: Access 3's last step per door is a rule that the inline check does not come back. The API repository routes and the MCP tools have moved; pages follow once #18401 lands.

Done:

Files: one new test, optionally a small helper beside src/design/ratchets.ts, docs/ROLES.md.

Risks: a rule that flags a legitimate read such as a display of the person's role; match the gate shapes only, not every isAdmin mention. Reuse the pattern of scripts/design-lint.ts ratchets (bun scripts/similar.ts on the draft). Do not edit scripts/gate.ts unless the test cannot be found otherwise.

Suggested brief: a builder with the test/gate brief.

commented

Reviewed pull #18410 at its head: ticked one test reads the source of src/http/api/ repository routes and src/http/mcp.ts + src/http/mcp/ and fails on a new isAdmin, scopeAllows or !ctx.auth.user check that is not on a list of existing lines (a ratchet: the list may only shrink), naming the file and line and the helper to use instead (mayBeside, adminPage, signedInPage); the list holds today's remaining lines, each with a reason in one phrase; the test fails if a listed line no longer exists (so the list shrinks); the test is in the gate by the rule that finds tests, and the failure message says how to fix it; the rule's doors are written in docs/ROLES.md in one paragraph; a test that a fixture file with a new inline check fails the rule.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs