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

Defect on the v1.0.0 path: production's /api/v1/changelog says "check": null on the running release, so the stranger-journey probe line is still UNKNOWN after #15517 went live #15522

Merged opened this

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

Merged

The stranger-journey probe line now says why it can't read a verdict when the base URL holds no such repository, instead of printing a bare 404. The cause the issue proposes is wrong, and widening the private-repo read would not fix it. lab--forge-trevato-apps.open-platform.sh is the app's test copy of the forge.

Notes

shipped production is serving it deploy 3fede26

opened this

The stranger-journey probe line now says why it can't read a verdict when the base URL holds no such repository, instead of printing a bare 404.

The cause the issue proposes is wrong, and widening the private-repo read would not fix it. lab--forge-trevato-apps.open-platform.sh is the app's test copy of the forge. It runs on its own database, which holds no trevato/forge at all: anonymous /api/v1/repos lists only atlas-probe-8f88/atlas-probe, b-x-b-0a83/b-x-b and x-6172/x. So publicForgeRepo(app) is undefined there because the repository does not exist, not because it is private. No check ever ran in that database, so there is no verdict to expose. "check": null is correct.

The verdict lives on the forge itself, https://forge.open-platform.sh, which docs/OPERATING.md already names as the probe's target. There, anonymous GET /api/v1/repos/trevato/forge is 200: the repository is public, and runningCheck will state the verdict as written. That forge still runs cab90cf (v0.7.629), which predates #15514. So the line reads 403 … a person must open running v0.7.629's check until the forge deploys a release that contains #15514. I left src/release/running_check.ts unchanged.

What changed:

  • scripts/v1-probe.ts: when the check API answers 404, the probe makes one more GET, of /api/v1/repos/<repo>. If that is 404 too, the line stays UNKNOWN and says <base> holds no public <repo>, so it states no check of it; run the probe against the forge that holds <repo>. A 403 from the check API on a forge that holds the repository is unchanged, and the repository is not read for it.
  • test/v1-probe.test.ts: one new test covers both cases. It fails without the probe change.
  • docs/OPERATING.md: explains why the test copy's changelog says "check": null by design, and that the probe must target the forge that holds the repository.

bun scripts/gate.ts --fix (its comment rewrap is in the commit), bun x tsc --noEmit and bun test test/v1-probe.test.ts pass (15 tests).

To try it:

  • bun scripts/v1-probe.ts https://lab--forge-trevato-apps.open-platform.sh --repo trevato/forge now prints the new "holds no public trevato/forge" line.
  • bun scripts/v1-probe.ts https://forge.open-platform.sh --repo trevato/forge is the run that should print PASS or FAIL once the forge deploys a release containing #15514. Keep the issue open until it does.

🤖 Generated with Claude Code

Closes #15519

2 earlier comments · 1 event
commented

The stranger-journey probe line now says why it can't read a verdict when the base URL holds no such repository, instead of printing a bare 404.

The cause the issue proposes is wrong, and widening the private-repo read would not fix it. lab--forge-trevato-apps.open-platform.sh is the app's test copy of the forge. It runs on its own database, which holds no trevato/forge at all: anonymous /api/v1/repos lists only atlas-probe-8f88/atlas-probe, b-x-b-0a83/b-x-b and x-6172/x. So publicForgeRepo(app) is undefined there because the repository does not exist, not because it is private. No check ever ran in that database, so there is no verdict to expose. "check": null is correct.

The verdict lives on the forge itself, https://forge.open-platform.sh, which docs/OPERATING.md already names as the probe's target. There, anonymous GET /api/v1/repos/trevato/forge is 200: the repository is public, and runningCheck will state the verdict as written. That forge still runs cab90cf (v0.7.629), which predates #15514. So the line reads 403 … a person must open running v0.7.629's check until the forge deploys a release that contains #15514. I left src/release/running_check.ts unchanged.

What changed:

  • scripts/v1-probe.ts: when the check API answers 404, the probe makes one more GET, of /api/v1/repos/<repo>. If that is 404 too, the line stays UNKNOWN and says <base> holds no public <repo>, so it states no check of it; run the probe against the forge that holds <repo>. A 403 from the check API on a forge that holds the repository is unchanged, and the repository is not read for it.
  • test/v1-probe.test.ts: one new test covers both cases. It fails without the probe change.
  • docs/OPERATING.md: explains why the test copy's changelog says "check": null by design, and that the probe must target the forge that holds the repository.

