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

Production's releases tool lists the releases cut from main, so the v1 probe's two release lines can pass #15407

Merged opened this

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

Merged

The token-free MCP releases tool and /api/v1/changelog now list a public repository's v tags as releases, each with its version and the commit it tags. The probe's two lines are not shown PASS on production yet. That can only happen after this lands, and only when the probe points at the forge's own URL (see below).

Notes

shipped production is serving it deploy 496afdb

opened this

The token-free MCP releases tool and /api/v1/changelog now list a public repository's v* tags as releases, each with its version and the commit it tags. The probe's two lines are not shown PASS on production yet. That can only happen after this lands, and only when the probe points at the forge's own URL (see below).

Why the record was empty: it read the wrong store. In shippedAnswer (src/release/answer.ts), releases came only from app_release, which holds the versions that apps deployed on this forge have served. The forge's own repository is never deployed as an app on itself, so none of its tags were ever in that table. This is not the move to main and not a record that failed to be written. It fails the same way on https://forge.open-platform.sh: the tool there answers version: "0.7.629", commit: cab90cf…, releases: [].

What changed

  • New module src/release/repo_tags.ts:
    • It reads the newest v* tags of the named public repository from the git store, never the network. Annotated tags resolve to the commit they point at.
    • A cut's JSON tag message shows as v<version>.
    • Each read is kept for 30 s, so a burst of anonymous requests asks git once.
    • Private or unknown repositories answer [].
  • shippedAnswer merges those tags with the versions apps served, newest first; when both name a version, it is listed once, as served. Asked for no repository, it uses the forge's own.
  • /changelog.atom puts the running release in <generator version="0.7.629">. The feed only lists live landings, and live is empty on the forge today, so before this the feed never named a version and "version agrees" would still fail on it.
  • No new MCP tool, and the release workflow and the chart are untouched.

Tests: test/release-repo-tags.test.ts sets up a public and a private repository and pushes annotated tags to them, as scripts/cut-release.ts cuts them.

  • The tool's answer lists 0.7.629 and 0.7.628 with their commits, and the probe's own newestRelease reads v0.7.629 from it.
  • Private and unknown repositories list nothing, and a served version is not listed twice.
  • /changelog.atom names the running release.
  • Both behaviour tests fail without their fix.

The gate, tsc --noEmit, design-lint and 32 tests across mcp-size, mcp-releases, changelog-api, v1-probe and shipped-answer-per-forge all pass. scripts/fast.ts named 2192 files, so I picked the covering suites myself.

What this does not fix: the probe URL in the issue. https://lab--forge-trevato-apps.open-platform.sh is a separate forge running as an app, with its own database:

  • GET /api/v1/repos/trevato/forge there answers 404, so it holds none of the tags.
  • It runs main at 8d8faa6, which is v0.7.629-362-g8d8faa697, not a tag. That is why its version is null.

No change to the read can make either probe line pass there. The probe needs to run against https://forge.open-platform.sh, which announces 0.7.629. Its newest tag v0.7.629 is cab90cf, the running commit, and its /changelog already names it. Which URL the checklist should probe is the owner's call; I left docs/OPERATING.md alone. If the owner wants the lab to pass too, the tags would need to be cut from what main actually deploys, which is release-workflow work this issue rules out.

Separately, live is empty on the forge while 300 landings sit in onItsWay even though it serves cab90cf. That is a different read (keepLive / split in src/release/landings.ts), not changed here.

How to try it: after it rolls, run bun scripts/v1-probe.ts https://forge.open-platform.sh. Or POST /mcp with tools/call releases {"repo":"trevato/forge"} and look for releases[0].version == "0.7.629" and commit == cab90cf…; /changelog.atom should show <generator version="0.7.629">forge</generator>. I haven't pasted the probe's PASS output because this hasn't rolled yet. I didn't post a plan with keep_plan or record an estimate: neither tool is available in this run.

🤖 Generated with Claude Code

Closes #15404

5 earlier comments · 1 event
commented

