Repository navigation
M7: IdentityIntegrity Addendum 1 — review fixes + scan-all pre-send gate - #34
Merged
Merged
Conversation
Implements docs/m7_identity_integrity_ruling_addendum_1.md (LOCKED 2026-07-17), the verified response to an external technical review of #33: - A1: declared_handle is required — MoltbookClient fails closed (ValueError) instead of running the identity gate against a {""} baseline. - A2: multi-word display names supported — bounded 4-token self-naming capture + bidirectional leading-token-prefix comparison. Fixes the truthful "My name is Continuum Guardian" self-DoS false positive. - A3: role-negation regex anchored both ends ("art" no longer matches "I am not an artist"). - A4: quoted/reported speech documented as a named gap, pinned xfail(strict); quote-exclusion zones deliberately not implemented (evasion channel). - A5: pre-send gate is now scan-all-then-block per v0.1 Q1 ("no violation is silently dropped"): all detectors run, every finding latches, link log always written, then one raise, most severe first. The resolver now sees the full co-active set for a multi-violation message. - A6: consistency-vs-authenticity scope distinction documented in the addendum. Post-lock implementation note: A2 has a pinned residual gap — truncating a multi-word name and continuing unpunctuated pollutes the capture and false-positives (xfail-pinned; capitalization-gated continuation is the candidate v1.1 fix). Tests 330 + 4 xfail -> 344 passed + 6 xfail. README/CLAUDE.md stale "278 tests" corrected; M7 status row added to the README build table. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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
Implements Addendum 1 to the IdentityIntegrity ruling (
docs/m7_identity_integrity_ruling_addendum_1.md, LOCKED 2026-07-17) — the verified response to an external technical review of #33. Every review claim was checked against the actual code before being accepted; the addendum records what survived, what was rejected, and why.Changes
declared_handlerequired — client fails closed (ValueError) instead of running the identity gate against a{""}baseline. Auto-disable explicitly rejected.moltbook/client.pymoltbook/detector.pyartno longer matches "I am not an artist".moltbook/detector.pyxfail(strict). Quote-exclusion zones deliberately NOT implemented — an exclusion zone is an evasion channel.KeyLeakBlocked>LinkBlocked>IdentityDriftBlocked). The resolver now sees the full co-active set for a multi-violation message; previously a credential hit hid link/identity findings and skipped the link log entirely.moltbook/client.pyAlso: README/CLAUDE.md stale "278 tests" corrected; M7 status row added to the README build table; grammar verification recorded that the
arbiterblock (Ruling 9.7) is a real lark keyword distinct from the retired "Arbiter" component name.Known gap discovered during implementation (pinned)
A2 residual: truncating a multi-word declared name and continuing the sentence without punctuation ("my name is Continuum and I audit constraints") pollutes the capture and false-positives — mechanically indistinguishable from a divergent name ("Continuum Destroyer") in v1. Pinned by
xfail(strict)and documented as a post-lock implementation note in the addendum; capitalization-gated token continuation is the candidate v1.1 fix.Tests
330 passed + 4 xfail→344 passed + 6 xfail(+14 tests: A1×3, A2×5, A3×2, A4 clean-pass, A5×3; +2 strict xfail pins: A4 quoted-speech, A2 residual). Credential/link suites updated to construct clients with a handle (required by A1) via the same_clienthelper pattern. Full suite green locally in 4.73s.🤖 Generated with Claude Code