Skip to content

fix: remind supervisors to refresh backlog after teardown - #32

Merged
kunchenguid merged 2 commits into
mainfrom
fm/fm-teardown-reminder-r3
Jun 21, 2026
Merged

kunchenguid merged 2 commits into
mainfrom
fm/fm-teardown-reminder-r3

Conversation

@kunchenguid

Copy link
Copy Markdown
Owner

Intent

Add a plain backlog-refresh reminder to firstmate so queued-item readiness stops going stale. The requested scope is intentionally minimal: after successful fm-teardown.sh completion, print a plain stdout reminder telling the supervisor to update data/backlog.md, move the finished id to Done, keep Done to the 10 most recent, re-scan Queued for items unblocked by the finished id or now time-due, and dispatch ready work. Also tighten one AGENTS.md backlog/supervision line to explicitly include time/date-gated queued items whose date has arrived. Do not add grep or auto-scan logic, structured ready-when or blocked-by machine fields, cron jobs, or new scripts.

What Changed

  • Updates bin/fm-teardown.sh to print a post-teardown reminder to refresh data/backlog.md, prune Done entries, re-scan queued work, and dispatch anything ready.
  • Tightens firstmate supervision docs in AGENTS.md to call out time/date-gated queued items whose date has arrived.
  • Keeps the README teardown guidance aligned with the new backlog-refresh reminder.

Risk Assessment

✅ Low: Captain, the change is a narrow reminder/documentation update that runs only after the existing teardown path succeeds and does not alter teardown safety logic.

Testing

Captain, I inspected the intent, ran the existing shell behavior tests, then exercised the successful fm-teardown.sh path with reviewer-visible stdout evidence; stderr was empty, transient worktree fixtures were removed, and the working tree was clean afterward.

Evidence: fm-teardown reminder transcript

$ bin/fm-teardown.sh test-backlog-r3 teardown test-backlog-r3 complete ... 🌱 Backlog: test-backlog-r3 just finished. Update data/backlog.md - move test-backlog-r3 to Done (keep Done to the 10 most recent), then re-scan Queued for items now unblocked ... or now time-due, and dispatch what's ready.

$ bin/fm-teardown.sh test-backlog-r3
teardown test-backlog-r3 complete (window fm-test-backlog-r3, worktree /Users/kunchen/.no-mistakes/worktrees/016d88035d58/01KVNPEVJAYB1NBBC5A3KT98YG/.test-tmp/test-backlog-r3/worktree)
🌱 Backlog: test-backlog-r3 just finished. Update data/backlog.md - move test-backlog-r3 to Done (keep Done to the 10 most recent), then re-scan Queued for items now unblocked (a "blocked-by: test-backlog-r3" may have just cleared) or now time-due, and dispatch what's ready.
$ test ! -e state/test-backlog-r3.meta && echo "state cleanup: meta removed"
state cleanup: meta removed
$ cat .test-tmp/test-backlog-r3/treehouse-call.log
treehouse return --force /Users/kunchen/.no-mistakes/worktrees/016d88035d58/01KVNPEVJAYB1NBBC5A3KT98YG/.test-tmp/test-backlog-r3/worktree
Evidence: AGENTS backlog instruction snippet

AGENTS.md line 489: Re-evaluate Queued on every teardown and every heartbeat: anything whose blocker is gone gets dispatched, and time/date-gated items whose date has arrived get dispatched too.

   473	`data/backlog.md` is the durable queue.
   474	Update it on every dispatch, completion, and decision.
   475	
   476	`` `markdown
   477	## In flight
   478	- [ ] <id> - <one line> (repo: <name>, since <date>)
   479	
   480	## Queued
   481	- [ ] <id> - <one line> (repo: <name>) blocked-by: <id> - <reason>
   482	
   483	## Done
   484	- [x] <id> - <one line> - <https://github.com/owner/repo/pull/number> (merged <date>)
   485	- [x] <id> - <one line> - local main (merged <date>)
   486	- [x] <id> - <one line> - data/<id>/report.md (reported <date>)
   487	`` `
   488	
   489	Re-evaluate Queued on every teardown and every heartbeat: anything whose blocker is gone gets dispatched, and time/date-gated items whose date has arrived get dispatched too.
   490	
   491	Keep Done to the 10 most recent entries; prune older ones whenever you add to the section.

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • tests/fm-wake-queue.test.sh
  • Created a temporary scout-style teardown fixture for test-backlog-r3, ran bin/fm-teardown.sh test-backlog-r3 with a fake treehouse return --force on PATH, captured stdout/stderr, and grepped stdout for the completion line plus the Done pruning, blocked-by, time-due, and dispatch reminder text.
  • nl -ba AGENTS.md | sed -n &#39;473,491p&#39; &gt; /var/folders/5x/4nqprlbx0518k3ybcb1sz6gr0000gn/T/no-mistakes-evidence/01KVNPEVJAYB1NBBC5A3KT98YG/agents-backlog-instruction.txt plus a targeted grep -F for the time/date-gated queued-item instruction.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@kunchenguid
