Repository navigation
feat: add supervised worktrees to Agenttrail Kitchen - #22
Merged
Ivory2024 merged 6 commits intoSep 25, 2026
Merged
Conversation
added 6 commits
September 25, 2026 13:10
Ivory2024
added a commit
that referenced
this pull request
Oct 7, 2026
* feat(bin): add Agenttrail Kitchen worktree helper * no-mistakes(review): Filter valid distinct worktrees before applying the cap * no-mistakes(review): Include secondmate child worktrees in dashboard selection * no-mistakes(review): Lift snapshot bounds before selecting supervised worktrees * no-mistakes(test): Bind snapshot paths in helper jq selection * no-mistakes(document): Document Agenttrail Kitchen helper --------- Co-authored-by: irene <irene@ireneui-MacBookPro.local>
Ivory2024
added a commit
that referenced
this pull request
Oct 7, 2026
* feat(bin): add Agenttrail Kitchen worktree helper * no-mistakes(review): Filter valid distinct worktrees before applying the cap * no-mistakes(review): Include secondmate child worktrees in dashboard selection * no-mistakes(review): Lift snapshot bounds before selecting supervised worktrees * no-mistakes(test): Bind snapshot paths in helper jq selection * no-mistakes(document): Document Agenttrail Kitchen helper --------- Co-authored-by: irene <irene@ireneui-MacBookPro.local>
Ivory2024
deleted the
fm/firstmate-agenttrail-kitchen-autowatch-helper
branch
October 10, 2026 12:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Build a helper so every worktree firstmate is currently supervising can be added to the
agenttrail-kitchendashboard on demand, without hand-specifying each project path one at a time.What Changed
Risk Assessment
✅ Low: The helper filters missing worktrees, deduplicates before applying the confirmed 12-project cap, includes secondmate child worktrees, and refuses snapshots that disclose relevant omissions; the changed tests exercise the selector’s observable output.
Testing
Ran the focused selection test, covering the 12-project cap, priority ordering, unusable and duplicate paths, and composite child IDs. Checked for the Herdr executable and found it unavailable. Did not run the helper against live fleet state or launch the dashboard, and gathered no reviewer-visible live artifact.
herdrexecutable is missing from PATH, preventing setup of the required isolated named Herdr lab session. Make Herdr available on PATH in this environment, then rerun through `bin/fm-herdr-lab.s…herdrexecutable is missing from PATH, preventing the required live isolated lab run. Make Herdr available on PATH and rerun throughbin/fm-herdr-lab.sh.herdrexecutable is missing from PATH, preventing the required live isolated lab run. Make Herdr available on PATH and rerun throughbin/fm-herdr-lab.sh.Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed (3) ✅
bin/fm-agenttrail-kitchen.sh:26- The helper caps task rows at 12 before validating or deduplicating worktree paths, so a missing path or multiple tasks sharing one path can consume slots and exclude another existing worktree. This also contradicts the required criterion: “every worktree firstmate is currently supervising can be added.” The conflicting implementation is the 12-project cap and.[0:$limit]selection (lines 5, 26–29), applied before path checks at lines 52–62. Please confirm whether 12 is a required Agenttrail Kitchen limit; otherwise the selection needs to include every distinct existing supervised worktree.🔧 Fix applied.
2 errors still open:
bin/fm-agenttrail-kitchen.sh:26- The helper caps task rows at 12 before validating or deduplicating worktree paths, so a missing path or multiple tasks sharing one path can consume slots and exclude another existing worktree. This also contradicts the required criterion: “every worktree firstmate is currently supervising can be added.” The conflicting implementation is the 12-project cap and.[0:$limit]selection (lines 5, 26–29), applied before path checks at lines 52–62. Please confirm whether 12 is a required Agenttrail Kitchen limit; otherwise the selection needs to include every distinct existing supervised worktree.bin/fm-agenttrail-kitchen.sh:65- The helper still omits active child worktrees supervised through secondmates. The required criterion is “every worktree firstmate is currently supervising can be added.”fm-bearings-snapshot.sh --all-in-flightrepresents those children with composite IDs such assecondmate-id/child-id, while itspathsarray contains only top-level task IDs. This lookup therefore finds no path for those children, and the helper never passes them to Agenttrail Kitchen. The round-2 path-filtering fix did not address this sibling representation. Confirm whether secondmate-supervised worktrees are included in the requirement; if so, the input must provide their paths and the helper must map them before selection. Related site:bin/fm-agenttrail-kitchen.sh:62(task lookup by child ID).🔧 Fix applied.
3 errors still open:
bin/fm-agenttrail-kitchen.sh:26- The helper caps task rows at 12 before validating or deduplicating worktree paths, so a missing path or multiple tasks sharing one path can consume slots and exclude another existing worktree. This also contradicts the required criterion: “every worktree firstmate is currently supervising can be added.” The conflicting implementation is the 12-project cap and.[0:$limit]selection (lines 5, 26–29), applied before path checks at lines 52–62. Please confirm whether 12 is a required Agenttrail Kitchen limit; otherwise the selection needs to include every distinct existing supervised worktree.bin/fm-agenttrail-kitchen.sh:65- The helper still omits active child worktrees supervised through secondmates. The required criterion is “every worktree firstmate is currently supervising can be added.”fm-bearings-snapshot.sh --all-in-flightrepresents those children with composite IDs such assecondmate-id/child-id, while itspathsarray contains only top-level task IDs. This lookup therefore finds no path for those children, and the helper never passes them to Agenttrail Kitchen. The round-2 path-filtering fix did not address this sibling representation. Confirm whether secondmate-supervised worktrees are included in the requirement; if so, the input must provide their paths and the helper must map them before selection. Related site:bin/fm-agenttrail-kitchen.sh:62(task lookup by child ID).bin/fm-agenttrail-kitchen.sh:51- The current--all-in-flightcall still inherits snapshot bounds for registered secondmates and each secondmate’s active children. With more than 20 registered secondmates, or more than 20 active children in a home, later supervised worktrees are absent from.in_flightand.paths; if earlier entries have no usable worktree, they cannot fill an available slot. The helper also ignores the snapshot’somittedindicators, so this omission is silent. This contradicts the required criterion: “every worktree firstmate is currently supervising can be added.” Changed sites:bin/fm-agenttrail-kitchen.sh:51(bounded snapshot call and ignored omissions);bin/fm-bearings-snapshot.sh:646(paths only cover the bounded active-child list). Please authorize how this helper should obtain an unbounded candidate set while retaining the confirmed 12-project limit.🔧 Fix applied.
✅ Re-checked - no issues remain.
bin/fm-agenttrail-kitchen.sh- The helper’s real--dry-runfails while building the candidate list: jq reports$paths is not defined, then the helper exits with “no existing in-flight worktrees to add.” This blocks demonstrating the requested on-demand dashboard workflow.tests/fm-agenttrail-kitchen.test.shbin/fm-agenttrail-kitchen.sh --dry-run🔧 Fix applied.
2 warnings still open:
bin/fm-agenttrail-kitchen.sh- The live helper workflow could not be demonstrated.herdris not on PATH, so I could not provision the required named lab session. Running the helper against live fleet state would not provide the required isolated environment. Provide a Herdr executable on PATH in this environment and rerun the live validation.herdrexecutable is missing from PATH, preventing setup of the required isolated named Herdr lab session. Make Herdr available on PATH in this environment, then rerun through `bin/fm-herdr-lab.s…herdrexecutable is missing from PATH, preventing the required live isolated lab run. Make Herdr available on PATH and rerun throughbin/fm-herdr-lab.sh.herdrexecutable is missing from PATH, preventing the required live isolated lab run. Make Herdr available on PATH and rerun throughbin/fm-herdr-lab.sh.tests/fm-agenttrail-kitchen.test.sh✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.