Skip to content

refactor(archive): own tail overlay metadata - #669

Merged
Sinity merged 1 commit into
masterfrom
feature/refactor/archive-tail-overlay-contract
May 1, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/refactor/archive-tail-overlay-contract

Conversation

@Sinity

@Sinity Sinity commented May 1, 2026

Copy link
Copy Markdown
Owner

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

Copilot AI review requested due to automatic review settings May 1, 2026 20:59
@coderabbitai

coderabbitai Bot commented May 1, 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 32 minutes and 31 seconds before requesting another review.

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 @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: 5d5d3b26-ed75-4f46-a9da-d66b34e09d00

📥 Commits

Reviewing files that changed from the base of the PR and between 4293f38 and eb746ca.

📒 Files selected for processing (8)
  • devtools/build_topology_projection.py
  • docs/plans/topology-target.yaml
  • docs/topology-status.md
  • polylogue/archive/conversation/runtime.py
  • polylogue/archive/conversation/summary_runtime.py
  • polylogue/archive/conversation/tail_overlay.py
  • polylogue/pipeline/tail_overlay.py
  • polylogue/surfaces/payloads.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/archive-tail-overlay-contract

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
Review rate limit: 0/1 reviews remaining, refill in 32 minutes and 31 seconds.

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

@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

Polylogue Proof Pack

Refs: origin/master..HEAD
Changed paths: 8

Affected Domains

  • architecture_discipline — 2 claim(s), maturity growing
  • docs_media — 0 claim(s), maturity seed
  • spec_completeness — 1 claim(s), maturity seed

Required Gates

  • devtools verify-manifests — structural manifest changed
  • devtools affected-obligations --path devtools/build_topology_projection.py — refresh structural obligation routing
  • devtools verify-topology — topology projection changed
  • devtools affected-obligations --path docs/plans/topology-target.yaml — refresh structural obligation routing
  • devtools affected-obligations --path docs/topology-status.md — refresh structural obligation routing
  • devtools verify --quick — full PR gate remains explicit
  • devtools verify — full PR gate remains explicit
  • devtools build-package — deployment readiness gate; run when packaging or release confidence matters
  • nix flake check — deployment readiness gate; run when packaging or release confidence matters

Known Gaps

  • docs_media: docs_media: No scenario for documentation freshness verification [owner: scenario-coverage; next: Add scenario family or generated projection for this subject], docs_media: README examples and media are not yet generated from executable scenario projections. [owner: docs-media; next: Add executable scenario projection or media integrity gate], docs_media: Screenshots and VHS media have no committed nonblank/readability verification. [owner: docs-media; next: Add executable scenario projection or media integrity gate]

Oracle / Cost

  • oracle mix: {"construction_sanity": 1, "drift_check": 2}
  • cost tier: {"static": 3}
  • stale evidence: 3
  • manual review cells: 0

Copilot AI 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.

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.

@Sinity
Sinity merged commit 84c9d34 into master May 1, 2026
18 checks passed
@Sinity
Sinity deleted the feature/refactor/archive-tail-overlay-contract branch May 1, 2026 21:27
Sinity added a commit that referenced this pull request May 7, 2026
## 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
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.

2 participants