@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,495 +0,0 @@
1
- # Fail-Loud Coding Standard
2
-
3
- > **Status:** Draft (v2.73 Deliverable 2 — tracking issue #4645)
4
- > **Date:** 2026-07-27 (created) · 2026-07-27 (last updated)
5
- > **Owner:** agent-platform team lead
6
- > **Co-owner / reviewers:** DevOps Pipeline team, security-reviewer teammate
7
- > **Substrate:** lessons memory `d788d10e-923e-44e5-a730-cb8ee2a9bbe1`; COE nomination PR #4628
8
- > **Related:** #4639 (diagnostic), #4610 (PO decision, open), #4626, #4640, #4643, #4500
9
-
10
- ## Governing principle
11
-
12
- **A failure must never render identically to a legitimate empty result. A scanner
13
- must not report clean when it could not scan.**
14
-
15
- The axis is **loud vs. silent**, not open vs. closed. Fail-closed-and-loud is
16
- acceptable. Fail-open-and-loud is acceptable where the blast radius justifies it.
17
- **Fail-open-and-silent is the worst case and is prohibited by this standard.**
18
-
19
- Three outcomes must stay distinct everywhere in platform-owned code: **pass**,
20
- **fail**, **could-not-run**. Collapsing the third into either of the other two is the
21
- defect this document exists to prevent. The #4639 diagnostic counted 47 false-green
22
- and 65 silent-suppression patterns in this codebase — this corrects current practice,
23
- it does not warn about a hypothetical.
24
-
25
- ---
26
-
27
- ## Part 1 — The named failure shapes
28
-
29
- Each shape below is a prohibition. Each cites the incident that produced it.
30
-
31
- ### FL-1 — silent-empty: an error must not render as a legitimate zero result
32
-
33
- A code path that catches an error and returns "nothing found" destroys the reader's
34
- ability to tell failure from emptiness. **Rule:** an error path must produce output
35
- textually distinct from the empty-success path, and a non-zero exit status or an
36
- explicit error field.
37
-
38
- *Incident (KI-FAILURE-MUST-NOT-RENDER-AS-EMPTY-RESULT):* `mx memories get NAME` on
39
- the auto-detect path converts **any** error into `No memory found`, exit 0 — while
40
- the explicit `--name` path does not swallow. `mx memories search` prints a green
41
- check, `Found 0 results`, exit 0 while the backend returns HTTP 502. Three of seven
42
- fusion branches catch to empty with no log; `build_context` runs six sources each
43
- catching to empty.
44
-
45
- *Consequence to internalise:* every measurement taken through such a client is
46
- unreliable **retroactively** — there was never a way to tell failure from emptiness.
47
- This retracted our own issue #4637.
48
-
49
- ### FL-2 — false-green: success must not be asserted without being checked
50
-
51
- A success banner, checkmark, or "OK" line must be emitted only downstream of a
52
- predicate that could have returned false. **Rule:** if no code path exists in which
53
- the line is not printed, the line is a decoration, not a status, and must be deleted
54
- or made conditional.
55
-
56
- *Incident (KI-UNCONDITIONAL-BANNER-CLAIMS):*
57
- `mx-agent-system/cli/src/commands/start.ts` (≈ lines 1082–1088) prints
58
- `Isolation Enabled:` and three `✓` lines unconditionally. The checkmark is a literal
59
- character inside a template string; nothing is verified. This is worse than a silent
60
- gap — it is a false green asserted directly to the operator. **Not yet fixed; top
61
- platform must-fix item (see FL-17).**
62
-
63
- ### FL-3 — error-reshaped-as-success: captured error text must not be re-emitted through a success-shaped presentation path
64
-
65
- `|| true` after a command whose stderr was captured with `2>&1` does not lose the
66
- error — it converts the error into an artifact formatted exactly like a successful
67
- result and delivers it where the reviewer looks for the answer. **Rule:** when
68
- command output is rendered into a summary, comment, or report, the render must be
69
- gated on the command's exit status, and the failure render must be visually and
70
- textually different from the success render.
71
-
72
- *Incident (COE nomination, PR #4628; `.github/workflows/infra-provision.yml:174` on
73
- `main` — line corrected from 152 after the pipeline team verified against the file):*
74
-
75
- ```bash
76
- RESULT=$(az deployment sub what-if ... --no-pretty-print 2>&1) || true
77
- echo "$RESULT" >> "$GITHUB_STEP_SUMMARY" # fenced block — same rendering as a real preview
78
- ```
79
-
80
- Every Bicep PR merged under this condition carried a check that validated nothing.
81
- Silence is beaten by asking "has this ever fired?" — this is not, because the answer
82
- is yes and the output is right there. It is beaten only by asking whether the
83
- artifact is the **kind** of thing it is presented as.
84
-
85
- ### FL-4 — vacuous success: a validator that validated zero items must not report PASS
86
-
87
- **Rule:** every validator counts what it examined. A count of zero is not a pass. It
88
- exits with the could-not-validate status (FL-14), names the count, and says why the
89
- count was zero.
90
-
91
- *Incident (KI-VACUOUS-SUCCESS-EXIT-ZERO):*
92
- `dev-tools/scripts/validate-roleguide-behavioral-markers.sh` previously printed
93
- `0 active team(s) OK` and exited 0 when every team was skipped. It now refuses:
94
-
95
- ```
96
- roleguide-markers: NO active teams were validated — refusing to report success.
97
- N team(s) in <dir> were skipped as retired: ...
98
- ```
99
-
100
- exiting **2**, not 1 — nothing failed validation; the run was not meaningful.
101
-
102
- ### FL-5 — clean-when-could-not-scan: a scanner that could not scan must not report no findings
103
-
104
- **Rule:** for any matcher, enumerate the statuses that mean *the scan completed*.
105
- Every other status — including statuses you did not anticipate, and including
106
- **status 0 with no output** — is a failed scan. On an egress or safety path, a failed
107
- scan blocks and names the stage and the exit status.
108
-
109
- *Incident (KI-SCANNER-MUST-NOT-REPORT-CLEAN-WHEN-IT-COULD-NOT-SCAN):* both grep
110
- pipelines in `dev-tools/scripts/codex-review-memlib.sh` ended in `|| true`. `grep`
111
- exits 1 for no-match but 2 for error, 126/127 when it cannot be executed, 128+N when
112
- killed — all flattened onto "clean". Reproduced worse case: grep exits **0 with a
113
- match**, bash cannot allocate the command-substitution buffer under memory pressure,
114
- the empty capture is read as clean, and a real AWS-key-shaped string would have
115
- egressed.
116
-
117
- **Reference implementation of the fix pattern: PR #4640** (commit `3c3ffd9b9`),
118
- `codex_grep_first_line` / `codex_grep_status_ok` / `codex_scan_failed_hit`. Replicate
119
- its four properties:
120
-
121
- 1. Only statuses `0|1` count as a completed scan; empty or non-numeric is a failure.
122
- 2. `status 0 with no captured output` is explicitly a failure, not a clean.
123
- 3. The status is carried **out of the subshell** behind a marker byte (`\034`),
124
- because `$?` on `x="$(a | b)"` is `b`'s status and `PIPESTATUS` is not visible
125
- outside the substitution.
126
- 4. The refusal names the stage and the status:
127
- `SECRET SCAN FAILED (stage 1, pattern: ...): the matcher exited '2', so this body
128
- was NOT scanned. Refusing to send ... (fail-closed).`
129
-
130
- ---
131
-
132
- ## Part 2 — Positive controls
133
-
134
- ### FL-6 — every monitoring rule, scan, or gate ships with a known-healthy control signal in the same rule set
135
-
136
- **Rule:** a zero proves nothing unless the same query, in the same rule set, also
137
- reads a signal known to be non-zero when the system is healthy. If **every** signal
138
- in the set reads zero, the rule set treats that as an instrument fault and alerts on
139
- the sampler, not on the subject.
140
-
141
- *Incident (KI-POSITIVE-CONTROL-OR-THE-ZERO-IS-VACUOUS):* a production scan keyed on
142
- `embeddingStatus='completed'` would have reported "clean" — that value is never
143
- written in prod. The step-5 control returned 0 HEALTHY rows, which invalidated steps
144
- 1–2 rather than confirming them.
145
-
146
- ### FL-7 — a control keys on the artifact, not on a marker that claims the artifact exists
147
-
148
- **Rule:** select on the thing you care about (an embedding vector, a file, a
149
- response body). Use status fields, labels, and markers **only as exclusions**.
150
-
151
- *Incident (KI-CONTROL-MUST-KEY-ON-ARTIFACT-NOT-MARKER):* pipeline alert #4643 —
152
- commissioned specifically to catch controls that report healthy while doing nothing —
153
- was first keyed on `status='queued'` and would have reported backlog 0 while 413/413
154
- prod rows were missing embeddings. It broke its own rule one file below where the
155
- rule was written. In prod, 359 of 408 rows carry a real embedding and **no status
156
- field at all**. Fixed by keying on the missing artifact.
157
-
158
- ### FL-8 — ask "has this counter ever been non-zero", not "does this control exist"
159
-
160
- **Rule:** a new or reviewed control must be able to answer, from a recorded artifact,
161
- when it last fired. A control with no block-path artifact cannot be audited and is
162
- treated as unproven.
163
-
164
- *Incident (KI-ASK-HAS-IT-EVER-FIRED / #4639):* 8 of 11 gates could not prove they had
165
- ever fired — none writes anything on the block path. Also found: branch protection
166
- requiring nothing, a stale guard that could not block, a secret scanner idle on PRs
167
- since 2026-03-03.
168
-
169
- ### FL-9 — an existence check cannot see a broken control
170
-
171
- **Rule:** presence-on-disk plus registration is not verification. Any check of a
172
- deployed guard compares the deployed artifact against its source (freshness), or
173
- probes its behaviour (FL-15).
174
-
175
- *Incidents:* `checkHookCompleteness` passes a stale-but-present guard
176
- (KI-EXISTENCE-CHECK-CANNOT-SEE-A-BROKEN-CONTROL). `syncClaudeConfig` overwrites
177
- unconditionally and reports the write's exit code, so nothing records that a session
178
- ran on stale guardrails (KI-REPAIR-IS-NOT-VERIFICATION).
179
-
180
- ---
181
-
182
- ## Part 3 — Operator-override reconciliation (mandatory)
183
-
184
- A guard that blocks too much gets switched off — fail-open by a slower route, and a
185
- worse end state than a loud non-blocking signal because the disabling goes unrecorded.
186
-
187
- ### FL-10 — choose hard-block vs. loud-signal by irreversibility, never by convenience
188
-
189
- | Condition | Required behaviour |
190
- |---|---|
191
- | Irreversible harm on the wrong answer (credential egress, prod deploy, data delete) | **Hard block**, fail-closed, with an FL-11 override (out-of-band in an agent runtime) |
192
- | Reversible harm; the wrong answer is caught downstream | **Fail loud** to an always-on visible channel + auto-created escalation; do not block |
193
- | Instrument fault (could-not-run) on a reversible path | **Fail loud**, record `could-not-run` in the verification artifact, do not report pass |
194
- | Instrument fault on an irreversible path | **Hard block** (FL-5) |
195
-
196
- "Fail loud" means all three: (a) a message on a channel the operator sees without
197
- opting in; (b) a `could-not-run` or `fail` record in the gate verification artifact
198
- (Part 6); (c) an auto-created escalation via `mx-agent escalate` at the priority the
199
- owning team set — not a log line nobody reads.
200
-
201
- **Loud-channel constraints (all mandatory):**
202
-
203
- - **No recursion.** Failure of the escalation channel itself is recorded to the
204
- verification artifact and stderr, and must never trigger a further escalation.
205
- - **Dedupe and rate limit.** Each rule carries a stable `rule_id`; at most one
206
- escalation per `rule_id` per hour, carrying an occurrence count for the suppressed
207
- duplicates. Bodies are length-capped.
208
- - **Output by reference, never inline.** Captured command output goes into an
209
- escalation body as an artifact reference or base64, never as inline prose, and
210
- fence-marker patterns are escaped before rendering. Inlining raw captured output is
211
- how FL-3 recurs inside the alerting path.
212
-
213
- *Incident (KI-GUARD-THAT-BLOCKS-EVERYTHING-GETS-SWITCHED-OFF):* the first cut of the
214
- #4640 hardening refused **every** review — `set -e` inherited into subshells killed
215
- the process before the status marker was written, and a missing marker read as a
216
- failed scan. Test fail-closed hardening in **both** directions: it must block the bad
217
- input **and** pass the good input.
218
-
219
- ### FL-11 — every hard block carries a reachable, logged override — reachable by *whom* depends on reversibility
220
-
221
- An override must be (a) named at the point of refusal, (b) actually obtainable by the
222
- principal entitled to grant it, and (c) recorded — who, when, which rule, why — in the
223
- same artifact stream as the block. **Who may invoke it is set by FL-10's reversibility
224
- axis, not by convenience:**
225
-
226
- | FL-10 row | Override form |
227
- |---|---|
228
- | Reversible harm | **Self-service, logged.** The refusal states the command; the operator runs it; the use is recorded |
229
- | **Irreversible harm** (credential egress, prod deploy, data delete) in an **agent runtime** | **Out-of-band only.** The refusal states *that* an override exists and *who* can grant it — PO, human operator, or a separately-held token deliberately absent from the session environment. It must **not** state a command the blocked agent can run, and the granting credential must not be reachable from the session |
230
-
231
- > **An override that the blocked principal can invoke unilaterally is not an override,
232
- > it is an off switch. Where the blocked principal is an autonomous agent session,
233
- > irreversible-path overrides are out-of-band by construction.**
234
-
235
- An agent blocked on an irreversible path has exactly one in-session move: **FL-12** —
236
- record `could-not-run` and stop. It does not hand-edit past the guard, and it does not
237
- search for a bypass.
238
-
239
- *Incident (KI-GUARD-OVERRIDE-UNREACHABLE, #4500):* an advertised override the runtime
240
- cannot deliver makes the guard dishonest — the operator's only remaining move is to
241
- disable the guard entirely. That is why reversible-path overrides must be genuinely
242
- reachable. It is not a licence to make irreversible-path overrides reachable by the
243
- blocked agent; there, "reachable" means reachable by the human who can grant it.
244
-
245
- **Trust properties of the override log (v1, stated so nobody over-reads it):** the
246
- local override record is written by the same principal performing the override. It is
247
- not tamper-evident and is not an access-control boundary — it is a guardrail and a
248
- counting mechanism, consistent with standing policy on bypassable hooks. Acceptable
249
- for v1 **provided** override counts used for any decision are reconciled server-side
250
- from synced telemetry, never read from the local file.
251
-
252
- ### FL-12 — when the gate itself cannot run, record it; never hand-edit past it
253
-
254
- *Incident (KI-SECRET-GUARD-BLOCKS-ITS-OWN-TESTS):* secret-detection tests must
255
- contain credential-shaped fixtures, so the guard blocks Codex review of any PR
256
- touching them (PR #4640). This is structural and permanent. The correct response is
257
- to record that the gate could not run. Do **not** edit the diff to satisfy the gate.
258
-
259
- ---
260
-
261
- ## Part 4 — Concrete code patterns
262
-
263
- ### FL-13 — capture status explicitly under `set -e` / trap-ERR
264
-
265
- Bare assignment from a command substitution inside an ERR-trapped or `set -e` script
266
- either aborts before your handling runs, or silently discards the status. Use:
267
-
268
- ```bash
269
- RC=0; OUT="$(some_command 2>&1)" || RC=$?
270
- if [ "$RC" -ne 0 ]; then
271
- printf 'stage X FAILED (exit %d):\n%s\n' "$RC" "$OUT" >&2
272
- exit 1 # or exit 2 — see FL-14
273
- fi
274
- ```
275
-
276
- Prohibited: `OUT="$(cmd)" || true`, and any bare `OUT="$(cmd)"` whose failure path is
277
- unhandled. For pipelines, capture `PIPESTATUS[n]` **inside** the subshell (FL-5,
278
- point 3) — the outer `$?` is the last stage's status.
279
-
280
- *Incident (KI-CIVALIDATE-ERRTRAP-SWALLOWS-FAILURES):* the v2.72 marker CI gate used
281
- the trap-ERR bash-hook shape, failed three security review rounds without
282
- convergence, and was descoped. The shape is a named anti-pattern; do not reintroduce
283
- it.
284
-
285
- ### FL-14 — exit codes distinguish "failed validation" from "could not validate"
286
-
287
- Standard convention for platform scripts (as implemented in
288
- `validate-roleguide-behavioral-markers.sh`):
289
-
290
- | Code | Meaning |
291
- |---|---|
292
- | 0 | Ran, examined ≥ 1 item, all passed |
293
- | 1 | Ran, examined ≥ 1 item, at least one **failed** — name each failure on stderr |
294
- | 2 | **Could not validate**: usage/environment error, or zero items examined |
295
-
296
- Two further rules close the gaps this table leaves open:
297
-
298
- - **Any status outside {0, 1, 2} is could-not-validate and fails.** 126/127 (cannot
299
- execute), 128+N (killed), and any status a future edit invents are never a pass.
300
- Callers must not collapse 1 and 2, and must not treat an unrecognised status as 0.
301
- - **Exit 0 alone is not a pass.** A validator's `0` counts as a pass only alongside a
302
- verification record satisfying requirement **R1** of the gate verification-artifact
303
- contract (FL-19). An exit code with no record is an unproven claim (FL-8).
304
-
305
- **Scope — this table governs validators and scanners, not PreToolUse/PostToolUse hooks.**
306
- The Claude Code hook runtime defines **exit 2 = BLOCK**; that is the runtime's contract, not a
307
- local choice (`mx-agent-system/agent-config/hooks/git-mutation-guard.sh:6` documents it, and
308
- `worktree-guard.sh` exits 2 at five sites). Applied to a hook, the table above would classify a
309
- correct block as "could not validate." **Hook-runtime gates therefore declare an `exit_map` in
310
- `mx-agent-system/gates/registry.yml`** — §2.2.2 of the gate verification-artifact contract — and
311
- readers evaluate their codes through that map. The map does not weaken this rule: its lists must
312
- be disjoint, `pass` and `block` non-empty, **any code the map does not list is still
313
- could-not-validate**, and widening it is a monotonicity violation in the contract. For everything
314
- that is not a hook, the 0/1/2 convention above is the default and needs no declaration.
315
- Found by the pipeline team's buildability review of PR #4649: without this, no hook could satisfy
316
- the contract's positive-control criterion, which is 8 of the 11 gates in the retrofit.
317
-
318
- ### FL-15 — path matching against git output uses `core.quotePath=false`
319
-
320
- **Rule:** any changed-files gate reads paths with
321
- `git -c core.quotePath=false diff --name-only ...` (equivalently for `ls-files`,
322
- `show --name-only`).
323
-
324
- *Incident (KI-CHANGEDFILES-GIT-QUOTEPATH):* by default git renders non-ASCII bytes in
325
- path names as octal escapes inside double quotes. A gate matching those paths misses
326
- the file and reports "no relevant files changed" — a silent-empty (FL-1) produced by
327
- the tool's default rendering rather than by any error.
328
-
329
- ---
330
-
331
- ## Part 5 — Verification
332
-
333
- ### FL-16 — a fail-loud claim is verified only by re-running the original reproduction or injecting the fault
334
-
335
- **Rule:** a fix to any shape in Part 1 ships with a test that **injects the fault**
336
- (non-zero matcher status, empty capture, backend error, zero-item input) and asserts
337
- the loud outcome. Running the tool and observing that it did not complain is not
338
- verification.
339
-
340
- *Incidents:* KI-REMEDIATION-UNVERIFIED-UNTIL-REPRO-RERUN;
341
- KI-VERIFY-BY-PROBE-NOT-BY-HAVING-RUN-SOMETHING — seven teams were told to restart
342
- their container to refresh a stale worktree guard, but `post-start.sh` resolves the
343
- repo root to `/workspace` and never iterates worktrees, so the remedy changed
344
- nothing. File size tells you which build you have; only a behavioural probe tells you
345
- what it does.
346
-
347
- ### FL-17 — a comment claiming a protection covers a defect is an assertion, not evidence
348
-
349
- **Rule:** for every such comment there is a test that **fails when the protection is
350
- removed**. Without it, delete the claim rather than leave an unverified one.
351
- `codex-review-memlib.test.sh` (PR #4640) is the reference: it drives the failed-scan
352
- and empty-capture paths directly.
353
-
354
- ---
355
-
356
- ## Part 6 — Scope, compliance, and grandfathering
357
-
358
- ### FL-18 — binding scope
359
-
360
- This standard binds all platform-owned surfaces:
361
-
362
- - `.claude/hooks/**` and any guard script
363
- - `dev-tools/scripts/**` (CI scripts, validators, review tooling)
364
- - `mx-agent-system/cli/**` (`mx-agent` CLI error and status paths)
365
- - Monitoring and alert rule definitions owned by platform
366
- - Workflow steps that render command output into summaries, comments, or artifacts
367
-
368
- New code must comply at review. Modified code must bring the touched paths into
369
- compliance.
370
-
371
- ### FL-19 — compliance is recorded through the gate verification-artifact contract
372
-
373
- Compliance is not self-attested in a PR description. Each gate emits **pass / fail /
374
- could-not-run** as three distinct recorded outcomes into the shared
375
- verification-artifact contract being designed in parallel as v2.73 Deliverable 1
376
- (#4645). That document owns the artifact schema, the positive-control acceptance test
377
- per gate, the always-runs companion job, and the rollback runbook. This standard does
378
- not duplicate it; a gate that satisfies FL-6/FL-8 does so by writing to that contract.
379
-
380
- **Two checks with different enforcement levels, registered on the day this standard
381
- lands. Do not conflate them.**
382
-
383
- | Check | Level on day one | What it does |
384
- |---|---|---|
385
- | `fail-loud-lint` — **pattern** scan | **Advisory** (non-blocking) | Greps for `\|\| true`, `2>/dev/null` in a status-bearing position, `trap ... ERR`, `continue-on-error:`. Runs against every changed file, so it is noisy and could hang PRs; it starts the compliance counter before enforcement. Promotion to blocking is FL-21 question 1 |
386
- | `fail-loud-inventory` — **no-added-rows** check | **BLOCKING at the gate-report level, from the day gate-report exists** | Fails any PR whose diff **adds** a row to `fail-loud-grandfathered.tsv` (FL-20 clause 3) |
387
-
388
- **"Blocking" means what the repository can actually enforce — corrected after co-owner review.**
389
- An earlier draft said this check blocks "from day one." That claim did not survive contact with
390
- #4610: `main` currently has **no required status checks**, so no check in this repository blocks
391
- anything, and a check registered today turns a PR red without preventing its merge. The honest
392
- sequence, matching FR-3 of the gate verification-artifact contract:
393
-
394
- 1. **Before `gate-report` exists and before the #4610 ruling** — `fail-loud-inventory` is
395
- **advisory**. It runs, it reports, it emits its verification record, and it cannot prevent a
396
- merge. Describing it as blocking in this window would repeat the exact error #4610 documents:
397
- calling a detective control preventive.
398
- 2. **Once `gate-report` is the required check** — the inventory check becomes a registry gate
399
- whose FAIL makes `gate-report` red, and `gate-report` is what branch protection requires. It
400
- blocks then, through that single required check, and not before.
401
-
402
- Its scope argument is unaffected and still holds: it can only fail a PR that modifies
403
- `fail-loud-grandfathered.tsv`, so making it enforcing carries none of the deadlock risk in
404
- FL-21 question 1. Leaving it advisory **permanently** would make the inventory a
405
- **self-deregistration surface** — a PR could add its own grandfather row and merge over a
406
- non-blocking warning, which is exactly the exemption route FL-20 clause 2 exists to close. That
407
- is an argument for enforcing it as early as the mechanism allows, not for claiming it already
408
- does.
409
-
410
- Both emit to the same verification-artifact contract, so FL-8 can answer "has it ever
411
- fired" for each from the first week.
412
-
413
- ### FL-20 — grandfathering is inventory-based and default-deny
414
-
415
- Grandfathering is **not** a date claim. Code written after this standard lands cannot
416
- argue for it, because eligibility is membership in a fixed inventory:
417
-
418
- 1. **Inventory file.** `mx-agent-system/standards/fail-loud-grandfathered.tsv`,
419
- generated **once** before the standard binds. One row per occurrence, tab-separated:
420
- `path`, `line`, `shape_id` (FL-1..FL-5), `context_sha256` (SHA-256 of the five
421
- surrounding source lines, the occurrence line ± 2).
422
- 2. **Default-deny.** Any occurrence not present in the inventory is a violation,
423
- regardless of the date it was claimed to be written. There is no other route to
424
- grandfathered status.
425
- 3. **Removal-only, enforced by a blocking check.** The `fail-loud-inventory` check
426
- (FL-19) rejects any diff that **adds** a row. It is **enforcing as soon as the mechanism
427
- exists** — advisory until `gate-report` is the required check, blocking through it thereafter
428
- (FL-19, and FR-3 of the gate verification-artifact contract). It is never left advisory as a
429
- settled state. Entries are deleted as occurrences are fixed; the row count is a
430
- burn-down and must be monotonically non-increasing. This check is deliberately
431
- narrower than the pattern lint: it fires only on diffs touching this file, so
432
- making it blocking cannot hang an unrelated PR. If it were advisory, a PR could
433
- register its own exemption and merge past the warning.
434
- 4. **De-grandfathering unit** — an entry lapses when its unit is modified:
435
- TypeScript/JavaScript/Python, the **enclosing function**; YAML/JSON, the **enclosing
436
- job or top-level key**; shell with functions, the **enclosing function**; shell
437
- without functions, the **whole file**. Independently, a `context_sha256` mismatch
438
- de-grandfathers the entry **even at an unchanged line number** — the surrounding
439
- code moved under it, so the review that granted the exemption no longer applies.
440
- 5. **Sequence.** The inventory lands **first**, in its own PR. The standard binds
441
- **second**. Binding before the inventory exists makes every pre-existing occurrence
442
- a violation on day one and guarantees the standard is switched off
443
- (KI-GUARD-THAT-BLOCKS-EVERYTHING-GETS-SWITCHED-OFF).
444
-
445
- **Named items:**
446
-
447
- | Status | Code |
448
- |---|---|
449
- | **Must-fix, platform-owned, tracked** | `mx-agent-system/cli/src/commands/start.ts` ≈ 1082–1088 unconditional `Isolation Enabled` banner (KI-UNCONDITIONAL-BANNER-CLAIMS) — issue **#4646 (filed 2026-07-27)**. Top platform item; it asserts a false green directly to the operator |
450
- | **PROPOSED — pending DevOps Pipeline acknowledgment** | `.github/workflows/infra-provision.yml` — **six occurrences, not one**, enumerated below after the pipeline team's verification. The `\|\| true` of #4626/#4628 is at **:174, not :152**. Ordering constraint from the nomination is unchanged: bump the retired AKS API version **first**, accepting on an actual `what-if` resource-change preview and **not** on the job being green; then remove `\|\| true`. Reversing the order reds every Bicep PR in the fleet with no fix available |
451
-
452
- **`infra-provision.yml` occurrence set (FL-20 clause 1 rows).** Recorded in full because clause 1
453
- hashes the occurrence line ± 2: **a wrong line number produces a `context_sha256` over the wrong
454
- five lines**, so the entry either fails to match a real occurrence or grandfathers a different one.
455
- A single mis-recorded line poisons the inventory entry it was meant to create.
456
-
457
- | Line | Shape | Note |
458
- |---|---|---|
459
- | :103 | `\|\| true` on `git diff --name-only` capture | empty result is indistinguishable from failure |
460
- | :106 | `\|\| true` on `git diff --name-only` capture | same shape as :103 |
461
- | :110 | `\|\| true` with `2>/dev/null` on `ls` | two suppressions on one status-bearing line |
462
- | :174 | `\|\| true` on `az deployment sub what-if` capture | **the #4626/#4628 occurrence** — previously recorded as :152 |
463
- | :254 | `az ... 2>&1 \| tee -a "$GITHUB_STEP_SUMMARY"` with **no `pipefail`** | pipeline status is `tee`'s, so an `az` failure on the **deploy path** is invisible. No `set -o pipefail` anywhere in the file and no `shell:` override, so the default `bash -e` does not cover it |
464
- | :266 | `az ... \| tee /tmp/deploy-output.json` | the one occurrence already handled — `exit ${PIPESTATUS[0]}` at :269 recovers the real status |
465
-
466
- :254 is the material addition: the original single-row entry covered a `what-if` preview, while
467
- the unguarded `az \| tee` on the deploy path was not recorded at all.
468
- | **PROPOSED — pending owning-team acknowledgment** | `mx memories get NAME` auto-detect and `mx memories search` silent-empty paths (FL-1) |
469
- | **Fixed — reference implementations** | `dev-tools/scripts/codex-review-memlib.sh` (PR #4640); `dev-tools/scripts/validate-roleguide-behavioral-markers.sh` (FL-4, FL-14) |
470
-
471
- Platform does not bind another team's code unilaterally. The two **PROPOSED** rows
472
- become must-fix only when the owning team acknowledges them; coordination escalations
473
- go out when this document ships. Until acknowledged they are recorded findings, not
474
- obligations, and neither team's PRs are gated on them.
475
-
476
- ### FL-21 — open questions
477
-
478
- 1. **When does the `fail-loud-lint` PATTERN scan go from advisory to blocking?** This
479
- question covers the pattern scan only — the `fail-loud-inventory` no-added-rows
480
- check is enforcing as soon as `gate-report` exists and is not in scope here (FL-19). Options: (a)
481
- pattern scan stays advisory this iteration; (b) block on `could-not-run` outcomes
482
- only; (c) full gate. *Recommendation:* (a) — it ships advisory so the counter
483
- starts, and promotion waits for the PO's #4610 ruling plus the always-runs
484
- companion job, without which a pattern scan over every changed file hangs
485
- path-filtered PRs. *Blocking:* no.
486
- 2. **Who owns the always-on "loud" channel in FL-10?** Options: coordination-queue
487
- escalation only, or a dedicated alert channel. *Recommendation:* coordination
488
- queue via `mx-agent escalate` — it exists, is drained at session start, and needs
489
- no new infrastructure. *Blocking:* no.
490
- 3. **Cross-session fault signal (KI-INCIDENT-INVISIBLE-FROM-INSIDE-ONE-SESSION).**
491
- MemNexus degraded ~40 minutes on 2026-07-27; three agents hit it and none
492
- escalated, because the "is this an incident" threshold cannot be evaluated from
493
- inside one session. FL-10's escalation requirement does not solve this.
494
- *Recommendation:* a cheap shared fault counter, scoped to a follow-on iteration.
495
- *Blocking:* no.