@mytechtoday/augment-extensions 3.1.2 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (386) hide show
  1. package/AGENTS.md +127 -0
  2. package/README.md +1050 -32
  3. package/augment-extensions/coding-standards/java/CHANGELOG.md +12 -0
  4. package/augment-extensions/coding-standards/java/README.md +54 -0
  5. package/augment-extensions/coding-standards/java/examples/SearchRequest.java +13 -0
  6. package/augment-extensions/coding-standards/java/metadata.json +36 -0
  7. package/augment-extensions/coding-standards/java/module.json +35 -0
  8. package/augment-extensions/coding-standards/java/rules/language-and-api-design.md +45 -0
  9. package/augment-extensions/coding-standards/java/rules/reliability-and-concurrency.md +43 -0
  10. package/augment-extensions/coding-standards/java/rules/testing-tooling-and-security.md +39 -0
  11. package/augment-extensions/coding-standards/q/CHANGELOG.md +16 -0
  12. package/augment-extensions/coding-standards/q/README.md +53 -0
  13. package/augment-extensions/coding-standards/q/examples/ArrayAndTupleNamingConventions.qs +27 -0
  14. package/augment-extensions/coding-standards/q/examples/CallableAliasNamingConventions.qs +20 -0
  15. package/augment-extensions/coding-standards/q/examples/CircuitCompositionNamingConventions.qs +24 -0
  16. package/augment-extensions/coding-standards/q/examples/ConstantValueNamingConventions.qs +19 -0
  17. package/augment-extensions/coding-standards/q/examples/EntryPointAttributeNamingConventions.qs +17 -0
  18. package/augment-extensions/coding-standards/q/examples/FunctorApplicationInControlledCircuits.qs +84 -0
  19. package/augment-extensions/coding-standards/q/examples/FunctorSpecializationNamingConventions.qs +29 -0
  20. package/augment-extensions/coding-standards/q/examples/GenericTypeParameterNamingConventions.qs +20 -0
  21. package/augment-extensions/coding-standards/q/examples/HamiltonianOperatorNamingConventions.qs +24 -0
  22. package/augment-extensions/coding-standards/q/examples/MeasurementResultNamingConventions.qs +48 -0
  23. package/augment-extensions/coding-standards/q/examples/NamespaceNamingConventions.qs +30 -0
  24. package/augment-extensions/coding-standards/q/examples/OperationAndFunctionNamingConventions.qs +31 -0
  25. package/augment-extensions/coding-standards/q/examples/OracleCallableNamingConventions.qs +41 -0
  26. package/augment-extensions/coding-standards/q/examples/PauliBasisNamingConventions.qs +42 -0
  27. package/augment-extensions/coding-standards/q/examples/PauliOperatorNamingConventions.qs +24 -0
  28. package/augment-extensions/coding-standards/q/examples/QubitManagementAndTeleportation.qs +94 -0
  29. package/augment-extensions/coding-standards/q/examples/QubitNamingConventions.qs +53 -0
  30. package/augment-extensions/coding-standards/q/examples/QubitRegisterNamingConventions.qs +30 -0
  31. package/augment-extensions/coding-standards/q/examples/StateVectorNamingConventions.qs +23 -0
  32. package/augment-extensions/coding-standards/q/examples/UserDefinedTypeNamingConventions.qs +22 -0
  33. package/augment-extensions/coding-standards/q/examples/VariableAndParameterNamingConventions.qs +26 -0
  34. package/augment-extensions/coding-standards/q/examples/bell-state.qs +21 -0
  35. package/augment-extensions/coding-standards/q/metadata.json +38 -0
  36. package/augment-extensions/coding-standards/q/module.json +29 -0
  37. package/augment-extensions/coding-standards/q/rules/q-error-handling.md +143 -0
  38. package/augment-extensions/coding-standards/q/rules/q-naming-conventions.md +82 -0
  39. package/augment-extensions/coding-standards/q/rules/q-performance-optimization.md +10 -0
  40. package/augment-extensions/coding-standards/q/rules/q-qubit-management.md +10 -0
  41. package/augment-extensions/coding-standards/q/rules/q-security.md +10 -0
  42. package/augment-extensions/coding-standards/q/rules/q-standards.md +127 -0
  43. package/augment-extensions/coding-standards/q/rules/q-testing.md +10 -0
  44. package/augment-extensions/coding-standards/spring/CHANGELOG.md +12 -0
  45. package/augment-extensions/coding-standards/spring/README.md +61 -0
  46. package/augment-extensions/coding-standards/spring/examples/OrderController.java +40 -0
  47. package/augment-extensions/coding-standards/spring/metadata.json +39 -0
  48. package/augment-extensions/coding-standards/spring/module.json +38 -0
  49. package/augment-extensions/coding-standards/spring/rules/beans-configuration-and-boot.md +39 -0
  50. package/augment-extensions/coding-standards/spring/rules/data-testing-and-transactions.md +36 -0
  51. package/augment-extensions/coding-standards/spring/rules/production-operations.md +40 -0
  52. package/augment-extensions/coding-standards/spring/rules/web-apis-and-security.md +43 -0
  53. package/augment-extensions/visual-design/CHANGELOG.md +2 -2
  54. package/augment-extensions/visual-design/README.md +31 -8
  55. package/augment-extensions/visual-design/VERSION +1 -0
  56. package/augment-extensions/visual-design/__tests__/README.md +32 -18
  57. package/augment-extensions/visual-design/__tests__/guidance-contract.test.ts +355 -0
  58. package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +23 -5
  59. package/augment-extensions/visual-design/domains/other/dotnet-application.ts +1 -1
  60. package/augment-extensions/visual-design/domains/other/mobile-application.ts +3 -4
  61. package/augment-extensions/visual-design/domains/other/os-application.ts +1 -1
  62. package/augment-extensions/visual-design/domains/other/windows-platform.ts +1 -1
  63. package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +4 -4
  64. package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +10 -10
  65. package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +3 -3
  66. package/augment-extensions/visual-design/examples/README.md +2 -0
  67. package/augment-extensions/visual-design/examples/basic-usage.md +5 -3
  68. package/augment-extensions/visual-design/examples/vendor-comparison.md +2 -2
  69. package/augment-extensions/visual-design/guidelines/coverage-map.md +30 -0
  70. package/augment-extensions/visual-design/guidelines/design-levels.md +211 -0
  71. package/augment-extensions/visual-design/guidelines/index.md +5 -0
  72. package/augment-extensions/visual-design/metadata.json +26 -5
  73. package/augment-extensions/visual-design/module.json +39 -6
  74. package/augment-extensions/visual-design/rules/accessibility-and-color.md +51 -0
  75. package/augment-extensions/visual-design/rules/design-practice.md +55 -0
  76. package/augment-extensions/visual-design/rules/index.md +34 -0
  77. package/augment-extensions/visual-design/rules/platform-guidance.md +47 -0
  78. package/augment-extensions/visual-design/scripts/validate-guidance.cjs +233 -0
  79. package/augment-extensions/visual-design/skills/README.md +11 -0
  80. package/augment-extensions/visual-design/skills/design-brief.md +40 -0
  81. package/augment-extensions/visual-design/skills/design-review.md +38 -0
  82. package/augment-extensions/visual-design/skills/responsive-validation/SKILL.md +94 -0
  83. package/augment-extensions/visual-design/skills/responsive-validation/scripts/responsive-sweep.cjs +457 -0
  84. package/augment-extensions/visual-design/style-selector.ts +4 -4
  85. package/augment-extensions/visual-design/types.ts +101 -46
  86. package/augment-extensions/visual-design/visual-design-core.ts +8 -8
  87. package/augment-extensions/workflows/agent-engineering/README.md +67 -0
  88. package/augment-extensions/workflows/agent-engineering/examples/contracts.cjs +89 -0
  89. package/augment-extensions/workflows/agent-engineering/examples/demo.cjs +17 -0
  90. package/augment-extensions/workflows/agent-engineering/examples/evaluation-cases.json +7 -0
  91. package/augment-extensions/workflows/agent-engineering/examples/graphs.cjs +149 -0
  92. package/augment-extensions/workflows/agent-engineering/examples/loop.cjs +125 -0
  93. package/augment-extensions/workflows/agent-engineering/examples/recovery.cjs +51 -0
  94. package/augment-extensions/workflows/agent-engineering/examples/stub.cjs +11 -0
  95. package/augment-extensions/workflows/agent-engineering/examples/verify.cjs +21 -0
  96. package/augment-extensions/workflows/agent-engineering/module.json +24 -0
  97. package/augment-extensions/workflows/agent-engineering/rules/01-adoption.md +30 -0
  98. package/augment-extensions/workflows/agent-engineering/rules/02-agents.md +34 -0
  99. package/augment-extensions/workflows/agent-engineering/rules/03-contracts.md +34 -0
  100. package/augment-extensions/workflows/agent-engineering/rules/04-loops.md +39 -0
  101. package/augment-extensions/workflows/agent-engineering/rules/05-graphs.md +39 -0
  102. package/augment-extensions/workflows/agent-engineering/rules/06-improvement.md +38 -0
  103. package/augment-extensions/workflows/agent-engineering/schemas/contracts.schema.json +1 -0
  104. package/augment-extensions/workflows/agent-engineering/scripts/validate.cjs +32 -0
  105. package/augment-extensions/workflows/agent-engineering/sources.md +12 -0
  106. package/augment-extensions/workflows/agent-engineering/templates/agent.json +40 -0
  107. package/augment-extensions/workflows/agent-engineering/templates/check-tool.json +94 -0
  108. package/augment-extensions/workflows/agent-engineering/templates/evidence.json +29 -0
  109. package/augment-extensions/workflows/agent-engineering/templates/invocation.json +40 -0
  110. package/augment-extensions/workflows/agent-engineering/templates/node.json +27 -0
  111. package/augment-extensions/workflows/agent-engineering/templates/state.json +27 -0
  112. package/augment-extensions/workflows/agent-engineering/templates/task.json +40 -0
  113. package/augment-extensions/workflows/agent-engineering/templates/tool.json +52 -0
  114. package/augment-extensions/workflows/decision-layer/README.md +136 -0
  115. package/augment-extensions/workflows/decision-layer/examples/call-inventory.json +6 -0
  116. package/augment-extensions/workflows/decision-layer/examples/config.json +9 -0
  117. package/augment-extensions/workflows/decision-layer/examples/decision.json +13 -0
  118. package/augment-extensions/workflows/decision-layer/examples/labeled-cases.json +410 -0
  119. package/augment-extensions/workflows/decision-layer/examples/source.txt +3 -0
  120. package/augment-extensions/workflows/decision-layer/examples/task.json +8 -0
  121. package/augment-extensions/workflows/decision-layer/installation/package-lock.json +27 -0
  122. package/augment-extensions/workflows/decision-layer/installation/package.json +7 -0
  123. package/augment-extensions/workflows/decision-layer/installation/sources.json +18 -0
  124. package/augment-extensions/workflows/decision-layer/module.json +24 -0
  125. package/augment-extensions/workflows/decision-layer/rules/00-index.md +5 -0
  126. package/augment-extensions/workflows/decision-layer/rules/01-responsibilities.md +15 -0
  127. package/augment-extensions/workflows/decision-layer/rules/02-operation.md +13 -0
  128. package/augment-extensions/workflows/decision-layer/runtime/cli.cjs +70 -0
  129. package/augment-extensions/workflows/decision-layer/runtime/common.cjs +85 -0
  130. package/augment-extensions/workflows/decision-layer/runtime/contracts.d.ts +8 -0
  131. package/augment-extensions/workflows/decision-layer/runtime/decisions.cjs +198 -0
  132. package/augment-extensions/workflows/decision-layer/runtime/evaluate.cjs +61 -0
  133. package/augment-extensions/workflows/decision-layer/runtime/install.cjs +186 -0
  134. package/augment-extensions/workflows/decision-layer/runtime/integrations.cjs +64 -0
  135. package/augment-extensions/workflows/decision-layer/runtime/runner.cjs +201 -0
  136. package/augment-extensions/workflows/decision-layer/runtime/worker-child.cjs +15 -0
  137. package/augment-extensions/workflows/decision-layer/runtime/workers.cjs +15 -0
  138. package/augment-extensions/workflows/decision-layer/schemas/config.schema.json +27 -0
  139. package/augment-extensions/workflows/decision-layer/scripts/validate.cjs +16 -0
  140. package/augment-extensions/workflows/decision-layer/sources.md +25 -0
  141. package/cli/MODULES.md +804 -302
  142. package/cli/dist/__test_file-tracking.d.ts +2 -0
  143. package/cli/dist/__test_file-tracking.d.ts.map +1 -0
  144. package/cli/dist/__test_file-tracking.js +4 -0
  145. package/cli/dist/__test_file-tracking.js.map +1 -0
  146. package/cli/dist/adapters/banner.d.ts +62 -0
  147. package/cli/dist/adapters/banner.d.ts.map +1 -0
  148. package/cli/dist/adapters/banner.js +105 -0
  149. package/cli/dist/adapters/banner.js.map +1 -0
  150. package/cli/dist/adapters/claude-code.d.ts +13 -0
  151. package/cli/dist/adapters/claude-code.d.ts.map +1 -0
  152. package/cli/dist/adapters/claude-code.js +79 -0
  153. package/cli/dist/adapters/claude-code.js.map +1 -0
  154. package/cli/dist/adapters/copilot.d.ts +17 -0
  155. package/cli/dist/adapters/copilot.d.ts.map +1 -0
  156. package/cli/dist/adapters/copilot.js +81 -0
  157. package/cli/dist/adapters/copilot.js.map +1 -0
  158. package/cli/dist/adapters/cursor.d.ts +16 -0
  159. package/cli/dist/adapters/cursor.d.ts.map +1 -0
  160. package/cli/dist/adapters/cursor.js +99 -0
  161. package/cli/dist/adapters/cursor.js.map +1 -0
  162. package/cli/dist/adapters/index.d.ts +25 -0
  163. package/cli/dist/adapters/index.d.ts.map +1 -0
  164. package/cli/dist/adapters/index.js +59 -0
  165. package/cli/dist/adapters/index.js.map +1 -0
  166. package/cli/dist/adapters/types.d.ts +113 -0
  167. package/cli/dist/adapters/types.d.ts.map +1 -0
  168. package/cli/dist/adapters/types.js +13 -0
  169. package/cli/dist/adapters/types.js.map +1 -0
  170. package/cli/dist/adapters/windsurf.d.ts +14 -0
  171. package/cli/dist/adapters/windsurf.d.ts.map +1 -0
  172. package/cli/dist/adapters/windsurf.js +78 -0
  173. package/cli/dist/adapters/windsurf.js.map +1 -0
  174. package/cli/dist/analysis/ast-parser.d.ts.map +1 -1
  175. package/cli/dist/analysis/ast-parser.js +25 -9
  176. package/cli/dist/analysis/ast-parser.js.map +1 -1
  177. package/cli/dist/analysis/index.d.ts +1 -0
  178. package/cli/dist/analysis/index.d.ts.map +1 -1
  179. package/cli/dist/analysis/index.js +1 -0
  180. package/cli/dist/analysis/index.js.map +1 -1
  181. package/cli/dist/analysis/pattern-analyzer.d.ts +6 -0
  182. package/cli/dist/analysis/pattern-analyzer.d.ts.map +1 -0
  183. package/cli/dist/analysis/pattern-analyzer.js +100 -0
  184. package/cli/dist/analysis/pattern-analyzer.js.map +1 -0
  185. package/cli/dist/cli.js +67 -37
  186. package/cli/dist/cli.js.map +1 -1
  187. package/cli/dist/commands/code-analysis.d.ts.map +1 -1
  188. package/cli/dist/commands/code-analysis.js +22 -2
  189. package/cli/dist/commands/code-analysis.js.map +1 -1
  190. package/cli/dist/commands/decision.d.ts +4 -0
  191. package/cli/dist/commands/decision.d.ts.map +1 -0
  192. package/cli/dist/commands/decision.js +32 -0
  193. package/cli/dist/commands/decision.js.map +1 -0
  194. package/cli/dist/commands/export.d.ts +81 -0
  195. package/cli/dist/commands/export.d.ts.map +1 -0
  196. package/cli/dist/commands/export.js +334 -0
  197. package/cli/dist/commands/export.js.map +1 -0
  198. package/cli/dist/commands/gui-decision.d.ts +6 -0
  199. package/cli/dist/commands/gui-decision.d.ts.map +1 -0
  200. package/cli/dist/commands/gui-decision.js +189 -0
  201. package/cli/dist/commands/gui-decision.js.map +1 -0
  202. package/cli/dist/commands/gui-module-manager.d.ts +14 -0
  203. package/cli/dist/commands/gui-module-manager.d.ts.map +1 -0
  204. package/cli/dist/commands/gui-module-manager.js +326 -0
  205. package/cli/dist/commands/gui-module-manager.js.map +1 -0
  206. package/cli/dist/commands/gui.d.ts +5 -9
  207. package/cli/dist/commands/gui.d.ts.map +1 -1
  208. package/cli/dist/commands/gui.js +186 -231
  209. package/cli/dist/commands/gui.js.map +1 -1
  210. package/cli/dist/commands/init.d.ts +2 -0
  211. package/cli/dist/commands/init.d.ts.map +1 -1
  212. package/cli/dist/commands/init.js +84 -3
  213. package/cli/dist/commands/init.js.map +1 -1
  214. package/cli/dist/commands/lifecycle.d.ts +14 -0
  215. package/cli/dist/commands/lifecycle.d.ts.map +1 -0
  216. package/cli/dist/commands/lifecycle.js +463 -0
  217. package/cli/dist/commands/lifecycle.js.map +1 -0
  218. package/cli/dist/commands/link.d.ts +5 -0
  219. package/cli/dist/commands/link.d.ts.map +1 -1
  220. package/cli/dist/commands/link.js +137 -29
  221. package/cli/dist/commands/link.js.map +1 -1
  222. package/cli/dist/commands/list.js +2 -2
  223. package/cli/dist/commands/list.js.map +1 -1
  224. package/cli/dist/commands/mcp.d.ts +1 -2
  225. package/cli/dist/commands/mcp.d.ts.map +1 -1
  226. package/cli/dist/commands/mcp.js +20 -20
  227. package/cli/dist/commands/mcp.js.map +1 -1
  228. package/cli/dist/commands/module-management.d.ts +9 -0
  229. package/cli/dist/commands/module-management.d.ts.map +1 -0
  230. package/cli/dist/commands/module-management.js +420 -0
  231. package/cli/dist/commands/module-management.js.map +1 -0
  232. package/cli/dist/commands/search.js +1 -11
  233. package/cli/dist/commands/search.js.map +1 -1
  234. package/cli/dist/commands/self-remove.d.ts.map +1 -1
  235. package/cli/dist/commands/self-remove.js +98 -44
  236. package/cli/dist/commands/self-remove.js.map +1 -1
  237. package/cli/dist/commands/show.d.ts +1 -1
  238. package/cli/dist/commands/show.d.ts.map +1 -1
  239. package/cli/dist/commands/show.js +21 -10
  240. package/cli/dist/commands/show.js.map +1 -1
  241. package/cli/dist/commands/showCompleted.d.ts +1 -0
  242. package/cli/dist/commands/showCompleted.d.ts.map +1 -1
  243. package/cli/dist/commands/showCompleted.js +4 -3
  244. package/cli/dist/commands/showCompleted.js.map +1 -1
  245. package/cli/dist/commands/skill.d.ts +7 -1
  246. package/cli/dist/commands/skill.d.ts.map +1 -1
  247. package/cli/dist/commands/skill.js +79 -21
  248. package/cli/dist/commands/skill.js.map +1 -1
  249. package/cli/dist/commands/unlink.d.ts +2 -0
  250. package/cli/dist/commands/unlink.d.ts.map +1 -1
  251. package/cli/dist/commands/unlink.js +86 -44
  252. package/cli/dist/commands/unlink.js.map +1 -1
  253. package/cli/dist/commands/update.d.ts.map +1 -1
  254. package/cli/dist/commands/update.js +6 -16
  255. package/cli/dist/commands/update.js.map +1 -1
  256. package/cli/dist/commands/upgrade.d.ts +2 -0
  257. package/cli/dist/commands/upgrade.d.ts.map +1 -1
  258. package/cli/dist/commands/upgrade.js +22 -5
  259. package/cli/dist/commands/upgrade.js.map +1 -1
  260. package/cli/dist/commands/use.d.ts.map +1 -1
  261. package/cli/dist/commands/use.js +2 -68
  262. package/cli/dist/commands/use.js.map +1 -1
  263. package/cli/dist/core/compatibility-checker.d.ts +37 -1
  264. package/cli/dist/core/compatibility-checker.d.ts.map +1 -1
  265. package/cli/dist/core/compatibility-checker.js +133 -12
  266. package/cli/dist/core/compatibility-checker.js.map +1 -1
  267. package/cli/dist/gui/state/navigation-state.d.ts +20 -0
  268. package/cli/dist/gui/state/navigation-state.d.ts.map +1 -0
  269. package/cli/dist/gui/state/navigation-state.js +115 -0
  270. package/cli/dist/gui/state/navigation-state.js.map +1 -0
  271. package/cli/dist/gui/state/selection-state.d.ts +21 -0
  272. package/cli/dist/gui/state/selection-state.d.ts.map +1 -0
  273. package/cli/dist/gui/state/selection-state.js +117 -0
  274. package/cli/dist/gui/state/selection-state.js.map +1 -0
  275. package/cli/dist/lib/export-runner.d.ts +76 -0
  276. package/cli/dist/lib/export-runner.d.ts.map +1 -0
  277. package/cli/dist/lib/export-runner.js +111 -0
  278. package/cli/dist/lib/export-runner.js.map +1 -0
  279. package/cli/dist/lib/mcp-detection.d.ts +40 -0
  280. package/cli/dist/lib/mcp-detection.d.ts.map +1 -0
  281. package/cli/dist/lib/mcp-detection.js +167 -0
  282. package/cli/dist/lib/mcp-detection.js.map +1 -0
  283. package/cli/dist/lib/mirror-coordination.d.ts +57 -0
  284. package/cli/dist/lib/mirror-coordination.d.ts.map +1 -0
  285. package/cli/dist/lib/mirror-coordination.js +151 -0
  286. package/cli/dist/lib/mirror-coordination.js.map +1 -0
  287. package/cli/dist/lib/mirror-runner.d.ts +123 -0
  288. package/cli/dist/lib/mirror-runner.d.ts.map +1 -0
  289. package/cli/dist/lib/mirror-runner.js +579 -0
  290. package/cli/dist/lib/mirror-runner.js.map +1 -0
  291. package/cli/dist/lib/module-resolver.d.ts +65 -0
  292. package/cli/dist/lib/module-resolver.d.ts.map +1 -0
  293. package/cli/dist/lib/module-resolver.js +211 -0
  294. package/cli/dist/lib/module-resolver.js.map +1 -0
  295. package/cli/dist/lib/source-hash.d.ts +62 -0
  296. package/cli/dist/lib/source-hash.d.ts.map +1 -0
  297. package/cli/dist/lib/source-hash.js +99 -0
  298. package/cli/dist/lib/source-hash.js.map +1 -0
  299. package/cli/dist/types/coordination-export.d.ts +33 -0
  300. package/cli/dist/types/coordination-export.d.ts.map +1 -0
  301. package/cli/dist/types/coordination-export.js +28 -0
  302. package/cli/dist/types/coordination-export.js.map +1 -0
  303. package/cli/dist/types/gui.d.ts +4 -0
  304. package/cli/dist/types/gui.d.ts.map +1 -1
  305. package/cli/dist/types/lifecycle.d.ts +81 -0
  306. package/cli/dist/types/lifecycle.d.ts.map +1 -0
  307. package/cli/dist/types/lifecycle.js +3 -0
  308. package/cli/dist/types/lifecycle.js.map +1 -0
  309. package/cli/dist/utils/beads-sync.d.ts +4 -0
  310. package/cli/dist/utils/beads-sync.d.ts.map +1 -1
  311. package/cli/dist/utils/beads-sync.js.map +1 -1
  312. package/cli/dist/utils/catalog-sync.d.ts.map +1 -1
  313. package/cli/dist/utils/catalog-sync.js +41 -8
  314. package/cli/dist/utils/catalog-sync.js.map +1 -1
  315. package/cli/dist/utils/coordination-queries.d.ts +3 -0
  316. package/cli/dist/utils/coordination-queries.d.ts.map +1 -1
  317. package/cli/dist/utils/coordination-queries.js +2 -2
  318. package/cli/dist/utils/coordination-queries.js.map +1 -1
  319. package/cli/dist/utils/decision-runner.d.ts +18 -0
  320. package/cli/dist/utils/decision-runner.d.ts.map +1 -0
  321. package/cli/dist/utils/decision-runner.js +114 -0
  322. package/cli/dist/utils/decision-runner.js.map +1 -0
  323. package/cli/dist/utils/extensions-config.d.ts +29 -0
  324. package/cli/dist/utils/extensions-config.d.ts.map +1 -0
  325. package/cli/dist/utils/extensions-config.js +151 -0
  326. package/cli/dist/utils/extensions-config.js.map +1 -0
  327. package/cli/dist/utils/extractCommandHelp.d.ts +2 -2
  328. package/cli/dist/utils/extractCommandHelp.d.ts.map +1 -1
  329. package/cli/dist/utils/extractCommandHelp.js +10 -4
  330. package/cli/dist/utils/extractCommandHelp.js.map +1 -1
  331. package/cli/dist/utils/file-tracking.d.ts +4 -0
  332. package/cli/dist/utils/file-tracking.d.ts.map +1 -1
  333. package/cli/dist/utils/file-tracking.js +5 -5
  334. package/cli/dist/utils/file-tracking.js.map +1 -1
  335. package/cli/dist/utils/glob-match.d.ts +6 -0
  336. package/cli/dist/utils/glob-match.d.ts.map +1 -0
  337. package/cli/dist/utils/glob-match.js +8 -0
  338. package/cli/dist/utils/glob-match.js.map +1 -0
  339. package/cli/dist/utils/gui-helpers.d.ts.map +1 -1
  340. package/cli/dist/utils/gui-helpers.js +7 -3
  341. package/cli/dist/utils/gui-helpers.js.map +1 -1
  342. package/cli/dist/utils/inspection-cache.d.ts +8 -0
  343. package/cli/dist/utils/inspection-cache.d.ts.map +1 -1
  344. package/cli/dist/utils/inspection-cache.js +12 -0
  345. package/cli/dist/utils/inspection-cache.js.map +1 -1
  346. package/cli/dist/utils/inspection-handlers.d.ts.map +1 -1
  347. package/cli/dist/utils/inspection-handlers.js +230 -52
  348. package/cli/dist/utils/inspection-handlers.js.map +1 -1
  349. package/cli/dist/utils/install-rules.d.ts +15 -0
  350. package/cli/dist/utils/install-rules.d.ts.map +1 -1
  351. package/cli/dist/utils/install-rules.js +247 -0
  352. package/cli/dist/utils/install-rules.js.map +1 -1
  353. package/cli/dist/utils/interactive-prompt.d.ts +7 -0
  354. package/cli/dist/utils/interactive-prompt.d.ts.map +1 -0
  355. package/cli/dist/utils/interactive-prompt.js +41 -0
  356. package/cli/dist/utils/interactive-prompt.js.map +1 -0
  357. package/cli/dist/utils/lifecycle.d.ts +47 -0
  358. package/cli/dist/utils/lifecycle.d.ts.map +1 -0
  359. package/cli/dist/utils/lifecycle.js +841 -0
  360. package/cli/dist/utils/lifecycle.js.map +1 -0
  361. package/cli/dist/utils/mcp-integration.d.ts +24 -3
  362. package/cli/dist/utils/mcp-integration.d.ts.map +1 -1
  363. package/cli/dist/utils/mcp-integration.js +364 -151
  364. package/cli/dist/utils/mcp-integration.js.map +1 -1
  365. package/cli/dist/utils/module-system.d.ts +7 -0
  366. package/cli/dist/utils/module-system.d.ts.map +1 -1
  367. package/cli/dist/utils/module-system.js +137 -42
  368. package/cli/dist/utils/module-system.js.map +1 -1
  369. package/cli/dist/utils/modules-catalog.d.ts.map +1 -1
  370. package/cli/dist/utils/modules-catalog.js +5 -0
  371. package/cli/dist/utils/modules-catalog.js.map +1 -1
  372. package/cli/dist/utils/openspec-sync.d.ts +4 -0
  373. package/cli/dist/utils/openspec-sync.d.ts.map +1 -1
  374. package/cli/dist/utils/openspec-sync.js.map +1 -1
  375. package/cli/dist/utils/plugin-system.js +1 -1
  376. package/cli/dist/utils/plugin-system.js.map +1 -1
  377. package/cli/dist/utils/skill-system.d.ts +11 -0
  378. package/cli/dist/utils/skill-system.d.ts.map +1 -1
  379. package/cli/dist/utils/skill-system.js +101 -3
  380. package/cli/dist/utils/skill-system.js.map +1 -1
  381. package/cli/dist/utils/zip-archive.d.ts +25 -0
  382. package/cli/dist/utils/zip-archive.d.ts.map +1 -0
  383. package/cli/dist/utils/zip-archive.js +287 -0
  384. package/cli/dist/utils/zip-archive.js.map +1 -0
  385. package/modules.md +89 -6
  386. package/package.json +150 -135
