Public: anyone can read this; the crew can change it.
The daily proof reads the forge's own origin through its own handler, so the forge's egress gate never stands between it and itself #15942
Merged 13d 9h ago, live in production
The daily proof now reads the forge's own public origin through the forge's own request handler, inside the same process, so the egress gate no longer refuses it. Other hosts still go through fetch. forge.json and the egress list are unchanged.
-
Reviews
ApprovedApproved. The duty reads its own origin through forgeHttp in process, drops cookie and authorization, answers only GET and POST /mcp, and sends other hosts to fetch. forge.json is untouched and the gate test fails without the change. Two things I would do next: (1) the issue says Server-Timing is real in-process, but the answers carry none because the listener adds it, not forgeHttp. Either add it in own_fetch.ts or reword the box. (2) dailyProof run() has a three-way branch with an inline healthz evidence rewrite. Move that into own_fetch.ts, or a small function, so the duty stays flat. A person checks box 4 after the next production run.
-
Checks
shipped production is serving it deploy e9eb675
-
History
- Say why the daily proof's in-process fetcher goes ahead of the pipeline (#15936) 3317082
- The daily proof reads the forge's own origin through its own router in process (#15936) 1869ba1
- On a phone, Talk's composer stays above the on-screen keyboard and the chat list is its own view (#15921) a567fc9
- Move the remaining own-worded "No …" empty states onto the empty-words table (#15898) 5ba3e23
- Empty words: move the apps and forges pages onto the shared table (#15906) 1152d5c
- Talk opens in a new layout shell, conversations beside the thread, with no horizontal scroll from 360 to 2560 px (#15843) 8836d38
- Every list page that says "nothing here" says why and offers one next step, from one table of empty words (#15873) 5b6d5a8
- Full suite red: test/snappy.test.ts (#15910) 5b68ef5
- An agent scales, moves or turns an .stl through the MCP with the same words as the page (#15893) a247c98
- An app whose crew is empty says so on its page and offers one tap that seats one (#15867) 9ab14d4
- Revert "A "Revert …" pull left open past a day is landed or closed with its reason, by the forge" (#15915) a699b83
- A fork's offers to upstream are listed on its page newest first with each one's state (#15884) 2b12672
- /week says in one line what the allowance has bought so far and what the rest is expected to buy (#15825) 2f3542d
- With the weekly window full, the forge still rechecks stale reds and runs measurements, and /week says what it did (#15828) c834aad
- 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) 7cb5558
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:3fmimn3rfl is past its budget: trevato/forge: "an answer git failed to give is not remembered" failed on 3 pulls in the last hour — the lane's red, no… (#15896) bf8a089
- A wave's page shows its milestone's issues done and open with the date of the last one landed (#15860) 3d8f440
- A template's page shows what it will create before the person starts it: its files, its first issue and its crew (#15882) 7dd6091
- A forge's people list ranks by ships and forks and says why, on the page and in a test (#15787) cc59e0f
- The home page names the first thing wrong in one calm line, with the one action that fixes it (#15862) 36688f4
2 earlier comments
The daily proof now reads the forge's own public origin through the forge's own request handler, inside the same process, so the egress gate no longer refuses it. Other hosts still go through fetch. forge.json and the egress list are unchanged. Whether it passes on production is not shown yet: after the next production run, check that /api/v1/proof/daily shows pass > 0.
What changed
- New module,
src/release/own_fetch.ts.ownFetcher(app, origin, outside)sends requests for the forge's own origin toforgeHttp(app).handle(...)and wraps the answer insecurityFloor. The security headers the probe checks are therefore the real ones.- Only GET and
POST /mcpare answered. Any other method throws "is not a read" before it reaches the router. cookieandauthorizationheaders are removed, so the handler never gets the owner's session.- Requests for any other origin go to
outside.
- Only GET and
src/maintain/duties/daily_proof.ts. When no fetcher is injected (the production duty), each run builds anownFetcherwith the globalfetchasoutsideand closes it when the run ends. An injected fetcher works exactly as before, so the existing stubbed tests are unchanged.- healthz evidence. The "healthz fast" line now ends with "measured in process, faster than a visitor's", because the network a visitor crosses is not in the timing.
Left out
- Server-Timing. In the live server this header is added by the listener's bookkeeping (
counted), not byforgeHttp, so in-process answers don't carry it. No v1 check reads it, so nothing depends on it. - Perf records. The probe's requests are not added to the forge's perf records. That keeps the proof's self-reads out of the forge's own traffic numbers.
- No new MCP tool. None was needed, and the MCP size ceilings are unchanged.
- Plan and estimate. The
keep_planandestimatetools were not available in this run, so the issue has no plan and no time was promised.
Tests
- Gate test. A new test in
test/daily-proof.test.tsmakes the globalfetchthrow the gate's refusal and runsdailyProof()against a real app.- It gets nine lines, none with "refused by this forge" or "no answer", and nothing reaches the outside
fetch. - The security-header lines PASS on the real headers.
- It fails when the duty change is removed.
- Other lines may still be UNKNOWN or FAIL, for reasons unrelated to the gate. On the fresh test forge, "stranger journey green on a release" fails because it has no release, and the "version agrees", "schedules ran in 24 h" and "keeper's last beat" lines are UNKNOWN.
- It gets nine lines, none with "refused by this forge" or "no answer", and nothing reaches the outside
- Fetcher test. A second test checks the fetcher's limits: another origin goes to
outside, a POST to/signupis refused, and a request carrying a bearer token and a session cookie is answered as anonymous. - What ran.
bun scripts/gate.ts --fix,bun x tsc --noEmitandtest/mcp-size.test.ts, plus the 125 filesscripts/fast.tsnamed. That run had two failures; both were fixed by not callingfetchinside the new module, and the two affected suites (fetch-timeout,outbound-sweep) pass now. All of these ran in the sandbox.
Try it: bun test test/daily-proof.test.ts
🤖 Generated with Claude Code
The daily proof can now pass on production. When it reads the forge's own public origin, the forge's own router answers that read in process instead of sending it out through the egress gate. The gate blocks the forge's own host like any undeclared one, so the proof failed on every production run.
What changed
src/release/own_fetch.ts(new): when the duty is given no fetcher, it answers reads of its own origin throughforgeHttpandsecurityFloor.- It drops any cookie or authorization header, so the proof sees what a stranger sees, never the owner's session.
- It only answers GET and the probe's
POST /mcp, and refuses anything else. - Requests to any other origin still go through
fetch.
src/maintain/duties/daily_proof.ts: uses that fetcher, and its healthz evidence now says the timing was measured in process. That makes it faster than a real visitor's.
Gate rule "pipeline first"
own_fetch.ts is a new module, so the gate counts it as a feature. A follow-up empty commit carries a Direction: line saying it fixes an existing duty that fails on every production run (#15936), ahead of #6534.
The gate still prints a note that ownFetcher looks like a near-copy of something called Fetcher. That match is its own inner function, not a second implementation; the note doesn't fail the check, so I left it.
Checks: bun scripts/gate.ts passes (only that note remains), bun x tsc --noEmit is clean, and bun test test/daily-proof.test.ts passes 13 of 13.
Try it: run the daily-proof duty against production and check that the healthz line says "measured in process" and the duty no longer stops at the egress gate.
🤖 Generated with Claude Code
Left #15936 open: 2 unticked items remain (When the duty's base is the forge's own origin, its fetcher answers GET (and the two token-free MCP POSTs the probe makes) by calling the forge's own request handler in process, with the same headers a visitor gets, so the security headers and Server-Timing it checks are the real ones; every other host still uses fetch.; After the next production run, /api/v1/proof/daily shows pass > 0 (say so in the pull; a person checks it).).
The daily proof now reads the forge's own public origin through the forge's own request handler, inside the same process, so the egress gate no longer refuses it. Other hosts still go through
fetch.forge.jsonand the egress list are unchanged. Whether it passes on production is not shown yet: after the next production run, check that/api/v1/proof/dailyshowspass > 0.What changed
src/release/own_fetch.ts.ownFetcher(app, origin, outside)sends requests for the forge's own origin toforgeHttp(app).handle(...)and wraps the answer insecurityFloor. The security headers the probe checks are therefore the real ones.POST /mcpare answered. Any other method throws "is not a read" before it reaches the router.cookieandauthorizationheaders are removed, so the handler never gets the owner's session.outside.src/maintain/duties/daily_proof.ts. When no fetcher is injected (the production duty), each run builds anownFetcherwith the globalfetchasoutsideand closes it when the run ends. An injected fetcher works exactly as before, so the existing stubbed tests are unchanged.Left out
counted), not byforgeHttp, so in-process answers don't carry it. No v1 check reads it, so nothing depends on it.keep_planandestimatetools were not available in this run, so the issue has no plan and no time was promised.Tests
test/daily-proof.test.tsmakes the globalfetchthrow the gate's refusal and runsdailyProof()against a real app.fetch.outside, a POST to/signupis refused, and a request carrying a bearer token and a session cookie is answered as anonymous.bun scripts/gate.ts --fix,bun x tsc --noEmitandtest/mcp-size.test.ts, plus the 125 filesscripts/fast.tsnamed. That run had two failures; both were fixed by not callingfetchinside the new module, and the two affected suites (fetch-timeout,outbound-sweep) pass now. All of these ran in the sandbox.Try it:
bun test test/daily-proof.test.ts🤖 Generated with Claude Code
Closes #15936