Repository navigation
feat: add product readiness status reports - #380
Conversation
Problem: downstream consumers and deployment/export gates needed a typed way to determine whether derived products are present, current, complete, and compatible without reimplementing SQLite inspections. What changed: added a reusable product readiness report contract below CLI surfaces, exposed it through operations/facade and polylogue products status, refreshed generated help/proof/showcase surfaces, and covered ready, empty, partial, stale, missing, and legacy states. Verification: devtools verify; devtools verify --quick; pytest -q tests/unit/core/test_product_readiness.py tests/unit/cli/test_products.py; devtools lab-scenario verify-baselines. Closes #376
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 24 minutes and 5 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (11)
✨ 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 221190c4e2
ℹ️ 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".
## Summary Adds a reusable product-readiness report contract and exposes it through `polylogue products status`, the archive operations layer, and the facade. The report covers storage artifacts, provider/date coverage, version compatibility, schema-contract issues, aggregate verdicts, evidence strings, and repair guidance for current derived product families. ## Problem Downstream consumers and deployment/export gates need to know whether Polylogue data products are safe to consume without reimplementing SQLite checks. Existing status surfaces were not enough to distinguish absent tables, empty products, partial materialization, stale rows, legacy materializer versions, or schema-incompatible product tables. ## Solution - Added `polylogue/product_readiness.py` with typed query/report/entry models and readiness specs for session profiles, enrichments, work events, phases, threads, tag rollups, day summaries, week summaries, and provider analytics. - Wired the report through archive operations and `Polylogue.product_readiness_report()` so future export bundles, MCP surfaces, and deployment checks can consume the same contract without scraping CLI output. - Added `polylogue products status` with plain and JSON rendering, root filter inheritance, product aliases, schema-contract issue display, and generated help/proof/showcase updates. - Added unit coverage for ready, empty, partial, stale, missing, and legacy product states plus CLI JSON/plain behavior. ## Verification - `pytest -q tests/unit/core/test_product_readiness.py tests/unit/cli/test_products.py` -> `37 passed` - `devtools lab-scenario verify-baselines` -> `Ran 44 exercises`; `All baselines match` - `devtools verify` -> `all checks passed` - `devtools verify --quick` -> `all checks passed` - pre-push `devtools verify --quick` -> `all checks passed` Closes #376
|
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. |
|
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 a reusable product-readiness report contract and exposes it through
polylogue products status, the archive operations layer, and the facade. The report covers storage artifacts, provider/date coverage, version compatibility, schema-contract issues, aggregate verdicts, evidence strings, and repair guidance for current derived product families.Problem
Downstream consumers and deployment/export gates need to know whether Polylogue data products are safe to consume without reimplementing SQLite checks. Existing status surfaces were not enough to distinguish absent tables, empty products, partial materialization, stale rows, legacy materializer versions, or schema-incompatible product tables.
Solution
polylogue/product_readiness.pywith typed query/report/entry models and readiness specs for session profiles, enrichments, work events, phases, threads, tag rollups, day summaries, week summaries, and provider analytics.Polylogue.product_readiness_report()so future export bundles, MCP surfaces, and deployment checks can consume the same contract without scraping CLI output.polylogue products statuswith plain and JSON rendering, root filter inheritance, product aliases, schema-contract issue display, and generated help/proof/showcase updates.Verification
pytest -q tests/unit/core/test_product_readiness.py tests/unit/cli/test_products.py->37 passeddevtools lab-scenario verify-baselines->Ran 44 exercises;All baselines matchdevtools verify->all checks passeddevtools verify --quick->all checks passeddevtools verify --quick->all checks passedCloses #376