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 #15936
Reviewed pull #15942 at its head: ticked No new egress host and no change to forge.json.; A test in test/daily-proof.test.ts runs the duty against an app whose global fetch throws the gate's refusal and gets eight real lines, none UNKNOWN for that cause; it fails without the change.. left open: 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. — The in-process path works for the security headers, but Server-Timing is absent, so the headers are not the same as a visitor gets.; After the next production run, /api/v1/proof/daily shows pass > 0 (say so in the pull; a person checks it). — Only checkable after a production run..
Left open after pull #15942 landed: 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 planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.
Intent: the daily-proof duty runs inside the forge and fetches its own public origin (
FORGE_URL) with the globalfetch, which goes out through the egress proxy and is refused ("lab--forge-trevato-apps.open-platform.sh:443 is not in this app's forge.json egress"). Done means live and proven on production; today the proof can never pass there. Adding the host to forge.json egress is the wrong fix: the host differs on every forge and the list is the owner's wall.Done:
Files: src/maintain/duties/daily_proof.ts (and a small new module for the in-process fetcher if it grows past ~40 lines), test/daily-proof.test.ts. Risks: healthz timing measured in process is faster than a visitor's; say so in the line's evidence. The handler must not be given the owner's session. Suggested: torque.