TASK-33d49b5b: prove owner reply refusal invariance

This commit is contained in:
thePR0M3TH3AN committed 2026-10-03 18:41:28 -04:00
1 parent 4214217840
commit d3b37a662f
1 file changed
+9 -1
+9 -1
View File
@@ -120,6 +120,13 @@ test('SCN-mcp-owner-reply-public-boundary: a bound MCP identity can reply only t
await workerMcp.close();
}
control = openControlPlane({ repositoryRoot: fixture.root, env: fixture.env });
const beforeWrongActor = {
audit: control.readAudit().length,
replies: control.readOwnerConversation({ actorId: 'owner', requestId: request.id, limit: 10 }).replies.length,
};
control.close();
const otherMcp = await connectMcp({ ...fixture, actorId: fixture.other });
try {
const wrongActor = await otherMcp.request('tools/call', {
@@ -132,6 +139,7 @@ test('SCN-mcp-owner-reply-public-boundary: a bound MCP identity can reply only t
}
control = openControlPlane({ repositoryRoot: fixture.root, env: fixture.env });
assert.equal(control.readOwnerConversation({ actorId: 'owner', requestId: request.id, limit: 10 }).replies.length, 1);
assert.equal(control.readAudit().length, beforeWrongActor.audit);
assert.equal(control.readOwnerConversation({ actorId: 'owner', requestId: request.id, limit: 10 }).replies.length, beforeWrongActor.replies);
control.close();
});