@memnexus-ai/mx-agent-cli 0.1.296 → 0.1.298

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 (797) hide show
  1. package/dist/agent-config/hooks/gh-pr-edit-guard.sh +21 -9
  2. package/dist/agent-config/settings.json +7 -1
  3. package/dist/commands/check.d.ts +20 -0
  4. package/dist/commands/check.d.ts.map +1 -0
  5. package/dist/commands/check.js +30 -0
  6. package/dist/commands/check.js.map +1 -0
  7. package/dist/commands/create.d.ts +36 -0
  8. package/dist/commands/create.d.ts.map +1 -1
  9. package/dist/commands/create.js +85 -8
  10. package/dist/commands/create.js.map +1 -1
  11. package/dist/commands/gh.d.ts +38 -0
  12. package/dist/commands/gh.d.ts.map +1 -0
  13. package/dist/commands/gh.js +162 -0
  14. package/dist/commands/gh.js.map +1 -0
  15. package/dist/commands/git-credential.d.ts +22 -0
  16. package/dist/commands/git-credential.d.ts.map +1 -0
  17. package/dist/commands/git-credential.js +53 -0
  18. package/dist/commands/git-credential.js.map +1 -0
  19. package/dist/commands/new.d.ts +24 -0
  20. package/dist/commands/new.d.ts.map +1 -1
  21. package/dist/commands/new.js +56 -5
  22. package/dist/commands/new.js.map +1 -1
  23. package/dist/commands/pr-set-body.d.ts +120 -35
  24. package/dist/commands/pr-set-body.d.ts.map +1 -1
  25. package/dist/commands/pr-set-body.js +343 -108
  26. package/dist/commands/pr-set-body.js.map +1 -1
  27. package/dist/commands/pr-sync.d.ts +2 -1
  28. package/dist/commands/pr-sync.d.ts.map +1 -1
  29. package/dist/commands/pr-sync.js +129 -32
  30. package/dist/commands/pr-sync.js.map +1 -1
  31. package/dist/index.d.ts +3 -0
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +82 -2
  34. package/dist/index.js.map +1 -1
  35. package/dist/lib/check-run.d.ts +131 -0
  36. package/dist/lib/check-run.d.ts.map +1 -0
  37. package/dist/lib/check-run.js +291 -0
  38. package/dist/lib/check-run.js.map +1 -0
  39. package/dist/lib/coordination-token.d.ts +33 -1
  40. package/dist/lib/coordination-token.d.ts.map +1 -1
  41. package/dist/lib/coordination-token.js +138 -9
  42. package/dist/lib/coordination-token.js.map +1 -1
  43. package/dist/lib/gh-remote.d.ts +20 -0
  44. package/dist/lib/gh-remote.d.ts.map +1 -1
  45. package/dist/lib/gh-remote.js +26 -0
  46. package/dist/lib/gh-remote.js.map +1 -1
  47. package/dist/lib/gh-token-run.d.ts +551 -0
  48. package/dist/lib/gh-token-run.d.ts.map +1 -0
  49. package/dist/lib/gh-token-run.js +1246 -0
  50. package/dist/lib/gh-token-run.js.map +1 -0
  51. package/dist/lib/git-credential.d.ts +120 -0
  52. package/dist/lib/git-credential.d.ts.map +1 -0
  53. package/dist/lib/git-credential.js +204 -0
  54. package/dist/lib/git-credential.js.map +1 -0
  55. package/dist/lib/github-app-token.d.ts +288 -0
  56. package/dist/lib/github-app-token.d.ts.map +1 -0
  57. package/dist/lib/github-app-token.js +519 -0
  58. package/dist/lib/github-app-token.js.map +1 -0
  59. package/dist/lib/memory.d.ts.map +1 -1
  60. package/dist/lib/memory.js +35 -2
  61. package/dist/lib/memory.js.map +1 -1
  62. package/dist/lib/repo-guard-state-dirs.d.ts +39 -0
  63. package/dist/lib/repo-guard-state-dirs.d.ts.map +1 -0
  64. package/dist/lib/repo-guard-state-dirs.js +170 -0
  65. package/dist/lib/repo-guard-state-dirs.js.map +1 -0
  66. package/dist/standards/decision-request.md +6 -57
  67. package/dist/standards/po-communication-standard.md +0 -34
  68. package/dist/standards/report-format.md +0 -90
  69. package/dist/standards/writing-standard.md +0 -312
  70. package/package.json +3 -1
  71. package/dist/__tests__/agent-attribution.test.d.ts +0 -16
  72. package/dist/__tests__/agent-attribution.test.d.ts.map +0 -1
  73. package/dist/__tests__/agent-attribution.test.js +0 -250
  74. package/dist/__tests__/agent-attribution.test.js.map +0 -1
  75. package/dist/__tests__/agents-md-canonicalization.test.d.ts +0 -23
  76. package/dist/__tests__/agents-md-canonicalization.test.d.ts.map +0 -1
  77. package/dist/__tests__/agents-md-canonicalization.test.js +0 -319
  78. package/dist/__tests__/agents-md-canonicalization.test.js.map +0 -1
  79. package/dist/__tests__/behavioral-compliance.test.d.ts +0 -8
  80. package/dist/__tests__/behavioral-compliance.test.d.ts.map +0 -1
  81. package/dist/__tests__/behavioral-compliance.test.js +0 -226
  82. package/dist/__tests__/behavioral-compliance.test.js.map +0 -1
  83. package/dist/__tests__/behavioral-extraction.test.d.ts +0 -12
  84. package/dist/__tests__/behavioral-extraction.test.d.ts.map +0 -1
  85. package/dist/__tests__/behavioral-extraction.test.js +0 -330
  86. package/dist/__tests__/behavioral-extraction.test.js.map +0 -1
  87. package/dist/__tests__/behavioral-git-read.test.d.ts +0 -21
  88. package/dist/__tests__/behavioral-git-read.test.d.ts.map +0 -1
  89. package/dist/__tests__/behavioral-git-read.test.js +0 -955
  90. package/dist/__tests__/behavioral-git-read.test.js.map +0 -1
  91. package/dist/__tests__/behavioral-injection.test.d.ts +0 -13
  92. package/dist/__tests__/behavioral-injection.test.d.ts.map +0 -1
  93. package/dist/__tests__/behavioral-injection.test.js +0 -384
  94. package/dist/__tests__/behavioral-injection.test.js.map +0 -1
  95. package/dist/__tests__/binary-smoke.test.d.ts +0 -12
  96. package/dist/__tests__/binary-smoke.test.d.ts.map +0 -1
  97. package/dist/__tests__/binary-smoke.test.js +0 -88
  98. package/dist/__tests__/binary-smoke.test.js.map +0 -1
  99. package/dist/__tests__/bootstrap-behavioral-contract.test.d.ts +0 -18
  100. package/dist/__tests__/bootstrap-behavioral-contract.test.d.ts.map +0 -1
  101. package/dist/__tests__/bootstrap-behavioral-contract.test.js +0 -104
  102. package/dist/__tests__/bootstrap-behavioral-contract.test.js.map +0 -1
  103. package/dist/__tests__/bundle-config.test.d.ts +0 -18
  104. package/dist/__tests__/bundle-config.test.d.ts.map +0 -1
  105. package/dist/__tests__/bundle-config.test.js +0 -123
  106. package/dist/__tests__/bundle-config.test.js.map +0 -1
  107. package/dist/__tests__/catalog-interaction.test.d.ts +0 -25
  108. package/dist/__tests__/catalog-interaction.test.d.ts.map +0 -1
  109. package/dist/__tests__/catalog-interaction.test.js +0 -269
  110. package/dist/__tests__/catalog-interaction.test.js.map +0 -1
  111. package/dist/__tests__/catalog-named-memories.test.d.ts +0 -2
  112. package/dist/__tests__/catalog-named-memories.test.d.ts.map +0 -1
  113. package/dist/__tests__/catalog-named-memories.test.js +0 -204
  114. package/dist/__tests__/catalog-named-memories.test.js.map +0 -1
  115. package/dist/__tests__/catalog-origin-main.test.d.ts +0 -15
  116. package/dist/__tests__/catalog-origin-main.test.d.ts.map +0 -1
  117. package/dist/__tests__/catalog-origin-main.test.js +0 -305
  118. package/dist/__tests__/catalog-origin-main.test.js.map +0 -1
  119. package/dist/__tests__/catalog.test.d.ts +0 -2
  120. package/dist/__tests__/catalog.test.d.ts.map +0 -1
  121. package/dist/__tests__/catalog.test.js +0 -131
  122. package/dist/__tests__/catalog.test.js.map +0 -1
  123. package/dist/__tests__/claude-local-sanitizer.test.d.ts +0 -24
  124. package/dist/__tests__/claude-local-sanitizer.test.d.ts.map +0 -1
  125. package/dist/__tests__/claude-local-sanitizer.test.js +0 -906
  126. package/dist/__tests__/claude-local-sanitizer.test.js.map +0 -1
  127. package/dist/__tests__/claude-md-compose.test.d.ts +0 -17
  128. package/dist/__tests__/claude-md-compose.test.d.ts.map +0 -1
  129. package/dist/__tests__/claude-md-compose.test.js +0 -119
  130. package/dist/__tests__/claude-md-compose.test.js.map +0 -1
  131. package/dist/__tests__/claude-sync.test.d.ts +0 -2
  132. package/dist/__tests__/claude-sync.test.d.ts.map +0 -1
  133. package/dist/__tests__/claude-sync.test.js +0 -571
  134. package/dist/__tests__/claude-sync.test.js.map +0 -1
  135. package/dist/__tests__/cli-build-integration.test.d.ts +0 -2
  136. package/dist/__tests__/cli-build-integration.test.d.ts.map +0 -1
  137. package/dist/__tests__/cli-build-integration.test.js +0 -64
  138. package/dist/__tests__/cli-build-integration.test.js.map +0 -1
  139. package/dist/__tests__/cli-build.test.d.ts +0 -2
  140. package/dist/__tests__/cli-build.test.d.ts.map +0 -1
  141. package/dist/__tests__/cli-build.test.js +0 -640
  142. package/dist/__tests__/cli-build.test.js.map +0 -1
  143. package/dist/__tests__/codex-agent-gate.test.d.ts +0 -2
  144. package/dist/__tests__/codex-agent-gate.test.d.ts.map +0 -1
  145. package/dist/__tests__/codex-agent-gate.test.js +0 -480
  146. package/dist/__tests__/codex-agent-gate.test.js.map +0 -1
  147. package/dist/__tests__/codex-deploy-config.test.d.ts +0 -2
  148. package/dist/__tests__/codex-deploy-config.test.d.ts.map +0 -1
  149. package/dist/__tests__/codex-deploy-config.test.js +0 -1230
  150. package/dist/__tests__/codex-deploy-config.test.js.map +0 -1
  151. package/dist/__tests__/codex-trust-keys.test.d.ts +0 -2
  152. package/dist/__tests__/codex-trust-keys.test.d.ts.map +0 -1
  153. package/dist/__tests__/codex-trust-keys.test.js +0 -731
  154. package/dist/__tests__/codex-trust-keys.test.js.map +0 -1
  155. package/dist/__tests__/codex-write-race.test.d.ts +0 -2
  156. package/dist/__tests__/codex-write-race.test.d.ts.map +0 -1
  157. package/dist/__tests__/codex-write-race.test.js +0 -2253
  158. package/dist/__tests__/codex-write-race.test.js.map +0 -1
  159. package/dist/__tests__/completion-rows-discriminate.test.d.ts +0 -20
  160. package/dist/__tests__/completion-rows-discriminate.test.d.ts.map +0 -1
  161. package/dist/__tests__/completion-rows-discriminate.test.js +0 -481
  162. package/dist/__tests__/completion-rows-discriminate.test.js.map +0 -1
  163. package/dist/__tests__/config-command.test.d.ts +0 -9
  164. package/dist/__tests__/config-command.test.d.ts.map +0 -1
  165. package/dist/__tests__/config-command.test.js +0 -75
  166. package/dist/__tests__/config-command.test.js.map +0 -1
  167. package/dist/__tests__/config-fidelity-archived-symlinks.test.d.ts +0 -2
  168. package/dist/__tests__/config-fidelity-archived-symlinks.test.d.ts.map +0 -1
  169. package/dist/__tests__/config-fidelity-archived-symlinks.test.js +0 -127
  170. package/dist/__tests__/config-fidelity-archived-symlinks.test.js.map +0 -1
  171. package/dist/__tests__/config-fidelity-display.test.d.ts +0 -2
  172. package/dist/__tests__/config-fidelity-display.test.d.ts.map +0 -1
  173. package/dist/__tests__/config-fidelity-display.test.js +0 -77
  174. package/dist/__tests__/config-fidelity-display.test.js.map +0 -1
  175. package/dist/__tests__/config-fidelity-unreadable-fixture.d.ts +0 -32
  176. package/dist/__tests__/config-fidelity-unreadable-fixture.d.ts.map +0 -1
  177. package/dist/__tests__/config-fidelity-unreadable-fixture.js +0 -37
  178. package/dist/__tests__/config-fidelity-unreadable-fixture.js.map +0 -1
  179. package/dist/__tests__/config-fidelity.test.d.ts +0 -16
  180. package/dist/__tests__/config-fidelity.test.d.ts.map +0 -1
  181. package/dist/__tests__/config-fidelity.test.js +0 -2679
  182. package/dist/__tests__/config-fidelity.test.js.map +0 -1
  183. package/dist/__tests__/config-generation-gate.test.d.ts +0 -46
  184. package/dist/__tests__/config-generation-gate.test.d.ts.map +0 -1
  185. package/dist/__tests__/config-generation-gate.test.js +0 -435
  186. package/dist/__tests__/config-generation-gate.test.js.map +0 -1
  187. package/dist/__tests__/config-generation.test.d.ts +0 -7
  188. package/dist/__tests__/config-generation.test.d.ts.map +0 -1
  189. package/dist/__tests__/config-generation.test.js +0 -141
  190. package/dist/__tests__/config-generation.test.js.map +0 -1
  191. package/dist/__tests__/config-sync.test.d.ts +0 -10
  192. package/dist/__tests__/config-sync.test.d.ts.map +0 -1
  193. package/dist/__tests__/config-sync.test.js +0 -268
  194. package/dist/__tests__/config-sync.test.js.map +0 -1
  195. package/dist/__tests__/coordination-401-production-wiring.test.d.ts +0 -19
  196. package/dist/__tests__/coordination-401-production-wiring.test.d.ts.map +0 -1
  197. package/dist/__tests__/coordination-401-production-wiring.test.js +0 -286
  198. package/dist/__tests__/coordination-401-production-wiring.test.js.map +0 -1
  199. package/dist/__tests__/coordination-401-recovery.test.d.ts +0 -22
  200. package/dist/__tests__/coordination-401-recovery.test.d.ts.map +0 -1
  201. package/dist/__tests__/coordination-401-recovery.test.js +0 -601
  202. package/dist/__tests__/coordination-401-recovery.test.js.map +0 -1
  203. package/dist/__tests__/coordination-brief-pin.test.d.ts +0 -20
  204. package/dist/__tests__/coordination-brief-pin.test.d.ts.map +0 -1
  205. package/dist/__tests__/coordination-brief-pin.test.js +0 -66
  206. package/dist/__tests__/coordination-brief-pin.test.js.map +0 -1
  207. package/dist/__tests__/coordination-brief.test.d.ts +0 -9
  208. package/dist/__tests__/coordination-brief.test.d.ts.map +0 -1
  209. package/dist/__tests__/coordination-brief.test.js +0 -290
  210. package/dist/__tests__/coordination-brief.test.js.map +0 -1
  211. package/dist/__tests__/coordination-client.test.d.ts +0 -9
  212. package/dist/__tests__/coordination-client.test.d.ts.map +0 -1
  213. package/dist/__tests__/coordination-client.test.js +0 -517
  214. package/dist/__tests__/coordination-client.test.js.map +0 -1
  215. package/dist/__tests__/coordination-command.test.d.ts +0 -9
  216. package/dist/__tests__/coordination-command.test.d.ts.map +0 -1
  217. package/dist/__tests__/coordination-command.test.js +0 -1082
  218. package/dist/__tests__/coordination-command.test.js.map +0 -1
  219. package/dist/__tests__/coordination-credential-endpoint.test.d.ts +0 -24
  220. package/dist/__tests__/coordination-credential-endpoint.test.d.ts.map +0 -1
  221. package/dist/__tests__/coordination-credential-endpoint.test.js +0 -1292
  222. package/dist/__tests__/coordination-credential-endpoint.test.js.map +0 -1
  223. package/dist/__tests__/coordination-expected-team.test.d.ts +0 -19
  224. package/dist/__tests__/coordination-expected-team.test.d.ts.map +0 -1
  225. package/dist/__tests__/coordination-expected-team.test.js +0 -423
  226. package/dist/__tests__/coordination-expected-team.test.js.map +0 -1
  227. package/dist/__tests__/coordination-fallback.test.d.ts +0 -9
  228. package/dist/__tests__/coordination-fallback.test.d.ts.map +0 -1
  229. package/dist/__tests__/coordination-fallback.test.js +0 -192
  230. package/dist/__tests__/coordination-fallback.test.js.map +0 -1
  231. package/dist/__tests__/coordination-file-guards.test.d.ts +0 -29
  232. package/dist/__tests__/coordination-file-guards.test.d.ts.map +0 -1
  233. package/dist/__tests__/coordination-file-guards.test.js +0 -380
  234. package/dist/__tests__/coordination-file-guards.test.js.map +0 -1
  235. package/dist/__tests__/coordination-history.test.d.ts +0 -8
  236. package/dist/__tests__/coordination-history.test.d.ts.map +0 -1
  237. package/dist/__tests__/coordination-history.test.js +0 -447
  238. package/dist/__tests__/coordination-history.test.js.map +0 -1
  239. package/dist/__tests__/coordination-memory.test.d.ts +0 -14
  240. package/dist/__tests__/coordination-memory.test.d.ts.map +0 -1
  241. package/dist/__tests__/coordination-memory.test.js +0 -401
  242. package/dist/__tests__/coordination-memory.test.js.map +0 -1
  243. package/dist/__tests__/coordination-mode.test.d.ts +0 -13
  244. package/dist/__tests__/coordination-mode.test.d.ts.map +0 -1
  245. package/dist/__tests__/coordination-mode.test.js +0 -180
  246. package/dist/__tests__/coordination-mode.test.js.map +0 -1
  247. package/dist/__tests__/coordination-plain-shell-commands.test.d.ts +0 -22
  248. package/dist/__tests__/coordination-plain-shell-commands.test.d.ts.map +0 -1
  249. package/dist/__tests__/coordination-plain-shell-commands.test.js +0 -1875
  250. package/dist/__tests__/coordination-plain-shell-commands.test.js.map +0 -1
  251. package/dist/__tests__/coordination-provision.test.d.ts +0 -12
  252. package/dist/__tests__/coordination-provision.test.d.ts.map +0 -1
  253. package/dist/__tests__/coordination-provision.test.js +0 -103
  254. package/dist/__tests__/coordination-provision.test.js.map +0 -1
  255. package/dist/__tests__/coordination-render.test.d.ts +0 -9
  256. package/dist/__tests__/coordination-render.test.d.ts.map +0 -1
  257. package/dist/__tests__/coordination-render.test.js +0 -335
  258. package/dist/__tests__/coordination-render.test.js.map +0 -1
  259. package/dist/__tests__/coordination-setup.test.d.ts +0 -6
  260. package/dist/__tests__/coordination-setup.test.d.ts.map +0 -1
  261. package/dist/__tests__/coordination-setup.test.js +0 -448
  262. package/dist/__tests__/coordination-setup.test.js.map +0 -1
  263. package/dist/__tests__/coordination-status-plain-shell.test.d.ts +0 -19
  264. package/dist/__tests__/coordination-status-plain-shell.test.d.ts.map +0 -1
  265. package/dist/__tests__/coordination-status-plain-shell.test.js +0 -332
  266. package/dist/__tests__/coordination-status-plain-shell.test.js.map +0 -1
  267. package/dist/__tests__/coordination-status-registration.test.d.ts +0 -16
  268. package/dist/__tests__/coordination-status-registration.test.d.ts.map +0 -1
  269. package/dist/__tests__/coordination-status-registration.test.js +0 -480
  270. package/dist/__tests__/coordination-status-registration.test.js.map +0 -1
  271. package/dist/__tests__/coordination-token-multitenant.test.d.ts +0 -11
  272. package/dist/__tests__/coordination-token-multitenant.test.d.ts.map +0 -1
  273. package/dist/__tests__/coordination-token-multitenant.test.js +0 -106
  274. package/dist/__tests__/coordination-token-multitenant.test.js.map +0 -1
  275. package/dist/__tests__/coordination-token.test.d.ts +0 -11
  276. package/dist/__tests__/coordination-token.test.d.ts.map +0 -1
  277. package/dist/__tests__/coordination-token.test.js +0 -201
  278. package/dist/__tests__/coordination-token.test.js.map +0 -1
  279. package/dist/__tests__/coordination-wiring.test.d.ts +0 -11
  280. package/dist/__tests__/coordination-wiring.test.d.ts.map +0 -1
  281. package/dist/__tests__/coordination-wiring.test.js +0 -43
  282. package/dist/__tests__/coordination-wiring.test.js.map +0 -1
  283. package/dist/__tests__/creation-pr-class-check.test.d.ts +0 -17
  284. package/dist/__tests__/creation-pr-class-check.test.d.ts.map +0 -1
  285. package/dist/__tests__/creation-pr-class-check.test.js +0 -346
  286. package/dist/__tests__/creation-pr-class-check.test.js.map +0 -1
  287. package/dist/__tests__/creation-step6a-push-check.test.d.ts +0 -15
  288. package/dist/__tests__/creation-step6a-push-check.test.d.ts.map +0 -1
  289. package/dist/__tests__/creation-step6a-push-check.test.js +0 -150
  290. package/dist/__tests__/creation-step6a-push-check.test.js.map +0 -1
  291. package/dist/__tests__/decision-check.test.d.ts +0 -2
  292. package/dist/__tests__/decision-check.test.d.ts.map +0 -1
  293. package/dist/__tests__/decision-check.test.js +0 -105
  294. package/dist/__tests__/decision-check.test.js.map +0 -1
  295. package/dist/__tests__/digest-fail-closed.test.d.ts +0 -16
  296. package/dist/__tests__/digest-fail-closed.test.d.ts.map +0 -1
  297. package/dist/__tests__/digest-fail-closed.test.js +0 -248
  298. package/dist/__tests__/digest-fail-closed.test.js.map +0 -1
  299. package/dist/__tests__/digest-team-omission.test.d.ts +0 -15
  300. package/dist/__tests__/digest-team-omission.test.d.ts.map +0 -1
  301. package/dist/__tests__/digest-team-omission.test.js +0 -247
  302. package/dist/__tests__/digest-team-omission.test.js.map +0 -1
  303. package/dist/__tests__/doctor-config-fidelity.test.d.ts +0 -19
  304. package/dist/__tests__/doctor-config-fidelity.test.d.ts.map +0 -1
  305. package/dist/__tests__/doctor-config-fidelity.test.js +0 -324
  306. package/dist/__tests__/doctor-config-fidelity.test.js.map +0 -1
  307. package/dist/__tests__/doctor-framework-version.test.d.ts +0 -2
  308. package/dist/__tests__/doctor-framework-version.test.d.ts.map +0 -1
  309. package/dist/__tests__/doctor-framework-version.test.js +0 -146
  310. package/dist/__tests__/doctor-framework-version.test.js.map +0 -1
  311. package/dist/__tests__/doctor-worktree-path.test.d.ts +0 -17
  312. package/dist/__tests__/doctor-worktree-path.test.d.ts.map +0 -1
  313. package/dist/__tests__/doctor-worktree-path.test.js +0 -158
  314. package/dist/__tests__/doctor-worktree-path.test.js.map +0 -1
  315. package/dist/__tests__/doctor.test.d.ts +0 -20
  316. package/dist/__tests__/doctor.test.d.ts.map +0 -1
  317. package/dist/__tests__/doctor.test.js +0 -849
  318. package/dist/__tests__/doctor.test.js.map +0 -1
  319. package/dist/__tests__/event-shipper.test.d.ts +0 -16
  320. package/dist/__tests__/event-shipper.test.d.ts.map +0 -1
  321. package/dist/__tests__/event-shipper.test.js +0 -287
  322. package/dist/__tests__/event-shipper.test.js.map +0 -1
  323. package/dist/__tests__/fleet-data.test.d.ts +0 -2
  324. package/dist/__tests__/fleet-data.test.d.ts.map +0 -1
  325. package/dist/__tests__/fleet-data.test.js +0 -501
  326. package/dist/__tests__/fleet-data.test.js.map +0 -1
  327. package/dist/__tests__/fleet-devpod.test.d.ts +0 -12
  328. package/dist/__tests__/fleet-devpod.test.d.ts.map +0 -1
  329. package/dist/__tests__/fleet-devpod.test.js +0 -260
  330. package/dist/__tests__/fleet-devpod.test.js.map +0 -1
  331. package/dist/__tests__/fleet-tmux.test.d.ts +0 -2
  332. package/dist/__tests__/fleet-tmux.test.d.ts.map +0 -1
  333. package/dist/__tests__/fleet-tmux.test.js +0 -289
  334. package/dist/__tests__/fleet-tmux.test.js.map +0 -1
  335. package/dist/__tests__/fleet.test.d.ts +0 -16
  336. package/dist/__tests__/fleet.test.d.ts.map +0 -1
  337. package/dist/__tests__/fleet.test.js +0 -75
  338. package/dist/__tests__/fleet.test.js.map +0 -1
  339. package/dist/__tests__/generate-claude.test.d.ts +0 -18
  340. package/dist/__tests__/generate-claude.test.d.ts.map +0 -1
  341. package/dist/__tests__/generate-claude.test.js +0 -1015
  342. package/dist/__tests__/generate-claude.test.js.map +0 -1
  343. package/dist/__tests__/gh-remote.test.d.ts +0 -2
  344. package/dist/__tests__/gh-remote.test.d.ts.map +0 -1
  345. package/dist/__tests__/gh-remote.test.js +0 -136
  346. package/dist/__tests__/gh-remote.test.js.map +0 -1
  347. package/dist/__tests__/git-env.test.d.ts +0 -14
  348. package/dist/__tests__/git-env.test.d.ts.map +0 -1
  349. package/dist/__tests__/git-env.test.js +0 -131
  350. package/dist/__tests__/git-env.test.js.map +0 -1
  351. package/dist/__tests__/git-identity-isolation.test.d.ts +0 -33
  352. package/dist/__tests__/git-identity-isolation.test.d.ts.map +0 -1
  353. package/dist/__tests__/git-identity-isolation.test.js +0 -626
  354. package/dist/__tests__/git-identity-isolation.test.js.map +0 -1
  355. package/dist/__tests__/harness-extract.test.d.ts +0 -19
  356. package/dist/__tests__/harness-extract.test.d.ts.map +0 -1
  357. package/dist/__tests__/harness-extract.test.js +0 -566
  358. package/dist/__tests__/harness-extract.test.js.map +0 -1
  359. package/dist/__tests__/harness-wiring.test.d.ts +0 -16
  360. package/dist/__tests__/harness-wiring.test.d.ts.map +0 -1
  361. package/dist/__tests__/harness-wiring.test.js +0 -469
  362. package/dist/__tests__/harness-wiring.test.js.map +0 -1
  363. package/dist/__tests__/hook-completeness.test.d.ts +0 -13
  364. package/dist/__tests__/hook-completeness.test.d.ts.map +0 -1
  365. package/dist/__tests__/hook-completeness.test.js +0 -238
  366. package/dist/__tests__/hook-completeness.test.js.map +0 -1
  367. package/dist/__tests__/hook-heal.test.d.ts +0 -8
  368. package/dist/__tests__/hook-heal.test.d.ts.map +0 -1
  369. package/dist/__tests__/hook-heal.test.js +0 -156
  370. package/dist/__tests__/hook-heal.test.js.map +0 -1
  371. package/dist/__tests__/human-turn-classifier.test.d.ts +0 -17
  372. package/dist/__tests__/human-turn-classifier.test.d.ts.map +0 -1
  373. package/dist/__tests__/human-turn-classifier.test.js +0 -311
  374. package/dist/__tests__/human-turn-classifier.test.js.map +0 -1
  375. package/dist/__tests__/init-coordination-url.test.d.ts +0 -11
  376. package/dist/__tests__/init-coordination-url.test.d.ts.map +0 -1
  377. package/dist/__tests__/init-coordination-url.test.js +0 -217
  378. package/dist/__tests__/init-coordination-url.test.js.map +0 -1
  379. package/dist/__tests__/isolation-probe.test.d.ts +0 -15
  380. package/dist/__tests__/isolation-probe.test.d.ts.map +0 -1
  381. package/dist/__tests__/isolation-probe.test.js +0 -611
  382. package/dist/__tests__/isolation-probe.test.js.map +0 -1
  383. package/dist/__tests__/leader-lock.test.d.ts +0 -12
  384. package/dist/__tests__/leader-lock.test.d.ts.map +0 -1
  385. package/dist/__tests__/leader-lock.test.js +0 -293
  386. package/dist/__tests__/leader-lock.test.js.map +0 -1
  387. package/dist/__tests__/memory-archive-checks.test.d.ts +0 -22
  388. package/dist/__tests__/memory-archive-checks.test.d.ts.map +0 -1
  389. package/dist/__tests__/memory-archive-checks.test.js +0 -748
  390. package/dist/__tests__/memory-archive-checks.test.js.map +0 -1
  391. package/dist/__tests__/memory-archive-prep.test.d.ts +0 -8
  392. package/dist/__tests__/memory-archive-prep.test.d.ts.map +0 -1
  393. package/dist/__tests__/memory-archive-prep.test.js +0 -524
  394. package/dist/__tests__/memory-archive-prep.test.js.map +0 -1
  395. package/dist/__tests__/memory-autocreate.test.d.ts +0 -10
  396. package/dist/__tests__/memory-autocreate.test.d.ts.map +0 -1
  397. package/dist/__tests__/memory-autocreate.test.js +0 -709
  398. package/dist/__tests__/memory-autocreate.test.js.map +0 -1
  399. package/dist/__tests__/memory-log-result.test.d.ts +0 -13
  400. package/dist/__tests__/memory-log-result.test.d.ts.map +0 -1
  401. package/dist/__tests__/memory-log-result.test.js +0 -149
  402. package/dist/__tests__/memory-log-result.test.js.map +0 -1
  403. package/dist/__tests__/memory-named-exists.test.d.ts +0 -16
  404. package/dist/__tests__/memory-named-exists.test.d.ts.map +0 -1
  405. package/dist/__tests__/memory-named-exists.test.js +0 -288
  406. package/dist/__tests__/memory-named-exists.test.js.map +0 -1
  407. package/dist/__tests__/message-bus.test.d.ts +0 -10
  408. package/dist/__tests__/message-bus.test.d.ts.map +0 -1
  409. package/dist/__tests__/message-bus.test.js +0 -526
  410. package/dist/__tests__/message-bus.test.js.map +0 -1
  411. package/dist/__tests__/monitor.test.d.ts +0 -6
  412. package/dist/__tests__/monitor.test.d.ts.map +0 -1
  413. package/dist/__tests__/monitor.test.js +0 -458
  414. package/dist/__tests__/monitor.test.js.map +0 -1
  415. package/dist/__tests__/mx-agent-cli-pin-validation.test.d.ts +0 -2
  416. package/dist/__tests__/mx-agent-cli-pin-validation.test.d.ts.map +0 -1
  417. package/dist/__tests__/mx-agent-cli-pin-validation.test.js +0 -232
  418. package/dist/__tests__/mx-agent-cli-pin-validation.test.js.map +0 -1
  419. package/dist/__tests__/mx-agent-cli-version-pin.test.d.ts +0 -2
  420. package/dist/__tests__/mx-agent-cli-version-pin.test.d.ts.map +0 -1
  421. package/dist/__tests__/mx-agent-cli-version-pin.test.js +0 -236
  422. package/dist/__tests__/mx-agent-cli-version-pin.test.js.map +0 -1
  423. package/dist/__tests__/new-project-first-team.test.d.ts +0 -15
  424. package/dist/__tests__/new-project-first-team.test.d.ts.map +0 -1
  425. package/dist/__tests__/new-project-first-team.test.js +0 -444
  426. package/dist/__tests__/new-project-first-team.test.js.map +0 -1
  427. package/dist/__tests__/otel-env.test.d.ts +0 -2
  428. package/dist/__tests__/otel-env.test.d.ts.map +0 -1
  429. package/dist/__tests__/otel-env.test.js +0 -127
  430. package/dist/__tests__/otel-env.test.js.map +0 -1
  431. package/dist/__tests__/pager-fail-closed.test.d.ts +0 -19
  432. package/dist/__tests__/pager-fail-closed.test.d.ts.map +0 -1
  433. package/dist/__tests__/pager-fail-closed.test.js +0 -229
  434. package/dist/__tests__/pager-fail-closed.test.js.map +0 -1
  435. package/dist/__tests__/pr-set-body.test.d.ts +0 -29
  436. package/dist/__tests__/pr-set-body.test.d.ts.map +0 -1
  437. package/dist/__tests__/pr-set-body.test.js +0 -314
  438. package/dist/__tests__/pr-set-body.test.js.map +0 -1
  439. package/dist/__tests__/prior-sync-failure.test.d.ts +0 -2
  440. package/dist/__tests__/prior-sync-failure.test.d.ts.map +0 -1
  441. package/dist/__tests__/prior-sync-failure.test.js +0 -81
  442. package/dist/__tests__/prior-sync-failure.test.js.map +0 -1
  443. package/dist/__tests__/project-config.test.d.ts +0 -2
  444. package/dist/__tests__/project-config.test.d.ts.map +0 -1
  445. package/dist/__tests__/project-config.test.js +0 -458
  446. package/dist/__tests__/project-config.test.js.map +0 -1
  447. package/dist/__tests__/provision-behavioral-contract.test.d.ts +0 -13
  448. package/dist/__tests__/provision-behavioral-contract.test.d.ts.map +0 -1
  449. package/dist/__tests__/provision-behavioral-contract.test.js +0 -548
  450. package/dist/__tests__/provision-behavioral-contract.test.js.map +0 -1
  451. package/dist/__tests__/provision-catalog-precondition.test.d.ts +0 -26
  452. package/dist/__tests__/provision-catalog-precondition.test.d.ts.map +0 -1
  453. package/dist/__tests__/provision-catalog-precondition.test.js +0 -622
  454. package/dist/__tests__/provision-catalog-precondition.test.js.map +0 -1
  455. package/dist/__tests__/provision-completion-rows.test.d.ts +0 -17
  456. package/dist/__tests__/provision-completion-rows.test.d.ts.map +0 -1
  457. package/dist/__tests__/provision-completion-rows.test.js +0 -3473
  458. package/dist/__tests__/provision-completion-rows.test.js.map +0 -1
  459. package/dist/__tests__/provision-copy-containment.test.d.ts +0 -19
  460. package/dist/__tests__/provision-copy-containment.test.d.ts.map +0 -1
  461. package/dist/__tests__/provision-copy-containment.test.js +0 -187
  462. package/dist/__tests__/provision-copy-containment.test.js.map +0 -1
  463. package/dist/__tests__/provision-identity-gate.test.d.ts +0 -20
  464. package/dist/__tests__/provision-identity-gate.test.d.ts.map +0 -1
  465. package/dist/__tests__/provision-identity-gate.test.js +0 -602
  466. package/dist/__tests__/provision-identity-gate.test.js.map +0 -1
  467. package/dist/__tests__/provision-resume.test.d.ts +0 -26
  468. package/dist/__tests__/provision-resume.test.d.ts.map +0 -1
  469. package/dist/__tests__/provision-resume.test.js +0 -1344
  470. package/dist/__tests__/provision-resume.test.js.map +0 -1
  471. package/dist/__tests__/provision-roleguide-anchors.test.d.ts +0 -27
  472. package/dist/__tests__/provision-roleguide-anchors.test.d.ts.map +0 -1
  473. package/dist/__tests__/provision-roleguide-anchors.test.js +0 -747
  474. package/dist/__tests__/provision-roleguide-anchors.test.js.map +0 -1
  475. package/dist/__tests__/provision-row12-stub-server.test.d.ts +0 -21
  476. package/dist/__tests__/provision-row12-stub-server.test.d.ts.map +0 -1
  477. package/dist/__tests__/provision-row12-stub-server.test.js +0 -264
  478. package/dist/__tests__/provision-row12-stub-server.test.js.map +0 -1
  479. package/dist/__tests__/provision-skeleton-fill.test.d.ts +0 -16
  480. package/dist/__tests__/provision-skeleton-fill.test.d.ts.map +0 -1
  481. package/dist/__tests__/provision-skeleton-fill.test.js +0 -490
  482. package/dist/__tests__/provision-skeleton-fill.test.js.map +0 -1
  483. package/dist/__tests__/provision-step8-commit.test.d.ts +0 -40
  484. package/dist/__tests__/provision-step8-commit.test.d.ts.map +0 -1
  485. package/dist/__tests__/provision-step8-commit.test.js +0 -529
  486. package/dist/__tests__/provision-step8-commit.test.js.map +0 -1
  487. package/dist/__tests__/provision-teambuilder-flow.test.d.ts +0 -22
  488. package/dist/__tests__/provision-teambuilder-flow.test.d.ts.map +0 -1
  489. package/dist/__tests__/provision-teambuilder-flow.test.js +0 -253
  490. package/dist/__tests__/provision-teambuilder-flow.test.js.map +0 -1
  491. package/dist/__tests__/provision-write-integrity.test.d.ts +0 -18
  492. package/dist/__tests__/provision-write-integrity.test.d.ts.map +0 -1
  493. package/dist/__tests__/provision-write-integrity.test.js +0 -141
  494. package/dist/__tests__/provision-write-integrity.test.js.map +0 -1
  495. package/dist/__tests__/repo-guard-wiring.test.d.ts +0 -21
  496. package/dist/__tests__/repo-guard-wiring.test.d.ts.map +0 -1
  497. package/dist/__tests__/repo-guard-wiring.test.js +0 -638
  498. package/dist/__tests__/repo-guard-wiring.test.js.map +0 -1
  499. package/dist/__tests__/report-format.test.d.ts +0 -2
  500. package/dist/__tests__/report-format.test.d.ts.map +0 -1
  501. package/dist/__tests__/report-format.test.js +0 -219
  502. package/dist/__tests__/report-format.test.js.map +0 -1
  503. package/dist/__tests__/row15-detail-sanitizer.test.d.ts +0 -20
  504. package/dist/__tests__/row15-detail-sanitizer.test.d.ts.map +0 -1
  505. package/dist/__tests__/row15-detail-sanitizer.test.js +0 -61
  506. package/dist/__tests__/row15-detail-sanitizer.test.js.map +0 -1
  507. package/dist/__tests__/rows-9-10-zero-remotes.test.d.ts +0 -32
  508. package/dist/__tests__/rows-9-10-zero-remotes.test.d.ts.map +0 -1
  509. package/dist/__tests__/rows-9-10-zero-remotes.test.js +0 -203
  510. package/dist/__tests__/rows-9-10-zero-remotes.test.js.map +0 -1
  511. package/dist/__tests__/runtime-claude-adapter.test.d.ts +0 -2
  512. package/dist/__tests__/runtime-claude-adapter.test.d.ts.map +0 -1
  513. package/dist/__tests__/runtime-claude-adapter.test.js +0 -70
  514. package/dist/__tests__/runtime-claude-adapter.test.js.map +0 -1
  515. package/dist/__tests__/runtime-codex-adapter.test.d.ts +0 -2
  516. package/dist/__tests__/runtime-codex-adapter.test.d.ts.map +0 -1
  517. package/dist/__tests__/runtime-codex-adapter.test.js +0 -558
  518. package/dist/__tests__/runtime-codex-adapter.test.js.map +0 -1
  519. package/dist/__tests__/runtime-codex-config.test.d.ts +0 -2
  520. package/dist/__tests__/runtime-codex-config.test.d.ts.map +0 -1
  521. package/dist/__tests__/runtime-codex-config.test.js +0 -1421
  522. package/dist/__tests__/runtime-codex-config.test.js.map +0 -1
  523. package/dist/__tests__/runtime-codex-gateway-pilot.test.d.ts +0 -2
  524. package/dist/__tests__/runtime-codex-gateway-pilot.test.d.ts.map +0 -1
  525. package/dist/__tests__/runtime-codex-gateway-pilot.test.js +0 -309
  526. package/dist/__tests__/runtime-codex-gateway-pilot.test.js.map +0 -1
  527. package/dist/__tests__/runtime-codex-gateway-provider.test.d.ts +0 -2
  528. package/dist/__tests__/runtime-codex-gateway-provider.test.d.ts.map +0 -1
  529. package/dist/__tests__/runtime-codex-gateway-provider.test.js +0 -163
  530. package/dist/__tests__/runtime-codex-gateway-provider.test.js.map +0 -1
  531. package/dist/__tests__/runtime-codex-guard-proof.test.d.ts +0 -2
  532. package/dist/__tests__/runtime-codex-guard-proof.test.d.ts.map +0 -1
  533. package/dist/__tests__/runtime-codex-guard-proof.test.js +0 -822
  534. package/dist/__tests__/runtime-codex-guard-proof.test.js.map +0 -1
  535. package/dist/__tests__/runtime-codex-version-pin.test.d.ts +0 -2
  536. package/dist/__tests__/runtime-codex-version-pin.test.d.ts.map +0 -1
  537. package/dist/__tests__/runtime-codex-version-pin.test.js +0 -86
  538. package/dist/__tests__/runtime-codex-version-pin.test.js.map +0 -1
  539. package/dist/__tests__/runtime-identity.test.d.ts +0 -2
  540. package/dist/__tests__/runtime-identity.test.d.ts.map +0 -1
  541. package/dist/__tests__/runtime-identity.test.js +0 -117
  542. package/dist/__tests__/runtime-identity.test.js.map +0 -1
  543. package/dist/__tests__/runtime-resolve.test.d.ts +0 -2
  544. package/dist/__tests__/runtime-resolve.test.d.ts.map +0 -1
  545. package/dist/__tests__/runtime-resolve.test.js +0 -172
  546. package/dist/__tests__/runtime-resolve.test.js.map +0 -1
  547. package/dist/__tests__/security-posture.test.d.ts +0 -8
  548. package/dist/__tests__/security-posture.test.d.ts.map +0 -1
  549. package/dist/__tests__/security-posture.test.js +0 -82
  550. package/dist/__tests__/security-posture.test.js.map +0 -1
  551. package/dist/__tests__/session-model.test.d.ts +0 -2
  552. package/dist/__tests__/session-model.test.d.ts.map +0 -1
  553. package/dist/__tests__/session-model.test.js +0 -74
  554. package/dist/__tests__/session-model.test.js.map +0 -1
  555. package/dist/__tests__/session-pause-provisioning.test.d.ts +0 -19
  556. package/dist/__tests__/session-pause-provisioning.test.d.ts.map +0 -1
  557. package/dist/__tests__/session-pause-provisioning.test.js +0 -115
  558. package/dist/__tests__/session-pause-provisioning.test.js.map +0 -1
  559. package/dist/__tests__/session-reclamation.test.d.ts +0 -15
  560. package/dist/__tests__/session-reclamation.test.d.ts.map +0 -1
  561. package/dist/__tests__/session-reclamation.test.js +0 -73
  562. package/dist/__tests__/session-reclamation.test.js.map +0 -1
  563. package/dist/__tests__/session-record-disclosure.test.d.ts +0 -24
  564. package/dist/__tests__/session-record-disclosure.test.d.ts.map +0 -1
  565. package/dist/__tests__/session-record-disclosure.test.js +0 -494
  566. package/dist/__tests__/session-record-disclosure.test.js.map +0 -1
  567. package/dist/__tests__/session-status.test.d.ts +0 -11
  568. package/dist/__tests__/session-status.test.d.ts.map +0 -1
  569. package/dist/__tests__/session-status.test.js +0 -76
  570. package/dist/__tests__/session-status.test.js.map +0 -1
  571. package/dist/__tests__/session.test.d.ts +0 -15
  572. package/dist/__tests__/session.test.d.ts.map +0 -1
  573. package/dist/__tests__/session.test.js +0 -366
  574. package/dist/__tests__/session.test.js.map +0 -1
  575. package/dist/__tests__/shim-deploy-safety.test.d.ts +0 -24
  576. package/dist/__tests__/shim-deploy-safety.test.d.ts.map +0 -1
  577. package/dist/__tests__/shim-deploy-safety.test.js +0 -174
  578. package/dist/__tests__/shim-deploy-safety.test.js.map +0 -1
  579. package/dist/__tests__/slug-validation.test.d.ts +0 -13
  580. package/dist/__tests__/slug-validation.test.d.ts.map +0 -1
  581. package/dist/__tests__/slug-validation.test.js +0 -202
  582. package/dist/__tests__/slug-validation.test.js.map +0 -1
  583. package/dist/__tests__/standards-injection.test.d.ts +0 -2
  584. package/dist/__tests__/standards-injection.test.d.ts.map +0 -1
  585. package/dist/__tests__/standards-injection.test.js +0 -179
  586. package/dist/__tests__/standards-injection.test.js.map +0 -1
  587. package/dist/__tests__/start-config-conflict.test.d.ts +0 -17
  588. package/dist/__tests__/start-config-conflict.test.d.ts.map +0 -1
  589. package/dist/__tests__/start-config-conflict.test.js +0 -101
  590. package/dist/__tests__/start-config-conflict.test.js.map +0 -1
  591. package/dist/__tests__/start-interactive-role.test.d.ts +0 -22
  592. package/dist/__tests__/start-interactive-role.test.d.ts.map +0 -1
  593. package/dist/__tests__/start-interactive-role.test.js +0 -204
  594. package/dist/__tests__/start-interactive-role.test.js.map +0 -1
  595. package/dist/__tests__/start-rebase-never-ran.test.d.ts +0 -25
  596. package/dist/__tests__/start-rebase-never-ran.test.d.ts.map +0 -1
  597. package/dist/__tests__/start-rebase-never-ran.test.js +0 -227
  598. package/dist/__tests__/start-rebase-never-ran.test.js.map +0 -1
  599. package/dist/__tests__/start-report-generation-capture.test.d.ts +0 -17
  600. package/dist/__tests__/start-report-generation-capture.test.d.ts.map +0 -1
  601. package/dist/__tests__/start-report-generation-capture.test.js +0 -127
  602. package/dist/__tests__/start-report-generation-capture.test.js.map +0 -1
  603. package/dist/__tests__/start-report-integration.test.d.ts +0 -12
  604. package/dist/__tests__/start-report-integration.test.d.ts.map +0 -1
  605. package/dist/__tests__/start-report-integration.test.js +0 -138
  606. package/dist/__tests__/start-report-integration.test.js.map +0 -1
  607. package/dist/__tests__/start-runtime-wiring.test.d.ts +0 -31
  608. package/dist/__tests__/start-runtime-wiring.test.d.ts.map +0 -1
  609. package/dist/__tests__/start-runtime-wiring.test.js +0 -735
  610. package/dist/__tests__/start-runtime-wiring.test.js.map +0 -1
  611. package/dist/__tests__/start-stash.test.d.ts +0 -2
  612. package/dist/__tests__/start-stash.test.d.ts.map +0 -1
  613. package/dist/__tests__/start-stash.test.js +0 -131
  614. package/dist/__tests__/start-stash.test.js.map +0 -1
  615. package/dist/__tests__/start-sync-hardstop.test.d.ts +0 -15
  616. package/dist/__tests__/start-sync-hardstop.test.d.ts.map +0 -1
  617. package/dist/__tests__/start-sync-hardstop.test.js +0 -280
  618. package/dist/__tests__/start-sync-hardstop.test.js.map +0 -1
  619. package/dist/__tests__/start-team-identity.test.d.ts +0 -25
  620. package/dist/__tests__/start-team-identity.test.d.ts.map +0 -1
  621. package/dist/__tests__/start-team-identity.test.js +0 -307
  622. package/dist/__tests__/start-team-identity.test.js.map +0 -1
  623. package/dist/__tests__/startup-health-render.test.d.ts +0 -11
  624. package/dist/__tests__/startup-health-render.test.d.ts.map +0 -1
  625. package/dist/__tests__/startup-health-render.test.js +0 -60
  626. package/dist/__tests__/startup-health-render.test.js.map +0 -1
  627. package/dist/__tests__/startup-policy.test.d.ts +0 -2
  628. package/dist/__tests__/startup-policy.test.d.ts.map +0 -1
  629. package/dist/__tests__/startup-policy.test.js +0 -27
  630. package/dist/__tests__/startup-policy.test.js.map +0 -1
  631. package/dist/__tests__/startup-report.test.d.ts +0 -13
  632. package/dist/__tests__/startup-report.test.d.ts.map +0 -1
  633. package/dist/__tests__/startup-report.test.js +0 -278
  634. package/dist/__tests__/startup-report.test.js.map +0 -1
  635. package/dist/__tests__/startup-shipper.test.d.ts +0 -13
  636. package/dist/__tests__/startup-shipper.test.d.ts.map +0 -1
  637. package/dist/__tests__/startup-shipper.test.js +0 -149
  638. package/dist/__tests__/startup-shipper.test.js.map +0 -1
  639. package/dist/__tests__/stream-input-controller.test.d.ts +0 -10
  640. package/dist/__tests__/stream-input-controller.test.d.ts.map +0 -1
  641. package/dist/__tests__/stream-input-controller.test.js +0 -167
  642. package/dist/__tests__/stream-input-controller.test.js.map +0 -1
  643. package/dist/__tests__/team-memory-commands.test.d.ts +0 -11
  644. package/dist/__tests__/team-memory-commands.test.d.ts.map +0 -1
  645. package/dist/__tests__/team-memory-commands.test.js +0 -240
  646. package/dist/__tests__/team-memory-commands.test.js.map +0 -1
  647. package/dist/__tests__/team-name-propagation.test.d.ts +0 -13
  648. package/dist/__tests__/team-name-propagation.test.d.ts.map +0 -1
  649. package/dist/__tests__/team-name-propagation.test.js +0 -198
  650. package/dist/__tests__/team-name-propagation.test.js.map +0 -1
  651. package/dist/__tests__/team-token-probe.test.d.ts +0 -16
  652. package/dist/__tests__/team-token-probe.test.d.ts.map +0 -1
  653. package/dist/__tests__/team-token-probe.test.js +0 -295
  654. package/dist/__tests__/team-token-probe.test.js.map +0 -1
  655. package/dist/__tests__/template-budget.test.d.ts +0 -2
  656. package/dist/__tests__/template-budget.test.d.ts.map +0 -1
  657. package/dist/__tests__/template-budget.test.js +0 -119
  658. package/dist/__tests__/template-budget.test.js.map +0 -1
  659. package/dist/__tests__/template-sync.test.d.ts +0 -19
  660. package/dist/__tests__/template-sync.test.d.ts.map +0 -1
  661. package/dist/__tests__/template-sync.test.js +0 -480
  662. package/dist/__tests__/template-sync.test.js.map +0 -1
  663. package/dist/__tests__/test-project.test.d.ts +0 -18
  664. package/dist/__tests__/test-project.test.d.ts.map +0 -1
  665. package/dist/__tests__/test-project.test.js +0 -465
  666. package/dist/__tests__/test-project.test.js.map +0 -1
  667. package/dist/__tests__/tracked-instruction-files.test.d.ts +0 -21
  668. package/dist/__tests__/tracked-instruction-files.test.d.ts.map +0 -1
  669. package/dist/__tests__/tracked-instruction-files.test.js +0 -489
  670. package/dist/__tests__/tracked-instruction-files.test.js.map +0 -1
  671. package/dist/__tests__/unlock.test.d.ts +0 -11
  672. package/dist/__tests__/unlock.test.d.ts.map +0 -1
  673. package/dist/__tests__/unlock.test.js +0 -100
  674. package/dist/__tests__/unlock.test.js.map +0 -1
  675. package/dist/__tests__/usage-per-call-grouping.test.d.ts +0 -25
  676. package/dist/__tests__/usage-per-call-grouping.test.d.ts.map +0 -1
  677. package/dist/__tests__/usage-per-call-grouping.test.js +0 -952
  678. package/dist/__tests__/usage-per-call-grouping.test.js.map +0 -1
  679. package/dist/__tests__/usage-pricing.test.d.ts +0 -20
  680. package/dist/__tests__/usage-pricing.test.d.ts.map +0 -1
  681. package/dist/__tests__/usage-pricing.test.js +0 -176
  682. package/dist/__tests__/usage-pricing.test.js.map +0 -1
  683. package/dist/__tests__/usage-subagent-discovery.test.d.ts +0 -17
  684. package/dist/__tests__/usage-subagent-discovery.test.d.ts.map +0 -1
  685. package/dist/__tests__/usage-subagent-discovery.test.js +0 -213
  686. package/dist/__tests__/usage-subagent-discovery.test.js.map +0 -1
  687. package/dist/__tests__/verify-hooks-check-all.test.d.ts +0 -32
  688. package/dist/__tests__/verify-hooks-check-all.test.d.ts.map +0 -1
  689. package/dist/__tests__/verify-hooks-check-all.test.js +0 -563
  690. package/dist/__tests__/verify-hooks-check-all.test.js.map +0 -1
  691. package/dist/__tests__/verify-hooks-heal-log.test.d.ts +0 -11
  692. package/dist/__tests__/verify-hooks-heal-log.test.d.ts.map +0 -1
  693. package/dist/__tests__/verify-hooks-heal-log.test.js +0 -172
  694. package/dist/__tests__/verify-hooks-heal-log.test.js.map +0 -1
  695. package/dist/__tests__/worker-cap.test.d.ts +0 -14
  696. package/dist/__tests__/worker-cap.test.d.ts.map +0 -1
  697. package/dist/__tests__/worker-cap.test.js +0 -97
  698. package/dist/__tests__/worker-cap.test.js.map +0 -1
  699. package/dist/__tests__/worktree-link-repair.test.d.ts +0 -2
  700. package/dist/__tests__/worktree-link-repair.test.d.ts.map +0 -1
  701. package/dist/__tests__/worktree-link-repair.test.js +0 -471
  702. package/dist/__tests__/worktree-link-repair.test.js.map +0 -1
  703. package/dist/__tests__/worktree-sync-fixture.test.d.ts +0 -17
  704. package/dist/__tests__/worktree-sync-fixture.test.d.ts.map +0 -1
  705. package/dist/__tests__/worktree-sync-fixture.test.js +0 -519
  706. package/dist/__tests__/worktree-sync-fixture.test.js.map +0 -1
  707. package/dist/__tests__/worktree-sync-hardening.test.d.ts +0 -13
  708. package/dist/__tests__/worktree-sync-hardening.test.d.ts.map +0 -1
  709. package/dist/__tests__/worktree-sync-hardening.test.js +0 -919
  710. package/dist/__tests__/worktree-sync-hardening.test.js.map +0 -1
  711. package/dist/__tests__/worktree-sync-shell-free.test.d.ts +0 -25
  712. package/dist/__tests__/worktree-sync-shell-free.test.d.ts.map +0 -1
  713. package/dist/__tests__/worktree-sync-shell-free.test.js +0 -185
  714. package/dist/__tests__/worktree-sync-shell-free.test.js.map +0 -1
  715. package/dist/__tests__/worktree.test.d.ts +0 -2
  716. package/dist/__tests__/worktree.test.d.ts.map +0 -1
  717. package/dist/__tests__/worktree.test.js +0 -168
  718. package/dist/__tests__/worktree.test.js.map +0 -1
  719. package/dist/lib/code-context-file.test.d.ts +0 -19
  720. package/dist/lib/code-context-file.test.d.ts.map +0 -1
  721. package/dist/lib/code-context-file.test.js +0 -202
  722. package/dist/lib/code-context-file.test.js.map +0 -1
  723. package/dist/lib/harness/console/announce.test.d.ts +0 -2
  724. package/dist/lib/harness/console/announce.test.d.ts.map +0 -1
  725. package/dist/lib/harness/console/announce.test.js +0 -104
  726. package/dist/lib/harness/console/announce.test.js.map +0 -1
  727. package/dist/lib/harness/console/by-session.test.d.ts +0 -2
  728. package/dist/lib/harness/console/by-session.test.d.ts.map +0 -1
  729. package/dist/lib/harness/console/by-session.test.js +0 -86
  730. package/dist/lib/harness/console/by-session.test.js.map +0 -1
  731. package/dist/lib/harness/console/console.test.d.ts +0 -2
  732. package/dist/lib/harness/console/console.test.d.ts.map +0 -1
  733. package/dist/lib/harness/console/console.test.js +0 -269
  734. package/dist/lib/harness/console/console.test.js.map +0 -1
  735. package/dist/lib/harness/console/decision-request.test.d.ts +0 -2
  736. package/dist/lib/harness/console/decision-request.test.d.ts.map +0 -1
  737. package/dist/lib/harness/console/decision-request.test.js +0 -75
  738. package/dist/lib/harness/console/decision-request.test.js.map +0 -1
  739. package/dist/lib/harness/console/rank.test.d.ts +0 -2
  740. package/dist/lib/harness/console/rank.test.d.ts.map +0 -1
  741. package/dist/lib/harness/console/rank.test.js +0 -124
  742. package/dist/lib/harness/console/rank.test.js.map +0 -1
  743. package/dist/lib/harness/console/render.test.d.ts +0 -2
  744. package/dist/lib/harness/console/render.test.d.ts.map +0 -1
  745. package/dist/lib/harness/console/render.test.js +0 -96
  746. package/dist/lib/harness/console/render.test.js.map +0 -1
  747. package/dist/lib/harness/console/replay-cli.test.d.ts +0 -2
  748. package/dist/lib/harness/console/replay-cli.test.d.ts.map +0 -1
  749. package/dist/lib/harness/console/replay-cli.test.js +0 -96
  750. package/dist/lib/harness/console/replay-cli.test.js.map +0 -1
  751. package/dist/lib/harness/console/replay.test.d.ts +0 -2
  752. package/dist/lib/harness/console/replay.test.d.ts.map +0 -1
  753. package/dist/lib/harness/console/replay.test.js +0 -81
  754. package/dist/lib/harness/console/replay.test.js.map +0 -1
  755. package/dist/lib/harness/console/turn-reader.test.d.ts +0 -2
  756. package/dist/lib/harness/console/turn-reader.test.d.ts.map +0 -1
  757. package/dist/lib/harness/console/turn-reader.test.js +0 -108
  758. package/dist/lib/harness/console/turn-reader.test.js.map +0 -1
  759. package/dist/lib/harness/credential.test.d.ts +0 -2
  760. package/dist/lib/harness/credential.test.d.ts.map +0 -1
  761. package/dist/lib/harness/credential.test.js +0 -74
  762. package/dist/lib/harness/credential.test.js.map +0 -1
  763. package/dist/lib/harness/evaluate.test.d.ts +0 -2
  764. package/dist/lib/harness/evaluate.test.d.ts.map +0 -1
  765. package/dist/lib/harness/evaluate.test.js +0 -621
  766. package/dist/lib/harness/evaluate.test.js.map +0 -1
  767. package/dist/lib/harness/gate.test.d.ts +0 -2
  768. package/dist/lib/harness/gate.test.d.ts.map +0 -1
  769. package/dist/lib/harness/gate.test.js +0 -111
  770. package/dist/lib/harness/gate.test.js.map +0 -1
  771. package/dist/lib/harness/self-check.test.d.ts +0 -2
  772. package/dist/lib/harness/self-check.test.d.ts.map +0 -1
  773. package/dist/lib/harness/self-check.test.js +0 -43
  774. package/dist/lib/harness/self-check.test.js.map +0 -1
  775. package/dist/lib/harness/transcript.test.d.ts +0 -2
  776. package/dist/lib/harness/transcript.test.d.ts.map +0 -1
  777. package/dist/lib/harness/transcript.test.js +0 -118
  778. package/dist/lib/harness/transcript.test.js.map +0 -1
  779. package/dist/lib/projects-registry.test.d.ts +0 -2
  780. package/dist/lib/projects-registry.test.d.ts.map +0 -1
  781. package/dist/lib/projects-registry.test.js +0 -176
  782. package/dist/lib/projects-registry.test.js.map +0 -1
  783. package/dist/lib/roster.test.d.ts +0 -15
  784. package/dist/lib/roster.test.d.ts.map +0 -1
  785. package/dist/lib/roster.test.js +0 -299
  786. package/dist/lib/roster.test.js.map +0 -1
  787. package/dist/lib/vault.test.d.ts +0 -17
  788. package/dist/lib/vault.test.d.ts.map +0 -1
  789. package/dist/lib/vault.test.js +0 -169
  790. package/dist/lib/vault.test.js.map +0 -1
  791. package/dist/lib/window-view.test.d.ts +0 -2
  792. package/dist/lib/window-view.test.d.ts.map +0 -1
  793. package/dist/lib/window-view.test.js +0 -168
  794. package/dist/lib/window-view.test.js.map +0 -1
  795. package/dist/standards/fail-loud-standard.md +0 -495
  796. package/dist/standards/known-issues-standard.md +0 -380
  797. package/dist/standards/rulings.md +0 -104
