Skip to content

feat: support version URLs for watched tool updates - #7449

Merged
kunchenguid merged 3 commits into
kunchenguid:mainfrom
andrewesweet:fm/watched-tool-version-url
Oct 17, 2026
Merged

kunchenguid merged 3 commits into
kunchenguid:mainfrom
andrewesweet:fm/watched-tool-version-url

Conversation

@andrewesweet

Copy link
Copy Markdown
Contributor

Intent

Watched tools whose CLI never announces its own updates can now be tracked by the update watcher through an optional version_url key.

Some tools, such as Claude Code, never report a newer version from their own CLI, so the update watcher has no way to notice an update.
With this change, a watched-tool entry may name a version_url that returns the latest published version, which the watcher probes with curl inside its existing probe time bound.
The key is optional and validated, so entries without it behave exactly as before.
When curl is unavailable or the probe fails, the watcher reports the existing check-failed outcome rather than a false result.
Tests cover a valid probe, an invalid key, and the missing-curl path, and the shipped example gains one entry.

What Changed

  • Add optional, validated HTTPS version_url probes using curl within existing time limits, comparing published versions against the newest installed copy.
  • Report missing curl, failed requests, and unreadable versions as check failures while preserving PATH mismatch reporting.
  • Document the option, add a Claude Code example, and add tests for version comparisons, invalid configuration, and probe failures.

Risk Assessment

✅ Low: The optional probe is bounded, preserves existing behavior, and correctly distinguishes published updates from installed PATH skew.

Testing

The targeted watcher suite passed after correcting fixture placement. Eight live scenarios passed using real HTTPS, curl, watcher delivery, and the installed Claude CLI. CLI transcripts and request logs were saved; all disposable fixtures were removed.

  • Live validation: ✅ go - 8 of 8 scenarios driven live against the product
Scenario Result Live Evidence
Arm version_url and receive a watcher wake for a silent tool; repeated findings are suppressed ✅ pass live Live watcher CLI transcripts and persisted reports
Current or newer active versions stay silent; 2.10.0 correctly exceeds 2.9.0 ✅ pass live Live watcher CLI transcripts and persisted reports
Already-installed releases report only PATH skew; releases newer than every copy also report availability ✅ pass live Live watcher CLI transcripts and persisted reports
HTTP errors, unreadable bodies, and slow HTTPS produce bounded check failures while remaining tools are checked ✅ pass live Live watcher CLI transcripts and persisted reports; Disposable HTTPS publisher request log
Missing curl produces an explicit check failure without contacting the publisher ✅ pass live Live watcher CLI transcripts and persisted reports
Invalid version_url values and missing commands are rejected during checking and arming ✅ pass live Live watcher CLI transcripts and persisted reports
Entries without version_url retain silent, announcement, and PATH-skew behavior without curl ✅ pass live Live watcher CLI transcripts and persisted reports
Shipped Claude configuration reports published 2.1.302 against the real installed CLI version 2.1.301 ✅ pass live Real installed Claude and public release endpoint
Evidence: Live watcher CLI transcripts and persisted reports

Source: Live watcher CLI transcripts and persisted reports

Product: bin/fm-tool-update-check.sh at target HEAD; real curl over verified HTTPS.
Disposable publisher: https://127.0.0.1:45307; fixture CA supplied through CURL_CA_BUNDLE.

