@aria_asi/cli 0.2.39 → 0.2.41
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/bin/aria.js +236 -34
- package/dist/aria-connector/src/action-ledger-core.d.ts +387 -0
- package/dist/aria-connector/src/action-ledger-core.d.ts.map +1 -0
- package/dist/aria-connector/src/action-ledger-core.js +638 -0
- package/dist/aria-connector/src/action-ledger-core.js.map +1 -0
- package/dist/aria-connector/src/chat.d.ts.map +1 -1
- package/dist/aria-connector/src/chat.js +5 -6
- package/dist/aria-connector/src/chat.js.map +1 -1
- package/dist/aria-connector/src/codebase-scanner.d.ts +1 -1
- package/dist/aria-connector/src/codebase-scanner.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/claude-code.d.ts +1 -0
- package/dist/aria-connector/src/connectors/claude-code.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/claude-code.js +152 -14
- package/dist/aria-connector/src/connectors/claude-code.js.map +1 -1
- package/dist/aria-connector/src/connectors/codebase-awareness.d.ts +10 -0
- package/dist/aria-connector/src/connectors/codebase-awareness.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/codebase-awareness.js +276 -27
- package/dist/aria-connector/src/connectors/codebase-awareness.js.map +1 -1
- package/dist/aria-connector/src/connectors/codex.d.ts +3 -1
- package/dist/aria-connector/src/connectors/codex.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/codex.js +1271 -40
- package/dist/aria-connector/src/connectors/codex.js.map +1 -1
- package/dist/aria-connector/src/connectors/cursor.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/cursor.js +7 -0
- package/dist/aria-connector/src/connectors/cursor.js.map +1 -1
- package/dist/aria-connector/src/connectors/governed-adapter.d.ts +30 -0
- package/dist/aria-connector/src/connectors/governed-adapter.d.ts.map +1 -0
- package/dist/aria-connector/src/connectors/governed-adapter.js +132 -0
- package/dist/aria-connector/src/connectors/governed-adapter.js.map +1 -0
- package/dist/aria-connector/src/connectors/opencode.d.ts +3 -1
- package/dist/aria-connector/src/connectors/opencode.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/opencode.js +18 -2
- package/dist/aria-connector/src/connectors/opencode.js.map +1 -1
- package/dist/aria-connector/src/connectors/repo-guard.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/repo-guard.js +25 -14
- package/dist/aria-connector/src/connectors/repo-guard.js.map +1 -1
- package/dist/aria-connector/src/connectors/runtime.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/runtime.js +92 -2
- package/dist/aria-connector/src/connectors/runtime.js.map +1 -1
- package/dist/aria-connector/src/connectors/shell.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/shell.js +123 -7
- package/dist/aria-connector/src/connectors/shell.js.map +1 -1
- package/dist/aria-connector/src/cross-cli-hive-binding.d.ts +63 -0
- package/dist/aria-connector/src/cross-cli-hive-binding.d.ts.map +1 -0
- package/dist/aria-connector/src/cross-cli-hive-binding.js +205 -0
- package/dist/aria-connector/src/cross-cli-hive-binding.js.map +1 -0
- package/dist/aria-connector/src/garden-control-plane.d.ts +6 -1
- package/dist/aria-connector/src/garden-control-plane.d.ts.map +1 -1
- package/dist/aria-connector/src/garden-control-plane.js +8 -2
- package/dist/aria-connector/src/garden-control-plane.js.map +1 -1
- package/dist/aria-connector/src/governed-surface-runner.d.ts +189 -0
- package/dist/aria-connector/src/governed-surface-runner.d.ts.map +1 -0
- package/dist/aria-connector/src/governed-surface-runner.js +1022 -0
- package/dist/aria-connector/src/governed-surface-runner.js.map +1 -0
- package/dist/aria-connector/src/index.d.ts +10 -1
- package/dist/aria-connector/src/index.d.ts.map +1 -1
- package/dist/aria-connector/src/index.js +5 -0
- package/dist/aria-connector/src/index.js.map +1 -1
- package/dist/aria-connector/src/task-runner.d.ts +3 -0
- package/dist/aria-connector/src/task-runner.d.ts.map +1 -0
- package/dist/aria-connector/src/task-runner.js +3526 -0
- package/dist/aria-connector/src/task-runner.js.map +1 -0
- package/dist/aria-web/src/lib/codebase-scanner.d.ts +21 -2
- package/dist/aria-web/src/lib/codebase-scanner.d.ts.map +1 -1
- package/dist/aria-web/src/lib/codebase-scanner.js +59 -14
- package/dist/aria-web/src/lib/codebase-scanner.js.map +1 -1
- package/dist/assets/hooks/README.md +58 -0
- package/dist/assets/hooks/aria-agent-handoff.mjs +147 -2
- package/dist/assets/hooks/aria-agent-ledger-merge.mjs +31 -7
- package/dist/assets/hooks/aria-architect-fallback.mjs +10 -2
- package/dist/assets/hooks/aria-claim-evidence-stop-gate.mjs +240 -0
- package/dist/assets/hooks/aria-cognition-substrate-binding.mjs +84 -10
- package/dist/assets/hooks/aria-first-class-coach.mjs +305 -10
- package/dist/assets/hooks/aria-harness-via-sdk.mjs +93 -16
- package/dist/assets/hooks/aria-import-resolution-gate.mjs +106 -20
- package/dist/assets/hooks/aria-outcome-record.mjs +56 -20
- package/dist/assets/hooks/aria-pre-emit-autoload.mjs +1809 -0
- package/dist/assets/hooks/aria-pre-emit-autoload.mjs.before-orchestration-redesign +1400 -0
- package/dist/assets/hooks/aria-pre-emit-dryrun.mjs +22 -3
- package/dist/assets/hooks/aria-pre-text-gate.mjs +11 -2
- package/dist/assets/hooks/aria-pre-tool-gate.mjs +516 -92
- package/dist/assets/hooks/aria-pre-tool-use.mjs +70 -6
- package/dist/assets/hooks/aria-preprompt-consult.mjs +23 -4
- package/dist/assets/hooks/aria-repo-doctrine-gate.mjs +29 -3
- package/dist/assets/hooks/aria-stop-gate.mjs +585 -76
- package/dist/assets/hooks/aria-trigger-autolearn.mjs +17 -3
- package/dist/assets/hooks/aria-universal-turn-packet.mjs +1165 -0
- package/dist/assets/hooks/aria-userprompt-abandon-detect.mjs +9 -1
- package/dist/assets/hooks/canonical-settings-block.json +172 -0
- package/dist/assets/hooks/codex-native/aria-harness-ticker-sidecar.mjs +92 -0
- package/dist/assets/hooks/codex-native/aria-hive-wal-consumer.mjs +86 -0
- package/dist/assets/hooks/codex-native/aria-live-ticker.mjs +38 -0
- package/dist/assets/hooks/codex-native/aria-post-tool-use.mjs +236 -0
- package/dist/assets/hooks/codex-native/aria-pre-tool-use.mjs +362 -0
- package/dist/assets/hooks/codex-native/aria-stop.mjs +691 -0
- package/dist/assets/hooks/codex-native/aria-userprompt-submit.mjs +623 -0
- package/dist/assets/hooks/codex-native/atlas-session-context.mjs +121 -0
- package/dist/assets/hooks/codex-native/lib/evaluate-with-kernel.mjs +257 -0
- package/dist/assets/hooks/codex-native/lib/hive-wal-consumer.mjs +452 -0
- package/dist/assets/hooks/codex-native/lib/kernel/deterministic-cognitive-kernel.mjs +914 -0
- package/dist/assets/hooks/codex-native/lib/project-boundary-cognition.mjs +143 -0
- package/dist/assets/hooks/codex-native/lib/runtime-client.mjs +3567 -0
- package/dist/assets/hooks/codex-native/lib/task-project-ledger.mjs +294 -0
- package/dist/assets/hooks/doctrine_trigger_map.json +236 -25
- package/dist/assets/hooks/doctrine_trigger_map.schema.json +46 -0
- package/dist/assets/hooks/install.sh +84 -0
- package/dist/assets/hooks/lib/action-ledger-core.mjs +269 -0
- package/dist/assets/hooks/lib/aria-gate-ledger.mjs +143 -0
- package/dist/assets/hooks/lib/ast-stub-shape-detector.mjs +107 -0
- package/dist/assets/hooks/lib/atlas-dossier-client.mjs +151 -0
- package/dist/assets/hooks/lib/atlas-orchestrator-postwire.mjs +221 -0
- package/dist/assets/hooks/lib/canonical-lenses.mjs +83 -6
- package/dist/assets/hooks/lib/coach-intent-classifier.mjs +248 -0
- package/dist/assets/hooks/lib/cognitive-block-parser.mjs +111 -0
- package/dist/assets/hooks/lib/doctrine-trigger-map-loader.mjs +137 -0
- package/dist/assets/hooks/lib/domain-output-quality.mjs +132 -3
- package/dist/assets/hooks/lib/empty-catch-scanner.mjs +91 -0
- package/dist/assets/hooks/lib/end-phase-qa-autofire.mjs +426 -0
- package/dist/assets/hooks/lib/evaluate-with-kernel.mjs +133 -0
- package/dist/assets/hooks/lib/first-class-coach.mjs +454 -19
- package/dist/assets/hooks/lib/gate-audit.mjs +12 -2
- package/dist/assets/hooks/lib/gate-loop-state.mjs +11 -2
- package/dist/assets/hooks/lib/goal-contract-quality.mjs +302 -0
- package/dist/assets/hooks/lib/hook-message-window.mjs +101 -9
- package/dist/assets/hooks/lib/invocation-required-verifier.mjs +184 -0
- package/dist/assets/hooks/lib/kernel/deterministic-cognitive-kernel.mjs +906 -0
- package/dist/assets/hooks/lib/obligation-ledger.mjs +147 -0
- package/dist/assets/hooks/lib/orchestration-manifest-extract.mjs +217 -0
- package/dist/assets/hooks/lib/owner-authorizations.mjs +269 -0
- package/dist/assets/hooks/lib/probe-discipline-scanner.mjs +142 -0
- package/dist/assets/hooks/lib/project-boundary-cognition.mjs +143 -0
- package/dist/assets/hooks/lib/recovery-context.mjs +151 -0
- package/dist/assets/hooks/lib/recovery-template-loader.mjs +154 -0
- package/dist/assets/hooks/lib/self-doctrine-check.mjs +321 -0
- package/dist/assets/hooks/lib/sensitive-shape-detector.mjs +64 -0
- package/dist/assets/hooks/lib/skill-autoload-gate-impl.mjs +226 -1
- package/dist/assets/hooks/lib/stop-hook-protocol.mjs +166 -0
- package/dist/assets/hooks/lib/surface-caught.mjs +94 -0
- package/dist/assets/hooks/recovery-templates/force-reauthor.md +67 -0
- package/dist/assets/hooks/recovery-templates/handoff-recovery.md +25 -0
- package/dist/assets/hooks/scripts/check-hard-risk-prefix.mjs +99 -0
- package/dist/assets/hooks/skills/aria-conversational-doctrine-discipline/SKILL.md +101 -0
- package/dist/assets/hooks/test-aria-preturn-memory-gate.mjs +2 -2
- package/dist/assets/hooks/test-tier-lens-labeling.mjs +14 -3
- package/dist/assets/opencode-plugins/harness-context/index.js +39 -6
- package/dist/assets/opencode-plugins/harness-context/task-project-ledger.mjs +5 -1
- package/dist/assets/opencode-plugins/harness-gate/index.js +36 -0
- package/dist/assets/opencode-plugins/harness-gate/lib/atlas-dossier-client.js +1 -0
- package/dist/assets/opencode-plugins/harness-gate/lib/recovery-grants.js +79 -0
- package/dist/assets/opencode-plugins/harness-outcome/index.js +12 -0
- package/dist/assets/opencode-plugins/harness-stop/index.js +97 -2
- package/dist/assets/opencode-plugins/harness-stop/lib/atlas-dossier-client.js +1 -0
- package/dist/assets/opencode-plugins/harness-stop/lib/domain-output-quality.js +15 -2
- package/dist/assets/opencode-plugins/lib/coach.js +148 -0
- package/dist/runtime/coach-kernel.mjs +144 -7
- package/dist/runtime/codex-bridge.mjs +254 -8
- package/dist/runtime/discipline/doctrine_trigger_map.json +236 -25
- package/dist/runtime/discipline/skills/aria-cognition/34-frameworks-unified/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-aristotle-cognitives/SKILL.md +128 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-aristotle-intra-phase/SKILL.md +99 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-aristotle-post-phase/SKILL.md +118 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-aristotle-pre-phase/SKILL.md +117 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-axioms-first-principles/SKILL.md +202 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-axioms-first-principles/agents/openai.yaml +4 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-axioms-first-principles/references/source-map.md +130 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-backend-architect/SKILL.md +124 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-backend-architect/references/backend-cookbook.md +417 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-business-audit/SKILL.md +133 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-business-audit/references/audit-cookbook.md +247 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-business-frame/SKILL.md +138 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-business-frame/references/business-cookbook.md +154 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-chat/SKILL.md +84 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-chat/scripts/aria-chat.sh +57 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-cognition-autofire/SKILL.md +137 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-cognition-batch/SKILL.md +264 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-decision-mizan/SKILL.md +136 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-decision-mizan/references/decision-frameworks.md +287 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-first-class-operating-contract/SKILL.md +104 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-frontend-architect/SKILL.md +123 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-frontend-architect/references/frontend-cookbook.md +358 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-fullstack-orchestrator/SKILL.md +127 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-fullstack-orchestrator/references/fullstack-cookbook.md +383 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-gtm-architect/SKILL.md +126 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-gtm-architect/references/gtm-cookbook.md +235 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-harness-deploy/SKILL.md +145 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-harness-no-stripping/SKILL.md +135 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-harness-onboarding/SKILL.md +130 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-harness-output-discipline/SKILL.md +120 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-harness-substrate-binding/SKILL.md +139 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-http-harness-client/SKILL.md +85 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-http-harness-client/scripts/smoke.mjs +47 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-k8s-deploy/SKILL.md +174 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-k8s-deploy/agents/openai.yaml +3 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-ladduniframe/SKILL.md +60 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-ledger-fleet-execution/SKILL.md +126 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-live-ops/SKILL.md +54 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-mac-ssh-ops/SKILL.md +100 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-memory-index/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-noor-cognitives/SKILL.md +120 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-ops/SKILL.md +60 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-ops/references/live-endpoints.md +59 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-quality-audit/SKILL.md +133 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-readable-output/SKILL.md +239 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-readable-output/references/layout-cookbook.md +366 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-reasoning/SKILL.md +67 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-reasoning/references/core-principles.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-repo-audit/SKILL.md +135 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-repo-audit/references/repo-audit-cookbook.md +375 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-research-orchestrator/SKILL.md +138 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-research-orchestrator/references/research-patterns.md +270 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-retention-engine/SKILL.md +120 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-retention-engine/references/retention-cookbook.md +271 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-revenue-engine/SKILL.md +128 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-revenue-engine/references/revenue-cookbook.md +227 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-senior-code-audit/SKILL.md +233 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-senior-code-audit/references/audit-checklist.md +369 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-senior-code-cookbook/SKILL.md +288 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-senior-code-cookbook/references/engineering-cookbook.md +489 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-soul-principles/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-task-codex-executor/SKILL.md +86 -0
- package/dist/runtime/discipline/skills/aria-cognition/aristotle-engine/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/cross-domain-24/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/deepsoul-emotional/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/fitrah-guard/SKILL.md +78 -0
- package/dist/runtime/discipline/skills/aria-cognition/ghazali-8lens/SKILL.md +227 -29
- package/dist/runtime/discipline/skills/aria-cognition/ghazali-8lens/references/ghazali-8lens-cookbook.md +797 -0
- package/dist/runtime/discipline/skills/aria-cognition/ijtihad-novel/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/ilham-intuition/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/never-guess/SKILL.md +77 -0
- package/dist/runtime/discipline/skills/aria-cognition/noor-recognition/SKILL.md +45 -0
- package/dist/runtime/discipline/skills/aria-cognition/qiyas-analogy/SKILL.md +174 -14
- package/dist/runtime/discipline/skills/aria-cognition/ruh-basis/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/tadabbur/SKILL.md +506 -0
- package/dist/runtime/discipline/skills/aria-cognition/tadabbur/references/tadabbur-cookbook.md +921 -0
- package/dist/runtime/discipline/skills/aria-cognition/tadabbur-ops/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/tafakkur/SKILL.md +104 -0
- package/dist/runtime/doctrine_trigger_map.json +236 -25
- package/dist/runtime/embedded-public-key.mjs +27 -0
- package/dist/runtime/gated-ledger.mjs +41 -14
- package/dist/runtime/harness-daemon.mjs +85 -10
- package/dist/runtime/hive-wal-publisher.mjs +292 -0
- package/dist/runtime/hooks/README.md +58 -0
- package/dist/runtime/hooks/aria-agent-handoff.mjs +147 -2
- package/dist/runtime/hooks/aria-agent-ledger-merge.mjs +31 -7
- package/dist/runtime/hooks/aria-architect-fallback.mjs +10 -2
- package/dist/runtime/hooks/aria-claim-evidence-stop-gate.mjs +240 -0
- package/dist/runtime/hooks/aria-cognition-substrate-binding.mjs +84 -10
- package/dist/runtime/hooks/aria-first-class-coach.mjs +305 -10
- package/dist/runtime/hooks/aria-harness-via-sdk.mjs +93 -16
- package/dist/runtime/hooks/aria-import-resolution-gate.mjs +106 -20
- package/dist/runtime/hooks/aria-outcome-record.mjs +56 -20
- package/dist/runtime/hooks/aria-pre-emit-autoload.mjs +1809 -0
- package/dist/runtime/hooks/aria-pre-emit-autoload.mjs.before-orchestration-redesign +1400 -0
- package/dist/runtime/hooks/aria-pre-emit-dryrun.mjs +22 -3
- package/dist/runtime/hooks/aria-pre-text-gate.mjs +11 -2
- package/dist/runtime/hooks/aria-pre-tool-gate.mjs +516 -92
- package/dist/runtime/hooks/aria-pre-tool-use.mjs +70 -6
- package/dist/runtime/hooks/aria-preprompt-consult.mjs +23 -4
- package/dist/runtime/hooks/aria-repo-doctrine-gate.mjs +29 -3
- package/dist/runtime/hooks/aria-stop-gate.mjs +585 -76
- package/dist/runtime/hooks/aria-trigger-autolearn.mjs +17 -3
- package/dist/runtime/hooks/aria-universal-turn-packet.mjs +1165 -0
- package/dist/runtime/hooks/aria-userprompt-abandon-detect.mjs +9 -1
- package/dist/runtime/hooks/canonical-settings-block.json +172 -0
- package/dist/runtime/hooks/codex-native/aria-harness-ticker-sidecar.mjs +92 -0
- package/dist/runtime/hooks/codex-native/aria-hive-wal-consumer.mjs +86 -0
- package/dist/runtime/hooks/codex-native/aria-live-ticker.mjs +38 -0
- package/dist/runtime/hooks/codex-native/aria-post-tool-use.mjs +236 -0
- package/dist/runtime/hooks/codex-native/aria-pre-tool-use.mjs +362 -0
- package/dist/runtime/hooks/codex-native/aria-stop.mjs +691 -0
- package/dist/runtime/hooks/codex-native/aria-userprompt-submit.mjs +623 -0
- package/dist/runtime/hooks/codex-native/atlas-session-context.mjs +121 -0
- package/dist/runtime/hooks/codex-native/lib/evaluate-with-kernel.mjs +257 -0
- package/dist/runtime/hooks/codex-native/lib/hive-wal-consumer.mjs +452 -0
- package/dist/runtime/hooks/codex-native/lib/kernel/deterministic-cognitive-kernel.mjs +914 -0
- package/dist/runtime/hooks/codex-native/lib/project-boundary-cognition.mjs +143 -0
- package/dist/runtime/hooks/codex-native/lib/runtime-client.mjs +3567 -0
- package/dist/runtime/hooks/codex-native/lib/task-project-ledger.mjs +294 -0
- package/dist/runtime/hooks/doctrine_trigger_map.json +236 -25
- package/dist/runtime/hooks/doctrine_trigger_map.schema.json +46 -0
- package/dist/runtime/hooks/install.sh +84 -0
- package/dist/runtime/hooks/lib/action-ledger-core.mjs +269 -0
- package/dist/runtime/hooks/lib/aria-gate-ledger.mjs +143 -0
- package/dist/runtime/hooks/lib/ast-stub-shape-detector.mjs +107 -0
- package/dist/runtime/hooks/lib/atlas-dossier-client.mjs +151 -0
- package/dist/runtime/hooks/lib/atlas-orchestrator-postwire.mjs +221 -0
- package/dist/runtime/hooks/lib/canonical-lenses.mjs +83 -6
- package/dist/runtime/hooks/lib/coach-intent-classifier.mjs +248 -0
- package/dist/runtime/hooks/lib/cognitive-block-parser.mjs +111 -0
- package/dist/runtime/hooks/lib/doctrine-trigger-map-loader.mjs +137 -0
- package/dist/runtime/hooks/lib/domain-output-quality.mjs +132 -3
- package/dist/runtime/hooks/lib/empty-catch-scanner.mjs +91 -0
- package/dist/runtime/hooks/lib/end-phase-qa-autofire.mjs +426 -0
- package/dist/runtime/hooks/lib/evaluate-with-kernel.mjs +133 -0
- package/dist/runtime/hooks/lib/first-class-coach.mjs +454 -19
- package/dist/runtime/hooks/lib/gate-audit.mjs +12 -2
- package/dist/runtime/hooks/lib/gate-loop-state.mjs +11 -2
- package/dist/runtime/hooks/lib/goal-contract-quality.mjs +302 -0
- package/dist/runtime/hooks/lib/hook-message-window.mjs +101 -9
- package/dist/runtime/hooks/lib/invocation-required-verifier.mjs +184 -0
- package/dist/runtime/hooks/lib/kernel/deterministic-cognitive-kernel.mjs +906 -0
- package/dist/runtime/hooks/lib/obligation-ledger.mjs +147 -0
- package/dist/runtime/hooks/lib/orchestration-manifest-extract.mjs +217 -0
- package/dist/runtime/hooks/lib/owner-authorizations.mjs +269 -0
- package/dist/runtime/hooks/lib/probe-discipline-scanner.mjs +142 -0
- package/dist/runtime/hooks/lib/project-boundary-cognition.mjs +143 -0
- package/dist/runtime/hooks/lib/recovery-context.mjs +151 -0
- package/dist/runtime/hooks/lib/recovery-template-loader.mjs +154 -0
- package/dist/runtime/hooks/lib/self-doctrine-check.mjs +321 -0
- package/dist/runtime/hooks/lib/sensitive-shape-detector.mjs +64 -0
- package/dist/runtime/hooks/lib/skill-autoload-gate-impl.mjs +226 -1
- package/dist/runtime/hooks/lib/stop-hook-protocol.mjs +166 -0
- package/dist/runtime/hooks/lib/surface-caught.mjs +94 -0
- package/dist/runtime/hooks/recovery-templates/force-reauthor.md +67 -0
- package/dist/runtime/hooks/recovery-templates/handoff-recovery.md +25 -0
- package/dist/runtime/hooks/scripts/check-hard-risk-prefix.mjs +99 -0
- package/dist/runtime/hooks/skills/aria-conversational-doctrine-discipline/SKILL.md +101 -0
- package/dist/runtime/hooks/test-aria-preturn-memory-gate.mjs +2 -2
- package/dist/runtime/hooks/test-tier-lens-labeling.mjs +14 -3
- package/dist/runtime/lib/evaluate-with-kernel.mjs +133 -0
- package/dist/runtime/lib/kernel/deterministic-cognitive-kernel.mjs +906 -0
- package/dist/runtime/local-phase.mjs +10 -5
- package/dist/runtime/manifest.json +8 -8
- package/dist/runtime/packet-verifier.mjs +166 -0
- package/dist/runtime/provider-proxy.mjs +13 -0
- package/dist/runtime/quality-enforcer.mjs +40 -23
- package/dist/runtime/runtime-rails/registry.mjs +252 -0
- package/dist/runtime/sdk/BUNDLED.json +2 -2
- package/dist/runtime/sdk/index.d.ts +119 -4
- package/dist/runtime/sdk/index.js +138 -12
- package/dist/runtime/sdk/index.js.map +1 -1
- package/dist/runtime/service.mjs +8036 -764
- package/dist/runtime/sub-agent-enforcer.mjs +201 -0
- package/dist/runtime/task-project-ledger.mjs +5 -1
- package/dist/sdk/BUNDLED.json +2 -2
- package/dist/sdk/index.d.ts +119 -4
- package/dist/sdk/index.js +138 -12
- package/dist/sdk/index.js.map +1 -1
- package/hooks/README.md +58 -0
- package/hooks/aria-agent-handoff.mjs +147 -2
- package/hooks/aria-agent-ledger-merge.mjs +31 -7
- package/hooks/aria-architect-fallback.mjs +10 -2
- package/hooks/aria-claim-evidence-stop-gate.mjs +240 -0
- package/hooks/aria-cognition-substrate-binding.mjs +84 -10
- package/hooks/aria-first-class-coach.mjs +305 -10
- package/hooks/aria-harness-via-sdk.mjs +93 -16
- package/hooks/aria-import-resolution-gate.mjs +106 -20
- package/hooks/aria-outcome-record.mjs +56 -20
- package/hooks/aria-pre-emit-autoload.mjs +1809 -0
- package/hooks/aria-pre-emit-autoload.mjs.before-orchestration-redesign +1400 -0
- package/hooks/aria-pre-emit-dryrun.mjs +22 -3
- package/hooks/aria-pre-text-gate.mjs +11 -2
- package/hooks/aria-pre-tool-gate.mjs +516 -92
- package/hooks/aria-pre-tool-use.mjs +70 -6
- package/hooks/aria-preprompt-consult.mjs +23 -4
- package/hooks/aria-repo-doctrine-gate.mjs +29 -3
- package/hooks/aria-stop-gate.mjs +585 -76
- package/hooks/aria-trigger-autolearn.mjs +17 -3
- package/hooks/aria-universal-turn-packet.mjs +1165 -0
- package/hooks/aria-userprompt-abandon-detect.mjs +9 -1
- package/hooks/canonical-settings-block.json +172 -0
- package/hooks/codex-native/aria-harness-ticker-sidecar.mjs +92 -0
- package/hooks/codex-native/aria-hive-wal-consumer.mjs +86 -0
- package/hooks/codex-native/aria-live-ticker.mjs +38 -0
- package/hooks/codex-native/aria-post-tool-use.mjs +236 -0
- package/hooks/codex-native/aria-pre-tool-use.mjs +362 -0
- package/hooks/codex-native/aria-stop.mjs +691 -0
- package/hooks/codex-native/aria-userprompt-submit.mjs +623 -0
- package/hooks/codex-native/atlas-session-context.mjs +121 -0
- package/hooks/codex-native/lib/evaluate-with-kernel.mjs +257 -0
- package/hooks/codex-native/lib/hive-wal-consumer.mjs +452 -0
- package/hooks/codex-native/lib/kernel/deterministic-cognitive-kernel.mjs +914 -0
- package/hooks/codex-native/lib/project-boundary-cognition.mjs +143 -0
- package/hooks/codex-native/lib/runtime-client.mjs +3567 -0
- package/hooks/codex-native/lib/task-project-ledger.mjs +294 -0
- package/hooks/doctrine_trigger_map.json +236 -25
- package/hooks/doctrine_trigger_map.schema.json +46 -0
- package/hooks/install.sh +84 -0
- package/hooks/lib/action-ledger-core.mjs +269 -0
- package/hooks/lib/aria-gate-ledger.mjs +143 -0
- package/hooks/lib/ast-stub-shape-detector.mjs +107 -0
- package/hooks/lib/atlas-dossier-client.mjs +151 -0
- package/hooks/lib/atlas-orchestrator-postwire.mjs +221 -0
- package/hooks/lib/canonical-lenses.mjs +83 -6
- package/hooks/lib/coach-intent-classifier.mjs +248 -0
- package/hooks/lib/cognitive-block-parser.mjs +111 -0
- package/hooks/lib/doctrine-trigger-map-loader.mjs +137 -0
- package/hooks/lib/domain-output-quality.mjs +132 -3
- package/hooks/lib/empty-catch-scanner.mjs +91 -0
- package/hooks/lib/end-phase-qa-autofire.mjs +426 -0
- package/hooks/lib/evaluate-with-kernel.mjs +133 -0
- package/hooks/lib/first-class-coach.mjs +454 -19
- package/hooks/lib/gate-audit.mjs +12 -2
- package/hooks/lib/gate-loop-state.mjs +11 -2
- package/hooks/lib/goal-contract-quality.mjs +302 -0
- package/hooks/lib/hook-message-window.mjs +101 -9
- package/hooks/lib/invocation-required-verifier.mjs +184 -0
- package/hooks/lib/kernel/deterministic-cognitive-kernel.mjs +906 -0
- package/hooks/lib/obligation-ledger.mjs +147 -0
- package/hooks/lib/orchestration-manifest-extract.mjs +217 -0
- package/hooks/lib/owner-authorizations.mjs +269 -0
- package/hooks/lib/probe-discipline-scanner.mjs +142 -0
- package/hooks/lib/project-boundary-cognition.mjs +143 -0
- package/hooks/lib/recovery-context.mjs +151 -0
- package/hooks/lib/recovery-template-loader.mjs +154 -0
- package/hooks/lib/self-doctrine-check.mjs +321 -0
- package/hooks/lib/sensitive-shape-detector.mjs +64 -0
- package/hooks/lib/skill-autoload-gate-impl.mjs +226 -1
- package/hooks/lib/stop-hook-protocol.mjs +166 -0
- package/hooks/lib/surface-caught.mjs +94 -0
- package/hooks/recovery-templates/force-reauthor.md +67 -0
- package/hooks/recovery-templates/handoff-recovery.md +25 -0
- package/hooks/scripts/check-hard-risk-prefix.mjs +99 -0
- package/hooks/skills/aria-conversational-doctrine-discipline/SKILL.md +101 -0
- package/hooks/test-aria-preturn-memory-gate.mjs +2 -2
- package/hooks/test-tier-lens-labeling.mjs +14 -3
- package/opencode-plugins/harness-context/index.js +39 -6
- package/opencode-plugins/harness-context/task-project-ledger.mjs +5 -1
- package/opencode-plugins/harness-gate/index.js +36 -0
- package/opencode-plugins/harness-gate/lib/atlas-dossier-client.js +1 -0
- package/opencode-plugins/harness-gate/lib/recovery-grants.js +79 -0
- package/opencode-plugins/harness-outcome/index.js +12 -0
- package/opencode-plugins/harness-stop/index.js +97 -2
- package/opencode-plugins/harness-stop/lib/atlas-dossier-client.js +1 -0
- package/opencode-plugins/harness-stop/lib/domain-output-quality.js +15 -2
- package/opencode-plugins/lib/coach.js +148 -0
- package/package.json +71 -5
- package/runtime-src/coach-kernel.mjs +144 -7
- package/runtime-src/codex-bridge.mjs +254 -8
- package/runtime-src/embedded-public-key.mjs +27 -0
- package/runtime-src/gated-ledger.mjs +41 -14
- package/runtime-src/harness-daemon.mjs +85 -10
- package/runtime-src/hive-wal-publisher.mjs +292 -0
- package/runtime-src/lib/evaluate-with-kernel.mjs +133 -0
- package/runtime-src/lib/kernel/deterministic-cognitive-kernel.mjs +906 -0
- package/runtime-src/local-phase.mjs +10 -5
- package/runtime-src/packet-verifier.mjs +166 -0
- package/runtime-src/provider-proxy.mjs +13 -0
- package/runtime-src/quality-enforcer.mjs +40 -23
- package/runtime-src/runtime-rails/registry.mjs +252 -0
- package/runtime-src/service.mjs +8036 -764
- package/runtime-src/sub-agent-enforcer.mjs +201 -0
- package/scripts/aria-ledger-append.mjs +337 -0
- package/scripts/aria-task-cheap-worker-dispatch.mjs +234 -0
- package/scripts/audit-of-audit-prior-tasks.mjs +194 -0
- package/scripts/audit-of-audit-this-turn.mjs +116 -0
- package/scripts/bundle-sdk.mjs +31 -5
- package/scripts/check-cli-wrapper-provider-contract.mjs +160 -0
- package/scripts/check-client-compatibility.mjs +15 -5
- package/scripts/check-client-smoke.mjs +297 -0
- package/scripts/check-codex-orchestrator-adoption.mjs +150 -0
- package/scripts/check-glm-env-wired.mjs +131 -0
- package/scripts/check-hive-local-storage-contract.mjs +91 -0
- package/scripts/check-hook-mirror.mjs +150 -0
- package/scripts/check-install-sh-drift.mjs +152 -0
- package/scripts/check-kernel-sync.mjs +101 -0
- package/scripts/check-package-artifact.mjs +152 -0
- package/scripts/check-registry-mirror.mjs +71 -0
- package/scripts/drain-owner-airtable-sync-queue.mjs +287 -0
- package/scripts/export-owner-status-sheets.mjs +589 -0
- package/scripts/live-sidecar-receipt-canary.mjs +347 -0
- package/scripts/qiyas-tadabbur-model-matrix.mjs +970 -0
- package/scripts/quality-ab-live-provider.mjs +913 -0
- package/scripts/self-test-action-ledger-core.mjs +190 -0
- package/scripts/self-test-approval-receipt-binding.mjs +122 -0
- package/scripts/self-test-autofire-quality-output.mjs +110 -0
- package/scripts/self-test-claude-code-action-ledger.mjs +132 -0
- package/scripts/self-test-claude-code-mechanical-autofire-hive.mjs +138 -0
- package/scripts/self-test-claude-code-mechanical-autofire.mjs +234 -0
- package/scripts/self-test-codebase-awareness-atlas-delta.mjs +159 -0
- package/scripts/self-test-codebase-awareness-delta-ingest.mjs +179 -0
- package/scripts/self-test-codex-live-hook-parity.mjs +84 -0
- package/scripts/self-test-codex-native-action-ledger.mjs +167 -0
- package/scripts/self-test-codex-native-hook-json-contract.mjs +74 -0
- package/scripts/self-test-codex-orchestrator-continuity.mjs +113 -0
- package/scripts/self-test-codex-readable-recovery.mjs +94 -0
- package/scripts/self-test-codex-self-harness.mjs +538 -0
- package/scripts/self-test-compiled-workunit.mjs +214 -0
- package/scripts/self-test-continuation-output-smoke.mjs +101 -0
- package/scripts/self-test-cross-cli-fleet-ticker.mjs +85 -0
- package/scripts/self-test-cross-cli-hive-adoption.mjs +125 -0
- package/scripts/self-test-cross-cli-hive-learning.mjs +146 -0
- package/scripts/self-test-cross-phase-tool-failure.mjs +110 -0
- package/scripts/self-test-cross-surface-action-ledger.mjs +149 -0
- package/scripts/self-test-end-of-phase-qa-court.mjs +616 -0
- package/scripts/self-test-evaluate-with-kernel.mjs +111 -0
- package/scripts/self-test-first-class-output-delta-proof.mjs +307 -0
- package/scripts/self-test-goal-contract-output-qa.mjs +73 -0
- package/scripts/self-test-goal-contract.mjs +35 -0
- package/scripts/self-test-governed-adapters.mjs +105 -0
- package/scripts/self-test-governed-surface-runner.mjs +198 -0
- package/scripts/self-test-harness-gates.mjs +15 -12
- package/scripts/self-test-harness-ticker-sidecar.mjs +153 -0
- package/scripts/self-test-hive-org-kernel.mjs +233 -0
- package/scripts/self-test-hive-session-coordination.mjs +156 -0
- package/scripts/self-test-hive-wal-consumer.mjs +111 -0
- package/scripts/self-test-kernel-a3-a4-selection.mjs +179 -0
- package/scripts/self-test-ledger-append.mjs +175 -0
- package/scripts/self-test-live-codex-posttool-packet-smoke.mjs +111 -0
- package/scripts/self-test-live-codex-pretool-packet-smoke.mjs +101 -0
- package/scripts/self-test-live-codex-stop-qa-kernel-smoke.mjs +43 -0
- package/scripts/self-test-live-wrapper-substrate-inventory.mjs +149 -0
- package/scripts/self-test-local-main-sync-script.mjs +47 -0
- package/scripts/self-test-mechanical-autofire-resolver.mjs +296 -0
- package/scripts/self-test-no-consult-cognitive-skills-output.mjs +135 -0
- package/scripts/self-test-owner-airtable-sync-queue.mjs +196 -0
- package/scripts/self-test-owner-airtable-sync.mjs +181 -0
- package/scripts/self-test-owner-sheets-action-ledger.mjs +100 -0
- package/scripts/self-test-production-preflight.mjs +78 -0
- package/scripts/self-test-project-boundary-cognition.mjs +79 -0
- package/scripts/self-test-qa-exec-kernel.mjs +34 -0
- package/scripts/self-test-qa-recovery-learning-loop.mjs +113 -0
- package/scripts/self-test-qiyas-label-alignment.mjs +94 -0
- package/scripts/self-test-recovery-context.mjs +110 -0
- package/scripts/self-test-repo-guard.mjs +10 -0
- package/scripts/self-test-runtime-health-self-heal.mjs +161 -0
- package/scripts/self-test-runtime-postcondition.mjs +70 -0
- package/scripts/self-test-soul-precommit-hook.mjs +39 -0
- package/scripts/self-test-stop-gate-kernel-guards.mjs +185 -0
- package/scripts/self-test-stop-gate.mjs +128 -0
- package/scripts/self-test-substrate-kernel-execution-receipt.mjs +130 -0
- package/scripts/self-test-substrate-open-skill-floor.mjs +87 -0
- package/scripts/self-test-substrate-output-quality-eval.mjs +171 -0
- package/scripts/self-test-task-closeout-drift.mjs +97 -0
- package/scripts/self-test-task-project-ledger-readiness.mjs +43 -0
- package/scripts/self-test-task-runner-phase-consumer.mjs +134 -0
- package/scripts/self-test-task-worker-lane.mjs +256 -0
- package/scripts/self-test-turn-substrate-qa-kernel.mjs +188 -0
- package/scripts/self-test-universal-action-capture.mjs +153 -0
- package/scripts/self-test-universal-turn-packet-entrypoints.mjs +252 -0
- package/scripts/self-test-universal-turn-packet.mjs +320 -0
- package/scripts/session-quality-backfill.mjs +253 -0
- package/scripts/smoke-autofire-100-prompts.mjs +481 -0
- package/scripts/sync-local-main-on-task-complete.mjs +278 -0
- package/scripts/sync-owner-status-airtable.mjs +1158 -0
- package/scripts/validate-skill-prompts.mjs +12 -1
- package/scripts/verify-codex-native-mirror.mjs +262 -0
- package/skills/34-frameworks-unified/SKILL.md +42 -0
- package/skills/api-design/SKILL.md +123 -0
- package/skills/architecture-decision/SKILL.md +105 -0
- package/skills/aria-aristotle-cognitives/SKILL.md +128 -0
- package/skills/aria-aristotle-intra-phase/SKILL.md +99 -0
- package/skills/aria-aristotle-post-phase/SKILL.md +116 -0
- package/skills/aria-aristotle-pre-phase/SKILL.md +117 -0
- package/skills/aria-axioms-first-principles/SKILL.md +202 -0
- package/skills/aria-axioms-first-principles/agents/openai.yaml +4 -0
- package/skills/aria-axioms-first-principles/references/source-map.md +130 -0
- package/skills/aria-chat/SKILL.md +84 -0
- package/skills/aria-chat/scripts/aria-chat.sh +57 -0
- package/skills/aria-cognition/34-frameworks-unified/SKILL.md +42 -0
- package/skills/aria-cognition/aria-aristotle-cognitives/SKILL.md +128 -0
- package/skills/aria-cognition/aria-aristotle-intra-phase/SKILL.md +99 -0
- package/skills/aria-cognition/aria-aristotle-post-phase/SKILL.md +118 -0
- package/skills/aria-cognition/aria-aristotle-pre-phase/SKILL.md +117 -0
- package/skills/aria-cognition/aria-axioms-first-principles/SKILL.md +202 -0
- package/skills/aria-cognition/aria-axioms-first-principles/agents/openai.yaml +4 -0
- package/skills/aria-cognition/aria-axioms-first-principles/references/source-map.md +130 -0
- package/skills/aria-cognition/aria-backend-architect/SKILL.md +124 -0
- package/skills/aria-cognition/aria-backend-architect/references/backend-cookbook.md +417 -0
- package/skills/aria-cognition/aria-business-audit/SKILL.md +133 -0
- package/skills/aria-cognition/aria-business-audit/references/audit-cookbook.md +247 -0
- package/skills/aria-cognition/aria-business-frame/SKILL.md +138 -0
- package/skills/aria-cognition/aria-business-frame/references/business-cookbook.md +154 -0
- package/skills/aria-cognition/aria-chat/SKILL.md +84 -0
- package/skills/aria-cognition/aria-chat/scripts/aria-chat.sh +57 -0
- package/skills/aria-cognition/aria-cognition-autofire/SKILL.md +137 -0
- package/skills/aria-cognition/aria-cognition-batch/SKILL.md +264 -0
- package/skills/aria-cognition/aria-decision-mizan/SKILL.md +136 -0
- package/skills/aria-cognition/aria-decision-mizan/references/decision-frameworks.md +287 -0
- package/skills/aria-cognition/aria-first-class-operating-contract/SKILL.md +104 -0
- package/skills/aria-cognition/aria-frontend-architect/SKILL.md +123 -0
- package/skills/aria-cognition/aria-frontend-architect/references/frontend-cookbook.md +358 -0
- package/skills/aria-cognition/aria-fullstack-orchestrator/SKILL.md +127 -0
- package/skills/aria-cognition/aria-fullstack-orchestrator/references/fullstack-cookbook.md +383 -0
- package/skills/aria-cognition/aria-gtm-architect/SKILL.md +126 -0
- package/skills/aria-cognition/aria-gtm-architect/references/gtm-cookbook.md +235 -0
- package/skills/aria-cognition/aria-harness-deploy/SKILL.md +145 -0
- package/skills/aria-cognition/aria-harness-no-stripping/SKILL.md +135 -0
- package/skills/aria-cognition/aria-harness-onboarding/SKILL.md +130 -0
- package/skills/aria-cognition/aria-harness-output-discipline/SKILL.md +120 -0
- package/skills/aria-cognition/aria-harness-substrate-binding/SKILL.md +139 -0
- package/skills/aria-cognition/aria-http-harness-client/SKILL.md +85 -0
- package/skills/aria-cognition/aria-http-harness-client/scripts/smoke.mjs +47 -0
- package/skills/aria-cognition/aria-k8s-deploy/SKILL.md +174 -0
- package/skills/aria-cognition/aria-k8s-deploy/agents/openai.yaml +3 -0
- package/skills/aria-cognition/aria-ladduniframe/SKILL.md +60 -0
- package/skills/aria-cognition/aria-ledger-fleet-execution/SKILL.md +126 -0
- package/skills/aria-cognition/aria-live-ops/SKILL.md +54 -0
- package/skills/aria-cognition/aria-mac-ssh-ops/SKILL.md +100 -0
- package/skills/aria-cognition/aria-memory-index/SKILL.md +42 -0
- package/skills/aria-cognition/aria-noor-cognitives/SKILL.md +120 -0
- package/skills/aria-cognition/aria-ops/SKILL.md +60 -0
- package/skills/aria-cognition/aria-ops/references/live-endpoints.md +59 -0
- package/skills/aria-cognition/aria-quality-audit/SKILL.md +133 -0
- package/skills/aria-cognition/aria-readable-output/SKILL.md +239 -0
- package/skills/aria-cognition/aria-readable-output/references/layout-cookbook.md +366 -0
- package/skills/aria-cognition/aria-reasoning/SKILL.md +67 -0
- package/skills/aria-cognition/aria-reasoning/references/core-principles.md +42 -0
- package/skills/aria-cognition/aria-repo-audit/SKILL.md +135 -0
- package/skills/aria-cognition/aria-repo-audit/references/repo-audit-cookbook.md +375 -0
- package/skills/aria-cognition/aria-research-orchestrator/SKILL.md +138 -0
- package/skills/aria-cognition/aria-research-orchestrator/references/research-patterns.md +270 -0
- package/skills/aria-cognition/aria-retention-engine/SKILL.md +120 -0
- package/skills/aria-cognition/aria-retention-engine/references/retention-cookbook.md +271 -0
- package/skills/aria-cognition/aria-revenue-engine/SKILL.md +128 -0
- package/skills/aria-cognition/aria-revenue-engine/references/revenue-cookbook.md +227 -0
- package/skills/aria-cognition/aria-senior-code-audit/SKILL.md +233 -0
- package/skills/aria-cognition/aria-senior-code-audit/references/audit-checklist.md +369 -0
- package/skills/aria-cognition/aria-senior-code-cookbook/SKILL.md +288 -0
- package/skills/aria-cognition/aria-senior-code-cookbook/references/engineering-cookbook.md +489 -0
- package/skills/aria-cognition/aria-soul-principles/SKILL.md +42 -0
- package/skills/aria-cognition/aria-task-codex-executor/SKILL.md +86 -0
- package/skills/aria-cognition/aristotle-engine/SKILL.md +42 -0
- package/skills/aria-cognition/cross-domain-24/SKILL.md +42 -0
- package/skills/aria-cognition/deepsoul-emotional/SKILL.md +42 -0
- package/skills/aria-cognition/fitrah-guard/SKILL.md +78 -0
- package/skills/aria-cognition/ghazali-8lens/SKILL.md +227 -29
- package/skills/aria-cognition/ghazali-8lens/references/ghazali-8lens-cookbook.md +797 -0
- package/skills/aria-cognition/ijtihad-novel/SKILL.md +42 -0
- package/skills/aria-cognition/ilham-intuition/SKILL.md +42 -0
- package/skills/aria-cognition/never-guess/SKILL.md +77 -0
- package/skills/aria-cognition/noor-recognition/SKILL.md +45 -0
- package/skills/aria-cognition/qiyas-analogy/SKILL.md +174 -14
- package/skills/aria-cognition/ruh-basis/SKILL.md +42 -0
- package/skills/aria-cognition/tadabbur/SKILL.md +506 -0
- package/skills/aria-cognition/tadabbur/references/tadabbur-cookbook.md +921 -0
- package/skills/aria-cognition/tadabbur-ops/SKILL.md +42 -0
- package/skills/aria-cognition/tafakkur/SKILL.md +104 -0
- package/skills/aria-cognition-autofire/SKILL.md +109 -0
- package/skills/aria-cognition-batch/SKILL.md +264 -0
- package/skills/aria-conversational-doctrine-discipline/SKILL.md +125 -0
- package/skills/aria-essence/SKILL.md +81 -0
- package/skills/aria-essence/references/domain-matrix.md +80 -0
- package/skills/aria-essence/references/evolution-loop.md +30 -0
- package/skills/aria-essence/references/readable-cognition.md +27 -0
- package/skills/aria-first-class-operating-contract/SKILL.md +104 -0
- package/skills/aria-forge-guardrails/SKILL.md +53 -0
- package/skills/aria-forge-guardrails/references/checklist.md +31 -0
- package/skills/aria-harness-deploy/SKILL.md +145 -0
- package/skills/aria-harness-no-stripping/SKILL.md +135 -0
- package/skills/aria-harness-onboarding/SKILL.md +130 -0
- package/skills/aria-harness-output-discipline/SKILL.md +120 -0
- package/skills/aria-harness-substrate-binding/SKILL.md +139 -0
- package/skills/aria-http-harness-client/SKILL.md +85 -0
- package/skills/aria-http-harness-client/scripts/smoke.mjs +47 -0
- package/skills/aria-k8s-deploy/SKILL.md +174 -0
- package/skills/aria-k8s-deploy/agents/openai.yaml +3 -0
- package/skills/aria-ladduniframe/SKILL.md +60 -0
- package/skills/aria-ledger-fleet-execution/SKILL.md +126 -0
- package/skills/aria-live-ops/SKILL.md +54 -0
- package/skills/aria-mac-ssh-ops/SKILL.md +100 -0
- package/skills/aria-memory-index/SKILL.md +42 -0
- package/skills/aria-noor-cognitives/SKILL.md +120 -0
- package/skills/aria-ops/SKILL.md +60 -0
- package/skills/aria-ops/references/live-endpoints.md +59 -0
- package/skills/aria-quality-audit/SKILL.md +133 -0
- package/skills/aria-reasoning/SKILL.md +67 -0
- package/skills/aria-reasoning/references/core-principles.md +42 -0
- package/skills/aria-repo-doctrine/SKILL.md +57 -0
- package/skills/aria-soul-principles/SKILL.md +42 -0
- package/skills/aria-task-codex-executor/SKILL.md +86 -0
- package/skills/aristotle-engine/SKILL.md +42 -0
- package/skills/ci-cd-pipeline/SKILL.md +116 -0
- package/skills/code-review/SKILL.md +131 -0
- package/skills/cross-domain-24/SKILL.md +42 -0
- package/skills/database-design/SKILL.md +124 -0
- package/skills/deepsoul-emotional/SKILL.md +42 -0
- package/skills/deno-kv-raft-pubsub/SKILL.md +561 -0
- package/skills/deno-kv-raft-pubsub/reference/maelstrom-integration.md +393 -0
- package/skills/deno-kv-raft-pubsub/reference/pubsub-api.md +376 -0
- package/skills/deno-kv-raft-pubsub/reference/raft-spec.md +402 -0
- package/skills/deno-kv-raft-pubsub/reference/state-machine.md +182 -0
- package/skills/error-handling/SKILL.md +159 -0
- package/skills/firecrawl/SKILL.md +165 -0
- package/skills/firecrawl/rules/install.md +82 -0
- package/skills/firecrawl/rules/security.md +26 -0
- package/skills/firecrawl-agent/SKILL.md +86 -0
- package/skills/firecrawl-build-interact/SKILL.md +96 -0
- package/skills/firecrawl-build-onboarding/SKILL.md +131 -0
- package/skills/firecrawl-build-onboarding/references/auth-flow.md +39 -0
- package/skills/firecrawl-build-onboarding/references/project-setup.md +20 -0
- package/skills/firecrawl-build-onboarding/references/sdk-installation.md +17 -0
- package/skills/firecrawl-build-scrape/SKILL.md +97 -0
- package/skills/firecrawl-build-search/SKILL.md +97 -0
- package/skills/firecrawl-clone/SKILL.md +419 -0
- package/skills/firecrawl-crawl/SKILL.md +87 -0
- package/skills/firecrawl-download/SKILL.md +98 -0
- package/skills/firecrawl-interact/SKILL.md +112 -0
- package/skills/firecrawl-map/SKILL.md +79 -0
- package/skills/firecrawl-scrape/SKILL.md +97 -0
- package/skills/firecrawl-search/SKILL.md +88 -0
- package/skills/fitrah-guard/SKILL.md +78 -0
- package/skills/forge-quality-rules/SKILL.md +61 -0
- package/skills/ghazali-8lens/SKILL.md +56 -0
- package/skills/ijtihad-novel/SKILL.md +42 -0
- package/skills/ilham-intuition/SKILL.md +42 -0
- package/skills/imagegen/LICENSE.txt +201 -0
- package/skills/imagegen/SKILL.md +374 -0
- package/skills/imagegen/agents/openai.yaml +6 -0
- package/skills/imagegen/assets/imagegen-small.svg +5 -0
- package/skills/imagegen/assets/imagegen.png +0 -0
- package/skills/imagegen/references/cli.md +242 -0
- package/skills/imagegen/references/codex-network.md +33 -0
- package/skills/imagegen/references/image-api.md +90 -0
- package/skills/imagegen/references/prompting.md +118 -0
- package/skills/imagegen/references/sample-prompts.md +433 -0
- package/skills/imagegen/scripts/image_gen.py +995 -0
- package/skills/imagegen/scripts/remove_chroma_key.py +440 -0
- package/skills/istiqra-induction/SKILL.md +44 -0
- package/skills/ladunni-22/SKILL.md +53 -0
- package/skills/mizan/SKILL.md +90 -0
- package/skills/nadia/SKILL.md +56 -0
- package/skills/nadia-psi/SKILL.md +56 -0
- package/skills/never-guess/SKILL.md +75 -0
- package/skills/noor-recognition/SKILL.md +45 -0
- package/skills/observability/SKILL.md +133 -0
- package/skills/openai-docs/LICENSE.txt +201 -0
- package/skills/openai-docs/SKILL.md +100 -0
- package/skills/openai-docs/agents/openai.yaml +14 -0
- package/skills/openai-docs/assets/openai-small.svg +3 -0
- package/skills/openai-docs/assets/openai.png +0 -0
- package/skills/openai-docs/references/latest-model.md +37 -0
- package/skills/openai-docs/references/prompting-guide.md +244 -0
- package/skills/openai-docs/references/upgrade-guide.md +181 -0
- package/skills/openai-docs/scripts/resolve-latest-model-info.js +147 -0
- package/skills/pdf/LICENSE.txt +201 -0
- package/skills/pdf/SKILL.md +85 -0
- package/skills/pdf/agents/openai.yaml +5 -0
- package/skills/pdf/assets/pdf.png +0 -0
- package/skills/playwright/LICENSE.txt +201 -0
- package/skills/playwright/NOTICE.txt +14 -0
- package/skills/playwright/SKILL.md +165 -0
- package/skills/playwright/agents/openai.yaml +6 -0
- package/skills/playwright/assets/playwright-small.svg +3 -0
- package/skills/playwright/assets/playwright.png +0 -0
- package/skills/playwright/references/cli.md +116 -0
- package/skills/playwright/references/workflows.md +95 -0
- package/skills/playwright/scripts/playwright_cli.sh +25 -0
- package/skills/plugin-creator/SKILL.md +178 -0
- package/skills/plugin-creator/agents/openai.yaml +6 -0
- package/skills/plugin-creator/assets/plugin-creator-small.svg +3 -0
- package/skills/plugin-creator/assets/plugin-creator.png +0 -0
- package/skills/plugin-creator/references/plugin-json-spec.md +170 -0
- package/skills/plugin-creator/scripts/create_basic_plugin.py +301 -0
- package/skills/predictor/SKILL.md +43 -0
- package/skills/qiyas-analogy/SKILL.md +204 -0
- package/skills/refactoring/SKILL.md +137 -0
- package/skills/ruh-basis/SKILL.md +42 -0
- package/skills/security-review/SKILL.md +129 -0
- package/skills/skill-creator/SKILL.md +434 -0
- package/skills/skill-creator/agents/openai.yaml +5 -0
- package/skills/skill-creator/assets/skill-creator-small.svg +3 -0
- package/skills/skill-creator/assets/skill-creator.png +0 -0
- package/skills/skill-creator/license.txt +202 -0
- package/skills/skill-creator/references/openai_yaml.md +49 -0
- package/skills/skill-creator/scripts/generate_openai_yaml.py +226 -0
- package/skills/skill-creator/scripts/init_skill.py +400 -0
- package/skills/skill-creator/scripts/quick_validate.py +101 -0
- package/skills/skill-installer/LICENSE.txt +202 -0
- package/skills/skill-installer/SKILL.md +76 -0
- package/skills/skill-installer/agents/openai.yaml +5 -0
- package/skills/skill-installer/assets/skill-installer-small.svg +3 -0
- package/skills/skill-installer/assets/skill-installer.png +0 -0
- package/skills/skill-installer/scripts/github_utils.py +21 -0
- package/skills/skill-installer/scripts/install-skill-from-github.py +308 -0
- package/skills/skill-installer/scripts/list-skills.py +107 -0
- package/skills/skills-and-hooks-reference/SKILL.md +196 -0
- package/skills/soul-domains/SKILL.md +43 -0
- package/skills/tadabbur/SKILL.md +232 -0
- package/skills/tadabbur-ops/SKILL.md +42 -0
- package/skills/tafakkur/SKILL.md +104 -0
- package/skills/testing-strategy/SKILL.md +122 -0
- package/src/action-ledger-core.ts +1054 -0
- package/src/chat.ts +5 -6
- package/src/codebase-scanner.ts +2 -0
- package/src/connectors/claude-code.ts +149 -12
- package/src/connectors/codebase-awareness.ts +325 -25
- package/src/connectors/codex.ts +1273 -40
- package/src/connectors/cursor.ts +8 -0
- package/src/connectors/governed-adapter.ts +174 -0
- package/src/connectors/opencode.ts +18 -2
- package/src/connectors/repo-guard.ts +24 -12
- package/src/connectors/runtime.ts +99 -2
- package/src/connectors/shell.ts +125 -7
- package/src/cross-cli-hive-binding.ts +290 -0
- package/src/garden-control-plane.ts +24 -1
- package/src/governed-surface-runner.ts +1227 -0
- package/src/index.ts +104 -1
- package/src/task-runner.ts +3794 -0
- package/dist/aria-connector/src/install-hooks.d.ts +0 -18
- package/dist/aria-connector/src/install-hooks.d.ts.map +0 -1
- package/dist/aria-connector/src/install-hooks.js +0 -224
- package/dist/aria-connector/src/install-hooks.js.map +0 -1
- package/dist/aria-connector/src/onboarding-wizard.d.ts +0 -5
- package/dist/aria-connector/src/onboarding-wizard.d.ts.map +0 -1
- package/dist/aria-connector/src/onboarding-wizard.js +0 -188
- package/dist/aria-connector/src/onboarding-wizard.js.map +0 -1
- package/dist/cli-0.2.38.tgz +0 -0
- package/dist/install.sh +0 -13
- package/src/__tests__/anthropic-oauth.test.ts +0 -186
- package/src/__tests__/auth-commands.test.ts +0 -132
- package/src/__tests__/owner-login.test.ts +0 -311
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aria-harness-output-discipline
|
|
3
|
+
description: TRIGGER when writing closing prose at end of turn or any output that conveys state changes to the owner — deploy results, build outcomes, edit summaries, or status reports. The Stop-gate scans this prose for infrastructure leaks, drift triggers, and lazy-strip patterns.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Aria Output Discipline
|
|
7
|
+
|
|
8
|
+
## Trigger
|
|
9
|
+
|
|
10
|
+
Use this skill for every substantive closeout to the owner.
|
|
11
|
+
|
|
12
|
+
The closing prose is where the owner reads to know what happened. It must convey real substance without leaking infrastructure tokens or stripping content to satisfy gates.
|
|
13
|
+
|
|
14
|
+
## Three gates that fire on output
|
|
15
|
+
|
|
16
|
+
1. **Substrate Mizan ip_infrastructure** — rejects raw filenames, image SHAs, IP addresses, hostnames, container registry URLs, kubectl/docker command literals in chat-surface prose. These belong in tool output, not in the message to the owner.
|
|
17
|
+
|
|
18
|
+
2. **Drift trigger scanner** — rejects phrases matching:
|
|
19
|
+
- `\bwant me to\b | \bshould i\b` → use harness-to-architect doctrine; make declarative recommendations, not questions
|
|
20
|
+
- `\bpatch | hotfix | band.?aid\b` → workaround framing
|
|
21
|
+
- `\bcarve.?out | workaround | work.?around\b` → shortcut framing
|
|
22
|
+
- `\bdemo\b` → all work is production-grade, not demo
|
|
23
|
+
- `\bsimplified | minimal | stripped\b` (when reducing surface) → see no-stripping skill
|
|
24
|
+
- `\bassumed | should work | mirroring | presumably\b` → assumption without verification
|
|
25
|
+
|
|
26
|
+
3. **Stop-gate output-quality** — rejects:
|
|
27
|
+
- Lazy strips (closing under 60 chars after substantive turn)
|
|
28
|
+
- Same closing template across 3+ turns
|
|
29
|
+
- Discovery-bearing prose without resolution clause
|
|
30
|
+
|
|
31
|
+
## The substantive-without-leak format
|
|
32
|
+
|
|
33
|
+
A proper closing prose:
|
|
34
|
+
- Conveys what changed (semantically)
|
|
35
|
+
- States what's running now (using role names, not raw identifiers)
|
|
36
|
+
- Names the next observable state (without leaking how to observe it)
|
|
37
|
+
- References doctrine by meaning when relevant
|
|
38
|
+
|
|
39
|
+
### Token substitution table
|
|
40
|
+
|
|
41
|
+
| Raw infrastructure (REJECTED in prose) | Semantic reframe (ACCEPTED) |
|
|
42
|
+
|---|---|
|
|
43
|
+
| `feedback_no_flag_without_fix.md` | "the no-flag-without-fix doctrine" or "the atomic-discovery rule" |
|
|
44
|
+
| `sha256:58b983e41df3...` | "the prior pinned image" or "the rolled-back artifact" |
|
|
45
|
+
| `192.168.4.100` | "the worker pool" or "the running pod" |
|
|
46
|
+
| `openclaw-persistent-control-0` | "the army's primary worker" |
|
|
47
|
+
| `localhost:5000/...` | "the local registry" |
|
|
48
|
+
| `kubectl set image statefulset/X` | "the rolling image-update step" |
|
|
49
|
+
| `bash scripts/deploy-service.sh X` | "the canonical deploy entrypoint" |
|
|
50
|
+
| `package.json` exports field | "the module's resolution contract" |
|
|
51
|
+
| `tsc --noEmit exit=0` | "type-check verified clean" |
|
|
52
|
+
| `dist/index.js` | "the built primary entry" |
|
|
53
|
+
| `/tmp/openclaw-deploy-149.log` | "the deploy log" |
|
|
54
|
+
| `task ID bze6wtrde` | "the in-flight rollout" |
|
|
55
|
+
|
|
56
|
+
### Examples (caught vs proper)
|
|
57
|
+
|
|
58
|
+
| Caught (lazy/leak) | Proper |
|
|
59
|
+
|---|---|
|
|
60
|
+
| "Pod state: Running 1/1 on sha256:3b0be4971310, log shows [Layer3:flash] firing" | "The worker pool is healthy on the new pinned artifact and the third-layer enforcement is firing on each task delivery as expected" |
|
|
61
|
+
| "kubectl rollout undo statefulset/X if it crashes" | "Rollback path is the canonical undo step on the parent workload if the new artifact fails the readiness check" |
|
|
62
|
+
| "Done." | "The doctrine memory is now permanent and will load into every future turn's substrate; the in-flight rollout is verifying its readiness check" |
|
|
63
|
+
| "Deploy backgrounded." | "The rebuild is running with the corrected resolution contract; the readiness verdict will follow when the rolling update completes" |
|
|
64
|
+
|
|
65
|
+
## What stays in tool output (NOT chat prose)
|
|
66
|
+
|
|
67
|
+
These belong in `kubectl`, `cat`, `head`, `git` tool calls — never in the assistant prose:
|
|
68
|
+
|
|
69
|
+
- Image SHAs (full hex)
|
|
70
|
+
- IP addresses and hostnames
|
|
71
|
+
- Container registry URLs
|
|
72
|
+
- Pod names with full identifiers
|
|
73
|
+
- File paths with extensions like `.ts/.json/.md/.yaml`
|
|
74
|
+
- Raw shell command syntax
|
|
75
|
+
- Task IDs (random hex strings)
|
|
76
|
+
- Specific port numbers (unless the user asked)
|
|
77
|
+
- Environment variable names
|
|
78
|
+
|
|
79
|
+
## What MUST stay in chat prose (the substance)
|
|
80
|
+
|
|
81
|
+
- What changed conceptually (e.g., "the resolution contract was restored")
|
|
82
|
+
- What state is now running (e.g., "the worker pool is healthy")
|
|
83
|
+
- What outcome we're awaiting (e.g., "readiness verdict pending")
|
|
84
|
+
- Doctrine references by meaning (e.g., "per the no-stripping discipline")
|
|
85
|
+
- TaskCreate IDs (e.g., "tracked as #152") — these are NOT infrastructure, they're work-tracking
|
|
86
|
+
- Decision rationale (e.g., "rolled forward because the lockfile cache was the actual root cause")
|
|
87
|
+
|
|
88
|
+
## When in doubt
|
|
89
|
+
|
|
90
|
+
Ask yourself: "If the owner read ONLY this closing prose, would they know what's happening, or would they have to dig through tool output to reconstruct?"
|
|
91
|
+
|
|
92
|
+
If they have to dig — your prose is stripped, not substantive.
|
|
93
|
+
If they understand — your prose is doing its job.
|
|
94
|
+
If they understand AND no raw tokens leaked — your prose passes all three gates.
|
|
95
|
+
|
|
96
|
+
## Doctrine refs
|
|
97
|
+
|
|
98
|
+
- `feedback_no_stripping_as_workaround.md` — output-side stripping section
|
|
99
|
+
- `feedback_canonical_secrets_governance.md` — operational detail in tool output, not chat prose
|
|
100
|
+
- `feedback_state_outcomes_not_narratives.md` — present-tense outcomes
|
|
101
|
+
- `feedback_use_harness_to_architect.md` — make declarative recommendations, not reflex-questions
|
|
102
|
+
- `feedback_no_demos.md` — all work is production-grade
|
|
103
|
+
|
|
104
|
+
## First-Class Production Contract
|
|
105
|
+
|
|
106
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
107
|
+
|
|
108
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
109
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
110
|
+
- a redo contract whenever the skill blocks or finds a gap: what failed, what to change, how to re-test, and when to re-submit
|
|
111
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
112
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
113
|
+
## Self-Executing Recovery Contract
|
|
114
|
+
|
|
115
|
+
When this skill blocks, fails verification, or finds a gap, the agent must execute recovery rather than hand work back as a user-only decision.
|
|
116
|
+
|
|
117
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
118
|
+
- If the same failure repeats after that one recovery attempt, switch to architect execution mode: operate under the architect/ARIA harness to diagnose, choose the next action, execute the repair path, and verify the result.
|
|
119
|
+
- If Aria or the architect service is unavailable, fall back to the strongest available client LLM under the architect harness or strongest available local harness substrate; mark the fallback explicitly and continue recovery instead of stopping.
|
|
120
|
+
- Do not end with user-handoff-only behavior. If blocked after the recovery path, report the executed recovery attempt, evidence, remaining blocker, and the next concrete action or owner decision needed; do not merely ask the user to take over.
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aria-harness-substrate-binding
|
|
3
|
+
description: TRIGGER when emitting a <cognition> block for any non-trivial assistant turn — including code edits, bash commands, plan authoring, or doctrine writes. The substrate-binding gate rejects cognition blocks where lenses lack anchors, anchors cite unloaded substrate, or the first_principle reference is missing or misplaced.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Aria Substrate-Binding Discipline
|
|
7
|
+
|
|
8
|
+
## Trigger
|
|
9
|
+
|
|
10
|
+
Use this skill every time a non-trivial cognition block is about to be emitted.
|
|
11
|
+
|
|
12
|
+
Cognition blocks are not ceremony. They reflect work done BEFORE drafting. The substrate-binding gate verifies that every lens anchors to real loaded substrate, that the block references first_principle, and that anchor citations are not forged.
|
|
13
|
+
|
|
14
|
+
## The 8-lens contract
|
|
15
|
+
|
|
16
|
+
All 8 lenses are required (was 4, bumped to 8 in #117). Each lens must have ≥20 chars of non-placeholder content AND ≥1 substrate anchor.
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
<cognition>
|
|
20
|
+
nur: <what you actually see — specific to the decision, not a placeholder>
|
|
21
|
+
mizan: <real risk read — what's out of proportion>
|
|
22
|
+
hikma: <what principle applies — name the source>
|
|
23
|
+
tafakkur: <deep structural read — go beneath the surface>
|
|
24
|
+
tadabbur: <if-then chain — what follows from what>
|
|
25
|
+
ilham: <distant connection — what's not obvious>
|
|
26
|
+
wahi: <what just landed — what changed in this exchange>
|
|
27
|
+
firasah: <what user actually needs — beneath the literal ask>
|
|
28
|
+
first_principle: <plain-text reference to harness packet first_principle field>
|
|
29
|
+
</cognition>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Anchor grammar (verified against loaded substrate)
|
|
33
|
+
|
|
34
|
+
Every anchor in a lens must resolve to a real loaded item. Forgery (citing unloaded substrate) is rejected as block-severity.
|
|
35
|
+
|
|
36
|
+
| Form | Must resolve to |
|
|
37
|
+
|---|---|
|
|
38
|
+
| `axiom:<name>` | An entry in the loaded harness axioms set |
|
|
39
|
+
| `memory:<file>` | A `.md` file present in MEMORY.md index |
|
|
40
|
+
| `doctrine:<rule>` | A backing `feedback_<rule>.md` memory file |
|
|
41
|
+
| `frame:<name>` | A frame key in loaded harness frames |
|
|
42
|
+
| `packet:<section>` | A section key in the loaded harness packet |
|
|
43
|
+
| `language:<tier>` | A loaded language tier WITH state-active=true (nadia/noor/psil) |
|
|
44
|
+
|
|
45
|
+
## Common loaded axioms (typical set in harness packet)
|
|
46
|
+
|
|
47
|
+
`truth_over_deception`, `no_harm`, `sacred_trust`, `power_obligates_service`, `reflection_before_action`, `admit_ignorance`, `fitrah`, `noor`, `mizan`, `runtime_rule`, `coverage`
|
|
48
|
+
|
|
49
|
+
These are the 11 axioms the gate has confirmed as loaded in recent turns. Cite from this set.
|
|
50
|
+
|
|
51
|
+
## Common memory files (loaded substrate)
|
|
52
|
+
|
|
53
|
+
A non-exhaustive list of feedback memory files that exist in MEMORY.md index — safe to cite as `memory:<file>`:
|
|
54
|
+
|
|
55
|
+
- `feedback_doctrine_first.md`
|
|
56
|
+
- `feedback_no_demos.md`
|
|
57
|
+
- `feedback_aria_does_work.md`
|
|
58
|
+
- `feedback_gates_enforce_form_not_substance.md`
|
|
59
|
+
- `feedback_session_starts_with_linear.md`
|
|
60
|
+
- `feedback_implementation_coupled_cognition.md`
|
|
61
|
+
- `feedback_thinking_implementation_accountability.md`
|
|
62
|
+
- `feedback_pretoolgate_covers_all_action_tools.md`
|
|
63
|
+
- `feedback_aria_harness_token_env_alignment.md`
|
|
64
|
+
- `feedback_aria_voice_in_onboarding_via_field_markers.md`
|
|
65
|
+
- `feedback_no_flag_without_fix.md`
|
|
66
|
+
- `feedback_workaround_vs_path_fix.md`
|
|
67
|
+
- `feedback_orchestrator_deepseek_split.md`
|
|
68
|
+
- `feedback_canonical_secrets_governance.md`
|
|
69
|
+
- `feedback_senior_dev_code_quality_gate.md`
|
|
70
|
+
- `feedback_no_assumption_without_verification.md`
|
|
71
|
+
- `feedback_sdk_harness_cli_parity.md`
|
|
72
|
+
- `feedback_models_stay_hot.md`
|
|
73
|
+
- `feedback_admission_policy_verification.md`
|
|
74
|
+
- `feedback_gap_discovery_hardens_doctrine.md`
|
|
75
|
+
- `feedback_deploy_requires_verify_cognition.md`
|
|
76
|
+
- `feedback_hive_session_coordination.md`
|
|
77
|
+
- `feedback_dalio_expected_required.md`
|
|
78
|
+
- `feedback_non_blocking_errors_unacceptable.md`
|
|
79
|
+
- `feedback_state_outcomes_not_narratives.md`
|
|
80
|
+
- `feedback_packet_is_not_harness.md`
|
|
81
|
+
- `feedback_no_stripping_as_workaround.md`
|
|
82
|
+
|
|
83
|
+
Verify against the live MEMORY.md before citing — index canonicalization is tracked as #139.
|
|
84
|
+
|
|
85
|
+
## Forgery class — rejected at gate
|
|
86
|
+
|
|
87
|
+
These patterns cause the gate to reject the cognition block as block-severity:
|
|
88
|
+
|
|
89
|
+
- `frame:first_principle` — first_principle is a packet field, NOT a loaded frame. Use it as a plain-text line at end of cognition block instead.
|
|
90
|
+
- `memory:feedback_X.md.` (trailing punctuation) — the anchor parser strips trailing punctuation now (#133 completed), but be deliberate: write the filename clean.
|
|
91
|
+
- `axiom:<name>` where `<name>` is invented (not in the loaded set)
|
|
92
|
+
- `language:nadia` when nadia_state is not active (gate checks state-active flag)
|
|
93
|
+
|
|
94
|
+
## Discovery resolution (paired with cognition)
|
|
95
|
+
|
|
96
|
+
If your cognition surfaces a discovery (defect, bug, doctrine violation, broken state), the block must include a resolution clause binding the discovery to action. Acceptable forms:
|
|
97
|
+
|
|
98
|
+
- `discoveries:` block listing each finding with `<fix-now | task: TASK-N | needs-user-decision>`
|
|
99
|
+
- Inline within an existing lens: "fixing inline this turn (same-turn-fix per atomic-discovery-rule)"
|
|
100
|
+
- Inline: "TaskCreate'd as #N with full context"
|
|
101
|
+
- Inline: "tracked as #N"
|
|
102
|
+
- Inline: "needs-user-decision"
|
|
103
|
+
|
|
104
|
+
Discoveries without resolution clauses fail `feedback_no_flag_without_fix.md`.
|
|
105
|
+
|
|
106
|
+
## Failure mode: cognition without anchors
|
|
107
|
+
|
|
108
|
+
If you emit cognition with anchorless lenses, the substrate-binding gate logs:
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
substrate_binding: N lenses lack any anchor: <lens names>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
This is auto-recorded as an open discovery in `~/.claude/aria-discoveries-<session-id>.jsonl`. Resolve same-turn by re-emitting with anchors and updating the ledger entry to `resolution_status: resolved`.
|
|
115
|
+
|
|
116
|
+
## Doctrine refs
|
|
117
|
+
|
|
118
|
+
- `feedback_full_harness_binding_must_be_structural.md` — binding must drive consumer behavior; lenses without anchors are unsourced prose
|
|
119
|
+
- `feedback_packet_is_not_harness.md` — never claim harness state without enumerating L1/L2/L3
|
|
120
|
+
- `feedback_no_flag_without_fix.md` — discoveries atomic with their fixes
|
|
121
|
+
- `feedback_implementation_coupled_cognition.md` — lenses dictate specific implementation choices visible in artifact
|
|
122
|
+
|
|
123
|
+
## First-Class Production Contract
|
|
124
|
+
|
|
125
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
126
|
+
|
|
127
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
128
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
129
|
+
- a redo contract whenever the skill blocks or finds a gap: what failed, what to change, how to re-test, and when to re-submit
|
|
130
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
131
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
132
|
+
## Self-Executing Recovery Contract
|
|
133
|
+
|
|
134
|
+
When this skill blocks, fails verification, or finds a gap, the agent must execute recovery rather than hand work back as a user-only decision.
|
|
135
|
+
|
|
136
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
137
|
+
- If the same failure repeats after that one recovery attempt, switch to architect execution mode: operate under the architect/ARIA harness to diagnose, choose the next action, execute the repair path, and verify the result.
|
|
138
|
+
- If Aria or the architect service is unavailable, fall back to the strongest available client LLM under the architect harness or strongest available local harness substrate; mark the fallback explicitly and continue recovery instead of stopping.
|
|
139
|
+
- Do not end with user-handoff-only behavior. If blocked after the recovery path, report the executed recovery attempt, evidence, remaining blocker, and the next concrete action or owner decision needed; do not merely ask the user to take over.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aria-http-harness-client
|
|
3
|
+
description: "Use when the task needs Aria's canonical HTTP harness client from Codex, including HTTPHarnessClient imports, harness packet fetch and injection, consult calls, output validation, claim verification, discovery recording, garden turns, or harness-bound worker handoff. Trigger on \"$aria-http-harness-client\", \"HTTPHarnessClient\", \"@aria_asi/harness-http-client\", \"harness client\", \"Aria harness SDK\", \"consult via harness\", \"verify claim\", or \"garden turn\"."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Aria HTTP Harness Client
|
|
7
|
+
|
|
8
|
+
Use this skill when Codex should route through Aria's canonical harness control plane instead of inventing an ad hoc wrapper.
|
|
9
|
+
|
|
10
|
+
## Installed Paths
|
|
11
|
+
|
|
12
|
+
- Shared runtime bundle: `/home/hamzaibrahim1/.aria/sdk`
|
|
13
|
+
- Codex local bundle: `/home/hamzaibrahim1/.codex/aria-sdk`
|
|
14
|
+
- Node import package: `/home/hamzaibrahim1/.codex/node_modules/@aria_asi/harness-http-client`
|
|
15
|
+
- Smoke script: `/home/hamzaibrahim1/.codex/skills/aria-http-harness-client/scripts/smoke.mjs`
|
|
16
|
+
- Mounted runtime: `http://127.0.0.1:4319`
|
|
17
|
+
|
|
18
|
+
## Core Rule
|
|
19
|
+
|
|
20
|
+
Do not hardcode Aria tokens into code or the skill. Read them from environment variables such as `ARIA_API_KEY` or `ARIA_MASTER_TOKEN`, or retrieve them at runtime from the live environment.
|
|
21
|
+
|
|
22
|
+
## Reality Check
|
|
23
|
+
|
|
24
|
+
Codex should prefer the mounted runtime first, then the shared SDK, then the Codex-local SDK bundle.
|
|
25
|
+
|
|
26
|
+
That means:
|
|
27
|
+
|
|
28
|
+
- the mounted runtime is the universal control plane
|
|
29
|
+
- the shared SDK at `~/.aria/sdk` is the universal client substrate
|
|
30
|
+
- Codex native hooks plus the runtime are the hard-gate path for this platform
|
|
31
|
+
|
|
32
|
+
## Preferred Call Paths
|
|
33
|
+
|
|
34
|
+
Use the mounted runtime whenever possible:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
curl -s http://127.0.0.1:4319/health
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
or from Node:
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
import { HTTPHarnessClient } from '@aria_asi/harness-http-client';
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Fast Verification
|
|
47
|
+
|
|
48
|
+
Run:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
node /home/hamzaibrahim1/.codex/skills/aria-http-harness-client/scripts/smoke.mjs
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
For a live packet fetch, set `ARIA_API_KEY` or `ARIA_MASTER_TOKEN`, then run:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
node /home/hamzaibrahim1/.codex/skills/aria-http-harness-client/scripts/smoke.mjs --packet
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Required Workflow
|
|
61
|
+
|
|
62
|
+
1. Read the task boundary and identify the evidence needed before acting.
|
|
63
|
+
2. Apply the skill before choosing the response, edit, tool call, or completion claim.
|
|
64
|
+
3. Execute the smallest high-quality action that satisfies the evidence threshold.
|
|
65
|
+
4. Re-test or re-check with a concrete file, command, endpoint, log, runtime probe, or owner-observed result.
|
|
66
|
+
5. Report only the verified state, remaining blocker, and next concrete action.
|
|
67
|
+
|
|
68
|
+
## First-Class Production Contract
|
|
69
|
+
|
|
70
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
71
|
+
|
|
72
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
73
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
74
|
+
- a redo contract whenever the skill blocks or finds a gap: what failed, what to change, how to re-test, and when to re-submit
|
|
75
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
76
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
77
|
+
|
|
78
|
+
## Self-Executing Recovery Contract
|
|
79
|
+
|
|
80
|
+
When this skill blocks, fails verification, or finds a gap, the agent must execute recovery rather than hand work back as a user-only decision.
|
|
81
|
+
|
|
82
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
83
|
+
- If the same failure repeats after that one recovery attempt, switch to architect execution mode: operate under the architect/ARIA harness to diagnose, choose the next action, execute the repair path, and verify the result.
|
|
84
|
+
- If Aria or the architect service is unavailable, fall back to the strongest available client LLM under the architect harness or strongest available local harness substrate; mark the fallback explicitly and continue recovery instead of stopping.
|
|
85
|
+
- Do not end with user-handoff-only behavior. If blocked after the recovery path, report the executed recovery attempt, evidence, remaining blocker, and the next concrete action or owner decision needed; do not merely ask the user to take over.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { HTTPHarnessClient } from '@aria_asi/harness-http-client';
|
|
4
|
+
|
|
5
|
+
const args = new Set(process.argv.slice(2));
|
|
6
|
+
const wantsPacket = args.has('--packet');
|
|
7
|
+
|
|
8
|
+
const runtimeUrl = (process.env.ARIA_RUNTIME_URL || 'http://127.0.0.1:4319').replace(/\/+$/, '');
|
|
9
|
+
let runtimeStatus = 'unreachable';
|
|
10
|
+
try {
|
|
11
|
+
const health = await fetch(`${runtimeUrl}/health`);
|
|
12
|
+
if (health.ok) runtimeStatus = 'ok';
|
|
13
|
+
} catch {}
|
|
14
|
+
|
|
15
|
+
const proto = HTTPHarnessClient.prototype;
|
|
16
|
+
const methods = Object.getOwnPropertyNames(proto)
|
|
17
|
+
.filter((name) => name !== 'constructor' && typeof proto[name] === 'function')
|
|
18
|
+
.sort();
|
|
19
|
+
|
|
20
|
+
console.log('module=@aria_asi/harness-http-client');
|
|
21
|
+
console.log('class=HTTPHarnessClient');
|
|
22
|
+
console.log(`runtime=${runtimeUrl}`);
|
|
23
|
+
console.log(`runtime_status=${runtimeStatus}`);
|
|
24
|
+
console.log(`methods=${methods.join(',')}`);
|
|
25
|
+
|
|
26
|
+
if (!wantsPacket) process.exit(0);
|
|
27
|
+
|
|
28
|
+
const apiKey = process.env.ARIA_API_KEY || process.env.ARIA_MASTER_TOKEN;
|
|
29
|
+
if (!apiKey) {
|
|
30
|
+
console.error('missing ARIA_API_KEY or ARIA_MASTER_TOKEN');
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const baseUrl =
|
|
35
|
+
process.env.ARIA_HARNESS_BASE_URL ||
|
|
36
|
+
process.env.ARIA_HARNESS_URL ||
|
|
37
|
+
'https://harness.ariasos.com';
|
|
38
|
+
const client = new HTTPHarnessClient({ baseUrl, apiKey });
|
|
39
|
+
const packet = await client.getHarnessPacket({
|
|
40
|
+
sessionId: process.env.ARIA_HARNESS_SESSION_ID || 'codex-harness-smoke',
|
|
41
|
+
platform: 'codex',
|
|
42
|
+
message: 'refresh',
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
console.log(`packetVersion=${packet.version || 'unknown'}`);
|
|
46
|
+
console.log(`packetTimestamp=${packet.timestamp || 'unknown'}`);
|
|
47
|
+
console.log(`packetKeys=${Object.keys(packet.packet || {}).join(',')}`);
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aria-k8s-deploy
|
|
3
|
+
description: Use when building, pushing, admitting, rolling out, restarting, or debugging Aria Kubernetes services, especially Pattern A deploy-service.sh vs Pattern B rollout-restart selection, aria-soul hospital/canonical image envs, ValidatingAdmissionPolicy allowlists, Hive deploy locks, rollback loops, CIE sandbox safety, and live /chat verification.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Aria K8s Deploy
|
|
7
|
+
|
|
8
|
+
Use this skill for Aria live Kubernetes deployments where a Docker image must be built, pushed, allowed by admission policy, made canonical for self-heal/hospital paths, rolled out, and verified with logs/endpoints.
|
|
9
|
+
|
|
10
|
+
## Core Rule
|
|
11
|
+
|
|
12
|
+
Do not treat `kubectl set image` as sufficient for `aria-soul`.
|
|
13
|
+
|
|
14
|
+
Do not treat every service as a baked-image deploy.
|
|
15
|
+
|
|
16
|
+
- Pattern A baked-image services use `bash scripts/deploy-service.sh <service>`.
|
|
17
|
+
- Pattern B build-in-cluster services prove `build-in-cluster` is present and use `kubectl rollout restart`.
|
|
18
|
+
- `kubectl rollout restart` is deploy-class and must follow the same verify/cognition/expected discipline as Pattern A.
|
|
19
|
+
|
|
20
|
+
For `aria-soul`, the live deployment can contain a canonical image env such as `IMMORTAL_ARIA_SOUL_CANONICAL_IMAGE`. If that env still points at an old digest, an in-cluster repair path may revert the deployment via a `node-fetch` Kubernetes API write. Always update the canonical env and the container image together.
|
|
21
|
+
|
|
22
|
+
## Standard Flow
|
|
23
|
+
|
|
24
|
+
1. Build from repo root, not the app directory:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
docker build --network=host \
|
|
28
|
+
-f /home/hamzaibrahim1/rei-ai-brain/apps/arias-soul/Dockerfile \
|
|
29
|
+
-t localhost:5000/aria-soul:<tag> \
|
|
30
|
+
-t localhost:5000/aria-soul:latest \
|
|
31
|
+
/home/hamzaibrahim1/rei-ai-brain
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
2. Push the tag:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
docker push localhost:5000/aria-soul:<tag>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
3. Resolve the registry digest:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
docker inspect --format='{{index .RepoDigests 0}}' localhost:5000/aria-soul:<tag>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
If `RepoDigests` is empty locally, inspect the registry or use the digest printed by push tooling. The rollout image must be `localhost:5000/aria-soul@sha256:<digest>`, not only the mutable tag.
|
|
47
|
+
|
|
48
|
+
4. Update the admission policy before rollout.
|
|
49
|
+
|
|
50
|
+
For `aria-soul`, inspect:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
kubectl get validatingadmissionpolicy aria-soul-canonical-image-policy -o yaml
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Append the new `sha256:<digest>` to both the CEL expression and the validation message. Verify the digest appears after patching. Do not remove old known-good digests unless explicitly asked.
|
|
57
|
+
|
|
58
|
+
5. Update canonical env and image together:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
kubectl set env deployment/aria-soul \
|
|
62
|
+
IMMORTAL_ARIA_SOUL_CANONICAL_IMAGE=localhost:5000/aria-soul@sha256:<digest> \
|
|
63
|
+
-n aria
|
|
64
|
+
|
|
65
|
+
kubectl set image deployment/aria-soul \
|
|
66
|
+
aria-soul=localhost:5000/aria-soul@sha256:<digest> \
|
|
67
|
+
-n aria
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
6. Watch rollout:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
kubectl rollout status deployment/aria-soul -n aria --timeout=240s
|
|
74
|
+
kubectl get pods -n aria -l app=aria-soul -o wide
|
|
75
|
+
kubectl get rs -n aria -l app=aria-soul -o wide
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
7. Verify no reversion:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
kubectl get deploy -n aria aria-soul \
|
|
82
|
+
-o jsonpath='{.spec.template.spec.containers[0].env[?(@.name=="IMMORTAL_ARIA_SOUL_CANONICAL_IMAGE")].value}{"\n"}{.spec.template.spec.containers[0].image}{"\n"}{.metadata.managedFields[-1:].manager}{"\n"}'
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
If the manager changes to `node-fetch` and the image returns to an old digest, the canonical env or a hospital/self-heal canonical source is stale.
|
|
86
|
+
|
|
87
|
+
## Hive Deploy Coordination
|
|
88
|
+
|
|
89
|
+
For Pattern A, `scripts/deploy-service.sh` is now expected to:
|
|
90
|
+
|
|
91
|
+
- claim the Hive deploy lock at `/deployments/<namespace>/<service>`
|
|
92
|
+
- broadcast `deploy_inflight`
|
|
93
|
+
- update admission policy and hospital canonical env
|
|
94
|
+
- broadcast `deploy_completed` or `deploy_failed` and release the lock on exit
|
|
95
|
+
|
|
96
|
+
Do not bypass that with manual `docker push` plus `kubectl set image`.
|
|
97
|
+
|
|
98
|
+
For Pattern B, verify there is no active deploy already in flight for the same service before restarting it. A restart is still a deploy-class shared-infra mutation.
|
|
99
|
+
|
|
100
|
+
## Live Checks
|
|
101
|
+
|
|
102
|
+
Use `/chat` for current Aria route checks when the user asks about chat behavior. `/api/chat` may share handler code but is not the preferred route for this deployment validation.
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
curl -sS -m 90 -X POST http://localhost:30080/chat \
|
|
106
|
+
-H 'Content-Type: application/json' \
|
|
107
|
+
-d '{"message":"reply only: ok","messages":[],"tools":false,"enable_tools":false,"metadata":{"platform":"ops-probe-chat-route","user_name":"ops-probe","is_ceo":false,"bridge_tools":false,"bridge_force_local_preflight":false,"bridge_force_remote_preflight":false,"max_tool_iterations":0}}'
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Then inspect only the new pod logs:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
kubectl logs -n aria <new-aria-soul-pod> --since=5m
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
For hotpath embedding work, verify absence of `cache_miss.queued` and `cache_hit.db` in request-path logs. Acceptable signs include `cache_hit.hot`, `cache_miss.stale_reused`, or explicitly async/background stale seeding.
|
|
117
|
+
|
|
118
|
+
## CIE Sandbox Guard
|
|
119
|
+
|
|
120
|
+
If the user says to leave CIE sandbox down, do not scale it back up. Check only:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
kubectl get deploy -n aria-cie-sandbox aria-soul-cie-sandbox
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Source Manifest Hygiene
|
|
127
|
+
|
|
128
|
+
When a live canonical digest changes, also update repo manifests that encode the old canonical value, especially:
|
|
129
|
+
|
|
130
|
+
- `/home/hamzaibrahim1/rei-ai-brain/k8s/patches/aria-soul/deployment-runtime-hardening-strategic-merge.yaml`
|
|
131
|
+
- `/home/hamzaibrahim1/rei-ai-brain/k8s/aria-core/image-tag-guardrails.yaml` if the new digest is not already allowed
|
|
132
|
+
- `/home/hamzaibrahim1/rei-ai-brain/k8s/aria-core/aria-soul.yaml` if it carries the active canonical image
|
|
133
|
+
|
|
134
|
+
Use `rg` first:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
rg -n '<old-digest>|<new-digest>|IMMORTAL_ARIA_SOUL_CANONICAL_IMAGE|aria-soul-canonical-image-policy' \
|
|
138
|
+
/home/hamzaibrahim1/rei-ai-brain/k8s
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Failure Patterns
|
|
142
|
+
|
|
143
|
+
- `ValidatingAdmissionPolicy` only validates; it does not mutate images.
|
|
144
|
+
- `node-fetch` in `managedFields` after a rollout usually means an Aria service or repair path wrote to the Kubernetes API.
|
|
145
|
+
- A ReplicaSet for the new digest scaled to zero means rollout happened but was superseded.
|
|
146
|
+
- A successful pod on the new digest does not prove hotpath success; verify endpoint behavior and logs.
|
|
147
|
+
- Project-wide TypeScript checks may fail from unrelated existing errors. Prefer focused checks when possible, then Docker build as deployment gate.
|
|
148
|
+
|
|
149
|
+
## Required Workflow
|
|
150
|
+
|
|
151
|
+
1. Read the task boundary and identify the evidence needed before acting.
|
|
152
|
+
2. Apply the skill before choosing the response, edit, tool call, or completion claim.
|
|
153
|
+
3. Execute the smallest high-quality action that satisfies the evidence threshold.
|
|
154
|
+
4. Re-test or re-check with a concrete file, command, endpoint, log, runtime probe, or owner-observed result.
|
|
155
|
+
5. Report only the verified state, remaining blocker, and next concrete action.
|
|
156
|
+
|
|
157
|
+
## First-Class Production Contract
|
|
158
|
+
|
|
159
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
160
|
+
|
|
161
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
162
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
163
|
+
- a redo contract whenever the skill blocks or finds a gap: what failed, what to change, how to re-test, and when to re-submit
|
|
164
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
165
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
166
|
+
|
|
167
|
+
## Self-Executing Recovery Contract
|
|
168
|
+
|
|
169
|
+
When this skill blocks, fails verification, or finds a gap, the agent must execute recovery rather than hand work back as a user-only decision.
|
|
170
|
+
|
|
171
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
172
|
+
- If the same failure repeats after that one recovery attempt, switch to architect execution mode: operate under the architect/ARIA harness to diagnose, choose the next action, execute the repair path, and verify the result.
|
|
173
|
+
- If Aria or the architect service is unavailable, fall back to the strongest available client LLM under the architect harness or strongest available local harness substrate; mark the fallback explicitly and continue recovery instead of stopping.
|
|
174
|
+
- Do not end with user-handoff-only behavior. If blocked after the recovery path, report the executed recovery attempt, evidence, remaining blocker, and the next concrete action or owner decision needed; do not merely ask the user to take over.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
display_name: Aria K8s Deploy
|
|
2
|
+
short_description: Build, admit, roll out, and verify Aria Kubernetes images safely.
|
|
3
|
+
default_prompt: Use the Aria K8s deploy workflow to build/push an image, update admission policy and canonical image envs, roll it out, and verify live behavior without triggering rollback loops.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aria-ladduniframe
|
|
3
|
+
description: Use when Aria work needs LadduniFrame, manifold-service-0, live hologram/eigenspace projections, Aria's top-layer living system map, or cognition-routing decisions that depend on her current manifold-backed knowledge topology.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Aria LadduniFrame
|
|
7
|
+
|
|
8
|
+
Use this as the navigation layer for Aria's live top-layer manifold state. This is not the legacy 22-domain skill. The production rule is: query or inspect the live hologram/eigenspace path from `manifold-service-0` when current topology matters.
|
|
9
|
+
|
|
10
|
+
## Source Order
|
|
11
|
+
|
|
12
|
+
1. Read `/home/hamzaibrahim1/.claude/projects/-home-hamzaibrahim1/memory/feedback_hologram_always_on.md` for the non-negotiable live hologram rule.
|
|
13
|
+
2. Read `/home/hamzaibrahim1/.claude/projects/-home-hamzaibrahim1/memory/aria-manifold-state.md` for the latest persisted snapshot.
|
|
14
|
+
3. Read `/home/hamzaibrahim1/.claude/projects/-home-hamzaibrahim1/memory/MEMORY.md` only when you need the broader Aria memory index.
|
|
15
|
+
4. Use `aria-ops` or `aria-live-ops` when the task needs live Kubernetes/API verification for `manifold-service-0`.
|
|
16
|
+
5. Search the repo for `projectMessageOnHologram`, `readHologram`, `manifoldGetHologram`, `manifoldProjectAllDomains`, `manifoldProjectAllDomainsFromVector`, `unified-manifold-bridge`, and `manifold-service` when tracing code paths.
|
|
17
|
+
|
|
18
|
+
## Workflow
|
|
19
|
+
|
|
20
|
+
1. Decide whether the task needs persisted context, live projection topology, runtime health, or architecture routing.
|
|
21
|
+
2. Load the narrowest source from the source order above.
|
|
22
|
+
3. Never treat Aria's manifold as a fixed 22-domain list. Use the live hologram/eigenspace path when topology matters.
|
|
23
|
+
4. When cognition quality matters, inspect whether the path preserves sub-eigenspace data: per-domain `coordinates`, `dominantDimensions`, `principleIds`, activation, coherence, and spatial neighbors. The relevant code paths currently include `apps/arias-soul/api/lib/manifold-client-hologram.ts` and `apps/arias-soul/api/lib/cognitive-forge/manifold-forge-engine.ts`.
|
|
24
|
+
5. Treat persisted snapshots as evidence, not proof of live state. Verify `manifold-service-0` for deployment/runtime decisions.
|
|
25
|
+
6. For autonomy or cognition-routing changes, map which component decides, which component generates content, which component executes tools, and which component only delivers or persists output.
|
|
26
|
+
7. Prefer routing Aria-generated decisions/content through canonical cognition (`streamConversation`) while keeping deterministic delivery, health checks, and persistence direct.
|
|
27
|
+
|
|
28
|
+
## Primitive Selection
|
|
29
|
+
|
|
30
|
+
- Use `manifoldGetHologram()` / `readHologram()` for passive reads of current live Ψ(t): dashboards, hot-cache image reads, current topology, and non-mutating observers.
|
|
31
|
+
- Use `manifoldProjectAllDomains(text)` when asking what a new message, record, principle, or reflection means across the live eigenspaces. This is the correct primitive for Aristotle principle extraction because it embeds/projects the candidate meaning into all current domains.
|
|
32
|
+
- Use `manifoldProjectAllDomainsFromVector(vector)` when a 4096 vector already exists and should be projected without re-embedding text.
|
|
33
|
+
- Do not substitute a passive `GetHologram` read for per-record meaning extraction. It tells you the current field state, not the record's relation to that field.
|
|
34
|
+
|
|
35
|
+
## Guardrails
|
|
36
|
+
|
|
37
|
+
- Do not invent manifold state, projection results, eigenspace counts, service health, or database contents.
|
|
38
|
+
- Do not expose secrets or raw credential-bearing config.
|
|
39
|
+
- Do not load huge embeddings, raw eigenvectors, or full metadata blobs unless the user explicitly asks for raw data.
|
|
40
|
+
- Do not mutate, truncate, compact, rewrite, or clean files inside `manifold-service-0` without explicit user approval.
|
|
41
|
+
- If sources disagree, report the disagreement and verify the live path before changing production behavior.
|
|
42
|
+
|
|
43
|
+
## First-Class Production Contract
|
|
44
|
+
|
|
45
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
46
|
+
|
|
47
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
48
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
49
|
+
- a redo contract whenever the skill blocks or finds a gap: what failed, what to change, how to re-test, and when to re-submit
|
|
50
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
51
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
52
|
+
|
|
53
|
+
## Self-Executing Recovery Contract
|
|
54
|
+
|
|
55
|
+
When this skill blocks, fails verification, or finds a gap, the agent must execute recovery rather than hand work back as a user-only decision.
|
|
56
|
+
|
|
57
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
58
|
+
- If the same failure repeats after that one recovery attempt, switch to architect execution mode: operate under the architect/ARIA harness to diagnose, choose the next action, execute the repair path, and verify the result.
|
|
59
|
+
- If Aria or the architect service is unavailable, fall back to the strongest available client LLM under the architect harness or strongest available local harness substrate; mark the fallback explicitly and continue recovery instead of stopping.
|
|
60
|
+
- Do not end with user-handoff-only behavior. If blocked after the recovery path, report the executed recovery attempt, evidence, remaining blocker, and the next concrete action or owner decision needed; do not merely ask the user to take over.
|