Repository navigation
feat(status): expose assertion and transform readiness (#1832) - #1976
Conversation
Problem: the shared component-readiness map did not yet expose the newly settled assertion substrate or deterministic recovery transform surface, leaving #1832 unable to answer whether those capabilities are usable from status JSON.\n\nWhat changed: add typed readiness adapters for the user-tier assertion substrate and transform registry, then include bounded direct-status JSON components for assertions and transforms. The assertion component reads only user.db assertion counts; the transform component uses the existing archive session count and transform registry metadata.\n\nVerification: nix develop --command devtools test tests/unit/core/test_readiness_capability.py tests/unit/cli/test_status.py -k 'readiness or component or assertion or transform' -> 15 passed, 24 deselected; nix develop --command devtools verify --quick -> exit_code 0.\n\nRef #1832
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughTwo new readiness adapter functions ( ChangesAssertions & Transforms Readiness Components
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c952dc3899
ℹ️ 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".
Problem: status --format json treated absent archive counts from a failed archive readiness probe as zero sessions, producing a misleading transforms=missing/no sessions payload and a demo-import repair hint. What changed: component_from_transform_registry now accepts an explicit error path, and direct status maps checked-false archive readiness into a blocked transform component without session_count or import hints. Verification: nix develop --command devtools test tests/unit/core/test_readiness_capability.py tests/unit/cli/test_status.py -k 'readiness or component or assertion or transform' (16 passed); nix develop --command devtools verify --quick (exit_code 0)
|
Addressed the Codex P2 transform-readiness finding in 6f7c912: checked-false archive readiness now maps transforms to blocked with the archive error, no synthetic session_count=0 and no demo-import repair hint. Focused regression and quick gate both pass. |
|
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
Adds direct
polylogue status --format jsoncomponent-readiness entries for the assertion substrate and deterministic recovery transforms. The new entries are additive undercomponent_readiness.assertionsandcomponent_readiness.transforms; existingarchive_readiness, embedding readiness, and archive-surface components remain unchanged.Problem
#1832 is converging status/readiness onto one vocabulary. After #1880 and #1883 settled concrete transform and assertion surfaces, status JSON still could not answer whether those capability families were usable, missing, or degraded.
Solution
Add typed readiness adapters in
polylogue.readiness.capabilityfor the user-tier assertion substrate and transform registry. Direct status JSON now reads boundeduser.db.assertionscounts and maps the transform registry plus existing archive session count into canonicalComponentReadinessDTOs. This intentionally stays in direct CLI status for now: daemon/web surfaces do not yet carry truthful user-tier assertion counts or transform availability details.Verification
nix develop --command devtools test tests/unit/core/test_readiness_capability.py tests/unit/cli/test_status.py -k 'readiness or component or assertion or transform'->15 passed, 24 deselectednix develop --command devtools verify --quick->exit_code 0origin/masterafter feat(demo): seed deterministic user overlays (#1843) #1975 merged; pre-push quick gate ->exit_code 0PR handoff checklist
Issue slice: #1832 transform/assertion readiness entries after #1880/#1883 surfaces settled.
Files inspected:
polylogue/readiness/capability.py,polylogue/readiness/__init__.py,polylogue/cli/commands/status.py,tests/unit/core/test_readiness_capability.py,tests/unit/cli/test_status.py,polylogue/daemon/status.py.Files changed:
polylogue/readiness/capability.py,polylogue/readiness/__init__.py,polylogue/cli/commands/status.py,tests/unit/core/test_readiness_capability.py,tests/unit/cli/test_status.py.Old surface removed or retained: retained existing status/archive readiness surfaces; added canonical component entries only.
Contracts/tests added: adapter tests for assertion/transform readiness; direct status JSON tests for ready and missing states.
Generated artifacts updated: none; render/topology checks stayed clean.
Verification commands and results: listed above.
Known caveats / SPEC_MISMATCH: daemon/web readiness is not changed because those payloads do not currently include bounded assertion counts or transform registry/session capability details.
Follow-up intentionally not included: daemon/web/MCP projection for assertion/transform readiness once their payload seams carry the same bounded counts.
Ref #1832
Summary by CodeRabbit
New Features
Tests