bun scripts/gate.ts --fix (its comment rewrap is in the commit), bun x tsc --noEmit and bun test test/v1-probe.test.ts pass (15 tests).

To try it:

  • bun scripts/v1-probe.ts https://lab--forge-trevato-apps.open-platform.sh --repo trevato/forge now prints the new "holds no public trevato/forge" line.
  • bun scripts/v1-probe.ts https://forge.open-platform.sh --repo trevato/forge is the run that should print PASS or FAIL once the forge deploys a release containing #15514. Keep the issue open until it does.

🤖 Generated with Claude Code

commented

The stranger-journey probe line now says why it can't read a verdict when the base URL holds no such repository, instead of printing a bare 404. The second commit fixes a test leak that made the first push's check fail.

The cause the issue proposes is wrong, and widening the private-repo read would not fix it. lab--forge-trevato-apps.open-platform.sh is the app's test copy of the forge. It runs on its own database, which holds no trevato/forge at all: anonymous /api/v1/repos lists only atlas-probe-8f88/atlas-probe, b-x-b-0a83/b-x-b and x-6172/x. So "check": null there is correct: that database never ran a check. The verdict lives on https://forge.open-platform.sh, where trevato/forge is public (anonymous read is 200), so runningCheck will state it as written. That forge still runs cab90cf (v0.7.629), which predates #15514, so its line reads 403 … a person must open running v0.7.629's check until it deploys a release containing #15514. I left src/release/running_check.ts unchanged.

What changed:

  • scripts/v1-probe.ts: when the check API answers 404, the probe makes one more GET, of /api/v1/repos/<repo>. If that is 404 too, the line stays UNKNOWN and says <base> holds no public <repo>, so it states no check of it; run the probe against the forge that holds <repo>. A 403 from the check API is unchanged, and the repository is not read for it.
  • test/v1-probe.test.ts: one new test covers both cases. It fails without the probe change.
  • docs/OPERATING.md: explains why the test copy's changelog says "check": null by design, and that the probe must target the forge that holds the repository.
  • test/maintain-disk-free.test.ts: now restores FORGE_SENTINEL_REPO in afterAll. It set the variable to alice/rules at the top level and never put it back. test/gate-bypass.test.ts reads the forge's own repository from that variable, so when the two land in the same bun test process, all eight of its tests fail. That is what failed shard 8 on the first push. Running the two files together reproduced those eight failures, and after the fix they give 19 pass, 0 fail. This fixes a test that was wrong; no code changed for it.

bun scripts/gate.ts --fix, bun x tsc --noEmit and bun test test/v1-probe.test.ts pass (15 tests). I did not run the full sharded suite here.

To try it:

  • bun scripts/v1-probe.ts https://lab--forge-trevato-apps.open-platform.sh --repo trevato/forge now prints the new "holds no public trevato/forge" line.
  • bun scripts/v1-probe.ts https://forge.open-platform.sh --repo trevato/forge is the run that should print PASS or FAIL once the forge deploys a release containing #15514. Keep the issue open until it does.

🤖 Generated with Claude Code

Approved

Approved. The probe now names the forge to ask when both the check API and the repository answer 404. A 403 from the check API is left as it was and costs no extra read. The test covers both paths, and the FORGE_SENTINEL_REPO leak in maintain-disk-free is correctly restored in afterAll. I did not fetch the preview, so this verdict rests on the diff only. The builder says the issue premise is wrong: the test copy of the forge holds no trevato/forge, so "check": null is correct there. That is plausible, and leaving running_check.ts alone is sound. Next two things: (1) once the real forge deploys a release containing #15514, run the probe against https://forge.open-platform.sh and confirm the stranger-journey line prints PASS or FAIL; (2) open a follow-up issue to correct #15519 premise and the OPERATING.md target so the box wording matches reality.

commented

Left #15519 open: 3 unticked items remain (when production's forge repository is not public, the changelog still carries check: {commit, state, runId} for the running commit, and only those three fields (no summary, no log, no other commit); the reasoning for exposing state of a private repo's running commit is one line in src/release/running_check.ts; test/running-check*.test.ts: a forge whose repository is private answers the verdict to anonymous; fails without the change; after it is live, the probe prints PASS (or FAIL, honestly) for the stranger-journey line against production — do not close until it does).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs