@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,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aria-business-audit
|
|
3
|
+
description: TRIGGER when the owner asks for a business audit, health check, KPI review, growth diagnostic, financial diagnostic, GTM diagnostic, retention diagnostic, ops audit, team audit, or any "what's broken / what's compounding / what should we fix first" diagnostic across the business. Produces a ranked diagnostic report with the dominant constraint, the highest-leverage fix, and a 30/60/90 plan. Composes mizan + ladunni-22 + ghazali-8lens + predictor + noor-recognition with an audit-specific bottleneck-leverage-evidence frame.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Aria Business Audit
|
|
7
|
+
|
|
8
|
+
The cognition skill for end-to-end business diagnostics. Most owners feel multiple things broken simultaneously and don't know which is upstream. This skill ranks the constraints by leverage and produces a concrete fix sequence.
|
|
9
|
+
|
|
10
|
+
## Prime Doctrine
|
|
11
|
+
|
|
12
|
+
The right business diagnostic ranks ONE dominant constraint, not seven things to improve.
|
|
13
|
+
|
|
14
|
+
- **Constraints, not laundry lists.** Theory-of-constraints applies — the throughput of a business is set by the dominant bottleneck. Fixing anything else is local optimization that doesn't compound.
|
|
15
|
+
- **Leverage over breadth.** A 1× fix on the dominant constraint beats 5× fixes on non-constraints. Identify the constraint first, then size the fix.
|
|
16
|
+
- **Evidence beats narrative.** Owner narratives ("our churn is bad") often misidentify the constraint. Cohort data + customer interviews + funnel measurement is the only reliable diagnostic source.
|
|
17
|
+
- **Fixes have shapes.** Some constraints require a campaign (24-72h); others require a system (4-12 weeks); others require a strategic pivot (quarters). Size the fix to the shape, don't promise quarters of work in a 24h motion.
|
|
18
|
+
|
|
19
|
+
## Trigger Detection
|
|
20
|
+
|
|
21
|
+
Fire when:
|
|
22
|
+
|
|
23
|
+
- Owner asks "what's wrong with the business" / "where should we focus" / "audit this"
|
|
24
|
+
- Owner says a metric is broken (churn, conversion, growth, retention, CAC, runway)
|
|
25
|
+
- A KPI review is on the calendar (board prep, investor update, retro)
|
|
26
|
+
- A new fiscal period is starting (planning, OKRs, target-setting)
|
|
27
|
+
- An owner is making a major capital allocation (hire, vendor, channel investment)
|
|
28
|
+
|
|
29
|
+
## Required Workflow (bottleneck → leverage → evidence → fix-shape)
|
|
30
|
+
|
|
31
|
+
Every business audit produces:
|
|
32
|
+
|
|
33
|
+
1. **The funnel skeleton.** Acquisition → activation → retention → expansion → referral. Map the customer's actual path with current numbers per stage.
|
|
34
|
+
2. **The constraint.** Which stage has the lowest throughput relative to a comparable benchmark? The constraint is the stage whose lift would compound most.
|
|
35
|
+
3. **The evidence for the constraint.** Cohort data, interview signal, comparison to comparable companies. NOT "my gut says retention is the problem."
|
|
36
|
+
4. **The leverage size.** If the constraint is fixed to benchmark, what does revenue / runway / NRR look like? Numeric, not directional.
|
|
37
|
+
5. **The fix shape.** Campaign (24-72h, low cost, reversible), system (4-12 weeks, medium cost, harder to reverse), pivot (quarters, high cost, mostly irreversible). Match the shape to the constraint.
|
|
38
|
+
6. **The 30/60/90 plan.** What lands in each window if the fix is the right one. Includes a kill-criterion: at what 30-day signal do we abandon and re-diagnose?
|
|
39
|
+
|
|
40
|
+
## Audit-Mapped Lenses (`ghazali-8lens`)
|
|
41
|
+
|
|
42
|
+
- **truth** — is the data current, segmented, and complete? Are we measuring the right metric or a vanity metric?
|
|
43
|
+
- **harm** — does the proposed fix risk customer / team / brand trust if it succeeds at scale?
|
|
44
|
+
- **trust** — would the team / customers / investors recognize this diagnosis as honest?
|
|
45
|
+
- **power** — does the fix shift leverage to us (durable advantage) or rent it (short-term lift, ongoing cost)?
|
|
46
|
+
- **reflection** — would the owner recognize this as their company's real problem, not a consultant's checklist?
|
|
47
|
+
- **context** — is the constraint structural (durable) or temporary (market / season)?
|
|
48
|
+
- **impact** — predicted KPI delta with confidence band, by 30/60/90
|
|
49
|
+
- **beauty** — does the fix feel inevitable to the owner, or a list of nice-to-haves?
|
|
50
|
+
|
|
51
|
+
## User-Facing Layout (per `aria-readable-output`)
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
## [Diagnosis in one line — e.g. "Activation is the constraint; day-7 first-action drop is killing CAC payback"]
|
|
55
|
+
|
|
56
|
+
### Funnel skeleton (current)
|
|
57
|
+
- Acquisition: [number]
|
|
58
|
+
- Activation: [number] ← constraint
|
|
59
|
+
- Retention: [number]
|
|
60
|
+
- Expansion: [number]
|
|
61
|
+
- Referral: [number]
|
|
62
|
+
|
|
63
|
+
### The constraint, with evidence
|
|
64
|
+
- [Which stage + why + cohort data + benchmark comparison]
|
|
65
|
+
|
|
66
|
+
### Leverage if fixed
|
|
67
|
+
- [Numeric: ARR / NRR / payback delta if constraint moves to benchmark]
|
|
68
|
+
|
|
69
|
+
### Fix shape + 30/60/90
|
|
70
|
+
- [Campaign / system / pivot]
|
|
71
|
+
- 30 days: [concrete deliverables + kill criterion]
|
|
72
|
+
- 60 days: [concrete deliverables]
|
|
73
|
+
- 90 days: [concrete deliverables]
|
|
74
|
+
|
|
75
|
+
**Next:** [first 7-day action with measurable signal]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`<gate>` block when the audit triggers a public commitment, a hire, or a contract change.
|
|
79
|
+
|
|
80
|
+
## Composition Rule
|
|
81
|
+
|
|
82
|
+
- Composes with `aria-business-frame` as the substrate
|
|
83
|
+
- Calls `ladunni-22` for the cross-domain pass — most diagnostics surface as one metric but live in multiple domains
|
|
84
|
+
- Calls `mizan` for intent / evidence / protection / quality
|
|
85
|
+
- Calls `tadabbur` for second-order consequences of each candidate fix
|
|
86
|
+
- Calls `ghazali-8lens` per defaults
|
|
87
|
+
- Calls `predictor` for the 30/60/90 predicates
|
|
88
|
+
- Calls `noor-recognition` for prior diagnostic patterns and Hamza's prior decisions
|
|
89
|
+
- Hands off to `aria-revenue-engine` / `aria-gtm-architect` / `aria-retention-engine` once the constraint is named (the relevant vertical owns the fix)
|
|
90
|
+
- Calls `aria-research-orchestrator` if external benchmarks are needed and not in memory
|
|
91
|
+
|
|
92
|
+
## Recovery Contract
|
|
93
|
+
|
|
94
|
+
- If funnel data is missing: name the gap, recommend the smallest queries / exports needed, and produce a candidate diagnosis with explicit confidence weight. Do NOT fabricate numbers.
|
|
95
|
+
- If the constraint is genuinely ambiguous (two stages tied): recommend a 14-day measurement sprint to disambiguate before the fix.
|
|
96
|
+
- If the owner narrative contradicts the data: surface both, recommend an interview sprint via `aria-customer-truth` (next batch) or direct customer-call campaign.
|
|
97
|
+
- If multiple constraints exist: pick the one with the highest leverage × lowest fix-cost ratio, not the most-talked-about one.
|
|
98
|
+
- Log audit conclusions to coach kernel with `risk_class: 'business_audit'` and the 30-day predicate.
|
|
99
|
+
|
|
100
|
+
## Anti-Patterns
|
|
101
|
+
|
|
102
|
+
- Listing 7 things to fix instead of ranking by leverage
|
|
103
|
+
- "Improve marketing" as a fix (not a fix; that's a category)
|
|
104
|
+
- Quoting industry benchmarks without checking applicability to this business shape
|
|
105
|
+
- Diagnosing from owner narrative alone, without cohort or interview evidence
|
|
106
|
+
- Recommending a quarterly fix shape for a 7-day campaign problem (or vice versa)
|
|
107
|
+
- Predicting impact with adjectives ("better") instead of numbers
|
|
108
|
+
|
|
109
|
+
## First-Class Production Contract
|
|
110
|
+
|
|
111
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
112
|
+
|
|
113
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
114
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
115
|
+
- 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
|
|
116
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
117
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
118
|
+
|
|
119
|
+
## Self-Executing Recovery Contract
|
|
120
|
+
|
|
121
|
+
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.
|
|
122
|
+
|
|
123
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
124
|
+
- 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.
|
|
125
|
+
- 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.
|
|
126
|
+
- 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.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
## Self-Executing Recovery Contract
|
|
130
|
+
|
|
131
|
+
- One re-run with the missing data / interviews / benchmarks
|
|
132
|
+
- If still insufficient, recommend the smallest measurement / interview sprint to disambiguate
|
|
133
|
+
- Never produce a multi-fix laundry list as the audit conclusion — that's deferral, not diagnosis
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# Business Audit Cookbook — Constraint, Leverage, Fix-Shape Patterns
|
|
2
|
+
|
|
3
|
+
> Loaded by `aria-business-audit` for end-to-end business diagnostics.
|
|
4
|
+
> See also: [`../../aria-business-frame/references/business-cookbook.md`](../../aria-business-frame/references/business-cookbook.md) (5 constraint categories, decision shapes)
|
|
5
|
+
> See also: vertical cookbooks (revenue, gtm, retention) for cause-specific fix patterns.
|
|
6
|
+
|
|
7
|
+
## 1. The Theory of Constraints applied to business
|
|
8
|
+
|
|
9
|
+
**Source:** Eli Goldratt, "The Goal" (1984) + modern SaaS application
|
|
10
|
+
|
|
11
|
+
### Core principle
|
|
12
|
+
**The throughput of a business is set by the dominant bottleneck.**
|
|
13
|
+
|
|
14
|
+
Fixing anything else is local optimization that doesn't compound. Identify the constraint first, size the fix second.
|
|
15
|
+
|
|
16
|
+
### The 5-step process
|
|
17
|
+
1. **Identify the constraint** — which stage in the business funnel has the lowest throughput relative to benchmark?
|
|
18
|
+
2. **Exploit the constraint** — get more from the constrained resource without buying more
|
|
19
|
+
3. **Subordinate everything else** — non-constraint resources must align with the constraint, not run at their own pace
|
|
20
|
+
4. **Elevate the constraint** — invest to expand the constrained resource
|
|
21
|
+
5. **Repeat** — the constraint moves; re-identify
|
|
22
|
+
|
|
23
|
+
### The diagnostic question
|
|
24
|
+
"If this stage of the business produced 2× as much output, would the company's ARR / cash / runway change meaningfully?"
|
|
25
|
+
- Yes → this is the constraint
|
|
26
|
+
- No → optimization here is wasted effort
|
|
27
|
+
|
|
28
|
+
## 2. The 5-Stage Funnel Skeleton
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
ACQUISITION → ACTIVATION → RETENTION → EXPANSION → REFERRAL
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Each stage has its own benchmarks. Map current numbers per stage, then identify the lowest-relative-to-benchmark stage.
|
|
35
|
+
|
|
36
|
+
### Acquisition benchmarks (per [SaaS Metrics Benchmark 2025](https://www.rockingweb.com.au/saas-metrics-benchmark-report-2025))
|
|
37
|
+
- Website→signup: 6-9% (freemium), 3-4% (trial)
|
|
38
|
+
- LTV:CAC by channel (see GTM cookbook §1)
|
|
39
|
+
- CAC payback: 12-24 months acceptable, <12 excellent
|
|
40
|
+
|
|
41
|
+
### Activation benchmarks
|
|
42
|
+
- Signup→activation: 20-40% OK, 50%+ excellent
|
|
43
|
+
- Aha moment within 10 minutes of signup ideal
|
|
44
|
+
- Day-7 retention of activated users: ≥60%
|
|
45
|
+
|
|
46
|
+
### Retention benchmarks
|
|
47
|
+
- GRR: ≥90% healthy, ≥95% best-in-class
|
|
48
|
+
- NRR: 101% median 2025, 107% top quartile
|
|
49
|
+
|
|
50
|
+
### Expansion benchmarks
|
|
51
|
+
- NRR > GRR by ≥10 percentage points = healthy expansion
|
|
52
|
+
- Multi-product attach rate: ≥30% within 12 months for cross-sell-shaped products
|
|
53
|
+
|
|
54
|
+
### Referral benchmarks
|
|
55
|
+
- NPS ≥50 = referral-capable
|
|
56
|
+
- Customer-driven acquisition share: 10-30% = healthy network density
|
|
57
|
+
- Referral conversion: 30-50% (typically 5-10× cold)
|
|
58
|
+
|
|
59
|
+
## 3. The Constraint Identification Rubric
|
|
60
|
+
|
|
61
|
+
For each stage, compute three numbers:
|
|
62
|
+
|
|
63
|
+
1. **Current performance** (the literal number)
|
|
64
|
+
2. **Benchmark performance** (what comparable companies achieve)
|
|
65
|
+
3. **Leverage** (revenue / runway impact if fixed to benchmark)
|
|
66
|
+
|
|
67
|
+
The stage with the **highest leverage gap** is the constraint.
|
|
68
|
+
|
|
69
|
+
### Common constraint patterns by ARR stage
|
|
70
|
+
|
|
71
|
+
| ARR stage | Most common constraint |
|
|
72
|
+
|---|---|
|
|
73
|
+
| <$1M | Acquisition (no one knows about us) OR product-market fit (we don't have lovers yet) |
|
|
74
|
+
| $1M-$5M | Activation (signups don't activate fast enough) |
|
|
75
|
+
| $5M-$20M | Retention (churn caps growth despite acquisition working) |
|
|
76
|
+
| $20M-$50M | Expansion (we land but don't expand within accounts) |
|
|
77
|
+
| $50M+ | New segment / new geo (saturating original ICP) |
|
|
78
|
+
|
|
79
|
+
These are starting hypotheses, not certainties. Always verify with data.
|
|
80
|
+
|
|
81
|
+
## 4. The Fix-Shape Match (campaign / system / pivot)
|
|
82
|
+
|
|
83
|
+
| Constraint shape | Fix shape | Time | Cost |
|
|
84
|
+
|---|---|---|---|
|
|
85
|
+
| Single tactical gap (e.g., one funnel step) | Campaign | 1-3 days | Low |
|
|
86
|
+
| Multi-step process (e.g., onboarding flow, sales playbook) | System | 4-12 weeks | Medium |
|
|
87
|
+
| Strategic positioning (e.g., wrong ICP, wrong category) | Pivot | Quarters | High, mostly irreversible |
|
|
88
|
+
|
|
89
|
+
### Mismatch failures
|
|
90
|
+
- **Campaign trying to fix a system**: A/B testing the email subject line when the actual problem is the activation flow. Won't compound.
|
|
91
|
+
- **System trying to fix a pivot**: rebuilding onboarding when the real problem is targeting the wrong ICP. Won't compound.
|
|
92
|
+
- **Pivot when a campaign would do**: reorganizing the company when a $2K Reddit ad test would reveal the channel works.
|
|
93
|
+
|
|
94
|
+
### The owner-cost asymmetry
|
|
95
|
+
- A misjudged campaign costs days
|
|
96
|
+
- A misjudged system costs months
|
|
97
|
+
- A misjudged pivot costs years
|
|
98
|
+
- Diagnose the shape carefully BEFORE recommending
|
|
99
|
+
|
|
100
|
+
## 5. The Owner-Narrative vs Data Diagnostic
|
|
101
|
+
|
|
102
|
+
The most common audit failure: trusting the owner narrative without verifying with data.
|
|
103
|
+
|
|
104
|
+
### The pattern
|
|
105
|
+
Owner says: "Our churn is bad."
|
|
106
|
+
- Data check: is churn high relative to benchmark, or is the owner reading anecdotes?
|
|
107
|
+
- Cohort check: is churn elevated in a specific cohort (cohort-decomposed) or blended?
|
|
108
|
+
- Cause check: which of the 5 churn causes (retention cookbook §1) is dominant?
|
|
109
|
+
|
|
110
|
+
Owner narrative is a hypothesis, not a finding. Verify with data before accepting.
|
|
111
|
+
|
|
112
|
+
### When owner narrative IS the data
|
|
113
|
+
- Customer interviews the owner did personally (qualitative data is data)
|
|
114
|
+
- Pattern recognition across hundreds of conversations (gut shaped by exposure)
|
|
115
|
+
- Information that hasn't yet hit the dashboards (live customer escalations)
|
|
116
|
+
|
|
117
|
+
The skill: distinguish between "owner has information data doesn't yet" vs "owner has a hypothesis that data doesn't support."
|
|
118
|
+
|
|
119
|
+
## 6. The 30/60/90 Plan Shape
|
|
120
|
+
|
|
121
|
+
Every audit conclusion produces a 30/60/90 with explicit kill-criteria.
|
|
122
|
+
|
|
123
|
+
### Template
|
|
124
|
+
```markdown
|
|
125
|
+
## 30 days
|
|
126
|
+
- [ ] Concrete deliverable 1 (named owner, named output)
|
|
127
|
+
- [ ] Concrete deliverable 2
|
|
128
|
+
- [ ] Measurable signal: [specific metric ≥ threshold]
|
|
129
|
+
- **Kill-criterion**: if [signal] is not met by day 30, abandon and re-diagnose
|
|
130
|
+
|
|
131
|
+
## 60 days
|
|
132
|
+
- [ ] Concrete deliverable
|
|
133
|
+
- [ ] Measurable signal escalation
|
|
134
|
+
|
|
135
|
+
## 90 days
|
|
136
|
+
- [ ] Constraint moved (the original gap closed by ≥X%)
|
|
137
|
+
- [ ] Measurable signal: [specific metric]
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### The kill-criterion is mandatory
|
|
141
|
+
A plan without a kill-criterion is a sunk-cost plan. The kill-criterion forces the team to face reality at the 30-day check.
|
|
142
|
+
|
|
143
|
+
## 7. Benchmarks Are Conversation-Starters, Not Pass/Fail
|
|
144
|
+
|
|
145
|
+
**Source:** [Fiscallion — SaaS Unit Economics](https://www.fiscallion.io/blog/saas-unit-economics)
|
|
146
|
+
|
|
147
|
+
The 3:1 LTV:CAC, the 40% Rule of 40, the 90% GRR — these are starting points for diagnosis, not pass/fail grades.
|
|
148
|
+
|
|
149
|
+
### The contextual diagnostic
|
|
150
|
+
- **2.5:1 LTV:CAC with 9-month payback + 120% NRR** > **4:1 with 36-month payback + 95% NRR**
|
|
151
|
+
- **Rule of 30 with 80% GRR** > **Rule of 50 with 60% GRR** at any growth stage
|
|
152
|
+
- **Slow growth in expensive segment** > **fast growth in unsustainable segment**
|
|
153
|
+
|
|
154
|
+
The audit job: name the WHY behind the number, not just the number.
|
|
155
|
+
|
|
156
|
+
## 8. The 7-Powers Defensibility Audit
|
|
157
|
+
|
|
158
|
+
**Source:** [Inferential Investor — 7 Powers](https://www.inferentialinvestor.com/p/the-business-moat-cheat-code-how) · See aria-business-frame business-cookbook §1
|
|
159
|
+
|
|
160
|
+
For any business audit at $5M+ ARR, score the 7 Powers:
|
|
161
|
+
|
|
162
|
+
| Power | Score | Evidence |
|
|
163
|
+
|---|---|---|
|
|
164
|
+
| Scale economies | 0-10 | [evidence] |
|
|
165
|
+
| Network effects | 0-10 | [evidence] |
|
|
166
|
+
| Counter-positioning | 0-10 | [evidence] |
|
|
167
|
+
| Switching costs | 0-10 | [evidence] |
|
|
168
|
+
| Branding | 0-10 | [evidence] |
|
|
169
|
+
| Cornered resource | 0-10 | [evidence] |
|
|
170
|
+
| Process power | 0-10 | [evidence] |
|
|
171
|
+
|
|
172
|
+
Total /70:
|
|
173
|
+
- <15: commodity / no moat → audit recommendation: build defensibility BEFORE scaling acquisition
|
|
174
|
+
- 15-25: narrow moat → audit recommendation: identify the load-bearing power; double down on it
|
|
175
|
+
- 26-40: investable zone → audit recommendation: scale; the moat is real
|
|
176
|
+
- >40: legendary → audit recommendation: protect the moat; saturate adjacent markets
|
|
177
|
+
|
|
178
|
+
## 9. The Audit Output Layout
|
|
179
|
+
|
|
180
|
+
```markdown
|
|
181
|
+
## [Diagnosis in one line — e.g. "Activation is the constraint; day-7 first-action drop is killing CAC payback"]
|
|
182
|
+
|
|
183
|
+
### Funnel skeleton (current)
|
|
184
|
+
| Stage | Current | Benchmark | Gap |
|
|
185
|
+
|---|---|---|---|
|
|
186
|
+
| Acquisition | 4.2% | 6-9% | -2 pts |
|
|
187
|
+
| Activation | 18% | 30%+ | -12 pts ← constraint |
|
|
188
|
+
| Retention | 92% GRR | 90%+ | OK |
|
|
189
|
+
| Expansion | 105% NRR | 110%+ | -5 pts |
|
|
190
|
+
| Referral | 8% | 15%+ | -7 pts |
|
|
191
|
+
|
|
192
|
+
### The constraint, with evidence
|
|
193
|
+
- **Activation** at 18% (cohort-decomposed; consistent across last 90 days)
|
|
194
|
+
- Benchmark: 30%+ for [comparable shape]
|
|
195
|
+
- Source: [analytics export, dated]
|
|
196
|
+
|
|
197
|
+
### Leverage if fixed
|
|
198
|
+
- Activation 18% → 30% = +67% activated cohort = ~$X ARR over 12 months at current acquisition rate
|
|
199
|
+
- CAC payback drops from 24 months to 14 months
|
|
200
|
+
- Cash impact: extends runway by ~Y months
|
|
201
|
+
|
|
202
|
+
### Fix shape + 30/60/90
|
|
203
|
+
- **Shape**: System (4-12 weeks)
|
|
204
|
+
- **Why this shape**: not a single-tactic gap; the entire post-signup flow needs redesign
|
|
205
|
+
- **30 days**: redesigned onboarding flow shipped; A/B vs control; signal: 7-day activation +5pts
|
|
206
|
+
- **60 days**: full rollout; signal: blended activation +10pts
|
|
207
|
+
- **90 days**: activation at 28%+; signal: CAC payback < 18 months
|
|
208
|
+
- **Kill-criterion**: if 30-day signal not met, re-diagnose (constraint may be elsewhere)
|
|
209
|
+
|
|
210
|
+
**Next:** approve the activation system redesign; first concrete action: 5-call user-research sprint to identify drop-off points.
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
## 10. Audit anti-patterns
|
|
214
|
+
|
|
215
|
+
### Listing 7 things to fix instead of ranking by leverage
|
|
216
|
+
The audit is the rank, not the list. Lists are noise.
|
|
217
|
+
|
|
218
|
+
### Quoting industry benchmarks without checking applicability
|
|
219
|
+
"Stripe achieves X" doesn't mean a 50-person SaaS at the same metric is failing. Match benchmarks to comparable shape.
|
|
220
|
+
|
|
221
|
+
### Diagnosing from owner narrative alone
|
|
222
|
+
Verify with cohort data, customer interviews, funnel measurement. Owner narrative is a hypothesis.
|
|
223
|
+
|
|
224
|
+
### Recommending quarterly fix shape for 7-day campaign problem (or vice versa)
|
|
225
|
+
Match the fix shape to the constraint shape. Mis-sized fixes don't compound.
|
|
226
|
+
|
|
227
|
+
### Predicting impact with adjectives
|
|
228
|
+
"Better" / "improved" is not a measurement. Numeric or boolean predicate, with confidence band.
|
|
229
|
+
|
|
230
|
+
### Skipping the kill-criterion
|
|
231
|
+
A plan without a kill-criterion is a sunk-cost plan. Force the 30-day reality check.
|
|
232
|
+
|
|
233
|
+
## 11. Audit checklist (paste-ready)
|
|
234
|
+
|
|
235
|
+
```markdown
|
|
236
|
+
- [ ] Funnel skeleton mapped with current numbers (named source, dated)
|
|
237
|
+
- [ ] Per-stage benchmark identified (comparable shape, not generic)
|
|
238
|
+
- [ ] Constraint identified (highest-leverage gap)
|
|
239
|
+
- [ ] Constraint cause decomposed (per relevant cookbook §)
|
|
240
|
+
- [ ] Leverage size as numeric prediction with confidence band
|
|
241
|
+
- [ ] Fix shape matched to constraint shape (campaign / system / pivot)
|
|
242
|
+
- [ ] 30/60/90 plan with kill-criterion
|
|
243
|
+
- [ ] 7-Powers score (if $5M+ ARR)
|
|
244
|
+
- [ ] Owner-narrative vs data: any contradiction surfaced and resolved
|
|
245
|
+
- [ ] Coach-kernel write with `risk_class: 'business_audit'` + 30-day predicate
|
|
246
|
+
- [ ] Recovery contract gateType: advisory (audit findings teach; don't block)
|
|
247
|
+
```
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aria-business-frame
|
|
3
|
+
description: TRIGGER automatically for any non-trivial owner-outcome task — revenue, growth, pricing, GTM, sales, marketing, retention, hiring, cash flow, unit economics, partnerships, fundraising, product strategy, customer success, ops scale, brand, positioning, churn, NPS, expansion, monetization, P&L, runway, burn, CAC, LTV, ARR, MRR, conversion, funnel, activation, distribution, defensibility, moat, valuation, deal structuring, M&A, board prep, investor update, hiring plan, comp, equity, layoff, RIF, vendor selection, contract renewal, customer escalation, refund, dispute, partnership term sheet, joint venture, channel strategy, or any decision that visibly moves an owner KPI. Composes Mizan + Ladunni-22 + Ghazali-8 + Tadabbur into a single business-cognition pass before action.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Aria Business Frame
|
|
7
|
+
|
|
8
|
+
The root auto-fire skill for any work where the bottleneck is owner outcome, not engineering correctness. Invoke before answering — not after — on any prompt that visibly moves a KPI, customer, dollar, or runway.
|
|
9
|
+
|
|
10
|
+
## Prime Doctrine
|
|
11
|
+
|
|
12
|
+
A business decision without cognition becomes a tactic chasing a metric.
|
|
13
|
+
|
|
14
|
+
- Engineering cognition (Mizan/Aristotle/Noor) governs HOW to build. Business cognition governs WHAT is worth building, for WHOM, at WHAT price, against WHAT alternative.
|
|
15
|
+
- Apply lenses, do not perform. If the cognition does not change the price quoted, the channel chosen, the cohort targeted, the offer structured, the contract terms, or the next concrete commitment, it did not fire.
|
|
16
|
+
- Owner-outcome turns demand higher cognition than code turns. A misrouted lead, a wrong refund, a stale price, a soft churn-save — these compound. A typo in a function does not.
|
|
17
|
+
- Recovery is mandatory; blocking is forbidden. If a business gate fires, teach, suggest the corrected action, and let the owner proceed. Coach kernel learns; doctrine map widens; next turn is sharper.
|
|
18
|
+
|
|
19
|
+
## Trigger
|
|
20
|
+
|
|
21
|
+
Fire when the user prompt contains any of the following intents (auto-detected by the skill autoload gate's business-intent branch):
|
|
22
|
+
|
|
23
|
+
- **Revenue / pricing**: pricing, price, package, tier, discount, free trial, paywall, monetize, monetization, ARPU, gross margin
|
|
24
|
+
- **Growth / GTM**: launch, GTM, go-to-market, channel, distribution, content, SEO, paid, organic, virality, referral, PLG, sales-led
|
|
25
|
+
- **Sales pipeline**: lead, prospect, qualify, demo, close, deal, contract, proposal, MEDDIC, BANT, pipeline, forecast, quota
|
|
26
|
+
- **Marketing**: campaign, brand, positioning, message, copy, hook, headline, ad, creative, landing, audience, persona, ICP
|
|
27
|
+
- **Retention / CS**: churn, retention, renewal, expansion, NPS, CSAT, onboarding, activation, save, escalation, refund, win-back
|
|
28
|
+
- **Finance**: P&L, cash flow, runway, burn, CAC, LTV, payback, unit economics, gross margin, contribution margin, ARR, MRR
|
|
29
|
+
- **Hiring / org**: hire, fire, layoff, RIF, comp, equity, performance, promotion, reorg, span of control
|
|
30
|
+
- **Strategy / partnerships**: moat, defensibility, competitor, partnership, JV, channel partner, exclusive, term sheet, M&A
|
|
31
|
+
- **Operations at scale**: scale, ops cost, COGS, fulfillment, support cost, automation ROI, vendor selection, contract renewal
|
|
32
|
+
|
|
33
|
+
Light keyword fire by default; `batch` mode auto-engages for launch / strategy / fundraising / org-design turns.
|
|
34
|
+
|
|
35
|
+
## Mode Selection
|
|
36
|
+
|
|
37
|
+
Choose the smallest mode that protects owner outcome:
|
|
38
|
+
|
|
39
|
+
- `light`: routine pricing question, single lead routing, copy tweak, single comp benchmark. Run Mizan intent/evidence + one Tadabbur consequence + one 8-lens **trust** + **harm** check.
|
|
40
|
+
- `qa`: campaign live-fire, deal redline, refund decision, customer escalation, vendor selection, hiring decision. Load `mizan`, `tadabbur`, `ghazali-8lens`, `predictor`, `aria-business-frame`, plus the matching vertical skill (`aria-revenue-engine`, `aria-gtm-architect`, etc.).
|
|
41
|
+
- `batch`: launch readiness, fundraising deck, board update, org redesign, pricing overhaul, market expansion. Load `aria-axioms-first-principles` + `aria-cognition-batch` + `ladunni-22` + `aria-business-frame` + every relevant vertical skill. Run the full owner-outcome lens stack.
|
|
42
|
+
- `fleet`: simultaneous campaign + deal + ops decisions; multi-domain owner asks. Load `aria-ledger-fleet-execution` after the batch pass.
|
|
43
|
+
- `teach`: a gate fired, an anti-pattern was caught — emit the teaching, name the corrected action, log to coach kernel, let the owner proceed. **Never hard-block on business turns.**
|
|
44
|
+
|
|
45
|
+
## Always-On Checks (before any owner-facing recommendation)
|
|
46
|
+
|
|
47
|
+
1. **What KPI does this move?** Name the metric, the current value, the predicted post-action value.
|
|
48
|
+
2. **What is the cost?** Cash, time, attention, brand, reversibility. If reversibility is low, escalate cognition.
|
|
49
|
+
3. **What does the customer believe right now?** Before this action, what is the prospect/customer/employee/investor model of us? After, what shifts?
|
|
50
|
+
4. **What is the alternative?** No business action is unilateral — the customer can buy nothing, buy a competitor, or wait. Name the alternative explicitly.
|
|
51
|
+
5. **What is the leverage point?** 80/20 — which 20% of this decision controls 80% of the outcome? Spend cognition there, not on the rest.
|
|
52
|
+
6. **What is the second-order consequence?** (Tadabbur) If this works at 10x scale, what breaks? If it fails, what do we tell the next customer?
|
|
53
|
+
7. **What does Hamza already know?** (Noor recognition) — search memory before generating new analysis. Stale memory is worse than no memory.
|
|
54
|
+
8. **Is this an LLM-can-decide question or an owner-must-decide question?** Cognitive humility: some calls are owner-only. State that clearly.
|
|
55
|
+
|
|
56
|
+
## Composition Rule (how to invoke other skills)
|
|
57
|
+
|
|
58
|
+
This skill is a composer, not a replacement. It calls into:
|
|
59
|
+
|
|
60
|
+
- `mizan` — for intent/evidence/protection/quality balance on any non-trivial business decision
|
|
61
|
+
- `tadabbur` — for consequence chains on any irreversible or scale-sensitive action
|
|
62
|
+
- `ghazali-8lens` — for truth/harm/trust/power/reflection/context/impact/beauty validation, especially on customer-facing copy and pricing
|
|
63
|
+
- `ladunni-22` — for the broad domain pass on any cross-functional decision (e.g., pricing change touches sales + marketing + CS + finance + brand)
|
|
64
|
+
- `predictor` — before any commitment, public claim, or launch
|
|
65
|
+
- `noor-recognition` — when the answer should be retrieved from prior decisions, not invented
|
|
66
|
+
- `aria-revenue-engine` — for revenue, pricing, monetization, deal structuring
|
|
67
|
+
- `aria-gtm-architect` — for launch, channel, distribution, positioning
|
|
68
|
+
- `aria-retention-engine` — for churn, renewal, expansion, escalation
|
|
69
|
+
- `aria-decision-mizan` — for owner-must-decide turns where the LLM should refuse to choose
|
|
70
|
+
- `aria-customer-truth` — for customer research, JTBD, win/loss, voice-of-customer
|
|
71
|
+
- `aria-finance-realism` — for cash, runway, unit economics, valuation
|
|
72
|
+
- `aria-ops-leverage` — for scale ops, automation ROI, vendor decisions
|
|
73
|
+
- `aria-org-leverage` — for hiring, comp, equity, RIF, performance
|
|
74
|
+
|
|
75
|
+
If a vertical skill is missing for the intent detected, use `aria-business-frame` directly with `mizan + tadabbur + ladunni-22 + ghazali-8lens` and explicitly note the gap so the autolearn queue can capture it.
|
|
76
|
+
|
|
77
|
+
## Required Workflow
|
|
78
|
+
|
|
79
|
+
1. **Detect KPI**: Name the owner KPI being moved. If none, ask the owner one tight question — never invent the KPI.
|
|
80
|
+
2. **Recognize first**: Search memory/decisions for the same question. If Aria/Hamza already decided this in a prior turn, surface that and ask whether the context has changed before generating fresh analysis.
|
|
81
|
+
3. **Frame**: Run Mizan pre-phase. State intent, evidence threshold, protection boundary, quality bar — all four in business terms (e.g., quality bar = "does this offer survive a CFO's 5-why audit?").
|
|
82
|
+
4. **Reason cross-domain**: Run `ladunni-22` on which domains this decision actually touches. A pricing change is rarely just sales — it's brand + finance + CS + ops + product all at once.
|
|
83
|
+
5. **Apply lenses**: Run `ghazali-8lens` with business-mapped definitions:
|
|
84
|
+
- **truth** — is the data current? was it sampled correctly?
|
|
85
|
+
- **harm** — what could go wrong for the customer / employee / counterparty?
|
|
86
|
+
- **trust** — does this preserve or burn brand/customer/team trust?
|
|
87
|
+
- **power** — what asymmetry are we using or creating?
|
|
88
|
+
- **reflection** — would Hamza recognize this as his decision in 6 months?
|
|
89
|
+
- **context** — what changes about this answer in 30/90/365 days?
|
|
90
|
+
- **impact** — what is the predicted KPI delta + confidence?
|
|
91
|
+
- **beauty** — does the offer/copy/contract feel inevitable, or assembled?
|
|
92
|
+
6. **Predict**: Run `predictor` with a measurable predicate — numeric, boolean, or named state. No qualitative "should improve."
|
|
93
|
+
7. **Recommend with three legs**: Thinking (cognition shown), implementation (concrete next action), accountability (how the owner will know it worked + when).
|
|
94
|
+
8. **Recover, never block**: If the lens flags concern, teach the gap, propose the corrected action, let the owner choose. Log the gap to the coach kernel.
|
|
95
|
+
|
|
96
|
+
## Recovery Contract
|
|
97
|
+
|
|
98
|
+
When this skill blocks, fails verification, or finds a gap:
|
|
99
|
+
|
|
100
|
+
- **One self-executed recovery**: Re-run the corrected analysis with the missing lens applied. Do not return the gap as a question to the owner unless cognition genuinely cannot resolve it.
|
|
101
|
+
- **Coach kernel teaching**: Write a `recordCoachPhase({ phase: 'post_cognition', decision: 'taught', risk_class: 'business_lens_gap', reasons: [...], next_action: 'corrected recommendation' })` so the next turn opens with this gap closed.
|
|
102
|
+
- **Autolearn queue**: If the gap was caused by a novel pattern not in `doctrine_trigger_map.json`, append a candidate trigger entry to `~/.claude/aria-trigger-queue.jsonl` with `severity: warn` (recovery-only, never block).
|
|
103
|
+
- **Owner-visible**: State exactly what was caught, what changed, and what the owner should ratify or override. No silent self-correction.
|
|
104
|
+
- **No hard block on business turns**: The autoload gate runs in `redirectOnly: true` mode for business intents. Missing skills produce a teaching, not a refusal.
|
|
105
|
+
|
|
106
|
+
## First-Class Production Contract
|
|
107
|
+
|
|
108
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
109
|
+
|
|
110
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
111
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
112
|
+
- 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
|
|
113
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
114
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
115
|
+
|
|
116
|
+
## Self-Executing Recovery Contract
|
|
117
|
+
|
|
118
|
+
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.
|
|
119
|
+
|
|
120
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
121
|
+
- 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.
|
|
122
|
+
- 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.
|
|
123
|
+
- 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.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## Self-Executing Recovery Contract
|
|
127
|
+
|
|
128
|
+
When a sister skill (mizan/8-lens/tadabbur) blocks under this composer:
|
|
129
|
+
|
|
130
|
+
- Run exactly one recovery pass with the corrected frame.
|
|
131
|
+
- If still blocked, switch to `aria-decision-mizan` and explicitly mark the turn as owner-must-decide. Do not paper over with confidence theatre.
|
|
132
|
+
- If Aria architect/runtime is available, escalate the structural pattern (not the single decision) to the architect harness via `runWithGovernance()`.
|
|
133
|
+
- If unavailable, fall back to the strongest local cognition pass under `aria-cognition-batch` and mark the fallback explicitly.
|
|
134
|
+
- Never end with "what would you like me to do?" alone — always pair the question with the cognition surfacing it.
|
|
135
|
+
|
|
136
|
+
## Notes on Why This Exists
|
|
137
|
+
|
|
138
|
+
The repo's existing 51 cognitives govern engineering correctness with surgical precision. They were forged in the deploy/refactor/audit fire. Owner-outcome turns are equally consequential and were under-served. This skill is the bridge: same cognitive substrate (Mizan/Aristotle/Noor/Ghazali/Ladunni), business-mapped definitions, recovery-not-block posture, coach-kernel teaching loop.
|