SCENARIO: Arm version_url and receive a real watcher wake for a silent tool; repeat is suppressed
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/armed ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh arm
exit=0, elapsed=0.091s
stdout: armed: state/tool-updates.check.sh
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/armed ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/armed/state/tool-updates.check.sh
exit=0, elapsed=0.096s
stdout: tool updates: watched update available: 2.1.273 published at https://127.0.0.1:45307/latest, PATH resolves 2.1.271
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232028
reported=watched update available: 2.1.273 published at https://127.0.0.1:45307/latest, PATH resolves 2.1.271
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/armed ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/armed/state/tool-updates.check.sh
exit=0, elapsed=0.080s
stdout: <silent>
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232028
reported=watched update available: 2.1.273 published at https://127.0.0.1:45307/latest, PATH resolves 2.1.271
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/armed ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-watch-checkpoint.sh --seconds 10
exit=0, elapsed=0.794s
stdout: check: ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/armed/state/tool-updates.check.sh: tool updates: watched update available: 2.1.273 published at https://127.0.0.1:45307/latest, PATH resolves 2.1.271
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232029
reported=watched update available: 2.1.273 published at https://127.0.0.1:45307/latest, PATH resolves 2.1.271
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/armed ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh disarm
exit=0, elapsed=0.010s
stdout: disarmed: state/tool-updates.check.sh
RESULT: pass

SCENARIO: Current or newer active copy stays silent; dotted versions compare numerically
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/current ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.078s
stdout: <silent>
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232029
reported=
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/older-publisher ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.071s
stdout: <silent>
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232029
reported=
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/numeric ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.072s
stdout: tool updates: watched update available: 2.10.0 published at https://127.0.0.1:45307/numeric, PATH resolves 2.9.0
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232029
reported=watched update available: 2.10.0 published at https://127.0.0.1:45307/numeric, PATH resolves 2.9.0
RESULT: pass

SCENARIO: Installed release reports only PATH skew; release newer than all copies also reports availability
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/already-installed ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.097s
stdout: tool updates: watched update not in effect: PATH resolves 2.1.271 at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/old-bin/watched-fixture but 2.1.273 is installed at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/same-bin/watched-fixture
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232029
reported=watched update not in effect: PATH resolves 2.1.271 at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/old-bin/watched-fixture but 2.1.273 is installed at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/same-bin/watched-fixture
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/already-installed ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.097s
stdout: <silent>
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232029
reported=
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/already-installed ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.098s
stdout: tool updates: watched update not in effect: PATH resolves 2.1.271 at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/old-bin/watched-fixture but 2.1.274 is installed at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/new-bin/watched-fixture
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232029
reported=watched update not in effect: PATH resolves 2.1.271 at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/old-bin/watched-fixture but 2.1.274 is installed at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/new-bin/watched-fixture
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/already-installed ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.096s
stdout: <silent>
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232029
reported=
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/newer-than-all ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.103s
stdout: tool updates: watched update available: 2.1.275 published at https://127.0.0.1:45307/newest, PATH resolves 2.1.271; watched update not in effect: PATH resolves 2.1.271 at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/old-bin/watched-fixture but 2.1.273 is installed at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/same-bin/watched-fixture
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232030
reported=watched update available: 2.1.275 published at https://127.0.0.1:45307/newest, PATH resolves 2.1.271; watched update not in effect: PATH resolves 2.1.271 at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/old-bin/watched-fixture but 2.1.273 is installed at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/same-bin/watched-fixture
RESULT: pass

SCENARIO: HTTP failure, unreadable body, and slow HTTPS repo

... [8373 bytes truncated] ...

