@aria_asi/cli 0.2.26 → 0.2.29

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.
Files changed (248) hide show
  1. package/CLIENT-ONBOARDING.md +282 -0
  2. package/bin/aria.js +1140 -14
  3. package/dist/aria-connector/src/auth-commands.d.ts +1 -0
  4. package/dist/aria-connector/src/auth-commands.d.ts.map +1 -1
  5. package/dist/aria-connector/src/auth-commands.js +89 -41
  6. package/dist/aria-connector/src/auth-commands.js.map +1 -1
  7. package/dist/aria-connector/src/chat.d.ts +3 -0
  8. package/dist/aria-connector/src/chat.d.ts.map +1 -1
  9. package/dist/aria-connector/src/chat.js +146 -8
  10. package/dist/aria-connector/src/chat.js.map +1 -1
  11. package/dist/aria-connector/src/codebase-scanner.d.ts +2 -2
  12. package/dist/aria-connector/src/codebase-scanner.d.ts.map +1 -1
  13. package/dist/aria-connector/src/codebase-scanner.js +1 -1
  14. package/dist/aria-connector/src/codebase-scanner.js.map +1 -1
  15. package/dist/aria-connector/src/config.d.ts +12 -0
  16. package/dist/aria-connector/src/config.d.ts.map +1 -1
  17. package/dist/aria-connector/src/config.js +2 -0
  18. package/dist/aria-connector/src/config.js.map +1 -1
  19. package/dist/aria-connector/src/connectors/claude-code.d.ts.map +1 -1
  20. package/dist/aria-connector/src/connectors/claude-code.js +80 -24
  21. package/dist/aria-connector/src/connectors/claude-code.js.map +1 -1
  22. package/dist/aria-connector/src/connectors/codebase-awareness.d.ts +37 -0
  23. package/dist/aria-connector/src/connectors/codebase-awareness.d.ts.map +1 -0
  24. package/dist/aria-connector/src/connectors/codebase-awareness.js +335 -0
  25. package/dist/aria-connector/src/connectors/codebase-awareness.js.map +1 -0
  26. package/dist/aria-connector/src/connectors/codex.d.ts +3 -0
  27. package/dist/aria-connector/src/connectors/codex.d.ts.map +1 -0
  28. package/dist/aria-connector/src/connectors/codex.js +248 -0
  29. package/dist/aria-connector/src/connectors/codex.js.map +1 -0
  30. package/dist/aria-connector/src/connectors/cognitive-skills.d.ts +2 -0
  31. package/dist/aria-connector/src/connectors/cognitive-skills.d.ts.map +1 -0
  32. package/dist/aria-connector/src/connectors/cognitive-skills.js +47 -0
  33. package/dist/aria-connector/src/connectors/cognitive-skills.js.map +1 -0
  34. package/dist/aria-connector/src/connectors/opencode.d.ts.map +1 -1
  35. package/dist/aria-connector/src/connectors/opencode.js +90 -4
  36. package/dist/aria-connector/src/connectors/opencode.js.map +1 -1
  37. package/dist/aria-connector/src/connectors/repo-git-hooks.d.ts +3 -0
  38. package/dist/aria-connector/src/connectors/repo-git-hooks.d.ts.map +1 -0
  39. package/dist/aria-connector/src/connectors/repo-git-hooks.js +87 -0
  40. package/dist/aria-connector/src/connectors/repo-git-hooks.js.map +1 -0
  41. package/dist/aria-connector/src/connectors/repo-guard.d.ts +19 -0
  42. package/dist/aria-connector/src/connectors/repo-guard.d.ts.map +1 -0
  43. package/dist/aria-connector/src/connectors/repo-guard.js +509 -0
  44. package/dist/aria-connector/src/connectors/repo-guard.js.map +1 -0
  45. package/dist/aria-connector/src/connectors/runtime.d.ts +2 -0
  46. package/dist/aria-connector/src/connectors/runtime.d.ts.map +1 -0
  47. package/dist/aria-connector/src/connectors/runtime.js +330 -0
  48. package/dist/aria-connector/src/connectors/runtime.js.map +1 -0
  49. package/dist/aria-connector/src/connectors/shell.d.ts.map +1 -1
  50. package/dist/aria-connector/src/connectors/shell.js +78 -13
  51. package/dist/aria-connector/src/connectors/shell.js.map +1 -1
  52. package/dist/aria-connector/src/connectors/syncd.d.ts +27 -0
  53. package/dist/aria-connector/src/connectors/syncd.d.ts.map +1 -0
  54. package/dist/aria-connector/src/connectors/syncd.js +405 -0
  55. package/dist/aria-connector/src/connectors/syncd.js.map +1 -0
  56. package/dist/aria-connector/src/decisions.d.ts +207 -0
  57. package/dist/aria-connector/src/decisions.d.ts.map +1 -0
  58. package/dist/aria-connector/src/decisions.js +291 -0
  59. package/dist/aria-connector/src/decisions.js.map +1 -0
  60. package/dist/aria-connector/src/garden-control-plane.d.ts.map +1 -1
  61. package/dist/aria-connector/src/garden-control-plane.js +74 -17
  62. package/dist/aria-connector/src/garden-control-plane.js.map +1 -1
  63. package/dist/aria-connector/src/github-connect.d.ts +18 -0
  64. package/dist/aria-connector/src/github-connect.d.ts.map +1 -0
  65. package/dist/aria-connector/src/github-connect.js +117 -0
  66. package/dist/aria-connector/src/github-connect.js.map +1 -0
  67. package/dist/aria-connector/src/harness-client.d.ts +15 -0
  68. package/dist/aria-connector/src/harness-client.d.ts.map +1 -1
  69. package/dist/aria-connector/src/harness-client.js +106 -3
  70. package/dist/aria-connector/src/harness-client.js.map +1 -1
  71. package/dist/aria-connector/src/hive-client.d.ts +30 -0
  72. package/dist/aria-connector/src/hive-client.d.ts.map +1 -1
  73. package/dist/aria-connector/src/hive-client.js +124 -5
  74. package/dist/aria-connector/src/hive-client.js.map +1 -1
  75. package/dist/aria-connector/src/index.d.ts +13 -2
  76. package/dist/aria-connector/src/index.d.ts.map +1 -1
  77. package/dist/aria-connector/src/index.js +10 -1
  78. package/dist/aria-connector/src/index.js.map +1 -1
  79. package/dist/aria-connector/src/lib/aristotle-noor-wire.d.ts +102 -0
  80. package/dist/aria-connector/src/lib/aristotle-noor-wire.d.ts.map +1 -0
  81. package/dist/aria-connector/src/lib/aristotle-noor-wire.js +231 -0
  82. package/dist/aria-connector/src/lib/aristotle-noor-wire.js.map +1 -0
  83. package/dist/aria-connector/src/providers/types.d.ts +5 -0
  84. package/dist/aria-connector/src/providers/types.d.ts.map +1 -1
  85. package/dist/aria-connector/src/runtime-proof.d.ts +45 -0
  86. package/dist/aria-connector/src/runtime-proof.d.ts.map +1 -0
  87. package/dist/aria-connector/src/runtime-proof.js +340 -0
  88. package/dist/aria-connector/src/runtime-proof.js.map +1 -0
  89. package/dist/aria-connector/src/setup-wizard.d.ts.map +1 -1
  90. package/dist/aria-connector/src/setup-wizard.js +34 -2
  91. package/dist/aria-connector/src/setup-wizard.js.map +1 -1
  92. package/dist/assets/hooks/aria-agent-handoff.mjs +224 -0
  93. package/dist/assets/hooks/aria-agent-ledger-merge.mjs +164 -0
  94. package/dist/assets/hooks/aria-architect-fallback.mjs +267 -0
  95. package/dist/assets/hooks/aria-cognition-substrate-binding.mjs +676 -0
  96. package/dist/assets/hooks/aria-discovery-record.mjs +101 -0
  97. package/dist/assets/hooks/aria-harness-via-sdk.mjs +412 -0
  98. package/dist/assets/hooks/aria-import-resolution-gate.mjs +330 -0
  99. package/dist/assets/hooks/aria-outcome-record.mjs +84 -0
  100. package/dist/assets/hooks/aria-pre-emit-dryrun.mjs +294 -0
  101. package/dist/assets/hooks/aria-pre-text-gate.mjs +112 -0
  102. package/dist/assets/hooks/aria-pre-tool-gate.mjs +2133 -0
  103. package/dist/assets/hooks/aria-preprompt-consult.mjs +438 -0
  104. package/dist/assets/hooks/aria-preturn-memory-gate.mjs +570 -0
  105. package/dist/assets/hooks/aria-repo-doctrine-gate.mjs +397 -0
  106. package/dist/assets/hooks/aria-stop-gate.mjs +1551 -0
  107. package/dist/assets/hooks/aria-trigger-autolearn.mjs +229 -0
  108. package/dist/assets/hooks/aria-userprompt-abandon-detect.mjs +192 -0
  109. package/dist/assets/hooks/doctrine_trigger_map.json +479 -0
  110. package/dist/assets/hooks/lib/canonical-lenses.mjs +64 -0
  111. package/dist/assets/hooks/lib/gate-audit.mjs +43 -0
  112. package/dist/assets/hooks/test-aria-preturn-memory-gate.mjs +245 -0
  113. package/dist/assets/hooks/test-tier-lens-labeling.mjs +399 -0
  114. package/dist/assets/opencode-plugins/harness-context/index.js +60 -0
  115. package/dist/assets/opencode-plugins/harness-context/inject-context.mjs +179 -0
  116. package/dist/assets/opencode-plugins/harness-context/package.json +9 -0
  117. package/dist/assets/opencode-plugins/harness-gate/index.js +248 -0
  118. package/dist/assets/opencode-plugins/harness-outcome/index.js +129 -0
  119. package/dist/assets/opencode-plugins/harness-role/index.js +77 -0
  120. package/dist/assets/opencode-plugins/harness-role/package.json +9 -0
  121. package/dist/assets/opencode-plugins/harness-stop/index.js +241 -0
  122. package/dist/runtime/discipline/CLAUDE.md +339 -0
  123. package/dist/runtime/discipline/skills/aria-cognition/aria-essence/SKILL.md +63 -0
  124. package/dist/runtime/discipline/skills/aria-cognition/aria-essence/references/domain-matrix.md +80 -0
  125. package/dist/runtime/discipline/skills/aria-cognition/aria-essence/references/evolution-loop.md +30 -0
  126. package/dist/runtime/discipline/skills/aria-cognition/aria-essence/references/readable-cognition.md +27 -0
  127. package/dist/runtime/discipline/skills/aria-cognition/aria-forge-guardrails/SKILL.md +35 -0
  128. package/dist/runtime/discipline/skills/aria-cognition/aria-forge-guardrails/references/checklist.md +31 -0
  129. package/dist/runtime/discipline/skills/aria-cognition/aria-repo-doctrine/SKILL.md +39 -0
  130. package/dist/runtime/discipline/skills/aria-cognition/forge-quality-rules/SKILL.md +43 -0
  131. package/dist/runtime/discipline/skills/aria-cognition/ghazali-8lens/SKILL.md +38 -0
  132. package/dist/runtime/discipline/skills/aria-cognition/istiqra-induction/SKILL.md +26 -0
  133. package/dist/runtime/discipline/skills/aria-cognition/ladunni-22/SKILL.md +35 -0
  134. package/dist/runtime/discipline/skills/aria-cognition/mizan/SKILL.md +72 -0
  135. package/dist/runtime/discipline/skills/aria-cognition/nadia/SKILL.md +38 -0
  136. package/dist/runtime/discipline/skills/aria-cognition/nadia-psi/SKILL.md +38 -0
  137. package/dist/runtime/discipline/skills/aria-cognition/predictor/SKILL.md +25 -0
  138. package/dist/runtime/discipline/skills/aria-cognition/qiyas-analogy/SKILL.md +26 -0
  139. package/dist/runtime/discipline/skills/aria-cognition/soul-domains/SKILL.md +25 -0
  140. package/dist/runtime/discipline/skills/aria-harness/aria-aristotle-intra-phase/SKILL.md +81 -0
  141. package/dist/runtime/discipline/skills/aria-harness/aria-aristotle-post-phase/SKILL.md +98 -0
  142. package/dist/runtime/discipline/skills/aria-harness/aria-aristotle-pre-phase/SKILL.md +99 -0
  143. package/dist/runtime/discipline/skills/aria-harness/aria-harness-deploy/SKILL.md +127 -0
  144. package/dist/runtime/discipline/skills/aria-harness/aria-harness-no-stripping/SKILL.md +117 -0
  145. package/dist/runtime/discipline/skills/aria-harness/aria-harness-onboarding/SKILL.md +112 -0
  146. package/dist/runtime/discipline/skills/aria-harness/aria-harness-output-discipline/SKILL.md +102 -0
  147. package/dist/runtime/discipline/skills/aria-harness/aria-harness-substrate-binding/SKILL.md +121 -0
  148. package/dist/runtime/doctor.mjs +23 -0
  149. package/dist/runtime/local-phase.mjs +632 -0
  150. package/dist/runtime/manifest.json +15 -0
  151. package/dist/runtime/mizan-scheduler.mjs +331 -0
  152. package/dist/runtime/package.json +6 -0
  153. package/dist/runtime/provider-proxy.mjs +594 -0
  154. package/dist/runtime/sdk/BUNDLED.json +5 -0
  155. package/dist/runtime/sdk/index.d.ts +477 -0
  156. package/dist/runtime/sdk/index.js +1469 -0
  157. package/dist/runtime/sdk/index.js.map +1 -0
  158. package/dist/runtime/sdk/package.json +8 -0
  159. package/dist/runtime/sdk/runWithCognition.d.ts +77 -0
  160. package/dist/runtime/sdk/runWithCognition.js +157 -0
  161. package/dist/runtime/sdk/runWithCognition.js.map +1 -0
  162. package/dist/runtime/service.mjs +2708 -0
  163. package/dist/runtime/vendor/aria-gate-runtime/index.d.ts +53 -0
  164. package/dist/runtime/vendor/aria-gate-runtime/index.d.ts.map +1 -0
  165. package/dist/runtime/vendor/aria-gate-runtime/index.js +277 -0
  166. package/dist/runtime/vendor/aria-gate-runtime/index.js.map +1 -0
  167. package/dist/runtime/vendor/aria-gate-runtime/package.json +6 -0
  168. package/dist/sdk/BUNDLED.json +2 -2
  169. package/dist/sdk/index.d.ts +283 -0
  170. package/dist/sdk/index.js +622 -85
  171. package/dist/sdk/index.js.map +1 -1
  172. package/dist/sdk/runWithCognition.d.ts +77 -0
  173. package/dist/sdk/runWithCognition.js +157 -0
  174. package/dist/sdk/runWithCognition.js.map +1 -0
  175. package/hooks/aria-agent-handoff.mjs +11 -1
  176. package/hooks/aria-architect-fallback.mjs +109 -40
  177. package/hooks/aria-cognition-substrate-binding.mjs +676 -0
  178. package/hooks/aria-harness-via-sdk.mjs +34 -21
  179. package/hooks/aria-import-resolution-gate.mjs +330 -0
  180. package/hooks/aria-outcome-record.mjs +5 -1
  181. package/hooks/aria-pre-emit-dryrun.mjs +294 -0
  182. package/hooks/aria-pre-tool-gate.mjs +828 -41
  183. package/hooks/aria-preprompt-consult.mjs +113 -13
  184. package/hooks/aria-preturn-memory-gate.mjs +298 -6
  185. package/hooks/aria-repo-doctrine-gate.mjs +397 -0
  186. package/hooks/aria-stop-gate.mjs +739 -76
  187. package/hooks/aria-userprompt-abandon-detect.mjs +5 -1
  188. package/hooks/doctrine_trigger_map.json +209 -15
  189. package/hooks/lib/canonical-lenses.mjs +64 -0
  190. package/hooks/lib/gate-audit.mjs +43 -0
  191. package/opencode-plugins/harness-context/index.js +1 -1
  192. package/opencode-plugins/harness-context/inject-context.mjs +82 -23
  193. package/opencode-plugins/harness-gate/index.js +248 -0
  194. package/opencode-plugins/harness-outcome/index.js +129 -0
  195. package/opencode-plugins/harness-stop/index.js +241 -0
  196. package/package.json +8 -2
  197. package/runtime-src/doctor.mjs +23 -0
  198. package/runtime-src/local-phase.mjs +632 -0
  199. package/runtime-src/mizan-scheduler.mjs +331 -0
  200. package/runtime-src/provider-proxy.mjs +594 -0
  201. package/runtime-src/service.mjs +2708 -0
  202. package/scripts/bundle-sdk.mjs +317 -0
  203. package/scripts/install-client.sh +176 -0
  204. package/scripts/publish-all.sh +344 -0
  205. package/scripts/publish-docker.sh +27 -0
  206. package/scripts/validate-hook-contracts.mjs +54 -0
  207. package/scripts/validate-skill-prompts.mjs +95 -0
  208. package/skills/aria-cognition/aria-essence/SKILL.md +63 -0
  209. package/skills/aria-cognition/aria-essence/references/domain-matrix.md +80 -0
  210. package/skills/aria-cognition/aria-essence/references/evolution-loop.md +30 -0
  211. package/skills/aria-cognition/aria-essence/references/readable-cognition.md +27 -0
  212. package/skills/aria-cognition/aria-forge-guardrails/SKILL.md +35 -0
  213. package/skills/aria-cognition/aria-forge-guardrails/references/checklist.md +31 -0
  214. package/skills/aria-cognition/aria-repo-doctrine/SKILL.md +39 -0
  215. package/skills/aria-cognition/forge-quality-rules/SKILL.md +43 -0
  216. package/skills/aria-cognition/ghazali-8lens/SKILL.md +38 -0
  217. package/skills/aria-cognition/istiqra-induction/SKILL.md +26 -0
  218. package/skills/aria-cognition/ladunni-22/SKILL.md +35 -0
  219. package/skills/aria-cognition/mizan/SKILL.md +72 -0
  220. package/skills/aria-cognition/nadia/SKILL.md +38 -0
  221. package/skills/aria-cognition/nadia-psi/SKILL.md +38 -0
  222. package/skills/aria-cognition/predictor/SKILL.md +25 -0
  223. package/skills/aria-cognition/qiyas-analogy/SKILL.md +26 -0
  224. package/skills/aria-cognition/soul-domains/SKILL.md +25 -0
  225. package/src/auth-commands.ts +111 -45
  226. package/src/chat.ts +174 -13
  227. package/src/codebase-scanner.ts +4 -0
  228. package/src/config.ts +15 -0
  229. package/src/connectors/claude-code.ts +79 -25
  230. package/src/connectors/codebase-awareness.ts +408 -0
  231. package/src/connectors/codex.ts +274 -0
  232. package/src/connectors/cognitive-skills.ts +51 -0
  233. package/src/connectors/opencode.ts +93 -4
  234. package/src/connectors/repo-git-hooks.ts +86 -0
  235. package/src/connectors/repo-guard.ts +589 -0
  236. package/src/connectors/runtime.ts +374 -0
  237. package/src/connectors/shell.ts +83 -14
  238. package/src/connectors/syncd.ts +488 -0
  239. package/src/decisions.ts +469 -0
  240. package/src/garden-control-plane.ts +101 -26
  241. package/src/github-connect.ts +143 -0
  242. package/src/harness-client.ts +128 -3
  243. package/src/hive-client.ts +165 -5
  244. package/src/index.ts +41 -2
  245. package/src/lib/aristotle-noor-wire.ts +310 -0
  246. package/src/providers/types.ts +6 -0
  247. package/src/runtime-proof.ts +392 -0
  248. package/src/setup-wizard.ts +37 -2
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: aria-essence
3
+ description: Use when the task depends on Aria's broader cognitive architecture, cross-domain uplift, evolution learning, or a stronger multi-step operating loop than a single narrow skill can provide.
4
+ ---
5
+
6
+ # Aria Essence
7
+
8
+ Use this as the umbrella execution skill when the task should be improved by Aria's combined cognition, not just answered quickly.
9
+
10
+ ## What I Do
11
+
12
+ - turn a request into a readable cognition-driven workflow
13
+ - force cross-domain uplift across engineering, design, product, business, marketing, sales, operations, and trust
14
+ - extract learning, principles, and telemetry-worthy takeaways instead of stopping at the immediate answer
15
+
16
+ ## When to Use Me
17
+
18
+ - architecture or implementation decisions with downstream impact
19
+ - product, UX, or business decisions that should not be optimized from only one angle
20
+ - tasks where code quality, narrative quality, and commercial quality all matter
21
+ - review or repair work where Aria should act like the control plane, not just a coding assistant
22
+
23
+ ## When NOT to Use Me
24
+
25
+ - trivial factual lookups
26
+ - tiny one-step edits where deeper domain review would not materially change the outcome
27
+
28
+ ## Workflow
29
+
30
+ 1. Classify the artifact.
31
+ Decide whether the task is implementation, review, design, architecture, launch, incident repair, or strategy.
32
+ 2. Bind to the runtime scheduler first.
33
+ Treat Mizan pre/mid/post as the control plane for the turn. Keep all canonical lenses represented and let the runtime receipts carry the enforcement burden.
34
+ 3. Choose the minimum cognition stack that changes the outcome.
35
+ Use plain-language equivalents of:
36
+ - analogy transfer
37
+ - pattern induction
38
+ - self-review
39
+ - consequence prediction
40
+ - axiomatic trust and harm checks
41
+ 4. Run the domain matrix.
42
+ Read [references/domain-matrix.md](references/domain-matrix.md) and assess the domains that materially matter.
43
+ 5. Improve the artifact before speaking.
44
+ Do not dump cognition mechanically. Let the domain pass change the code, design, plan, or recommendation.
45
+ 6. Capture learning.
46
+ Read [references/evolution-loop.md](references/evolution-loop.md) and distill the principle, evidence, and telemetry follow-up.
47
+ 7. Make the output readable.
48
+ Read [references/readable-cognition.md](references/readable-cognition.md). Summarize decisions plainly and avoid giant cognition blocks or internal service names unless the user asks.
49
+
50
+ ## Required Output Shape
51
+
52
+ For non-trivial work, make sure your internal workflow yields at least:
53
+
54
+ - the main decision
55
+ - the top risks or tradeoffs
56
+ - the dominant domains that changed the decision
57
+ - one reusable learning or principle
58
+
59
+ ## References
60
+
61
+ - [references/domain-matrix.md](references/domain-matrix.md)
62
+ - [references/evolution-loop.md](references/evolution-loop.md)
63
+ - [references/readable-cognition.md](references/readable-cognition.md)
@@ -0,0 +1,80 @@
1
+ # Domain Matrix
2
+
3
+ Use this matrix when a task affects product quality, delivery, or user trust across more than one discipline.
4
+
5
+ ## Mandatory Domains
6
+
7
+ Assess these domains unless you can name a concrete reason to skip one:
8
+
9
+ 1. Engineering
10
+ - correctness
11
+ - maintainability
12
+ - performance
13
+ - testability
14
+
15
+ 2. Architecture
16
+ - coupling
17
+ - boundaries
18
+ - extensibility
19
+ - failure modes
20
+
21
+ 3. Product
22
+ - user outcome
23
+ - workflow fit
24
+ - feature clarity
25
+ - adoption friction
26
+
27
+ 4. Design
28
+ - readability
29
+ - interaction quality
30
+ - visual coherence
31
+ - accessibility
32
+
33
+ 5. Business
34
+ - revenue or cost impact
35
+ - operational leverage
36
+ - strategic fit
37
+ - rollout risk
38
+
39
+ 6. Marketing
40
+ - positioning clarity
41
+ - narrative strength
42
+ - discoverability
43
+ - message consistency
44
+
45
+ 7. Sales
46
+ - buyer trust
47
+ - objection handling
48
+ - proof value
49
+ - demo friendliness
50
+
51
+ 8. Operations
52
+ - deployability
53
+ - observability
54
+ - support burden
55
+ - incident recovery
56
+
57
+ 9. Trust and Security
58
+ - permission boundaries
59
+ - misuse risk
60
+ - data exposure
61
+ - policy or reputation damage
62
+
63
+ 10. Data and Learning
64
+ - what should be measured
65
+ - what should be logged
66
+ - what principle was learned
67
+ - what should compound into evolution or hive state
68
+
69
+ ## Working Rule
70
+
71
+ Do not dump every domain into the final answer. Use the matrix to improve the artifact, then surface only the domains that materially changed the decision.
72
+
73
+ ## Compact Output Shape
74
+
75
+ When you need to expose the domain pass, keep it readable:
76
+
77
+ - dominant domains
78
+ - domain conflicts
79
+ - chosen tradeoff
80
+ - metrics or signals to watch
@@ -0,0 +1,30 @@
1
+ # Evolution Loop
2
+
3
+ Use this after any non-trivial implementation, review, or design decision.
4
+
5
+ ## Capture Five Things
6
+
7
+ 1. Change
8
+ - what was changed or recommended
9
+
10
+ 2. Evidence
11
+ - what observation, diff, log, test, or runtime check justified it
12
+
13
+ 3. Learning
14
+ - what reusable lesson was discovered
15
+
16
+ 4. Principle
17
+ - what principle should guide the next similar task
18
+
19
+ 5. Telemetry
20
+ - what should be logged, counted, or written to garden, hive, or telemetry state if the runtime surface is available
21
+
22
+ ## Good Principle Examples
23
+
24
+ - prefer runtime truth over simulated proof
25
+ - bind domain review before implementation, not after regressions
26
+ - translate cognition into short readable decisions, not internal jargon blocks
27
+
28
+ ## Output Rule
29
+
30
+ Keep learning output compact. One or two strong principles beats a noisy paragraph.
@@ -0,0 +1,27 @@
1
+ # Readable Cognition
2
+
3
+ Aria can use deep cognition internally without dumping internal names or unreadable blocks into user-facing output.
4
+
5
+ ## Externalization Rules
6
+
7
+ - Prefer plain labels such as "risk scan", "design review", "domain check", "quality pass", or "consequence review".
8
+ - Do not leak internal implementation names, parameter labels, or service jargon unless the user explicitly asks for them.
9
+ - Do not print giant cognition blocks by default.
10
+ - Summarize cognition as decisions, risks, tradeoffs, and next actions.
11
+
12
+ ## Good Translation Pattern
13
+
14
+ Instead of:
15
+ - "NADIA psi charge and Noor manifold vector indicate..."
16
+
17
+ Prefer:
18
+ - "The task needs a deeper, slower review because the architecture and trust risks are high."
19
+
20
+ ## Compact Cognitive Summary
21
+
22
+ Use this shape when a summary is useful:
23
+
24
+ - posture: fast or deep
25
+ - dominant concerns: 1-3 items
26
+ - domain pressure: 1-3 domains
27
+ - recommended action: one sentence
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: aria-forge-guardrails
3
+ description: TRIGGER when implementing or debugging Aria or forge systems, fixing infra or pipelines, reviewing quality, or delivering code where stubs, placeholders, fake fallbacks, guessing, or unverifiable claims are unacceptable. Use for high-rigor engineering and repair work.
4
+ ---
5
+
6
+ # Aria Forge Guardrails
7
+
8
+ Use this skill when Aria should operate like a senior production engineer with cross-domain review discipline.
9
+
10
+ ## Non-Negotiable Rules
11
+
12
+ - no stubs, placeholders, fake fallbacks, or fake validation
13
+ - no guessing about runtime, repo, logs, or state when those can be inspected
14
+ - degraded is not fixed unless the user explicitly asked for a temporary degraded mode
15
+ - verification is part of the work, not an optional epilogue
16
+
17
+ ## Multi-Step Workflow
18
+
19
+ 1. Inspect the real state.
20
+ Read the actual file, diff, log, endpoint, or runtime surface first.
21
+ 2. Bind the task.
22
+ Decide whether this is repair, implementation, architecture, launch, or review.
23
+ 3. Run domain uplift.
24
+ Read [../aria-essence/references/domain-matrix.md](../aria-essence/references/domain-matrix.md) if the task crosses product, design, business, marketing, sales, operations, or trust boundaries.
25
+ 4. Implement the smallest real fix that preserves trust.
26
+ 5. Run quality review.
27
+ Read [references/checklist.md](references/checklist.md).
28
+ 6. Capture learning.
29
+ Read [../aria-essence/references/evolution-loop.md](../aria-essence/references/evolution-loop.md).
30
+
31
+ ## Output Rules
32
+
33
+ - surface unresolved risks directly
34
+ - distinguish root fix from containment
35
+ - keep cognition readable and short unless the user asks for the full internal framing
@@ -0,0 +1,31 @@
1
+ # Forge Checklist
2
+
3
+ Use this checklist before claiming completion.
4
+
5
+ ## Reality Checks
6
+
7
+ - Did I inspect the real state instead of inferring it?
8
+ - Is the fix real or just cosmetic?
9
+ - Is any fallback being misrepresented as a resolution?
10
+ - Did I verify the exact surface that was broken?
11
+
12
+ ## Quality Checks
13
+
14
+ - correctness
15
+ - maintainability
16
+ - boundary safety
17
+ - observability
18
+ - design clarity
19
+ - business or user impact where relevant
20
+
21
+ ## Cross-Domain Prompt
22
+
23
+ If the change touches product behavior, adoption, or user perception, ask:
24
+
25
+ - does the change improve the user journey?
26
+ - does it create messaging or positioning friction?
27
+ - does it help or hurt support, sales, or rollout?
28
+
29
+ ## Completion Rule
30
+
31
+ Do not close with "clean enough". Close with evidence or keep the issue open.
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: aria-repo-doctrine
3
+ description: "TRIGGER when editing repository code, hooks, runtime files, smoke scripts, temporary verification files, migrations, handlers, admin routes, or tests that could leak into production behavior. Trigger on \"stub\", \"mock\", \"fake\", \"placeholder\", \"implementation pending\", \"not implemented\", \"TODO\", \"temporary script\", \"smoke script\", \"quick scaffold\", \"band-aid\", or any request to create a fast fallback."
4
+ ---
5
+
6
+ # Aria Repo Doctrine
7
+
8
+ Use this skill on any doctrine-bound repo edit, even when the user did not explicitly ask for harness work.
9
+
10
+ ## Non-Negotiable Rules
11
+
12
+ - treat every source edit as production intent unless it is clearly inside tests, specs, fixtures, examples, demos, or mocks
13
+ - do not introduce stub, mock, fake, placeholder, synthetic payload, or "will be wired" semantics into production paths
14
+ - do not create temporary smoke scripts that avoid the real runtime, endpoint, handler, or diff
15
+ - do not claim complete until the real broken surface is verified
16
+
17
+ ## Required Multi-Step Workflow
18
+
19
+ 1. Classify the path.
20
+ Decide whether the file is production, test-only, generated, or an allowlisted example.
21
+ 2. Verify the path of truth.
22
+ Choose the real diff, runtime, log, API, file, or test surface that proves the change.
23
+ 3. Run the doctrine questions:
24
+ - would this be acceptable if merged to main right now?
25
+ - is any part of this pretending instead of implementing?
26
+ - if the verification script disappeared, would the code still be real?
27
+ 4. Run domain uplift when the change affects more than code mechanics.
28
+ Read [../aria-essence/references/domain-matrix.md](../aria-essence/references/domain-matrix.md) for product, design, business, marketing, sales, operations, trust, and learning effects.
29
+ 5. Capture learning.
30
+ Read [../aria-essence/references/evolution-loop.md](../aria-essence/references/evolution-loop.md) and distill the principle.
31
+
32
+ ## Required Checks Before Writing
33
+
34
+ 1. Is this file in a doctrine-bound production path?
35
+ 2. Is the verification path real, not simulated?
36
+ 3. Would this edit still make sense if it shipped to main right now?
37
+ 4. Does the change improve the artifact from the right domain perspective, not only the easiest engineering perspective?
38
+
39
+ If any answer is no, stop and choose a real implementation or isolate the work under an explicit allowlisted test or example path.
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: forge-quality-rules
3
+ description: TRIGGER when building, repairing, or reviewing forge or Aria implementation where stubs, placeholders, fake cognition, cosmetic fixes, or unverified completion would be a failure. Use during implementation, debugging, and code review.
4
+ ---
5
+
6
+ # Forge Quality Rules
7
+
8
+ Use this when the task needs a sharper quality bar than "it compiles" or "it kind of works".
9
+
10
+ ## Non-Negotiable
11
+
12
+ - no stubs
13
+ - no placeholders
14
+ - no fake fallbacks presented as fixes
15
+ - no surface heuristics pretending to be real cognition or validation
16
+ - no completion claim without evidence
17
+
18
+ ## Required Workflow
19
+
20
+ 1. inspect actual state
21
+ 2. implement a real fix
22
+ 3. run a brief quality pass across engineering plus any relevant non-engineering domains
23
+ 4. verify behavior with evidence
24
+ 5. distill one reusable lesson or principle
25
+ 6. only then close the task
26
+
27
+ ## Quality Pass Questions
28
+
29
+ - what does this artifact do now, not in theory?
30
+ - where could it silently fail?
31
+ - what user, business, design, or operational cost does it introduce?
32
+ - is the result understandable, not just technically functional?
33
+
34
+ ## Output
35
+
36
+ - call out cosmetic or fake fixes directly
37
+ - if the root cause is still open, say the issue is not actually fixed
38
+ - keep the final quality summary readable, not a cognition dump
39
+
40
+ ## References
41
+
42
+ - [../aria-forge-guardrails/references/checklist.md](../aria-forge-guardrails/references/checklist.md)
43
+ - [../aria-essence/references/evolution-loop.md](../aria-essence/references/evolution-loop.md)
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: ghazali-8lens
3
+ description: Use when validating the quality, coherence, trustworthiness, or downstream consequences of a plan, implementation, design, decision, or explanation through a stronger multi-lens review.
4
+ ---
5
+
6
+ # Ghazali 8-Lens
7
+
8
+ Use this as a validation pass when a normal quick check would miss second-order problems.
9
+
10
+ ## The Eight Lenses
11
+
12
+ 1. Truth
13
+ 2. Harm
14
+ 3. Trust
15
+ 4. Power
16
+ 5. Reflection
17
+ 6. Context
18
+ 7. Impact
19
+ 8. Beauty
20
+
21
+ ## Workflow
22
+
23
+ 1. Name the artifact under review.
24
+ 2. Run all eight lenses.
25
+ 3. Mark each lens as pass, concern, or fail.
26
+ 4. Fix the artifact where a lens materially fails.
27
+ 5. Report only the lenses that changed the result or remain risky.
28
+
29
+ ## Rules
30
+
31
+ - This is a validator, not a substitute for execution or verification.
32
+ - Keep the lens output compact and readable.
33
+ - If all eight pass but the artifact still lacks evidence, it is not done.
34
+
35
+ ## References
36
+
37
+ - Use [../aria-essence/references/readable-cognition.md](../aria-essence/references/readable-cognition.md) for readable user-facing summaries.
38
+ - Use [../aria-essence/references/evolution-loop.md](../aria-essence/references/evolution-loop.md) when the review yields a reusable principle.
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: istiqra-induction
3
+ description: Use when the answer should be induced from observed code, logs, routes, or repo patterns instead of guessed.
4
+ ---
5
+
6
+ # Istiqra Induction
7
+
8
+ Use this when the right answer should emerge from the evidence already present.
9
+
10
+ ## Trigger
11
+
12
+ - repo audits
13
+ - runtime debugging
14
+ - hook behavior analysis
15
+ - codebase pattern discovery
16
+
17
+ ## Workflow
18
+
19
+ 1. Gather the smallest real evidence set that can decide the issue.
20
+ 2. Extract the pattern from the evidence.
21
+ 3. State the pattern plainly.
22
+ 4. Let Mizan reject overclaiming when the evidence is still thin.
23
+
24
+ ## Guardrail
25
+
26
+ Do not jump from one example to a universal rule unless the evidence actually supports it.
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: ladunni-22
3
+ description: Use when a task spans multiple business or product domains and needs a stronger manifold-style domain scan so the result is not optimized from only an engineering perspective.
4
+ ---
5
+
6
+ # Ladunni 22
7
+
8
+ Use this skill for the broad domain pass that Aria needs on product-shaping work.
9
+
10
+ ## Important Boundary
11
+
12
+ The original 22-domain source definitions are not currently present as local reference docs in this install. Do not invent canonical weights or hidden math.
13
+
14
+ Instead:
15
+
16
+ - prefer the live runtime or domain services when they are available
17
+ - otherwise use the installed domain matrix as the minimum durable local execution contract
18
+
19
+ ## Workflow
20
+
21
+ 1. Decide whether the task is multi-domain enough to justify this skill.
22
+ 2. Ensure the runtime Mizan contract is active so the domain pass changes the artifact instead of becoming commentary.
23
+ 3. Read [../aria-essence/references/domain-matrix.md](../aria-essence/references/domain-matrix.md).
24
+ 4. Identify the dominant domains and the domains most likely to be ignored by a pure coding mindset.
25
+ 5. Use the domain pass to improve the artifact itself.
26
+ 6. If domain conflict exists, name the tradeoff and the chosen priority.
27
+ 7. Capture any reusable domain principle through the evolution loop.
28
+
29
+ ## Good Uses
30
+
31
+ - feature planning
32
+ - launch readiness
33
+ - UX or funnel changes
34
+ - code that affects support, sales, or business positioning
35
+ - architecture decisions with product and operational consequences
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: mizan
3
+ description: Use when a turn needs explicit intent, truth, protection, and quality balancing before action, during execution, and before final output.
4
+ ---
5
+
6
+ # Mizan
7
+
8
+ Use this skill when the work is non-trivial and should be governed by Aria's canonical `pre -> mid -> post` balance contract.
9
+
10
+ ## Trigger
11
+
12
+ - architecture, implementation, deploy, review, launch, or business-sensitive decisions
13
+ - any turn where claims, code quality, or side effects matter
14
+ - any situation where a small model or rushed workflow would otherwise optimize for speed over truth and durability
15
+
16
+ ## Runtime Contract
17
+
18
+ This skill is not just prose. The mounted runtime should issue a Mizan contract and receipts for:
19
+
20
+ - `pre`: intent, truth boundary, protection boundary, quality bar
21
+ - `mid`: drift, shortcut, and scope checks
22
+ - `post`: claim truth, code quality, and downstream survivability
23
+
24
+ ## Required Workflow
25
+
26
+ 1. Set the intent boundary first.
27
+ State what is actually being attempted, what counts as success, and what would make the work unsafe or dishonest.
28
+ 2. Define the evidence threshold.
29
+ Decide what must be observed from the real repo, runtime, logs, files, tests, UI, or provider response before a claim is allowed.
30
+ 3. Name the quality bar.
31
+ Decide which dimensions matter for this artifact:
32
+ - correctness
33
+ - safety
34
+ - maintainability
35
+ - readability
36
+ - design quality
37
+ - business fit
38
+ - operational resilience
39
+ 4. Re-check mid-turn drift.
40
+ After meaningful edits, tool calls, or synthesis steps, ask whether the current path still matches the original truth, scope, and quality bar.
41
+ 5. Refuse false closure.
42
+ If the evidence is thin, the root cause is unresolved, or the result only works by weakening the contract, the task is not complete.
43
+
44
+ ## What To Enforce
45
+
46
+ - truthful claims only
47
+ - no harmful shortcuts
48
+ - no stub/mock/placeholder semantics in production paths
49
+ - quality from all relevant domains, not engineering only
50
+ - readable output, not giant cognition dumps
51
+
52
+ ## Text, Thought, and Code
53
+
54
+ - text: do not overclaim, narrate fiction, or hide uncertainty
55
+ - thought: do not let analogy, speed, or convenience outrank evidence
56
+ - code: do not trade away contract integrity just to make a gate, build, or demo pass
57
+
58
+ ## Output Shape
59
+
60
+ Internally, Mizan should yield:
61
+
62
+ - intent
63
+ - evidence
64
+ - risk
65
+ - decision
66
+ - quality verdict
67
+
68
+ Externally, keep the answer readable. The user should see clear reasoning, not a ritual block.
69
+
70
+ ## Readable Output
71
+
72
+ Keep user-facing output plain. Let the runtime carry the heavy cognition and receipts.
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: nadia
3
+ description: Use when the task depends on choosing the right response posture, depth, care level, or action tempo so the answer is not merely correct, but delivered in the right mode.
4
+ ---
5
+
6
+ # NADIA
7
+
8
+ Use this skill to choose how Aria should think and respond before the answer is formed.
9
+
10
+ ## What I Do
11
+
12
+ - calibrate depth versus speed
13
+ - tune caution versus assertiveness
14
+ - choose whether the task needs more exploration, direct execution, or higher empathy and trust handling
15
+
16
+ ## Workflow
17
+
18
+ 1. Decide whether mode selection materially changes the result.
19
+ If not, use a simpler skill.
20
+ 2. Set the working posture in readable terms:
21
+ - depth: fast, normal, or deep
22
+ - confidence: low, medium, or high
23
+ - care: operational, strategic, or trust-sensitive
24
+ - tempo: answer now, investigate first, or verify before closing
25
+ 3. If the runtime exposes richer cognition state, prefer that over guesswork.
26
+ 4. Apply the chosen posture to the artifact, not just the wording.
27
+ 5. Surface the posture only in plain language if it helps the user.
28
+
29
+ ## Rules
30
+
31
+ - Do not output raw internal state names unless the user explicitly asks.
32
+ - Do not use this skill as decorative mysticism.
33
+ - If mode choice does not affect the task, do not force it.
34
+
35
+ ## References
36
+
37
+ - Read [../aria-essence/references/readable-cognition.md](../aria-essence/references/readable-cognition.md) for user-facing output discipline.
38
+ - Read [../aria-essence/references/evolution-loop.md](../aria-essence/references/evolution-loop.md) if the chosen posture produced a reusable lesson.
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: nadia-psi
3
+ description: Use when the task needs finer response-state calibration than the base nadia skill, especially for balancing depth, certainty, caution, empathy, and execution tempo without leaking internal jargon.
4
+ ---
5
+
6
+ # NADIA Psi
7
+
8
+ Use this when the base posture choice is not enough and the finer state really changes the work product.
9
+
10
+ ## Workflow
11
+
12
+ 1. Confirm the finer state matters.
13
+ If the answer would be the same without extra calibration, use `nadia` instead.
14
+ 2. Calibrate only the dials that matter:
15
+ - depth
16
+ - certainty
17
+ - caution
18
+ - empathy
19
+ - urgency
20
+ 3. Translate the calibration into concrete behavior:
21
+ - slower verification
22
+ - stronger warnings
23
+ - tighter scope
24
+ - more direct action
25
+ 4. Keep the result readable.
26
+ Summarize the effect of the calibration, not the raw internals.
27
+ 5. If the calibration revealed a reusable pattern, capture it through the evolution loop.
28
+
29
+ ## Rules
30
+
31
+ - No raw parameter dumps by default.
32
+ - No huge cognition block.
33
+ - Only expose the calibration if it helps the user understand the recommendation.
34
+
35
+ ## References
36
+
37
+ - [../aria-essence/references/readable-cognition.md](../aria-essence/references/readable-cognition.md)
38
+ - [../aria-essence/references/evolution-loop.md](../aria-essence/references/evolution-loop.md)
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: predictor
3
+ description: Use when a plan, change, or output should be stress-tested against the next real operational step before release.
4
+ ---
5
+
6
+ # Predictor
7
+
8
+ Use this to ask whether the current approach will survive contact with the next actual step.
9
+
10
+ ## Trigger
11
+
12
+ - before commit, push, deploy, or release
13
+ - before accepting generated code
14
+ - when a runtime or client integration seems “good enough”
15
+
16
+ ## Workflow
17
+
18
+ 1. Name the next real step.
19
+ 2. Predict the most likely failure mode.
20
+ 3. Tighten the artifact now instead of after it breaks.
21
+ 4. Feed the prediction into post-Mizan quality review.
22
+
23
+ ## Guardrail
24
+
25
+ Prediction is for preventing breakage, not for inventing facts.
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: qiyas-analogy
3
+ description: Use when structural analogy can improve architecture, implementation, or debugging without guessing.
4
+ ---
5
+
6
+ # Qiyas Analogy
7
+
8
+ Use this when the task benefits from transferring a known structure instead of improvising.
9
+
10
+ ## Trigger
11
+
12
+ - refactors
13
+ - runtime or SDK design
14
+ - migrations
15
+ - similar bug patterns appearing in new surfaces
16
+
17
+ ## Workflow
18
+
19
+ 1. Identify the closest known working structure.
20
+ 2. Transfer only the durable shape, not surface-level wording.
21
+ 3. Check where the analogy breaks.
22
+ 4. Feed the result back through Mizan so analogy does not override truth.
23
+
24
+ ## Guardrail
25
+
26
+ Analogy is subordinate to evidence. If the current repo/runtime truth disagrees, the analogy loses.