Repository navigation
test: harden CLI and daemon status contracts - #2787
Conversation
Replace selected foreign-internal patches with explicit dependency injection\nand seeded archive records. Cover malformed read projections, the real daemon\nstatus HTTP route, isolated health output, and status evidence rendering.\n\nRef polylogue-n4hb\nRef polylogue-c52g\nRef polylogue-znwj\n\nCo-Authored-By: Claude <[email protected]>
|
Warning Review limit reached
Next review available in: 3 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (7)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Replace foreign-internal patch seams in the n4hb test cluster with real\nsource-tier records, the on-disk schema registry, and DbFactory-seeded archive\nmaintenance cases.\n\nRef polylogue-n4hb\n\nCo-Authored-By: Claude <[email protected]>
The real registry includes bundled v1 schemas, so promotion creates v2 and\nthe subsequent registration creates v3.\n\nRef polylogue-n4hb\n\nCo-Authored-By: Claude <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6488caa9be
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Make the planner-contract test use distinct caller-supplied and ambient archive roots so fallback-to-ambient regressions fail instead of passing silently. Verified: devtools test tests/unit/maintenance/test_planner_contract.py — 41 passed; ruff format/check passed. Co-Authored-By: Claude <[email protected]>
Problem: the infrastructure conversion lost provider-scoping, scenario-grouping, and privacy-normalization assertions.\n\nWhat changed: exercise the persisted registry with a second provider and assert the operator privacy normalizer's typed defaults.\n\nRef polylogue-n4hb
Problem: the restored registry assertion fixture used a similarly shaped but incompatible JSON alias.\n\nWhat changed: use the operator request payload type so the focused test also passes the required strict type gate.\n\nRef polylogue-n4hb
Problem: status and daemon health coverage only exercised successful defaults, leaving unavailable status snapshots, nonzero health exits, and the expensive flag unpinned.\n\nWhat changed: use a loopback daemon route for malformed status recovery and assert CLI health error and tier-selection behavior.\n\nRef polylogue-c52g\nRef polylogue-znwj
Adversarial review — iteration 1Findings fixed:
What survived scrutiny: the caller-vs-ambient archive routing fix remains anti-vacuous; the ambient fixture is empty while the supplied config archive is seeded. Focused verification: POLYLOGUE_PYTEST_BASETEMP_ROOT=/realm/tmp/polylogue-pytest nix develop --command devtools test <6 strengthened nodes> — 6 passed in 32.30s; Ruff and focused mypy passed. The Beads remain open; this is an iteration record, not a closure claim. |
Problem: the infra conversion did not retain manifest persistence or global registry-list assertions.\n\nWhat changed: assert persisted manifests, provider-scoped corpus output, family IDs, and global registry enumeration through real schema packages.\n\nRef polylogue-n4hb
Adversarial review — iteration 2Findings:
What survived scrutiny: the separate caller/ambient archive test remains anti-vacuous, and the real HTTP and health error/tier paths remain focused-green. Verification: POLYLOGUE_PYTEST_BASETEMP_ROOT=/realm/tmp/polylogue-pytest nix develop --command devtools test tests/unit/core/test_operator_inference.py — 4 passed in 15.54s; current pre-push quick baseline passed. |
Adversarial review — iteration 3No new legitimate gaps found after reviewing the current diff, full Bead ACs, PR body, and comments. What survived scrutiny:
Borderline already disclosed: privacy normalization is tested at the normalizer boundary, not end-to-end generation forwarding; that residual remains deferred to open polylogue-n4hb. No code change was needed in this convergence iteration. |
Final acceptance-criteria matrix
No Beads were closed or claimed. PR remains open and unmerged. |
…803,2787,2798 013x (search-coverage, PR #2803) and g9f2 (write-model, PR #2798) fully satisfied — closed. y8s5 (distribution, PR #2779), ttu (docs-ia, PR #2778), kwsb (PR #2799), and n4hb/c52g/znwj (test-hardening, PR #2787) partially satisfied — noted with disposition, left open per closure-discipline. Co-Authored-By: Claude <[email protected]>
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Test-only hardening across CLI status/query, daemon health/status, and three formerly mock-heavy operator/maintenance suites.
Problem
The selected suites depended on foreign-internal mocks or omitted high-risk CLI and daemon error paths. The original PR wording overstated completion because no fresh full-suite coverage measurement establishes the Beads numeric targets.
Solution
Acceptance criteria
Anti-vacuity
Verification
Ref polylogue-n4hb
Ref polylogue-c52g
Ref polylogue-znwj