feat: add citation profile split#338
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 080e519918
ℹ️ 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".
| text = path.read_text(encoding="utf-8") | ||
| except (OSError, UnicodeDecodeError) as exc: | ||
| raise ReportBundleProjectionError(f"reader delivery artifact is unreadable: {rel}: {exc}") from exc | ||
| result = detect_reader_residue(text, artifact=rel) |
There was a problem hiding this comment.
Add span-ID residue checks before packaging delivery
When a finalized reader artifact contains an audit-only Evidence Span Registry ID such as ESP-001-01, this new bundle scan still passes because detect_reader_residue does not match ESP-* span IDs. In workspaces where audited markdown accidentally leaves a span ID in the reader text, packs bundle --write-archives can produce a delivery archive that violates the citation-profile contract that reader delivery must not expose span IDs; extend the reader-residue detector before treating this scan as clean.
Useful? React with 👍 / 👎.
Summary
Boundaries
Validation