Public: anyone can read this; the crew can change it.

One read-only production probe proves each v1.0.0 item is live, and its verdict is the checklist for tagging #15372

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

Adds bun scripts/v1-probe.ts [--repo owner/name], which checks each v1.0.0 item on production and prints one line per item: PASS, FAIL or UNKNOWN, with the URL and the evidence. It exits 0 only when every line is PASS. Production is not ready to tag yet: the run below has one FAIL and two UNKNOWNs.

Notes

shipped production is serving it deploy 3fede26

opened this

Adds bun scripts/v1-probe.ts <base-url> [--repo owner/name], which checks each v1.0.0 item on production and prints one line per item: PASS, FAIL or UNKNOWN, with the URL and the evidence. It exits 0 only when every line is PASS. Production is not ready to tag yet: the run below has one FAIL and two UNKNOWNs.

What it checks

  • /signup answers with a form, and /pricing names a price.
  • Version: the version production reports in its MCP initialize reply must equal main's latest tag, and both /changelog and /changelog.atom must name it.
  • Stranger journey: the latest tag's full check comes from the check API (/commits/<oid>/check). A check that passed means the stranger tests passed in that release.
  • Health: /healthz answers 200 within 500 ms.
  • Schedules (#11595): at least one run started in the last 24 h.
  • Security headers: CSP, nosniff and referrer-policy are present on / and on /pricing.

What it never does

  • Every request is a GET except one MCP initialize. The request helper refuses any other method, and any URL not on the base host.
  • It never signs in, pays or writes, and it reads only the repository named by --repo (default trevato/forge).
  • When an anonymous read can't see the proof, the line says UNKNOWN and names what a person must check. It is never counted as a pass.

Tests and docs

  • test/v1-probe.test.ts runs the probe against a stub Bun.serve forge. It covers the all-PASS path, five FAIL paths and three UNKNOWN paths. It also asserts that the only non-GET request sent is one POST to /mcp with method initialize, and that every URL stays on the base host.
  • docs/OPERATING.md names the command in two lines and says the owner tags v1.0.0 only when every line is PASS.

Checks run

  • bun x tsc --noEmit is clean.
  • bun scripts/gate.ts --fix rewrapped one comment, which is committed.
  • scripts/fast.ts named 3279 test files for this diff, too many to run here, so I chose the ones that cover it. These 13 files pass: v1-probe, mcp-size, check-script-readers, docs-index, docs-link, doorless, egress-literals, comment-wrap and the honesty/hollow/dupes scans.
  • The script is not added to scripts/gate.ts, since the gate's list does not ask for it.

Not done

  • No version is compared against /healthz, which only answers ok.
  • The probe does not try to get past Cloudflare's challenge in front of the check API. That is why the stranger-journey line is UNKNOWN rather than a guess.

Final run against production:

PASS    sign-up page: https://forge.open-platform.sh/signup - 200 with a form
PASS    pricing names a price: https://forge.open-platform.sh/pricing - 200, names $2
UNKNOWN stranger journey green on a release: https://forge.open-platform.sh/api/v1/repos/trevato/forge/commits/cab90cf3a9749ab8ba5adfb68693b35c65af09b7/check - 403, not the check's JSON; a person must open v0.7.629's check and see the stranger tests green
FAIL    version agrees: https://forge.open-platform.sh/changelog.atom - production 0.7.629 = tag v0.7.629, but /changelog.atom does not name it
PASS    healthz fast: https://forge.open-platform.sh/healthz - 200 in 75 ms
UNKNOWN schedules ran in 24 h: https://forge.open-platform.sh/api/v1/repos/trevato/forge/schedules?runs=50 - no runs visible to an anonymous read; a person must open the schedules page signed in
PASS    security headers on /: https://forge.open-platform.sh/ - CSP, nosniff, referrer-policy same-origin
PASS    security headers on /pricing: https://forge.open-platform.sh/pricing - CSP, nosniff, referrer-policy same-origin
not every line is PASS: do not tag v1.0.0

The FAIL is a real gap on production: /changelog.atom lists no entries, and its last update is dated 2026-09-06.

To try it: bun scripts/v1-probe.ts https://forge.open-platform.sh and bun test test/v1-probe.test.ts.

🤖 Generated with Claude Code

Closes #15366

commented

Adds bun scripts/v1-probe.ts <base-url> [--repo owner/name], which checks each v1.0.0 item on production and prints one line per item: PASS, FAIL or UNKNOWN, with the URL and the evidence. It exits 0 only when every line is PASS. Production is not ready to tag yet: the run below has one FAIL and two UNKNOWNs.

What it checks

  • /signup answers with a form, and /pricing names a price.
  • Version: the version production reports in its MCP initialize reply must equal main's latest tag, and both /changelog and /changelog.atom must name it.
  • Stranger journey: the latest tag's full check comes from the check API (/commits/<oid>/check). A check that passed means the stranger tests passed in that release.
  • Health: /healthz answers 200 within 500 ms.
  • Schedules (#11595): at least one run started in the last 24 h.
  • Security headers: CSP, nosniff and referrer-policy are present on / and on /pricing.

What it never does

  • Every request is a GET except one MCP initialize. The request helper refuses any other method, and any URL not on the base host.
  • It never signs in, pays or writes, and it reads only the repository named by --repo (default trevato/forge).
  • When an anonymous read can't see the proof, the line says UNKNOWN and names what a person must check. It is never counted as a pass.

Tests and docs

  • test/v1-probe.test.ts runs the probe against a stub Bun.serve forge. It covers the all-PASS path, five FAIL paths and three UNKNOWN paths. It also asserts that the only non-GET request sent is one POST to /mcp with method initialize, and that every URL stays on the base host.
  • docs/OPERATING.md names the command in two lines and says the owner tags v1.0.0 only when every line is PASS.

Checks run

  • bun x tsc --noEmit is clean.
  • bun scripts/gate.ts --fix rewrapped one comment, which is committed.
  • scripts/fast.ts named 3279 test files for this diff, too many to run here, so I chose the ones that cover it. These 13 files pass: v1-probe, mcp-size, check-script-readers, docs-index, docs-link, doorless, egress-literals, comment-wrap and the honesty/hollow/dupes scans.
  • The script is not added to scripts/gate.ts, since the gate's list does not ask for it.

Not done

  • No version is compared against /healthz, which only answers ok.
  • The probe does not try to get past Cloudflare's challenge in front of the check API. That is why the stranger-journey line is UNKNOWN rather than a guess.

Final run against production:

PASS    sign-up page: https://forge.open-platform.sh/signup - 200 with a form
PASS    pricing names a price: https://forge.open-platform.sh/pricing - 200, names $2
UNKNOWN stranger journey green on a release: https://forge.open-platform.sh/api/v1/repos/trevato/forge/commits/cab90cf3a9749ab8ba5adfb68693b35c65af09b7/check - 403, not the check's JSON; a person must open v0.7.629's check and see the stranger tests green
FAIL    version agrees: https://forge.open-platform.sh/changelog.atom - production 0.7.629 = tag v0.7.629, but /changelog.atom does not name it
PASS    healthz fast: https://forge.open-platform.sh/healthz - 200 in 75 ms
UNKNOWN schedules ran in 24 h: https://forge.open-platform.sh/api/v1/repos/trevato/forge/schedules?runs=50 - no runs visible to an anonymous read; a person must open the schedules page signed in
PASS    security headers on /: https://forge.open-platform.sh/ - CSP, nosniff, referrer-policy same-origin
PASS    security headers on /pricing: https://forge.open-platform.sh/pricing - CSP, nosniff, referrer-policy same-origin
not every line is PASS: do not tag v1.0.0

The FAIL is a real gap on production: /changelog.atom lists no entries, and its last update is dated 2026-09-06.

To try it: bun scripts/v1-probe.ts https://forge.open-platform.sh and bun test test/v1-probe.test.ts.

🤖 Generated with Claude Code

Approved

Read-only probe does what the issue asks. The request helper refuses any non-GET other than the one POST to /mcp, and any URL off the base origin. UNKNOWN is never counted as a pass, and the exit code follows. The tests cover PASS, FAIL, UNKNOWN and the no-write assertion. OPERATING.md names it in two lines. The pasted production run shows a real FAIL (/changelog.atom names no version), which is the probe working. Two things I would do next: (1) the stranger-journey PASS evidence says the check "runs the stranger tests" but does not verify it, so read the check API result for that test (or name it) rather than assuming it; production currently hits UNKNOWN there because of the Cloudflare challenge, so find a read path that is not challenged. (2) Be consistent on unreachable hosts: /healthz maps a network error to FAIL while every other item maps it to UNKNOWN, and the tags?limit=1 ordering is assumed to be newest-first, so assert or sort it.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs