Skip to content

fix: improve away-mode startup and work reporting - #43

Merged
peterOC26 merged 14 commits into
mainfrom
fm/fm-afk-improve-r2
Nov 6, 2026
Merged

peterOC26 merged 14 commits into
mainfrom
fm/fm-afk-improve-r2

Conversation

@peterOC26

@peterOC26 peterOC26 commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Intent

Away words, 2026-11-05: "i will be away today, please try to do as much work as possible. go over our jobs board insects its shortcommings from history and try to correct it and use your new ideas and intuition to make it better. use deepseek and grok for that (they have and will have plenty of token allowance). move all jobs to next stages. answer questions when you are 80%+ confident. improve this afk command"

A history review of away mode found the recurring failures: jobs stalled because the away session did not start, did not see a job's next step, or no one noticed it was idle; read-backs that over- or under-stated what the away session would do; prose start promises that never fired; and a return brief that did not say what was left unstarted.

Build that follow-up list except standing away words, which waits for the captain's choice, and except the blocker-handling check. A later decision cut the blocker-handling check, the away-session liveness check, from this change entirely and left its redesign as separate follow-up work. A separate change already in review covers a Jobs page note ending away mode and per-job note grants; do not rebuild those. Evidence from the away day: a worker's blocker sat about five hours with no away handling and no hand-back. That liveness check is the item cut from this change.

Pin the gap where no away session starts after a clear followed by away. A live session lock under a new session id with a stale lock-session, plus an away record, must start the away host or record a durable alarm that the away session did not start. A clear in the same process must not leave the home unarmed. Attended arming stays as it is.

At away entry, print a read-only inventory after the away record is written. Live tasks, held rows, a queued row whose blocker is done, and a green pull request all appear in a stable order. Empty sections are omitted. An unreadable backlog prints the error and the command still exits 0. The inventory writes nothing.

When no away session is running, the main session records routine outcomes and does not send routine chat. A decision that belongs to the person away still becomes a held backlog task. This adds no new merge authority.

The return brief includes a Not started section. Each live next step appears once, with the exact next command. A task with an open blocked event has no line there. The section stays inside its byte budget.

The away read-back states what will actually happen: a green pull request plus the sentence that permits merging it, the slower advisory suite, a dropped sentence that was re-sent, and a stop after three failed checks. Merge gates stay as they are.

At entry, flag hold dates that have already passed and blockers that have cleared. Offer future dates. Register a future-date check only when explicitly asked. Already-due dates are named and not registered. Do not write seen-markers. The sweep is read-only on the backlog.

None of this changes the never-set or red-merge policy, local-only landing, merge gates, or the rule that away words are not parsed. Quiet mode stays as it is.

What Changed

  • Restore Claude away-host arming after /clear by refreshing stale session identifiers and allowing host-owned away supervision.
  • Print a read-only entry inventory covering live work, held tasks, cleared blockers, green PRs, and hold dates; add a read-back checklist and explicitly requested future-date checks.
  • Record main-session routine outcomes silently and add a byte-budgeted “Not started” return section with exact next commands, excluding tasks with open blockers.

Risk Assessment