@@ -1,42 +1,4 @@
1
- # Writing standard
2
-
3
- **Status:** Active. Injected into every team's `CLAUDE.local.md` on every conversation turn.
4
- **Owner:** the product owner of this repository.
5
- **Applies to:** every document, report, commit message and pull request body an agent writes.
6
-
7
- ## Why this file exists
8
-
9
- These rules ran on one person's memory until 2026-08-18. Agents learned them by being
10
- corrected during conversation. Every new agent then rediscovered them the same way, and
11
- the corrections cost a turn each.
12
-
13
- The measured case for writing them down is in this repository's own history. The four
14
- documents written after the rules were stated contain zero em dashes. The markdown written
15
- before them contains 647, and 39 uses of the five banned verbs survive today.
16
-
17
- ```sh
18
- grep -ro "—" --include=*.md docs product .mx-agent proof-of-concepts | wc -l # 647
19
- grep -rowE "arrives|carries|sits|lands|flows" --include=*.md \
20
- docs product .mx-agent proof-of-concepts | wc -l # 39
21
- grep -c "—" docs/legibility-plan.md .mx-agent/goals.md .mx-agent/lessons.md \
22
- product/mx-agent-prd.md # 0 each
23
- ```
24
-
25
- Run on 2026-08-18 at commit `817a4ef`.
26
-
27
- A rule nobody applies twice is an opinion. `product/mx-agent-prd.md:268`, "When we built a
28
- mechanism, teams followed the practice", records the pattern, and adds that teams stopped
29
- when we only wrote a rule. So this file is injected rather than filed.
30
-
31
- ---
32
-
33
- ## The rules
34
-
35
- The block below is the text injected into every conversation turn. It starts at the marker
36
- so that the injected copy states the rules and nothing else.
37
-
38
1
  <!-- behavioral-start -->
