principles-disciple 1.228.2 → 1.229.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/dist/bundle.js +450 -450
- package/dist/constants/tool-semantics.d.ts +36 -0
- package/dist/governance-audit.js +143 -143
- package/dist/openclaw.plugin.json +1 -1
- package/dist/rulehost-evidence.js +162 -162
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenClaw Tool Semantic Declaration — PRI-634-F Phase 1, revised in R2
|
|
3
|
+
*
|
|
4
|
+
* PURPOSE: the OpenClaw host layer of the Tool Semantic Registry. The raw
|
|
5
|
+
* tool names derive from the ONE existing tool vocabulary in this package
|
|
6
|
+
* (constants/tools.ts) so the host never maintains a second name list; only
|
|
7
|
+
* the raw→canonicalKind axis is declared here.
|
|
8
|
+
*
|
|
9
|
+
* R2 REVIEW FIX (semantic resolvability ≠ host existence): the declaration
|
|
10
|
+
* covers ONLY tools the OpenClaw hook actually ROUTES to the RuleHost gate
|
|
11
|
+
* (write / bash / agent families — hooks/gate.ts returns early for anything
|
|
12
|
+
* else). `hasHostTool` on the resulting registry therefore means "a rule
|
|
13
|
+
* matching this name can really fire in OpenClaw production". Read/search
|
|
14
|
+
* family names stay OUT: they are real OpenClaw tools but never reach the
|
|
15
|
+
* gate, so rules declared against them would pass replay and silently never
|
|
16
|
+
* trigger. Their semantic classification still resolves via the core
|
|
17
|
+
* baseline (read_file/grep/glob/...) where history facts need it.
|
|
18
|
+
*
|
|
19
|
+
* Ownership (SPEC §5): core owns CanonicalKind + the host-neutral baseline
|
|
20
|
+
* (generic LLM vocabulary); THIS module owns the OpenClaw raw tool names.
|
|
21
|
+
* buildToolSemanticRegistry layers host mappings over the baseline (host wins
|
|
22
|
+
* on conflict).
|
|
23
|
+
*
|
|
24
|
+
* Consumed by:
|
|
25
|
+
* - the internalization auto-consumer cycle (activation-gate replay parity)
|
|
26
|
+
* - hooks/gate.ts (production action snapshots)
|
|
27
|
+
* - core/rule-context-assembler.ts (production RuleContextV2 facts)
|
|
28
|
+
* - host-runtime/openclaw-host-runtime.ts (shared production gate)
|
|
29
|
+
*
|
|
30
|
+
* Fail loud at module load if the derived declaration is invalid — a broken
|
|
31
|
+
* static declaration is a programming error, not a runtime condition (rc-3).
|
|
32
|
+
*/
|
|
33
|
+
import { type ToolSemanticMappingV1, type ToolSemanticRegistry } from '@principles/core/runtime-v2';
|
|
34
|
+
export declare const OPENCLAW_TOOL_SEMANTIC_MAPPINGS: readonly ToolSemanticMappingV1[];
|
|
35
|
+
/** The OpenClaw ToolSemanticRegistry — ONE instance shared by replay and production. */
|
|
36
|
+
export declare const OPENCLAW_TOOL_SEMANTICS: ToolSemanticRegistry;
|