Repository navigation
Preserve technical literals in publication DLP - #359
Merged
Merged
Conversation
xeonvs
marked this pull request as ready for review
December 1, 2026 15:08
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Publication DLP
Addresses #358 for v0.16.1. A review finding can quote two calendar-valid ISO dates, a Unicode heading in a local Markdown link, or a supported binary-size assignment and still reach the report. The fix is limited to publication. It preserves the original quoted text and the existing omission diagnostics.
The publication regression starts with five findings over an immutable synthetic Git diff. Three technical findings reach both JSON and Markdown. Two containing a contact or credential are omitted, including their locations. The offline audit corpus exercises the same inputs.
Review and validation
The full local
scripts/quality.sh checkpassed on macOS with the native OCR opt-in variables unset: 6,434 passed, 87 skipped, 360 subtests passed. The added default tests cover publication filtering, private context readback, cleanup and guarded retry. On the same runtime revision the group covering the review runner, context broker, store, DLP admission and approval improved from 85.23% to 88.08% (85% minimum). The review runner improved from 83.00% to 85.79%, the context store from 82.56% to 89.29%, and overall coverage from 88.44% to 88.79%.Local OCR completed all eight selected groups on the runtime commit, with one admitted diagram. The follow-up commits document the conservative cases and add tests. The release integration depends on #357 enabling the build and CodeQL workflows for PRs targeting dev. Refresh against dev and verify all twelve required checks after that change lands.
Publication checks for technical literals
flowchart LR n0["Recognize dated local anchors and preserve letters through projection"] n1["Recognize complete calendar-valid ranges in phone checks"] n2["Keep safe findings and omit findings with sensitive material"] n3["Check finding text for independent credential and contact signals"] n4["Preserve operators in complete standalone or exact inline assignments"] n0 --> n2 n1 --> n2 n3 --> n0 n3 --> n1 n3 --> n4 n4 --> n2