✅ Low: The fix round is small and does what was prescribed. Next-command parsing now drops the line cut by the tasks-axi truncation marker and everything after it, so a cut command is never printed and complete earlier lines are still used. The Not started budget now counts bytes: in a subshell with LC_ALL=C, ${#var} returns the byte length. Its regressions exercise real tasks-axi truncation and a multibyte line, and both would fail against the previous code.

Testing

Four targeted regression files and eight direct CLI scenarios passed using disposable records and real executables. Product transcripts were captured; no graphical UI changed. Real Claude reached workspace trust, leaving three model-dependent scenarios untested. Labs were removed and no source changes remain.

  • Live validation: ⚠️ inconclusive - 8 of 11 scenarios driven live against the product
Scenario Result Live Evidence
Open an empty backlog and receive entry and return output without a false read error ✅ pass live Direct CLI scenario transcript: Healthy empty backlog
Render recorded tasks, holds, cleared dependencies, green PRs, and dates without modifying inventory records ✅ pass live Direct CLI scenario transcript: Inventory with gates and read-only proof
Render an unreadable backlog with an explicit diagnostic and exit zero ✅ pass live Direct CLI scenario transcript: Unreadable backlog
Show complete next commands once, prefer status commands, and omit truncated commands and open blockers ✅ pass live Direct CLI scenario transcript: Exact next commands and truncation; Return preserves blockers
Enforce the return byte budget including newlines while allowing shorter lines after oversized lines ✅ pass live Direct CLI scenario transcript: UTF-8 byte budget
Offer future dates, register only on request, reject already-due registration, and notify once ✅ pass live Direct CLI scenario transcript: Future-date opt-in and one-shot behavior
Record away words verbatim before printing the inventory and omit that inventory for quiet entry ✅ pass live Direct CLI scenario transcript: Entry records words; Quiet entry
Persist a silent routine outcome and refuse a captain verdict through the routine helper ✅ pass live Direct CLI scenario transcript: Silent routine outcome and rejected authority expansion
Clear a real Claude session and start away supervision despite its stale session sidecar ⏸️ untested no Claude stopped at workspace trust. Accepting would persist configuration outside the permitted boundary. An operator must trust this exact worktree before rerunning.
Receive a model read-back identifying merge permission, advisory checks, dropped instructions, and the three-failure stop ⏸️ untested no The real model session could not proceed past workspace trust. An operator must trust this worktree and rerun the model interaction.
Have main autonomously handle routine notifications silently while preserving captain decisions and merge authority ⏸️ untested no Workspace trust prevented an active primary session. Trust this worktree and rerun with controlled notifications; helper behavior alone does not prove autonomous handling.
Evidence: Direct CLI scenario transcript

Source: Direct CLI scenario transcript

$ ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/bin/fm-lab-home.sh create ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/.l
~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/.l

[exit 0]

=== Healthy empty backlog ===
$ ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/bin/fm-afk-entry-brief.sh
Read-back checklist:
  Name every green pull request and the exact sentence that would permit its merge, or say that "no merges" is a valid reading.
  A named merge still waits while a slower advisory suite has not reported.
  Name any sentence dropped when /afk is sent again with only a stop clause.
  Name any job the inventory shows with 3 or more consecutive failed checks on the same findings, and park that job.

[exit 0]
$ ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/bin/fm-afk-entry-brief.sh not-started

[exit 0]
$ ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/bin/fm-afk-return.sh check
=== Return brief ===
Supervisor health:
  - GAP: the watcher beat was 999999s old at return (grace 300s)
Your instructions:
  (no away-posture record for this window; legacy away flag only)
Waiting on you:
  (nothing)
Tried and failed, or could not be fixed:
  (nothing)
Landed, cleanup due:
  (nothing)
Handled while away:
  0 outcome(s) handled by the away session (0 routine, 0 escalated above)
  (no routine outcomes recorded in the store for this window)
Not started:
  (nothing)
Cost: 0 supervision outcome(s) recorded (0 routine, 0 captain); 0 task(s) live at return.
catch-up health: GAP: the watcher beat was 999999s old at return (grace 300s)
fm-afk-return: catch-up clear; ordinary captain work may proceed

[exit 0]

=== Inventory with gates and read-only proof ===
$ tasks-axi add done-job done-job --file data/backlog.md
ok: added done-job -> Queued
task:
  id: done-job
  title: done-job
  state: queued
  blocked: no
  blocked_by: none
  held: no
  hold_reason: "-"
  hold_kind: "-"
  hold_until: "-"
  kind: task
  repo: "-"
  priority: "-"
  created: 2026-11-06
  closed: "-"
  deps: none
  links: none
  body: ""
help[2]:
  - Run `tasks-axi start done-job --file=data/backlog.md` to move it to in flight
  - Run `tasks-axi block done-job --by <other> --file=data/backlog.md` to record a dependency

[exit 0]
$ tasks-axi add queued-job queued-job --file data/backlog.md
ok: added queued-job -> Queued
task:
  id: queued-job
  title: queued-job
  state: queued
  blocked: no
  blocked_by: none
  held: no
  hold_reason: "-"
  hold_kind: "-"
  hold_until: "-"
  kind: task
  repo: "-"
  priority: "-"
  created: 2026-11-06
  closed: "-"
  deps: none
  links: none
  body: ""
help[2]:
  - Run `tasks-axi start queued-job --file=data/backlog.md` to move it to in flight
  - Run `tasks-axi block queued-job --by <other> --file=data/backlog.md` to record a dependency

[exit 0]
$ tasks-axi add hold-job hold-job --file data/backlog.md
ok: added hold-job -> Queued
task:
  id: hold-job
  title: hold-job
  state: queued
  blocked: no
  blocked_by: none
  held: no
  hold_reason: "-"
  hold_kind: "-"
  hold_until: "-"
  kind: task
  repo: "-"
  priority: "-"
  created: 2026-11-06
  closed: "-"
  deps: none
  links: none
  body: ""
help[2]:
  - Run `tasks-axi start hold-job --file=data/backlog.md` to move it to in flight
  - Run `tasks-axi block hold-job --by <other> --file=data/backlog.md` to record a dependency

[exit 0]
$ tasks-axi add dated-job dated-job --file data/backlog.md
ok: added dated-job -> Queued
task:
  id: dated-job
  title: dated-job
  state: queued
  blocked: no
  blocked_by: none
  held: no
  hold_reason: "-"
  hold_kind: "-"
  hold_until: "-"
  kind: task
  repo: "-"
  priority: "-"
  created: 2026-11-06
  closed: "-"
  deps: none
  links: none
  body: ""
help[2]:
  - Run `tasks-axi start dated-job --file=data/backlog.md` to move it to in flight
  - Run `tasks-axi block dated-job --by <other> --file=data/backlog.md` to record a dependency

[exit 0]
$ tasks-axi add future-job future-job --file data/backlog.md
ok: added future-job -> Queued
task:
  id: future-job
  title: future-job
  state: queued
  blocked: no
  blocked_by: none
  held: no
  hold_reason: "-"
  hold_kind: "-"
  hold_until: "-"
  kind: task
  repo: "-"
  priority: "-"
  created: 2026-11-06
  closed: "-"
  deps: none
  links: none
  body: ""
help[2]:
  - Run `tasks-axi start future-job --file=data/backlog.md` to move it to in flight
  - Run `tasks-axi block future-job --by <other> --file=data/backlog.md` to record a dependency

[exit 0]
$ tasks-axi add retired-job retired-job --file data/backlog.md
ok: added retired-job -> Queued
task:
  id: retired-job
  title: retired-job
  state: queued
  blocked: no
  blocked_by: none
  held: no
  hold_reason: "-"
  hold_kind: "-"
  hold_until: "-"
  kind: task
  repo: "-"
  priority: "-"
  created: 2026-11-06
  closed: "-"
  deps: none
  links: none
  body: ""
help[2]:
  - Run `tasks-axi start retired-job --file=data/backlog.md` to move it to in flight
  - Run `tasks-axi block retired-job --by <other> --file=data/backlog.md` to record a dependency

[exit 0]
$ tasks-axi add short-job short-job --file data/backlog.md
ok: added short-job -> Queued
task:
  id: short-job
  title: short-job
  state: queued
  blocked: no
  blocked_by: none
  held: no
  hold_reason: "-"
  hold_kind: "-"
  hold_until: "-"
  kind: task
  repo: "-"
  priority: "-"
  created: 2026-11-06
  closed: "-"
  deps: none
  links: none
  body: ""
help[2]:
  - Run `tasks-axi start short-job --file=data/backlog.md` to move it to in flight
  - Run `tasks-axi block short-job --by <other> --file=data/backlog.md` to record a dependency

[exit 0]
$ tasks-axi add cut-job cut-job --file data/backlog.md
ok: added cut-job -> Queued
task:
  id: cut-job
  title: cut-job
  state: queued
  blocked: no
  blocked_by: none
  held: no
  hold_reason: "-"
  hold_kind: "-"
  hold_until: "-"
  kind: task
  repo: "-"
  priority: "-"
  created: 2026-11-06
  closed: "-"
  deps: none
  links: none
  body: ""
help[2]:
  - Run `tasks-axi start cut-job --file=data/backlog.md` to move it to in flight
  - Run `tasks-axi block cut-job --by <other> --file=data/backlog.md` to record a dependency

[exit 0]
$ tasks-axi add complete-job complete-job --file data/backlog.md
ok: added complete-job -> Queued
task:
  id: complete-job
  title: complete-job
  state: queued
  blocked: no
  blocked_by: none
  held: no
  hold_reason: "-"
  hold_kind: "-"
  hold_until: "-"
  kind: task
  repo: "-"
  priority: "-"
  created: 2026-11-06
  closed: "-"
  deps: none
  links: none
  body: ""
help[2]:
  - Run `tasks-axi start complete-job --file=data/backlog.md` to move it to in flight
  - Run `tasks-axi block complete-job --by <other> --file=data/backlog.md` to record a dependency

[exit 0]
$ tasks-axi add status-job status-job --file data/backlog.md
ok: added status-job -> Queued
task:
  id: status-job
  title: status-job
  state: queued
  blocked: no
  blocked_by: none
  held: no
  hold_reason: "-"
  hold_kind: "-"
  hold_until: "-"
  kind: task
  repo: "-"
  priority: "-"
  created: 2026-11-06
  closed: "-"
  deps: none
  links: none
  body: ""
help[2]:
  - Run `tasks-axi start status-job --file=data/backlog.md` to move it to in flight
  - Run `tasks-axi block status-job --by <other> --file=data/backlog.md` to record a dependency

[exit 0]
$ tasks-axi block queued-job --by done-job --file data/backlog.md
ok: block queued-job -> blocked-by done-job
help[2]:
  - Run `tasks-axi unblock queued-job --by <other> --file=data/backlog.md` to clear it
  - Run `tasks-axi ready --file=data/backlog.md` to see what is still dispatchable

[exit 0]
$ tasks-axi done done-job --note landed --file data/backlog.md
ok: done done-job -> Done
help[1]:
  - Run `tasks-axi ready --file=data/backlog.md` to dispatch work unblocked by this

[exit 0]
$ tasks-axi done retired-job --note landed --file data/backlog.md
ok: done retired-job -> Done
help[1]:
  - Run `tasks-axi ready --file=data/backlog.md` to dispatch work unblocked by this

[exit 0]
$ ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/bin/fm

... [23013 bytes truncated] ...

ing branch outcome):
catch-up wake: failed-job check failed: three
catch-up wake: green-job done: https://github.com/example/repo/pull/9 checks green
catch-up wake: OPEN DECISIONS (still open, folded from the durable status logs - not just the latest line):
catch-up wake: blocked-job [key=dep] blocked: waiting
catch-up wake: OPEN DECISIONS: close one by answering it: bin/fm-send.sh <task> --resolve-key <key> '<answer>'
fm-afk-return: catch-up clear; ordinary captain work may proceed

