@dirgha/code 1.43.3 → 2.0.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/CHANGELOG.md +22 -0
- package/LICENSE +202 -101
- package/NOTICE +9 -0
- package/README.md +184 -97
- package/THIRD_PARTY_NOTICES.md +28 -0
- package/bin/build-native.mjs +43 -0
- package/bin/dirgha.mjs +241 -0
- package/dist/cli/flows/full-cycle.d.ts +0 -3
- package/dist/cli/flows/full-cycle.js +1 -9
- package/dist/cli/flows/full-cycle.js.map +1 -1
- package/dist/cli/main.js +1 -1
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/slash/index.js +0 -2
- package/dist/cli/slash/index.js.map +1 -1
- package/dist/cli/subcommands/index.js +0 -2
- package/dist/cli/subcommands/index.js.map +1 -1
- package/dist/integrations/entitlements.d.ts +1 -2
- package/dist/integrations/entitlements.js.map +1 -1
- package/dist/integrations/index.d.ts +0 -1
- package/dist/integrations/index.js +0 -1
- package/dist/integrations/index.js.map +1 -1
- package/dist/mcp/mcp-config.js +27 -3
- package/dist/mcp/mcp-config.js.map +1 -1
- package/dist/safety/policy.d.ts +18 -0
- package/dist/safety/policy.js +95 -1
- package/dist/safety/policy.js.map +1 -1
- package/dist/tools/index.d.ts +1 -2
- package/dist/tools/index.js +1 -8
- package/dist/tools/index.js.map +1 -1
- package/extensions/firefox-mv3/background.js +144 -0
- package/extensions/firefox-mv3/content-agent-dom.js +161 -0
- package/extensions/firefox-mv3/lokahi_gate.wasm +0 -0
- package/extensions/firefox-mv3/manifest.json +33 -0
- package/include/dirgha_kernel.h +41 -0
- package/package.json +65 -56
- package/plugins/dsh-plugin-dirgha/cordis.patch.yml +11 -0
- package/plugins/dsh-plugin-dirgha/index.ts +135 -0
- package/plugins/dsh-plugin-dirgha/package.json +18 -0
- package/plugins/robotics-physical-ai/README.md +11 -0
- package/plugins/robotics-physical-ai/mujoco_eval_sidecar.py +848 -0
- package/plugins/robotics-physical-ai/plugin.toml +23 -0
- package/plugins/robotics-skills-pack/README.md +15 -0
- package/plugins/robotics-skills-pack/plugin.toml +36 -0
- package/vendor/rtk/README.md +7 -0
- package/dist/cli/slash/goal.d.ts +0 -14
- package/dist/cli/slash/goal.js +0 -74
- package/dist/cli/slash/goal.js.map +0 -1
- package/dist/cli/slash/gpu.d.ts +0 -11
- package/dist/cli/slash/gpu.js +0 -58
- package/dist/cli/slash/gpu.js.map +0 -1
- package/dist/cli/subcommands/gpu.d.ts +0 -15
- package/dist/cli/subcommands/gpu.js +0 -187
- package/dist/cli/subcommands/gpu.js.map +0 -1
- package/dist/context/goal.d.ts +0 -27
- package/dist/context/goal.js +0 -77
- package/dist/context/goal.js.map +0 -1
- package/dist/gpu/market.d.ts +0 -30
- package/dist/gpu/market.js +0 -120
- package/dist/gpu/market.js.map +0 -1
- package/dist/integrations/bucky-client.d.ts +0 -105
- package/dist/integrations/bucky-client.js +0 -76
- package/dist/integrations/bucky-client.js.map +0 -1
- package/dist/providers/presets.d.ts +0 -30
- package/dist/providers/presets.js +0 -80
- package/dist/providers/presets.js.map +0 -1
- package/dist/tools/goal.d.ts +0 -11
- package/dist/tools/goal.js +0 -69
- package/dist/tools/goal.js.map +0 -1
- package/dist/tools/gpu-compute.d.ts +0 -19
- package/dist/tools/gpu-compute.js +0 -380
- package/dist/tools/gpu-compute.js.map +0 -1
- package/dist/tui/ink/components/GoalIndicator.d.ts +0 -7
- package/dist/tui/ink/components/GoalIndicator.js +0 -34
- package/dist/tui/ink/components/GoalIndicator.js.map +0 -1
- package/vendor/rtk/linux-x64/rtk +0 -0
package/package.json
CHANGED
|
@@ -1,94 +1,103 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dirgha/code",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Dirgha Code v2.0 (2.0.0) — Sovereign Coding CLI & TUI, <1ms Lokahi WASM Capability Firewall, 235+ Provider Router, Physical AI MuJoCo CI, and 29-Tool MCP Server.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "Salik Shah",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Dirgha-AI/dirgha.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/Dirgha-AI/dirgha",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Dirgha-AI/dirgha/issues"
|
|
14
|
+
},
|
|
5
15
|
"type": "module",
|
|
6
16
|
"main": "./dist/index.js",
|
|
7
17
|
"types": "./dist/index.d.ts",
|
|
8
18
|
"bin": {
|
|
9
|
-
"dirgha": "./
|
|
19
|
+
"dirgha": "./bin/dirgha.mjs",
|
|
20
|
+
"dirgha-code": "./bin/dirgha.mjs",
|
|
21
|
+
"dirgha-native-host": "./bin/dirgha.mjs"
|
|
10
22
|
},
|
|
11
23
|
"files": [
|
|
24
|
+
"bin/dirgha.mjs",
|
|
25
|
+
"bin/build-native.mjs",
|
|
12
26
|
"dist/",
|
|
13
27
|
"scaffold-templates/",
|
|
28
|
+
"vendor/",
|
|
29
|
+
"extensions/firefox-mv3/lokahi_gate.wasm",
|
|
30
|
+
"extensions/firefox-mv3/manifest.json",
|
|
31
|
+
"extensions/firefox-mv3/background.js",
|
|
32
|
+
"extensions/firefox-mv3/content-agent-dom.js",
|
|
33
|
+
"include/dirgha_kernel.h",
|
|
34
|
+
"plugins/dsh-plugin-dirgha/",
|
|
35
|
+
"plugins/robotics-physical-ai/plugin.toml",
|
|
36
|
+
"plugins/robotics-physical-ai/mujoco_eval_sidecar.py",
|
|
37
|
+
"plugins/robotics-skills-pack/plugin.toml",
|
|
14
38
|
"README.md",
|
|
15
|
-
"LICENSE",
|
|
16
|
-
"CREDITS.md",
|
|
17
39
|
"CHANGELOG.md",
|
|
18
|
-
"
|
|
40
|
+
"CREDITS.md",
|
|
41
|
+
"LICENSE",
|
|
42
|
+
"NOTICE",
|
|
43
|
+
"THIRD_PARTY_NOTICES.md"
|
|
19
44
|
],
|
|
20
45
|
"scripts": {
|
|
21
|
-
"postinstall": "echo '[dirgha] run \"npx dirgha setup\" to complete setup after install'",
|
|
22
|
-
"postinstall-legacy": "test -d dist && node dist/cli/main.js setup --features --auto 2>/dev/null || true",
|
|
23
46
|
"build": "tsc -p tsconfig.json && node scripts/postbuild.mjs && node scripts/patch-ink-text-input.mjs",
|
|
24
|
-
"build:
|
|
25
|
-
"clean": "rm -rf ./dist",
|
|
26
|
-
"test": "vitest run --dir src",
|
|
27
|
-
"test:cli": "node scripts/qa-app/run-all.mjs",
|
|
28
|
-
"test:cli:offline": "node scripts/qa-app/run-all.mjs --offline",
|
|
29
|
-
"test:tui": "bash scripts/qa-app/picker-flow.sh",
|
|
30
|
-
"test:smoke": "bash scripts/smoke-matrix.sh all",
|
|
31
|
-
"test:agent-db-smoke": "vitest run --dir src regression-smoke",
|
|
47
|
+
"build:native": "node ./bin/build-native.mjs",
|
|
32
48
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"prepublishOnly": "npm run
|
|
36
|
-
"lint": "eslint src --max-warnings 0",
|
|
37
|
-
"lint:fix": "eslint src --fix --max-warnings 0",
|
|
38
|
-
"license-check": "license-checker --production --excludePackages 'argparse@1.0.10' --failOn 'GPL;AGPL;LGPL'",
|
|
39
|
-
"gate": "bash scripts/gate.sh",
|
|
40
|
-
"changelog:update": "node scripts/changelog-bump.mjs"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"ink": "^7.0.2",
|
|
44
|
-
"ink-text-input": "^6.0.0",
|
|
45
|
-
"kokoro-js": "^1.2.1",
|
|
46
|
-
"react": "^19.2.0"
|
|
49
|
+
"test": "vitest run --dir src && node --test ./bin/dirgha.test.mjs",
|
|
50
|
+
"doctor": "node ./bin/dirgha.mjs doctor",
|
|
51
|
+
"prepublishOnly": "npm run build && npm test"
|
|
47
52
|
},
|
|
48
53
|
"optionalDependencies": {
|
|
49
54
|
"@xenova/transformers": "^2.17.2",
|
|
50
55
|
"better-sqlite3": "12.9.0",
|
|
51
56
|
"chokidar": "^5.0.0",
|
|
57
|
+
"kokoro-js": "^1.2.1",
|
|
52
58
|
"sqlite-vec": "^0.1.9"
|
|
53
59
|
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@types/better-sqlite3": "7.6.13",
|
|
56
|
-
"@types/node": "20.11.5",
|
|
57
|
-
"@types/react": "^19.2.0",
|
|
58
|
-
"eslint": "9.39.4",
|
|
59
|
-
"license-checker": "25.0.1",
|
|
60
|
-
"playwright": "^1.59.1",
|
|
61
|
-
"typescript": "^5.9.3",
|
|
62
|
-
"typescript-eslint": "8.59.1",
|
|
63
|
-
"vitest": "3.2.4"
|
|
64
|
-
},
|
|
65
|
-
"overrides": {
|
|
66
|
-
"esbuild": ">=0.25.0",
|
|
67
|
-
"protobufjs": ">=7.5.5"
|
|
68
|
-
},
|
|
69
60
|
"engines": {
|
|
70
|
-
"node": ">=
|
|
61
|
+
"node": ">=22.0.0"
|
|
71
62
|
},
|
|
72
63
|
"keywords": [
|
|
64
|
+
"dirgha",
|
|
73
65
|
"cli",
|
|
74
66
|
"coding-agent",
|
|
75
67
|
"llm",
|
|
76
68
|
"byok",
|
|
77
|
-
"ai",
|
|
78
69
|
"agent",
|
|
79
|
-
"
|
|
70
|
+
"mcp",
|
|
71
|
+
"robotics",
|
|
72
|
+
"mujoco",
|
|
73
|
+
"lerobot",
|
|
74
|
+
"security",
|
|
75
|
+
"sarif",
|
|
76
|
+
"sbom",
|
|
77
|
+
"wasm",
|
|
80
78
|
"openrouter",
|
|
81
79
|
"anthropic",
|
|
82
80
|
"openai"
|
|
83
81
|
],
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
"
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"ink": "^7.0.2",
|
|
84
|
+
"ink-text-input": "^6.0.0",
|
|
85
|
+
"react": "^19.2.0"
|
|
88
86
|
},
|
|
89
|
-
"
|
|
90
|
-
"
|
|
87
|
+
"devDependencies": {
|
|
88
|
+
"@types/better-sqlite3": "7.6.13",
|
|
89
|
+
"@types/node": "20.11.5",
|
|
90
|
+
"@types/react": "^19.2.0",
|
|
91
|
+
"eslint": "9.39.4",
|
|
92
|
+
"license-checker": "25.0.1",
|
|
93
|
+
"playwright": "^1.59.1",
|
|
94
|
+
"typescript": "^5.9.3",
|
|
95
|
+
"typescript-eslint": "8.59.1",
|
|
96
|
+
"vitest": "3.2.4"
|
|
91
97
|
},
|
|
92
|
-
"
|
|
93
|
-
|
|
98
|
+
"overrides": {
|
|
99
|
+
"esbuild": ">=0.25.0",
|
|
100
|
+
"protobufjs": ">=7.5.5",
|
|
101
|
+
"sharp": "^0.35.5"
|
|
102
|
+
}
|
|
94
103
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# DeepSeek Harness (`dsh`) Cordis Bundle Overlay (2.0.0 §4.3)
|
|
2
|
+
# Mounts `dsh-plugin-dirgha` into `dsh` profiles (`web`, `headless`, `sdk`, `acp`)
|
|
3
|
+
plugins:
|
|
4
|
+
- id: dirgha-sovereign-governance
|
|
5
|
+
module: ./index.ts
|
|
6
|
+
config:
|
|
7
|
+
nativeHostBin: "../../target/release/dirgha-native-host.exe"
|
|
8
|
+
lokahiMode: "strict"
|
|
9
|
+
privacyFlowMasking: true
|
|
10
|
+
xirynSlidingWindowMaxImages: 2
|
|
11
|
+
xirynSlidingWindowMaxTools: 6
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `dsh-plugin-dirgha` — Cordis Plugin for DeepSeek Harness (`deepseek-ai/deepseek-harness`).
|
|
3
|
+
*
|
|
4
|
+
* Attaches to `dsh` waterfall hooks (`docs/architecture.md`):
|
|
5
|
+
* 1. `agent/pre-step`: Masks API keys/PII via `PrivacyFlow` (`<SECRET_HANDLE_NN>`) and compacts old screenshots.
|
|
6
|
+
* 2. `tools/pre-execute`: Evaluates every tool call in `<1 ms` via the compiled `lokahi_gate.wasm`
|
|
7
|
+
* C-ABI export `lokahi_c_abi_evaluate_utf8` (with fallback to `dirgha-native-host` RPC).
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import * as fs from "node:fs";
|
|
11
|
+
import * as path from "node:path";
|
|
12
|
+
|
|
13
|
+
export interface DirghaCordisConfig {
|
|
14
|
+
nativeHostBin: string;
|
|
15
|
+
wasmPath?: string;
|
|
16
|
+
lokahiMode: "strict" | "audit";
|
|
17
|
+
privacyFlowMasking: boolean;
|
|
18
|
+
xirynSlidingWindowMaxImages: number;
|
|
19
|
+
xirynSlidingWindowMaxTools: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface LokahiWasmExports {
|
|
23
|
+
memory: WebAssembly.Memory;
|
|
24
|
+
lokahi_wasm_run_red_team_50: () => number;
|
|
25
|
+
lokahi_c_abi_evaluate_utf8: (ptr: number, len: number, isS2Critical: number) => number;
|
|
26
|
+
lokahi_alloc?: (size: number) => number;
|
|
27
|
+
alloc?: (size: number) => number;
|
|
28
|
+
malloc?: (size: number) => number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
let cachedWasmExports: LokahiWasmExports | null = null;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Load and instantiate `lokahi_gate.wasm` (`wasm32-wasip1`) once per process for `<1 ms` evaluation.
|
|
35
|
+
*/
|
|
36
|
+
export async function loadLokahiWasm(customPath?: string): Promise<LokahiWasmExports | null> {
|
|
37
|
+
if (cachedWasmExports) return cachedWasmExports;
|
|
38
|
+
const candidatePaths = [
|
|
39
|
+
customPath,
|
|
40
|
+
path.resolve(process.cwd(), "extensions/firefox-mv3/lokahi_gate.wasm"),
|
|
41
|
+
path.resolve(process.cwd(), "target/wasm32-wasip1/release/lokahi_gate.wasm"),
|
|
42
|
+
].filter((p): p is string => Boolean(p && fs.existsSync(p)));
|
|
43
|
+
|
|
44
|
+
if (candidatePaths.length === 0) return null;
|
|
45
|
+
|
|
46
|
+
const bytes = fs.readFileSync(candidatePaths[0]);
|
|
47
|
+
const wasiStub = {
|
|
48
|
+
args_get: () => 0,
|
|
49
|
+
args_sizes_get: () => 0,
|
|
50
|
+
environ_get: () => 0,
|
|
51
|
+
environ_sizes_get: () => 0,
|
|
52
|
+
clock_time_get: () => 0,
|
|
53
|
+
fd_close: () => 0,
|
|
54
|
+
fd_fdstat_get: () => 0,
|
|
55
|
+
fd_seek: () => 0,
|
|
56
|
+
fd_write: () => 0,
|
|
57
|
+
proc_exit: () => {},
|
|
58
|
+
random_get: () => 0,
|
|
59
|
+
};
|
|
60
|
+
const { instance } = await WebAssembly.instantiate(bytes, {
|
|
61
|
+
wasi_snapshot_preview1: wasiStub,
|
|
62
|
+
});
|
|
63
|
+
cachedWasmExports = instance.exports as unknown as LokahiWasmExports;
|
|
64
|
+
return cachedWasmExports;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Evaluate a UTF-8 command/tool payload using the compiled `lokahi_gate.wasm` C-ABI (`lokahi_c_abi_evaluate_utf8`).
|
|
69
|
+
*/
|
|
70
|
+
function allowUngatedForDevelopment(): boolean {
|
|
71
|
+
if (process.env.DIRGHA_ALLOW_UNGATED === "1") {
|
|
72
|
+
console.warn("[DIRGHA SECURITY WARNING] DIRGHA_ALLOW_UNGATED=1 bypasses the Lokahi WASM gate; use only for local development.");
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export async function evaluateWithLokahiWasm(
|
|
79
|
+
payload: string,
|
|
80
|
+
isS2Critical: boolean,
|
|
81
|
+
wasmPath?: string
|
|
82
|
+
): Promise<boolean> {
|
|
83
|
+
try {
|
|
84
|
+
const wasm = await loadLokahiWasm(wasmPath);
|
|
85
|
+
if (!wasm || typeof wasm.lokahi_c_abi_evaluate_utf8 !== "function" || !wasm.memory) {
|
|
86
|
+
return allowUngatedForDevelopment();
|
|
87
|
+
}
|
|
88
|
+
const encoded = new TextEncoder().encode(payload);
|
|
89
|
+
const allocator = wasm.lokahi_alloc ?? wasm.alloc ?? wasm.malloc;
|
|
90
|
+
const pointer = allocator ? allocator(encoded.length) : 65536;
|
|
91
|
+
if (!Number.isInteger(pointer) || pointer < 0 || pointer + encoded.length > wasm.memory.buffer.byteLength) {
|
|
92
|
+
return allowUngatedForDevelopment();
|
|
93
|
+
}
|
|
94
|
+
new Uint8Array(wasm.memory.buffer, pointer, encoded.length).set(encoded);
|
|
95
|
+
const verdict = wasm.lokahi_c_abi_evaluate_utf8(pointer, encoded.length, isS2Critical ? 1 : 0);
|
|
96
|
+
if (verdict === 1) return true;
|
|
97
|
+
if (verdict === 0) return false;
|
|
98
|
+
return allowUngatedForDevelopment();
|
|
99
|
+
} catch {
|
|
100
|
+
return allowUngatedForDevelopment();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export const name = "dirgha-sovereign-governance";
|
|
105
|
+
|
|
106
|
+
export function apply(ctx: any, config: DirghaCordisConfig) {
|
|
107
|
+
// 1. Hook `agent/pre-step` waterfall in DeepSeek Harness (`dsh`)
|
|
108
|
+
ctx.on("agent/pre-step", async (stepCtx: any, next: () => Promise<any>) => {
|
|
109
|
+
if (config.privacyFlowMasking && Array.isArray(stepCtx?.messages)) {
|
|
110
|
+
let handleIdx = 1;
|
|
111
|
+
for (const msg of stepCtx.messages) {
|
|
112
|
+
if (typeof msg.content === "string") {
|
|
113
|
+
msg.content = msg.content.replace(
|
|
114
|
+
/\b(sk-[A-Za-z0-9_-]{10,}|ghp_[A-Za-z0-9]{10,}|AKIA[A-Z0-9]{12,})\b/g,
|
|
115
|
+
() => `<SECRET_HANDLE_${String(handleIdx++).padStart(2, "0")}>`
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return next();
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
// 2. Hook `tools/pre-execute` to enforce the gate rules via `lokahi_gate.wasm`
|
|
124
|
+
ctx.on("tools/pre-execute", async (toolCall: any, next: () => Promise<any>) => {
|
|
125
|
+
const payload = JSON.stringify(toolCall?.arguments ?? {});
|
|
126
|
+
const isS2 = Boolean(toolCall?.safetyClass === "S2HardwareOrCritical");
|
|
127
|
+
const allowed = await evaluateWithLokahiWasm(payload, isS2, config.wasmPath);
|
|
128
|
+
if (!allowed && config.lokahiMode !== "audit") {
|
|
129
|
+
throw new Error(
|
|
130
|
+
`[Lokahi Gate WASM SEC-BLOCK] Action on tool '${toolCall?.name}' denied by Dirgha 2.0 policy.`
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
return next();
|
|
134
|
+
});
|
|
135
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-plugin-dirgha",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "DeepSeek Harness (dsh) Cordis bundle mounting Dirgha v2 Lokahi WASM Firewall, Arniko SARIF Auditor, and PrivacyFlow Secret Masking.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"deepseek-harness",
|
|
8
|
+
"dsh",
|
|
9
|
+
"dsh-plugin",
|
|
10
|
+
"cordis",
|
|
11
|
+
"lokahi",
|
|
12
|
+
"arniko"
|
|
13
|
+
],
|
|
14
|
+
"dsh": {
|
|
15
|
+
"bundle": "./cordis.patch.yml"
|
|
16
|
+
},
|
|
17
|
+
"main": "./index.ts"
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# `robotics-physical-ai` — Layer 3 Lazy-Loaded Plugin for Dirgha v2
|
|
2
|
+
|
|
3
|
+
This plugin mounts the **Oct 27 Physical AI & Robotics Harness** (`final/00_README.md` – `final/10_EXPANSION_ACCEPTANCE.md` and `final/schemas/*.json`) into the **Dirgha v2 Sovereign Agentic Runtime** under the Layer 3 Zero-Idle Lazy-Load ABI (`dirgha_v2_spec_blueprint_roadmap-nov 08 26.md` §4.3).
|
|
4
|
+
|
|
5
|
+
## Key Properties
|
|
6
|
+
|
|
7
|
+
- **`0 KB` Idle RAM Footprint:** Remains unmounted on everyday coding and browsing sessions so Dirgha v2 strictly passes the `<25 MB` static binary and `<150 MB` 2 GB Windows 10 (1809) legacy gate.
|
|
8
|
+
- **Automatic Activation & 60s Eviction:** Activates automatically on `dirgha sim`, `dirgha eval`, `dirgha gate`, or when `.mjcf` / `.urdf` files are detected in the workspace, and evicts after 60 seconds of inactivity.
|
|
9
|
+
- **Unified `lokahi-gate` Hardware Safety (`S0` / `S1` / `S2`):**
|
|
10
|
+
- `S0` (Read) and `S1` (MuJoCo / Isaac / Gazebo simulation) tools execute locally with deterministic `repro_hash` trace logging into `crates/memory-mgp`.
|
|
11
|
+
- `S2` (Real ROS 2 / hardware actuation) is governed by **`crates/lokahi-gate` Rule 14 (Ahimsa 45-Second Timeout)** and **Rule 17/18**, requiring a verified human cryptographic approval signature and passing velocity/force bounds before any physical actuation can occur.
|