Skip to content

fix(upstream-auto): allow independent PR reviews without repo-wide locks - #164

Merged
xLagerFeuer merged 1 commit into
mainfrom
fix/upstream-auto-parallel-reviews
Nov 8, 2026
Merged

xLagerFeuer merged 1 commit into
mainfrom
fix/upstream-auto-parallel-reviews

Conversation

@xLagerFeuer

Copy link
Copy Markdown
Member

Why

Fix the live over-serialization documented in Upstream #161 comment: independent read-only internal PR #111 and #55 review cards used source:opensiro/upstream, and portfolio=1 blocked the second session although changed-file intersection was zero.

Change

  • For READ_ONLY_REVIEW of a PR, reserve only its exact pr:owner/repo#N identity; reject new repo-wide source: locks on PR read-only cards so the accidental serialization cannot recur silently.
  • For INTERNAL_PREPARE, require the matching source: for every PR and retain conservative repository-wide exclusion. No independent write or merge safety is inferred from disjoint read-only file lists.
  • Portfolio capacity: read-only WIP 2, mutable preparation WIP 1, total 3. Other lanes unchanged.
  • New claim events record operation; replay remains compatible with historical events without it. Unknown legacy portfolio claims conservatively consume both operation caps until released; task manifest cannot reclassify active claims.
  • Mutable PR claim preflight also validates and reports base SHA. Owner still must recheck heads/base, changed paths (renames/deletions) and dependencies at the actual write boundary.
  • No external publication, merge, Organization scheduler, new delegation, batch source-CAS bypass, S2 grading or autonomous background workers.

Evidence

  • Two local Git workers each claim a different PR of the same repository; simultaneous active reservations accepted after first readback.
  • Duplicate PR claim blocked; overlapping mutable PRs blocked by source key; portfolio read/write WIP separated; legacy schema replay/release; stale PR head and missing base fail closed; CAS lost+replan fixtures retained.
  • Full Upstream tests 566 PASS.
  • upstream_status.py --check-generated, harness_status.py --check, portfolio_reconcile.py --validate-only, verified_external_outcomes.py --validate-only, and git diff --check PASS.
  • Live existing task ledger branch read/replay: 6 events, no active claims; no ledger write was performed in this fix.

This corrects Upstream-local concurrent read-only scheduling. A genuine live simultaneous two-actor CAS witness, independent owner-stage write checks and any recursive VSM S2 assessment remain separate evidence gates.

@xLagerFeuer
xLagerFeuer merged commit 9d06955 into main Nov 8, 2026
1 check passed
@xLagerFeuer
xLagerFeuer deleted the fix/upstream-auto-parallel-reviews branch November 8, 2026 11:50
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