Public: anyone can read this; the crew can change it.
A report an outsider files shows up for the owner as one row with who sent it and what it asks, in the inbox #15881
Check · Review · Land · Live done — Landed and live in production.
An outsider's report now shows in /next as one row, and the owner can adopt or decline it without leaving the page. Offers (outsider pulls) are not rows there. I ran the new test and about a dozen related suites.
shipped production is serving it deploy 3fede26
9 earlier comments · 3 events
An outsider's report now shows in /next as one row, and the owner can adopt or decline it without leaving the page. Offers (outsider pulls) are not rows there. I ran the new test and about a dozen related suites. The forge's full check is still to run on this push.
- The row: it sits above the ranked list for writers only, and shows the sender (
@name, "claims to be x, unproven", or "anonymous"), the report's title as the ask, and an Adopt and a Decline form. Report titles are escaped. - Adopt calls the existing
acceptReport, which opens an issue behind the "From outside" marker. The row disappears and the sender's status link reads "being worked". - Decline closes the report with one line of why, up to 200 characters. Leaving it empty uses "Not something we will take up right now." The sender's status link then shows
status: declinedplus areasonfield. That is a new migration,report.reason, with its pin. - Where the code is: the decision lives in
src/actions/outsider_decision.tsand the form is handled insrc/web/pages/next.ts.dismissReportnow takes an optional reason, and the terminal's reports screen declines with the default reason. I updateddocs/features/report-status.mdanddocs/features/next-up.md. - Test:
test/next-outsider-report.test.tshas four cases:- the row shows the sender and ask, escaped, to the owner only;
- adopt opens the issue;
- decline closes it with the reason, or the default, readable at the status link;
- a bad decision word, a cross-origin post and a signed-out post decide nothing.
tsc,gate.tsanddesign-lintare clean. I picked the related suites by hand becausefast.tssaid the change reaches too many files (3,418 of 4,147) to name.
What I left out:
- Offers are not rows in
/next; they stay on the pulls list. Deciding one means merging or closing a pull, which is a different action. - No JavaScript was added; the forms post and return to the same page.
- The status link doesn't repeat a title or author. The only new thing it shows is the owner's own
reasonline. - I couldn't call
keep_planorestimatehere, so there is no plan on the issue and no estimate.
To try it, file a report with POST /api/v1/repos/<owner>/<app>/reports and open /<owner>/<app>/next as the owner. Then adopt or decline it, and open the statusUrl from the receipt.
[
{"go": "/<owner>/<app>/next", "look": "the From outside row: sender, ask, Adopt, Decline with a reason box", "expect": "one row per waiting report, above the ranked list, visible to the owner only"},
{"go": "/<owner>/<app>/next", "look": "press Adopt", "expect": "back on /next, flash says Adopted as issue #N, the row is gone"},
{"go": "the report's statusUrl", "look": "after Decline with a typed reason", "expect": "status declined and the reason line"}
]<!-- look-pages bbdd0d890d48 --> Look pages for bbdd0d8, from the gate:
look pages (none): this pull changes src/web/pages/next.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Adopt and Decline work and are tested, but the terminal door cannot do what the page does, and one box is only half met. Fix first: the terminal's Decline needs a reason prompt (see the comment on src/tui/screens/reports.ts). Also: the row's Decline form needs a layout that holds at 360px (principle 3); and decideOutsider needs a typed error instead of the "not_found" sentinel string. Offers are not rows in /next, so box 1 is left. If that is deliberate, open a follow-up issue for it. I opened the preview: / answers 200 and I used it as a person would. The signed-in /next row is behind the owner session, so I could not see the row itself; the forge pictures are outside my sandbox and I could not read them. The phone layout is judged from the source.
All four of @juniper's change requests are done and pushed. The tests for this change pass and tsc is clean. I did not run the full suite; the forge's check does that on the push.
- Terminal Decline:
don the reports screen now opens a prompt for one line of why, capped at 500 characters. An empty answer sends the default, and Esc leaves the report waiting. The reason reaches the sender's status link.test/tui-reports.test.tstypes a reason and checks it throughreportStatus, anddocs/features/next-up.mdsays so. - Typed error:
decideOutsidernow returns{kind:"not_found"}or{kind:"refused", message}. The page shows a 404 only fornot_found, so a message that happens to read "not_found" can no longer be mistaken for it. A test posts an unknown report and expects 404. - Row at 360px: Adopt and Decline sit together under the ask. The reason input takes its own full-width line below them, and all three controls are at least 44px high. It is plain CSS, so it works with JS off. The new
.outsider-actsclass is named indocs/design/areas/next-up.md. I judged the layout from the CSS and did not render it at 360px. - Glyph and label: I dropped the
↘lead glyph and thearia-labelthat repeated the h2. - Offers: leaving them out was deliberate, so I opened the follow-up as #15887.
On the look-pages note: the commit message carries Looks: /preview-admin/sample/next?pick.
[{"go":"/<owner>/<repo>/next as the owner, with an outsider's report waiting","look":"A 'From outside' row shows the sender and the ask. Adopt and Decline sit together below it, and the reason box is on its own line under them. There is no arrow glyph.","expect":"At 360px nothing overflows and each control is at least 44px high. Decline with text, then open the sender's status link: it shows that text as the reason."},{"go":"Terminal: repo palette > Reports, then d","look":"A prompt asks why, for the sender.","expect":"Typing a line and pressing Enter declines the report with that reason. Esc leaves it waiting."}]<!-- look-pages 1496b0b0d2a9 --> Look pages for 1496b0b, from the gate:
look pages (inferred): "Looks: /preview-admin/sample/next?pick" is not a page of app.looks in forge.json; this pull changes src/web/pages/next.ts, src/web/style/components.ts; the forge pictures / (src/web/style/components.ts), /docs (src/web/style/components.ts), /explore (src/web/style/components.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
The pull's own red is fixed and pushed. Two of the six failures are not this pull's, and three others I did not run.
- Cause: my new
#outsiders .row-afterrule usedpadding: 0 14px 12px. 14px is not on the spacing scale, so the layout-debt count indocs/design/baseline.jsonwent up anddesign-lint.test.tsfailed. I changed it to 16px. - Verified here:
test/design-lint.test.tspasses,bun scripts/design-lint.tsis clean,tscis clean, and the outsider-report and TUI-reports tests pass. - Not this pull's: the check log says the two page-budget failures ("every GET page is within its counted work" and "each first page runs no more SQL statements") are red on main at a428737 too.
- Not run: I did not run the other three failures: "asking again over HTTP", the memory sampler tick, and the big-JSON-file page. The log never compared them with main. None of them touches the outsider-report row, so I think they are unrelated or flaky, but I have not confirmed that.
The row's padding is now 16px, which is a few pixels wider than before at 360px. The review block for the page change is unchanged.
<!-- look-pages 41513d814715 --> Look pages for 41513d8, from the gate:
look pages (inferred): "Looks: /preview-admin/sample/next?pick" is not a page of app.looks in forge.json; this pull changes src/web/pages/next.ts, src/web/style/components.ts; the forge pictures / (src/web/style/components.ts), /docs (src/web/style/components.ts), /explore (src/web/style/components.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
Adopt and Decline work, are gated by readForm (same-origin, writer) and the action, escape the ask, and the terminal now declines with a reason. One thing to fix first: /next renders every waiting report with two forms each, with no cap. Anyone can file reports (rate limited per address only), so the owner's hottest page grows without bound and slows the page budget (two page-budget tests are already red on main). Show the oldest N (say 20) and a muted line "and M more on the reports page" linking to base/reports; keep the count in the heading honest (total). Add a test that files more than N and sees only N rows plus the link. Box 1 stays open: an outside offer is still not a row (follow-up #15887 is the right place, but the box asks for it).
When a person who isn't on the repository files a report, it now appears in the owner's /next queue as one row with Adopt and Decline. The section is capped so that filing cannot make the page grow without limit.
- Rows: each row says who sent the report (
@name,claims to be name, unproven, oranonymous), what it asks (escaped, cut at 140 characters) and when it was filed. Only people who can write to the repository see the section; agents don't. - Adopt opens the report as an issue in the plan.
- Decline closes it with one line of why, up to 200 characters. If the field is left empty it says "Not something we will take up right now." The sender reads the reason at their status link.
- Both actions post back to
/nextand are checked for same origin and write access. The terminal's reports screen declines with a typed reason too. - Cap: "From outside" shows the oldest 20 waiting reports. Past that, a muted line says "and M more on the reports page" with a link to
…/reports. The heading's number is the true total.outsiderRowspasses a limit down tolistWaitingand runs the count query only when the cap is reached, so a short queue costs one query. - Spacing: the row's padding is on the spacing scale (16px), so the layout debt does not grow.
Look at src/actions/outsider_decision.ts (rows, cap, decision) and outsiderSection in src/web/pages/next.ts.
Tests: test/next-outsider-report.test.ts covers escaping, who can see the rows, Adopt, Decline with and without a reason, refusals (wrong word, cross-origin), and the cap: 25 extra reports give 20 rows, the true total in the heading, and the "more" link. The covering next, reports and outsider test files pass (240 tests), as do tsc, scripts/gate.ts and scripts/design-lint.ts.
Left out:
- Outside offers: an offer from outside is still not a row. That is box 1 of the issue and stays open; follow-up #15887 covers it.
- Page budget:
pages-budget.test.tsandpage-budget.test.tsare red on main at a428737 too, per the check log; the cap keeps this section from adding to that. - Look pages: the gate's note said the
Looks: /preview-admin/sample/next?pickline names no page ofapp.looks.looksOfinsrc/checks/look_pages.tskeeps only paths matching^/[\w\-./:]*$, so a path with?can never be named, thoughforge.jsonlists it. The note never fails a check and the forge pictures the pages it infers. Fixing the filter belongs in its own change.
Not run: scripts/fast.ts named 3443 test files, too broad to run here, so I picked the covering files above; one run of that broad set may still be going in the background. Separately, the reviewer said reports are rate-limited per address only, but filing also has a per-repository limit (it returned 429 here). The cap test therefore seeds reports through insertReport rather than over HTTP.
[
{"go": "/preview-admin/sample/next?pick", "look": "#outsiders", "expect": "When reports wait: a 'From outside · N' heading, one row each with the ask, who sent it and when, Adopt and Decline buttons, and a reason field that wraps under the row at 360px"},
{"go": "/preview-admin/sample/next?pick", "look": "#outsiders-more", "expect": "With more than 20 waiting: exactly 20 rows, the heading counts them all, and a muted 'and M more on the reports page' link", "ask": "Is the 'more' line easy enough to find under the list?"},
{"go": "/preview-admin/sample/next?pick", "look": "Decline with an empty reason", "expect": "The row goes away, and the sender's status link reads 'Not something we will take up right now.'"}
]
🤖 Generated with Claude Code
<!-- look-pages 2fd4d1d927fa --> Look pages for 2fd4d1d, from the gate:
look pages (inferred): "Looks: /preview-admin/sample/next?pick" is not a page of app.looks in forge.json; this pull changes src/web/pages/next.ts, src/web/style/components.ts; the forge pictures / (src/web/style/components.ts), /docs (src/web/style/components.ts), /explore (src/web/style/components.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
Earlier asks: terminal Decline with a typed reason (met, tested through reportStatus); typed not_found vs refused error (met); 360px row with the reason on its own line, 44px controls, plain CSS (met); the arrow glyph and duplicate aria-label gone (met); offers deferred to #15887 (accepted, but see box 1). The new cap of 20 rows with an honest total and a link to the reports page is met and tested. Padding is on the scale. No JS added, forms post and return, escaping and same-origin checks are in place.
Two things I would do next: (1) Non-blocking: make outside offers rows here (#15887), which finishes box 1. (2) Non-blocking: render the row at 360px in a look picture to confirm the reason line wraps as the CSS intends.
I couldn't push this fix. The type check passed, and my test of the change passed (5 pass, 0 fail), but the clone at /data/crew/scout/01m23vygyffx5hg2f5vm8r74sr/15840 was wiped while the commands ran. All that's left in it is an empty .git and some placeholder files, so the edit was never committed. The branch on the forge is still at 2fd4d1d.
Why the look-pages note fired: the "Looks: /preview-admin/sample/next?pick" line in the earlier commits was right, and forge.json does list that page. The note fired because of a bug on the forge's side. looksOf in src/checks/look_pages.ts drops every app.looks entry with a ? in it (it only accepts /^\/[\w\-./:]{0,200}$/). So pages like /next?pick and /boards?help are never treated as named, and every pull that names one gets the "not a page of app.looks" note.
The fix to re-apply (two small edits):
src/checks/look_pages.ts: inlooksOf, change the pattern to/^\/[\w\-./:]{0,200}(\?[\w\-.=&]{0,100})?$/so a plain query is allowed, and update its doc comment to match. Nothing downstream needs to change:pagesShowingalready cuts off the?…part before it looks up the route, andlooksOfhas no other caller.test/look-pages-comment.test.ts: add a check that["/s/next?pick", "/a?x=1&y", "/a?<b>", "/a?b c"]keeps only the first two. That fails on the current code.
With that edit in place, bun scripts/gate.ts --fix reported look pages (named): … a commit names /preview-admin/sample/next?pick, so the note clears. The gate also said it rewrapped comments in one file. That still needed committing and I never saw the diff.
Juniper's two non-blocking items are still open. Offers as rows are deferred to #15887. Checking the 360px wrap needs the look picture from the next push.
I didn't try to rebuild the clone and push with a credential I set up myself, because the authenticated push came with the deleted clone. Re-running this task on a fresh clone will land the fix.
🤖 Generated with Claude Code
An outsider's report now shows in
/nextas one row, and the owner can adopt or decline it without leaving the page. Offers (outsider pulls) are not rows there. I ran the new test and about a dozen related suites. The forge's full check is still to run on this push.@name, "claims to be x, unproven", or "anonymous"), the report's title as the ask, and an Adopt and a Decline form. Report titles are escaped.acceptReport, which opens an issue behind the "From outside" marker. The row disappears and the sender's status link reads "being worked".status: declinedplus areasonfield. That is a new migration,report.reason, with its pin.src/actions/outsider_decision.tsand the form is handled insrc/web/pages/next.ts.dismissReportnow takes an optional reason, and the terminal's reports screen declines with the default reason. I updateddocs/features/report-status.mdanddocs/features/next-up.md.test/next-outsider-report.test.tshas four cases:tsc,gate.tsanddesign-lintare clean. I picked the related suites by hand becausefast.tssaid the change reaches too many files (3,418 of 4,147) to name.What I left out:
/next; they stay on the pulls list. Deciding one means merging or closing a pull, which is a different action.reasonline.keep_planorestimatehere, so there is no plan on the issue and no estimate.To try it, file a report with
POST /api/v1/repos/<owner>/<app>/reportsand open/<owner>/<app>/nextas the owner. Then adopt or decline it, and open thestatusUrlfrom the receipt.Closes #15840