Repository navigation
feat: add optional tasks-axi groundwork - #55
Conversation
…ion deferred) Ship only the inert pieces of tasks-axi adoption: - fm-bootstrap.sh detects tasks-axi on PATH as an OPTIONAL capability (prints 'TASKS_AXI: available'); never a MISSING line, never an install prompt, strictly silent when absent. - Tracked .tasks.toml at repo root pins the markdown backend to data/backlog.md (done_keep=10) for every firstmate home. - AGENTS.md records the capability silently and explicitly DEFERS routing backlog mutations through tasks-axi: firstmate keeps hand-editing data/backlog.md byte-for-byte as today. Adoption is deferred because tasks-axi v0.1.0 does not parse firstmate's backlog format: In-flight lines (- [ ] <id>, also matched by fm-backlog-handoff.sh) and blocked-by-with-reason lines are invisible or mis-parsed, which would drop in-flight tasks and prematurely dispatch blocked work. The backlog format spec and section structure are unchanged.
Port upstream batch 3: optional tasks-axi backlog support (kunchenguid#55 + kunchenguid#60)
Port upstream tasks-axi support (kunchenguid#55/kunchenguid#60) adapted to the herdr/Claude-only fork: provisioning lives in the dotfiles update-tools.sh axi loop (this fork has no fm-bootstrap), and a compatible tasks-axi is optional everywhere. - .tasks.toml: pin the tasks-axi markdown backend to data/backlog.md (done_keep=10, archive data/done-archive.md) - bin/fm-tasks-axi-lib.sh: shared 0.1.1+ compatibility probe - bin/fm-teardown.sh: route the post-teardown reminder through tasks-axi done/ready when compatible, else the hand-edit fallback; the secondmate retirement path keeps its data/secondmates.md hint - AGENTS.md sections 2/3/7/10, README, CONTRIBUTING: document the verb mapping and present-or-absent fallback; add .tasks.toml to tracked material - tests/fm-teardown.test.sh: compatible-tasks-axi reminder test
…kunchenguid#55) * fix: make no-mistakes docs gate risk-based * no-mistakes(document): document risk-based gate's new Markdown CI jobs * no-mistakes: apply CI fixes * Revert "no-mistakes: apply CI fixes" This reverts commit 9d21f63c51a6dc903c4ca9b1ab584dd9bb17d7a1.
Measured, 17 October 2026 (Sydney): the Where: Mac Mini, macOS 27.0.1, login keychain (
Full commands and the scratch script: |
…nchenguid#55) * docs(toolchain-manifest): add verified opencode row, correct absence notes Isolated toolchain probes on 2026-08-03 produced the verification this file was explicitly waiting for on opencode, and disproved one of its stated facts. The header claimed the local opencode install had "no platform binary". It has one and it runs: opencode-darwin-arm64/bin/opencode reports 1.18.3. The install is unusable because the package's postinstall never ran, so bin/opencode.exe is still the shipped 479-byte error stub and npm produced no PATH symlink. That is a wiring defect, not a missing build, and the note now says so. Add the opencode row. This file's rule is that a runtime is listed once its --version output has been parsed on a real machine, and the header named that as the pending action. The parse happened twice here: 1.18.3 from the platform binary above, and 1.17.18 from an isolated scratch-prefix install of the certified build. certified is transcribed from docs/watcher-continuity.md, not guessed. The row stays silent until opencode is back on PATH, per this file's absent-binary contract. Sharpen the grok note from "not installed here" to the measured cause: the x.ai installer left a truncated 59170816-byte download under ~/.grok/downloads and an empty ~/.grok/bin. That is 48.7% of the 121600480-byte certified artifact, and the partial binary is SIGKILLed on launch as an unsigned Mach-O. No grok row is added, because no --version output could be parsed. Pi and quota-axi certified versions are deliberately unchanged. Both were smoke- tested in isolation this session and both look safe to take, but an isolated smoke test is evidence for a decision, not a certification. tests/fm-toolchain-drift.test.sh and tests/fm-dispatch-select.test.sh pass. * no-mistakes(review): fix opencode manifest row why column and header note * no-mistakes(review): drop "full" from manifest certification rule * test(gotmp): link fm-busy-lib.sh into both fake-root fixtures tests/fm-gotmp.test.sh builds fake FM_ROOT trees and symlinks in the real scripts that fm-teardown.sh resolves. bin/fm-tmux-lib.sh has sourced bin/fm-busy-lib.sh since kunchenguid#51, but neither fixture links it, so the teardown subprocess could not load its tmux adapter and the suite failed on "teardown exited non-zero with a valid tasktmp". This is pre-existing on the default branch and unrelated to this branch's change: bin/ and tests/fm-gotmp.test.sh were both byte-identical to the base commit, and the only other file this branch touches is a data file no test in this suite reads. It is fixed here only because it blocks this lane's validation. Two fixtures needed the link, not one. test_teardown_skips_gracefully_without_tasktmp builds its own fake root inline rather than calling make_fake_root, so it duplicates the symlink block and drifted the same way. Verified: all 4 assertions in tests/fm-gotmp.test.sh now pass, and tests/fm-toolchain-drift.test.sh (9) and tests/fm-dispatch-select.test.sh (8) still pass. bin/fm-lint.sh is clean. * feat(primary): warn instead of blocking on Kimi version drift bin/fm-primary.sh gated the Kimi primary on exact string equality with KIMI_VALIDATED_VERSION. Kimi ships a self-updater, so that gate turned every publisher release into an unscheduled outage of the certified primary rather than leaving it merely uncertified. It then stayed down permanently: the pinned 0.27.0 build no longer exists anywhere on the captain's machine, not in ~/.kimi-code/bin and not in the /tmp lab docs/kimi-harness.md records, so no value of FM_KIMI_BIN could satisfy it. Drift now warns on stderr and launches. The functional gate is unchanged: `kimi doctor` against the managed home still fails a launch closed when the integration is actually broken, as do the managed-path symlink refusals. This is the reasoning bin/fm-toolchain-lib.sh already applies fleet-wide; its header cited this exact pin as the counter-example and now records that it was fixed. Cursor keeps its exact-match block deliberately. Its Stop turn-end hook is unverified rather than merely drifted (docs/cursor-harness.md), so drift there is not the same class of problem. KIMI_VALIDATED_VERSION moves to 0.31.1 because that build's primary hook mechanics were re-verified live today, so the warning now fires only on genuinely unevidenced builds. Verified in a scratch FM_HOME, scratch Kimi source home, and scratch managed home, with the captain's ~/.kimi-code read through symlinks and never written, and with the plugin's hook commands swapped for logging stubs so the probe never ran Firstmate's real guards: - sessionStart skill injection PASS. The model reported the injected system-reminder and emitted its token instead of answering the prompt. - PreToolUse (Bash) PASS. PRETOOL_FIRED logged when the model ran a command, and the command was permitted. - Stop turn-end PASS. STOP_FIRED logged once per completed turn. - `kimi doctor` against the managed home: all config files valid. The plugin manifest schema fm-primary.sh writes is still accepted unchanged. Evidence recorded in docs/kimi-harness.md, which the toolchain manifest's certified column now transcribes. Stale claims updated where this change makes them false: the kimi manifest row, bin/fm-toolchain-lib.sh's header, AGENTS.md, docs/configuration.md, and the harness-adapters skill. Dated historical certification records in docs/architecture.md and the worker sections are left alone; they remain accurate history. tests/fm-primary.test.sh now asserts the new contract - drift warns, reaches the launch command, and doctor still fails closed. All 12 assertions pass, as do fm-toolchain-drift (9), fm-kimi-worker (5), fm-gotmp (4), and fm-dispatch-select (8). bin/fm-lint.sh is clean. * no-mistakes(review): revert kimi certified to 0.27.0, align docs and fixtures * no-mistakes(review): accept both evidenced Kimi builds without warning * no-mistakes(review): clarify Kimi evidence wording, guard certified constant * no-mistakes(review): move certified-constant guard into manifest test suite * no-mistakes(document): align onboarding and Kimi doc scope with warn-not-block * fix(test-run): map ONBOARDING.md as documentation-only source The changed-test map had no entry for ONBOARDING.md, so the required fork-surface step failed closed the first time this branch touched that file. fork-surface.conf already declares the onboarding-guide capability as documentation-only with proves = none, so the guide belongs in the same prose branch as README.md rather than owning a behavior family. The empty-selection fixture now touches ONBOARDING.md alongside README.md so the classification stays covered.
fm_handoff_clear_record in the primary handoff library has had no caller since it was added, and the RETIRED tuple in the to-do composer is never read. Both live in fork-owned files.
|
Emulator repro (bike_rider_e2e, debug arm64 builds): ride started on Record (REC, foreground notification, location icon up), app force-stopped, relaunched with no taps, screenshot 100 s later.
Note: debug init on the emulator is slow (the ride restore completes 30 s+ after launch), so an early screenshot shows Home on both builds; the fix switches to Record when the restore lands. I only tried force-stop (not a swipe from Recents or |
Intent
Land ONLY the inert, no-op groundwork for adopting the published tasks-axi CLI in firstmate's backlog management; explicitly DEFER routing any backlog mutations through tasks-axi.
Background and decision: an earlier wider version of this change also instructed firstmate to perform backlog mutations via tasks-axi verbs. Review correctly flagged (and I empirically confirmed) that tasks-axi v0.1.0 is NOT format-compatible with firstmate's backlog: (a) In-flight lines use '- [ ] - ...' (firstmate docs AND the bin/fm-backlog-handoff.sh awk matcher), but tasks-axi only reads/writes '- - ...', so existing in-flight items are invisible to tasks-axi (NOT_FOUND) and tasks-axi-written items are unmatched by the helper; (b) firstmate's 'blocked-by: - ' form is not parsed by tasks-axi, which swallows it into the title and reports the item as ready, risking premature dispatch of blocked work. The captain reviewed these findings and chose to ship only the inert pieces now and defer mutation-adoption until a tasks-axi release parses firstmate's format.
What this change deliberately does:
Deliberately OUT of scope (do not flag as omissions): no tasks-axi verb adoption (intentionally removed per the captain's decision); no migration or reformatting of backlog content; no change to the backlog FORMAT or section structure; no auto-install or making tasks-axi required. The net behavior change when tasks-axi is absent is zero, and when present is only the inert detection line plus a tracked config file that nothing yet consumes.
What Changed
tasks-axigroundwork by tracking.tasks.tomlfor the existingdata/backlog.mdmarkdown backend.TASKS_AXI: availableonly when the optional CLI is present, without making it a required dependency or prompting install.tasks-aximutation adoption is deferred until format compatibility is resolved.Risk Assessment
✅ Low: Captain, the change is narrow, documented as inert, and the prior PATH-leak test risk has been addressed without adding new material runtime risk.
Testing
Captain, I ran the targeted bootstrap test, manually exercised the end-user bootstrap command with
tasks-axiabsent and present, verified the required-tool list and deferred-adoption docs, captured the CLI transcript as evidence, and confirmed the worktree stayed clean.Evidence: Optional tasks-axi bootstrap transcript
Manual bootstrap evidence shows no output whentasks-axiis absent,TASKS_AXI: availablewhen present, and.tasks.tomlpoints atdata/backlog.md.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-bootstrap.sh:104- Line 104 now emitsTASKS_AXI: availablewhenevertasks-axiis anywhere on PATH, buttests/fm-bootstrap.test.shprepends its fake toolchain while preserving the real PATH and still asserts empty bootstrap output for the all-good case. Captain, on machines withtasks-axiinstalled, that test will fail even though the feature is behaving as intended; shim/hidetasks-axiin the test or allow the optional capability line.🔧 Fix: Captain, isolate optional tasks-axi bootstrap tests
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-bootstrap.test.shControlled-PATH manual check:PATH=<fake required tools> FM_HOME=<empty firstmate home> ./bin/fm-bootstrap.shwithtasks-axiabsent produced no output.Controlled-PATH manual check:PATH=<fake required tools plus tasks-axi> FM_HOME=<empty firstmate home> ./bin/fm-bootstrap.shproduced exactlyTASKS_AXI: available.awk '/^TOOLS=/{print; exit}' bin/fm-bootstrap.shplus targetedrgchecks verifiedtasks-axiis not required and AGENTS.md says mutation adoption is deferred.git status --shortverified testing left no transient worktree files.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.