Repository navigation
Commit bec8b77
committed
refactor(metadata-protocol): add the protocol host and the host-split tool with its closed rewrite set check
protocol-host.ts declares ProtocolHost, the one object a body moved out of
ObjectStackProtocolImplementation reaches the class through.
scripts/host-split.mjs moves a member's body under exactly three rewrites
(this.x -> host.x, a private static call -> host.fn(...), this.constructor
-> host) and checks a moved body is the base body modulo that set, by AST
identity over every token and by text. host-split.test.mjs pins the set,
each refusal and fifteen negative controls.
Claude-Session: https://claude.ai/code/session_01ADHkmR4MjTzeUv5x6tNkbk
Co-authored-by: Claude <noreply@anthropic.com>1 parent 838a802 commit bec8b77
3 files changed
Lines changed: 962 additions & 0 deletions
0 commit comments