Skip to content

Add PR comment watchers - #182

Closed
jack-michaud wants to merge 10 commits into
kunchenguid:mainfrom
jack-michaud:fm/pr-comment-watchers
Closed

jack-michaud wants to merge 10 commits into
kunchenguid:mainfrom
jack-michaud:fm/pr-comment-watchers

Conversation

@jack-michaud

@jack-michaud jack-michaud commented Jul 2, 2026 •

Copy link
Copy Markdown

Summary

  • add portable PR comment watcher commands for enabling/disabling all PR-linked tasks or individual tasks
  • poll issue comments, review comments, and review bodies with persisted dedupe, bounded round-robin checks, stale lock recovery, and safe single-line untrusted-feedback injection
  • document usage and Pi interaction, plus smoke coverage for priming, dedupe, disabling, safe state, generated check shims, and bounded polling

PR routing

  • Base: kunchenguid/firstmate:main
  • Head: jack-michaud/firstmate-fork:fm/pr-comment-watchers
  • This is intentionally a fork-to-upstream PR; jack-michaud does not have permission to push branches directly to kunchenguid/firstmate.

Validation

  • no-mistakes: review, test, document, and lint steps completed locally through the gate, but the gate's final upstream push failed because jack-michaud cannot push branches directly to kunchenguid/firstmate.
  • local full test suite: for t in tests/*.test.sh; do bash "$t"; done
  • targeted smoke: bash -n bin/fm-pr-comments.sh bin/fm-pr-comments-poll.sh && ./tests/fm-pr-comments.test.sh
  • shellcheck: not available locally; CI lint previously reported shellcheck findings, which were fixed in the latest fork commit.

Current CI / workflow state

This PR is not ready/green.

The fork PR initially required maintainer workflow approval. After approval, GitHub ran the workflows on the earlier commit: behavior tests and invariants passed, lint failed, and the no-mistakes-required workflow failed because this PR body was not generated by a successful upstream git push no-mistakes PR creation.

The latest fork commit fixes the reported shellcheck findings. At the time of this update, GitHub has not attached new check runs to the latest head SHA yet. A maintainer/admin needs to ensure the fork workflow runs are approved/rerun for the latest commit. Separately, the Require no-mistakes workflow will need an authorized upstream no-mistakes submission or a maintainer/admin policy exception for this fork PR, because this contributor cannot push the no-mistakes branch to the upstream repository.

@kunchenguid

Copy link
Copy Markdown
Owner

thanks for this. quick note on process - i require PRs to come through no-mistakes, which is why the "PR must be raised via no-mistakes" check is red here (this was opened directly).

the reason i ask for it: no-mistakes runs review, tests, lint, and docs on your branch before the PR is opened, so contributions arrive already validated. that keeps the quality bar high and keeps me from having to hand-review every change - i maintain this solo, so it's the only way i keep up.

can you re-raise it through no-mistakes? running the pipeline on your branch opens/updates the PR through the gate and turns that check green. the change looks useful, it just needs to come through that path. ping me if the setup gives you trouble.

@jack-michaud

Copy link
Copy Markdown
Author

Closing: this change should be reviewed against the captain fork (jack-michaud/firstmate), not upstream kunchenguid/firstmate.

@jack-michaud

Copy link
Copy Markdown
Author

thanks for this. quick note on process - i require PRs to come through no-mistakes, which is why the "PR must be raised via no-mistakes" check is red here (this was opened directly).

the reason i ask for it: no-mistakes runs review, tests, lint, and docs on your branch before the PR is opened, so contributions arrive already validated. that keeps the quality bar high and keeps me from having to hand-review every change - i maintain this solo, so it's the only way i keep up.

can you re-raise it through no-mistakes? running the pipeline on your branch opens/updates the PR through the gate and turns that check green. the change looks useful, it just needs to come through that path. ping me if the setup gives you trouble.

I wanted to come back here as a human, to thank you for your response @kunchenguid! I am maintaining a personal fork, but will contribute this upstream (and of course use the no-mistakes pipeline). No mistakes works on my machine fine so this shouldn't be a problem.

I'm a big fan of your videos and your journey. Keep it up!

fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 2, 2026
…hout an away record (kunchenguid#182)

* fix(bin): point the claude-opus primary profile at Opus 5.5

Audit report fm-instruction-pruning-audit-p1, item 1 and Decision 1 A:
bin/fm-primary.sh still launched claude-opus-5, so `firstmate opus` started
the superseded model while every worker's `opus` alias already resolves to
Opus 5.5.

* fix(afk): let /quiet enter without an away-posture record

Audit report fm-instruction-pruning-audit-p1, table C row quiet/SKILL.md:26-33,50-53.
The quiet skill pointed at afk sections that no longer exist, and the
launcher's confirmed-record requirement refused every quiet entry, so /quiet
could only fail or write an away mandate for a captain who is present.
A quiet entry (FM_AFK_MODE=quiet, or a bare refresh of an on-disk quiet flag)
now needs no record, an away entry still does, and Pi names why quiet mode is
unavailable there. The skill's entry and exit steps follow the current afk
skill.

* fix(skills): correct stale and wrong instructions the model-change audit found

Audit report fm-instruction-pruning-audit-p1, table C and C2 correctness rows:
- firstmate-orca: point supervision at the emitted protocol instead of a hand-armed fm-watch.sh.
- quota-array-dispatch: the helper section's two "above" pointers now say "below".
- fmx-respond: gather fleet state from fm-bearings-snapshot.sh and fm-crew-state.sh, not raw status lines or the backlog file.
- harness-adapters cursor reference: drop the Grok 4.5-era observed list and update the example id.
- harness-adapters: complete the worker-only list with Rovo and prime-agent and drop the partial repeat.
- supervision protocols: print repository-root doc paths instead of links relative to docs/supervision-protocols/, with a rendering regression test.

* docs: remove fork-owned repeats and drift the model-change audit found

Audit report fm-instruction-pruning-audit-p1, table B fork-owned rows and table C/D fork rows:
- AGENTS.md: drop the second config/crew-dispatch.json entry and the section 7 copies of the adhd-auto-fire and second-opinion-auto-fire triggers that section 13 owns, and stop copying Kimi and prime-agent version evidence the harness references own.
- quota-array-dispatch: state the no-rebuild rule once and drop the repeated eligibility and hand-comparison lines.
- afk: drop the injection-hardening bullets that restate the busy/composer guard, max-defer escape and submit model sections, and the copies of the never-pre-authorizable rule the approval-authority section owns.
- bearings: condense the Recently Landed cap explanation and drop the Supervision discipline section that repeats the read-only boundary.
- kimi protocol: add the wake acknowledgement step and say Relay.
- opencode protocol: move the dated continuity evidence to docs/verification/supervision.md.

* no-mistakes(review): Let fmx-respond read fleet state in away and quiet mode

* no-mistakes(document): Scope the away-launcher header's record requirement to away entries
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.

2 participants