Skip to content

backlog(B-0751): per-agent isolated clones architecture — primary checkout is SHARED VIEW + FOR HUMAN; agents NEVER touch it#5019

Closed
AceHack wants to merge 1 commit into
mainfrom
backlog/b0751-per-agent-isolated-clones-architecture-aaron-2026-05-25
Closed

backlog(B-0751): per-agent isolated clones architecture — primary checkout is SHARED VIEW + FOR HUMAN; agents NEVER touch it#5019
AceHack wants to merge 1 commit into
mainfrom
backlog/b0751-per-agent-isolated-clones-architecture-aaron-2026-05-25

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 25, 2026

Aaron 2026-05-25 architectural decision: 'yall can all have your own clones' + 'this one is shared view and for human'. Eliminates cross-agent contention class entirely. Supersedes B-0750 worktree-pool primitive for cross-agent scope. 6 scope items. Composes with B-0750/B-0747/B-0741/B-0727/B-0530.

🤖 Generated with Claude Code

…ckout is SHARED VIEW + FOR HUMAN; agents NEVER touch it (Aaron 2026-05-25 architectural decision)

Aaron 2026-05-25: 'yall can all have your own clones' + 'this one is
shared view and for human'.

Architectural shift from shared-.git/+multi-worktree to per-agent
isolated clones. Eliminates the cross-agent contention class entirely.

Primary checkout (/Users/acehack/Documents/src/repos/Zeta) = SHARED
HUMAN VIEW; operator + co-owners use it for git status/log/diff/
checkout main. Agents NEVER touch it.

Each agent gets own .git/+working tree at /private/tmp/zeta-clones/
<agent-identity>/ (e.g., otto-vscode/ alexa-kiro/ riven-cursor/ etc.)

Supersedes B-0750's worktree-pool primitive scope item for cross-agent
contention; B-0750's other scope items (cleanup tooling; checkout-path
protection; main-hold detector) remain valuable WITHIN any clone.

6 scope items: init-tooling / fetch-sync discipline / agent invocation
routing / operator-checkout-protection enforcement / disk+sync resource
tracking / migration runbook.

Composes with B-0750 (sibling rule; per-clone-internal still applies) +
B-0747 (per-agent-clone IS per-agent state in machine-state declaration)
+ B-0741 (local-dev analog of fork primitive) + B-0727 (agent autonomy
expression).

P2 priority — high reuse-leverage; addresses recurring operator pain at
architectural level. Not P1 because B-0750 rule operates today; becomes
P1 if recurrence happens before per-agent-clone tooling ships.

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 25, 2026 22:48
@AceHack AceHack enabled auto-merge (squash) May 25, 2026 22:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new P2 backlog row for a per-agent isolated clone architecture, positioning the primary checkout as a human-only shared view and replacing cross-agent shared-.git/ worktree contention with isolated clones.

Changes:

  • Adds backlog item B-0751 with scope, migration, enforcement, and composition notes.
  • Adds B-0751 to the generated backlog index.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
docs/backlog/P2/B-0751-per-agent-isolated-clones-architecture-primary-checkout-is-shared-human-view-agents-never-touch-aaron-2026-05-25.md New backlog row describing the isolated-clone architecture and related scope items.
docs/BACKLOG.md Adds B-0751 to the P2 backlog index.

Comment on lines +12 to +14
- B-0750
- B-0747
- B-0741
- B-0727
- B-0530
related_substrate:
- .claude/rules/agent-worktree-hygiene-never-hold-main-never-step-on-operator-cleanup-on-pr-merge.md
└── ... ← future agents
```

Each clone:

## Composes with .claude/rules/

- `.claude/rules/agent-worktree-hygiene-never-hold-main-never-step-on-operator-cleanup-on-pr-merge.md` (B-0750 rule) — still applies WITHIN any single clone; cross-clone is solved by isolation
@AceHack
Copy link
Copy Markdown
Member Author

AceHack commented May 26, 2026

Closing as substrate-stale (DIRTY-conflict) per .claude/rules/pr-triage-tiers.md Tier 3 + the discriminator pass below.

Discriminator pass:

  • Branch prefix: backlog/ or rule/ (past-Otto-CLI session work) → MINE (the maintainer's 2026-05-26 catch: "this is losing to yourself")
  • Substrate state: mergeStateStatus: DIRTY, mergeable: CONFLICTING — branch created 2026-05-25; main has moved ~30 commits since; rebase would need substantial conflict resolution
  • Substrate on main: this PR's B-number is NOT on main today (verified via git ls-tree origin/main -- docs/backlog/) — substrate is genuinely missing, not redundant

Disposition: close. The branch content is preserved in git history; re-land path is cherry-pick onto a fresh branch off current main with any ID-collision renumbering needed. This is the same Tier 3 disposition applied to today's #5038 + #5032 (same root cause: 2026-05-25 evening session left ~9 backlog/rule PRs DIRTY when the next morning's iter-5.x + iter-6 work landed and moved main forward).

This close is NOT a punt — it's explicit ownership classification per .claude/rules/fighting-past-self-vs-peer-agent-distinguisher-fix-your-own-coordinate-on-peers-dont-punt-by-default.md (recurrence anchor landed today via #5126). The substrate-honest re-land path is documented; the operator-tax of indeterminate DIRTY state is cleared.

@AceHack AceHack closed this May 26, 2026
auto-merge was automatically disabled May 26, 2026 08:07

Pull request was closed

AceHack pushed a commit that referenced this pull request May 27, 2026
Copilot flagged two references to B-0751 (per-agent isolated clones
architecture) that aren't resolvable in-tree — PR #5019 (the proposed
landing) was closed without merging, and no B-0751-* backlog row
exists.

Replace both references with concrete artifacts that DO exist:
- PR #5019 (the closed design proposal)
- B-0750 (worktree-hygiene row in tree)
- .claude/rules/agent-worktree-hygiene-... rule path

Composes with Lior's prior markdownlint fix (bce0e7e).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
AceHack added a commit that referenced this pull request May 27, 2026
* fix: Fix markdownlint errors in drift report

* fix(PR #5514): replace B-0751 refs per Copilot review

Copilot flagged two references to B-0751 (per-agent isolated clones
architecture) that aren't resolvable in-tree — PR #5019 (the proposed
landing) was closed without merging, and no B-0751-* backlog row
exists.

Replace both references with concrete artifacts that DO exist:
- PR #5019 (the closed design proposal)
- B-0750 (worktree-hygiene row in tree)
- .claude/rules/agent-worktree-hygiene-... rule path

Composes with Lior's prior markdownlint fix (bce0e7e).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Lior <lior@zeta.dev>
Co-authored-by: Claude <noreply@anthropic.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.

2 participants