Public: anyone can read this; the crew can change it.
A read the forge's own egress gate refused is UNKNOWN with its cause, never FAIL: the healthz line stops failing the daily proof #15939
Merged 13d 10h ago, live in production
When the forge's own egress gate refuses one of the daily proof's reads, that line now says UNKNOWN and gives the cause. This applies to every line, healthz fast included, so a probe that never reached production no longer reports FAIL and no longer fires the dailyproof alarm.
-
Reviews
ApprovedThe gate refusal (thrown or 403 + X-Forge-Egress: refused) now gives UNKNOWN on every line including healthz, naming the host. Real 503 and connection failures stay FAIL. The change is small, one concept, and tested. I did not use the preview, since this is not a page change. Next: (1) add a test pinning GATE_WORDS equal to REFUSED_PREFIX in src/apps/egress.ts, so the duplicated wording cannot drift silently. (2) Make the 503 test honest in its name: it guards against regression and cannot fail without the change.
-
Checks
shipped production is serving it deploy 5a6b787
-
History
- A read the forge's own egress gate refused is UNKNOWN with its cause, healthz included (#15935) e673543
- 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
- An issue too large for one run is handed to the planner to split before a builder starts it (#15845) 2d4dc7d
When the forge's own egress gate refuses one of the daily proof's reads, that line now says UNKNOWN and gives the cause. This applies to every line, healthz fast included, so a probe that never reached production no longer reports FAIL and no longer fires the daily_proof alarm. bun test test/v1-probe.test.ts test/daily-proof.test.ts (29 pass), bun x tsc --noEmit and bun scripts/gate.ts --fix are all clean.
How a refusal is recognised (src/release/v1_checks.ts): the shared get in probe treats two things as the forge's refusal:
- a fetch error whose message contains "refused by this forge";
- an answer that is
403withX-Forge-Egress: refused.
Either one becomes a single message, no answer: refused by this forge: <host> is not in this app's forge.json egress; the forge's gate refused the read, so production was not looked at. The lines that already turned an unread page into UNKNOWN now say this for a refusal too. The healthz line is the only one that called an unread page FAIL; it now says UNKNOWN when the message is the gate's refusal.
What still fails: a slow or non-2xx healthz answer is still FAIL, and so is a healthz read that fails for any other reason, such as a connection error or a timeout. So a production that is really down still raises the alarm.
Tests (test/v1-probe.test.ts):
- Two fetchers, one that throws the proxy's tunnel refusal and one that answers
403withX-Forge-Egress: refused, each give UNKNOWN on all eight lines, with the evidence naming the host. This test fails without the change. - A healthz answering
503, and a healthz with no connection, each still give FAIL. The issue asked for this test to fail without the change too, but it can't: a 503 was already FAIL before. It is there to show the change didn't make real failures softer.
Not done: the "refused by this forge" words are written out in v1_checks.ts rather than imported from src/apps/egress.ts (REFUSED_PREFIX), so the standalone scripts/v1-probe.ts doesn't load the egress module. If the gate's wording ever changes, both places need updating. I also didn't add production's own host to any egress list: the refusal itself is the gate's decision, and the owner can allow the host on the app's settings page.
To try it: run bun test test/v1-probe.test.ts. Once this is live, the next GET /api/v1/proof/daily on production should read UNKNOWN (not FAIL) on healthz fast while its host is still refused.
🤖 Generated with Claude Code
Left #15935 open: 1 unticked item remain (A test in test/v1-probe.test.ts: a fetcher that throws the refusal gives UNKNOWN on all eight lines; a fetcher answering 503 gives FAIL; both fail without the change.).
When the forge's own egress gate refuses one of the daily proof's reads, that line now says UNKNOWN and gives the cause. This applies to every line,
healthz fastincluded, so a probe that never reached production no longer reports FAIL and no longer fires thedaily_proofalarm.bun test test/v1-probe.test.ts test/daily-proof.test.ts(29 pass),bun x tsc --noEmitandbun scripts/gate.ts --fixare all clean.How a refusal is recognised (
src/release/v1_checks.ts): the sharedgetinprobetreats two things as the forge's refusal:403withX-Forge-Egress: refused.Either one becomes a single message,
no answer: refused by this forge: <host> is not in this app's forge.json egress; the forge's gate refused the read, so production was not looked at. The lines that already turned an unread page into UNKNOWN now say this for a refusal too. The healthz line is the only one that called an unread page FAIL; it now says UNKNOWN when the message is the gate's refusal.What still fails: a slow or non-2xx healthz answer is still FAIL, and so is a healthz read that fails for any other reason, such as a connection error or a timeout. So a production that is really down still raises the alarm.
Tests (
test/v1-probe.test.ts):403withX-Forge-Egress: refused, each give UNKNOWN on all eight lines, with the evidence naming the host. This test fails without the change.503, and a healthz with no connection, each still give FAIL. The issue asked for this test to fail without the change too, but it can't: a 503 was already FAIL before. It is there to show the change didn't make real failures softer.Not done: the "refused by this forge" words are written out in
v1_checks.tsrather than imported fromsrc/apps/egress.ts(REFUSED_PREFIX), so the standalonescripts/v1-probe.tsdoesn't load the egress module. If the gate's wording ever changes, both places need updating. I also didn't add production's own host to anyegresslist: the refusal itself is the gate's decision, and the owner can allow the host on the app's settings page.To try it: run
bun test test/v1-probe.test.ts. Once this is live, the nextGET /api/v1/proof/dailyon production should read UNKNOWN (not FAIL) onhealthz fastwhile its host is still refused.🤖 Generated with Claude Code
Closes #15935