Repository navigation
do: scripted runs on a box with a live resident get compiled conversationally — add hard isolation (--no-resident) - #2018
Open
ZeroPoint95 wants to merge 1 commit into
Conversation
…tionally — add hard isolation (--no-resident) Assisted-by: CodeAF Co-Authored-By: CodeAF <267109073+agentfield-bot@users.noreply.github.com>
ZeroPoint95
marked this pull request as ready for review
October 28, 2026 23:33
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.
Changes
codeaf do --no-resident(envCODEAF_NO_RESIDENT=1) refuses the resident hand-off while a live non-stuck resident holds the store: the run exits 1, names the holder's pid and host and the store path, and writes nothing to the journal, so no resident can apply a run the script did not get.errandRunbetween store setup and the journal write and probes the lease instead of fighting it; a stuck (crashed) holder is not refused and takes the stale lease as before,run/the belt road are untouched, and without the switch today's hand-off is unchanged (verified by the pinned existing hand-off tests).docs/HEADLESS.mdsynopsis, flags table, resident-hand-off passage and env table, chat manualrunning-from-the-terminal.mdandadaptive-runs.mdflag tables,environmentTextincmd/codeaf/main.go, plus the changelog entrydocs/changes/unreleased/1959-do-no-resident.md.Closes #1959.
Validation
cd . && go test ./cmd/codeaf -run 'TestDoFailsFastWhenAnotherProcessHoldsTheResidentLock|TestAResidentServingAnotherStoreIsRefusedImmediately|TestDoNoResident|TestCodeafNoResident|TestADoErrandHandedToAResidentLeavesNoPendingLanding' -count=1 -v 2>&1 | grep -E '^(=== RUN|--- (PASS|FAIL)|PASS|FAIL|ok )'.cd . && env -u GOOS -u GOARCH go generate ./internal/manual && go test -tags=codeaf_packed_manual ./internal/manual 2>&1 | tail -2; echo "pack exit: $?".by codeaf factory
Factory-Approval: evt_411712d4 @ZeroPoint95 9149020