mindspace: close authority boundaries

This commit is contained in:
john
2026-07-27 15:34:35 +08:00
parent dfab78c75a
commit e94052ff24
78 changed files with 11962 additions and 2162 deletions
@@ -19,11 +19,32 @@ run('MindSpace publish + chat finish unit tests', [
'--test',
'mindspace-public-finish-sync.test.mjs',
'mindspace-h5-html-finish-guard.test.mjs',
'mindspace-chat-save-service.test.mjs',
'mindspace-conversation-package-artifact-service.test.mjs',
'mindspace-workspace-publication-delivery-service.test.mjs',
'mindspace-workspace-tool-service.test.mjs',
'mindspace-mcp-scoped-token.test.mjs',
'mindspace-sandbox-mcp.test.mjs',
'capabilities.test.mjs',
'server/portal-workspace-publication-delivery.test.mjs',
'server/portal-publication-routes.test.mjs',
'server/portal-mindspace-asset-routes.test.mjs',
'server/portal-agent-job-routes.test.mjs',
'server/portal-gateway-services-bootstrap.test.mjs',
'conversation-display.test.mjs',
'chat-finish-sync.test.mjs',
]);
run('chat finish sync source guards', ['scripts/verify-chat-finish-sync.mjs']);
run(
withRuntime
? 'MindSpace authority source and runtime guards'
: 'MindSpace authority source guards',
[
'scripts/verify-mindspace-authority-boundary.mjs',
...(withRuntime ? ['--with-runtime'] : []),
],
);
if (withRuntime) {
run('public finish sync runtime guard', ['scripts/verify-public-finish-sync-runtime.mjs']);