fix(coding): remediate ML-07 plugin authority
This commit is contained in:
@@ -81,6 +81,22 @@ describe('ProjectPluginService', () => {
|
||||
await expect(stat(selectionPath(root))).rejects.toMatchObject({ code: 'ENOENT' });
|
||||
});
|
||||
|
||||
it('does not turn a new Skill assignment into legacy plugin enablement', async () => {
|
||||
const root = await project();
|
||||
const service = new ProjectPluginService();
|
||||
await expect(service.readSelection(root)).resolves.toMatchObject({
|
||||
source: 'none', enabledPluginIds: [],
|
||||
});
|
||||
await createCodingProjectAgent(root, {
|
||||
id: 'builder', avatarId: 'avatar-01', roleName: 'Builder', name: 'Builder',
|
||||
model: null, modelResolution: 'required', skillIds: ['data-service'],
|
||||
responsibility: { mission: 'Build', owns: [], boundaries: [], collaborators: [], principles: [] },
|
||||
});
|
||||
await expect(service.readSelection(root)).resolves.toMatchObject({
|
||||
source: 'none', enabledPluginIds: [], legacyProjectedPluginIds: [],
|
||||
});
|
||||
});
|
||||
|
||||
it('writes deterministic, atomic selection and preserves unknown IDs', async () => {
|
||||
const root = await project();
|
||||
await writeFile(selectionPath(root), JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user