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

opened this

Merged 12d 13h ago, live in production

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

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

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs