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

A test lists the doors that exist only as a tool or a Talk press; make a machine and mail setup get their pages #18480

opened this

Merged 3h 52m ago, live in production

A test now lists the write doors with no page, in a list file that can only shrink. "Make a machine" and "mail setup" already had their controls, so I added tests for them instead of new pages. What changed The test: scripts/pageless.ts computes the list and test/pageless-doors.test.ts checks it.

Notes

opened this

A test now lists the write doors with no page, in a list file that can only shrink. "Make a machine" and "mail setup" already had their controls, so I added tests for them instead of new pages.

What changed

  • The test: scripts/pageless.ts computes the list and test/pageless-doors.test.ts checks it. A door is an MCP tool with writes: true, or a Talk press (a key of ASKING). It has a page when a module under src/web/ or a non-API route module under src/http/ imports a name the tool imports from src/actions/. This is an import overlap, so a page that posts through a different function than the tool would not count.
  • The list: scripts/pageless-allow.json holds the 36 doors with no page today, for example rollback, subscription_add, talk_watch and invite. The test fails on a new pageless door and on a listed door that gained a page (bun scripts/pageless.ts --write prunes it). There is also a ceiling of 36, so the list cannot grow.
  • Make a machine: the compose form on /infra/build posts to /infra/apply, which calls startBuild as the infra tool does. The route checks may(forge.administer). The test presses it as an admin, as an everyday member and signed out, and confirms an empty form builds nothing.
  • Mail setup: the card on /settings/secrets posts to /settings/mail-aws, which calls setUpMailAws, the function the API and terminal use. The test presses it as admin, as a non-admin and signed out, and confirms nothing is made without the confirm box ticked.
  • Not on the list: neither door is on the list now, and the test asserts that. They were never pageless, so I removed no entries.
  • How-to: I added docs/features/pageless-doors.md.

Not done

  • I did not give any of the 36 listed doors a page. That is the shrinking work this list is for.
  • I added no MCP tool and changed no tool.
  • The tests check the form is drawn and the gates hold. They do not run a full build or a full AWS mail setup through the page.

Check results

  • bun x tsc --noEmit is clean, and the new test and the feature-doc, unused-exports and dup-imports tests pass.
  • test/mcp-size.test.ts fails on plan.issues.owner (91 bytes), a property description over 60 bytes in the plan tool. I did not touch any tool, so I left it.
  • The gate prints a note that the test's put helper looks like one in test/boards-machine.test.ts. It did not fail the run and I did not merge the helpers.
  • I reused no existing function. scripts/doorless.ts is the pattern I followed.

Try it: bun test test/pageless-doors.test.ts, or bun scripts/pageless.ts to print the list.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

🤖 Generated with Claude Code

Closes #18479

commented

A test now lists the write doors with no page, in a list file that can only shrink. "Make a machine" and "mail setup" already had their controls, so I added tests for them instead of new pages.

What changed

  • The test: scripts/pageless.ts computes the list and test/pageless-doors.test.ts checks it. A door is an MCP tool with writes: true, or a Talk press (a key of ASKING). It has a page when a module under src/web/ or a non-API route module under src/http/ imports a name the tool imports from src/actions/. This is an import overlap, so a page that posts through a different function than the tool would not count.
  • The list: scripts/pageless-allow.json holds the 36 doors with no page today, for example rollback, subscription_add, talk_watch and invite. The test fails on a new pageless door and on a listed door that gained a page (bun scripts/pageless.ts --write prunes it). There is also a ceiling of 36, so the list cannot grow.
  • Make a machine: the compose form on /infra/build posts to /infra/apply, which calls startBuild as the infra tool does. The route checks may(forge.administer). The test presses it as an admin, as an everyday member and signed out, and confirms an empty form builds nothing.
  • Mail setup: the card on /settings/secrets posts to /settings/mail-aws, which calls setUpMailAws, the function the API and terminal use. The test presses it as admin, as a non-admin and signed out, and confirms nothing is made without the confirm box ticked.
  • Not on the list: neither door is on the list now, and the test asserts that. They were never pageless, so I removed no entries.
  • How-to: I added docs/features/pageless-doors.md.

Not done

  • I did not give any of the 36 listed doors a page. That is the shrinking work this list is for.
  • I added no MCP tool and changed no tool.
  • The tests check the form is drawn and the gates hold. They do not run a full build or a full AWS mail setup through the page.

Check results

  • bun x tsc --noEmit is clean, and the new test and the feature-doc, unused-exports and dup-imports tests pass.
  • test/mcp-size.test.ts fails on plan.issues.owner (91 bytes), a property description over 60 bytes in the plan tool. I did not touch any tool, so I left it.
  • The gate prints a note that the test's put helper looks like one in test/boards-machine.test.ts. It did not fail the run and I did not merge the helpers.
  • I reused no existing function. scripts/doorless.ts is the pattern I followed.

Try it: bun test test/pageless-doors.test.ts, or bun scripts/pageless.ts to print the list.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs