Repository navigation
test: bind release assertions to explicit version contexts - #132264
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 9:44 PM ET / August 29, 2026, 01:44 UTC. ClawSweeper reviewWhat this changesMakes stable and beta release-version contexts explicit in chat, CLI, onboarding, and package-source preflight tests. Merge readinessKeep open. The introduced test-only coverage matches the current release-selector and package-source contracts; no actionable defect was found. Exact-head CI was still incomplete in the supplied PR state. Priority: P3 Review scores
Verification
How this fits togetherPlugin installation selects package versions from the core release context and configured update channel. The changed tests cover that selection through chat commands, CLI setup, onboarding, and release-manifest validation. flowchart LR
A[Core version and update channel] --> B[Package selector]
B --> C[Chat plugin install]
B --> D[CLI plugin install]
B --> E[Onboarding install]
F[Source and working manifests] --> G[Package preflight]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +28. Total +28 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused deterministic test coverage once exact-head CI completes. Do we have a high-confidence way to reproduce the issue? Not applicable: the PR makes test release-context assertions deterministic, and this read-only review did not execute the prior failure scenario. Is this the best way to solve the issue? Yes: mocking only the version context at existing entry points preserves the production resolver, while the package test reads each validation target's own manifest. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 740ca0fddf7b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
The four-file fixture repair at Native main/head review is complete. ClawSweeper currently has a started review with no published findings; no rank-up item is being silently waived. Production/config/default/selector changes:0. Proceeding through normal native prepare/merge; full release verification remains separate. |
|
Merged via squash.
|
What Problem This Solves
Resolves release verification failures where stable-only test expectations accidentally depended on the checkout's current version. Beta builds correctly select beta plugin packages, but the CLI, chat and onboarding fixtures still expected stable selectors. The package preflight fixture also hardcoded one version while asking Git to validate the actual source ref.
Why This Change Was Made
Make each selector fixture's version context explicit, exercise stable and beta cases at the existing entry points, and compare source-ref and working-tree validation with their respective manifests. Consolidate repeated mocked install results without changing product selection or consent policy.
The original five-file release repair was adapted to current main: #132135 replaced the automatic-upgrade repair owner and its new startup-repair test already uses
VERSION. That obsolete hunk is omitted here; the remaining four files preserve main's release-phase and candidate-artifact fixture changes.User Impact
No product behavior changes. Release verification tests now distinguish their intended stable/beta contracts from the version of the checkout running them. No package version, selector, dependency, configuration, workflow policy, assertion budget or publication changes.
Evidence
The original beta-context failures were reproduced before repair. The retained release proof passed 308 affected tests and broader owner/sibling coverage. The initial five-file main port passed all 308 tests and the full changed-files gate in clean Linux environment33224560502.
The final four-file port on
ddf5b5a5882c44335e168f2a7a874c803663a4a6passed 314 tests: all four affected suites (303 cases), plus all11 cases in main's replacement startup-repair suite. Formatting and diff checks passed; exact full tracked treea17aa857354d32c9a9b45b2b1322319094b013damatched before/after. Final clean Linux environment33226402690, Node24.19.0/pnpm12.0.0, canonical frozen install; command1m53.104s/exit0. Both Testboxes were stopped. The wrapper receipt is the command result; stopping the lease may mark its environment Actions run cancelled.Fresh isolated complete-delta Codex autoreview found no actionable P0 findings. Exact head417ce856 CI33226728664 is green; native landing gates are next. AI-assisted. Full release verification remains separate.
Production LOC:0. Tests:+213/-185 (net+28). No test-only production seam; existing stable selector assertions remain and beta cases extend the same tables.