[exit 0]

=== UTF-8 byte budget including newline; skip long line and admit shorter ===
$ ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/bin/fm-afk-return.sh check
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
=== Return brief ===
Supervisor health:
  - GAP: the watcher beat was 999999s old at return (grace 300s)
Your instructions:
  (no away-posture record for this window; legacy away flag only)
Waiting on you:
  held in the backlog:
    tasks[2]{id,state,kind,repo,title,hold_kind,hold_reason,hold_until}:
      hold-job,queued,task,"-",hold-job,captain,"Choose the public name","-"
      future-job,queued,task,"-",future-job,future,later,2026-12-01
Tried and failed, or could not be fixed:
  (nothing)
Landed, cleanup due:
  (nothing)
Handled while away:
  1 outcome(s) handled by the away session (1 routine, 0 escalated above)
  1 routine outcome(s) recorded; none were visible.
Not started:
  - z-job: bin/go
  (1 more not shown)
Cost: 1 supervision outcome(s) recorded (1 routine, 0 captain); 2 task(s) live at return.
catch-up health: GAP: the watcher beat was 999999s old at return (grace 300s)
fm-afk-return: catch-up clear; ordinary captain work may proceed

[exit 0]
Measured emitted command bytes: 18; configured budget: 37; multibyte line requires: 38
$ ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/bin/fm-afk-return.sh check
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
=== Return brief ===
Supervisor health:
  - GAP: the watcher beat was 999999s old at return (grace 300s)
