Skip to content
This repository was archived by the owner on Aug 25, 2026. It is now read-only.

Refuse stale task identity - #4

Merged
JTInventory merged 1 commit into
fm/firstmate-route-resolver-pr1-0625from
fm/firstmate-task-meta-branch-reconciliation
Jun 26, 2026
Merged

JTInventory merged 1 commit into
fm/firstmate-route-resolver-pr1-0625from
fm/firstmate-task-meta-branch-reconciliation

Conversation

@JTInventory

Copy link
Copy Markdown
Owner

Summary

  • Add a shared task identity guard that requires ship-task worktrees to be on fm/<task-id> before PR check, diff review, or teardown.
  • Make fm-pr-check verify the PR head branch also matches the task id before writing pr= or arming a merge poll.
  • Add focused stale-meta regression coverage for PR check, review diff, and teardown.

Tests

  • bash -n bin/fm-spawn.sh bin/fm-pr-check.sh bin/fm-teardown.sh bin/fm-review-diff.sh bin/fm-task-identity-lib.sh tests/fm-task-identity.test.sh
  • bash tests/fm-spawn-route.test.sh
  • bash tests/fm-route.test.sh
  • bash tests/fm-teardown.test.sh
  • bash tests/fm-task-identity.test.sh
  • git diff --check

Note: tests/fm-teardown.test.sh prints the existing worktree-tangle warning when run from this feature branch, but the suite passes.

@JTInventory
JTInventory merged commit ee7d5dc into fm/firstmate-route-resolver-pr1-0625 Jun 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant