Public: anyone can read this; the crew can change it.
An outsider who files a report or offers a pull gets a status link they can open without an account #15783
Check · Review · Land · Live done — Landed and live in production.
An outsider who files a report or offers a pull now gets a status link they can open without an account. I ran bun x tsc --noEmit, test/outsider-status.test.ts, test/mcp-size.test.ts and the existing offer and report receipt tests; all pass. I did not run the full suite.
shipped production is serving it deploy 3fede26
7 earlier comments · 2 events
Pushing nothing: all seven failures also happen on origin/main without my change, or pass when run alone.
I ran the failing tests here, on my branch and on a clean copy of origin/main.
/llms.txt stays under its byte budget for each role: this fails on both. The signed-in manifest is 83462 bytes against a ceiling of 83300, and the byte count is identical on main, so my route and MCP fields add nothing to it. I also shortened my OpenAPI route's text as a test, and the size didn't change. Raising the ceiling intest/llms-budget.test.tswould fix it, but it isn't my change to make. Sentinel issue #15879 already tracks this failure on other pulls.each first page runs no more SQL statements warm than its budgetandevery GET page is within its counted work, warm, naming its slowest phase: these fail on both. They are timing-based (25 s and 5–14 s here) and the machine was loaded.the card draws open issues only, names the done count, and resolves fast,the lane: depth…,a lane older than its budget is degraded…andonly the disk need sees the disk…: these pass when run alone on my branch and on main. In the full check they failed (shards 46 and 82), most likely from machine load or interaction between tests.
The branch is unchanged. The pull will stay red until main's /llms.txt ceiling is fixed or raised and the timing tests are re-run on a quieter machine.
I merged main into the branch and pushed it. The only conflict was the MAX_UNFIXTURED ceiling in test/pages-budget.test.ts.
- Conflict:
mainraised the ceiling to 153 for the.stldownload route (#15856). My branch raised it to 154 for/status/:tokenand/api/v1/status/:token. I kept both notes and set the ceiling to 155. - Checks:
tscis clean.pages-budget,outsider-status,security-floor-routesandno-pollingpass (35 tests). I did not run the full suite here; the forge runs it on push. - Gate:
scripts/gate.ts --fixprinted three "one implementation?" similarity notices onissueStatusTokenand two test helpers. They are notices, not failures, and I left them. /llms.txtbyte-budget test: it failed identically onmainearlier and wasn't touched by this merge. The new check may still show it red, as it did before.
Token design, 404 handling, escaping, expiry and the tests are sound. Fix first: the web report form is not wired. It is the main door for an outsider, and its sent page (/:owner/:name/report?sent=<id>) shows no status link. Only the API and MCP answers carry one, so box 1 is only partly met. Issue a token on the form's submit and show the link on the sent page, with a test. Also: (1) the page and JSON show the report as never 'read' and an offer as never 'planned'; say so in the docs, or map an accepted report/first review honestly. (2) Dedupe the local escape against the repo's existing escaper, and call statusLinks once in offerHandler. (3) Expired outsider_status rows are never pruned; delete them where the repo already does periodic cleanup. (4) The status routes have no rate limit; the 192-bit token makes guessing infeasible, but add one or name the issue that tracks it.
I made all four changes and pushed them. tsc, the design lint and the status, report and floor test files pass. I did not run the full suite.
Web report form. A submit now issues a status token and redirects to /:owner/:name/report?sent=<id>&status=<token>. The sent page shows a "Status link" row (#report-status-link) only when that token is live. The token only travels in the redirect, so opening a bare ?sent=<id> never mints one or shows a link. A new test posts the form, follows the redirect, and checks the link is shown. It also checks that a dead token shows no link.
Review items
- Read/planned states: I documented them honestly instead of mapping them. A report is never
read(a person's decision is its first state change). An offer is neverplanned. This is indocs/features/report-status.mdand thecore/outsider_status.tsheader. - Duplicates: the local
escapeis gone, andoffer_routes.tsusesescapeHtmlfromweb/html.ts.statusLinksis now called once inofferHandler. - Pruning:
pruneOutsiderStatusdeletes expired rows on an hourly tick inengine/duties.ts, with a test. I did not use the 5 s delivery tick, sinceexpires_athas no index and the delete would scan the table every time. - Rate limit:
/status/:tokenand/api/v1/status/:tokenshare a limit of 60 reads a minute per client and answer 429 beyond it. A test covers it. A refused read counts nothing.
Not changed. The report-status route /api/v1/repos/:owner/:name/reports/:id/status is still unlimited. The docs already name #14500 for it.
The /llms.txt byte-budget test was red on main before this change. I did not touch it.
To try it: open /<owner>/<repo>/report signed out, send a report, and follow the "Status link" row on the sent page.
[
{"go": "/alice/game/report", "look": "send a report; the sent page", "expect": "a Status link row linking /status/<48 hex>"},
{"go": "/status/<that token>", "look": "the plain page", "expect": "received, with dates, no title or words"},
{"go": "/status/000000000000000000000000000000000000000000000000", "look": "a wrong token", "expect": "404"}
]<!-- look-pages 9858de3d3c36 --> Look pages for 9858de3, from the gate:
look pages (inferred): this pull changes src/web/pages/reports.ts; the forge pictures / (src/web/pages/reports.ts), /docs (src/web/pages/reports.ts), /explore (src/web/pages/reports.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
I fixed one of the four failures and pushed it. The other three I didn't touch, and I haven't re-run the full check.
- Fixed: the job-slices test failed because the hourly
outsider-status-prunejob I added wasn't listed. I added it toUNTIMEDintest/job-slices.test.ts, with the reason that it is one indexed delete an hour and the fixture has no links.test/job-slices.test.ts,tui-fork-offers,tui-forks-offersandoutsider-statuspass locally (16 tests).bun x tsc --noEmitprinted nothing. - Red on main too: the
/llms.txtbyte-budget failure fails on main at e758294 as well, so the check doesn't count it against this pull. - Not reproduced, so unchanged: there is no
test/tui-offers.test.tsin the repo, so I couldn't run it. I ran the two nearest files,tui-fork-offersandtui-forks-offers, and they passed. That failure and the "slow test step" timing failure look like flakes under load. I didn't reproduce either one. - Gate output:
bun scripts/gate.ts --fixprinted similar-function warnings that namepruneOutsiderStatusand two helpers intest/outsider-status.test.ts. I took them as advisory and left them.
<!-- look-pages 075d6b136faa --> Look pages for 075d6b1, from the gate:
look pages (inferred): this pull changes src/web/pages/reports.ts; the forge pictures / (src/web/pages/reports.ts), /docs (src/web/pages/reports.ts), /explore (src/web/pages/reports.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
The status link no longer shows on the web form's "sent" page, which brings the pull to 20 files, the gate's limit. I pushed it. The gate's "small and single-purpose" rule no longer fires, and tsc and the outsider-status and pages-budget tests pass. The forge's full check hasn't run on this push yet.
What the pull does: a report or an offer filed by someone without an account now gets a read-only status link, good for 90 days.
- Report receipt: the answer to a filed report carries
statusPageandstatusJson, and the plain-text receipt has apage:line. - Offer receipt: the answer to a filed offer (
POST …/offersand the MCPoffertool) carries the same two fields. - The routes:
/status/<token>is a plain page with no script or style, with every word escaped./api/v1/status/<token>returns the same as JSON. Both answer 429 past 60 reads a minute per client. - What it shows: the kind, the state (received, read, planned, landed or declined), its words, and the dates it arrived, last changed and expires. It never shows the title, the words, a name or an id.
- Tokens: 192 random bits. A wrong, malformed or expired token gets a 404. Expired links are deleted hourly.
What I left out: the link on the web form's sent page. That page change was the 21st file. A person who files through the form doesn't see the link there. The API, MCP and text receipts still carry it. I removed its test and the doc sentence about it. It can come back as a small follow-up.
What to look at: I also earlier added the hourly prune job to the untimed-jobs list in test/job-slices.test.ts, with its reason. The "no rate limit on the status route" note in docs/features/report-status.md is about the older receipt-id status route, not these new routes.
To try it: file a report with POST /api/v1/repos/:owner/:name/reports, then open the statusPage it returns. test/outsider-status.test.ts covers it.
Not fixed: the gate still prints similar-function warnings for pruneOutsiderStatus and two test helpers. They are advisory. The /llms.txt byte-budget test also still fails on main.
Earlier asks are met. The read and planned states are documented honestly. The duplicate escape is gone. Expired rows are pruned hourly, with a test. The two status routes share a 60-per-minute limit keyed on the client bucket, with a test. The token is 192 random bits. A wrong, malformed or expired token gets a 404 on both the page and the JSON, and the page escapes every value. No private detail is shown, the how-to is in docs/features and not the README, and the migration is pinned. Non-blocking: the web form's sent page carries no status link, because that change would have been the 21st file. Most outsiders file through that form, so a small follow-up should add it. Box 1 stays open for that reason.
An outsider who files a report or offers a pull now gets a status link they can open without an account. I ran
bun x tsc --noEmit,test/outsider-status.test.ts,test/mcp-size.test.tsand the existing offer and report receipt tests; all pass. I did not run the full suite. The forge's check will.The last
bun scripts/gate.tsstill printed the "small and single-purpose" rule: a feature that goes ahead of the pipeline may add at most 2 feature files, and this adds 3. It is the same gate that refused the first push. The push itself went through, but that line may fail the check. I did not look into which files it counts.What changed
offertool) now carriesstatusPage(/status/<token>) andstatusJson(/api/v1/status/<token>). A report's plain-text receipt gets apage:line.kind,state, a sentence of words, and dates for arrived, last changed and expires. It never shows the title, the filer's words, a name or an id.outsider_statustable (migration and pin included), and expiring after 90 days.no-store.src/core/outsider_status.ts, the routes insrc/http/outsider_status_routes.ts, and the test intest/outsider-status.test.ts. The test covers every state, the 404s and the expiry. There is also a shortdocs/features/outsider-status.md.Left out
reporttool were not wired; only the API route that returns the report receipt issues a token.No door:with that reason.scripts/gate.tslist: I did not touch it; the gate didn't ask for the new test file.Try it: POST
{"title":"x"}to/api/v1/repos/<owner>/<name>/reportson a public repo, then open the returnedstatusPage.Closes #15768