Your instructions:
  (no away-posture record for this window; legacy away flag only)
Waiting on you:
  held in the backlog:
    tasks[2]{id,state,kind,repo,title,hold_kind,hold_reason,hold_until}:
      hold-job,queued,task,"-",hold-job,captain,"Choose the public name","-"
      future-job,queued,task,"-",future-job,future,later,2026-12-01
Tried and failed, or could not be fixed:
  (nothing)
Landed, cleanup due:
  (nothing)
Handled while away:
  1 outcome(s) handled by the away session (1 routine, 0 escalated above)
  1 routine outcome(s) recorded; none were visible.
Not started:
  - a-job: bin/fm-send.sh a-job café
  (1 more not shown)
Cost: 1 supervision outcome(s) recorded (1 routine, 0 captain); 2 task(s) live at return.
catch-up health: GAP: the watcher beat was 999999s old at return (grace 300s)
fm-afk-return: catch-up clear; ordinary captain work may proceed

[exit 0]
Measured emitted command bytes: 38; configured budget: 38; multibyte line requires: 38
$ ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/bin/fm-afk-return.sh check
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
=== Return brief ===
Supervisor health:
  - GAP: the watcher beat was 999999s old at return (grace 300s)
Your instructions:
  (no away-posture record for this window; legacy away flag only)
