Skip to content

chore: Prune a fully stale legacy-prose-logging anchor - #5127

Merged
Sinity merged 1 commit into
masterfrom
chore/prune-stale-prose-anchor
Sep 14, 2026
Merged

Sinity merged 1 commit into
masterfrom
chore/prune-stale-prose-anchor

Conversation

@Sinity

@Sinity Sinity commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Summary

devtools gate patterns reports one entry under stale_matches:

legacy-prose-logging polylogue/storage/raw_reconciler.py:85b335906ac0af77902886854638b6240bfe3049

polylogue/storage/raw_reconciler.py has zero current matches for that rule — the prose logging it permitted is gone, but the baseline still grants it. The ratchet therefore carries one unit of debt that does not exist.

Found during security-finding triage, flagged as inherited from master rather than introduced by that work.

Solution

Delete the anchor. gate patterns now reports stale_matches: [].

This is a full prune, not a partial one. The distinction matters: deleting an anchor whose matches have only partly disappeared would turn the surviving matches into a new violation, because the anchor is what permits them. That case wants a decremented count. Here the anchor matches nothing at all, so the line goes.

Verification

devtools gate patterns    → violations: 0, stale_matches: []
devtools verify --quick   → exit 0

Residual

polylogue-qai7u tracks a larger instance of the same shape: 143 sites of phantom headroom across 58 files in the sqlite-degradation baseline, 31 of which name files with no handler at all. That prune is separate because it follows the count→content-anchor conversion in #5096.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK

polylogue/storage/raw_reconciler.py carried a baselined anchor with zero
current matches -- gate patterns reported it under stale_matches. The
debt it permitted no longer exists, so the ratchet shrinks by one with
no code change.

The whole anchor is dead, not partially matched, so deleting the line is
correct here. Deleting an anchor whose matches have only partly gone
would turn the remainder into a new violation; that case wants a
decremented count instead.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: d63e107d-c84d-4ea2-8275-530d01432b36

📥 Commits

Reviewing files that changed from the base of the PR and between a59bdb4 and db71241.

📒 Files selected for processing (1)
  • devtools/patterns/baselines/legacy-prose-logging.txt

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-14T18:09:00.743576Z db71241 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Sinity
Sinity merged commit 9f690eb into master Sep 14, 2026
3 checks passed
@Sinity
Sinity deleted the chore/prune-stale-prose-anchor branch September 14, 2026 18:23
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.

1 participant