🌿

Worktree Branch Isolation & 2PC Reactor

Physically read-only trunk and serialized two-phase commit merge queue

AXIOMATIC LAW: Protected trunk branches (main) are physically read-only; mutations occur strictly inside isolated task worktrees before 2PC merge.
1
STEP 1 · OBSERVE FAILURE MODE
Attempt a direct commit on main to trigger ValidateWorktreeBoundary (Exit 1).
2
STEP 2 · PROVE DETERMINISTIC GATE
Provision an isolated worktree, stage verified work, and run 2PC atomic sync.
PROTECTED TRUNK (main@c8cec44d) [READ-ONLY]
Protected trunk main is physically locked read-only.
AUTHENTIC CLI RECEIPT TC-AGT-01

In Your Local Terminal

When a Tier 1 agent violates or satisfies Law #3, the compiled Go binary emits a deterministic machine-readable exit code:

$ git commit -m "quick fix on main"
❌ [TC-AGT-01] ValidateWorktreeBoundary: trunk branch main is read-only (Exit 1)
$ nomos task sync SUB-219 -F .tmp/walkthrough-SUB-219.md
✅ 42/42 DoD gates passed -> fast-forwarded main -> pruned worktrees/repo-SUB-219
SSoT ENFORCEMENT MATRIX 4 ACTIVE PROBES

Enforcing DoD Quality Gates

Mechanism: ValidateWorktreeBoundary, Pre-Commit Hooks

G-01 Blast Radius Constraint Sandboxing & GitOps
Invariant: Chore Tasks <= 3 Files Modified
G-02 Stash Audit Guard Sandboxing & GitOps
Invariant: Zero Dirty WIP Stashes on Trunk
G-11 CrossRepoWorktreeGate Sandboxing & GitOps
Invariant: Upstream go.work Worktrees Synced First
G-38 Dependency Drift Gate Sandboxing & GitOps
Invariant: Zero Multi-Repo Upstream Lag
Ask Sophia Docs & Specs Sophia AI · Grounded Nomos Architecture & Docs Concierge