Coverage for src/governed_harness/plugins/registry.py: 86%
7 statements
« prev ^ index » next coverage.py v7.17.2, created at 2026-11-12 16:06 +0000
« prev ^ index » next coverage.py v7.17.2, created at 2026-11-12 16:06 +0000
1from __future__ import annotations
3from governed_harness.plugins.protocol import PluginDescriptor
5_FILESYSTEM_READ = "filesystem.read"
6_PROCESS_EXECUTE = "process.execute"
9class PluginRegistry:
10 def list(self) -> tuple[PluginDescriptor, ...]:
11 return (
12 PluginDescriptor(
13 pluginId="profile/python",
14 pluginVersion="1.0.0",
15 protocolVersion="1.0",
16 operations=("detect", "plan", "execute"),
17 capabilities=(_FILESYSTEM_READ, _PROCESS_EXECUTE),
18 resultSchemas=("validation-result@1",),
19 ),
20 PluginDescriptor(
21 pluginId="profile/node",
22 pluginVersion="1.0.0",
23 protocolVersion="1.0",
24 operations=("detect", "plan", "execute"),
25 capabilities=(_FILESYSTEM_READ, _PROCESS_EXECUTE),
26 resultSchemas=("validation-result@1",),
27 ),
28 PluginDescriptor(
29 pluginId="agent/simulated",
30 pluginVersion="1.0.0",
31 protocolVersion="1.0",
32 operations=("plan", "execute"),
33 capabilities=(_FILESYSTEM_READ, "filesystem.write", _PROCESS_EXECUTE),
34 resultSchemas=("agent-invocation@1",),
35 ),
36 )