Repository navigation
feat: import upstream operational workflow updates - #6
Merged
Merged
Conversation
* feat(dispatch): add dynamic crew profiles * no-mistakes(review): Captain, document dispatch profile inheritance * no-mistakes(review): Captain, guard stale dispatch inheritance * no-mistakes(document): Sync dispatch profile docs * no-mistakes: apply CI fixes
* Harden crew dispatch profile enforcement * no-mistakes(document): Captain, synced crew dispatch docs
* feat(config): add live secondmate config push * no-mistakes(document): Document config push behavior * no-mistakes(lint): Clean changed shell lint * no-mistakes: apply CI fixes
* feat(x): add image attachments to reply helpers * no-mistakes(review): Stream X image replies safely * no-mistakes(review): Captain, clean X reply temp tracking * no-mistakes(document): Document X reply image support
* fix(teardown): make landed-check robust when no pr= was ever recorded fm-teardown.sh's squash-merge landed-check already falls back to discovering a merged PR by branch name when state/<id>.meta has no recorded pr=, but nothing guaranteed pr=/pr_head= actually got recorded on a yolo-authorized merge - the "checks green" trigger that normally runs fm-pr-check.sh never fires on repos with no PR CI, so a merge done via a bare `gh-axi pr merge` silently skips it. Add bin/fm-pr-merge.sh as the one path for merging a task's PR: it always runs fm-pr-check.sh first, so pr=/pr_head= land in meta as part of the merge itself regardless of any CI signal. Document both the existing branch-name discovery fallback and the new merge path in AGENTS.md, and add regression coverage for the no-pr=-recorded landed scenario and for fm-pr-merge.sh's record-then-merge behavior. * no-mistakes(review): Guard PR merges on task metadata * no-mistakes(document): Document PR merge wrapper * no-mistakes: apply CI fixes
* Fix fm-pr-merge.sh to parse PR URLs for gh-axi gh-axi pr merge expects a PR number and --repo, not a full GitHub URL. Parse the URL, default to --squash when no merge method is passed, and fail fast on malformed URLs. Tests cover parsing, defaults, and refusal. * no-mistakes(review): Harden PR merge validation * no-mistakes(review): Harden PR merge URL guards * no-mistakes(document): Document PR merge URL handling * no-mistakes(lint): Clean shell lint
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
Import-audit the six new upstream firstmate commits before privatizing the repo. The goal is to bring in the useful upstream operational changes without regressing this fork's deliberate choices: keep the blunt custom AGENTS voice, keep Orca and Codex-App backend support, keep the local teardown behavior that is already more robust than upstream, and filter out upstream's nautical/persona noise. Imported scope includes dynamic crew profiles, hardened profile enforcement, live secondmate config push, X reply image attachments, the PR merge helper and gh-axi PR URL parsing, plus teardown docs/tests. During validation, fix any local shell compatibility regressions caused by the import, especially macOS Bash 3 empty-array behavior.
What Changed
gh-axiURL parsing, and more robust landed-PR teardown detection.Risk Assessment
Testing
The provided baseline had already passed; I reran the focused import regressions plus the full configured
tests/*.test.shsuite on macOS Bash 3.2/tmux 3.7, then captured CLI evidence for dispatch enforcement, PR merge parsing, X image payloads, and live secondmate config push; all checks passed and the working tree stayed clean.Evidence: Bash 3 runtime
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin25)Evidence: Dispatch profile enforcement and launch transcript
Evidence: PR merge URL parsing transcript
Evidence: X image reply transcript
Evidence: X image relay payload
Evidence: Live secondmate config push transcript
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"Baseline supplied by harness:command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"Focused regression run:for t in tests/fm-spawn-dispatch-profile.test.sh tests/fm-bootstrap.test.sh tests/fm-secondmate-harness.test.sh tests/fm-pr-merge.test.sh tests/fm-x-mode.test.sh tests/fm-teardown.test.sh test/fm-teardown-orca.test.sh test/fm-backend-regression.test.sh test/fm-codex-app-teardown.test.sh; do printf '== %s ==\n' "$t"; bash "$t" || exit 1; doneEvidence generation: created isolated fake tmux/gh-axi/curl/secondmate-home fixtures under/var/folders/km/p2bzh7ss6lz_376w0_8b89z00000gn/T/no-mistakes-evidence/01KWFDEHF6KDXGXRRD3FHY31FVand exercisedbin/fm-spawn.sh,bin/fm-pr-merge.sh,bin/fm-x-reply.sh, andbin/fm-config-push.shend-to-end.Configured suite rerun on target checkout:command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"Cleanup check:git status --shortreturned no working-tree changes.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.