fix(bin): reject foreign clone-family worker allocations - #2
Open
Charliekirk-creator wants to merge 8 commits into
Open
Charliekirk-creator wants to merge 8 commits into
Charliekirk-creator wants to merge 8 commits into
Conversation
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
Republish the exact reviewed clone-family allocation guard from upstream PR kunchenguid#3377 through the captain-owned fork https://github.com/Charliekirk-creator/firstmate, with guarded publication explicitly approved but no merge authority. Start the republication from the verified current captain-fork main, carry only the two reviewed commits (9888484 and c2e3ee8) or their exact patch relative to the verified source merge base 0866a77, and permit only conflict adaptations genuinely required by the older captain base, with every adaptation recorded and fully validated. The intended change is limited to the shared post-allocation Git common-directory guard, Treehouse and terminal-less Orca preservation behavior, relevant test-run ownership, architecture documentation, and the eight reviewed paths. Preserve the reviewed guarantees: reject a foreign Git common directory before worker launch; preserve every branch, HEAD, index, tracked, untracked, ignored, stash, tag, custom ref, allocation, worktree registration, and any existing endpoint; never clean, reset, delete, prune, force-return, or invent an unsafe quarantine; and keep the terminal-less Orca message truthful. Prove the final branch contains no unrelated upstream commits, files, or changes. Run the focused source-PR tests plus the complete applicable Firstmate lint and documentation checks, then review the complete diff against captain-fork main and stop if unrelated changes remain. Publish and open a PR only against Charliekirk-creator/firstmate:main, using the captain-owned fork as the actual push and PR target, and rerun CI on the rebased head. Do not publish another PR to kunchenguid/firstmate, merge anything, update either default branch, force-push an existing preserved branch, close or modify upstream PR 3377, delete any branch, or alter the original task copy.
What Changed
Risk Assessment
✅ Low: The change is narrowly scoped, preserves the required allocation invariants, and exactly republishes the two reviewed patches with no source-verifiable defects found.
Testing
No baseline test command was supplied; targeted Treehouse, Orca, relaunch, batch, settling, base-freshness, and test-runner ownership checks succeeded, while manual CLI evidence demonstrated pre-launch refusal with complete preservation and truthful terminal-less Orca behavior. Provenance checks confirmed exact equivalence to the reviewed two-commit source range and only the eight approved paths; lint and documentation validation remain outside this assigned test phase.
Evidence: Treehouse mixed-clone refusal and complete preservation transcript
Source: Treehouse mixed-clone refusal and complete preservation transcript
Evidence: Terminal-less Orca truthful refusal transcript
Source: Terminal-less Orca truthful refusal transcript
Evidence: Reviewed-patch republication provenance
Source: Reviewed-patch republication provenance
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bin/fm-test-run.sh tests/fm-spawn-common-dir.test.sh tests/fm-backend-orca.test.sh tests/fm-control-relaunch.test.sh tests/fm-spawn-batch.test.sh tests/fm-spawn-worktree-settle.test.shbin/fm-test-run.sh tests/fm-spawn-pool-base-freshen.test.shbin/fm-test-run.sh --check-coveragebin/fm-test-run.sh --list --family backend-dispatch | grep -E 'fm-spawn-(common-dir|pool-base-freshen)\.test\.sh'Manualfm-spawn.shTreehouse mixed-clone allocation: captured the refusal, provider operations, and identical before/after Git-state snapshots.Manualfm-spawn.sh --backend orcaterminal-less mixed-clone allocation: captured truthful refusal output and verified no terminal, removal, launch, metadata publication, or HEAD change.git range-diff 0866a770234502364c268a768cb7c66cc321c629..c2e3ee8aa6da613e9865c5e70746c93f78928568 a56a78ac431833381a265d28cbc9c5ab6094117d..HEADplus stable patch IDs and changed-path inspection.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.