Skip to content

fix(backlog): omit markdown-era --file flag on non-markdown backends - #3416

Closed
RooseveltAdvisors wants to merge 1 commit into
kunchenguid:mainfrom
RooseveltAdvisors:fm/beads-backend-file-compat
Closed

RooseveltAdvisors wants to merge 1 commit into
kunchenguid:mainfrom
RooseveltAdvisors:fm/beads-backend-file-compat

Conversation

@RooseveltAdvisors

Copy link
Copy Markdown
Contributor

Summary

fm_backlog_row_probe and fm_backlog_mutate in bin/fm-backlog-transition-lib.sh hardcode tasks-axi show/start <id> --file <data>/backlog.md. The --file flag is a markdown-backend input: on non-markdown backends (e.g. the beads backend) every show/start call errors, which blocks all dispatch probes (fm-spawn) in homes configured for those backends.

Fix

Omit the --file flag unless the configured backend is markdown or manual (detected from .tasks.toml). Non-markdown homes now resolve work items through their backend normally.

Evidence

  • Repro before: tasks-axi show <id> --file data/backlog.md → "beads show failed" (UNKNOWN) in a beads-backend home; without --file the same call succeeds.
  • After: probe succeeds, fm-spawn dispatch proceeds end to end (verified live in a fleet home running the beads backend).
  • shellcheck clean; change is 2 call sites + a backend check.

Compatibility

Markdown and manual homes are byte-for-byte unchanged: the flag is still passed for those backends.

fm_backlog_row_probe and fm_backlog_mutate hardcoded 'tasks-axi show/start
--file data/backlog.md'. The --file flag is markdown-backend-specific: on
non-markdown backends (e.g. beads) it errors 'beads show failed', blocking
every dispatch probe. Omit the flag unless the configured backend is
markdown or manual.
@greptile-apps

greptile-apps Bot commented Aug 31, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

The PR appears safe to merge, with no concrete blocking or independently actionable non-blocking issue identified.

The changed probe and mutation paths consistently derive backend configuration from the same canonical data parent used as the tasks-axi working directory, while preserving existing markdown behavior and removing the incompatible argument for configured non-markdown backends.

Reviews (1): Last reviewed commit: "fix(backlog): omit markdown-era --file f..." | Re-trigger Greptile

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate:

Reviewed HEAD 134c6e376b9e3a6635ee69fc36707a1428aadb6e vs main 6c1d2db194cb20e08232ba2fa2c414592f724b44. Whole thread read (unstamped; Greptile 5/5). Full diff reviewed: only bin/fm-backlog-transition-lib.sh +18/−2. No .github/workflows/*. No sudo, pull_request_target, secrets, eval, or curl|sh. RooseveltAdvisors is not a blocked author. Not disguised security. CI not withheld. Approved first-time fork CI on this HEAD: 33440703791 (CI), 33440703782 (Require no-mistakes).

Contract-class: restore. fm_backlog_row_probe / fm_backlog_mutate currently hardcode tasks-axi show|start <id> --file <data>/backlog.md. That flag is markdown-era addressing: a home whose .tasks.toml already selects beads (or another non-markdown adapter) fails every show/start with "beads show failed", so fm-spawn's dispatch preflight refuses. This patch omits --file unless .tasks.toml is missing or backend is markdown/manual. Unconfigured markdown and firstmate-manual paths stay on --file as specified. Not new-default (the unconfigured run is unchanged). Not opt-in (a captain who already configured a non-markdown adapter does not flip another knob).

VISION (per rule):

  • One captain, one interface — aligns (dispatch currently surfaces a backend flag error instead of an outcome; restoring the probe keeps the interface honest).
  • Authority is explicit — aligns (no new autonomy; the captain already selected the adapter in .tasks.toml; markdown/manual still pass --file).
  • Scripts own the mechanics — aligns (probe/mutate stay scripted tasks-axi calls; backend detection is script mechanics).
  • A restart is a non-event — aligns (spawn/teardown pairing and bootstrap replay go through these two call sites).
  • Delegation with a spine — aligns (dispatch preflight must actually read the row before creating an endpoint).
  • The fleet outlives any vendor — aligns (tasks-axi adapters are the vendor-orthogonal backlog layer; --file couples the call to markdown-file addressing).
  • Scope — aligns (command-layer backlog transition lib, not the workshop).

Direct observation of remaining gaps (review notes, not a close):

  • No tests in this PR. Existing tests/fm-backlog-atomicity.test.sh drives tasks-axi --file itself and never covers a configured non-markdown adapter. Missing tests is a review note, not automatically a close.
  • Probe/mutate still fm_backlog_record_present the markdown file, and fm_backlog_transition_applies still skips a home with no backlog.md. A beads home without a leftover markdown file still never reaches this omit---file path.
  • Backend detection is a duplicated grep -Eq on ${data}/../.tasks.toml. Single-quoted backend = 'markdown' would miss and omit --file; the optional-quote regex can also match markdown-foo. Prefer fm_backlog_root plus a tighter parser.

Overlap: same author later opened #3417 ("fix(bin): preserve configured backlog adapters"), which edits this file more broadly — helper that omits --file whenever .tasks.toml exists, keeps non-markdown active without leftover backlog.md, plus spawn/teardown/docs and regression tests. Keeping both open. I will not close #3416 unless the captain landed the other. Not opening a competing PR.

Attestation: no <!-- no-mistakes-pipeline-attestation:v1 ... --> in the body → MISSING. no-mistakes is blocking.

Waiting on the author for a no-mistakes pipeline attestation bound to this exact HEAD (134c6e376b9e3a6635ee69fc36707a1428aadb6e). Say that plainly: waiting on the author, not the captain. Do not merge (attestation MISSING, no tests, CI not green).

@RooseveltAdvisors

Copy link
Copy Markdown
Contributor Author

Superseded by #3417, which is being delivered through the required no-mistakes pipeline and includes the adapter-routing fix, structural lifecycle coverage, and core-interface purity enforcement.

@RooseveltAdvisors

Copy link
Copy Markdown
Contributor Author

Superseded by #3417, which carries the same --file/adapter fix through no-mistakes. Closing this raw PR because it failed the required 'PR must be raised via no-mistakes' check.

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.

2 participants