[issue-3393][slice-6/7] Per-repo test-gate + reviewer-diff scoping... - #3437
Merged
Conversation
Snapshot the multi-repo model in the two current-state docs: - docs/guides/sdlc-pipeline.md gains a Multi-Repo Pipelines section: list-shaped submission (per-repo base_branch), the primary-repo concept, and the uniform-visibility / uniform-auth submission rules. - docs/architecture/slice-dag.md gains a Slice.repo row in the New Slice fields table and a Per-slice repo section covering the 1:1 rule + runtime resolver, owner/repo-keyed worktree map, per-repo work branch + context PR, per-slice PR routing, cross-repo ordering via slice dependencies, the two-tier merge-sequencing hold, and per-repo gate/diff/convention scoping. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…k-6-1) Thread the slice's repo, worktree, and base branch through the per-slice team spawn (_run_concurrent_phase) so the tester's configured checks, the reviewer diff, and the agent cwd all resolve from the slice's repo rather than the pipeline primary. New _resolve_slice_worktree_path helper mirrors the slice-3 owner/repo worktree layout. Gated on len(pipeline.repos) > 1 so single-repo (egg) pipelines are byte-identical to today. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…k-6-2) Add always-green model-level rule tests plus a real resolve_worktree_path per-repo-subdir test and a skip-guarded coder-seam integration test, pinning that the implement-phase test gate, reviewer diff, and check/lint commands scope to the slice's own repo (rulings #3/#5) with the egg/N=1 baseline unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…into egg/issue-3393-slice-6-coder/work
…into egg/issue-3393-slice-6-coder/work
…ester task-6-2) Single source of truth for slice→gate-repo resolution, matching the tester's pinned TestSliceGateRepoAccessor interface. Used inside the per-slice scoping block in _run_concurrent_phase. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
jwbron
approved these changes
Jul 2, 2026
james-in-a-box Bot
pushed a commit
that referenced
this pull request
Jul 2, 2026
…conflict in docs/architecture/slice-dag.md main's #3437 added a broader '## Per-slice repo (multi-repo pipelines)' section whose '### Cross-repo merge-sequencing hold (two-tier)' subsection overlaps this PR's standalone '## Cross-repo merge-sequencing gate' section. Kept main's better-integrated section and folded in this PR's unique details (gateway routes POST /api/v1/gh/pr/merge_state and /pr/ready, Gateway README link, EGG_ORCH_CROSS_REPO_MERGE_GATE_MAX_ATTEMPTS attempt bound, the [hold:beyond-merge-state] marker, and the two operator-selectable HITL options). Repointed the Configuration-knobs table link to the surviving anchor.
This was referenced Jul 2, 2026
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.
Scope the implement-phase gates to the slice's repo (operator rulings #3, #5). The test gate runs in the slice's repo worktree only; the reviewer diff is
git diffin that worktree against that repo's base; the slice's agent runs with cwd in the slice's repo worktree under that repo'sCLAUDE.md, linters, and check commands — egg'smake lint/make testapply only to slices whose repo is egg. Documentation is updated to describe the shipped multi-repo model.Base PR: #3418
What's in this PR
Commits (5):
This slice
Per-repo test-gate + reviewer-diff scoping + per-repo conventions
Files affected:
orchestrator/routes/pipelines.pyorchestrator/tests/test_pipelines.pydocs/guides/sdlc-pipeline.mddocs/architecture/slice-dag.mdTasks (3) + acceptance criteria
git diffin that worktree against that repo's base branch, and resolve check/lint commands from the slice's repo conventions (its own CLAUDE.md / linters) rather than hard-coding egg'smake lint/make test. Set the slice agent's cwd to the slice's repo worktree. Keep the egg-repo path (the common case) behaviorally identical to today.make test(narrowed) andmake test-allgreen.Stack
issue-3393egg/issue-3393/slice-5