kunchenguid merged commit 15812b5 into main Jun 21, 2026
4 checks passed
@kunchenguid
kunchenguid deleted the fm/fm-teardown-reminder-r3 branch June 21, 2026 18:28
This was referenced Aug 7, 2026
iscooter added a commit to iscooter/firstmate that referenced this pull request Sep 21, 2026
…gates

Fourteen tasks, TDD throughout. Task 0 captures the real PRs kunchenguid#27, kunchenguid#32
and kunchenguid#37 as fixtures first, so every gate is written against genuine
GitHub payloads rather than imagined ones — those three give a full
pass, a classification rejection, and a non-bot rejection.

Task 1 proves the deploy gate by breaking the rules file on purpose and
watching the build fail, rather than asserting it works.

Glob matching gets its own task: only three pattern forms are used, so
a dependency is not worth it, but a subtly wrong inlined matcher fails
open on exactly the path rules that matter.

Rendering is split from the gate logic because PLAT-1190's readability
criterion is a human judgement and deserves its own review surface —
Task 8 ends by printing all three rationales to read as a stranger.

Co-Authored-By: Claude Opus 5 <[email protected]>
iscooter added a commit to iscooter/firstmate that referenced this pull request Sep 21, 2026
Six tasks, one per fix plus a regression pin and QA confirmation.
Written against v1.5.0's actual code - the exact line being replaced in
each of the three functions is quoted, so the implementer is editing
what is there rather than what a spec imagined.

The load-bearing test is the conclusion table: all eight of GitHub's
check conclusions asserted into exactly one bucket, so a future added
value surfaces as a failure rather than silently grading low.

Task 5 pins PR kunchenguid#27 and kunchenguid#32's verdicts explicitly. Every fix here makes
the service stricter, and a stricter service that flips the one pull
request demonstrating a pass has broken something - the plan says to
treat that as the fix being wrong, not the fixture.

Task 6 Step 3 warns that the risk grade may legitimately move if a
scanner came back cancelled this run. That is the A1 fix working, and
without the warning it reads as a regression.

Co-Authored-By: Claude Opus 5 <[email protected]>
NewAiCoder added a commit to NewAiCoder/firstmate that referenced this pull request Sep 26, 2026
…tream-4

feat(bin): merge upstream firstmate into fork main
fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 2, 2026
…s. (kunchenguid#32)

A sampled profile may outrank an earlier unsampled one only when density > 0; clamp scout-tax rate to 0-100 and document the spawn-side --task-type write half.
@Light-code11

Copy link
Copy Markdown

Also in this PR: flaky e2e fix from #36

apps/web/src/routes/lineup-layout.e2e.ts ("a wide line-up"), added by #36, checked right.isEnabled() and then clicked; the scroll could reach the end and disable the arrow in between, so click() waited on a disabled button until the 420 s test timeout (CI run 42333448466). The loop now clicks only while the arrow is enabled, with a 1 s click timeout inside a retrying toPass, and still asserts the arrow ends disabled, the last recording is in view and "–N of N" shows (commit 7ee22ea). Test-only; no product change.

fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 18, 2026
….2 at medium effort (kunchenguid#32)

* feat(bin): add a fable primary profile that launches Fable 5.2 at medium effort

firstmate fable resolves to the new claude-fable52 profile, which runs the
same Claude launch path as claude-fable (exports, role, account pinning,
preflight, starter settings, FM_PRIMARY_HARNESS=claude and so the status
bar) with model claude-fable-5-2 at a fixed medium effort that
config/primary-effort does not change. Primary handoff recognises the new
profile and its alias on the claude CLI and Fable quota window.

* no-mistakes(document): Name the profiles that read primary-effort in launcher header
@aaarrmiinnn

Copy link
Copy Markdown

Gates run by hand, since gates.yml runs from main on GitHub's runners and cannot start until this lands.
Same as the workflow: main's copy (ba8899d, npm ci --ignore-scripts), this PR's file list from the API, its labels infra, checks, head 9b70d74.

checks-separation: passed (exit 0)

This is a `checks` pull request. A code owner must approve these check changes:
  modified: .github/workflows/ci.yml
  modified: .github/workflows/gates.yml
  modified: web/src/kit/kit.test.tsx

reliability: passed (exit 0)

Reliability checklist: no items apply to this change.

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