Public: anyone can read this; the crew can change it.
The note door lands from pull #4824's branch, with moderation taken off the app's host #4911
Merged 44d 17h ago, live in production
This lands pull #4824's note door, rebased on main, with moderation taken off the app host. The type check is clean, and test/apps-feedback, test/apps-feedback-mirror and test/tui-notes pass. I did not run the whole suite, so the forge's check will be its first full run.
-
Reviews
ApprovedApproved. The pull does what it set out to do: moderation is off the app host, and
/__forge/note/moderateis a 404 for every method and every cookie, answered before the door lookup. I checked these points:- Identity: the sender comes from the forge's signed grant (
readGrant). It is re-checked withstillEntitledon a private app or a sealed preview, and gated byisActiveandcanRead. The visitor cookie is HttpOnly and must match^[0-9a-f]{32}$. - Writes and limits: POST is same-origin only. The body is capped by the bytes actually read, not by Content-Length. Rate limits key on
clientBucket, the socket's client with the trusted-proxy rule. All five limits are checked before any is spent. SQL is parameterised. Text is fenced with a fence longer than any backtick run, the page is reduced to this origin plus its pathname inside code, and the viewport is matched against a regex. - Trust:
markSendermakes the issue speak as a reader, so the crew holds it until a writer adopts it, and the brief warns onfrom-app. - Terminal: the palette rows use the page's entry check (
canEnterApp) andcanRead. Only an admin sees every sender's notes, andmoderateNotere-checkscanAdmin. Writes go through the issue actions, so the bus and webhooks see them. - Checks: at head 2a5e2db1,
tsc --noEmitis clean, and 113 tests pass across apps-feedback, apps-feedback-mirror, tui-notes and the toolbar and report suites. - Preview: it boots and
/answers. The pill on this preview's host is drawn by the parent forge, so the new door can only be shown through the tests.
Not blocking, filed as #4917: the app's own script, or an unsealed preview's, runs same-origin. It can file and list notes as the visiting signed-in person. Two smaller points: a banned anonymous visitor comes back by clearing the cookie (only the source and app limits still hold them), and there is one stale comment, below.
- Identity: the sender comes from the forge's signed grant (
-
Checks
shipped production is serving it deploy f698c54
-
History
- The app host no longer answers /__forge/note/moderate: moderation happens on the forge 2a5e2db
- A note speaks as its sender: unadopted and untrusted until a writer adopts it; the terminal asks the page's entry check 89216bf
- Notes close and label through the issue actions: the bus, webhooks and a mirror's origin see a hide, and a mirrored note is labelled on its origin 998bb69
- The note door obeys the sealed-preview gate; the daily limit is driven by a test; README says who may write and what the owner can do 508ae3b
- Feedback notes: marked titles, label first and checked, shipped only when done, hourly and daily bounds, page as code ce6d2f4
- Feedback door review: capped body read, socket-keyed limits checked before spending, terminal palette rows, untrusted-text marking, button states f3eec3f
- The forge button takes notes from anyone: Tell the builders files a from-app issue and shows its status 2c1243b
- MCP `secrets`: list names, set and remove the forge's sealed secrets, never reading a value back (#4802) ea1aa03
- .sys-pair leaves the stylesheet (#4654) 61723ed
- A form error on the issue, pull and edit pages is §5's field error, not .error-note (#4807) e0cfbc0
- A pull's /review row shows its check verdict and its preview link, read without git (#4800) c4a0bb5
- MCP `prompts`: list, add, run and remove an app's prompt sources, with the same rules as the API (#4776) 027c135
- The studio's home and app pages lay main and rail with `.split`, and `.dash` leaves the stylesheet (#4775) aae9cb7
- Release 0.7.243: .origin-row, .origin-name, .origin-mark and .mirror-form leave the stylesheet (#4722);MCP `app_env`: list, set and unset an app's environment variables, with the same rules as the API (#4773);/explore's kind and sort segments draw §5's .bar, and no class="filters" remains in the markup (#4769);The t 960a50f
- .origin-row, .origin-name, .origin-mark and .mirror-form leave the stylesheet (#4722) 8980181
- MCP `app_env`: list, set and unset an app's environment variables, with the same rules as the API (#4773) 4a94b50
- /explore's kind and sort segments draw §5's .bar, and no class="filters" remains in the markup (#4769) 273994f
- The type check refuses unused imports and locals: `noUnusedLocals` is on in tsconfig.json and test/ is clean (#4774) 977514d
- .frozen, .frozen-form and .frozen-sentence leave the stylesheet (#4640) 2bb3585
- /boards and the terminal's Flow dialog show each reviewer's reviews in flight, counted only from repositories the reader can see (#4762) 32bb7a4
This lands pull #4824's note door, rebased on main, with moderation taken off the app host. The type check is clean, and test/apps-feedback, test/apps-feedback-mirror and test/tui-notes pass. I did not run the whole suite, so the forge's check will be its first full run.
What changed
- The six commits from #4824 (head 1399ada9) rebased onto main with no conflicts.
/__forge/note/moderateis now a 404 insrc/apps/feedback.tsfor any method and any cookie. It is answered before the door lookup, so it never reaches the app. The app host answers onlyPOST /__forge/noteandGET /__forge/notes.moderateNoteinsrc/actions/app_notes.tsis untouched, for #4819's forge-origin screen to call. The HTTP handler that wrapped it is gone.- A new test in
test/apps-feedback.test.tschecks that POST, GET, PUT and DELETE to/__forge/note/moderateall return 404, with no cookie and with an admin grant cookie. - The old moderation test now calls
moderateNotedirectly, still covering hide, ban, the closed issue, the refused sender and the unknown id. The 403 checks for strangers went with the endpoint, since the function does no admin check; the caller does. - The README's note-door paragraph now says moderation happens on the forge, not on the app, and why. The terminal screen is the owner's tool today.
Left alone: the reviewer's note that a preview's script can file a note as the visiting person. It is out of scope here.
To try it: run bun test test/apps-feedback. Against a running app, curl -i -X POST <app-host>/__forge/note/moderate answers 404.
This lands pull #4824's note door, rebased on main, with moderation taken off the app host. The type check is clean, and
test/apps-feedback,test/apps-feedback-mirrorandtest/tui-notespass. I did not run the whole suite, so the forge's check will be its first full run.What changed
/__forge/note/moderateis now a 404 insrc/apps/feedback.tsfor any method and any cookie. It is answered before the door lookup, so it never reaches the app. The app host answers onlyPOST /__forge/noteandGET /__forge/notes.moderateNoteinsrc/actions/app_notes.tsis untouched, for #4819's forge-origin screen to call. The HTTP handler that wrapped it is gone.test/apps-feedback.test.tschecks that POST, GET, PUT and DELETE to/__forge/note/moderateall return 404, with no cookie and with an admin grant cookie.moderateNotedirectly, still covering hide, ban, the closed issue, the refused sender and the unknown id. The 403 checks for strangers went with the endpoint, since the function does no admin check; the caller does.Left alone: the reviewer's note that a preview's script can file a note as the visiting person. It is out of scope here.
To try it: run
bun test test/apps-feedback. Against a running app,curl -i -X POST <app-host>/__forge/note/moderateanswers 404.Closes #4910