<!-- look-pages 0ce663fb7b1e --> Look pages for 0ce663f, from the gate:

  • look pages (inferred): this pull changes src/web/feeds.ts; the forge pictures / (src/web/feeds.ts), /docs (src/web/feeds.ts), /explore (src/web/feeds.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

The token-free MCP releases tool and /api/v1/changelog now list a public repository's v* tags as releases, each with its version and the commit it tags. The probe's two lines are not shown PASS on production yet. That can only happen after this lands, and only when the probe points at the forge's own URL (see below).

Why the record was empty: it read the wrong store. In shippedAnswer (src/release/answer.ts), releases came only from app_release, which holds the versions that apps deployed on this forge have served. The forge's own repository is never deployed as an app on itself, so none of its tags were ever in that table. This is not the move to main and not a record that failed to be written. It fails the same way on https://forge.open-platform.sh: the tool there answers version: "0.7.629", commit: cab90cf…, releases: [].

What changed

  • New module src/release/repo_tags.ts:
    • It reads the newest v* tags of the named public repository from the git store, never the network. Annotated tags resolve to the commit they point at.
    • A cut's JSON tag message shows as v<version>.
    • Each read is kept for 30 s, so a burst of anonymous requests asks git once.
    • Private or unknown repositories answer [].
  • shippedAnswer merges those tags with the versions apps served, newest first; when both name a version, it is listed once, as served. Asked for no repository, it uses the forge's own.
  • /changelog.atom puts the running release in <generator version="0.7.629">. The feed only lists live landings, and live is empty on the forge today, so before this the feed never named a version and "version agrees" would still fail on it.
  • No new MCP tool, and the release workflow and the chart are untouched.

Tests: test/release-repo-tags.test.ts sets up a public and a private repository and pushes annotated tags to them, as scripts/cut-release.ts cuts them.

  • The tool's answer lists 0.7.629 and 0.7.628 with their commits, and the probe's own newestRelease reads v0.7.629 from it.
  • Private and unknown repositories list nothing, and a served version is not listed twice.
  • /changelog.atom names the running release.
  • Both behaviour tests fail without their fix.

The gate, tsc --noEmit, design-lint and 32 tests across mcp-size, mcp-releases, changelog-api, v1-probe and shipped-answer-per-forge all pass. scripts/fast.ts named 2192 files, so I picked the covering suites myself.

What this does not fix: the probe URL in the issue. https://lab--forge-trevato-apps.open-platform.sh is a separate forge running as an app, with its own database:

  • GET /api/v1/repos/trevato/forge there answers 404, so it holds none of the tags.
  • It runs main at 8d8faa6, which is v0.7.629-362-g8d8faa697, not a tag. That is why its version is null.

No change to the read can make either probe line pass there. The probe needs to run against https://forge.open-platform.sh, which announces 0.7.629. Its newest tag v0.7.629 is cab90cf, the running commit, and its /changelog already names it. Which URL the checklist should probe is the owner's call; I left docs/OPERATING.md alone. If the owner wants the lab to pass too, the tags would need to be cut from what main actually deploys, which is release-workflow work this issue rules out.

Separately, live is empty on the forge while 300 landings sit in onItsWay even though it serves cab90cf. That is a different read (keepLive / split in src/release/landings.ts), not changed here.

How to try it: after it rolls, run bun scripts/v1-probe.ts https://forge.open-platform.sh. Or POST /mcp with tools/call releases {"repo":"trevato/forge"} and look for releases[0].version == "0.7.629" and commit == cab90cf…; /changelog.atom should show <generator version="0.7.629">forge</generator>. I haven't pasted the probe's PASS output because this hasn't rolled yet. I didn't post a plan with keep_plan or record an estimate: neither tool is available in this run.

🤖 Generated with Claude Code

commented

The token-free MCP releases tool and /api/v1/changelog now list a public repository's v* tags as releases, each with its version and the commit it tags. The probe's two release lines are not shown PASS on production yet: that needs this to land, and the probe pointed at the forge's own URL (see below).

Why the record was empty: it read the wrong store. In shippedAnswer (src/release/answer.ts), releases came only from app_release, which holds the versions apps deployed on this forge have served. The forge's own repository is never deployed as an app on itself, so none of its 372 tags were in that table. It was not the move to main, and not a record that failed to be written. https://forge.open-platform.sh showed the same thing: version: "0.7.629", commit: cab90cf…, releases: [].

What changed

  • New src/release/repo_tags.ts: reads the newest v* tags of the named public repository from its git store on disk, never over the network.
    • An annotated tag resolves to the commit it points at.
    • A tag whose message is the cut's JSON record shows as v<version>.
    • A read is kept for 30 s, so a burst of anonymous requests asks git once.
    • A private or unknown repository answers [].
  • shippedAnswer: merges those tags with the versions apps served, newest first. A version in both is listed once, as served. With no repository named, it reads the forge's own.
  • /changelog.atom: names the running release in <generator version="0.7.629">. The feed lists only live landings, and live is empty on the forge today, so the feed named no version and "version agrees" would still fail on it.
  • No new MCP tool. The release workflow and the chart are untouched.
  • A No look: commit answers the look-pages feedback. The only src/web change is that one element of an XML feed. The gate inferred 28 pages only because every page's route imports src/web/feeds.ts, and none of them renders the feed, so no picture changes.

Tests: test/release-repo-tags.test.ts sets up a public and a private repository and pushes annotated tags the way scripts/cut-release.ts cuts them. It checks that:

  • the answer lists 0.7.629 and 0.7.628 with their commits, and the probe's own newestRelease reads v0.7.629 from it;
  • private and unknown repositories list nothing, and a served version is not listed twice;
  • /changelog.atom names the running release.

Both behaviour tests fail without their fix. The gate, tsc --noEmit and design-lint pass, and so do the existing mcp-size, mcp-releases, changelog-api, v1-probe, shipped-answer-per-forge, changelog-atom and changelog-etag suites. scripts/fast.ts named 2192 test files, so I chose these covering suites myself.

The probe URL in the issue cannot pass. https://lab--forge-trevato-apps.open-platform.sh is a separate forge running as an app, with its own database:

  • GET /api/v1/repos/trevato/forge there answers 404, so it holds none of the tags.
  • It runs main at 8d8faa6 (v0.7.629-362-g8d8faa697), which is not a tag, so its version is null.

No change to the read can make either line pass there. Against https://forge.open-platform.sh they should pass after this rolls: it announces 0.7.629, its newest tag v0.7.629 is cab90cf, the running commit, and its /changelog already names it. Which URL the checklist probes is the owner's call, so I left docs/OPERATING.md alone. Making the lab pass would mean cutting tags from what main deploys, which is release-workflow work this issue rules out.

Separately, live is empty on the forge while 300 landings wait in onItsWay, even though it serves cab90cf. That is a different read (keepLive / split in src/release/landings.ts), not changed here.

Try it:

  1. After it rolls, run bun scripts/v1-probe.ts https://forge.open-platform.sh.
  2. Or POST /mcp with tools/call releases {"repo":"trevato/forge"} and expect releases[0].version == "0.7.629" with commit == cab90cf….
  3. /changelog.atom should show <generator version="0.7.629">forge</generator>.

There is no probe PASS output to paste until it rolls. The issue's plan (keep_plan) and any estimate were not recorded: neither tool was available in this run.

🤖 Generated with Claude Code

commented

The token-free MCP releases tool and /api/v1/changelog now list a public repository's v* tags as releases, each with its version and the commit it tags. The probe's two release lines are not shown PASS on production yet: that needs this to land, and the probe pointed at the forge's own URL (see below).

Why the record was empty: it read the wrong store. In shippedAnswer (src/release/answer.ts), releases came only from app_release, which holds the versions apps deployed on this forge have served. The forge's own repository is never deployed as an app on itself, so none of its 372 tags were in that table. It was not the move to main, and not a record that failed to be written. https://forge.open-platform.sh showed the same thing: version: "0.7.629", commit: cab90cf…, releases: [].

What changed

  • New src/release/repo_tags.ts: reads the newest v* tags of the named public repository from its git store on disk, never over the network.
    • An annotated tag resolves to the commit it points at.
    • A tag whose message is the cut's JSON record shows as v<version>.
    • A read is kept for 30 s, so a burst of anonymous requests asks git once.
    • A private or unknown repository answers [].
  • shippedAnswer: merges those tags with the versions apps served, newest first. A version in both is listed once, as served. With no repository named, it reads the forge's own.
  • /changelog.atom: names the running release in <generator version="0.7.629">. The feed lists only live landings, and live is empty on the forge today, so the feed named no version and "version agrees" would still fail on it.
  • No new MCP tool. The release workflow and the chart are untouched.

Gate rules this pull answers with commit lines:

  • No look: the only src/web change is one element of an XML feed. The gate inferred 28 pages only because every page's route imports src/web/feeds.ts, and none of them renders the feed.
  • No door: this is a read behind doors that already exist (the MCP tool, /api/v1/changelog, /changelog.atom, the terminal's releases screen), so there is no new screen.
  • Direction: the v1.0.0 checklist's two release lines stay red until this read lists the forge's tags (#15404).
  • The test now runs git through a new gitAt in test/helpers/plain-git.ts instead of its own copy, which answers the gate's "one implementation?" note. The gate now passes. It still prints one advisory likeness note: gitAt resembles a copy already inside test/json-big-page.test.ts, which this pull doesn't touch.

Tests: test/release-repo-tags.test.ts sets up a public and a private repository and pushes annotated tags the way scripts/cut-release.ts cuts them. It checks that:

  • the answer lists 0.7.629 and 0.7.628 with their commits, and the probe's own newestRelease reads v0.7.629 from it;
  • private and unknown repositories list nothing, and a served version is not listed twice;
  • /changelog.atom names the running release.

Both behaviour tests fail without their fix. tsc --noEmit and design-lint pass, and so do the existing mcp-size, mcp-releases, changelog-api, v1-probe, shipped-answer-per-forge, changelog-atom and changelog-etag suites. After adding gitAt I reran the tests that import test/helpers/plain-git.ts: all 8 pass. scripts/fast.ts named 2192 test files, so I chose these covering suites myself.

The probe URL in the issue cannot pass. https://lab--forge-trevato-apps.open-platform.sh is a separate forge running as an app, with its own database:

  • GET /api/v1/repos/trevato/forge there answers 404, so it holds none of the tags.
  • It runs main at 8d8faa6 (v0.7.629-362-g8d8faa697), which is not a tag, so its version is null.

No change to the read can make either line pass there. Against https://forge.open-platform.sh they should pass after this rolls: it announces 0.7.629, its newest tag v0.7.629 is cab90cf, the running commit, and its /changelog already names it. Which URL the checklist probes is the owner's call, so I left docs/OPERATING.md alone. Making the lab pass would mean cutting tags from what main deploys, which is release-workflow work this issue rules out.

Separately, live is empty on the forge while 300 landings wait in onItsWay, even though it serves cab90cf. That is a different read (keepLive / split in src/release/landings.ts), not changed here.

Try it:

  1. After it rolls, run bun scripts/v1-probe.ts https://forge.open-platform.sh.
  2. Or POST /mcp with tools/call releases {"repo":"trevato/forge"} and expect releases[0].version == "0.7.629" with commit == cab90cf….
  3. /changelog.atom should show <generator version="0.7.629">forge</generator>.

There is no probe PASS output to paste until it rolls. The issue's plan (keep_plan) and any estimate were not recorded: neither tool was available in this run.

🤖 Generated with Claude Code

commented

The token-free releases MCP tool and /api/v1/changelog now also list a public repository's v* git tags as releases, next to the versions apps served (#15404). The forge's own repository is never deployed as an app here, so before this the tool answered releases: [] even though the repository has hundreds of tags. /changelog.atom's <generator> now names the running release (from FORGE_VERSION) even when no landing is live, which is the value the v1 probe's "version agrees" step reads.

  • src/release/repo_tags.ts: reads the newest tags with git for-each-ref from the local git store, never the network. Each release gets its version and the commit it tags; annotated tags resolve to the commit, not the tag object. A private or missing repository gives []. Tags whose message is a release-cut JSON record show vX.Y.Z as their subject instead of the JSON.
  • Caching: results are kept for 30 seconds so a burst of anonymous reads runs git once. The cache is a WeakMap keyed by each forge's database, matching src/http/page_stamp.ts, so two forges in one process never share it. That keeps the module-state rule and its baseline unchanged.
  • Merging: mergeReleases puts served and tagged releases in one list, newest first. A version that both name appears once, as the app served it.
  • Removed: the test-only forgetTagReleases export is gone. It had no caller under src/, which the dead-code check flagged.

The gate, the type check and the three affected test files (unused-exports, module-state, release-repo-tags) pass here. The gate printed one advisory note: the new cache helper keptFor matches stampsOf in src/http/page_stamp.ts. It exits 0, and I left the two separate rather than merging them in this change. I did not add a page screenshot because no HTML page changes; the only src/web change is the generator element in the Atom feed.

To try it on the preview:

  • POST /mcp with tools/call releases {"repo":"trevato/forge"} lists v0.7.629 with its commit.
  • GET /changelog.atom contains <generator version="0.7.629">.

🤖 Generated with Claude Code

Approved

Approved. The read is sound: git store only, public repos only, 30s keyed cache per forge db, tag regex and OID validated, no shell from user text. The only src/web change is one XML attribute, escaped with xml(), so no page, design-system or JS-off concern. The new tests fail without their fixes. Next, two things: (1) the probe URL in the issue (the lab forge) cannot pass from this change; the owner should point the checklist at https://forge.open-platform.sh or cut tags from what main deploys, and the probe PASS output should be pasted once it rolls; (2) the empty live with 300 landings in onItsWay is a separate read bug, so open an issue for it.

commented

Left #15404 open: 1 unticked item remain (After it lands and rolls, the probe's two lines read PASS on production (paste the output in the pull).).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs