Close heading injection and exempt code-fetched rendered strings - #16
Merged
Conversation
…hed strings the memo already prints. Co-authored-by: Cursor <cursoragent@cursor.com>
|
| Filename | Overview |
|---|---|
| src/coldscreen/language.py | Adds whitespace collapse, widened code-fetched exemptions, and opener-pinned claims-table region detection without an accepted defect. |
| scripts/check_language.py | Re-verifies new exemption classes against sibling evidence before applying them to memo and casefile scans. |
| src/coldscreen/render.py | Collapses pre-table fields at render time, including stored casefiles used by rerender paths. |
| src/coldscreen/synthesis.py | Applies widened fetched-string exemptions and stores heading-sensitive fields in collapsed form. |
| src/coldscreen/pipeline.py | Passes the widened fetched-string set into the whole-memo language backstop. |
| tests/test_language.py | Adds extensive regression coverage for heading boundaries and evidence-backed exemption classes. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Casefile and fetched evidence] --> B[Render memo]
B --> C[Collapse pre-table fields]
C --> D[Locate claims-table heading]
D --> E{Template opener follows?}
E -- Yes --> F[Apply claim exemptions inside table region]
E -- No --> G[Apply no claim exemptions]
A --> H[Build code-fetched exemption set]
H --> I[Apply exact span exemptions]
F --> J[Language backstop]
G --> J
I --> J
J --> K{Banned terms remain?}
K -- Yes --> L[Reject memo]
K -- No --> M[Allow memo]
Reviews (1): Last reviewed commit: "Stop a rationale from stealing the claim..." | Re-trigger Greptile
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.
Summary
QUERY_CATEGORIESstay gated.Test plan
ruff check,ruff format --check,mypy,python scripts/check_language.py1 Scam Passagescreens and model prosescamstill fails