39
-
40
2
  **1. No em dashes.** Use a comma, a colon, or two sentences.
41
3
 
42
4
  **2. No metaphor. A noun must be able to do the verb.** Ask whether the subject could
@@ -105,278 +67,4 @@ one, which would make the record claim an accuracy it did not have. Leave the or
105
67
  add a dated correction beside it. A new citation written into a record follows this rule in
106
68
  full. This rule makes staleness loud rather than absent, and no check verifies that a
107
69
  citation supports its claim.
108
-
109
70
  <!-- behavioral-end -->
110
-
111
- ---
112
-
113
- ## Corrections from this repository
114
-
115
- Each pair below is a real commit on `docs/mx-agent-prd`. The rule is abstract and the
116
- correction is not, so read these first.
117
-
118
- Rule 15 applies to this document, so here is what was resolved rather than a blanket claim.
119
- Product resolved these against `origin/main` at `5d2bdb8` on 2026-09-02: the two
120
- `product/mx-agent-prd.md` citations at `:268` and `:1091`, the `:609` and `:639` pair below,
121
- `product-leader.md:323` with `product/mx-agent-prd.md:1004`, and the four
122
- `team-builder.md` and `create.ts` citations. Bootstrap resolved its own figures against
123
- `HEAD` at `49fa76d`, which is bootstrap's measurement and not product's. The
124
- `mx-agent-system/cli/src/lib/jsonl.ts` pair below names a form and no line, so nothing there
125
- resolves.
126
-
127
- ### Rule 3, possession verbs
128
-
129
- | | |
130
- |---|---|
131
- | Before | `node_modules` **carries** Linux bindings |
132
- | After | `node_modules` **holds** Linux bindings |
133
- | Commit | `817a4ef`, `.mx-agent/lessons.md` |
134
-
135
- | | |
136
- |---|---|
137
- | Before | What share of findings **carry** a re-runnable source |
138
- | After | What share of findings **state** a re-runnable source |
139
- | Commit | `452c786`, `docs/legibility-plan.md` |
140
-
141
- | | |
142
- |---|---|
143
- | Before | the half that runs on every session, and it **carries none of it** |
144
- | After | the half that runs on every session, and it **records none of that** |
145
- | Commit | `0101a4a`, `docs/outcomes-from-git.md` |
146
-
147
- | | |
148
- |---|---|
149
- | Before | SDK version tracks the build it **carries** |
150
- | After | SDK version tracks the build it **bundles** |
151
- | Commit | `a03426d`, `proof-of-concepts/poc-1b-current-sdk.md` |
152
-
153
- The replacement is never one word for all four. Each takes the verb that is literally true
154
- of that subject. A directory holds, a finding states, a capture records, a package bundles.
155
-
156
- ### Rule 3, motion verbs
157
-
158
- | | |
159
- |---|---|
160
- | Before | Review comments hold the sharpest reasoning and **sit the furthest** from the code |
161
- | After | Review comments hold the sharpest reasoning and **are the furthest** from the code |
162
- | Commit | `7849351`, `product/mx-agent-prd.md` |
163
-
164
- | | |
165
- |---|---|
166
- | Before | text planted once can **sit unused** and then steer a session weeks later |
167
- | After | text planted once can **stay unused** and then steer a session weeks later |
168
- | Commit | `7849351`, `product/mx-agent-prd.md` |
169
-
170
- | | |
171
- |---|---|
172
- | Before | the limit **sits** far below what the hardware can handle |
173
- | After | the limit **is** far below what the hardware can handle |
174
- | Commit | `99c1197`, `product/mx-agent-prd.md` |
175
-
176
- ### Rule 2, metaphor
177
-
178
- | | |
179
- |---|---|
180
- | Before | Memory is not one feature **sitting next to** the others. It **sits underneath** them. |
181
- | After | Memory is not one feature **among** the others. **The others depend on it.** |
182
- | Commit | `99c1197`, `product/mx-agent-prd.md` |
183
-
184
- | | |
185
- |---|---|
186
- | Before | an unusual rule can **carry a decision written as code** |
187
- | After | an unusual rule can **express its decision as code** |
188
- | Commit | `99c1197`, `product/mx-agent-prd.md` |
189
-
190
- | | |
191
- |---|---|
192
- | Before | Sorting them by whether they have to **sit in the path of** an action and refuse it |
193
- | After | Sorting them by whether they have to **intercept** an action and refuse it |
194
- | Commit | `7849351`, `product/mx-agent-prd.md` |
195
-
196
- The last pair shows why the rule pays. The metaphor took five words and the accurate verb
197
- took one, and the accurate verb is also the word the code uses.
198
-
199
- ### Rule 6, active voice
200
-
201
- | | |
202
- |---|---|
203
- | Before | **Issue, pull-request, and dependency content arrive unfenced.** |
204
- | After | **Nothing fences issue, pull-request, or dependency content.** |
205
- | Commit | `99c1197`, `product/mx-agent-prd.md` |
206
-
207
- | | |
208
- |---|---|
209
- | Before | so the delegation limits, the prior-art requirement, and the decision authority **arrive with every turn** |
210
- | After | so **the model reads** the delegation limits, the prior-art requirement, and the decision authority **on every turn** |
211
- | Commit | `99c1197`, `product/mx-agent-prd.md` |
212
-
213
- Both corrections replace a motion verb and name an actor at the same time. That is the
214
- usual case. A sentence that needs `arrives` is usually a sentence with no subject in it.
215
-
216
- | | |
217
- |---|---|
218
- | Before | 13 agent definitions that each **carry** their own tool limits |
219
- | After | 13 agent definitions that each **declare** their own tool limits |
220
- | Commit | `99c1197`, `product/mx-agent-prd.md` |
221
-
222
- ### Rule 5, meta-commentary
223
-
224
- | | |
225
- |---|---|
226
- | Before | None of these were silently copied in to make the dependency "work," and none were silently broken. They are recorded here as split points. |
227
- | After | They are recorded here as split points. |
228
- | Commit | `99c1197`, `COUPLINGS.md` |
229
-
230
- The deleted sentence answered an accusation nobody made. It also used scare quotes, which
231
- are rule 10 wearing punctuation.
232
-
233
- ### Rule 9, every figure states a source
234
-
235
- The strongest example is a failure rather than a correction. Transcript size was published
236
- as 138 MB because `find -exec du -cb | tail -1` returns the last batch instead of the sum.
237
- The real figure is 2.26 GB. A write count inflated fivefold because a regex counted
238
- `2>/dev/null` as a write.
239
-
240
- Both were found by re-running the command next to the number. Neither was findable from the
241
- number alone. `.mx-agent/lessons.md` L2 holds the full list.
242
-
243
- ### Rule 15, a stale line citation still resolves
244
-
245
- One edit to `product/mx-agent-prd.md` in PR #331 invalidated at least 88 `file:line`
246
- citations across at least 16 live files and all four teams. Repository-wide, at least 54
247
- files hold at least 166 citations into that one document, and at least 118 of the 130
248
- distinct ones went stale. The product team measured this and caused it; issue #343 holds the
249
- method and the reproduction.
250
-
251
- Every figure above is a floor rather than a count. The search used one pattern, which
252
- matches a citation naming its file. Gateway found a second form that names the file through
253
- an earlier citation in the same paragraph, as a bare `` `:609` ``. That form occurs 108
254
- times in `mx-agent-system/`, `product/` and `docs/`, and the first pattern did not see any
255
- of them.
256
-
257
- ```sh
258
- grep -rnE '`:[0-9]+' --include=*.md mx-agent-system/ product/ docs/ | wc -l # 108
259
- ```
260
-
261
- Resolved against `origin/main` at `5d2bdb8` on 2026-09-02. This document adds seven matching
262
- lines of its own, and the same command returns 115 in the working tree that produced this
263
- paragraph. The command counts lines rather than occurrences, so the seven lines it counts
264
- hold ten citations. State the limit of a method next to the number it produced, which is rule 9
265
- applied to the measurement itself.
266
-
267
- | | |
268
- |---|---|
269
- | Before | the same-function rule is at `product/mx-agent-prd.md:609` |
270
- | After | the same-function rule is at `` `product/mx-agent-prd.md:639`, "An answer a command already computes is rendered from that same function" `` |
271
- | Source | issue #343, resolved against `origin/main` at `5d2bdb8` on 2026-09-02 |
272
-
273
- The before line still resolves. After the edit, `:609` holds a paragraph about Electron
274
- install size and renderer sandboxing, which is real and plausible content, and five files
275
- cited `:609` as the standing architecture constraint
276
- (`git grep -lE 'mx-agent-prd\.md:609' 5d2bdb8 -- '*.md'`). A dead link returns an error and
277
- a stale line citation returns prose.
278
-
279
- That figure of five went stale during this document's own security review. PR #340 repaired
280
- three of the files, and the same command returns 2 at `origin/main`, which was `1f510eb` at
281
- that point. The original sentence stands because it names its tree. The two that remain are
282
- a dev-log and a set of draft notes, which rule 15 tells nobody to repair.
283
-
284
- | | |
285
- |---|---|
286
- | Before | an approved roleguide correction cites two lines of `mx-agent-system/cli/src/lib/jsonl.ts` |
287
- | After | the same two citations, plus "resolved against `origin/main` at `<sha>`, `<time>`" |
288
- | Source | gateway, in coordination with bootstrap and product, 2026-09-02. PR #325 added 1,757 lines, 467 of them in `jsonl.ts` (`gh pr view 325 --json additions,files`, run 2026-09-02) |
289
-
290
- The citations keep their line numbers because they name code. Gateway gave the reason: a
291
- reader opens a source file in an editor that jumps to a line, and one expression can appear
292
- many times in one file, so a quoted expression locates nothing. An edit shifts prose as a
293
- block and a code citation names one expression, which is the distinction the rule draws.
294
-
295
- PR #325 merged hours after that review approved the citations. Gateway stated the general
296
- case: a review is valid against the tree it was performed on, and nothing in the artifact
297
- records which tree that was. Bootstrap and product then resolved the same citation to two
298
- different line numbers on the same day, because bootstrap held unpushed work. Neither team
299
- was wrong, and the artifact could not say so.
300
-
301
- | | |
302
- |---|---|
303
- | Before | a dev-log cites `product/mx-agent-prd.md:609`, and someone repairs it to `:639` |
304
- | After | the dev-log keeps `:609`, unchanged |
305
- | Source | bootstrap's exclusion, adopted in issue #343 |
306
-
307
- The repair looks like maintenance and falsifies the record. A dev-log states what its author
308
- resolved at the time. Rule 15 prohibits the repair rather than exempting the record.
309
-
310
- The strongest case for reaching templates is bootstrap's, and product did not reproduce it.
311
- Bootstrap resolved `mx-agent-system/templates/roleguide-skeleton.md` and
312
- `mx-agent-system/roleguides/team-builder.md` against `HEAD` at `49fa76d` on
313
- 2026-09-02T11:38Z. The skeleton holds zero `file:line` citations. `team-builder.md` holds
314
- four, of which one is stale: `` `team-builder.md:365`, "the write opens" `` cites
315
- `create.ts:1367-1376` for a file open, that range now holds CRLF normalisation code, and the
316
- open is at `create.ts:283`. One of the other three is worse than a stale document citation.
317
- It is inside a template block at `` `team-builder.md:783`, "Named memories cap near 2000
318
- words" `` that provisioning writes verbatim into every new team's iteration-log memory
319
- content. It resolves today. When it drifts, it reaches every team
320
- created after that, and nothing in a memory prompts a reader to re-resolve it. A stale
321
- citation in a document is read by whoever opens the document. A stale citation in a template
322
- is copied.
323
-
324
- ### Rule 15, why the rule states a form rather than asking people to look
325
-
326
- Product counted 46 stale citations in surface-owned files. Surface fixed 3 of them on the
327
- day the problem was raised, which is 6.5%, while a surface engineer was actively working on
328
- this problem (issue #350, PRs #340 and #341). A rule that depends on someone looking is not
329
- a control, and that figure is the whole argument for stating a form instead.
330
-
331
- Surface then repointed 34 citations across 8 files in PR #348 and reported five failure
332
- modes (`gh pr view 348 --json title,files`, run 2026-09-02). Three of them are quotations
333
- that are accurate and still do not resolve: a quote that runs past a bold span, a quote
334
- containing an ellipsis, and a quote that tidies a path in the source. Accuracy and
335
- resolvability are different properties.
336
-
337
- ### Rule 15, what the rule does not do
338
-
339
- A quoted phrase resolves only until someone rewords it. Surface asked for this limit to be
340
- stated so that nobody expects more from the rule than it gives.
341
-
342
- A check resolves a citation and cannot verify that the citation supports the claim.
343
- Product's own roleguide holds the example.
344
- `mx-agent-system/roleguides/product-leader.md:323`, "Build-list components with a
345
- first-release disposition", cites `product/mx-agent-prd.md:1004` for the count 0 of 23. That
346
- line exists and holds a component-state table row about a self-measurement harness. The
347
- phrase "first-release disposition" appears zero times in the cited document, and so does "0
348
- of 23" (`grep -c "first-release disposition" product/mx-agent-prd.md`, run 2026-09-02
349
- against `origin/main` at `5d2bdb8`). This example is preserved as it stood at that tree, and
350
- nobody updates it when the citation is repaired. The citation resolves, and the claim it
351
- supports appears nowhere in what it cites. A checker built on rule 15 passes it. Resolving a
352
- citation and verifying that it supports a claim are two checks, and only the first one is
353
- mechanisable.
354
-
355
- ---
356
-
357
- ## How to apply rule 2 in one step
358
-
359
- Read your sentence and ask whether the subject could do the verb if you filmed it.
360
-
361
- - "The finding carries the evidence." A finding has no hands. Fails.
362
- - "The console records the decision." A program writes a record. Passes.
363
- - "The cost sits at $15.51." A number does not sit. Fails.
364
- - "The cost is $15.51." Passes.
365
-
366
- The test takes two seconds and catches rules 2, 3 and 6 together.
367
-
368
- ---
369
-
370
- ## What this standard does not cover
371
-
372
- It says nothing about document structure. The seven-section report format is a separate
373
- artifact, `mx-agent-system/standards/report-format.md`, and the framework enforces that one
374
- by refusing a report rather than by injection alone.
375
-
376
- It says nothing about code comments. The 647 em dashes measured above are mostly in source
377
- comments and in documents written before 2026-08-18. Nothing sweeps them, and this standard
378
- does not ask you to. Apply it to what you write.
379
-
380
- It sets no target for how often the operator asks for something in plainer language.
381
- `docs/legibility-plan.md` names that as the measure and records three requests in one
382
- session on 2026-08-18. Nothing collects it yet.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memnexus-ai/mx-agent-cli",
3
- "version": "0.1.296",
3
+ "version": "0.1.298",
4
4
  "description": "CLI for creating and managing AI agent teams",
5
5
  "type": "module",
6
6
  "bin": {
@@ -17,6 +17,8 @@
17
17
  },
18
18
  "files": [
19
19
  "dist/",
20
+ "!dist/**/*.test.*",
21
+ "!dist/**/__tests__/**",
20
22
  "scripts/generate-claude.mjs",
21
23
  "README.md"
22
24
  ],
@@ -1,16 +0,0 @@
1
- /**
2
- * Tests for parseAgentAttribution — per-agent-definition cost attribution.
3
- *
4
- * Fixtures reproduce the real Claude project layout:
5
- * <projectDir>/<sessionId>.jsonl — parent transcript
6
- * <projectDir>/<sessionId>/subagents/agent-<id>.jsonl — child transcripts
7
- *
8
- * Coverage:
9
- * 1. Simple join — parent tool_use → toolUseResult.agentId → child file.
10
- * 2. Nested spawn — the spawning toolUseResult lives in a SIBLING child.
11
- * 3. Unattributed — orphan child with no join lands in the residual bucket.
12
- * 4. Unknown model — child model missing from MODEL_PRICING is reported loudly.
13
- * 5. Coverage / cost math.
14
- */
15
- export {};
16
- //# sourceMappingURL=agent-attribution.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent-attribution.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/agent-attribution.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
@@ -1,250 +0,0 @@
1
- /**
2
- * Tests for parseAgentAttribution — per-agent-definition cost attribution.
3
- *
4
- * Fixtures reproduce the real Claude project layout:
5
- * <projectDir>/<sessionId>.jsonl — parent transcript
6
- * <projectDir>/<sessionId>/subagents/agent-<id>.jsonl — child transcripts
7
- *
8
- * Coverage:
9
- * 1. Simple join — parent tool_use → toolUseResult.agentId → child file.
10
- * 2. Nested spawn — the spawning toolUseResult lives in a SIBLING child.
11
- * 3. Unattributed — orphan child with no join lands in the residual bucket.
12
- * 4. Unknown model — child model missing from MODEL_PRICING is reported loudly.
13
- * 5. Coverage / cost math.
14
- */
15
- import { describe, it, expect, beforeEach, afterEach } from 'vitest';
16
- import { mkdirSync, rmSync, writeFileSync } from 'fs';
17
- import { join } from 'path';
18
- import { tmpdir } from 'os';
19
- import { parseAgentAttribution, calcLineCost, getRates, hasRates, normalizeModelId, MODEL_PRICING, } from '../lib/jsonl.js';
20
- import { safe } from '../commands/usage.js';
21
- let projectDir;
22
- let subagentsDir;
23
- const PARENT_SESSION = 'parent-session-1';
24
- beforeEach(() => {
25
- const root = join(tmpdir(), `mx-attr-test-${Date.now()}-${Math.random().toString(36).slice(2)}`);
26
- projectDir = root;
27
- subagentsDir = join(root, PARENT_SESSION, 'subagents');
28
- mkdirSync(subagentsDir, { recursive: true });
29
- });
30
- afterEach(() => {
31
- rmSync(projectDir, { recursive: true, force: true });
32
- });
33
- // ── Fixture builders ──────────────────────────────────────────────────────────
34
- /** A parent Agent/Task spawn: the tool_use block plus its toolUseResult line. */
35
- function spawnLines(toolUseId, subagentType, agentId, ts) {
36
- return [
37
- JSON.stringify({
38
- type: 'assistant',
39
- timestamp: ts,
40
- message: { role: 'assistant', content: [
41
- { type: 'tool_use', id: toolUseId, name: 'Agent', input: { subagent_type: subagentType, prompt: 'x' } },
42
- ] },
43
- }),
44
- JSON.stringify({
45
- type: 'user',
46
- timestamp: ts,
47
- toolUseResult: { agentId, status: 'completed', isAsync: true },
48
- message: { role: 'user', content: [
49
- { type: 'tool_result', tool_use_id: toolUseId, content: 'ok' },
50
- ] },
51
- }),
52
- ];
53
- }
54
- /** An assistant line carrying a priced usage record. */
55
- function usageLine(model, u, ts) {
56
- return JSON.stringify({
57
- type: 'assistant',
58
- timestamp: ts,
59
- message: {
60
- role: 'assistant',
61
- model,
62
- usage: {
63
- input_tokens: u.input,
64
- output_tokens: u.output,
65
- cache_read_input_tokens: u.cacheR,
66
- cache_creation_input_tokens: u.cacheW,
67
- },
68
- },
69
- });
70
- }
71
- function writeParent(lines) {
72
- writeFileSync(join(projectDir, `${PARENT_SESSION}.jsonl`), lines.join('\n') + '\n');
73
- }
74
- function writeChild(agentId, lines) {
75
- writeFileSync(join(subagentsDir, `agent-${agentId}.jsonl`), lines.join('\n') + '\n');
76
- }
77
- const T0 = '2026-07-06T10:00:00.000Z';
78
- const T1 = '2026-07-06T11:30:00.000Z';
79
- const T2 = '2026-07-06T12:45:00.000Z';
80
- // ── Tests ───────────────────────────────────────────────────────────────────
81
- describe('parseAgentAttribution', () => {
82
- function buildStandardFixture() {
83
- // Parent spawns qa-tester, implementation-engineer, general-purpose.
84
- writeParent([
85
- ...spawnLines('tu-qa', 'qa-tester', 'aQA', T0),
86
- ...spawnLines('tu-impl', 'implementation-engineer', 'aIMPL', T0),
87
- ...spawnLines('tu-gp', 'general-purpose', 'aUNK', T0),
88
- ...spawnLines('tu-hk', 'status-reporter', 'aHK', T0),
89
- ]);
90
- // Dated haiku model ID — must normalize to claude-haiku-4-5 for pricing.
91
- writeChild('aHK', [usageLine('claude-haiku-4-5-20251001', { input: 600, output: 300, cacheR: 1000, cacheW: 50 }, T1)]);
92
- // Simple join: qa-tester priced on sonnet-5.
93
- writeChild('aQA', [usageLine('claude-sonnet-5', { input: 1000, output: 500, cacheR: 2000, cacheW: 100 }, T0)]);
94
- // impl-engineer on opus-4-8, and it NESTED-spawns memory-creator — the join
95
- // for aMEM lives here in a sibling child transcript, not in the parent.
96
- writeChild('aIMPL', [
97
- usageLine('claude-opus-4-8', { input: 3000, output: 1500, cacheR: 10000, cacheW: 500 }, T1),
98
- ...spawnLines('tu-mem', 'memory-creator', 'aMEM', T1),
99
- ]);
100
- // Nested child recovered via the sibling pass.
101
- writeChild('aMEM', [usageLine('claude-sonnet-5', { input: 800, output: 400, cacheR: 1200, cacheW: 60 }, T1)]);
102
- // Attributed general-purpose on an UNKNOWN model (claude-unpriced-9 — a
103
- // name deliberately absent from MODEL_PRICING; claude-fable-5 was priced
104
- // in #4487 and is no longer a valid stand-in for 'unknown').
105
- writeChild('aUNK', [usageLine('claude-unpriced-9', { input: 500, output: 250, cacheR: 900, cacheW: 40 }, T2)]);
106
- // Orphan child: no join anywhere → unattributed bucket.
107
- writeChild('aORPHAN', [usageLine('claude-sonnet-5', { input: 700, output: 350, cacheR: 1100, cacheW: 55 }, T2)]);
108
- }
109
- it('simple join — attributes a child to its subagent_type and prices it', () => {
110
- buildStandardFixture();
111
- const r = parseAgentAttribution(projectDir);
112
- const qa = r.agents.get('qa-tester');
113
- expect(qa).toBeDefined();
114
- expect(qa.spawns).toBe(1);
115
- expect(qa.fileCount).toBe(1);
116
- expect(qa.dominantModel).toBe('claude-sonnet-5');
117
- expect(qa.inputTokens).toBe(1000);
118
- expect(qa.outputTokens).toBe(500);
119
- expect(qa.cacheReadTokens).toBe(2000);
120
- expect(qa.cacheWriteTokens).toBe(100);
121
- const expected = calcLineCost(1000, 500, 2000, 100, getRates('claude-sonnet-5'));
122
- expect(qa.cost).toBeCloseTo(expected, 10);
123
- });
124
- it('nested spawn — recovers a join that lives in a sibling child transcript', () => {
125
- buildStandardFixture();
126
- const r = parseAgentAttribution(projectDir);
127
- // memory-creator was spawned BY impl-engineer, not by the parent.
128
- const mem = r.agents.get('memory-creator');
129
- expect(mem).toBeDefined();
130
- expect(mem.fileCount).toBe(1);
131
- expect(mem.dominantModel).toBe('claude-sonnet-5');
132
- expect(mem.inputTokens).toBe(800);
133
- const impl = r.agents.get('implementation-engineer');
134
- expect(impl).toBeDefined();
135
- expect(impl.dominantModel).toBe('claude-opus-4-8');
136
- expect(impl.inputTokens).toBe(3000);
137
- });
138
- it('unattributed orphan — lands in the residual bucket, never dropped', () => {
139
- buildStandardFixture();
140
- const r = parseAgentAttribution(projectDir);
141
- expect(r.unattributed.fileCount).toBe(1);
142
- expect(r.unattributed.inputTokens).toBe(700);
143
- expect(r.unattributed.outputTokens).toBe(350);
144
- const expected = calcLineCost(700, 350, 1100, 55, getRates('claude-sonnet-5'));
145
- expect(r.unattributed.cost).toBeCloseTo(expected, 10);
146
- });
147
- it('unknown model — reported loudly, priced at fallback rates', () => {
148
- buildStandardFixture();
149
- const r = parseAgentAttribution(projectDir);
150
- expect(hasRates('claude-unpriced-9')).toBe(false);
151
- expect(r.unknownModels).toContain('claude-unpriced-9');
152
- // Attributed to general-purpose but priced at DEFAULT (Opus) fallback.
153
- const gp = r.agents.get('general-purpose');
154
- expect(gp).toBeDefined();
155
- const expected = calcLineCost(500, 250, 900, 40, getRates('claude-unpriced-9'));
156
- expect(gp.cost).toBeCloseTo(expected, 10);
157
- });
158
- it('known models added in v2.29 are priced, not flagged unknown', () => {
159
- buildStandardFixture();
160
- const r = parseAgentAttribution(projectDir);
161
- expect(hasRates('claude-opus-4-8')).toBe(true);
162
- expect(hasRates('claude-sonnet-5')).toBe(true);
163
- expect(MODEL_PRICING['claude-haiku-4-5']).toBeDefined();
164
- expect(r.unknownModels).not.toContain('claude-opus-4-8');
165
- expect(r.unknownModels).not.toContain('claude-sonnet-5');
166
- });
167
- it('claude-opus-5 (the #5200 default `opus` alias target) is priced', () => {
168
- // The fleet default is the `opus` alias; transcripts record the resolved
169
- // model ID, so the table must key claude-opus-5 or every default session
170
- // prices at the fallback rate.
171
- expect(MODEL_PRICING['claude-opus-5']).toBeDefined();
172
- expect(hasRates('claude-opus-5')).toBe(true);
173
- expect(MODEL_PRICING['claude-opus-5']).toEqual({
174
- input: 5, output: 25, cacheRead: 0.5, cacheWrite: 6.25,
175
- });
176
- // Fable stays priced for sessions recorded while it was the default.
177
- expect(MODEL_PRICING['claude-fable-5']).toEqual({
178
- input: 10, output: 50, cacheRead: 1.0, cacheWrite: 12.5,
179
- });
180
- });
181
- it('dated model ID — normalizes to base family, priced not flagged unknown', () => {
182
- buildStandardFixture();
183
- const r = parseAgentAttribution(projectDir);
184
- expect(normalizeModelId('claude-haiku-4-5-20251001')).toBe('claude-haiku-4-5');
185
- expect(r.unknownModels).not.toContain('claude-haiku-4-5-20251001');
186
- const sr = r.agents.get('status-reporter');
187
- expect(sr).toBeDefined();
188
- // Priced at haiku rates via the normalized key, NOT the Opus fallback.
189
- const expected = calcLineCost(600, 300, 1000, 50, getRates('claude-haiku-4-5'));
190
- expect(sr.cost).toBeCloseTo(expected, 10);
191
- const opusFallback = calcLineCost(600, 300, 1000, 50, getRates('claude-opus-4-8'));
192
- expect(sr.cost).not.toBeCloseTo(opusFallback, 6);
193
- });
194
- it('coverage math — attributed / (attributed + unattributed) tokens', () => {
195
- buildStandardFixture();
196
- const r = parseAgentAttribution(projectDir);
197
- // Attributed token sum: qa + impl + mem + gp.
198
- const attributed = (1000 + 500 + 2000 + 100) + // qa
199
- (3000 + 1500 + 10000 + 500) + // impl
200
- (800 + 400 + 1200 + 60) + // mem
201
- (500 + 250 + 900 + 40) + // gp
202
- (600 + 300 + 1000 + 50); // status-reporter (dated haiku)
203
- const unattributed = 700 + 350 + 1100 + 55; // orphan
204
- expect(r.attributedTokens).toBe(attributed);
205
- expect(r.unattributedTokens).toBe(unattributed);
206
- expect(r.coveragePct).toBeCloseTo((attributed / (attributed + unattributed)) * 100, 10);
207
- });
208
- it('data window — reports oldest → newest child timestamps', () => {
209
- buildStandardFixture();
210
- const r = parseAgentAttribution(projectDir);
211
- expect(r.oldestTs).toBe(new Date(T0).getTime());
212
- expect(r.newestTs).toBe(new Date(T2).getTime());
213
- });
214
- it('sanitizer strips terminal-escape sequences from transcript-derived names', () => {
215
- const ESC = String.fromCharCode(0x1b); // ANSI escape introducer
216
- const CR = String.fromCharCode(0x0d); // carriage return (line repaint)
217
- const REPLACEMENT = String.fromCharCode(0xfffd);
218
- // A crafted subagent_type: ANSI red + reset + CR to overwrite the row.
219
- const evil = `qa${ESC}[31mEVIL${ESC}[0m${CR}X`;
220
- const cleaned = safe(evil);
221
- // No control bytes survive to the terminal / committed report.
222
- expect(cleaned.includes(ESC)).toBe(false);
223
- expect(cleaned.includes(CR)).toBe(false);
224
- expect(cleaned.includes(REPLACEMENT)).toBe(true);
225
- // Printable content is retained.
226
- expect(cleaned).toContain('qa');
227
- expect(cleaned).toContain('EVIL');
228
- // Oversized names are truncated to 64 chars so layout can't be blown out.
229
- expect(safe('a'.repeat(500)).length).toBe(64);
230
- // Clean names pass through unchanged.
231
- expect(safe('qa-tester')).toBe('qa-tester');
232
- });
233
- it('parsing preserves the raw (unsanitized) name — sanitization is render-only', () => {
234
- const ESC = String.fromCharCode(0x1b);
235
- const evil = `qa${ESC}[31mX`;
236
- writeParent([...spawnLines('tu-evil', evil, 'aEVIL', T0)]);
237
- writeChild('aEVIL', [usageLine('claude-sonnet-5', { input: 100, output: 50, cacheR: 10, cacheW: 5 }, T0)]);
238
- const r = parseAgentAttribution(projectDir);
239
- // The attribution model stores the raw key; the render boundary sanitizes.
240
- expect(r.agents.has(evil)).toBe(true);
241
- });
242
- it('empty project — returns zeroed result without throwing', () => {
243
- const r = parseAgentAttribution(join(projectDir, 'does-not-exist'));
244
- expect(r.agents.size).toBe(0);
245
- expect(r.unattributed.fileCount).toBe(0);
246
- expect(r.coveragePct).toBe(0);
247
- expect(r.unknownModels).toEqual([]);
248
- });
249
- });
250
- //# sourceMappingURL=agent-attribution.test.js.map
@@ -1 +0,0 @@
1
-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;QAC9B,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACzC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC9B,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,23 +0,0 @@
1
- /**
2
- * AGENTS.md canonicalization — generated-output tests (Phase 0, #4227).
3
- *
4
- * Phase 0 makes AGENTS.md the canonical generated instruction file so Claude Code
5
- * (via a CLAUDE.md `@AGENTS.md` import shim) and OpenAI Codex read one generated
6
- * source. These tests run the real `deployClaudeMd` into a temp worktree and
7
- * assert on the GENERATED files (not the templates), matching the PRD's "verify
8
- * against generated output" mandate.
9
- *
10
- * SPLIT (security review, deploy-ordering Must Fix): the change shipped as two PRs.
11
- * PR-A: deployClaudeMd writes AGENTS.md (canonical) AND CLAUDE.md, both full
12
- * content — harmless duplication, and no worktree ever imports a missing file.
13
- * PR-B (this state, merge gate cleared — fleet 8/8 on the PR-A CLI): CLAUDE.md.template
14
- * is now a one-line `@AGENTS.md` import shim. The assertions below are the
15
- * flipped ones: CLAUDE.md is a shim, AGENTS.md is canonical, and the two
16
- * deployed files must now DIFFER rather than match.
17
- *
18
- * The end state these pin: exactly one file carries instruction content. If a
19
- * future change reintroduces content into CLAUDE.md.template, the shim tests fail
20
- * before two sources of truth can drift apart.
21
- */
22
- export {};
23
- //# sourceMappingURL=agents-md-canonicalization.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents-md-canonicalization.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/agents-md-canonicalization.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG"}