@herjarsa/omo-meta-governor 0.36.2 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > **12 custom tools** the agent can invoke across CodeGraph, Graphify,
6
6
  > AgentMemory, and SQLite — for cheaper, more accurate code understanding.
7
7
 
8
- **Current version:** `0.35.9` · **License:** MIT · **Status:** stable
8
+ **Current version:** `0.37.0` · **License:** MIT · **Status:** stable
9
9
 
10
10
  ---
11
11
 
@@ -0,0 +1,47 @@
1
+ /**
2
+ * v0.37.0 (audit enforcement) — MCP enforcement resources for OpenChamber.
3
+ *
4
+ * Bug (audit v2 P0-2): In OpenChamber (HTTP mode), the plugin factory never
5
+ * runs. Only MCP tools are exposed. All text-based instructions (Oracle rule 4,
6
+ * agentmemory rule 8, skill-priming) live in `output.messages.push` /
7
+ * `system.transform` which require plugin hooks. OpenChamber receives ZERO
8
+ * enforcement.
9
+ *
10
+ * Fix: expose the rules as MCP resources that the agent can `resources/read`
11
+ * at startup. Works in both plugin-CLI and OpenChamber modes.
12
+ *
13
+ * Contract:
14
+ * - `meta-governor://rules/oracle` → Oracle gate rule text
15
+ * - `meta-governor://rules/agentmemory` → omo_remember rule text
16
+ * - `meta-governor://rules/skill-priming` → skill discovery rule text
17
+ * - `meta-governor://rules/protocol` → Sisyphus protocol enforcement rules
18
+ *
19
+ * The returned text uses a `[SYSTEM-NUDGE]` prefix the LLM can detect.
20
+ */
21
+ export declare const ENFORCEMENT_RESOURCE_URIS: readonly ["meta-governor://rules/oracle", "meta-governor://rules/agentmemory", "meta-governor://rules/skill-priming", "meta-governor://rules/protocol"];
22
+ export type EnforcementResourceUri = (typeof ENFORCEMENT_RESOURCE_URIS)[number];
23
+ /**
24
+ * Build the Oracle gate rule (v0.29.0 post-task Oracle verification).
25
+ * Same text as `protocol-enforcer.ts:71-78` but standalone and exposed via MCP resource.
26
+ */
27
+ export declare function buildOracleRule(): string;
28
+ /**
29
+ * Build the agentmemory / omo_remember rule.
30
+ * Directs the LLM to use the plugin's `omo_remember` tool (NOT raw
31
+ * `agentmemory_memory_save` MCP) to persist lessons cross-session.
32
+ */
33
+ export declare function buildAgentMemoryRule(): string;
34
+ /**
35
+ * Build the skill-priming rule (v0.33.1 skill-hub routing).
36
+ * Directs the LLM to discover skills via the catalog before implementation.
37
+ */
38
+ export declare function buildSkillPrimingRule(): string;
39
+ /**
40
+ * Build the Sisyphus protocol enforcement rules (consolidated).
41
+ */
42
+ export declare function buildProtocolRule(): string;
43
+ /**
44
+ * v0.37.0: read an enforcement resource by URI. Pure function for testability.
45
+ * Returns null on unknown URI (the MCP server treats this as a 404).
46
+ */
47
+ export declare function readEnforcementResource(uri: string): string | null;