d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-5 ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh arm
exit=1, elapsed=0.013s
stdout: <silent>
stderr: fm-tool-update-check: tool watched version_url must be one https URL (~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-5/config/watched-tools.json)
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-6 ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.025s
stdout: tool updates: watched tool registry: tool watched version_url must be one https URL
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232032
reported=watched tool registry: tool watched version_url must be one https URL
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-6 ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh arm
exit=1, elapsed=0.014s
stdout: <silent>
stderr: fm-tool-update-check: tool watched version_url must be one https URL (~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-6/config/watched-tools.json)
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-7 ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.026s
stdout: tool updates: watched tool registry: tool watched version_url must be one https URL
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232032
reported=watched tool registry: tool watched version_url must be one https URL
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-7 ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh arm
exit=1, elapsed=0.013s
stdout: <silent>
stderr: fm-tool-update-check: tool watched version_url must be one https URL (~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-7/config/watched-tools.json)
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-8 ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.024s
stdout: tool updates: watched tool registry: tool watched version_url must be one https URL
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232032
reported=watched tool registry: tool watched version_url must be one https URL
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-8 ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh arm
exit=1, elapsed=0.013s
stdout: <silent>
stderr: fm-tool-update-check: tool watched version_url must be one https URL (~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-8/config/watched-tools.json)
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-9 ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.023s
stdout: tool updates: watched tool registry: tool watched version_url must be one https URL
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232032
reported=watched tool registry: tool watched version_url must be one https URL
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-9 ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh arm
exit=1, elapsed=0.011s
stdout: <silent>
stderr: fm-tool-update-check: tool watched version_url must be one https URL (~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/invalid-9/config/watched-tools.json)
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/missing-command ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.023s
stdout: tool updates: watched tool registry: tool watched version_url needs command
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232032
reported=watched tool registry: tool watched version_url needs command
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/missing-command ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh arm
exit=1, elapsed=0.013s
stdout: <silent>
stderr: fm-tool-update-check: tool watched version_url needs command (~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/missing-command/config/watched-tools.json)
RESULT: pass

SCENARIO: Entries without version_url retain silent, PATH-skew, and announcement behavior without curl
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/legacy-quiet ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.050s
stdout: <silent>
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232032
reported=
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/legacy-quiet ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.079s
stdout: tool updates: watched update not in effect: PATH resolves 2.1.271 at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/old-bin/watched-fixture but 2.1.273 is installed at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/same-bin/watched-fixture
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232033
reported=watched update not in effect: PATH resolves 2.1.271 at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/old-bin/watched-fixture but 2.1.273 is installed at ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/same-bin/watched-fixture
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/legacy-announcement ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.059s
stdout: tool updates: watched update available: Update available: 2.1.273
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232033
reported=watched update available: Update available: 2.1.273
RESULT: pass

SCENARIO: Shipped Claude example retrieves a version from its real public HTTPS endpoint
$ FM_HOME=~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-live-44ntv5jr/shipped-example ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0, elapsed=0.281s
stdout: tool updates: claude update available: 2.1.302 published at https://downloads.claude.ai/claude-code-releases/latest, PATH resolves 0.0.0
persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232033
reported=claude update available: 2.1.302 published at https://downloads.claude.ai/claude-code-releases/latest, PATH resolves 0.0.0
RESULT: pass

All watched commands were disposable external-boundary fixtures; watcher and curl were real.
Disposable homes, binaries, private TLS key, and publisher removed.
Evidence: Real installed Claude and public release endpoint

Source: Real installed Claude and public release endpoint

The real installed Claude executable is used through an isolated PATH and HOME; no login or primary is launched.
$ ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-real-claude-ktmzao03/bin/claude --version
exit=0
2.1.301 (Claude Code)
$ ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-real-claude-ktmzao03/bin/curl -fsS --max-time 5 -- https://downloads.claude.ai/claude-code-releases/latest
exit=0
2.1.302
$ ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0
tool updates: claude update available: 2.1.302 published at https://downloads.claude.ai/claude-code-releases/latest, PATH resolves 2.1.301
Persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232105
reported=claude update available: 2.1.302 published at https://downloads.claude.ai/claude-code-releases/latest, PATH resolves 2.1.301

RESULT: pass; actual installed CLI and public publisher agree with watcher output.
Disposable HOME, PATH links, and watcher state removed.
Evidence: Disposable HTTPS publisher request log

Source: Disposable HTTPS publisher request log