Waiting on you:
  held in the backlog:
    tasks[2]{id,state,kind,repo,title,hold_kind,hold_reason,hold_until}:
      hold-job,queued,task,"-",hold-job,captain,"Choose the public name","-"
      future-job,queued,task,"-",future-job,future,later,2026-12-01
Tried and failed, or could not be fixed:
  (nothing)
Landed, cleanup due:
  (nothing)
Handled while away:
  1 outcome(s) handled by the away session (1 routine, 0 escalated above)
  1 routine outcome(s) recorded; none were visible.
Not started:
  (2 more not shown)
Cost: 1 supervision outcome(s) recorded (1 routine, 0 captain); 2 task(s) live at return.
catch-up health: GAP: the watcher beat was 999999s old at return (grace 300s)
fm-afk-return: catch-up clear; ordinary captain work may proceed

[exit 0]
Measured emitted command bytes: 0; configured budget: 1; multibyte line requires: 38

=== Unreadable backlog preserves exit 0 and does not invent an empty list ===
$ ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/bin/fm-afk-entry-brief.sh
entry inventory: backlog file is unreadable
Live work:
  a-job: working; next: bin/fm-send.sh a-job café
  z-job: working; next: bin/go

Green, waiting on a merge sentence:
  green-job: https://github.com/example/repo/pull/9

Stop point, three failed checks:
  failed-job: 3 consecutive failed checks

Read-back checklist:
  Name every green pull request and the exact sentence that would permit its merge, or say that "no merges" is a valid reading.
  A named merge still waits while a slower advisory suite has not reported.
  Name any sentence dropped when /afk is sent again with only a stop clause.
  Name any job the inventory shows with 3 or more consecutive failed checks on the same findings, and park that job.

[exit 0]
$ ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/bin/fm-afk-entry-brief.sh not-started
  entry inventory: backlog file is unreadable
  - a-job: bin/fm-send.sh a-job café
  - z-job: bin/go

[exit 0]

=== Quiet entry omits away inventory ===
$ ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/bin/fm-afk-launch.sh enter --words stay quiet
Quiet mode recorded at 2026-11-06T00:10:16Z: you are present, so nothing waits for your return: every action you ask for, a local landing or a merge included, proceeds now under ordinary attended authority, and quiet mode changes only which updates reach this conversation. Only an explicit /quiet off ends it.
Quiet mode (recorded):
  entered: 2026-11-06T00:10:16Z
  holds: none - you are present, so nothing waits for your return: every action you ask for, a local landing or a merge included, proceeds now under ordinary attended authority, and quiet mode changes only which updates reach this conversation.
  your words (verbatim):
    stay quiet

[exit 0]
$ ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/bin/fm-afk-return.sh begin
fm-afk-launch: away-posture record archived at ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31/.l/state/afk-contracts/1793923816.afk-contract
fm-afk-launch: away mode stopped; no daemon terminal was running, .afk cleared, and the posture record archived
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
=== Return brief (away 2026-11-06T00:10:16Z -> 2026-11-06T00:10:20Z, 4s) ===
Supervisor health:
  - GAP: the watcher beat was 999999s old at return (grace 300s)
