Repository navigation
feat: widen public archive product surfaces (#378) - #378
Conversation
Problem: archive debt, maintenance rebuilds, and direct export paths existed below the public surfaces, leaving CLI, facade, and MCP consumers with uneven access to durable archive products. What changed: register archive debt as a first-class product type, add facade stats/health/rebuild methods, expose MCP batch tagging, query export, and session-product rebuild tools, and add a direct polylogue export command over the shared formatter. Verification: pytest -q tests/unit/cli/test_export.py tests/unit/cli/test_products.py tests/unit/core/test_facade_api.py tests/unit/mcp/test_server_surfaces.py tests/unit/mcp/test_tool_contracts.py; devtools run-validation-lanes --lane archive-data-products; pytest -q tests/unit/cli/test_terminal_snapshots.py tests/unit/cli/test_click_app.py; devtools verify. Ref #194
|
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 4 minutes and 51 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 (22)
✨ 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: 33cf589ab6
ℹ️ 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: #194 adds archive-debt and export commands that are part of the tier-0 showcase help contract, but their committed baselines still described the older command surface. What changed: Added the new help baselines and refreshed the parent command help snapshots so CI validates the widened public surface. Verification: devtools verify-showcase Ref #194
## Summary Widen the durable archive product surfaces so archive debt, maintenance rebuilds, and direct conversation export are available consistently through the product registry, async facade, CLI, and MCP server. ## Problem Archive debt and session-product rebuild semantics already existed below the public surfaces, but consumers had to know internal operations or use uneven adapters. The product registry did not expose `ArchiveDebtProduct`, the facade lacked explicit stats/health/rebuild methods, MCP had only single-conversation export and single-tag mutation, and the CLI lacked a direct single-ID export command. ## Solution Registered archive debt in `polylogue.products.registry`, which produces `polylogue products debt` and the registry-backed MCP `archive_debt` tool. Added `ArchiveOperations.rebuild_session_products()` plus facade methods `get_archive_stats()`, `health_check()`, and `rebuild_products()`. Added MCP tools for `bulk_tag_conversations`, `rebuild_session_products`, and `export_query_results`, and normalized conversation output formats through the shared formatter. Added root CLI `polylogue export --format <format> <conversation-id>` and regenerated generated docs, quality projections, verification catalog, and terminal snapshots. ## Verification - `pytest -q tests/unit/cli/test_export.py tests/unit/cli/test_products.py tests/unit/core/test_facade_api.py tests/unit/mcp/test_server_surfaces.py tests/unit/mcp/test_tool_contracts.py` -> 160 passed. - `devtools render-all --check` -> all generated surfaces in sync. - `devtools run-validation-lanes --lane archive-data-products` -> 335 passed. - `pytest -q tests/unit/cli/test_terminal_snapshots.py --snapshot-update` -> 10 passed; updated intentional help snapshots. - `pytest -q tests/unit/cli/test_terminal_snapshots.py tests/unit/cli/test_click_app.py` -> 67 passed. - `devtools verify` -> all checks passed. - `git push` pre-push quick baseline -> all checks passed. Closes #194
|
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
Widen the durable archive product surfaces so archive debt, maintenance rebuilds, and direct conversation export are available consistently through the product registry, async facade, CLI, and MCP server.
Problem
Archive debt and session-product rebuild semantics already existed below the public surfaces, but consumers had to know internal operations or use uneven adapters. The product registry did not expose
ArchiveDebtProduct, the facade lacked explicit stats/health/rebuild methods, MCP had only single-conversation export and single-tag mutation, and the CLI lacked a direct single-ID export command.Solution
Registered archive debt in
polylogue.products.registry, which producespolylogue products debtand the registry-backed MCParchive_debttool. AddedArchiveOperations.rebuild_session_products()plus facade methodsget_archive_stats(),health_check(), andrebuild_products(). Added MCP tools forbulk_tag_conversations,rebuild_session_products, andexport_query_results, and normalized conversation output formats through the shared formatter. Added root CLIpolylogue export --format <format> <conversation-id>and regenerated generated docs, quality projections, verification catalog, and terminal snapshots.Verification
pytest -q tests/unit/cli/test_export.py tests/unit/cli/test_products.py tests/unit/core/test_facade_api.py tests/unit/mcp/test_server_surfaces.py tests/unit/mcp/test_tool_contracts.py-> 160 passed.devtools render-all --check-> all generated surfaces in sync.devtools run-validation-lanes --lane archive-data-products-> 335 passed.pytest -q tests/unit/cli/test_terminal_snapshots.py --snapshot-update-> 10 passed; updated intentional help snapshots.pytest -q tests/unit/cli/test_terminal_snapshots.py tests/unit/cli/test_click_app.py-> 67 passed.devtools verify-> all checks passed.git pushpre-push quick baseline -> all checks passed.Closes #194