Skip to content

Keep protected-main bootstrap commands inside sandbox branches#217

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/setup-protected-main-sandbox-2026-04-21-12-02
Apr 21, 2026
Merged

Keep protected-main bootstrap commands inside sandbox branches#217
NagyVikt merged 1 commit intomainfrom
agent/codex/setup-protected-main-sandbox-2026-04-21-12-02

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by scripts/agent-branch-finish.sh (PR flow).

Setup, install, and fix now follow the doctor-style sandbox path when they
hit a protected main checkout. The visible base branch stays untouched while
maintenance runs in a worktree, sandbox changes are auto-committed, and
cleanup only happens after a safe no-op or completed finish flow.

The regression file now pins setup, install, fix, and setup auto-finish
behavior on protected main, and the active OpenSpec change records the
continuation note plus verification progress.

Constraint: Visible protected main checkouts must stay unchanged during repo bootstrap and repair flows
Rejected: Keep hard-blocking setup/install/fix on protected main | it forces manual overrides before Guardex can bootstrap itself
Confidence: high
Scope-risk: moderate
Directive: Do not reintroduce direct protected-main setup/install/fix writes without updating sandbox cleanup behavior and protected-main regressions together
Tested: Direct Node repros for protected-main setup, install, fix, and setup auto-finish; node --check bin/multiagent-safety.js; openspec validate agent-codex-setup-protected-main-sandbox-2026-04-21-12-02 --type change --strict; openspec validate --specs; git diff --check
Not-tested: Full npm test (timed out after 120s during node:test suite)
@NagyVikt NagyVikt merged commit 3c2e0db into main Apr 21, 2026
@NagyVikt NagyVikt deleted the agent/codex/setup-protected-main-sandbox-2026-04-21-12-02 branch April 21, 2026 10:39
NagyVikt added a commit that referenced this pull request Apr 21, 2026
…ge (#218)

The change itself is already on main via PR #217, but its tasks checklist still
looked incomplete. This follow-up updates the change artifact so the recorded
state matches the merged PR, cleaned worktree/ref state, and post-merge
verification that was rerun on main.

Constraint: Keep the follow-up limited to the existing change artifact; do not reopen the behavioral change itself
Rejected: Leave the tasks checklist stale after merge | it conflicts with the repo's OpenSpec completion contract
Confidence: high
Scope-risk: narrow
Directive: When a guarded finish flow merges a change before the artifact checklist is updated, add a tiny follow-up rather than leaving completion evidence implicit
Tested: openspec validate agent-codex-setup-protected-main-sandbox-2026-04-21-12-02 --type change --strict; git diff --check
Not-tested: Full npm test (no code changed in this follow-up)

Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
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.

1 participant