Skip to content

test: accept unaffected patches retained automatically in the committed sync review - #45

Merged
mrmans0n merged 1 commit into
alasfrom
automation/sync-review-accepts-unaffected
Nov 26, 2026
Merged

mrmans0n merged 1 commit into
alasfrom
automation/sync-review-accepts-unaffected

Conversation

@mrmans0n

Copy link
Copy Markdown
Owner

Why

The v2.12.1 sync (#44) cannot pass ci. Upstream v2.12.1 only bumps @openai/codex to 0.172.0 (generated app-server types, package files) and the action-semantic-pull-request pin, so for the first time every ledger patch is classified unaffected, and the sync review resolves each one with the automatic retain.

verifySyncReviewArtifact already requires exactly that resolution for an unaffected patch, and the publication preflight accepts the review. The committed-review coherence test in scripts/downstream-patches.test.mjs, however, still asserts that every reviewed patch is overlap (or absorbed and dropped) and that every resolution is manual except an already dropped patch's. Every stable since v2.2.2 touched src/CodexAcpServer.ts, so that never came up. On the simulated v2.12.1 integration, npm test fails only this test, even when rerun alone with --testTimeout=300000.

Change

  • The test now also accepts an unaffected patch resolved with the automatic retain.
  • Every other classification and resolution check is unchanged.
  • No tooling, verifier, ledger or workflow code changes; one test file only.

Verification

  • npx vitest run scripts on this branch: 15 files, 179 tests pass.
  • Red/green on the v2.12.1 integration simulated on a synthetic merge of this branch into alas (6d39bc776387ac2ea1c4f55296ba3bfd6f19c634):
    • the fixed test passes on the committed v2.12.1 review;
    • the original assertions (from a963cdb) fail on the same review;
    • corrupted reviews still fail: an unaffected patch resolved manually, resolved with drop, or classified overlap.
  • The sync rebuilt on that synthetic merge is deterministic (two builds and the SYNC_REFS fixpoint give exact 2062b87a1427cbd584511bca84c15a650a372e7d, integration 6d39bc776387ac2ea1c4f55296ba3bfd6f19c634), with no conflicts and no manual-review reasons. Its .github, scripts and docs/ALAS_DOWNSTREAM.md trees equal the synthetic alas, and the publication preflight reconstructs both SHAs.
  • The exact candidate's first-parent history up to the replayed review commits is identical to the build without this branch, so the v2.12.1 adaptation (alas-adaptations/v2.12.1 = 4232283) stays valid after the merge.
  • Release gates on the same integration without this branch (b10e8e9, identical tree except this test file): npm ci, typecheck, test:integration (11 files / 28 tests), bundle:all, build and npm pack --dry-run pass; npm test passes except this test (186 files pass, 3258 tests).

After merging

Please merge with a merge commit (not squash). The maintenance agent then rebuilds the v2.12.1 sync on the new alas with the saved resolutions, updates #44 and lets the autopilot merge and publish 2.12.1-alas.1 as a level-2 sync.

…ed sync review

The committed-review coherence test in scripts/downstream-patches.test.mjs
asserted that every reviewed patch is classified `overlap` (or `absorbed`
and dropped) and that every resolution except an already dropped patch's is
manual. That holds only while upstream touches every patch's files, as
every stable since v2.2.2 has done through src/CodexAcpServer.ts.

Upstream v2.12.1 only bumps @openai/codex to 0.172.0 (generated app-server
types, package files) and a workflow pin, so every ledger patch is
`unaffected` and the sync review resolves it with the automatic `retain`.
verifySyncReviewArtifact already requires exactly that resolution for an
unaffected patch, and the publication preflight accepts the review, but
`npm test` on the sync integration failed this test.

The test now also accepts an `unaffected` patch with the automatic
`retain` resolution. Every other classification and resolution check is
unchanged. No tooling, verifier or workflow code changes.
@mrmans0n

Copy link
Copy Markdown
Owner Author

Full release gates on the v2.12.1 integration simulated on a synthetic merge of this branch (6d39bc776387ac2ea1c4f55296ba3bfd6f19c634): npm ci, typecheck, npm test (187 files pass / 7 skipped; 3259 tests pass / 39 skipped), test:integration, bundle:all (bun 1.3.11), build and npm pack --dry-run all exit 0. Codex E2E stays a visible waiver (no OPENAI_API_KEY). ci is green on this head and the merge state is CLEAN.

@mrmans0n
mrmans0n merged commit 0a8bc4f into alas Nov 26, 2026
1 check passed
@mrmans0n
mrmans0n deleted the automation/sync-review-accepts-unaffected branch November 26, 2026 13:07
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