Repository navigation
refactor(update): simplify verification typing - #140259
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 12:13 PM ET / 16:13 UTC. ClawSweeper reviewWhat this changesThe PR simplifies update verification typing, removes an unreachable diagnostic fallback, and lowers the assertion baseline to match two removed casts. Merge readiness✅ Ready for maintainer review Keep open: this is a focused, behavior-preserving cleanup with no actionable findings. Current main retains the redundant typing, and the maintainer-authored PR is protected from automatic closure. Priority: P3 Review scores
Verification
How this fits togetherUpdate verification checks the restarted Gateway and returns a success or failure result to update and repair orchestration. The restart probe combines the process and service environments to resolve its configuration and credentials. flowchart TD
A[Update or repair] --> B[Gateway verification]
C[Process and service environment] --> D[Restart probe configuration]
D --> B
B --> E{Healthy and ready}
E -->|Yes| F[Verified result]
E -->|No| G[Failure diagnostics]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -3, Other 0. Total -3 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Retain the existing verification flow while expressing its nonempty diagnostics and environment types directly. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes redundant typing rather than repairing a reported runtime failure; source inspection supports equivalent behavior. Is this the best way to solve the issue? Yes: direct annotations capture the existing invariants without adding an abstraction or changing verification policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3b90108d098e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* refactor(update): simplify Git candidate preparation * refactor(update): consolidate restart health checks * refactor(update): trim transaction handoff scaffolding * refactor(update): retain probe casts under the existing baseline * refactor(update): limit deslop to campaign verification hunks
Related: #124396, #138690, #138673, #138737, #138839, #139495.
What Problem This Solves
This maintainer-requested, behavior-neutral deslop pass removes redundant type scaffolding around transaction verification: the diagnostic list always has a headline, and the restart probe's environment merge needs neither widening casts nor a nullish spread default.
Why This Change Was Made
Represent the guaranteed nonempty diagnostic list with a tuple and remove its unreachable fallback. Infer the merged environment through a direct ProcessEnv annotation, with the explicitly approved assertion-ratchet count reduced from 9 to 7 for that file only.
The diagnostic cleanup belongs to the verification module introduced by #139495. The probe cleanup is explicitly approved by the lead. A provenance audit against the five campaign merges moved all other proposed cleanups to separate follow-ups because they came from outside those campaign hunks.
User Impact
None. Runtime output, service authority, update sequencing, rollback, protocol, configuration, schemas, and error text remain unchanged.
Evidence
Final head:
9f21eef1b85a3db8e65400a5fa91c0276445321f.pnpm testAll 106 test files are byte-identical. Full
pnpm check:changedpassed, including the exact assertion-ratchet update, production/test types, all three zero-unused-export scans, lint, storage/import and authorization guards.git diff --checkpassed. Final Codex branch autoreview at high reasoning and P0/P1 scope returned scoped-clean.git diff --numstat origin/main...HEAD: production +3/-6 (net -3); tests +0/-0; docs +0/-0. The separately approved validation-baseline edit is +1/-1 and changes only the restart-probe entry from 9 to 7. No snapshots, configuration options, schema, dependency, or changelog changes.The original baseline setup encountered a stale checkout-local build lock before tests started; after verifying no associated writers remained, the unchanged baseline was rerun successfully. The initial changed gate required the exact assertion-count shrink, which is included under the lead's corrected policy. An obsolete test repeat was cancelled when the lead narrowed provenance scope; the final run above completed after those scope corrections.
Exact-head CI run 34044403151 completed successfully on attempt 2. The required exact-head watcher returned
SUCCESS, zero pending checks, andGREEN.Attempt 1 failed two unchanged Discord WAV-lifetime cases (
left channelandreplaced capture) atextensions/discord/src/voice/voice-wav-lifetime.test.ts:196, where a temporary cleanup marker remained. The focused local file passed all eight tests, and one targeted rerun of the failed CI job passed on the same head without source or test changes. The cause of that initial cleanup failure remains an unrelated follow-up; no owner repair is claimed here.Exact test file list used before and after