Skip to content

feat: add product readiness status reports - #380

Merged
Sinity merged 1 commit into
masterfrom
feature/feat/product-readiness-status
Apr 23, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/feat/product-readiness-status

Conversation

@Sinity

@Sinity Sinity commented Apr 23, 2026

Copy link
Copy Markdown
Owner

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

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
@coderabbitai

coderabbitai Bot commented Apr 23, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 24 minutes and 5 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 53322292-5b0e-4589-9a3d-3b9045980b3b

📥 Commits

Reviewing files that changed from the base of the PR and between a6c00af and 221190c.

📒 Files selected for processing (11)
  • docs/cli-reference.md
  • docs/test-quality-workflows.md
  • docs/verification-catalog.md
  • polylogue/cli/commands/products.py
  • polylogue/facade_archive.py
  • polylogue/operations/archive.py
  • polylogue/product_readiness.py
  • tests/baselines/showcase/help-products-status.txt
  • tests/baselines/showcase/help-products.txt
  • tests/unit/cli/test_products.py
  • tests/unit/core/test_product_readiness.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/feat/product-readiness-status

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Sinity
Sinity merged commit 820a2cb into master Apr 23, 2026
9 of 12 checks passed
@Sinity
Sinity deleted the feature/feat/product-readiness-status branch April 23, 2026 05:15

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread polylogue/product_readiness.py Resolved
Comment thread polylogue/product_readiness.py Resolved
@Sinity

Sinity commented Apr 28, 2026

Copy link
Copy Markdown
Owner Author

🤖 Post-hoc audit note: this PR received bot review feedback verified against current HEAD as part of #544. 2 finding(s) confirmed still present → tracked in #550.

@Sinity
Sinity requested a review from Copilot May 1, 2026 00:44
@Sinity
Sinity requested review from Copilot and removed request for Copilot May 1, 2026 01:05
Sinity added a commit that referenced this pull request May 7, 2026
## 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
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

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.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: report product materialization coverage and readiness

1 participant