[
  {
    "method": "GET",
    "path": "/latest",
    "status": 200,
    "body": "2.1.273\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/latest",
    "status": 200,
    "body": "2.1.273\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/latest",
    "status": 200,
    "body": "2.1.273\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/latest",
    "status": 200,
    "body": "2.1.273\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/older",
    "status": 200,
    "body": "2.1.270\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/numeric",
    "status": 200,
    "body": "v2.10.0\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/latest",
    "status": 200,
    "body": "2.1.273\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/latest",
    "status": 200,
    "body": "2.1.273\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/latest",
    "status": 200,
    "body": "2.1.273\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/latest",
    "status": 200,
    "body": "2.1.273\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/newest",
    "status": 200,
    "body": "2.1.275\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/error",
    "status": 503,
    "body": "9.9.9\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/newest",
    "status": 200,
    "body": "2.1.275\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/body/9.9.9",
    "status": 200,
    "body": "no version is published here\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/newest",
    "status": 200,
    "body": "2.1.275\n",
    "delay_seconds": 0
  },
  {
    "method": "GET",
    "path": "/slow",
    "status": 200,
    "body": "9.9.9\n",
    "delay_seconds": 8
  },
  {
    "method": "GET",
    "path": "/newest",
    "status": 200,
    "body": "2.1.275\n",
    "delay_seconds": 0
  }
]

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 1 issue found → auto-fixed ✅
  • ⚠️ bin/fm-tool-update-check.sh:533 - If PATH resolves 2.1.271, another PATH entry contains 2.1.273, and version_url returns 2.1.273, this emits both 'update available' and 'update not in effect'. The release is already installed; this repeats the misclassification fixed by e9a6675. Compare published against best_version, as the announcement path does. Align the explanations at bin/fm-tool-update-check.sh:51, bin/fm-tool-update-check.sh:521, and docs/configuration.md:1572; extend tests/fm-tool-update-check.test.sh:457 with this two-copy case.

🔧 Fix applied.
✅ Re-checked - no issues remain.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 8 of 8 scenarios driven live against the product
Scenario Result Live Evidence
Arm version_url and receive a watcher wake for a silent tool; repeated findings are suppressed ✅ pass live Live watcher CLI transcripts and persisted reports
Current or newer active versions stay silent; 2.10.0 correctly exceeds 2.9.0 ✅ pass live Live watcher CLI transcripts and persisted reports
Already-installed releases report only PATH skew; releases newer than every copy also report availability ✅ pass live Live watcher CLI transcripts and persisted reports
HTTP errors, unreadable bodies, and slow HTTPS produce bounded check failures while remaining tools are checked ✅ pass live Live watcher CLI transcripts and persisted reports; Disposable HTTPS publisher request log
Missing curl produces an explicit check failure without contacting the publisher ✅ pass live Live watcher CLI transcripts and persisted reports
Invalid version_url values and missing commands are rejected during checking and arming ✅ pass live Live watcher CLI transcripts and persisted reports
Entries without version_url retain silent, announcement, and PATH-skew behavior without curl ✅ pass live Live watcher CLI transcripts and persisted reports
Shipped Claude configuration reports published 2.1.302 against the real installed CLI version 2.1.301 ✅ pass live Real installed Claude and public release endpoint
  • env -u FM_ROOT_OVERRIDE -u FM_STATE_OVERRIDE -u FM_DATA_OVERRIDE -u FM_CONFIG_OVERRIDE -u FM_PROJECTS_OVERRIDE TMPDIR=&#34;$PWD/.tool-version-targeted-tmp&#34; bash tests/fm-tool-update-check.test.sh — initial setup failure: the non-repository fixture inherited the enclosing worktree.
  • env -u TMPDIR -u FM_ROOT_OVERRIDE -u FM_STATE_OVERRIDE -u FM_DATA_OVERRIDE -u FM_CONFIG_OVERRIDE -u FM_PROJECTS_OVERRIDE bash tests/fm-tool-update-check.test.sh — passed with corrected temporary-directory placement.
  • python3 ~/.no-mistakes/evidence/01M54MMDEVYV2QGWZ6VJ25Y57G/drive-watched-version-live.py — exerci