Skip to content

feat(cli): show a bounded work overview at session start - #15

Merged
Ivory2024 merged 4 commits into
mainfrom
fm/firstmate-session-start-work-overview-20260923
Sep 23, 2026
Merged

Ivory2024 merged 4 commits into
mainfrom
fm/firstmate-session-start-work-overview-20260923

Conversation

@Ivory2024

Copy link
Copy Markdown
Owner

Intent

Firstmate 상태를 읽기 전용으로 요약해 세션 시작 화면에 보여주는 방안을 권고. 이것도 착수해

What Changed

  • Show up to five completed backlog rows in the session-start work overview and report how many were omitted.
  • Keep active, held, and blocked work visible, bound ready queued rows, and clarify that ready display order is not a priority ranking.
  • Document FM_SESSION_START_DONE_LIMIT and update the session-start coverage for both tasks-axi and manual rendering.

Risk Assessment

✅ Low: The change adds a bounded, read-only completed-work summary while preserving the existing limits on queued work and task bodies.

Testing

Drove the real session-start CLI against installed tasks-axi with four completed entries and a limit of two; the overview showed the two latest entries, reported two omitted, and emitted no shell error. Saved the rendered CLI excerpt as evidence. No UI surface was involved.

  • Live validation: ✅ go - 2 of 2 scenarios driven live against the product
Scenario Result Live Evidence
Limit completed history and disclose the omitted count without a shell error ✅ pass live Live session-start completed-task overview
Show recent completed items in the session-start overview ✅ pass live Live session-start completed-task overview
Evidence: Live session-start completed-task overview

Source: Live session-start completed-task overview

work at a glance (tasks-axi; every in-flight, held, and blocked row shown in full; ready queued bounded to 20; completed bounded to 2; ready display order is not a priority ranking; task bodies omitted)

in flight:
count: 0
tasks: 0 in_flight tasks in this backlog

held (captain- or time-gated; an in-flight item that is also held appears in both groups):
count: 0
tasks: 0 held tasks in this backlog

blocked queued:
count: 0
tasks: 0 blocked queued tasks in this backlog

ready queued (dispatchable now; displayed order is not a priority ranking):
count: 0
ready: 0 unblocked queued tasks
ready_public_followups: 0 delivery-ready obligations

completed (bounded):
count: 2 of 4 total
tasks[2]{id,state,kind,repo,title,blocked_by,hold_kind,hold_reason}:
  done-a,done,task,"-",Completed A,none,"-","-"
  done-b,done,task,"-",Completed B,none,"-","-"
(2 completed row(s) omitted)
Full task bodies remain available on demand: bin/fm-tasks-axi.sh show <id> --full when compatible tasks-axi is available, or data/backlog.md.
- Outcome: 🔧 2 issues found → auto-fixed ✅ across 2 runs (6m21s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

🔧 **Test** - 2 issues found → auto-fixed ✅
  • 🚨 bin/fm-session-start.sh:518 - With four completed tasks and FM_SESSION_START_DONE_LIMIT=2, the live command emits count: 2 of 4 total, then line 518 compares the unnormalized value 2of4total as an integer. The omitted-completions notice is skipped and a shell error leaks into the session-start digest. Parse the actual total from tasks-axi's count field before calculating the remainder.
  • 🚨 live validation verdict: no-go (2 of 2 scenarios were driven live against the product); failed: Limit completed history and disclose the omitted count without a shell error
  • Live validation: ❌ no-go - 2 of 2 scenarios driven live against the product
Scenario Result Live Evidence
Start a session with recent completed work and see it in the bounded overview ✅ pass live Live command output: exit=0, completed section and recent completed task rendered using installed tasks-axi.
Limit completed history and disclose the omitted count without a shell error ❌ fail live session-start-bounded-overview.txt: live run with 4 completed tasks and limit 2 shows count: 2 of 4 total, then 2of4total: integer expected; no omitted-count notice appears.
  • FM_HOME=<isolated worktree fixture> FM_ROOT_OVERRIDE=$PWD FM_SESSION_START_TIMEOUT=30 bin/fm-session-start.sh
  • FM_HOME=<isolated worktree fixture> FM_ROOT_OVERRIDE=$PWD FM_SESSION_START_TIMEOUT=30 FM_SESSION_START_DONE_LIMIT=2 bin/fm-session-start.sh --reemit
  • Confirmed the transient fixture was removed; worktree has no remaining test changes.

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

  • Live validation: ✅ go - 2 of 2 scenarios driven live against the product
Scenario Result Live Evidence
Limit completed history and disclose the omitted count without a shell error ✅ pass live Live session-start completed-task overview
Show recent completed items in the session-start overview ✅ pass live Live session-start completed-task overview
  • Ran bin/fm-session-start.sh with an isolated worktree-local home, installed tasks-axi, and FM_SESSION_START_DONE_LIMIT=2 against four completed backlog entries.
  • Captured the rendered overview and checked stderr; removed the temporary home.
✅ **Document** - passed

✅ No issues found.

🔧 **Lint** - 1 issue found → auto-fixed ✅
  • ⚠️ linter found issues (exit code 1)

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

✅ **Push** - passed

✅ No issues found.

@Ivory2024
Ivory2024 merged commit e94f191 into main Sep 23, 2026
19 checks passed
Ivory2024 added a commit that referenced this pull request Oct 7, 2026
* feat: show bounded session-start work overview

* no-mistakes(test): Parse tasks-axi totals; bounded completion notice verified

* no-mistakes(document): Document bounded session-start completion summary

* no-mistakes(lint): Fix ShellCheck parsing of completed backlog listing

---------

Co-authored-by: irene <irene@ireneui-MacBookPro.local>
Ivory2024 added a commit that referenced this pull request Oct 7, 2026
* feat: show bounded session-start work overview

* no-mistakes(test): Parse tasks-axi totals; bounded completion notice verified

* no-mistakes(document): Document bounded session-start completion summary

* no-mistakes(lint): Fix ShellCheck parsing of completed backlog listing

---------

Co-authored-by: irene <irene@ireneui-MacBookPro.local>
@Ivory2024
Ivory2024 deleted the fm/firstmate-session-start-work-overview-20260923 branch October 10, 2026 12:35
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