Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .agents/skills/captain-hold-lifecycle/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The originating investigation or review is never its own inventory entry, so hol
Put the question and its options in the hold reason, and keep one held task per genuine gate: a multi-question review is one held task pointing at its report, not a row per question. Represent that task with exactly one board card that consolidates its questions and options; never fan one task id into duplicate same-key cards.
Register or re-hold through `bin/fm-captain-hold.sh hold`, which is idempotent per task id.
After inventorying the whole report and review surface, run `bin/fm-captain-hold.sh complete` with every captain-held task id, or with `--none` only when the reviewed surface leaves nothing waiting on the captain.
A scout that may not write that backlog reports to firstmate rather than writing metadata or backlog records, naming each open captain call with its question and options in its report and the status it appends so firstmate can hold each one before running `complete`.
A completed investigation and an ended visual review use this same owner and completion command; a visual tool, including Lavish, never owns a parallel completion policy.
Run the command in the originating work's authoritative `FM_HOME`; secondmate-owned work registers in that secondmate home's backlog, and a question already held anywhere is never re-registered as a second row.
Do not close a captain-held task merely because the originating investigation completed, its report was archived, its visual review ended, or its task was torn down.
Expand Down
2 changes: 2 additions & 0 deletions bin/fm-brief.sh
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,8 @@ Write your findings to \`$DATA/$ID/report.md\`.
The report must stand alone: what you did, what you found, the evidence (commands run, output, file:line references), and what you recommend.
$LAVISH_LINE
Before reporting done, read and follow \`$FM_ROOT/.agents/skills/captain-hold-lifecycle/SKILL.md\` and pass its shared completion gate for the report and any visual review.
If any captain call remains, name each one with its question and options in the report and in your done status, so firstmate can hold each one before running \`complete\` for you.
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Resolved
End the report with an "Open decisions: options and my pick" section: each open decision, its options, your pick with one reason, and which ones only the captain can make; write "None" when there are none.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Open calls miss the status

The scout brief now requires each open question and its options only in the report. The next line still allows a done status with just a “one-line conclusion.” A scout can therefore finish without including those details in the status that wakes firstmate.

This violates the repository directive to meet the accepted Intent, which explicitly requires the questions and options in both places. Restore that status requirement and its test, while making clear that firstmate owns registration and completion.

Context Used: If there is a VISION.md file at the root of the repo, the PR must not conflict / diverge / drift from it. If the PR description has an "Intent" section, respect that as the accepted user intent. - Do make comments if anything in the implementation ... (source)

Fix in Codex

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This follows the 2026-10-30 review on this PR: upstream main (#7875) now has the scout ask the supervisor to register its open captain calls before it reports done, so the status line was dropped on purpose. The description's Intent section now states only the current scope.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed—the earlier comment relied on the previous handoff design. With upstream #7875, the scout asks firstmate to register and attest any non-empty captain-call inventory before reporting done; the done status line does not need to repeat the questions and options. This PR's report section is consistent with the updated scope, so my prior finding no longer applies.

Tip: You can customize Greptile's behavior for this repo with .greptile/rules.md and .greptile/config.json.

When the report is complete, append \`done [at=<epoch>]: {one-line conclusion}\` to the status file and stop.
If your findings reveal work that should ship (e.g. you reproduced a bug and the fix is clear), say so in the report; firstmate may promote this task in place, and you would then receive mode-specific ship instructions as a follow-up message.
EOF
Expand Down
4 changes: 4 additions & 0 deletions tests/fm-brief.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,10 @@ test_scout_and_secondmate_load_decision_hold_policy() {
"scout brief did not load the captain-call policy before done"
assert_grep "pass its shared completion gate for the report and any visual review" "$scout" \
"scout brief did not cross-reference visual-review completion"
assert_grep 'End the report with an "Open decisions: options and my pick" section' "$scout" \
"scout brief did not ask the report to end with its open decisions"
assert_grep 'If any captain call remains, name each one with its question and options in the report and in your done status, so firstmate can hold each one before running' "$scout" \
"scout was not told to hand each open captain call to firstmate"
FM_HOME="$home" FM_ROOT_OVERRIDE="$ROOT" FM_SECONDMATE_CHARTER='sample reviews' \
"$ROOT/bin/fm-brief.sh" sample-mate --secondmate --no-projects >/dev/null 2>&1
charter="$home/data/sample-mate/brief.md"
Expand Down