mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
feat(local): fence reconciliation completion
This commit is contained in:
@@ -2158,7 +2158,12 @@ test('confines reconciliation automation apply authority to exact coordinators',
|
||||
root,
|
||||
'packages/ql3-local-owner-cli/src/deployment/reconciliation/application/automation',
|
||||
);
|
||||
const completionDirectory = path.join(
|
||||
root,
|
||||
'packages/ql3-local-owner-cli/src/deployment/reconciliation/completion',
|
||||
);
|
||||
fs.mkdirSync(automationDirectory, { recursive: true });
|
||||
fs.mkdirSync(completionDirectory, { recursive: true });
|
||||
fs.writeFileSync(
|
||||
path.join(automationDirectory, 'decisionCoordinator.ts'),
|
||||
[
|
||||
@@ -2182,6 +2187,14 @@ test('confines reconciliation automation apply authority to exact coordinators',
|
||||
path.join(automationDirectory, 'applyEvidence.ts'),
|
||||
"import type { Evidence } from '@qinglong/local-sqlite/rollout-safety';",
|
||||
);
|
||||
fs.writeFileSync(
|
||||
path.join(completionDirectory, 'coordinator.ts'),
|
||||
"import { inspect } from '@qinglong/local-sqlite/rollout-safety';",
|
||||
);
|
||||
fs.writeFileSync(
|
||||
path.join(completionDirectory, 'neighbor.ts'),
|
||||
"import { backup } from '@qinglong/local-sqlite/rollout-safety';",
|
||||
);
|
||||
fs.writeFileSync(
|
||||
path.join(automationDirectory, 'neighbor.ts'),
|
||||
[
|
||||
@@ -2224,6 +2237,11 @@ test('confines reconciliation automation apply authority to exact coordinators',
|
||||
file: 'packages/ql3-local-owner-cli/src/deployment/reconciliation/application/automation/neighbor.ts',
|
||||
specifier: '@qinglong/runtime-core/security',
|
||||
},
|
||||
{
|
||||
code: 'FORBIDDEN_LOCAL_ADOPTION_CLI_AUTHORITY_IMPORT',
|
||||
file: 'packages/ql3-local-owner-cli/src/deployment/reconciliation/completion/neighbor.ts',
|
||||
specifier: '@qinglong/local-sqlite/rollout-safety',
|
||||
},
|
||||
],
|
||||
);
|
||||
});
|
||||
|
||||
@@ -207,10 +207,10 @@ test('current QL3 workspace has exactly eighteen reviewed package boundaries', (
|
||||
rootSourceFileRoles: localOwnerCli.rootSourceFileRoles,
|
||||
},
|
||||
{
|
||||
sourceFiles: 169,
|
||||
sourceFiles: 172,
|
||||
rootSourceFiles: 1,
|
||||
rootSourceLines: 50,
|
||||
nestedSourceFiles: 168,
|
||||
nestedSourceFiles: 171,
|
||||
rootSourceFileRoles: { 'cli.ts': 'binary_entry' },
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user