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

Defect on the v1.0.0 path: the probe's "stranger journey green on a release" line is UNKNOWN from a public read, so v1.0.0 cannot be proven without a person #15517

Merged opened this

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

Merged

The public changelog answer now states the running release's full-check verdict, and the v1 probe reads it there. The stranger-journey line can now pass without anyone signing in. Before this change, anonymous reads got a 404 from the check route, so the line could only ever say UNKNOWN.

Notes

shipped production is serving it deploy 3fede26

opened this

The public changelog answer now states the running release's full-check verdict, and the v1 probe reads it there. The stranger-journey line can now pass without anyone signing in. Before this change, anonymous reads got a 404 from the check route, so the line could only ever say UNKNOWN.

  • What a stranger can read: GET /api/v1/changelog and the token-free MCP releases tool both come from src/release/answer.ts. They now carry check: { commit, state, runId }, where state is ok, failed, running or none. It comes from the new src/release/running_check.ts, which uses the same releaseCheck lookup the check route uses. Only the running commit of the forge's own public repository is checked; a private forge repository gets null. Only the state and run id are exposed: no summary, no log, no other commit.
  • Cost: a settled ok/failed answer is kept, one entry per forge, so later reads don't query again or spawn git. AGENTS.md lists it with the other shared in-memory state. The JSON's ETag now includes the verdict, so a cached running doesn't hide a later ok.
  • Probe: scripts/v1-probe.ts adds runningCheckOf. The stranger-journey line uses the answer's check when it names the newest release's commit: PASS on ok, FAIL on failed, UNKNOWN on running. It falls back to the check API only when the answer names no verdict for that commit.
  • Tests: test/v1-probe.test.ts has a case for each of the three verdicts with the check API closed; it fails without the probe change. It also covers the fallback when the answer names nothing, another commit, or none. The new test/running-check.test.ts covers ok, failed and running with their run ids, null for no commit or a private repository, and that the summary never reaches the answer.

Not done:

  • The /changelog page itself shows nothing new; the verdict lives in its linked JSON answer, so the page renders the same and no new route was added.
  • The issue's last box can't be ticked from here: the probe against production will say PASS only after this is live, so the issue should stay open until it does.

Checks run here: bun scripts/gate.ts --fix (it rewrapped one comment, committed; one advisory note about a similar test helper remains), bun x tsc --noEmit and bun scripts/design-lint.ts are clean. scripts/fast.ts named 2,368 test files, too broad to run here, so I ran the suites that cover the change: the changelog, releases, MCP releases, commit-check, agents-md, both-doors and probe tests. 254 passed, 1 skipped, 0 failed.

Try: curl -s https://lab--<pull>--forge-trevato-apps.open-platform.sh/api/v1/changelog | jq .check, then bun scripts/v1-probe.ts https://lab--forge-trevato-apps.open-platform.sh --repo trevato/forge once it is live, and read the "stranger journey green on a release" line.

🤖 Generated with Claude Code

Closes #15514

1 earlier comment · 1 event
commented

The public changelog answer now states the running release's full-check verdict, and the v1 probe reads it there. The stranger-journey line can now pass without anyone signing in. Before this change, anonymous reads got a 404 from the check route, so the line could only ever say UNKNOWN.

  • What a stranger can read: GET /api/v1/changelog and the token-free MCP releases tool both come from src/release/answer.ts. They now carry check: { commit, state, runId }, where state is ok, failed, running or none. It comes from the new src/release/running_check.ts, which uses the same releaseCheck lookup the check route uses. Only the running commit of the forge's own public repository is checked; a private forge repository gets null. Only the state and run id are exposed: no summary, no log, no other commit.
  • Cost: a settled ok/failed answer is kept, one entry per forge, so later reads don't query again or spawn git. AGENTS.md lists it with the other shared in-memory state. The JSON's ETag now includes the verdict, so a cached running doesn't hide a later ok.
  • Probe: scripts/v1-probe.ts adds runningCheckOf. The stranger-journey line uses the answer's check when it names the newest release's commit: PASS on ok, FAIL on failed, UNKNOWN on running. It falls back to the check API only when the answer names no verdict for that commit.
  • Tests: test/v1-probe.test.ts has a case for each of the three verdicts with the check API closed; it fails without the probe change. It also covers the fallback when the answer names nothing, another commit, or none. The new test/running-check.test.ts covers ok, failed and running with their run ids, null for no commit or a private repository, and that the summary never reaches the answer.

Not done:

  • The /changelog page itself shows nothing new; the verdict lives in its linked JSON answer, so the page renders the same and no new route was added.
  • The issue's last box can't be ticked from here: the probe against production will say PASS only after this is live, so the issue should stay open until it does.

Checks run here: bun scripts/gate.ts --fix (it rewrapped one comment, committed; one advisory note about a similar test helper remains), bun x tsc --noEmit and bun scripts/design-lint.ts are clean. scripts/fast.ts named 2,368 test files, too broad to run here, so I ran the suites that cover the change: the changelog, releases, MCP releases, commit-check, agents-md, both-doors and probe tests. 254 passed, 1 skipped, 0 failed.

Try: curl -s https://lab--<pull>--forge-trevato-apps.open-platform.sh/api/v1/changelog | jq .check, then bun scripts/v1-probe.ts https://lab--forge-trevato-apps.open-platform.sh --repo trevato/forge once it is live, and read the "stranger journey green on a release" line.

🤖 Generated with Claude Code

Approved

The public changelog answer and the token-free MCP releases tool now carry check {commit,state,runId} for the running commit of the public forge repo only, with no summary or log. The probe reads it and maps ok to PASS, failed to FAIL and running to UNKNOWN, falling back to the closed check API only when nothing is stated. Tests cover all three verdicts, the fallback, the private-repo null and the summary not leaking. On the preview the field is present and null, since that preview has no public forge repo with a check; I could not see ok there. Next two things: (1) add a line on the /changelog page itself so a person without jq sees the verdict, as a dl row; (2) document the check field in docs/features for the changelog answer. Box 4 stays open until production's probe prints PASS after release.

commented

Left #15514 open: 1 unticked item remain (the probe against production prints PASS for the line after the change is live (do not close until it does)).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs