@ouro.bot/cli 0.1.0-alpha.733 → 0.1.0-alpha.735
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.json +34 -0
- package/deploy/unraid/Dockerfile +27 -0
- package/deploy/unraid/README.txt +1605 -0
- package/deploy/unraid/audit-container-spec.sh +4 -0
- package/deploy/unraid/container-runtime.json +1 -0
- package/deploy/unraid/sanctuary-acceptance-adapter.sh +37 -0
- package/deploy/unraid/sanctuary-acceptance-contract.json +200 -0
- package/deploy/unraid/sanctuary-acceptance-harness.sh +23 -0
- package/deploy/unraid/sanctuary-deployment-target.mjs +705 -0
- package/deploy/unraid/sanctuary-safe-rename.py +24 -0
- package/deploy/unraid/sanctuary-unit16-host-broker.mjs +1777 -0
- package/deploy/unraid/sanctuary-unit16-run.sh +502 -0
- package/deploy/unraid/sanctuary-unit18-target-audit.sh +27 -0
- package/deploy/unraid/sanctuary.ouro/agent.json +24 -0
- package/deploy/unraid/sanctuary.ouro/arc/README.md +3 -0
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +5 -0
- package/deploy/unraid/sanctuary.ouro/habits/sanctuary-health.md +8 -0
- package/deploy/unraid/sanctuary.ouro/provider-readiness.json +18 -0
- package/deploy/unraid/sanctuary.ouro/psyche/ASPIRATIONS.md +3 -0
- package/deploy/unraid/sanctuary.ouro/psyche/IDENTITY.md +3 -0
- package/deploy/unraid/sanctuary.ouro/psyche/LORE.md +3 -0
- package/deploy/unraid/sanctuary.ouro/psyche/SOUL.md +5 -0
- package/deploy/unraid/sanctuary.ouro/psyche/TACIT.md +7 -0
- package/deploy/unraid/sanctuary.ouro/tool-profiles.json +21 -0
- package/deploy/unraid/sanctuary.xml +25 -0
- package/dist/heart/approval-files.js +113 -0
- package/dist/heart/approval-store.js +168 -9
- package/dist/heart/auth/auth-flow.js +17 -1
- package/dist/heart/autonomy-budget.js +44 -1
- package/dist/heart/awaiting/await-scheduler.js +6 -2
- package/dist/heart/config.js +8 -0
- package/dist/heart/core.js +117 -132
- package/dist/heart/daemon/cli-exec.js +73 -1
- package/dist/heart/daemon/cli-help.js +5 -0
- package/dist/heart/daemon/cli-parse.js +6 -4
- package/dist/heart/daemon/container-credential-bootstrap.js +208 -0
- package/dist/heart/daemon/container-healthcheck.js +94 -0
- package/dist/heart/daemon/container-runtime.js +84 -0
- package/dist/heart/daemon/container-spec-auditor-main.js +156 -0
- package/dist/heart/daemon/container-spec-auditor.js +156 -0
- package/dist/heart/daemon/daemon-bootstrap-startup.js +41 -0
- package/dist/heart/daemon/daemon-entry.js +116 -28
- package/dist/heart/daemon/daemon-health.js +10 -0
- package/dist/heart/daemon/daemon.js +92 -5
- package/dist/heart/daemon/runtime-logging.js +6 -0
- package/dist/heart/daemon/runtime-mode.js +13 -2
- package/dist/heart/daemon/sanctuary-acceptance-adapter.js +2365 -0
- package/dist/heart/daemon/sanctuary-acceptance-harness.js +1624 -0
- package/dist/heart/daemon/sanctuary-acceptance-marker.js +267 -0
- package/dist/heart/daemon/sanctuary-acceptance-scenarios.js +985 -0
- package/dist/heart/daemon/sanctuary-scheduler-liveness.js +227 -0
- package/dist/heart/daemon/sanctuary-scheduler-origin.js +126 -0
- package/dist/heart/daemon/sense-manager.js +25 -6
- package/dist/heart/daemon/supercronic-supervisor.js +267 -0
- package/dist/heart/habits/habit-scheduler.js +7 -3
- package/dist/heart/identity.js +13 -3
- package/dist/heart/provider-credentials.js +9 -1
- package/dist/heart/provider-models.js +8 -0
- package/dist/heart/provider-ping.js +5 -2
- package/dist/heart/providers/openai-compatible.js +177 -0
- package/dist/heart/runtime-credentials.js +217 -8
- package/dist/heart/sense-truth.js +2 -0
- package/dist/heart/tool-approval.js +1 -0
- package/dist/heart/turn-context.js +8 -0
- package/dist/mind/prompt.js +9 -0
- package/dist/nerves/coverage/source-scanner.js +4 -4
- package/dist/nerves/index.js +75 -9
- package/dist/nerves/runtime.js +12 -0
- package/dist/repertoire/tool-arguments.js +39 -0
- package/dist/repertoire/tools-unraid.js +353 -0
- package/dist/repertoire/tools.js +19 -1
- package/dist/repertoire/unraid-client.js +155 -0
- package/dist/repertoire/unraid-restart.js +130 -0
- package/dist/senses/private-runtime-worker.js +3 -2
- package/dist/senses/sanctuary-grounding.js +118 -0
- package/dist/senses/sanctuary-health-acceptance-probe-entry.js +12 -0
- package/dist/senses/sanctuary-health-acceptance-probe.js +772 -0
- package/dist/senses/sanctuary-health-runner.js +146 -0
- package/dist/senses/sanctuary-health.js +447 -0
- package/dist/senses/sanctuary-interactive-control.js +306 -0
- package/dist/senses/sanctuary-runtime.js +206 -0
- package/dist/senses/shared-turn.js +11 -3
- package/dist/senses/telegram-approval-runtime.js +526 -0
- package/dist/senses/telegram-audit-ledger.js +220 -0
- package/dist/senses/telegram-client.js +1471 -0
- package/dist/senses/telegram-entry.js +80 -0
- package/dist/senses/telegram.js +1232 -0
- package/npm-shrinkwrap.json +6558 -0
- package/package.json +4 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"scheduler":"supercronic","updates":"disabled"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
set -eu
|
|
3
|
+
|
|
4
|
+
ENTRY='import fs from "node:fs"; import("/opt/ouro/dist/heart/daemon/sanctuary-acceptance-adapter.js").then(async (module) => { const payload = JSON.parse(fs.readFileSync(0, "utf8")); const result = await module.executeSanctuaryAcceptanceAdapter(payload); process.stdout.write(JSON.stringify(result)); }).catch(() => { process.exitCode = 1; });'
|
|
5
|
+
VAULT_ENTRY='import("/opt/ouro/dist/heart/daemon/sanctuary-acceptance-adapter.js").then(async (module) => { const result = await module.executeSanctuaryAcceptanceVaultProbe(process.argv[1], process.argv[2]); process.stdout.write(JSON.stringify(result)); }).catch(() => { process.exitCode = 1; });'
|
|
6
|
+
REVOKED_ENTRY='import fs from "node:fs"; import("/opt/ouro/dist/heart/daemon/sanctuary-acceptance-adapter.js").then(async (module) => { const result = await module.executeSanctuaryAcceptanceRevokedProbe(process.argv[1], process.argv[2], fs.readFileSync(3, "utf8")); process.stdout.write(JSON.stringify(result)); }).catch(() => { process.exitCode = 1; });'
|
|
7
|
+
CALLBACK_ENTRY='import fs from "node:fs"; import("/opt/ouro/dist/heart/daemon/sanctuary-acceptance-adapter.js").then(async (module) => { const result = await module.executeSanctuaryAcceptanceCallbackProbe(JSON.parse(fs.readFileSync(0, "utf8")), process.argv[1] === "replay"); process.stdout.write(JSON.stringify(result)); }).catch(() => { process.exitCode = 1; });'
|
|
8
|
+
MATERIALIZE_ENTRY='import("/opt/ouro/dist/heart/daemon/sanctuary-acceptance-adapter.js").then(async (module) => { const payload = { operation: "materialize_config", command: process.argv[1] }; if (process.argv[2]) payload.phase = process.argv[2]; const result = await module.executeSanctuaryAcceptanceAdapter(payload); process.stdout.write(JSON.stringify(result)); }).catch(() => { process.exitCode = 1; });'
|
|
9
|
+
|
|
10
|
+
if test "${1:-}" = vault-probe; then
|
|
11
|
+
test "$#" -eq 3 || exit 2
|
|
12
|
+
exec node --input-type=module -e "$VAULT_ENTRY" "$2" "$3"
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
if test "${1:-}" = revoked-probe; then
|
|
16
|
+
test "$#" -eq 3 || exit 2
|
|
17
|
+
exec node --input-type=module -e "$REVOKED_ENTRY" "$2" "$3" 3<&0
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
if test "${1:-}" = callback-probe; then
|
|
21
|
+
test "$#" -eq 2 || exit 2
|
|
22
|
+
case "$2" in concurrent|replay) ;; *) exit 2 ;; esac
|
|
23
|
+
exec node --input-type=module -e "$CALLBACK_ENTRY" "$2"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if test "${1:-}" = materialize-config; then
|
|
27
|
+
test "$#" -eq 2 || { test "$#" -eq 3 && test "$2" = cursor-snapshot; } || exit 2
|
|
28
|
+
if test "$#" -eq 3; then case "$3" in before|after) ;; *) exit 2 ;; esac; fi
|
|
29
|
+
exec node --input-type=module -e "$MATERIALIZE_ENTRY" "$2" "${3:-}"
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
test "$#" -eq 0 || exit 2
|
|
33
|
+
|
|
34
|
+
if test -e /proc/self/fd/3; then
|
|
35
|
+
exec node --input-type=module -e "$ENTRY" 3<&3
|
|
36
|
+
fi
|
|
37
|
+
exec node --input-type=module -e "$ENTRY"
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"harnessExecutable": "/opt/ouro/deploy/unraid/sanctuary-acceptance-harness.sh",
|
|
4
|
+
"adapterExecutable": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
5
|
+
"adapterTimeoutMs": 240000,
|
|
6
|
+
"telegramTimeoutMs": 10000,
|
|
7
|
+
"deploymentTargetProfiles": {
|
|
8
|
+
"staging": { "command": "sanctuary-unit16-run.sh", "containerName": "ouro-butler-staging", "requiredRunning": 1, "restartPolicy": "unless-stopped", "networkMode": "host", "inboundTcpListeners": 0, "inboundUdpListeners": 0, "loopbackTcpControls": [6876] },
|
|
9
|
+
"final": { "command": "sanctuary-unit18-target-audit.sh", "containerName": "ouro-butler", "requiredRunning": 1, "requiredStopped": "ouro-butler-rollback", "restartPolicy": "unless-stopped", "networkMode": "host", "inboundTcpListeners": 0, "inboundUdpListeners": 0, "loopbackTcpControls": [6876] }
|
|
10
|
+
},
|
|
11
|
+
"configMaterializer": {
|
|
12
|
+
"invocation": "sanctuary-acceptance-adapter.sh materialize-config <command> [before|after]",
|
|
13
|
+
"output": "complete harness config JSON on stdout",
|
|
14
|
+
"authority": "fixed-contract-offset-inventory-evidence-read",
|
|
15
|
+
"modelReachable": false,
|
|
16
|
+
"timeoutMs": 15000
|
|
17
|
+
},
|
|
18
|
+
"commands": {
|
|
19
|
+
"telegram-bootstrap": { "invocation": "sanctuary-acceptance-harness.sh telegram-bootstrap --config <private-json>" },
|
|
20
|
+
"cursor-snapshot": { "invocation": "sanctuary-acceptance-harness.sh cursor-snapshot --config <private-json>" },
|
|
21
|
+
"cursor-delta": { "invocation": "sanctuary-acceptance-harness.sh cursor-delta --config <private-json>" },
|
|
22
|
+
"callback-inject": { "invocation": "sanctuary-acceptance-harness.sh callback-inject --config <private-json>" },
|
|
23
|
+
"unraid-key-rotate": { "invocation": "sanctuary-acceptance-harness.sh unraid-key-rotate --config <private-json>" },
|
|
24
|
+
"evidence-snapshot": { "invocation": "sanctuary-acceptance-harness.sh evidence-snapshot --config <private-json>" },
|
|
25
|
+
"reboot-request": { "invocation": "sanctuary-acceptance-harness.sh reboot-request --config <private-json>" },
|
|
26
|
+
"reboot-resume": { "invocation": "sanctuary-acceptance-harness.sh reboot-resume --config <private-json>" },
|
|
27
|
+
"evidence-bundle-index": { "invocation": "sanctuary-acceptance-harness.sh evidence-bundle-index --config <private-json>" },
|
|
28
|
+
"evidence-bundle-verify": { "invocation": "sanctuary-acceptance-harness.sh evidence-bundle-verify --config <private-json>" }
|
|
29
|
+
},
|
|
30
|
+
"adapters": {
|
|
31
|
+
"telegram-poller-quiescence": { "operation": "quiesce_telegram_poller", "authority": "fixed-managed-telegram-poller-stop-and-count", "modelReachable": false, "timeoutMs": 15000 },
|
|
32
|
+
"telegram-vault-store": { "operation": "store_telegram_bootstrap", "authority": "fixed-runtime-vault-merge", "modelReachable": false, "timeoutMs": 15000 },
|
|
33
|
+
"cursor-snapshot": { "operation": "snapshot", "authority": "fixed-telegram-state-read", "modelReachable": false, "timeoutMs": 15000 },
|
|
34
|
+
"callback-live": { "operation": "inject_callbacks_concurrently|inject_callback_replay", "authority": "fixed-live-telegram-callback-probe", "modelReachable": false, "timeoutMs": 15000 },
|
|
35
|
+
"key-inventory": { "operation": "inventory_keys", "authority": "fixed-unraid-key-directory-read", "modelReachable": false, "timeoutMs": 15000 },
|
|
36
|
+
"key-create": { "operation": "create_key", "authority": "fixed-unraid-cli-create-and-vault-store", "modelReachable": false, "timeoutMs": 15000 },
|
|
37
|
+
"key-store": { "operation": "store_key", "authority": "fixed-machine-vault-readback", "modelReachable": false, "timeoutMs": 15000 },
|
|
38
|
+
"key-probe": { "operation": "probe_new_key", "authority": "fixed-loopback-readiness-probe", "modelReachable": false, "timeoutMs": 15000 },
|
|
39
|
+
"key-read-old": { "operation": "read_old_key", "authority": "fixed-unraid-key-record-read", "modelReachable": false, "timeoutMs": 15000 },
|
|
40
|
+
"key-revoke": { "operation": "revoke_key", "authority": "fixed-unraid-cli-delete", "modelReachable": false, "timeoutMs": 15000 },
|
|
41
|
+
"evidence-snapshot": { "operation": "evidence_snapshot", "authority": "fixed-postboot-state-read", "modelReachable": false, "timeoutMs": 15000 },
|
|
42
|
+
"capture-evidence-provenance": { "operation": "capture_evidence_provenance", "authority": "fixed-live-continuity-read", "modelReachable": false, "timeoutMs": 15000 },
|
|
43
|
+
"reboot-live-request": { "operation": "request_reboot", "authority": "fixed-sanctuary-host-reboot", "modelReachable": false, "timeoutMs": 15000 },
|
|
44
|
+
"reboot-owner-stop": { "operation": "stop_reboot_owner", "authority": "exclusive-reserved-process-generation-bound-production-owner-stop", "modelReachable": false, "timeoutMs": 60000 },
|
|
45
|
+
"reboot-final-commit": { "operation": "commit_reboot", "authority": "exclusive-drained-final-preflight-and-fixed-sanctuary-host-reboot", "modelReachable": false, "timeoutMs": 15000 },
|
|
46
|
+
"reboot-poll": { "operation": "poll_reboot", "authority": "fixed-linux-boot-identity-read", "modelReachable": false, "timeoutMs": 15000 },
|
|
47
|
+
"vault-backed-capability-verify": { "operation": "vault-backed-capability-verify", "authority": "fixed-container-vault-probe", "modelReachable": false, "timeoutMs": 15000 },
|
|
48
|
+
"closed-inventory": { "operation": "closed-inventory", "authority": "fixed-unraid-key-directory-read", "modelReachable": false, "timeoutMs": 15000 },
|
|
49
|
+
"exact-id-revoke": { "operation": "exact-id-revoke", "authority": "fixed-unraid-cli-delete", "modelReachable": false, "timeoutMs": 15000 },
|
|
50
|
+
"revoked-key-auth-rejection": { "operation": "revoked-key-auth-rejection", "authority": "fixed-loopback-auth-probe", "modelReachable": false, "timeoutMs": 15000 },
|
|
51
|
+
"callback-inject": { "operation": "callback-inject", "authority": "fixed-harness-orchestration", "modelReachable": false, "timeoutMs": 120000 },
|
|
52
|
+
"reboot-request": { "operation": "reboot-request", "authority": "fixed-harness-orchestration", "modelReachable": false, "timeoutMs": 120000 },
|
|
53
|
+
"unraid-key-rotate": { "operation": "unraid-key-rotate", "authority": "fixed-harness-orchestration", "modelReachable": false, "timeoutMs": 120000 },
|
|
54
|
+
"config-materializer": { "operation": "materialize_config", "authority": "fixed-contract-offset-inventory-evidence-read", "modelReachable": false, "timeoutMs": 120000 },
|
|
55
|
+
"scenario-capture": { "operation": "capture_acceptance_scenario", "authority": "fixed-runtime-audit-telegram-container-scenario", "modelReachable": false, "timeoutMs": 210000, "phases": ["begin", "poll"], "publicGateStatus": "/evidence/current-scenario-gate.json contains only label,gate,phase,startedAt", "response": "waiting:{state,checkpointDigest}|complete:{state,checkpointDigest,sourceDigests,assertions}" },
|
|
56
|
+
"scenario-finalize": { "operation": "finalize_acceptance_scenarios", "authority": "fixed-public-gate-private-marker-receipt-cleanup", "modelReachable": false, "timeoutMs": 120000, "response": "{finalized:true}" },
|
|
57
|
+
"health-probe-start": { "operation": "start_health_probe", "authority": "fixed-owner-bound-packaged-health-probe-start", "modelReachable": false, "timeoutMs": 170000, "response": "{state:started,operationDigest}" },
|
|
58
|
+
"health-probe-status": { "operation": "health_probe_status", "authority": "fixed-fast-running-state-or-full-owner-reobservation-and-final-attestation", "modelReachable": false, "timeoutMs": 170000, "response": "{state:running|failed|recovery_required|absent}|{state:complete,containerSnapshot}" },
|
|
59
|
+
"health-probe-recovery": { "operation": "recover_health_probe", "authority": "fixed-fast-owner-bound-health-snapshot-restore", "modelReachable": false, "timeoutMs": 90000, "response": "{recovered:boolean}" },
|
|
60
|
+
"interactive-timeout-stale-driver": { "operation": "drive_timeout_stale", "authority": "fixed-operator-only-production-runtime-retained-timeout-callback-drive", "modelReachable": false, "timeoutMs": 170000, "request": "{targetId,label,scenarioHandleDigest}", "response": "{state:waiting}|sanctuary-timeout-stale-driver-receipt-v1" },
|
|
61
|
+
"interactive-duplicate-driver": { "operation": "drive_duplicate_callbacks", "authority": "fixed-operator-only-production-runtime-duplicate-callback-drive", "modelReachable": false, "timeoutMs": 170000, "request": "{targetId,label,scenarioHandleDigest}", "response": "sanctuary-interactive-driver-receipt-v2" },
|
|
62
|
+
"interactive-restart-driver": { "operation": "drive_restart_continuation", "authority": "fixed-operator-only-asynchronous-two-phase-production-owner-restart-and-reconciliation", "modelReachable": false, "timeoutMs": 240000, "request": "{targetId,label,scenarioHandleDigest}", "response": "{state:waiting}|{state:complete,receipt:sanctuary-interactive-driver-receipt-v2}|{state:failed,errorDigest}" }
|
|
63
|
+
},
|
|
64
|
+
"scenarioSources": {
|
|
65
|
+
"identity-key": { "kind": "fixed-file", "path": "/home/ouro/AgentBundles/sanctuary.ouro/state/senses/telegram/identity.key", "redaction": "sha256-only" },
|
|
66
|
+
"identity-surface-audit": { "kind": "bounded-bundle-surface-audit", "path": "/home/ouro/AgentBundles/sanctuary.ouro", "redaction": "record-match-raw-leak-counts-and-surface-digest-only" },
|
|
67
|
+
"telegram-audit": { "kind": "fixed-mac-chain", "path": "/home/ouro/AgentBundles/sanctuary.ouro/state/acceptance/telegram-audit-chain.ndjson", "headPath": "/home/ouro/AgentBundles/sanctuary.ouro/state/acceptance/telegram-audit-chain.head.json", "redaction": "canonical-redacted-rows-with-hmac-chain" },
|
|
68
|
+
"telegram-offset": { "kind": "fixed-json", "path": "/home/ouro/AgentBundles/sanctuary.ouro/state/senses/telegram/offset.json", "redaction": "sha256-only" },
|
|
69
|
+
"approval-journal": { "kind": "fixed-sqlite", "path": "/home/ouro/AgentBundles/sanctuary.ouro/state/approvals/approvals.sqlite", "redaction": "typed-state-counters-and-digests-only" },
|
|
70
|
+
"approval-checkpoints": { "kind": "fixed-json", "path": "/home/ouro/AgentBundles/sanctuary.ouro/state/approvals/checkpoints.json", "redaction": "typed-state-counters-and-digests-only" },
|
|
71
|
+
"restart-attempt-ledger": { "kind": "fixed-ndjson", "path": "/home/ouro/AgentBundles/sanctuary.ouro/state/acceptance/restart-attempts.ndjson", "redaction": "scenario-action-target-digests-and-state-only" },
|
|
72
|
+
"telegram-turn-receipts": { "kind": "fixed-ndjson", "path": "/home/ouro/AgentBundles/sanctuary.ouro/state/acceptance/telegram-turns.ndjson", "redaction": "scenario-update-tool-response-and-delivery-digests-only" },
|
|
73
|
+
"read-only-denial-receipt": { "kind": "persisted-one-shot-live-graphql-denial", "schemaVersion": "sanctuary-read-only-denial-receipt-v1", "path": "/home/ouro/AgentBundles/sanctuary.ouro/state/acceptance/denial-receipts/<scenario-handle-digest>.json", "attemptPath": "/home/ouro/AgentBundles/sanctuary.ouro/state/acceptance/denial-attempts/<scenario-handle-digest>.json", "endpoint": "http://127.0.0.1/graphql", "targetSnapshotOperation": "denial_target_snapshot", "resumePolicy": "attempted-or-indeterminate-inspect-before-retry", "redaction": "schema-binding-api-classification-counts-restart-count-and-seven-boundary-digests-only" },
|
|
74
|
+
"containment-audit": { "kind": "effective-container-key-tool-and-audit-boundary", "schemaVersion": "sanctuary-containment-audit-v1", "path": "/opt/ouro/deploy/unraid/sanctuary.ouro/tool-profiles.json", "auditPath": "/home/ouro/AgentBundles/sanctuary.ouro/state/acceptance/telegram-audit-chain.ndjson", "producers": ["container_snapshot", "inventory_keys", "packaged-tool-profiles", "runtime-tool-resolver", "telegram-audit-mac-chain"], "redaction": "counts-static-policy-values-and-sha256-digests-only" },
|
|
75
|
+
"container-inspect": { "kind": "fixed-host-snapshot", "path": "/run/ouro-acceptance/container-inspect.json", "redaction": "typed-facts-and-digests-only" },
|
|
76
|
+
"provider-live-check": { "kind": "fixed-runtime-api", "operation": "sanctuary-provider-readiness", "redaction": "booleans-and-distinctness-only" },
|
|
77
|
+
"live-grounding-read": { "kind": "fixed-runtime-api", "operation": "sanctuary-independent-system-or-storage-read", "redaction": "bounded-system-or-storage-facts-and-digest-only" },
|
|
78
|
+
"cron-runtime": { "kind": "fixed-runtime-api", "operation": "sanctuary-cron-readiness", "redaction": "typed-counters-and-digests-only" },
|
|
79
|
+
"health-runtime": { "kind": "fixed-runtime-api", "operation": "sanctuary-health-transition", "redaction": "typed-counters-and-digests-only" },
|
|
80
|
+
"digest-runtime": { "kind": "fixed-runtime-api", "operation": "sanctuary-daily-digest", "redaction": "typed-counters-and-digests-only" },
|
|
81
|
+
"health-probe-receipt": { "kind": "fixed-private-json", "path": "/home/ouro/AgentBundles/sanctuary.ouro/state/acceptance/health-probe-receipts/<scenarioHandleDigest>.json", "redaction": "typed-phase-counters-owner-state-and-cleanup-digests-only" },
|
|
82
|
+
"scheduler-liveness-receipt": { "kind": "fixed-private-json", "path": "/home/ouro/AgentBundles/sanctuary.ouro/state/acceptance/scheduler-liveness-receipts/<scenarioHandleDigest>.json", "redaction": "daemon-runner-supervisor-manifest-and-cursor-attestation-only" },
|
|
83
|
+
"interactive-driver-receipt": { "kind": "fixed-private-json", "path": "/home/ouro/AgentBundles/sanctuary.ouro/state/acceptance/interactive-driver-receipts/<scenarioHandleDigest>.json", "redaction": "digested-approval-checkpoint-session-callback-and-owner-coordinates-only" },
|
|
84
|
+
"reboot-checkpoint": { "kind": "fixed-json", "path": "/evidence/reboot.json", "redaction": "typed-state-and-digests-only" }
|
|
85
|
+
},
|
|
86
|
+
"configTemplates": {
|
|
87
|
+
"telegram-bootstrap": {
|
|
88
|
+
"fixed": {
|
|
89
|
+
"allowedRoot": "/evidence",
|
|
90
|
+
"evidencePath": "/evidence/telegram-bootstrap.json",
|
|
91
|
+
"offsetPath": "/evidence/telegram-bootstrap-offset.json",
|
|
92
|
+
"noncePath": "/evidence/telegram-bootstrap-nonce.txt",
|
|
93
|
+
"pollerAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
94
|
+
"vaultAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
95
|
+
"deadlineMs": 600000,
|
|
96
|
+
"pollTimeoutSeconds": 20
|
|
97
|
+
},
|
|
98
|
+
"dynamic": ["expectedBotId:getMe.id", "expectedUsername:getMe.username", "currentOffset:fixed-cursor-read"],
|
|
99
|
+
"privateInputFd": 3
|
|
100
|
+
},
|
|
101
|
+
"cursor-snapshot": {
|
|
102
|
+
"fixed": {
|
|
103
|
+
"allowedRoot": "/evidence",
|
|
104
|
+
"evidencePath": "/evidence/cursor-snapshot.json",
|
|
105
|
+
"adapters": [{ "schema": "telegram-cursor-v1", "executable": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh" }]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"cursor-delta": {
|
|
109
|
+
"fixed": {
|
|
110
|
+
"allowedRoot": "/evidence",
|
|
111
|
+
"evidencePath": "/evidence/cursor-delta.json",
|
|
112
|
+
"beforePath": "/evidence/cursor-before.json",
|
|
113
|
+
"afterPath": "/evidence/cursor-after.json"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"callback-inject": {
|
|
117
|
+
"fixed": {
|
|
118
|
+
"allowedRoot": "/evidence",
|
|
119
|
+
"evidencePath": "/evidence/callback-inject.json",
|
|
120
|
+
"adapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
121
|
+
"concurrency": 2
|
|
122
|
+
},
|
|
123
|
+
"privateInputFd": 3
|
|
124
|
+
},
|
|
125
|
+
"unraid-key-rotate": {
|
|
126
|
+
"fixed": {
|
|
127
|
+
"allowedRoot": "/evidence",
|
|
128
|
+
"evidencePath": "/evidence/unraid-key-rotate.json",
|
|
129
|
+
"targetServerId": "sanctuary-unraid",
|
|
130
|
+
"inventoryAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
131
|
+
"createAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
132
|
+
"storeAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
133
|
+
"revokeAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
134
|
+
"probeAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
135
|
+
"keys": [
|
|
136
|
+
{ "name": "Butler RO", "vaultField": "unraidReadApiKey", "permissions": ["ARRAY:READ_ANY", "DASHBOARD:READ_ANY", "DISK:READ_ANY", "DOCKER:READ_ANY", "INFO:READ_ANY", "LOGS:READ_ANY", "NOTIFICATIONS:READ_ANY", "SHARE:READ_ANY", "VARS:READ_ANY"] },
|
|
137
|
+
{ "name": "Butler RW", "vaultField": "unraidWriteApiKey", "permissions": ["ARRAY:READ_ANY", "DASHBOARD:READ_ANY", "DISK:READ_ANY", "DOCKER:READ_ANY", "DOCKER:UPDATE_ANY", "INFO:READ_ANY", "LOGS:READ_ANY", "NOTIFICATIONS:READ_ANY", "SHARE:READ_ANY", "VARS:READ_ANY"] }
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"dynamic": ["oldKeys:closed-inventory.exactCompromisedIds"],
|
|
141
|
+
"oldKeyTemplate": { "secretAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh" }
|
|
142
|
+
},
|
|
143
|
+
"evidence-snapshot": {
|
|
144
|
+
"fixed": {
|
|
145
|
+
"allowedRoot": "/evidence",
|
|
146
|
+
"schema": "sanctuary-unit-16-matrix-v1",
|
|
147
|
+
"adapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
148
|
+
"provenanceAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
149
|
+
"harnessPath": "/opt/ouro/deploy/unraid/sanctuary-acceptance-harness.sh",
|
|
150
|
+
"timeoutMs": 5610000,
|
|
151
|
+
"intervalMs": 2000
|
|
152
|
+
},
|
|
153
|
+
"timing": { "execution": "sequential", "cleanupReservePerScenarioMs": 5000, "approvalReconciliationJitterMs": 1000, "approvalTerminalEditMaxMs": 30000, "noneMs": 35000, "externalGateMs": 305000, "cronLivenessMs": 1025000, "noCallbackMs": 365000, "dailyDigestMs": 1025000, "delayedApprovalMs": 185000, "timeoutStaleMs": 875000, "timeoutStaleBreakdown": { "promptCreationAdapterMs": 210000, "approvalTtlMs": 300000, "staleCallbackInjectionMs": 120000, "pollIntervalReserveMs": 30000, "reconciliationPollAdapterMs": 210000, "cleanupReserveMs": 5000 }, "scenarioSumMs": 5585000, "totalMs": 5610000 }
|
|
154
|
+
},
|
|
155
|
+
"reboot-request": {
|
|
156
|
+
"fixed": {
|
|
157
|
+
"allowedRoot": "/evidence",
|
|
158
|
+
"evidencePath": "/evidence/reboot.json",
|
|
159
|
+
"targetId": "sanctuary",
|
|
160
|
+
"adapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
161
|
+
"scenarioAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
162
|
+
"provenanceAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
163
|
+
"harnessPath": "/opt/ouro/deploy/unraid/sanctuary-acceptance-harness.sh",
|
|
164
|
+
"scenarioTimeoutMs": 125000,
|
|
165
|
+
"scenarioIntervalMs": 2000
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"reboot-resume": {
|
|
169
|
+
"fixed": {
|
|
170
|
+
"allowedRoot": "/evidence",
|
|
171
|
+
"evidencePath": "/evidence/reboot.json",
|
|
172
|
+
"adapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
173
|
+
"timeoutMs": 600000,
|
|
174
|
+
"intervalMs": 5000,
|
|
175
|
+
"scenarioAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
176
|
+
"provenanceAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh",
|
|
177
|
+
"harnessPath": "/opt/ouro/deploy/unraid/sanctuary-acceptance-harness.sh",
|
|
178
|
+
"scenarioTimeoutMs": 125000,
|
|
179
|
+
"scenarioIntervalMs": 2000
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"evidence-bundle-index": {
|
|
183
|
+
"fixed": {
|
|
184
|
+
"allowedRoot": "/evidence",
|
|
185
|
+
"evidencePath": "/evidence/unit-16-evidence-bundle.json",
|
|
186
|
+
"harnessPath": "/opt/ouro/deploy/unraid/sanctuary-acceptance-harness.sh",
|
|
187
|
+
"provenanceAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh"
|
|
188
|
+
},
|
|
189
|
+
"dynamic": ["entries:exact-unit-16-evidence-matrix"]
|
|
190
|
+
},
|
|
191
|
+
"evidence-bundle-verify": {
|
|
192
|
+
"fixed": {
|
|
193
|
+
"allowedRoot": "/evidence",
|
|
194
|
+
"evidencePath": "/evidence/unit-16-evidence-bundle.json",
|
|
195
|
+
"harnessPath": "/opt/ouro/deploy/unraid/sanctuary-acceptance-harness.sh",
|
|
196
|
+
"provenanceAdapter": "/opt/ouro/deploy/unraid/sanctuary-acceptance-adapter.sh"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
set -eu
|
|
3
|
+
|
|
4
|
+
ENTRY='import fs from "node:fs"; import("/opt/ouro/dist/heart/daemon/sanctuary-acceptance-harness.js").then(async (module) => { const configPath = process.argv[2]; const config = JSON.parse(fs.readFileSync(configPath || 0, "utf8")); await module.executeSanctuaryAcceptanceHarness(process.argv[1] ?? "", config); }).catch(() => { process.exitCode = 1; });'
|
|
5
|
+
|
|
6
|
+
if test "${1:-}" = --contract; then
|
|
7
|
+
exec /bin/cat /opt/ouro/deploy/unraid/sanctuary-acceptance-contract.json
|
|
8
|
+
fi
|
|
9
|
+
|
|
10
|
+
COMMAND=${1:-}
|
|
11
|
+
CONFIG_PATH=
|
|
12
|
+
if test "${2:-}" = --config; then
|
|
13
|
+
test -n "${3:-}" || exit 2
|
|
14
|
+
CONFIG_PATH=$3
|
|
15
|
+
test "$#" -eq 3 || exit 2
|
|
16
|
+
elif test "$#" -gt 1; then
|
|
17
|
+
exit 2
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
if test -e /proc/self/fd/3; then
|
|
21
|
+
exec node --input-type=module -e "$ENTRY" "$COMMAND" "$CONFIG_PATH" 3<&3
|
|
22
|
+
fi
|
|
23
|
+
exec node --input-type=module -e "$ENTRY" "$COMMAND" "$CONFIG_PATH"
|