@@ -0,0 +1,40 @@
1
+ {
2
+ "version": 1,
3
+ "role": "implementer",
4
+ "purpose": "Produce one candidate inside the work packet",
5
+ "inputs": [
6
+ "Validated task",
7
+ "Feedback"
8
+ ],
9
+ "outputs": [
10
+ "Candidate artifact"
11
+ ],
12
+ "readPaths": [
13
+ "candidate.json"
14
+ ],
15
+ "writePaths": [
16
+ "candidate.json"
17
+ ],
18
+ "tools": [
19
+ "stub"
20
+ ],
21
+ "permissionCeiling": "local-reversible",
22
+ "timeoutMs": 750,
23
+ "allocation": {
24
+ "maxAttempts": 5,
25
+ "maxCalls": 12,
26
+ "wallMs": 5000,
27
+ "callMs": 750,
28
+ "stallRounds": 2,
29
+ "maxWorkers": 1
30
+ },
31
+ "verificationResponsibility": "Controller invokes protected independent checker",
32
+ "termination": [
33
+ "Verified acceptance",
34
+ "Allocation exhausted",
35
+ "Cancellation",
36
+ "Denied authority"
37
+ ],
38
+ "escalation": "handoff.json",
39
+ "delegationDepth": 0
40
+ }
@@ -0,0 +1,94 @@
1
+ {
2
+ "version": 1,
3
+ "id": "check",
4
+ "inputSchema": {
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "path": {
9
+ "type": "string",
10
+ "minLength": 1,
11
+ "maxLength": 1000
12
+ }
13
+ },
14
+ "required": [
15
+ "path"
16
+ ]
17
+ },
18
+ "outputSchema": {
19
+ "type": "object",
20
+ "additionalProperties": false,
21
+ "properties": {
22
+ "passed": {
23
+ "type": "boolean"
24
+ },
25
+ "score": {
26
+ "type": "integer",
27
+ "minimum": 0,
28
+ "maximum": 3
29
+ },
30
+ "expected": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 1000
36
+ },
37
+ "uniqueItems": true,
38
+ "maxItems": 64
39
+ },
40
+ "actual": {
41
+ "type": "array",
42
+ "items": {
43
+ "type": "string",
44
+ "minLength": 1,
45
+ "maxLength": 1000
46
+ },
47
+ "maxItems": 64
48
+ },
49
+ "condition": {
50
+ "type": "string",
51
+ "minLength": 1,
52
+ "maxLength": 1000
53
+ },
54
+ "location": {
55
+ "const": "candidate.json"
56
+ },
57
+ "artifact": {
58
+ "type": "string",
59
+ "pattern": "^[a-f0-9]{64}$"
60
+ }
61
+ },
62
+ "required": [
63
+ "passed",
64
+ "score",
65
+ "expected",
66
+ "actual",
67
+ "condition",
68
+ "location",
69
+ "artifact"
70
+ ]
71
+ },
72
+ "preconditions": [
73
+ "Contract validated",
74
+ "Remaining shared allocation"
75
+ ],
76
+ "effects": [
77
+ "Read candidate and return protected verdict"
78
+ ],
79
+ "allowedPaths": [
80
+ "candidate.json"
81
+ ],
82
+ "allowedDomains": [],
83
+ "deadlineMs": 750,
84
+ "retries": 0,
85
+ "idempotency": "Pure stub; retries consume shared calls",
86
+ "failures": [
87
+ "transient",
88
+ "denied",
89
+ "unrecoverable"
90
+ ],
91
+ "successEvidence": [
92
+ "Typed candidate followed by independent check"
93
+ ]
94
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "check": "sorted-unique",
3
+ "artifact": "0000000000000000000000000000000000000000000000000000000000000000",
4
+ "contract": "0000000000000000000000000000000000000000000000000000000000000000",
5
+ "policy": "0000000000000000000000000000000000000000000000000000000000000000",
6
+ "revision": "fixture-v1",
7
+ "timestamp": "2026-11-26T00:00:00.000Z",
8
+ "command": [
9
+ "node",
10
+ "verify.cjs",
11
+ "candidate.json"
12
+ ],
13
+ "exitCode": 0,
14
+ "expected": [
15
+ "a",
16
+ "b",
17
+ "c"
18
+ ],
19
+ "actual": [
20
+ "a",
21
+ "b",
22
+ "c"
23
+ ],
24
+ "passed": true,
25
+ "scope": "Local deterministic fixture only",
26
+ "limitations": [
27
+ "No provider or production evidence"
28
+ ]
29
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "version": 1,
3
+ "task": "local-demo",
4
+ "role": "implementer",
5
+ "scope": [
6
+ "Produce candidate only"
7
+ ],
8
+ "dependencies": [],
9
+ "relevantFiles": [
10
+ "candidate.json"
11
+ ],
12
+ "acceptanceEvidence": [
13
+ "sorted-unique check"
14
+ ],
15
+ "outputSchema": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string",
19
+ "enum": [
20
+ "a",
21
+ "b",
22
+ "c"
23
+ ]
24
+ },
25
+ "maxItems": 8
26
+ },
27
+ "owner": "worker-one",
28
+ "writePaths": [
29
+ "candidate.json"
30
+ ],
31
+ "tools": [
32
+ "stub"
33
+ ],
34
+ "allocation": {
35
+ "calls": 2,
36
+ "timeoutMs": 750
37
+ },
38
+ "permissionCeiling": "local-reversible",
39
+ "delegationDepth": 0
40
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "id": "normalize",
3
+ "responsibility": "Normalize one fixture",
4
+ "executor": "code",
5
+ "inputSchema": {
6
+ "type": "object"
7
+ },
8
+ "outputSchema": {
9
+ "type": "array",
10
+ "items": {
11
+ "type": "string",
12
+ "enum": [
13
+ "a",
14
+ "b",
15
+ "c"
16
+ ]
17
+ },
18
+ "maxItems": 8
19
+ },
20
+ "dependencies": [],
21
+ "acceptance": "schema",
22
+ "failureRoute": "handoff",
23
+ "allocation": {
24
+ "calls": 1,
25
+ "timeoutMs": 750
26
+ }
27
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "version": 1,
3
+ "run": "local-demo",
4
+ "contract": "0000000000000000000000000000000000000000000000000000000000000000",
5
+ "policy": "0000000000000000000000000000000000000000000000000000000000000000",
6
+ "revision": "fixture-v1",
7
+ "mode": "repair",
8
+ "startedAt": 0,
9
+ "deadline": 5000,
10
+ "attempts": 0,
11
+ "calls": 0,
12
+ "dryRounds": 0,
13
+ "bestScore": 0,
14
+ "status": "running",
15
+ "nextAction": "dispatch",
16
+ "artifact": null,
17
+ "facts": [
18
+ "Fixture source is protected"
19
+ ],
20
+ "decisions": [
21
+ "Single controller writer"
22
+ ],
23
+ "accepted": [],
24
+ "rejected": [],
25
+ "evidence": [],
26
+ "trace": []
27
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "version": 1,
3
+ "id": "local-demo",
4
+ "objective": "Produce sorted unique fixture values",
5
+ "scope": [
6
+ "candidate.json"
7
+ ],
8
+ "exclusions": [
9
+ "External effects",
10
+ "Guardrail changes"
11
+ ],
12
+ "readPaths": [
13
+ "candidate.json"
14
+ ],
15
+ "writePaths": [
16
+ "candidate.json"
17
+ ],
18
+ "preservedBehavior": [
19
+ "Fixture source remains unchanged"
20
+ ],
21
+ "acceptance": [
22
+ "Exact expected ordered values"
23
+ ],
24
+ "requiredChecks": [
25
+ "sorted-unique"
26
+ ],
27
+ "risk": "local-reversible",
28
+ "budget": {
29
+ "maxAttempts": 5,
30
+ "maxCalls": 12,
31
+ "wallMs": 5000,
32
+ "callMs": 750,
33
+ "stallRounds": 2,
34
+ "maxWorkers": 1
35
+ },
36
+ "owner": "controller",
37
+ "approvals": [],
38
+ "revision": "fixture-v1",
39
+ "handoff": "handoff.json"
40
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "version": 1,
3
+ "id": "stub",
4
+ "inputSchema": {
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "attempt": {
9
+ "type": "integer",
10
+ "minimum": 1,
11
+ "maximum": 100000
12
+ }
13
+ },
14
+ "required": [
15
+ "attempt"
16
+ ]
17
+ },
18
+ "outputSchema": {
19
+ "type": "array",
20
+ "items": {
21
+ "type": "string",
22
+ "enum": [
23
+ "a",
24
+ "b",
25
+ "c"
26
+ ]
27
+ },
28
+ "maxItems": 8
29
+ },
30
+ "preconditions": [
31
+ "Contract validated",
32
+ "Remaining shared allocation"
33
+ ],
34
+ "effects": [
35
+ "Returns a candidate; controller owns writes"
36
+ ],
37
+ "allowedPaths": [
38
+ "candidate.json"
39
+ ],
40
+ "allowedDomains": [],
41
+ "deadlineMs": 750,
42
+ "retries": 1,
43
+ "idempotency": "Pure stub; retries consume shared calls",
44
+ "failures": [
45
+ "transient",
46
+ "denied",
47
+ "unrecoverable"
48
+ ],
49
+ "successEvidence": [
50
+ "Typed candidate followed by independent check"
51
+ ]
52
+ }
@@ -0,0 +1,136 @@
1
+ # Decision Layer Workflow
2
+
3
+ ## Overview
4
+
5
+ An explicitly invoked Augx runtime for TypeSafe judgments, code-owned policy, and durable local worker execution. Existing generative models retain planning, writing, coding, and argument generation. Jev returns judgments. Application code grants permissions, enforces limits, executes registered handlers, and verifies completion.
6
+
7
+ ## Installation
8
+
9
+ Run these commands from a consuming project using an Augx package containing this module:
10
+
11
+ ```bash
12
+ augx link workflows/decision-layer
13
+ augx decision setup --dry-run --host codex
14
+ augx decision setup --host codex
15
+ augx decision doctor
16
+ ```
17
+
18
+ Setup automatically installs the pinned official JavaScript SDK and official TypeSafe skill. The default skill host is Codex (`.agents/skills/typesafe-ai`); `--host claude-code` uses `.claude/skills/typesafe-ai`. The official documentation supports copying the complete skill directory manually. Setup performs that verified method with commit-pinned downloads and SHA-256 checks, including the license. It does not invoke a plugin marketplace or skills.sh as well.
19
+
20
+ Software lives in `.augx-decision/software`. Existing compatible Node 22+ with npm is reused. Otherwise setup downloads official Node 22.23.5, verifies its pinned archive checksum, extracts a separate runtime including npm, and invokes that executable explicitly. `--portable` forces this path. Supported distribution targets are Windows x64/arm64, macOS x64/arm64, and glibc Linux x64/arm64 with `/usr/bin/tar`. Other targets fail with a clear diagnostic. Actual platform verification is recorded in the implementation report. No administrator privilege, global upgrade, Python, database, or container is required.
21
+
22
+ Augx retains its declared Node 16 compatibility. Discovery, help, linking, exporting and mirroring neither load nor install the SDK. When the main CLI runs on Node 16, explicit decision execution launches the installed separate runtime. A source checkout needs `npm install` and `npm run build`; use `node cli/dist/cli.js` in place of `augx` to validate source changes. Installed packages contain compiled CLI code and module assets and need no TypeScript compiler for module setup.
23
+
24
+ The dry run detects platform, architecture, Node, npm, existing skill host directories and configuration scope without creating directories or downloading anything. Setup uses npm ci with an integrity-locked dependency, disables lifecycle scripts and audit, uses the explicit official registry, and excludes provider credentials from installer subprocesses. It writes a partial-install journal before installing and a hashed ownership receipt only after SDK loading and config validation. A failed or interrupted install can be retried. Existing edited software and skill files cause a preservation error. Existing valid config is retained. Offline setup works when compatible installed software and the skill are already present; missing downloads fail explicitly while offline. There is no offline bundle of the SDK or Node.
25
+
26
+ Doctor reports software installation, configuration validity, credential availability, connectivity verification, and live activation independently. Setup and offline validation need no credentials. Live calls use only `TYPESAFE_API_KEY` from the environment. Configure it using your shell or secret manager, never chat or a committed file. Inspect `.augx-decision/config.json`, enable `allowProviderData` for approved de-identified public/internal inputs, then explicitly request live operation:
27
+
28
+ ```bash
29
+ augx decision decide --input decision.json --live --requests 1 --id first-live-probe
30
+ ```
31
+
32
+ A successful live probe is connectivity evidence for that request only. Doctor never silently calls the provider and continues reporting connectivity as NOT VERIFIED. Live activation is per invocation, with explicit request reservation. There is no fallback from live calls to fixtures.
33
+
34
+ ## Usage
35
+
36
+ Copy [source.txt](examples/source.txt), [task.json](examples/task.json), and [labeled-cases.json](examples/labeled-cases.json) into a disposable project after setup. The task and cases expect `source.txt` at the project root.
37
+
38
+ ```bash
39
+ augx decision examples --offline
40
+ augx decision run --input task.json --offline --id briefing
41
+ augx decision resume --id briefing --offline
42
+ augx decision evaluate --input labeled-cases.json --offline --id trial
43
+ augx decision inventory --input call-inventory.json
44
+ ```
45
+
46
+ The examples command executes all eleven capabilities. The run command dispatches, saves a local queue handoff, claims it, executes a real subprocess worker, writes its output, and independently verifies acceptance criteria and source digests. Built-in research collects supplied local evidence; write composes a draft from it; review produces a local inspection record. They do not search the web or call a generative model. Fixture routing is a deliberately simple lexical rule with explicit provenance. It provides repeatable runtime exercises, not evidence of Jev quality.
47
+
48
+ Use [decision.json](examples/decision.json) for an individual input. Every state requires original `goal`, nonnegative `revision`, and arrays for `evidence`, `completed`, `issues`, `constraints`, and `capabilities`. See [contracts](runtime/contracts.d.ts), [config schema](schemas/config.schema.json), and the executable examples for the supported narrow contracts. Unsupported fields never become executable commands or permissions.
49
+
50
+ ## Capabilities and actual integration boundary
51
+
52
+ | Capability | Runtime behavior and example |
53
+ |---|---|
54
+ | Model routing | Filters available compatible adapters by capabilities and data class, considers supplied cost information, then selects a generative adapter. `routeGeneration` invokes its registered generate method. |
55
+ | Tool assessment | Recommends allow/review/deny only after registered JSON Schema validation and caller authorization. `executeAction` checks authorization again before executing. CLI probes default to deny because they have no registered tool authority. |
56
+ | Context selection | Scores identified chunks in one batch, retains protected instructions/constraints/evidence/blockers, and returns selected, omitted and original views with source references. |
57
+ | Stuck detection | Combines progress and repetition Nouls with exact repeated-action and runtime no-progress limits. |
58
+ | Worker dispatch | Selects from currently available, capable registered workers; queues and consumes an actual local handler. |
59
+ | Action selection | Uses a revision-bound fresh menu and optional caller re-observation and argument validation. Selecting an identifier alone executes nothing. |
60
+ | Completion | Uses a Noul proposal plus a separate verifier callback. Missing evidence always produces review. Runs verify actual bytes independently of worker output. |
61
+ | Human escalation | Saves inspectable review.json; resume requires the exact review digest when approval is needed. Changed task, sources, policy or action invalidate approval. |
62
+ | Retrieval | Scores a supplied small corpus or uses `rerank` on up to 64 access-filtered results from an existing retriever, preserving references. No vector store added. |
63
+ | Trace evaluation | Batches satisfaction, efficiency and failure-category judgments. Evaluation records do not automatically alter production policy. |
64
+ | Input classification | Selects local destination criteria with a companion fit question and review fallback. Sends no messages. |
65
+
66
+ `augx decision examples --offline` is the executable example for each row. [Integrations](runtime/integrations.cjs) also implements scoped ancestor AGENTS.md loading, registered action schemas loaded on demand, existing generative-model adapter invocation, existing-retriever reranking, and bounded read-only file inspection. Context selection is query-dependent and reversible. Workers receive a scoped goal and source corpus and merge only their candidate artifact through the controller. Call read-only inspection or trace evaluation explicitly from your existing background runner when needed; no scheduler is installed.
67
+
68
+ A linked Markdown module cannot intercept an external coding agent. This module connects only explicit Augx calls and trusted programmatic adapters. It does not transparently wrap Codex, Claude Code, arbitrary model providers, editors, tools, or external recipients.
69
+
70
+ To connect an existing worker, call `run(root, policy, task, options)` from `runtime/runner.cjs` and supply `options.workers` containing trusted `{id, description, capabilities, available, modulePath, sha256}` registrations. Each fixed module exports `async execute(context)`, as [workers.cjs](runtime/workers.cjs) demonstrates. Registration comes from trusted application code, never a task or provider answer. The subprocess validates the module digest before loading it. Keep verifiers outside that module. Custom adapters must reconcile their own external receipts, idempotency and usage; the built-in verifier supports the local artifact contract only. No external generative-worker integration is claimed as tested here.
71
+
72
+ ## Policy, budgets, and recovery
73
+
74
+ Config pins `jev-1.14.0` and policy version `initial-1`. Choice/Score confidence and probabilities are validated separately. Actions use selected probability at or above the configured threshold and require it to exceed one-half, so ties always go to review. Noul uncertainty and contradictory answers have explicit review/error outcomes. Score bounds follow the descriptive rubric. Independent questions share state; dependent decisions need another observation and call.
75
+
76
+ Defaults: one active worker per run, three worker attempts, two no-progress rounds, twelve maximum provider requests, sixty seconds total run duration including downtime, five seconds per worker, ten seconds per provider request, and 24,000 serialized request bytes. The byte limit is deliberately more conservative than provider token limits; no exact tokenizer or long-context mode is claimed. SDK retries are disabled so one durable reservation permits at most one provider HTTP attempt. Failures consume reservations. Evaluation additionally reserves from one aggregate budget across all matched tasks. Different run identities are separate budgets.
77
+
78
+ Run state contains a schema version, task identity/digest, policy digest/version, observation revision, decision provenance, selected worker, status, attempts, request reservations, token usage where reported, artifacts, independent verification, and next action. Writes use flushed temporary files and same-directory rename. An exclusive per-run writer lock serializes claims and duplicate invocations. The lock records PID and ownership token; a live PID is never automatically displaced. A dead writer can be recovered with a second exclusive recovery claim. A leftover recovery claim requires manual inspection. PID reuse can conservatively block recovery.
79
+
80
+ Resume retains consumed budgets and the original deadline. It verifies an uncertain local artifact before retrying. Existing unverified artifacts require review and are not overwritten. Completed artifacts are rechecked and changed bytes invalidate completion. Crashed in-flight provider requests remain charged and go to review. Ctrl+C aborts requests and terminates owned worker processes and their normal process tree. Same-user hostile mutation, detached custom subprocesses, power-loss filesystem guarantees, exactly-once external effects, and OS sandboxing are outside this implementation's guarantees.
81
+
82
+ Review requests contain an action, concrete arguments, task/source digest, state revision and policy digest. After inspecting the file, explicitly authorize that concrete action:
83
+
84
+ ```bash
85
+ augx decision resume --id briefing --offline --approve DIGEST_FROM_REVIEW
86
+ ```
87
+
88
+ Approval resumes only the required registered worker and cannot authorize prohibited paths, a changed task, a different policy or missing capability. Do not modify state files to reset budgets. Use a new reviewed run identity for changed work. Exit 0 means the command succeeded, 1 means a run ended without verified completion, and 2 means invalid input, installation/provider failure, or ownership/configuration conflict.
89
+
90
+ Costs absent from SDK usage remain unknown (`null`), including worker charges and cache costs. Tokens are recorded only where reported; failed requests remain unknown. This module does not enforce a hard monetary spending cap. Use a provider-side spending limit where available and conservative request/duration reservations locally. A provider answer cannot grant data access or permission. Secret scanning is defense in depth; operators remain responsible for de-identification. Governing instructions are never filtered by a relevance score. Hidden model reasoning is never collected.
91
+
92
+ ## Removal and retention
93
+
94
+ ```bash
95
+ augx decision remove
96
+ augx unlink workflows/decision-layer
97
+ ```
98
+
99
+ Removal uses receipt allowlists and hashes, unlinks only unchanged recorded files, and preserves edited files, unrelated runtimes, credentials, run history, user data, and empty directories. Existing matching skill files reused from another installation are not owned. A redacted preservation receipt remains if edits need review. Remove retained run data manually only when you intend to discard it. A failed install without a ready receipt remains diagnostic rather than ready; rerun setup before removal.
100
+
101
+ ## Measurement and seven-day observation
102
+
103
+ Start with [call-inventory.json](examples/call-inventory.json). Choose its most frequent judgment for initial adoption. Probe representative de-identified state locally or in the provider playground before connecting a real worker. Run the 24 labeled cases, including held-out cases, then compare matched tasks using the same worker and verifier. The bundled cases are synthetic labels for runtime testing. Offline routing is simulated and does not prove model accuracy, provider performance, or savings. Labeling the task kind defines the required artifact contract; evaluation is not a blind benchmark. Replace cases with independently labeled held-out tasks and a real baseline adapter before making production quality claims.
104
+
105
+ Record independently verified completion rate, cost per completed task, end-to-end and provider latency, request reservations, worker attempts/retries, escalation rate, inappropriate escalations and missed escalations. Evaluation writes these fields with provenance and unavailable costs as null. Include routing overhead, worker time, provider charges and cache changes in real experiments. Trace judgments are separate observations and cannot overwrite artifact verification.
106
+
107
+ 1. Day 1: Inventory current calls, freeze baseline/policy/model versions, choose one judgment and de-identify representative traffic.
108
+ 2. Day 2: Inspect local probes, calibrate descriptions on the calibration split, and freeze a held-out split.
109
+ 3. Day 3: Run matched shadow tasks and inspect every escalation and independently verified completion.
110
+ 4. Day 4: Measure end-to-end latency and request/retry usage, including failed requests and worker work.
111
+ 5. Day 5: Reconcile actual provider and worker charges and cache effects; retain unavailable figures as unknown.
112
+ 6. Day 6: Evaluate held-out examples once, review inappropriate/missed escalations, and draft versioned policy recommendations.
113
+ 7. Day 7: Explicitly approve or reject promotion against measured completion, cost and latency. Retain the prior policy and expand one judgment at a time only with evidence.
114
+
115
+ No seven-day production observation has been performed by installing this module.
116
+
117
+ ## Contents and validation
118
+
119
+ - [Indexed rules](rules/00-index.md), [source notes](sources.md), [config schema](schemas/config.schema.json), [typed interface](runtime/contracts.d.ts)
120
+ - [Installer](runtime/install.cjs), [TypeSafe adapter](runtime/decisions.cjs), [controller](runtime/runner.cjs), [integration helpers](runtime/integrations.cjs), [evaluation](runtime/evaluate.cjs)
121
+ - [Pinned installation resources](installation/package.json), [source checksums](installation/sources.json), [example task](examples/task.json), [24 labeled cases](examples/labeled-cases.json)
122
+
123
+ ```bash
124
+ node augment-extensions/workflows/decision-layer/scripts/validate.cjs
125
+ npm run test:decision
126
+ ```
127
+
128
+ ## Character Count
129
+
130
+ The metadata count is the fixed-point sum of decoded file contents, including metadata, matching the maintained CLI method. Reconcile it with `scripts/validate.cjs --update-count` after edits. Runtime files stay outside rules, so exports and mirrors preserve their static-only contract.
131
+
132
+ ## Version
133
+
134
+ Module version: 1.0.0.
135
+
136
+ `npm run test:decision` explicitly installs the official SDK and skill into the ignored test-artifacts/decision-consumer-source prerequisite, then runs the existing Vitest harness. A plain Vitest run skips SDK and installation contract cases if this prerequisite is absent; it does not silently fake the SDK. The packed consumer verifier additionally exercises an actual clean package installation. To connect a custom worker that makes provider calls, declare `requestsPerAttempt` in its trusted registration. The controller reserves that allocation before launch and aggregates reported token usage. The worker must honor its allocation, report `usage.requests`, and reconcile external billing independently; unknown charges remain unknown. Offline mode never launches a worker with a positive provider-request allocation.
@@ -0,0 +1,6 @@
1
+ [
2
+ { "name": "plan feature", "kind": "generation", "callsPerDay": 20 },
3
+ { "name": "dispatch worker", "kind": "judgment", "callsPerDay": 200 },
4
+ { "name": "classify input", "kind": "judgment", "callsPerDay": 100 },
5
+ { "name": "check request budget", "kind": "deterministic", "callsPerDay": 300 }
6
+ ]
@@ -0,0 +1,9 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "policyVersion": "initial-1",
4
+ "model": "jev-1.14.0",
5
+ "allowProviderData": false,
6
+ "threshold": 0.85,
7
+ "relevance": 1.5,
8
+ "limits": { "requests": 12, "attempts": 3, "runMs": 60000, "workerMs": 5000, "requestMs": 10000, "noProgress": 2, "bytes": 24000 }
9
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "capability": "classify",
3
+ "state": {
4
+ "goal": "Route this local ticket: I need documentation for a draft briefing",
5
+ "revision": 1,
6
+ "evidence": ["A de-identified local ticket asks for documentation"],
7
+ "completed": [], "issues": [], "constraints": ["Do not send messages"], "capabilities": []
8
+ },
9
+ "candidates": [
10
+ { "id": "documentation", "description": "Requests for documentation and how-to guidance" },
11
+ { "id": "review", "description": "Ambiguous requests or destinations not covered by this menu" }
12
+ ]
13
+ }