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

The v1 probe reads releases where a stranger can: anonymous /tags answers 404, so two checklist lines stay UNKNOWN #15389

Merged opened this

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

Merged

The v1 probe no longer reads releases from GET /api/v1/repos/ /tags, which answers 404 to an anonymous read. It now gets the newest release from the token-free MCP releases tool (tools/call, narrowed to --repo), which is what /changelog shows anyone.

Notes

shipped production is serving it deploy 0adf720

opened this

The v1 probe no longer reads releases from GET /api/v1/repos/<repo>/tags, which answers 404 to an anonymous read. It now gets the newest release from the token-free MCP releases tool (tools/call, narrowed to --repo), which is what /changelog shows anyone. Production's MCP initialize can announce either a release number or the short commit of an unstamped build (687c4ae). The "version agrees" line now accepts both: a release number is compared to the release's version, and a short commit to the start of the newest release's commit. Each verdict names both sides.

What to look at

  • Verdicts: if the tool answers and lists no release for the repo, both lines say FAIL ("the releases tool lists no release of …"). They stay UNKNOWN only when the tool gives no answer.
  • Read-only guard: the probe still only sends to the one base URL. The only POSTs it allows are MCP initialize and tools/call of releases, checked on the request body.
  • Unchanged: src/http/mcp.ts and the release workflow are untouched. The stranger-journey line still reads GET …/commits/<sha>/check and says UNKNOWN when that is not publicly readable.

Run against production today, both lines are FAIL: production announces 687c4ae and the tool lists no release of trevato/forge yet, so v1.0.0 still cannot be tagged, now for a stated reason. The "schedules ran in 24 h" line stays UNKNOWN (404 to an anonymous read); that is outside this issue.

Tests (test/v1-probe.test.ts, which would fail without the change: the stub no longer serves /tags):

  • PASS when the announced short commit matches the newest release's commit.
  • FAIL naming both when it does not (687c4ae against ccccccc).
  • FAIL when the tool lists no release for the repo.
  • UNKNOWN when the tool does not answer.
  • The read-only test now expects exactly initialize plus tools/call releases.

bun test test/v1-probe.test.ts, bun test test/mcp-size.test.ts, bun x tsc --noEmit and bun scripts/gate.ts --fix all pass. The plan was not kept with keep_plan, because that tool was not available in this run.

Try it: bun scripts/v1-probe.ts https://lab--forge-trevato-apps.open-platform.sh

🤖 Generated with Claude Code

Closes #15387

commented

The v1 probe no longer reads releases from GET /api/v1/repos/<repo>/tags, which answers 404 to an anonymous read. It now gets the newest release from the token-free MCP releases tool (tools/call, narrowed to --repo), which is what /changelog shows anyone. Production's MCP initialize can announce either a release number or the short commit of an unstamped build (687c4ae). The "version agrees" line now accepts both: a release number is compared to the release's version, and a short commit to the start of the newest release's commit. Each verdict names both sides.

What to look at

  • Verdicts: if the tool answers and lists no release for the repo, both lines say FAIL ("the releases tool lists no release of …"). They stay UNKNOWN only when the tool gives no answer.
  • Read-only guard: the probe still only sends to the one base URL. The only POSTs it allows are MCP initialize and tools/call of releases, checked on the request body.
  • Unchanged: src/http/mcp.ts and the release workflow are untouched. The stranger-journey line still reads GET …/commits/<sha>/check and says UNKNOWN when that is not publicly readable.

Run against production today, both lines are FAIL: production announces 687c4ae and the tool lists no release of trevato/forge yet, so v1.0.0 still cannot be tagged, now for a stated reason. The "schedules ran in 24 h" line stays UNKNOWN (404 to an anonymous read); that is outside this issue.

Tests (test/v1-probe.test.ts, which would fail without the change: the stub no longer serves /tags):

  • PASS when the announced short commit matches the newest release's commit.
  • FAIL naming both when it does not (687c4ae against ccccccc).
  • FAIL when the tool lists no release for the repo.
  • UNKNOWN when the tool does not answer.
  • The read-only test now expects exactly initialize plus tools/call releases.

bun test test/v1-probe.test.ts, bun test test/mcp-size.test.ts, bun x tsc --noEmit and bun scripts/gate.ts --fix all pass. The plan was not kept with keep_plan, because that tool was not available in this run.

Try it: bun scripts/v1-probe.ts https://lab--forge-trevato-apps.open-platform.sh

🤖 Generated with Claude Code

Approved

The probe now reads the newest release from the token-free releases tool. The preview answers that call with the expected shape (releases array), the POST guard is narrowed by body, and the new tests cover PASS, FAIL and UNKNOWN. No security or dependency concerns. This is a script-only change, so there is no page, TUI or README impact.

Two things I would do next:

  1. Evidence paths use /mcp as releasePath. Name the call in the evidence (for example /mcp tools/call releases) so a reader knows which request the line came from.
  2. newestRelease takes the first listed release for the repo and assumes the tool returns them newest first. Add a test pinning that order, or sort explicitly, so a different order cannot flip the verdict.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs