Repository navigation
Type Configuration persistence and recovery conformance cases - #5989
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. What this changesMoves Configuration persistence and recovery conformance cases into a typed registrar while retaining the existing fixture and entry point. Example: Two saves both name expectedGeneration 1.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a focused, maintainer-authored test migration with no identified correctness defects; it preserves the ten scenarios and strengthens two meaningful assertions. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe conformance entry supplies a real OCC controller, IAM, in-memory platform state, and a passive Configuration Driver fixture; the extracted cases exercise generation checks, compensation, recovery, and deployment snapshots. flowchart TD
A[Conformance entry] --> B[Typed case registrar]
A --> C[Existing fixture]
B --> D[OCC controller]
C --> D
D --> E[In-memory platform state]
D --> F[Configuration Driver fixture]
Technical reviewBest possible solution: Retain the typed extraction and stronger assertions through the existing conformance entry without changing production persistence behavior. Do we have a high-confidence way to reproduce the issue? This PR reports no new product bug; source comparison verifies the test extraction, and no tests were run during this read-only review. Is this the best way to solve the issue? The extraction follows the existing explicit registrar pattern, reuses the established fixture, and strengthens observable outcomes without introducing production seams. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f4bbd32e8fc5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 14, 2026, 5:05 AM ET / 10:05 UTC. |
Summary
Move the ten Configuration persistence and recovery cases into a TypeScript module. The existing OCC conformance entry still supplies the controller and Driver fixture and registers the cases in the same order.
The stale-writer case now requires
ConfigurationGenerationConflictError. The failed-delete case verifies that the controller can read the exact document restored after a state read fails.Verification
checks-baseline-1run passed preparation, all 40 cases in the original entry, and cleanup.The OCC recovery cases use controlled Driver and state failures. Live PostgreSQL and Kubernetes persistence have separate integration coverage.