2.6.1 Quality tree
| Quality goal | Attribute | Measure |
|---|---|---|
| Extensibility | Add a plugin without touching the kernel | One package and one config/plugins.ts entry |
| Isolation | Kernel independence | The kernel imports no concrete plugin and no domain term |
| Replaceability | Swap a mock for a real provider | No change to plugin UI contracts |
| Maintainability | Verified changes | pnpm lint, pnpm typecheck, and pnpm test pass in CI |
2.6.2 Quality scenarios
| ID | Scenario | Expected response |
|---|---|---|
| QS-1 | A developer registers a plugin whose ID already exists. | The registry throws PluginRegistryError and keeps the first plugin. |
| QS-2 | Two plugins declare the same route path or permission ID. | The registry rejects the second plugin with a conflict error that names the first. |
| QS-3 | Code requests a lifecycle transition that is not allowed, such as activating a registered plugin. | The manager throws PluginLifecycleError with code INVALID_TRANSITION. |
| QS-4 | A plugin reads or writes a setting it did not declare. | The configuration service throws PluginConfigurationError. |
| QS-5 | A user without the session cookie requests /launcher or a demo. | The middleware redirects to /login. |
