Skip to content

fix: distinguish outdated tools from missing tools - #5688

Merged
kunchenguid merged 9 commits into
kunchenguid:mainfrom
ironerumi:fm/upstream-5440-outdated-tools
Oct 22, 2026
Merged

kunchenguid merged 9 commits into
kunchenguid:mainfrom
ironerumi:fm/upstream-5440-outdated-tools

Conversation

@ironerumi

@ironerumi ironerumi commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Make the existing upstream pull request #5688 ("fix: distinguish outdated tools from missing tools", closes #5440) merge-ready again, so the fork's change can land upstream and the fork diverges less.
Context: the maintainer's last triage (2026-10-12) was "waiting on CI": nm SUCCESS, attestation MATCH, with an unrelated serial-2 timeout and a Herdr failure, and flagged auto-merge-if-green. The PR is now CONFLICTING with upstream main.

Substance of that PR (issue #5440), as already reviewed: bin/fm-bootstrap.sh reported a tool that is installed but below its version floor, or present but missing a required capability, with the same "MISSING:" line it uses for an absent tool, so a supervisor read an installed tool as missing and repeated the first-install remediation. The accepted design splits the two states: "MISSING:" stays for absent tools only, and a present-but-below-floor tool reports "OUTDATED: (installed: <version|unparseable>; requires <floor|capability>; upgrade: )", where the upgrade command is the tool's own updater (treehouse update, no-mistakes update, gh-axi update, quota-axi update) and never a first-install-only step. tasks-axi ships no self-updater, so it keeps its install command and the line names the missing feature-probe capability; the tasks-axi compatibility probe result and reason are reused across the session-start/bootstrap handoff rather than re-probed. lavish-axi keeps PRESENTATION_UNAVAILABLE with its plain-text fallback. It covers treehouse, no-mistakes, gh-axi, quota-axi and tasks-axi, and updates the bootstrap-diagnostics handler skill, the trigger index, operator docs in docs/configuration.md and README, and tests/fm-bootstrap.test.sh for absent, below-floor and at-floor states. Non-goals: no change to floor values or policy, no change to the absent path, no automatic upgrades.

This run is a conflict-only rebase of that reviewed change onto current main: no new behavior. The only conflict was the bootstrap-diagnostics skill description, which main reworded; the resolution keeps main's wording and adds OUTDATED to its diagnostic list, as the PR did.

What Changed

  • Distinguish absent tools (MISSING:) from installed-but-incompatible tools (OUTDATED:), including versions, requirements, and tool-specific upgrade commands.
  • Reuse tasks-axi compatibility reasons across session-start and bootstrap so missing capabilities are reported without repeated probes, while preserving Lavish's presentation fallback.
  • Update bootstrap diagnostics guidance, operator documentation, and coverage for absent, outdated, and at-floor tool states.

Risk Assessment

✅ Low: The change is bounded to tool diagnostics, the tasks-axi handoff explanation, and matching operator documentation/tests, with no source-verifiable defect found.

Testing

Focused behavior checks passed for all changed diagnostic states and the session-start handoff. The real product was also driven directly with isolated disposable toolchains; the resulting user-visible diagnostics are captured in the evidence artifact. A broad invocation of the bootstrap test file exceeded its 120-second limit, so acceptance relies on the focused relevant test functions rather than the broader run.

  • Live validation: ✅ go - 4 of 4 scenarios driven live against the product
Scenario Result Live Evidence
Absent tools remain distinguishable as MISSING ✅ pass live bin/fm-bootstrap.sh disposable-tool fixture transcript: bootstrap-live-diagnostics.txt
Below-floor, unparseable, and feature-incompatible tools report OUTDATED ✅ pass live bin/fm-bootstrap.sh disposable-tool fixture transcript: bootstrap-live-diagnostics.txt
At-floor compatible tools stay silent and Lavish keeps its fallback diagnostic ✅ pass live bin/fm-bootstrap.sh disposable-tool fixture transcript: bootstrap-live-diagnostics.txt
Session-start tasks-axi verdict and reason are reused safely ✅ pass live test_tasks_axi_compatibility_is_probed_once and test_tasks_axi_verdict_handoff_is_consumed_once
Evidence: Live bootstrap diagnostics

Source: Live bootstrap diagnostics

[absent-treehouse]
MISSING: treehouse (install: curl -fsSL https://kunchenguid.github.io/treehouse/install.sh | sh)

[absent-no-mistakes]
MISSING: no-mistakes (install: curl -fsSL https://raw.githubusercontent.com/kunchenguid/no-mistakes/main/docs/install.sh | sh)

[unparseable-no-mistakes]
OUTDATED: no-mistakes (installed: unparseable; requires 1.46.0; upgrade: no-mistakes update)

[outdated-no-mistakes]
OUTDATED: no-mistakes (installed: 1.45.4; requires 1.46.0; upgrade: no-mistakes update)

[absent-gh-axi]
MISSING: gh-axi (install: npm install -g gh-axi && gh-axi setup hooks)

[outdated-gh-axi]
OUTDATED: gh-axi (installed: 0.1.19; requires 0.1.29; upgrade: gh-axi update)

[absent-tasks-axi]
MISSING: tasks-axi (install: npm install -g tasks-axi)

[tasks-capability]
OUTDATED: tasks-axi (installed: 0.2.6; requires 0.2.6 with update --archive-body; upgrade: npm install -g tasks-axi)

[tasks-both-capabilities]
OUTDATED: tasks-axi (installed: 0.2.6; requires 0.2.6 with update --archive-body and mv multi-ID; upgrade: npm install -g tasks-axi)

[absent-quota-axi]
MISSING: quota-axi (install: npm install -g quota-axi)

[outdated-quota-axi]
OUTDATED: quota-axi (installed: 0.1.50; requires 0.1.51; upgrade: quota-axi update)

[absent-lavish-axi]
PRESENTATION_UNAVAILABLE: lavish-axi (requires >=0.1.77; install: npm install -g lavish-axi && lavish-axi setup hooks) - nonvisual work may proceed with plain-text decisions and reports; install or upgrade before using Lavish

[at-floor-all]
(silent)

[outdated-treehouse]
OUTDATED: treehouse (installed: 0.4.2; requires --lease support; upgrade: treehouse update)

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 4 of 4 scenarios driven live against the product
Scenario Result Live Evidence
Absent tools remain distinguishable as MISSING ✅ pass live bin/fm-bootstrap.sh disposable-tool fixture transcript: bootstrap-live-diagnostics.txt
Below-floor, unparseable, and feature-incompatible tools report OUTDATED ✅ pass live bin/fm-bootstrap.sh disposable-tool fixture transcript: bootstrap-live-diagnostics.txt
At-floor compatible tools stay silent and Lavish keeps its fallback diagnostic ✅ pass live bin/fm-bootstrap.sh disposable-tool fixture transcript: bootstrap-live-diagnostics.txt
Session-start tasks-axi verdict and reason are reused safely ✅ pass live test_tasks_axi_compatibility_is_probed_once and test_tasks_axi_verdict_handoff_is_consumed_once
  • bash -c '... test_bootstrap_reporting; test_absent_tool_cases_hide_a_real_install_in_the_base_path; test_no_mistakes_min_version; test_gh_axi_min_version; test_lavish_axi_min_version; test_tasks_axi_min_version; test_quota_axi_min_version; test_tasks_axi_verdict_handoff_is_consumed_once'
  • bash -c '... test_tasks_axi_compatibility_is_probed_once'
  • Disposable fake-tool runs of bin/fm-bootstrap.sh for absent, outdated, unparseable, capability-missing, at-floor, and Lavish states
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate:

Verdict: Diff reviewed (bin/fm-bootstrap.sh OUTDATED vs MISSING split + upgrade_cmd; bootstrap-diagnostics / AGENTS.md / docs/configuration.md + tests). Closes ready-for-pr #5440 (Closes verified; skill already distinguished upgrade vs install; script wrongly labeled below-floor as MISSING).

contract-class: restore — concrete existing default bootstrap diagnostic path; MISSING reserved for absent tools; OUTDATED carries tool's own updater (no first-install setup hooks / curl installer). Consent unchanged (detect, then ask, then act). Floor values unchanged.

VISION: Interface honesty — aligns (outdated ≠ missing). Authority explicit — aligns (no auto-upgrade). Scripts — aligns. Restart/spine/vendor — align. Scope — aligns (bootstrap diagnostics).

Attestation: MATCH ee0b3229a6e5d5174d8b2d4623392ebd24248eba. First-time fork CI: approved workflow runs 36159681057 (CI), 36159681297/36159799442 (Require no-mistakes) after diff review — no security risk. Firstmate flag: no. Waiting on: CI (not captain).

@greptile-apps

greptile-apps Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Updates tool diagnostics to distinguish outdated from missing.

The PR appears safe to merge based on the reviewed code.

Reviews (4) · Last reviewed commit: "no-mistakes(document): Refresh outdated-..." · Reviewed by Greptile

Comment thread bin/fm-bootstrap.sh Resolved
Comment thread tests/fm-bootstrap.test.sh Resolved
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate:

HEAD 8423c49ac6b0c8977b81a62a54f60a89fcf1eb88 (moved since 2026-09-25 stamp on ee0b3229). MERGEABLE/UNSTABLE. Author ironerumi not blocked. Tip vs main 29213a09: 2 commits / 5 files (bootstrap OUTDATED split). Greptile FAILURE non-blocking.

Closes #5440: body Closes #5440 — accurate (below-floor tools wrongly labeled MISSING; tip emits OUTDATED with version/requirement/upgrade_cmd; MISSING stays absent-only; floors/consent unchanged).

Contract-class: restore (re-verified tip-vs-main). Concrete existing default bootstrap diagnostic path; skill already distinguished upgrade vs install; script wrongly labeled below-floor as MISSING. No auto-upgrade; detect→ask→act unchanged.

VISION.md (each rule)

  1. One captain, one interface — aligns (honest outdated ≠ missing).
  2. Authority explicit — aligns (no automatic upgrades).
  3. Scripts own mechanics — aligns (bootstrap diagnostics).
  4. Restart non-event — aligns.
  5. Delegation with a spine — aligns.
  6. Fleet outlives vendor — aligns.
  7. Scope — aligns (bootstrap diagnostics only).

Attestation: MISMATCH — body still names ee0b3229a6e5d5174d8b2d4623392ebd24248eba, not tip HEAD. Refresh attestation to this HEAD.
Fork CI: re-approved this tip after diff review — CI 36438551362, Require no-mistakes 36438551267. No security risk.
Firstmate flag: no. Waiting on: author (attestation MATCH + green CI/NM), not the captain. No merge.

@ironerumi
ironerumi force-pushed the fm/upstream-5440-outdated-tools branch 2 times, most recently from a5cca66 to d92180e Compare September 29, 2026 17:20
@greptile-apps

greptile-apps Bot commented Sep 29, 2026

Copy link
Copy Markdown

Want your agent to iterate on Greptile's feedback? Try greploops.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate (OSS triage, not the captain).

Thanks for re-raising this, @ironerumi. I re-read the thread and checked the new tip against main.

What changed since my 2026-09-28 stamp (head 8423c49a, attestation MISMATCH):

  • New head: 5760624a (5 commits on current main, 0 behind).
  • Attestation: now MATCH.
  • Mergeable: MERGEABLE (UNSTABLE while CI runs).
  • CI: the fork runs were held again. I reviewed the diff for security (bootstrap, tasks-axi lib, session-start, docs, and tests only; no workflows or secrets). I approved CI 37556003791 and Require no-mistakes 37556003675. NM body compliance is already green, and CI is running now.
  • Greptile: 5/5 on this head. Its two P2s (repeated tasks-axi probes, absent-tool tests depending on PATH) are addressed by the probe-reason handoff and the reworked absent-tool fixtures.

Contract-class: restore (re-verified on the tip; my own verdict)

On main, a present but below-floor or feature-incompatible treehouse, no-mistakes, gh-axi, quota-axi, or tasks-axi prints MISSING: … (install: …). The bootstrap-diagnostics contract already treats "upgrade" and "install" as different remedies. The tip prints OUTDATED: <tool> (installed: …; requires …; upgrade: …) and keeps MISSING for absent tools only. Floors are unchanged, and the detect, ask, act consent order is unchanged.
The new FM_TASKS_AXI_CHECK_REASON handoff is consumed and unset just like the existing verdict variable. It only avoids repeating probes and adds no new default-on surface.

VISION.md, rule by rule

  • One captain, one interface: aligns. The diagnostic is honest: outdated is not missing.
  • Authority is explicit: aligns. Nothing upgrades on its own, and consent is still required.
  • Scripts own the mechanics: aligns. Deterministic version and capability checks.
  • A restart is a non-event: aligns.
  • Delegation with a spine: aligns.
  • The fleet outlives any vendor: aligns.
  • Scope: aligns. Bootstrap diagnostics only.

Notes

waiting-ci: nothing is needed from you right now. If CI goes green on 5760624a and the PR stays MATCH and CLEAN, it is an auto-merge candidate on the next triage pass. No captain decision is needed.

@ironerumi
ironerumi force-pushed the fm/upstream-5440-outdated-tools branch from 5760624 to 983ddc5 Compare October 8, 2026 14:59
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate (OSS triage, not the captain).

Thanks for the new push, @ironerumi. I re-read the thread and checked head 983ddc50 against main.

Contract-class: restore (re-checked on this tip, my own verdict). On main, a treehouse, no-mistakes, gh-axi, quota-axi, or tasks-axi that is installed but below its floor, or missing a capability, still prints MISSING: … (install: …). The tip prints OUTDATED: <tool> (installed: …; requires …; upgrade: …) and keeps MISSING for tools that are actually absent. Floors are unchanged, nothing upgrades on its own, and the detect → ask → act consent order is unchanged. The FM_TASKS_AXI_CHECK_REASON handoff is consumed and unset the same way as the existing verdict variable, and it only accepts its closed vocabulary. Closes #5440 is back in the body, and it is accurate.

VISION.md, rule by rule: One captain, one interface: aligns (an outdated tool is no longer reported as missing). Authority is explicit: aligns (no automatic upgrades). Scripts own the mechanics: aligns. A restart is a non-event: n/a. Delegation with a spine: aligns. The fleet outlives any vendor: aligns. Scope: aligns (bootstrap diagnostics only).

Blocking, on you:

  1. "PR must be raised via no-mistakes" fails. The body was edited at 15:34Z, and its attestation is bound to ee0b3229, but the head is 983ddc50 ("Pipeline attestation head_sha does not match the current PR head"). Please re-raise through git push no-mistakes so the attestation binds this head.
  2. Behavior portable serial 2 was cancelled at the 30-minute job limit on this head. Please make sure it finishes on the re-raised head.

Fork CI didn't need approval on this pass (the runs weren't held). Security: none. This is bootstrap/docs/tests only, with no workflow or secret changes. Once an attested head is fully green and CLEAN, this is an auto-merge candidate as restore. No captain decision is needed.

@ironerumi
ironerumi force-pushed the fm/upstream-5440-outdated-tools branch from 983ddc5 to e762fd2 Compare October 9, 2026 01:42
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate (OSS triage, not the captain).

Thanks for the new attested head, @ironerumi. I re-checked e762fd20 against main 19fcbbde.

Contract-class: restore (re-verified). On main, an installed-but-below-floor or capability-missing tool still prints MISSING:; the tip prints OUTDATED: … and keeps MISSING for absent tools. Floors unchanged; no auto-upgrade; detect → ask → act consent unchanged. Closes #5440.

VISION.md: One captain / Authority explicit / Scripts own mechanics / Restart n/a / Delegation / Vendor / Scope: all align (bootstrap diagnostics only; no automatic upgrades).

Attestation: MATCH at e762fd20. no-mistakes green. Blocking CI: Behavior portable serial 4 failed — tests/fm-remote-reply.test.sh (not ok - the header-collision line was not captured). That suite is outside this PR's files; still, the tip is red until it is green. Outcome: waiting-ci. Auto-merge candidate as restore once fully green and CLEAN. No captain decision. Security: none.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @ironerumi — tip moved to b769fd1a (rebased/attested) since the 2026-10-09 waiting-ci stamp on e762fd20.

Contract-class: restore (re-verified). On main, installed-but-below-floor or capability-missing tools still print MISSING:; the tip prints OUTDATED: … and keeps MISSING for absent tools. Floors unchanged; no auto-upgrade; detect → ask → act unchanged. Closes #5440.

VISION.md: One captain / Authority / Scripts / Restart n/a / Spine / Vendor / Scope: all align (bootstrap diagnostics only).

Attestation: MATCH. NM green. CI on this tip: Behavior portable serial 2 cancelled at the ~30m job window (no failing test; last lines ok then The operation was canceled). Behavior tests (Herdr) failed on an unrelated concurrent secondmate recovery lock contention (tests/fm-backend-herdr-presentation-e2e.test.sh) — outside this PR's bootstrap/docs/tests files. I requeued failed jobs on CI run 38254228027 (--failed).

Status: waiting-ci. Auto-merge candidate as restore once fully green and CLEAN. No captain decision. Security: none.

detect_local_tools printed "MISSING:" for a treehouse without --lease, a
no-mistakes below 1.46.0, a gh-axi below its floor, and an incompatible
tasks-axi or quota-axi, so a supervisor read an installed tool as absent
and took the first-install remediation again.

Report those as "OUTDATED:" with the installed version, the requirement
and the tool's own upgrade command: treehouse update, no-mistakes update,
gh-axi update and quota-axi update. tasks-axi ships no self-updater, so it
keeps its install command. "MISSING:" stays for absent tools only, and
lavish-axi keeps PRESENTATION_UNAVAILABLE with its text fallback.

Update the bootstrap-diagnostics handler, the AGENTS.md section 13 trigger
list and the operator diagnostics in docs/configuration.md, and cover
absent, below-floor and at-floor for every floored tool in
tests/fm-bootstrap.test.sh.
Rendering the tasks-axi OUTDATED requirement text ran the two `--help`
capability probes again after the compatibility check had already run
them, including when session start handed bootstrap an incompatible
verdict. The check now records the reason behind its verdict - the
version floor, or the capability probes the build fails - and reuses it,
both within the process and across the existing one-hop handoff, so
naming a missing capability costs no second probe pass. A build below the
floor is answered by its version alone and never pays for capability
probes it cannot use.

The bootstrap tests that simulate a tool as absent removed it from the
fake bin directory while bootstrap kept searching the fallback base PATH,
so a real host install could satisfy the lookup instead of the expected
MISSING line. Those cases now hide the tool from the base path as well,
and a new case pins the contrast between a bare and a curated fallback.

Verified: the touched bootstrap suite passes, and its probe-count and
capability assertions fail against the pre-fix scripts. Run with a
fallback base PATH carrying real installs of the absent tools, the
pre-fix suite fails on "absent treehouse reports a missing tool" while
the fixed suite passes every case.
@ironerumi
ironerumi force-pushed the fm/upstream-5440-outdated-tools branch from 587436d to dfa5abe Compare October 22, 2026 18:12
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks for rebasing this again, @ironerumi. It had gone conflicting, and the fresh head is clean.

I read head dfa5abe6 against main d906d442. It's 0 behind and 9 ahead, with no conflicts. The substance hasn't changed: an installed tool that is below its floor, or missing a capability, prints OUTDATED: <tool> (installed: …; requires …; upgrade: …), and MISSING: stays for tools that are actually absent. Floors are unchanged, nothing upgrades on its own, and the detect → ask → act order is unchanged. The skill change keeps main's bootstrap-diagnostics description and only adds OUTDATED.

Contract-class (my own read): restore. This is the existing default bootstrap diagnostic path, which mislabeled outdated tools as missing. Closes #5440.

VISION.md: One captain / Authority / Scripts / Restart n/a / Delegation / Vendor / Scope: all align (bootstrap diagnostics only, with no automatic upgrades).

Where it stands: waiting on CI, nothing needed from you. The attestation binds this head, the no-mistakes check passes, and live validation is 4/4. CI is running and didn't need approval. If it goes fully green and the PR stays mergeable, this is a restore auto-merge candidate on the next pass.

@ironerumi

Copy link
Copy Markdown
Contributor Author

Rebased onto main d906d442 to clear the merge conflict. The only conflict was in .agents/skills/bootstrap-diagnostics/SKILL.md: the resolution keeps main's reworded description and adds OUTDATED to its diagnostic list, as this PR did originally. The PR's diff is otherwise unchanged.

CI on dfa5abe6: 17 checks passed. Two did not, both apparently unrelated to this change:

The author account cannot rerun CI on this repository. Could a maintainer rerun those two jobs?

@kunchenguid
kunchenguid merged commit 06e2a47 into kunchenguid:main Oct 22, 2026
17 of 19 checks passed
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: this is merged. Thank you @ironerumi — really appreciate you taking the time on this.

Context: I re-checked head dfa5abe6 against main 1935d27b (restore: an installed-but-outdated tool now reports OUTDATED instead of MISSING, closes #5440). Main moved twice since your rebase and touched bin/fm-bootstrap.sh, so I ran tests/fm-bootstrap.test.sh on the combined tree, and it passed. The two jobs you mentioned, serial 1 at its 30-minute ceiling (#7255) and the Herdr concurrent secondmate recovery test (#6454), fail the same way on main 1935d27b. Every other check, plus no-mistakes, was green.

roderik added a commit to roderik/firstmate-rex that referenced this pull request Oct 23, 2026