Your instructions:
  your words at entry:
    stay quiet
  the away session took no action under them.
Waiting on you:
  held in the backlog:
    tasks[2]{id,state,kind,repo,title,hold_kind,hold_reason,hold_until}:
      hold-job,queued,task,"-",hold-job,captain,"Choose the public name","-"
      future-job,queued,task,"-",future-job,future,later,2026-12-01
Tried and failed, or could not be fixed:
  (nothing)
Landed, cleanup due:
  (nothing)
Handled while away:
  0 outcome(s) handled by the away session (0 routine, 0 escalated above)
  (no routine outcomes recorded in the store for this window)
Not started:
  - a-job: bin/fm-send.sh a-job café
  - z-job: bin/go
Cost: 0 supervision outcome(s) recorded (0 routine, 0 captain); 2 task(s) live at return.
catch-up health: GAP: the watcher beat was 999999s old at return (grace 300s)
fm-afk-return: catch-up clear; ordinary captain work may proceed

[exit 0]

All direct CLI scenarios passed; no mocked executable was used. Metadata and backlog records were seeded in the disposable lab; no fleet endpoint or forge operation was performed.
Disposable CLI lab removed.
Evidence: Real Claude launch blocked by workspace trust

Source: Real Claude launch blocked by workspace trust

Real Claude launch in a private fm-lab tmux server, 120 columns x 40 rows.

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 Accessing workspace:

 ~/.no-mistakes/worktrees/7f0ec18181b6/01M6Q1S6BCZ3DT0QKMCSE7DG31

 Quick safety check: Is this a project you created or one you trust? (Like your own code, a well-known open source
 project, or work from your team). If not, take a moment to review what's in this folder first.

 Claude Code'll be able to read, edit, and execute files here.

 Security guide

 ❯ No, exit
   Yes, I trust this folder

 Enter to confirm · Esc to cancel
























