Skip to content

feat: add optional tasks-axi groundwork - #55

Merged
kunchenguid merged 3 commits into
mainfrom
fm/fm-taxi-adopt-s4
Jun 23, 2026
Merged

kunchenguid merged 3 commits into
mainfrom
fm/fm-taxi-adopt-s4

Conversation

@kunchenguid

Copy link
Copy Markdown
Owner

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:

  • fm-bootstrap.sh: detect tasks-axi on PATH as an OPTIONAL capability that prints a single 'TASKS_AXI: available' fact line. It is intentionally NOT in the required TOOLS list, so it can never be a 'MISSING:' line and never prompts an install; absent => prints nothing (strict no-op via a single '&&' short-circuit). Header comment documents it as optional, never required.
  • Add a tracked .tasks.toml at repo root pinning the markdown backend to data/backlog.md (archive data/done-archive.md, done_keep 10). data/ is gitignored but .tasks.toml at root is tracked and intentionally applies to every firstmate home (main + secondmates), which all use data/backlog.md. This file is INERT right now - nothing is instructed to run tasks-axi mutations.
  • AGENTS.md (CLAUDE.md is a symlink to it): section 3 gains a 'TASKS_AXI: available' handling bullet that records the capability silently and EXPLICITLY states firstmate does NOT route mutations through tasks-axi yet (deferred), so it keeps hand-editing data/backlog.md exactly as today; section 10 keeps its existing backlog format spec block byte-intact and gains ONE deferred-adoption note sentence. There is intentionally NO instruction anywhere to use tasks-axi for mutations.

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

  • Adds inert tasks-axi groundwork by tracking .tasks.toml for the existing data/backlog.md markdown backend.
  • Updates bootstrap to report TASKS_AXI: available only when the optional CLI is present, without making it a required dependency or prompting install.
  • Documents, captain, that backlog mutations remain hand-edited for now and that tasks-axi mutation 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-axi absent 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 when tasks-axi is absent, TASKS_AXI: available when present, and .tasks.toml points at data/backlog.md.

Manual bootstrap evidence for optional tasks-axi detection

Case 1: all required tools available, tasks-axi absent
$ PATH=<fake required tools> FM_HOME=<empty firstmate home> ./bin/fm-bootstrap.sh
<no output>

Case 2: same environment, tasks-axi present on PATH
$ PATH=<fake required tools plus tasks-axi> FM_HOME=<empty firstmate home> ./bin/fm-bootstrap.sh
TASKS_AXI: available

Tracked tasks-axi config
$ sed -n '1,80p' .tasks.toml
backend = "markdown"

[markdown]
path = "data/backlog.md"
archive = "data/done-archive.md"
done_keep = 10

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 emits TASKS_AXI: available whenever tasks-axi is anywhere on PATH, but tests/fm-bootstrap.test.sh prepends its fake toolchain while preserving the real PATH and still asserts empty bootstrap output for the all-good case. Captain, on machines with tasks-axi installed, that test will fail even though the feature is behaving as intended; shim/hide tasks-axi in 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.sh
  • Controlled-PATH manual check: PATH=&lt;fake required tools&gt; FM_HOME=&lt;empty firstmate home&gt; ./bin/fm-bootstrap.sh with tasks-axi absent produced no output.
  • Controlled-PATH manual check: PATH=&lt;fake required tools plus tasks-axi&gt; FM_HOME=&lt;empty firstmate home&gt; ./bin/fm-bootstrap.sh produced exactly TASKS_AXI: available.
  • awk &#39;/^TOOLS=/{print; exit}&#39; bin/fm-bootstrap.sh plus targeted rg checks verified tasks-axi is not required and AGENTS.md says mutation adoption is deferred.
  • git status --short verified testing left no transient worktree files.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

…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.
@kunchenguid
kunchenguid merged commit 7651a3c into main Jun 23, 2026
4 checks passed
@kunchenguid
kunchenguid deleted the fm/fm-taxi-adopt-s4 branch June 23, 2026 19:25
augustomklee added a commit to augustomklee/firstmate that referenced this pull request Jun 24, 2026
Port upstream batch 3: optional tasks-axi backlog support (kunchenguid#55 + kunchenguid#60)
leo1oel added a commit to leo1oel/nemo that referenced this pull request Jun 25, 2026
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
pranaypratyush pushed a commit to pranaypratyush/firstmate that referenced this pull request Aug 25, 2026
…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.
@lucusl

lucusl commented Oct 17, 2026

Copy link
Copy Markdown

This was generated by AI during work on #60.

Measured, 17 October 2026 (Sydney): the -w prompt form (the ticket's K7.3 form) stores only 128 characters of a 170-character value. -w "$(pbpaste)" stores all 170. Dummy values only; no real key.

Where: Mac Mini, macOS 27.0.1, login keychain (no-timeout), run from a worker session in a herdr pane whose server was started over SSH (SSH_CONNECTION set, TMUX unset). The prompt form was driven with expect (a pty), not typed in the Terminal app. Service fm-k3-measure, created with no -T, no -A, no -U. The dummy was 170 characters of A-Za-z0-9 repeating (so a cut is identifiable), kept in a scratch file, never a real key.

Form Command find-generic-password -s fm-k3-measure -a <acct> -w | wc -c Expected if intact
1. Ticket form: -w last, value entered at the interactive prompt (twice, per K3.3) /usr/bin/security add-generic-password -s fm-k3-measure -a len170-prompt -w 129 (128 characters + newline) 171
2. Value from the clipboard on the command line pbcopy < dummy170.txt then /usr/bin/security add-generic-password -s fm-k3-measure -a len170-clip -w "$(pbpaste)" 171 (170 characters + newline) 171
  • Form 1's stored value was byte-identical to the first 128 characters of the dummy: a silent cut, exit 0, no error. The wc -c proof in K7.3 (key length + 1) would have caught it, but only after the owner stored a broken key.
  • Form 2 keeps the whole value, but the value is then an argument of the security process (visible in ps while it runs, and in shell history if typed rather than pasted from a script). That is in tension with R3 ("never in a command line or shell history"), so it is not a drop-in.
  • Cleanup: both items deleted with /usr/bin/security delete-generic-password (exit 0 each), a lookup of the service now returns "could not be found", clipboard cleared with pbcopy < /dev/null (pbpaste | wc -c = 0).
  • Also seen: the create succeeded from this SSH-started pane, unlike the owner's first attempt on 13 October (User interaction is not allowed). Not investigated; it may depend on the keychain's state at the time.
  • Not measured: other lengths between 129 and 170, whether the cut is exactly 128 for every value (one value only), or other input routes (stdin, -X hex). Which form K7.3 should use is the owner's call; K7.3 is unchanged.

Full commands and the scratch script: data/agentkit-keys-record-60/ (Firstmate).

fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 2, 2026
…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.
fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 18, 2026
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.
@bijnadutch

Copy link
Copy Markdown

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.

  • Before (main): lands on Home with the RIDE button while the ride is still recording (screenshot: /Users/amalewar/github/firstmate/data/br-relaunch-record/before-fix-relaunch-100s.png).
  • After (this PR): lands on Record, 'Recording since 4:40 PM', Finish ride button (.../after-fix-relaunch-100s.png).

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 am kill); the cause does not depend on how the process died. Screenshots are local files, not uploaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants