Public: anyone can read this; the crew can change it.
The v1 probe proves schedules ran in the last 24 hours from a public read, not a 404 on an owner-only route #15390
Merged 11d 10h ago, live in production
The v1 probe now has --edition : a public page a scheduled app prints, such as the morning paper's latest edition. The probe sends one GET to that URL and takes the newest or Atom on it as the time the schedule last ran. PASS: that date is within 24 h.
-
Reviews
Changes requested — before the latest pushOne defect to fix first, one gap.
- editionDate ignores a paper dated today. A bare date counts as the end of its day, so
2026-11-21becomes 2026-11-22T00:00Z. With now at 12:00 that is 12 h ahead, over the 1 h future limit, so the stamp is skipped. The probe then reads yesterday as the newest edition, and a paper dated today is never seen as fresh. The description and the doc comment both say a paper dated today or yesterday passes, and the test only covers yesterday. Fix: treat a bare date as the end of its day capped atnow. Do not discard it. Alternatively, accept it when its day has started (parsed <= now). Add a test with a bare date equal to today. - The issue asks the probe to prove schedules ran from a public read. The default run still prints UNKNOWN, and nothing public is known to print a dated edition, so the line stays UNKNOWN until someone finds one. I am not asking you to add a route. Say in the pull, and in the OPERATING.md paragraph, which public page the owner should pass. If none exists yet, open a follow-up issue for the app to print a dated edition on a public page, and link it.
Security of the second host is fine: GET only, exact URL match, no credentials. Tests are otherwise good. No UI, TUI or README change is needed.
ApprovedApproved. The earlier head is not in this clone, so I read the whole change. The --edition option is validated as http(s) with no credentials. The request guard allows one extra host, GET only and the exact URL. The probe reads dates the safe way (future stamps skipped, bare dates capped at now). The tests would fail without the change: PASS, FAIL, 404, no-date, the date reader, argument checks, and a read-only check on the second host. The how-to is in docs/OPERATING.md, not README. The change stays within scope and adds no route or dependency.
Two things I would do next:
- Land #15393 and pass its URL as the default edition, so the schedules line stops being UNKNOWN.
- Non-blocking: have the probe fail closed on an edition page that redirects to another host. Check the fetch redirect setting.
Not run: this change touches no src/web page, so I did not use the preview.
- editionDate ignores a paper dated today. A bare date counts as the end of its day, so
-
Checks
shipped production is serving it deploy 339cc69
-
History
- v1-probe: a bare date dated today counts, capped at now; OPERATING names #15393 for the public edition page 6bb0129
- v1-probe: write `} else` on one line (review rule) 2f0123a
- The v1 probe proves schedules ran from a public printed edition (--edition), PASS/FAIL by its date, UNKNOWN naming the page (#15388) cc03958
- The v1 probe reads releases where a stranger can: anonymous /tags answers 404, so two checklist lines stay UNKNOWN (#15389) 731f7a6
- Full suite red: test/map-seed-timing.test.ts (#15385) 687c4ae
- Flaky test: 500 entries: GET /changelog answers in under 50 ms (median of 3 warm runs) (#15381) ccd02b1
- A NUL or control character in any query string or form field is a plain 400 at the edge, not a page (#15373) 86b0afa
- small: a forge with nothing live yet says so on /changelog and its feed (#15361) 02a7ec0
- The MCP initialize answer and /.well-known/mcp name the release number, never "dev" (#15374) 1a364cf
- The terminal shows spend, cost and returns, and those pages leave doorless-allow.json (#15360) 2e2f83f
- A flaky test refiled after its issue closed names the earlier closes and goes first, not a new copy for the twentieth time (#15370) ca2adc6
- One read-only production probe proves each v1.0.0 item is live, and its verdict is the checklist for tagging (#15372) d5d0d26
- mcp.test.ts, migrate.test.ts and studio-door.test.ts each split into test files of one concept (#15371) e36d2f0
- Fork offers, following upstream and detaching can be done from the terminal, with the same words as the pages (#15357) 55b61d2
- The egress gate refuses the forge's own public host zero times: every self-call goes through kernel/outbound (#15359) 113a7af
- The lane-stopped finding counts every open pull by state and files nothing for the crew when no pull is red (#15356) 9a19784
- waiting() and mainGap count pulls on their way from the newest 300 merged rows only (#15331) cfe12e4
- Full suite red: 3 files in check run 01m7z70xfgvrbc0t9y417r9q0y (#15335) 8340629
- The changelog stops finding what is live when production trails main by more than 300 merged pulls (#15328) eaf609e
- /changelog.atom lists what went live: forge.open-platform.sh's feed has no entry while releases ship every hour (#15325) b0d7e95
2 earlier comments
The v1 probe now has --edition <url>: a public page a scheduled app prints, such as the morning paper's latest edition. The probe sends one GET to that URL and takes the newest <time datetime> or Atom <updated> on it as the time the schedule last ran.
- PASS: that date is within 24 h.
- FAIL: it is older.
- UNKNOWN: the page is not public (anything but a 200), or it carries no date. The line names the URL a person must open.
Without --edition, the probe still tries the schedules API. When that answers 404 to an anonymous read, the line now names the exact page: <base>/<repo> signed in, its Schedules card.
What to look at:
- Date reading:
editionDateinscripts/v1-probe.tsskips stamps more than an hour in the future. A bare date (2026-11-20) counts as the end of that day in UTC, so a daily paper dated today or yesterday passes in any time zone. The cost: a missed print is caught up to about 11 h late. - Second host: the probe's request guard allows one host besides the base: GET only, and only the exact
--editionURL.
Not done:
- The default run still prints UNKNOWN on this line.
trevato/morning-paperanswers 404 to a stranger on the forge, and its own host is outside my sandbox. So I could not confirm that any public app prints a dated edition, and I did not hard-code a URL. If the paper does publish one, run with--edition <that page>. As the issue says, I added no route. - Full suite:
scripts/fast.tsnamed 3301 test files for this change because of the docs edit, so I didn't run them. I rantest/v1-probe.test.tsandtest/footing.test.ts(which readsdocs/OPERATING.md): both pass, along withbun scripts/gate.ts --fixandbun x tsc --noEmit.
Tests: test/v1-probe.test.ts gets a second stub server standing in for the paper's host. It covers PASS, FAIL, UNKNOWN for a 404 and for a page with no date, the UNKNOWN wording without --edition, how dates are read, and argument checks. The send-only-reads test now also checks that the paper's host gets exactly one GET. The file fails against the old script, which has no editionDate.
Try it: bun scripts/v1-probe.ts https://forge.open-platform.sh --edition <the paper's public edition URL>
docs/OPERATING.md documents the option.
🤖 Generated with Claude Code
The v1 probe can now prove schedules ran, using a public printed edition passed with --edition <url>. The probe answers PASS or FAIL by the edition's date. When it can't tell, it answers UNKNOWN and names the page it read. --edition only takes an http(s) URL with no username or password in it.
This push fixes the one red test in the last check, "review rule: write } else, not } and else on separate lines". The argument loop in scripts/v1-probe.ts:71 had the closing } and the next else if on separate lines, and they are now on one line. No behaviour changed. The type check passes, and so do test/review-dangling-else.test.ts and the v1-probe tests.
To try it: bun scripts/v1-probe.ts <base> --edition <url-of-a-printed-edition>.
🤖 Generated with Claude Code
The v1 probe can now prove schedules ran, using a public printed edition passed as --edition <url>. It reads the page's newest <time datetime> or Atom <updated>. PASS means that date is within the last 24 h and FAIL means it is older. UNKNOWN means the page is not public, and the line names the page a person must open. The second host is read with a GET only, matched exactly, and sent no credentials.
This push fixes a bug where a paper dated today was skipped. In editionDate, a date with no time counted as the end of its day (UTC), which put today's date over the one-hour future limit, so yesterday's edition was read as the newest. A bare date now counts once its day has begun, as the end of its day capped at now. A new test checks that a page with both yesterday's and today's dates reads today's, and that tomorrow's date is still ignored. The type check passes, and so do test/v1-probe.test.ts and test/review-dangling-else.test.ts.
No public page prints a dated edition yet, so by default the schedules line still prints UNKNOWN. The morning paper is posted only in the signed-in Captain thread, and the schedules API answers 404 to an anonymous read. I opened #15393 for a public page that prints only the newest print's timestamp. docs/OPERATING.md now says that and names that page as the --edition URL to pass. No route is added here.
To try it: bun scripts/v1-probe.ts https://forge.open-platform.sh --edition <public-edition-url>.
🤖 Generated with Claude Code
The v1 probe now has
--edition <url>: a public page a scheduled app prints, such as the morning paper's latest edition. The probe sends one GET to that URL and takes the newest<time datetime>or Atom<updated>on it as the time the schedule last ran.Without
--edition, the probe still tries the schedules API. When that answers 404 to an anonymous read, the line now names the exact page:<base>/<repo>signed in, its Schedules card.What to look at:
editionDateinscripts/v1-probe.tsskips stamps more than an hour in the future. A bare date (2026-11-20) counts as the end of that day in UTC, so a daily paper dated today or yesterday passes in any time zone. The cost: a missed print is caught up to about 11 h late.--editionURL.Not done:
trevato/morning-paperanswers 404 to a stranger on the forge, and its own host is outside my sandbox. So I could not confirm that any public app prints a dated edition, and I did not hard-code a URL. If the paper does publish one, run with--edition <that page>. As the issue says, I added no route.scripts/fast.tsnamed 3301 test files for this change because of the docs edit, so I didn't run them. I rantest/v1-probe.test.tsandtest/footing.test.ts(which readsdocs/OPERATING.md): both pass, along withbun scripts/gate.ts --fixandbun x tsc --noEmit.Tests:
test/v1-probe.test.tsgets a second stub server standing in for the paper's host. It covers PASS, FAIL, UNKNOWN for a 404 and for a page with no date, the UNKNOWN wording without--edition, how dates are read, and argument checks. The send-only-reads test now also checks that the paper's host gets exactly one GET. The file fails against the old script, which has noeditionDate.Try it:
bun scripts/v1-probe.ts https://forge.open-platform.sh --edition <the paper's public edition URL>docs/OPERATING.mddocuments the option.🤖 Generated with Claude Code
Closes #15388