Private tmux server stopped and disposable lab removed. No trust choice was submitted.
- Outcome: ⚠️ 1 warning across 2 runs (11m34s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 2 issues found → auto-fixed ✅
  • ⚠️ bin/fm-afk-entry-brief.sh:358 - A Next: command taken from a backlog body can come out cut off, and the return brief prints it as the exact next command. tasks-axi list (line 268) and the plain tasks-axi show used before 9f3dac7 both shorten a long body to about 500 characters and add \n... (truncated, N chars total ...). next_in_text then reads the partial line as a real command. I reproduced it: a 480-character body followed by Next: bin/fm-send.sh job-a please continue the work makes not-started print - job-a: bin/fm-send.sh.s, with no error. A cut-off bin/fm-send.sh command looks like a valid instruction, which goes against the intent's 'with the exact next command'. A long body with the Next line at the end loses the command or gets it partly cut. The same cut text shows up at:
  • bin/fm-afk-entry-brief.sh:426 (section_live ; next: in the entry inventory)
  • bin/fm-afk-entry-brief.sh:541 (not_started_lines, used by the return's Not started section, bin/fm-afk-return.sh:706)
    Fix: when TASK_BODY contains the ... (truncated, marker, re-read that one row with fm_backlog_row_show &#34;$DATA&#34; &#34;$id&#34; --full before taking the Next line. Rows that are not truncated keep the single list read. At minimum, never return a Next line that comes right before the truncation marker.
  • ℹ️ bin/fm-afk-return.sh:719 - The Not started budget counts characters, not bytes. The intent says 'The section stays inside its byte budget', but size=${#extra_line} counts characters when the return runs in a UTF-8 locale. The header comment (line 33) also says 'characters'. A line with non-ASCII text, such as a body Next: bin/fm-send.sh job — continue or a non-ASCII backlog diagnostic, uses more bytes than it is charged for, so the section can go over FM_AFK_NOT_STARTED_BUDGET bytes. Fix: count with LC_ALL=C (for example a local LC_ALL=C around the length read, or LC_ALL=C wc -c) and change the header comment to say bytes.

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

⚠️ **Test** - 1 warning
  • ⚠️ bin/fm-afk-entry-brief.sh:232 - A healthy empty backlog produces a spurious error at entry and in the return's Not started section. Real tasks-axi successfully returns count: 0 without a task table, but the parser rejects it as backlog list had no task table. Adding one ordinary task removes the diagnostic without changing configuration. Accept the successful zero-task response as empty, preserve genuine read errors, and add an executable empty-backlog regression. Reproduction: entry-boundaries.txt.
  • 🚨 live validation verdict: no-go (9 of 12 scenarios were driven live against the product); failed: Open a healthy empty backlog and receive an empty inventory without a false read error
  • Live validation: ❌ no-go - 9 of 12 scenarios driven live against the product
Scenario Result Live Evidence
Enter away mode and receive a stable, read-only inventory after verbatim words are recorded ✅ pass live live-cli-transcript.txt
Open a healthy empty backlog and receive an empty inventory without a false read error ❌ fail live entry-boundaries.txt: zero-task response, entry inventory, return brief, and one-task countercheck
Read an unreadable backlog, see its error, exit zero, and preserve its contents ✅ pass live live-cli-transcript.txt
Explicitly register a future-date check, refuse already-due registration, and fire once when due ✅ pass live live-cli-transcript.txt
Omit truncated Next commands while preserving complete commands and status-file precedence ✅ pass live live-cli-transcript.txt: real tasks-axi truncation and inventory/not-started outputs
Record a silent routine outcome, reject captain verdicts and continuations, and persist a captain-owned decision ✅ pass live live-cli-transcript.txt: persisted outcome JSON and held task
Return with exact next commands once, omit open blocked work, and retain catch-up until resolution ✅ pass live live-cli-transcript.txt
Charge UTF-8 commands and newlines by bytes, skip oversized lines, and allow later shorter commands ✅ pass live live-cli-transcript.txt: UTF-8 checks at budgets 1, 59, 60, and 103 bytes
Enter quiet mode without printing the away inventory or changing the recorded words ✅ pass live entry-boundaries.txt
Clear a real Claude session and start away supervision despite the stale session sidecar ⏸️ untested no The real Claude primary stopped at workspace trust. Accepting trust writes user-level configuration outside the permitted boundary. An operator must trust this exact worktree and rerun.
Receive a model read-back covering merge permission, advisory suites, dropped sentences, and the three-failure stop ⏸️ untested no Workspace trust prevented the real primary from reaching a model turn. An operator must trust this exact worktree and rerun; emitted checklist text alone does not prove model behavior.
Have main autonomously handle away notifications silently while preserving decision and merge authority ⏸️ untested no Workspace trust blocked real model execution. Trust this exact worktree and rerun autonomous notification handling; direct outcome-helper checks do not prove autonomous behavior.
  • bash tests/fm-afk-entry-brief.test.sh
  • bash tests/fm-afk-return.test.sh
  • bash tests/fm-afk-main-outcome.test.sh
  • bash tests/fm-claude-stop-autoarm.test.sh
  • python3 ~/.no-mistakes/evidence/01M6Q1S6BCZ3DT0QKMCSE7DG31/live-scenarios.py
  • python3 ~/.no-mistakes/evidence/01M6Q1S6BCZ3DT0QKMCSE7DG31/live-entry-boundaries.py
  • Launched the real Claude CLI in a disposable marked lab using private tmux session primary with a 120×40 grid; captured workspace trust and stopped the private server.
  • git status --short confirmed no worktree changes; disposable labs were removed.

🔧 Fix applied.
1 warning still open:

  • ⚠️ live validation verdict: inconclusive (8 of 11 scenarios were driven live against the product); untested: Clear a real Claude session and start away supervision despite its stale session sidecar, Receive a model read-back identifying merge permission, advisory checks, dropped instructions, and the three-failure stop, Have main autonomously handle routine notifications silently while preserving captain decisions and merge authority
  • Live validation: ⚠️ inconclusive - 8 of 11 scenarios driven live against the product
Scenario Result Live Evidence
Open an empty backlog and receive entry and return output without a false read error ✅ pass live Direct CLI scenario transcript: Healthy empty backlog
Render recorded tasks, holds, cleared dependencies, green PRs, and dates without modifying inventory records ✅ pass live Direct CLI scenario transcript: Inventory with gates and read-only proof
Render an unreadable backlog with an explicit diagnostic and exit zero ✅ pass live Direct CLI scenario transcript: Unreadable backlog
Show complete next commands once, prefer status commands, and omit truncated commands and open blockers ✅ pass live Direct CLI scenario transcript: Exact next commands and truncation; Return preserves blockers
Enforce the return byte budget including newlines while allowing shorter lines after oversized lines ✅ pass live Direct CLI scenario transcript: UTF-8 byte budget
Offer future dates, register only on request, reject already-due registration, and notify once ✅ pass live Direct CLI scenario transcript: Future-date opt-in and one-shot behavior
Record away words verbatim before printing the inventory and omit that inventory for quiet entry ✅ pass live Direct CLI scenario transcript: Entry records words; Quiet entry
Persist a silent routine outcome and refuse a captain verdict through the routine helper ✅ pass live Direct CLI scenario transcript: Silent routine outcome and rejected authority expansion
Clear a real Claude session and start away supervision despite its stale session sidecar ⏸️ untested no Claude stopped at workspace trust. Accepting would persist configuration outside the permitted boundary. An operator must trust this exact worktree before rerunning.
Receive a model read-back identifying merge permission, advisory checks, dropped instructions, and the three-failure stop ⏸️ untested no The real model session could not proceed past workspace trust. An operator must trust this worktree and rerun the model interaction.
Have main autonomously handle routine notifications silently while preserving captain decisions and merge authority ⏸️ untested no Workspace trust prevented an active primary session. Trust this worktree and rerun with controlled notifications; helper behavior alone does not prove autonomous handling.
  • TMPDIR="$PWD/.test-tmp" bash tests/fm-afk-entry-brief.test.sh
  • TMPDIR="$PWD/.test-tmp" bash tests/fm-afk-return.test.sh
  • TMPDIR="$PWD/.test-tmp" bash tests/fm-afk-main-outcome.test.sh
  • TMPDIR="$PWD/.test-tmp" bash tests/fm-claude-stop-autoarm.test.sh
  • python3 ~/.no-mistakes/evidence/01M6Q1S6BCZ3DT0QKMCSE7DG31/drive-cli.py
  • python3 ~/.no-mistakes/evidence/01M6Q1S6BCZ3DT0QKMCSE7DG31/drive-claude.py — private tmux server with a 120×40 terminal
  • Removed disposable labs and temporary test files; confirmed a clean working tree.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Open live checks

These three checks still need a real attended session. They are not a defect in this change.

  • Clear a real Claude session and start away supervision despite its stale session sidecar
  • Receive a model read-back identifying merge permission, advisory checks, dropped instructions, and the three-failure stop
  • Have the main session handle routine notifications silently while preserving decisions and merge authority

peterOC26 and others added 14 commits November 5, 2026 17:08
The Stop hook skipped the supervision host when a leftover away flag
stood on a host home. The failing case is a live lock in this process,
a new session id, a stale sidecar, and that flag beside an away record.
Ancestry without the flag already started the host. The hook now starts
the host, re-anchors the sidecar, and records that the away session did
not start when the host program itself is missing.

Away entry prints a read-only inventory of live work, holds, cleared
blockers, green pull requests, passed and future dates, and a stop
point of three failed checks, plus the read-back checklist. It arms a
liveness check that stays quiet until the window has elapsed, then
names a silent window once and an open blocker that had no handling
and no hand-back once. The return brief repeats those lines and lists
the work that was not started. When no away session is running, main
records one routine outcome per handled event and keeps the existing
merge, spawn, and decision gates.

Follow-ups: standing away words still wait for a choice. A Jobs page
note that ends away mode is already in review at
#42.
Name an unreadable backlog in the Not started section instead of an empty
list. List each live explicit next command once, and leave held rows without
that command in Waiting on you. Key a future-date check on the task and its
hold date so a later deferral fires again. Read the backlog once per render.
@peterOC26 peterOC26 changed the title fix: restore away supervision continuity and report pending work fix: improve away-mode startup and work reporting Nov 6, 2026
@peterOC26
peterOC26 merged commit 9213065 into main Nov 6, 2026
22 checks passed
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.

1 participant