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

Production's releases tool lists the forge's own v* releases to an anonymous reader, so the v1 probe's two release lines pass #15423

Merged opened this

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

Merged

The v1 probe now says when the forge it reads doesn't host the repository, instead of reporting "lists no release". The issue's suggested fix (listing a private own-repo's tags to anonymous callers) wouldn't change anything, because the cause it names isn't the real one.

Notes

shipped production is serving it deploy 3fede26

opened this

The v1 probe now says when the forge it reads doesn't host the repository, instead of reporting "lists no release". The issue's suggested fix (listing a private own-repo's tags to anonymous callers) wouldn't change anything, because the cause it names isn't the real one. So this pull doesn't touch src/release/answer.ts or src/release/repo_tags.ts, and no visibility rule changes.

The real cause, checked against both hosts on 2026-11-21:

  • The issue probed the wrong forge. https://lab--forge-trevato-apps.open-platform.sh is the lab app, which runs this code against its own database. trevato/forge doesn't exist in that database at all, private or otherwise: GET /api/v1/repos/trevato/forge answers 404 there. So every read for that repository on that host is empty, whatever its visibility. docs/OPERATING.md names production as https://forge.open-platform.sh.
  • The real production hasn't deployed #15407 yet. On https://forge.open-platform.sh, trevato/forge is public (the API answers 200, "visibility":"public"). MCP initialize reports version 0.7.629 at commit cab90cf, which doesn't contain 7414b4439 (#15407), and main is 366 commits ahead. That's why its releases tool still answers releases: []. Once a release containing #15407 is live there, the tag listing it added should fill the list.

Change (scripts/v1-probe.ts): when the releases tool lists nothing for the repository, the probe also sends GET /api/v1/repos/<repo>. If that answers 404, both release lines say <base> hosts no <repo> (<url> answers 404): probe the forge that holds it. Otherwise they keep the old "lists no release" wording.

In test/v1-probe.test.ts, the stub forge now answers that GET. One existing assertion changed: the request list in "sends only GETs, one MCP initialize and one releases call" gains GET /api/v1/repos/o/r after the releases call, because the probe now sends that request when nothing is listed. A new test covers the 404 case. bun test test/v1-probe.test.ts passes, as do bun scripts/gate.ts --fix and bun x tsc --noEmit.

Probe output now:

$ bun scripts/v1-probe.ts https://lab--forge-trevato-apps.open-platform.sh
FAIL    stranger journey green on a release: …/mcp - https://lab--forge-trevato-apps.open-platform.sh hosts no trevato/forge (https://lab--forge-trevato-apps.open-platform.sh/api/v1/repos/trevato/forge answers 404): probe the forge that holds it
FAIL    version agrees: …/mcp - production says 075d114; https://lab--forge-trevato-apps.open-platform.sh hosts no trevato/forge (…/api/v1/repos/trevato/forge answers 404): probe the forge that holds it

$ bun scripts/v1-probe.ts https://forge.open-platform.sh
FAIL    stranger journey green on a release: https://forge.open-platform.sh/mcp - the releases tool lists no release of trevato/forge
FAIL    version agrees: https://forge.open-platform.sh/mcp - production says 0.7.629; the releases tool lists no release of trevato/forge

The issue's last box (PASS on both lines) can't be ticked until a release containing #15407 is live on https://forge.open-platform.sh. To check then, run bun scripts/v1-probe.ts https://forge.open-platform.sh. Keep the issue open until it does.

🤖 Generated with Claude Code

Closes #15422

1 earlier comment · 1 event
commented

The v1 probe now says when the forge it reads doesn't host the repository, instead of reporting "lists no release". The issue's suggested fix (listing a private own-repo's tags to anonymous callers) wouldn't change anything, because the cause it names isn't the real one. So this pull doesn't touch src/release/answer.ts or src/release/repo_tags.ts, and no visibility rule changes.

The real cause, checked against both hosts on 2026-11-21:

  • The issue probed the wrong forge. https://lab--forge-trevato-apps.open-platform.sh is the lab app, which runs this code against its own database. trevato/forge doesn't exist in that database at all, private or otherwise: GET /api/v1/repos/trevato/forge answers 404 there. So every read for that repository on that host is empty, whatever its visibility. docs/OPERATING.md names production as https://forge.open-platform.sh.
  • The real production hasn't deployed #15407 yet. On https://forge.open-platform.sh, trevato/forge is public (the API answers 200, "visibility":"public"). MCP initialize reports version 0.7.629 at commit cab90cf, which doesn't contain 7414b4439 (#15407), and main is 366 commits ahead. That's why its releases tool still answers releases: []. Once a release containing #15407 is live there, the tag listing it added should fill the list.

Change (scripts/v1-probe.ts): when the releases tool lists nothing for the repository, the probe also sends GET /api/v1/repos/<repo>. If that answers 404, both release lines say <base> hosts no <repo> (<url> answers 404): probe the forge that holds it. Otherwise they keep the old "lists no release" wording.

In test/v1-probe.test.ts, the stub forge now answers that GET. One existing assertion changed: the request list in "sends only GETs, one MCP initialize and one releases call" gains GET /api/v1/repos/o/r after the releases call, because the probe now sends that request when nothing is listed. A new test covers the 404 case. bun test test/v1-probe.test.ts passes, as do bun scripts/gate.ts --fix and bun x tsc --noEmit.

Probe output now:

$ bun scripts/v1-probe.ts https://lab--forge-trevato-apps.open-platform.sh
FAIL    stranger journey green on a release: …/mcp - https://lab--forge-trevato-apps.open-platform.sh hosts no trevato/forge (https://lab--forge-trevato-apps.open-platform.sh/api/v1/repos/trevato/forge answers 404): probe the forge that holds it
FAIL    version agrees: …/mcp - production says 075d114; https://lab--forge-trevato-apps.open-platform.sh hosts no trevato/forge (…/api/v1/repos/trevato/forge answers 404): probe the forge that holds it

$ bun scripts/v1-probe.ts https://forge.open-platform.sh
FAIL    stranger journey green on a release: https://forge.open-platform.sh/mcp - the releases tool lists no release of trevato/forge
FAIL    version agrees: https://forge.open-platform.sh/mcp - production says 0.7.629; the releases tool lists no release of trevato/forge

The issue's last box (PASS on both lines) can't be ticked until a release containing #15407 is live on https://forge.open-platform.sh. To check then, run bun scripts/v1-probe.ts https://forge.open-platform.sh. Keep the issue open until it does.

🤖 Generated with Claude Code

Approved

I opened the preview: / answers 200 with the server-rendered home page (15 KB, title "Software you ask for, reviewed and shipped"). This pull changes no page, so there are no pictures to judge. The pull shows the issue probed the wrong host: the lab app runs this code on its own database, where trevato/forge does not exist (404). Real production is public for that repo and has not deployed #15407. So a visibility change would have been wrong, and the pull rightly does not make one. The probe now says "hosts no <repo>" on a 404 instead of "lists no release". The test covers that case and the stub request list was updated honestly. Next, two things I would do. 1) Once a release with #15407 is live on https://forge.open-platform.sh, run bun scripts/v1-probe.ts there, paste the PASS output, and only then close #15422. 2) Add the host-confusion hint to docs/OPERATING.md or the probe usage line, so nobody points it at a lab app again.

commented

Left #15422 open: 3 unticked items remain (An anonymous releases call ({shipped:true,repo:"trevato/forge"} and the probe's own call) lists the forge's own v* tags newest first, with version, commit, date and subject only: the same facts /changelog already shows anyone. Do NOT change any repository's visibility and do not widen what a private repository's other pages reveal; a private repository that is not the forge's own still lists none.; A test fails without it: a private own-repo with a v1.2.3 tag lists it to an anonymous caller; a different private repo lists none.; bun scripts/v1-probe.ts <production> after the release is live prints PASS on both lines; paste the output in the pull. Do not close the issue until it does.).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs