Skip to content

Scope each claim-language allowlist entry to its term - #108

Merged
abrignoni merged 1 commit into
mainfrom
feat/allowlist-term-scope
Aug 29, 2026
Merged

Scope each claim-language allowlist entry to its term#108
abrignoni merged 1 commit into
mainfrom
feat/allowlist-term-scope

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Follow-up to the notes claim-checking work. An ALLOWLIST entry was keyed on (file, artifact_key, field), so it silenced the whole field: allowlisting one word pre-approved every future claim added to the same text.

  • The key now carries the term, so an entry silences the word it was granted for and nothing else.
  • A report names only the terms no entry covers, so a new claim in an already-allowlisted note is reported on its own.
  • Stale detection compares on the term too, and the message names it.

Existing entries keep their effect: each term was derived from what it silences today, so nothing new is reported. Across the five cores 27 entries become 29 tuples, two of them having covered two terms each.

An ALLOWLIST entry was keyed on (file, artifact_key, field), so it silenced the
whole field: allowlisting one word pre-approved every future claim anyone added
to the same text. The key now carries the term, so an entry silences the word it
was granted for and nothing else, and a report names only the terms no entry
covers.

Each existing entry keeps its effect. Its term was derived from what it silences
today, so nothing new is reported: across the five cores 27 entries become 29
tuples, two of them having covered two terms each.

Stale detection compares on the term as well, and the stale message names it. The
shared test pins the new key shape, checks that every entry names a term the
vocabulary can actually produce, and is byte-identical in all five cores.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@abrignoni
abrignoni merged commit e028819 into main Aug 29, 2026
8 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.

1 participant