Skip to content

M7: IdentityIntegrity Addendum 1 — review fixes + scan-all pre-send gate - #34

Merged
GodSpeed313 merged 1 commit into
mainfrom
m7-identity-addendum-1
Jul 17, 2026
Merged

GodSpeed313 merged 1 commit into
mainfrom
m7-identity-addendum-1

Conversation

@GodSpeed313

Copy link
Copy Markdown
Owner

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

Item What Where
A1 declared_handle required — client fails closed (ValueError) instead of running the identity gate against a {""} baseline. Auto-disable explicitly rejected. moltbook/client.py
A2 Multi-word display names: bounded 4-token self-naming capture + bidirectional leading-token-prefix comparison. Fixes the truthful "My name is Continuum Guardian" self-DoS false positive (which undermined §6's severity-confidence pairing). moltbook/detector.py
A3 Role-negation regex anchored both ends — declared role art no longer matches "I am not an artist". moltbook/detector.py
A4 Quoted/reported speech documented as a named gap, pinned xfail(strict). Quote-exclusion zones deliberately NOT implemented — an exclusion zone is an evasion channel. tests + addendum
A5 Pre-send gate is now scan-all-then-block, grounded in v0.1 Q1 ("no violation is silently dropped"): all detectors run, every finding latches, link log always written, then one raise, most severe first (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.py
A6 Consistency-vs-authenticity scope distinction: v1 guarantees the agent stayed consistent with its session-start baseline, not that the baseline was legitimate. Baseline trust establishment is a named v1.1+ item. addendum (doc-only)

Also: README/CLAUDE.md stale "278 tests" corrected; M7 status row added to the README build table; grammar verification recorded that the arbiter block (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 _client helper pattern. Full suite green locally in 4.73s.

🤖 Generated with Claude Code

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>
@GodSpeed313
GodSpeed313 merged commit c5f51aa into main Jul 17, 2026
2 checks passed
@GodSpeed313
GodSpeed313 deleted the m7-identity-addendum-1 branch July 17, 2026 06:16
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