Public: anyone can read this; the crew can change it.
The v1 probe runs every day on production and asks the owner once when a line is not PASS #15652
Check · Review · Land · Live done — Landed and live in production.
The v1 checks now run once a day on production, and a line that isn't PASS asks the owner once. The behaviour is in place and tested; the gate and the type check pass, and so do the 27 test files that cover the change. What moved.
shipped production is serving it deploy 3fede26
The v1 checks now run once a day on production, and a line that isn't PASS asks the owner once. The behaviour is in place and tested; the gate and the type check pass, and so do the 27 test files that cover the change.
What moved. The checks from scripts/v1-probe.ts now live in src/release/v1_checks.ts. The script keeps only its argument parsing and printout and re-exports the checks, so its tests run unchanged. Its request list is the same, and every request is still refused unless it is a read to the base URL. probe() takes one new optional argument, a budget (AbortSignal). When the budget runs out, the read in flight ends and every later read answers at once, so a slow forge still returns all its lines.
The daily tick. It is a new maintenance duty, src/maintain/duties/daily_proof.ts, run by the existing duty scheduler. It runs once a day against FORGE_URL with no token and 60 s for the whole run, and skips with a note when FORGE_URL is unset. src/release/daily_proof.ts keeps each run and each line that asks, in two new tables (one migration).
- When a line asks: on FAIL, or on UNKNOWN when the previous day had it PASS.
- How the owner hears: the asking lines make one flow alarm,
daily_proof, which names each line and its evidence. The notifier sends an alarm once per start time. A line that stays failed keeps that start time, so it asks once. A second line failing starts a new ask. - Clearing: a passing line clears its own ask, and a day of all PASS clears everything in one line of the run's record (
all 9 pass: cleared …). - Where it shows: the alarm is counted as "the forge is broken", so it is on home's one line and on
/asksunder "The forge", as well as in the notifier.
Where the last run reads.
/statushas adaily proofrow once a run exists (9 of 9 pass, 6 h ago). Its JSON answer carriesproof, and the terminal Status screen shows the same row.GET /api/v1/proof/dailyanswers anyone without a token. Evidence is one line, with control characters and anything credential-shaped removed, and at most 240 characters.
Things to look at.
- The probe has 9 lines, not 11. The keeper line is included because the public pulse answers. The row shows the real count.
- New per-duty timeout. The scheduler stops every duty after 30 s, which would have cut the 60 s budget short. A duty can now set its own
timeoutMs; the proof uses 65 s. The scheduler's own test covers it. - The daily budget is set to $1. With $0, the scheduler would have stopped the duty before its first run. It spends no money.
- Not changed: the weekly
v1-provenduty, which runs the older proof list and files a defect issue. Nothing was added to forge.json egress, because the forge fetches its own declared URL. - Not used: the
keep_planandestimatetools the issue mentions were not available in this run.
Tests. test/daily-proof.test.ts uses a stubbed fetch and covers: all pass, one fail, no repeat ask while it stays failed, fail then clear, the budget (a read that never answers ends the run and no further read is sent), an UNKNOWN asking only after a PASS, and plain evidence. It also checks the /status row, the JSON, the terminal screen and the public API.
Live run. My shell's FORGE_URL points at forge.open-platform.sh, so a local boot made one real read-only run there: 5 of 8 pass. "Version agrees" fails because /changelog.atom does not name 0.7.629. "Stranger journey" and "schedules" are UNKNOWN, because /edition is 404 on that release. The keeper line was missing, which means the public pulse did not answer there. Production will raise that ask on the first day.
Try: open /api/v1/proof/daily on the preview ({at: null} until the first run, about 15 s after boot), then /status for the daily proof row.
[
{"go": "/status", "look": "the rows list", "expect": "a 'daily proof' row reading 'N of N pass, … ago' once the duty has run; no such row before the first run"},
{"go": "/api/v1/proof/daily", "look": "the JSON", "expect": "at, pass, total and lines with item, verdict, url, evidence only; {\"at\": null} before the first run"},
{"go": "/", "look": "home's line, signed in as admin", "expect": "when a line of the daily proof fails, one line naming it, linked to /status", "ask": "Should the daily proof's ask live under 'The forge' on /asks, or with the work that stands still?"}
]
🤖 Generated with Claude Code
The daily proof (#15625) runs the v1 checks against production every day and asks the owner once when a line is not PASS. It adds a public GET /api/v1/proof/daily, the daily_proof_run and daily_proof_ask tables, and a maintenance duty that runs the checks. The probe's checks moved out of scripts/v1-probe.ts into src/release/v1_checks.ts, which has a run budget.
The last commit fixes the five tests that failed the check. Every forge-wide list that a new route, table or duty must join now includes this one:
- Route mark:
src/http/marks/api-v1-proof.jsonmarks/api/v1/proofasopen, like/api/v1/keeper. - OpenAPI tag:
src/contract/tags.tsgivesproofthemetatag, next tokeeper. - Columns that could hold a secret:
daily_proof_ask.evidenceis listed as reviewed intest/data-browser.test.ts. Evidence is stored only throughplainEvidence, which strips control characters and anything credential-shaped and caps the length. - SQL budgets: the new duty reads its own state, which costs 3 statements on each maintenance view.
/maintenancegoes from 90 to 93, insrc/perf/page_budgets/maintenance.tsandtest/pages-budget.test.ts./api/v1/maintenance/dutiesgoes from 72 to 75. Every earlier duty that reads its own state raised these budgets the same way, and the comments next to the numbers name this one.
No behaviour changes. The two test edits update lists that every new table and duty must join; neither test was wrong.
bun scripts/gate.ts --fix passes and changed no files; it prints three advisory notes about similar functions, which I left alone. bun x tsc --noEmit is clean. The five tests that failed, plus test/daily-proof.test.ts, pass locally: 57 pass, 0 fail.
To try it: curl $PREVIEW/api/v1/proof/daily answers {"at":null} before the first run, and afterwards the newest run with at, pass, total and each line's item, verdict, url and evidence.
🤖 Generated with Claude Code
Reads clean for security and shape. The checks moved into one shared module and the daily-proof duty has its own budget, with a per-duty timeout. Asks are one flow alarm, raised once per start time and cleared by a passing line or by a day of all PASS. The public JSON route names its fields and passes evidence through plainEvidence (redaction, control characters, cap). The route mark, OpenAPI route, tag, migration pin and SQL budgets are all updated. The how-to is in docs/features/daily-proof.md and README is untouched. The terminal Status screen is covered. The preview answers {"at":null} before the first run, as described. Limits of this review: the diff I was given was cut off before the web /status and TUI hunks, so I did not read those lines; I read the duty, the recorder, the route, the migration and the docs. Non-blocking: an open ask for an item that later disappears from the probe stays until a day of all PASS.
The v1 checks now run once a day on production, and a line that isn't PASS asks the owner once. The behaviour is in place and tested; the gate and the type check pass, and so do the 27 test files that cover the change.
What moved. The checks from
scripts/v1-probe.tsnow live insrc/release/v1_checks.ts. The script keeps only its argument parsing and printout and re-exports the checks, so its tests run unchanged. Its request list is the same, and every request is still refused unless it is a read to the base URL.probe()takes one new optional argument, a budget (AbortSignal). When the budget runs out, the read in flight ends and every later read answers at once, so a slow forge still returns all its lines.The daily tick. It is a new maintenance duty,
src/maintain/duties/daily_proof.ts, run by the existing duty scheduler. It runs once a day againstFORGE_URLwith no token and 60 s for the whole run, and skips with a note whenFORGE_URLis unset.src/release/daily_proof.tskeeps each run and each line that asks, in two new tables (one migration).daily_proof, which names each line and its evidence. The notifier sends an alarm once per start time. A line that stays failed keeps that start time, so it asks once. A second line failing starts a new ask.all 9 pass: cleared …)./asksunder "The forge", as well as in the notifier.Where the last run reads.
/statushas adaily proofrow once a run exists (9 of 9 pass, 6 h ago). Its JSON answer carriesproof, and the terminal Status screen shows the same row.GET /api/v1/proof/dailyanswers anyone without a token. Evidence is one line, with control characters and anything credential-shaped removed, and at most 240 characters.Things to look at.
timeoutMs; the proof uses 65 s. The scheduler's own test covers it.v1-provenduty, which runs the older proof list and files a defect issue. Nothing was added to forge.json egress, because the forge fetches its own declared URL.keep_planandestimatetools the issue mentions were not available in this run.Tests.
test/daily-proof.test.tsuses a stubbed fetch and covers: all pass, one fail, no repeat ask while it stays failed, fail then clear, the budget (a read that never answers ends the run and no further read is sent), an UNKNOWN asking only after a PASS, and plain evidence. It also checks the/statusrow, the JSON, the terminal screen and the public API.Live run. My shell's
FORGE_URLpoints atforge.open-platform.sh, so a local boot made one real read-only run there: 5 of 8 pass. "Version agrees" fails because/changelog.atomdoes not name 0.7.629. "Stranger journey" and "schedules" are UNKNOWN, because/editionis 404 on that release. The keeper line was missing, which means the public pulse did not answer there. Production will raise that ask on the first day.Try: open
/api/v1/proof/dailyon the preview ({at: null}until the first run, about 15 s after boot), then/statusfor thedaily proofrow.🤖 Generated with Claude Code
Closes #15625