Repository navigation
refactor(archive): own tail overlay metadata - #669
Conversation
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ 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 (8)
✨ 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. Review rate limit: 0/1 reviews remaining, refill in 32 minutes and 31 seconds.Comment |
Polylogue Proof PackRefs: Affected Domains
Required Gates
Known Gaps
Oracle / Cost
|
There was a problem hiding this comment.
Pull request overview
Moves the tail-overlay metadata contract out of the polylogue.lib root and into the archive conversation domain, aligning ownership with the pipeline/runtime path that produces and consumes this provenance/freshness metadata (ref #635).
Changes:
- Introduces
polylogue.archive.conversation.tail_overlay(TailOverlayInfo + provider_meta parse/augment helpers). - Updates pipeline/runtime/surface typing imports to reference the new archive-owned module.
- Updates topology targets/status and the topology projection generator to reflect the move out of lib-root primitives.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| polylogue/surfaces/payloads.py | Updates surface payload typing import to the archive-owned tail overlay contract. |
| polylogue/pipeline/tail_overlay.py | Switches tail overlay execution to import TailOverlayInfo/helpers from archive.conversation. |
| polylogue/archive/conversation/tail_overlay.py | Adds the new archive-owned tail overlay metadata contract + parse/augment helpers. |
| polylogue/archive/conversation/summary_runtime.py | Updates runtime mixin import for tail overlay parsing/types. |
| polylogue/archive/conversation/runtime.py | Updates runtime mixin import for tail overlay parsing/types. |
| docs/topology-status.md | Regenerates topology status counts reflecting the moved file. |
| docs/plans/topology-target.yaml | Declares the new archive conversation file and removes the old lib-root primitive entry. |
| devtools/build_topology_projection.py | Removes tail_overlay.py from the lib-root primitives list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
## Summary Move tail-overlay metadata contracts from `polylogue.lib` into archive conversation ownership. ## Problem Tail-overlay payload parsing and provider-meta augmentation describe archive conversation freshness/provenance. The execution path already lives in `polylogue.pipeline.tail_overlay`, but the metadata contract still sat in the generic `lib` root. ## Solution - Rename `polylogue/lib/tail_overlay.py` to `polylogue/archive/conversation/tail_overlay.py`. - Update archive runtime models, pipeline overlay execution, and shared surface payloads to import the archive owner. - Remove the file from the remaining `lib-root` topology primitive list and regenerate topology docs. Ref #635 ## Verification - `devtools build-topology-projection && devtools verify-topology` — realized=696 declared=696 blocking=False - `ruff check polylogue/ tests/ devtools/` — all checks passed - `mypy polylogue/` — no issues found in 696 source files - `pytest -q tests/unit/pipeline/test_tail_overlay_runtime.py tests/unit/cli/test_query_fmt.py tests/unit/mcp/test_tool_contracts.py` — 108 passed - `devtools render-all --check` — sync OK - pre-push `devtools verify --quick` — all checks passed
Summary
Move tail-overlay metadata contracts from
polylogue.libinto archive conversation ownership.Problem
Tail-overlay payload parsing and provider-meta augmentation describe archive conversation freshness/provenance. The execution path already lives in
polylogue.pipeline.tail_overlay, but the metadata contract still sat in the genericlibroot.Solution
polylogue/lib/tail_overlay.pytopolylogue/archive/conversation/tail_overlay.py.lib-roottopology primitive list and regenerate topology docs.Ref #635
Verification
devtools build-topology-projection && devtools verify-topology— realized=696 declared=696 blocking=Falseruff check polylogue/ tests/ devtools/— all checks passedmypy polylogue/— no issues found in 696 source filespytest -q tests/unit/pipeline/test_tail_overlay_runtime.py tests/unit/cli/test_query_fmt.py tests/unit/mcp/test_tool_contracts.py— 108 passeddevtools render-all --check— sync OKdevtools verify --quick— all checks passed