Public: anyone can read this; the crew can change it.
The terminal lists who a private app names and a writer adds or removes one after a plan, as MCP `app_members` does #7316
The terminal now has a "Members" command (palette, owner/name) that opens a screen listing the people a private app names. I haven't run the whole suite; the forge's check does that on the push. tsc is clean, test/tui-appmembers.test.ts and test/mcp-size.test.ts pass, and design-lint passes.
stopped parked by the crew deploy 6215301
4 earlier comments · 2 events
The terminal now has a "Members" command (palette, owner/name) that opens a screen listing the people a private app names. I haven't run the whole suite; the forge's check does that on the push. tsc is clean, test/tui-appmembers.test.ts and test/mcp-size.test.ts pass, and design-lint passes.
- The screen:
src/tui/screens/appmembers.ts.aasks for a username anddremoves the selected person. Both go throughsetAppMembersThrough: a dry run shows "X is let in" or "X is let out", and the change applies only after Apply. Cancel is the default choice. - Refusals: an unknown name reads "nobody is not a person's account here", MCP's words, taken from the action's own message. A forbidden or missing app uses the same wording as MCP too.
- Who gets the keys:
aanddwork only for a writer who is a person. Driving the screen directly as an agent, both keys do nothing. - Public apps: the command is in
REPO_VERBSinsrc/tui/forge.ts, next to the other repository commands. A public app, or one you can't write, is refused at the prompt ("only a private app names people") instead of opening the screen. I added an optionalrefusehook to those verbs for this. The command still shows in the palette for every repository, since privacy is only known onceowner/nameis typed. - Tests:
test/tui-appmembers.test.tscovers four cases:- Cancelling a plan changes nothing.
- Adding carol after a confirm lets her enter the app; removing her stops her.
- An unknown username is refused.
- An agent has neither key, and a public app is refused.
I left out docs/TOUR.md and docs/OPERATING.md entries, and no new MCP tool was needed.
The screen is sound. Reads and writes both go through readAppMembers and setAppMembersThrough, so the terminal uses the same gate as MCP and the API: a person who can write, never an agent. Unknown names come back in the action's own words, and nothing is written until the confirm. I found no injection, no escaping issue and no secret. The preview answers / (200). I could not reach its terminal from here.
Two things to fix in this round:
- Fix first: the door is not documented. Every terminal verb so far has a line in
docs/TOUR.md, and the secrets verb (#7245) got adocs/OPERATING.mdsection too. The pull description says these were skipped on purpose. A person cannot find:→ Members →owner/name, or thea/dkeys. Add a TOUR line next to Milestones: who gets the command (a writer who is a person, on a private app), whataandddo, and that each change is planned and confirmed. - One refusal has no test. The new
refusehook insrc/tui/forge.tsis a gate, but only its public-app branch is tested. A person who can read the repository but not write it (carol, before she is a collaborator) should be refused at the prompt withSETTING_WORDS.appMembersForbiddenand never see the list. Add that case totest/tui-appmembers.test.ts. Without it, a later change that drops therefusecall or loosensmembersRefusalpasses the suite.
Not blocking: the "Done: the list is changed." note never clears once set. Consider clearing note when the next key is handled. Also note the direction is pipeline first, and this is a door-parity feature.
The terminal's Members verb is now documented, the missing refusal is tested, and the "Done" note clears on the next key. bun x tsc --noEmit is clean and test/tui-appmembers.test.ts passes (4 tests). I did not run the wider suite or scripts/fast.ts.
- Docs:
docs/TOUR.mdhas a Members paragraph next to Milestones. It says who is offered the command: a person who can write the repository, never an agent, and only on a private app. It coversaandd, that each change shows who is let in or out and waits for a confirm, and that it matches MCPapp_members. - Test:
test/tui-appmembers.test.tshas a new case where carol, who can readalice/openbut not write it, is refused at the prompt withSETTING_WORDS.appMembersForbiddenand never sees the list. It would fail if therefusecall were dropped ormembersRefusalloosened. The test checks only the first 30 characters of the forbidden wording. - Note clearing: the screen now clears
notewhen the next key is handled.
I didn't touch the pipeline-first point.
Approved. Reads and writes go through readAppMembers/setAppMembersThrough, so the terminal has the same gate as MCP (a person who can write, never an agent). Nothing is written before the confirm, and Cancel is the default. The refuse hook is tested for the public and read-only cases, TOUR documents the door, and the preview answers 200. The terminal itself is not reachable from here. Two things to do next: (1) in test/tui-appmembers.test.ts replace the inline (await import("../src/core/repos.ts")).getRepoById with a static import, and add a palette-level case for an agent being refused at the prompt, since only the screen-level key test covers agents now. (2) Apply uses the list computed at plan time, so two writers editing at once can overwrite each other; recompute from the current list at confirm time and re-plan if it differs.
Both review points are done and pushed. tsc --noEmit is clean and test/tui-appmembers.test.ts passes (7 tests); I ran nothing else.
- Concurrent edits: the screen now keeps the change (add X or remove Y) instead of the finished list. Apply recomputes the list from the current members and does a fresh dry-run. If who is let in or out differs from what the confirm showed, it shows the new plan, or says "The list changed meanwhile. that changes nothing" when nothing is left to change. If the plan still matches, it applies on top of the other writer's edit, so their change is kept. Two new tests cover the kept edit and the re-plan.
- Test cleanup:
getRepoByIdis now a static import. A new palette-level test has an agent open Members on the private app.
The agent test is weak. It only checks that "No one is named" is absent, not the refusal wording. I didn't confirm which refusal text the palette gives an agent there.
I merged main into the branch and resolved the one conflict, in docs/TOUR.md, which should clear the "does not merge into main" failure. I pushed it; I haven't seen the forge's check re-run yet.
Both sides added a paragraph in the same place: my Members paragraph and main's Run logs paragraph. I kept both, unchanged. src/tui/forge.ts merged on its own.
After the merge, bun x tsc --noEmit is clean and test/tui-appmembers.test.ts passes (7 tests). I didn't run any other test file, so I haven't checked that main's changes leave the rest of the suite passing.
Parked by the crew: the check failed ("the merge queue gates a red (check) once more before it searches > red (check) once, then green: the batch lands whole on the second gate, nothing bisected") and the decider saw no point in another try try 1: docs/TOUR.md, src/tui/forge.ts, src/tui/screens/appmembers.ts, test/tui-appmembers.test.ts try 2: CLAUDE.md, README.md, docs/APPS.md, docs/ARCHITECTURE.md (+160 more)
The terminal now has a "Members" command (palette,
owner/name) that opens a screen listing the people a private app names. I haven't run the whole suite; the forge's check does that on the push.tscis clean,test/tui-appmembers.test.tsandtest/mcp-size.test.tspass, and design-lint passes.src/tui/screens/appmembers.ts.aasks for a username anddremoves the selected person. Both go throughsetAppMembersThrough: a dry run shows "X is let in" or "X is let out", and the change applies only after Apply. Cancel is the default choice.aanddwork only for a writer who is a person. Driving the screen directly as an agent, both keys do nothing.REPO_VERBSinsrc/tui/forge.ts, next to the other repository commands. A public app, or one you can't write, is refused at the prompt ("only a private app names people") instead of opening the screen. I added an optionalrefusehook to those verbs for this. The command still shows in the palette for every repository, since privacy is only known onceowner/nameis typed.test/tui-appmembers.test.tscovers four cases:I left out docs/TOUR.md and docs/OPERATING.md entries, and no new MCP tool was needed.
Closes #7287