@ztothez/design-engineering 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (513) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +448 -0
  3. package/ROADMAP.md +127 -0
  4. package/SKILL.md +698 -0
  5. package/V2-ROADMAP.md +431 -0
  6. package/V3-ROADMAP.md +605 -0
  7. package/V4-ROADMAP.md +283 -0
  8. package/clean-room-ux-design-spec.md +1431 -0
  9. package/dist/cli/aggregate-gates.d.ts +2 -0
  10. package/dist/cli/aggregate-gates.js +86 -0
  11. package/dist/cli/aggregate-gates.js.map +1 -0
  12. package/dist/cli/assess-maintainer-review.d.ts +2 -0
  13. package/dist/cli/assess-maintainer-review.js +72 -0
  14. package/dist/cli/assess-maintainer-review.js.map +1 -0
  15. package/dist/cli/audit.d.ts +2 -0
  16. package/dist/cli/audit.js +71 -0
  17. package/dist/cli/audit.js.map +1 -0
  18. package/dist/cli/compile-comparison-review.d.ts +2 -0
  19. package/dist/cli/compile-comparison-review.js +154 -0
  20. package/dist/cli/compile-comparison-review.js.map +1 -0
  21. package/dist/cli/compile-plan.d.ts +2 -0
  22. package/dist/cli/compile-plan.js +66 -0
  23. package/dist/cli/compile-plan.js.map +1 -0
  24. package/dist/cli/evaluate-corpus.d.ts +2 -0
  25. package/dist/cli/evaluate-corpus.js +65 -0
  26. package/dist/cli/evaluate-corpus.js.map +1 -0
  27. package/dist/cli/generate-react.d.ts +2 -0
  28. package/dist/cli/generate-react.js +83 -0
  29. package/dist/cli/generate-react.js.map +1 -0
  30. package/dist/cli/index.d.ts +2 -0
  31. package/dist/cli/index.js +58 -0
  32. package/dist/cli/index.js.map +1 -0
  33. package/dist/cli/portfolio.d.ts +2 -0
  34. package/dist/cli/portfolio.js +316 -0
  35. package/dist/cli/portfolio.js.map +1 -0
  36. package/dist/cli/quality-gate.d.ts +2 -0
  37. package/dist/cli/quality-gate.js +131 -0
  38. package/dist/cli/quality-gate.js.map +1 -0
  39. package/dist/cli/repair-react.d.ts +2 -0
  40. package/dist/cli/repair-react.js +163 -0
  41. package/dist/cli/repair-react.js.map +1 -0
  42. package/dist/cli/review-heuristics.d.ts +2 -0
  43. package/dist/cli/review-heuristics.js +68 -0
  44. package/dist/cli/review-heuristics.js.map +1 -0
  45. package/dist/cli/validate-brief.d.ts +2 -0
  46. package/dist/cli/validate-brief.js +58 -0
  47. package/dist/cli/validate-brief.js.map +1 -0
  48. package/dist/cli/validate-comparison.d.ts +2 -0
  49. package/dist/cli/validate-comparison.js +68 -0
  50. package/dist/cli/validate-comparison.js.map +1 -0
  51. package/dist/cli/validate-contract.d.ts +2 -0
  52. package/dist/cli/validate-contract.js +54 -0
  53. package/dist/cli/validate-contract.js.map +1 -0
  54. package/dist/cli/validate-design.d.ts +2 -0
  55. package/dist/cli/validate-design.js +53 -0
  56. package/dist/cli/validate-design.js.map +1 -0
  57. package/dist/cli/validate-information.d.ts +2 -0
  58. package/dist/cli/validate-information.js +53 -0
  59. package/dist/cli/validate-information.js.map +1 -0
  60. package/dist/cli/validate-trust.d.ts +2 -0
  61. package/dist/cli/validate-trust.js +53 -0
  62. package/dist/cli/validate-trust.js.map +1 -0
  63. package/dist/cli/verify-ui.d.ts +2 -0
  64. package/dist/cli/verify-ui.js +181 -0
  65. package/dist/cli/verify-ui.js.map +1 -0
  66. package/dist/src/acceptance/evaluator.d.ts +13 -0
  67. package/dist/src/acceptance/evaluator.js +201 -0
  68. package/dist/src/acceptance/evaluator.js.map +1 -0
  69. package/dist/src/acceptance/loader.d.ts +2 -0
  70. package/dist/src/acceptance/loader.js +18 -0
  71. package/dist/src/acceptance/loader.js.map +1 -0
  72. package/dist/src/acceptance/report.d.ts +2 -0
  73. package/dist/src/acceptance/report.js +18 -0
  74. package/dist/src/acceptance/report.js.map +1 -0
  75. package/dist/src/acceptance/schema.d.ts +64 -0
  76. package/dist/src/acceptance/schema.js +57 -0
  77. package/dist/src/acceptance/schema.js.map +1 -0
  78. package/dist/src/acceptance/types.d.ts +47 -0
  79. package/dist/src/acceptance/types.js +2 -0
  80. package/dist/src/acceptance/types.js.map +1 -0
  81. package/dist/src/aggregate/report.d.ts +2 -0
  82. package/dist/src/aggregate/report.js +33 -0
  83. package/dist/src/aggregate/report.js.map +1 -0
  84. package/dist/src/aggregate/runner.d.ts +2 -0
  85. package/dist/src/aggregate/runner.js +165 -0
  86. package/dist/src/aggregate/runner.js.map +1 -0
  87. package/dist/src/aggregate/schema.d.ts +182 -0
  88. package/dist/src/aggregate/schema.js +54 -0
  89. package/dist/src/aggregate/schema.js.map +1 -0
  90. package/dist/src/aggregate/types.d.ts +57 -0
  91. package/dist/src/aggregate/types.js +2 -0
  92. package/dist/src/aggregate/types.js.map +1 -0
  93. package/dist/src/audit/policy.d.ts +3 -0
  94. package/dist/src/audit/policy.js +45 -0
  95. package/dist/src/audit/policy.js.map +1 -0
  96. package/dist/src/audit/report.d.ts +2 -0
  97. package/dist/src/audit/report.js +32 -0
  98. package/dist/src/audit/report.js.map +1 -0
  99. package/dist/src/audit/rules/accessibility-name.d.ts +2 -0
  100. package/dist/src/audit/rules/accessibility-name.js +64 -0
  101. package/dist/src/audit/rules/accessibility-name.js.map +1 -0
  102. package/dist/src/audit/rules/component-size.d.ts +2 -0
  103. package/dist/src/audit/rules/component-size.js +27 -0
  104. package/dist/src/audit/rules/component-size.js.map +1 -0
  105. package/dist/src/audit/rules/credential-placeholder.d.ts +2 -0
  106. package/dist/src/audit/rules/credential-placeholder.js +83 -0
  107. package/dist/src/audit/rules/credential-placeholder.js.map +1 -0
  108. package/dist/src/audit/rules/helpers.d.ts +16 -0
  109. package/dist/src/audit/rules/helpers.js +64 -0
  110. package/dist/src/audit/rules/helpers.js.map +1 -0
  111. package/dist/src/audit/rules/index.d.ts +2 -0
  112. package/dist/src/audit/rules/index.js +23 -0
  113. package/dist/src/audit/rules/index.js.map +1 -0
  114. package/dist/src/audit/rules/interactive-integrity.d.ts +2 -0
  115. package/dist/src/audit/rules/interactive-integrity.js +111 -0
  116. package/dist/src/audit/rules/interactive-integrity.js.map +1 -0
  117. package/dist/src/audit/rules/mixed-responsibilities.d.ts +2 -0
  118. package/dist/src/audit/rules/mixed-responsibilities.js +39 -0
  119. package/dist/src/audit/rules/mixed-responsibilities.js.map +1 -0
  120. package/dist/src/audit/rules/mock-production-path.d.ts +2 -0
  121. package/dist/src/audit/rules/mock-production-path.js +39 -0
  122. package/dist/src/audit/rules/mock-production-path.js.map +1 -0
  123. package/dist/src/audit/rules/network-state.d.ts +2 -0
  124. package/dist/src/audit/rules/network-state.js +39 -0
  125. package/dist/src/audit/rules/network-state.js.map +1 -0
  126. package/dist/src/audit/rules/operational-claim.d.ts +2 -0
  127. package/dist/src/audit/rules/operational-claim.js +94 -0
  128. package/dist/src/audit/rules/operational-claim.js.map +1 -0
  129. package/dist/src/audit/rules/placeholder-interaction.d.ts +2 -0
  130. package/dist/src/audit/rules/placeholder-interaction.js +46 -0
  131. package/dist/src/audit/rules/placeholder-interaction.js.map +1 -0
  132. package/dist/src/audit/rules/raw-design-values.d.ts +2 -0
  133. package/dist/src/audit/rules/raw-design-values.js +97 -0
  134. package/dist/src/audit/rules/raw-design-values.js.map +1 -0
  135. package/dist/src/audit/scanner.d.ts +2 -0
  136. package/dist/src/audit/scanner.js +215 -0
  137. package/dist/src/audit/scanner.js.map +1 -0
  138. package/dist/src/audit/types.d.ts +62 -0
  139. package/dist/src/audit/types.js +2 -0
  140. package/dist/src/audit/types.js.map +1 -0
  141. package/dist/src/comparison/evaluator.d.ts +2 -0
  142. package/dist/src/comparison/evaluator.js +478 -0
  143. package/dist/src/comparison/evaluator.js.map +1 -0
  144. package/dist/src/comparison/loader.d.ts +3 -0
  145. package/dist/src/comparison/loader.js +26 -0
  146. package/dist/src/comparison/loader.js.map +1 -0
  147. package/dist/src/comparison/maintainer.d.ts +47 -0
  148. package/dist/src/comparison/maintainer.js +218 -0
  149. package/dist/src/comparison/maintainer.js.map +1 -0
  150. package/dist/src/comparison/report.d.ts +2 -0
  151. package/dist/src/comparison/report.js +48 -0
  152. package/dist/src/comparison/report.js.map +1 -0
  153. package/dist/src/comparison/schema.d.ts +464 -0
  154. package/dist/src/comparison/schema.js +502 -0
  155. package/dist/src/comparison/schema.js.map +1 -0
  156. package/dist/src/contracts/archetypes.d.ts +21 -0
  157. package/dist/src/contracts/archetypes.js +102 -0
  158. package/dist/src/contracts/archetypes.js.map +1 -0
  159. package/dist/src/contracts/journeys.d.ts +7 -0
  160. package/dist/src/contracts/journeys.js +32 -0
  161. package/dist/src/contracts/journeys.js.map +1 -0
  162. package/dist/src/contracts/report.d.ts +2 -0
  163. package/dist/src/contracts/report.js +33 -0
  164. package/dist/src/contracts/report.js.map +1 -0
  165. package/dist/src/contracts/schema.d.ts +1038 -0
  166. package/dist/src/contracts/schema.js +385 -0
  167. package/dist/src/contracts/schema.js.map +1 -0
  168. package/dist/src/contracts/validator.d.ts +12 -0
  169. package/dist/src/contracts/validator.js +303 -0
  170. package/dist/src/contracts/validator.js.map +1 -0
  171. package/dist/src/corpus/evaluator.d.ts +2 -0
  172. package/dist/src/corpus/evaluator.js +203 -0
  173. package/dist/src/corpus/evaluator.js.map +1 -0
  174. package/dist/src/corpus/loader.d.ts +2 -0
  175. package/dist/src/corpus/loader.js +20 -0
  176. package/dist/src/corpus/loader.js.map +1 -0
  177. package/dist/src/corpus/report.d.ts +2 -0
  178. package/dist/src/corpus/report.js +33 -0
  179. package/dist/src/corpus/report.js.map +1 -0
  180. package/dist/src/corpus/schema.d.ts +316 -0
  181. package/dist/src/corpus/schema.js +269 -0
  182. package/dist/src/corpus/schema.js.map +1 -0
  183. package/dist/src/design-intelligence/loader.d.ts +2 -0
  184. package/dist/src/design-intelligence/loader.js +21 -0
  185. package/dist/src/design-intelligence/loader.js.map +1 -0
  186. package/dist/src/design-intelligence/report.d.ts +2 -0
  187. package/dist/src/design-intelligence/report.js +36 -0
  188. package/dist/src/design-intelligence/report.js.map +1 -0
  189. package/dist/src/design-intelligence/schema.d.ts +838 -0
  190. package/dist/src/design-intelligence/schema.js +854 -0
  191. package/dist/src/design-intelligence/schema.js.map +1 -0
  192. package/dist/src/design-intelligence/validator.d.ts +2 -0
  193. package/dist/src/design-intelligence/validator.js +1371 -0
  194. package/dist/src/design-intelligence/validator.js.map +1 -0
  195. package/dist/src/design-plan/compiler.d.ts +8 -0
  196. package/dist/src/design-plan/compiler.js +288 -0
  197. package/dist/src/design-plan/compiler.js.map +1 -0
  198. package/dist/src/design-plan/report.d.ts +2 -0
  199. package/dist/src/design-plan/report.js +28 -0
  200. package/dist/src/design-plan/report.js.map +1 -0
  201. package/dist/src/design-plan/schema.d.ts +202 -0
  202. package/dist/src/design-plan/schema.js +76 -0
  203. package/dist/src/design-plan/schema.js.map +1 -0
  204. package/dist/src/generation/loader.d.ts +2 -0
  205. package/dist/src/generation/loader.js +21 -0
  206. package/dist/src/generation/loader.js.map +1 -0
  207. package/dist/src/generation/policy.d.ts +12 -0
  208. package/dist/src/generation/policy.js +62 -0
  209. package/dist/src/generation/policy.js.map +1 -0
  210. package/dist/src/generation/react-typescript.d.ts +6 -0
  211. package/dist/src/generation/react-typescript.js +538 -0
  212. package/dist/src/generation/react-typescript.js.map +1 -0
  213. package/dist/src/generation/report.d.ts +2 -0
  214. package/dist/src/generation/report.js +21 -0
  215. package/dist/src/generation/report.js.map +1 -0
  216. package/dist/src/generation/schema.d.ts +44 -0
  217. package/dist/src/generation/schema.js +50 -0
  218. package/dist/src/generation/schema.js.map +1 -0
  219. package/dist/src/generation/templates/tokens.d.ts +1 -0
  220. package/dist/src/generation/templates/tokens.js +59 -0
  221. package/dist/src/generation/templates/tokens.js.map +1 -0
  222. package/dist/src/heuristics/evaluator.d.ts +2 -0
  223. package/dist/src/heuristics/evaluator.js +65 -0
  224. package/dist/src/heuristics/evaluator.js.map +1 -0
  225. package/dist/src/heuristics/loader.d.ts +2 -0
  226. package/dist/src/heuristics/loader.js +21 -0
  227. package/dist/src/heuristics/loader.js.map +1 -0
  228. package/dist/src/heuristics/report.d.ts +3 -0
  229. package/dist/src/heuristics/report.js +31 -0
  230. package/dist/src/heuristics/report.js.map +1 -0
  231. package/dist/src/heuristics/schema.d.ts +198 -0
  232. package/dist/src/heuristics/schema.js +197 -0
  233. package/dist/src/heuristics/schema.js.map +1 -0
  234. package/dist/src/information-design/loader.d.ts +2 -0
  235. package/dist/src/information-design/loader.js +21 -0
  236. package/dist/src/information-design/loader.js.map +1 -0
  237. package/dist/src/information-design/report.d.ts +2 -0
  238. package/dist/src/information-design/report.js +27 -0
  239. package/dist/src/information-design/report.js.map +1 -0
  240. package/dist/src/information-design/schema.d.ts +370 -0
  241. package/dist/src/information-design/schema.js +329 -0
  242. package/dist/src/information-design/schema.js.map +1 -0
  243. package/dist/src/information-design/validator.d.ts +2 -0
  244. package/dist/src/information-design/validator.js +242 -0
  245. package/dist/src/information-design/validator.js.map +1 -0
  246. package/dist/src/interface-trust/loader.d.ts +2 -0
  247. package/dist/src/interface-trust/loader.js +21 -0
  248. package/dist/src/interface-trust/loader.js.map +1 -0
  249. package/dist/src/interface-trust/report.d.ts +2 -0
  250. package/dist/src/interface-trust/report.js +26 -0
  251. package/dist/src/interface-trust/report.js.map +1 -0
  252. package/dist/src/interface-trust/schema.d.ts +299 -0
  253. package/dist/src/interface-trust/schema.js +238 -0
  254. package/dist/src/interface-trust/schema.js.map +1 -0
  255. package/dist/src/interface-trust/validator.d.ts +2 -0
  256. package/dist/src/interface-trust/validator.js +283 -0
  257. package/dist/src/interface-trust/validator.js.map +1 -0
  258. package/dist/src/portfolio/adapter-report.d.ts +3 -0
  259. package/dist/src/portfolio/adapter-report.js +38 -0
  260. package/dist/src/portfolio/adapter-report.js.map +1 -0
  261. package/dist/src/portfolio/adapters.d.ts +37 -0
  262. package/dist/src/portfolio/adapters.js +325 -0
  263. package/dist/src/portfolio/adapters.js.map +1 -0
  264. package/dist/src/portfolio/evidence.d.ts +9 -0
  265. package/dist/src/portfolio/evidence.js +233 -0
  266. package/dist/src/portfolio/evidence.js.map +1 -0
  267. package/dist/src/portfolio/files.d.ts +8 -0
  268. package/dist/src/portfolio/files.js +77 -0
  269. package/dist/src/portfolio/files.js.map +1 -0
  270. package/dist/src/portfolio/fixture-server.d.ts +11 -0
  271. package/dist/src/portfolio/fixture-server.js +131 -0
  272. package/dist/src/portfolio/fixture-server.js.map +1 -0
  273. package/dist/src/portfolio/loader.d.ts +2 -0
  274. package/dist/src/portfolio/loader.js +21 -0
  275. package/dist/src/portfolio/loader.js.map +1 -0
  276. package/dist/src/portfolio/mcp.d.ts +186 -0
  277. package/dist/src/portfolio/mcp.js +117 -0
  278. package/dist/src/portfolio/mcp.js.map +1 -0
  279. package/dist/src/portfolio/promotion-schema.d.ts +220 -0
  280. package/dist/src/portfolio/promotion-schema.js +148 -0
  281. package/dist/src/portfolio/promotion-schema.js.map +1 -0
  282. package/dist/src/portfolio/promotion.d.ts +4 -0
  283. package/dist/src/portfolio/promotion.js +160 -0
  284. package/dist/src/portfolio/promotion.js.map +1 -0
  285. package/dist/src/portfolio/qualification-schema.d.ts +268 -0
  286. package/dist/src/portfolio/qualification-schema.js +112 -0
  287. package/dist/src/portfolio/qualification-schema.js.map +1 -0
  288. package/dist/src/portfolio/qualification.d.ts +4 -0
  289. package/dist/src/portfolio/qualification.js +157 -0
  290. package/dist/src/portfolio/qualification.js.map +1 -0
  291. package/dist/src/portfolio/registry.d.ts +34 -0
  292. package/dist/src/portfolio/registry.js +240 -0
  293. package/dist/src/portfolio/registry.js.map +1 -0
  294. package/dist/src/portfolio/report.d.ts +4 -0
  295. package/dist/src/portfolio/report.js +47 -0
  296. package/dist/src/portfolio/report.js.map +1 -0
  297. package/dist/src/portfolio/run-schema.d.ts +135 -0
  298. package/dist/src/portfolio/run-schema.js +81 -0
  299. package/dist/src/portfolio/run-schema.js.map +1 -0
  300. package/dist/src/portfolio/runner.d.ts +118 -0
  301. package/dist/src/portfolio/runner.js +423 -0
  302. package/dist/src/portfolio/runner.js.map +1 -0
  303. package/dist/src/portfolio/schema.d.ts +251 -0
  304. package/dist/src/portfolio/schema.js +317 -0
  305. package/dist/src/portfolio/schema.js.map +1 -0
  306. package/dist/src/portfolio/snapshot.d.ts +89 -0
  307. package/dist/src/portfolio/snapshot.js +548 -0
  308. package/dist/src/portfolio/snapshot.js.map +1 -0
  309. package/dist/src/portfolio/taxonomy-schema.d.ts +215 -0
  310. package/dist/src/portfolio/taxonomy-schema.js +74 -0
  311. package/dist/src/portfolio/taxonomy-schema.js.map +1 -0
  312. package/dist/src/portfolio/taxonomy.d.ts +5 -0
  313. package/dist/src/portfolio/taxonomy.js +236 -0
  314. package/dist/src/portfolio/taxonomy.js.map +1 -0
  315. package/dist/src/portfolio/vault.d.ts +53 -0
  316. package/dist/src/portfolio/vault.js +176 -0
  317. package/dist/src/portfolio/vault.js.map +1 -0
  318. package/dist/src/product-brief/loader.d.ts +2 -0
  319. package/dist/src/product-brief/loader.js +21 -0
  320. package/dist/src/product-brief/loader.js.map +1 -0
  321. package/dist/src/product-brief/report.d.ts +2 -0
  322. package/dist/src/product-brief/report.js +22 -0
  323. package/dist/src/product-brief/report.js.map +1 -0
  324. package/dist/src/product-brief/schema.d.ts +367 -0
  325. package/dist/src/product-brief/schema.js +272 -0
  326. package/dist/src/product-brief/schema.js.map +1 -0
  327. package/dist/src/product-brief/validator.d.ts +2 -0
  328. package/dist/src/product-brief/validator.js +251 -0
  329. package/dist/src/product-brief/validator.js.map +1 -0
  330. package/dist/src/product.d.ts +7 -0
  331. package/dist/src/product.js +28 -0
  332. package/dist/src/product.js.map +1 -0
  333. package/dist/src/quality-gate/report.d.ts +2 -0
  334. package/dist/src/quality-gate/report.js +46 -0
  335. package/dist/src/quality-gate/report.js.map +1 -0
  336. package/dist/src/quality-gate/runner.d.ts +2 -0
  337. package/dist/src/quality-gate/runner.js +175 -0
  338. package/dist/src/quality-gate/runner.js.map +1 -0
  339. package/dist/src/quality-gate/schema.d.ts +75 -0
  340. package/dist/src/quality-gate/schema.js +37 -0
  341. package/dist/src/quality-gate/schema.js.map +1 -0
  342. package/dist/src/quality-gate/types.d.ts +49 -0
  343. package/dist/src/quality-gate/types.js +2 -0
  344. package/dist/src/quality-gate/types.js.map +1 -0
  345. package/dist/src/repair/loader.d.ts +2 -0
  346. package/dist/src/repair/loader.js +11 -0
  347. package/dist/src/repair/loader.js.map +1 -0
  348. package/dist/src/repair/policy.d.ts +16 -0
  349. package/dist/src/repair/policy.js +65 -0
  350. package/dist/src/repair/policy.js.map +1 -0
  351. package/dist/src/repair/report.d.ts +2 -0
  352. package/dist/src/repair/report.js +32 -0
  353. package/dist/src/repair/report.js.map +1 -0
  354. package/dist/src/repair/runner.d.ts +17 -0
  355. package/dist/src/repair/runner.js +511 -0
  356. package/dist/src/repair/runner.js.map +1 -0
  357. package/dist/src/repair/schema.d.ts +264 -0
  358. package/dist/src/repair/schema.js +202 -0
  359. package/dist/src/repair/schema.js.map +1 -0
  360. package/dist/src/retrieval/report.d.ts +2 -0
  361. package/dist/src/retrieval/report.js +21 -0
  362. package/dist/src/retrieval/report.js.map +1 -0
  363. package/dist/src/retrieval/schema.d.ts +123 -0
  364. package/dist/src/retrieval/schema.js +77 -0
  365. package/dist/src/retrieval/schema.js.map +1 -0
  366. package/dist/src/retrieval/search.d.ts +26 -0
  367. package/dist/src/retrieval/search.js +415 -0
  368. package/dist/src/retrieval/search.js.map +1 -0
  369. package/dist/src/runtime/advanced-checks.d.ts +6 -0
  370. package/dist/src/runtime/advanced-checks.js +487 -0
  371. package/dist/src/runtime/advanced-checks.js.map +1 -0
  372. package/dist/src/runtime/composition-checks.d.ts +5 -0
  373. package/dist/src/runtime/composition-checks.js +307 -0
  374. package/dist/src/runtime/composition-checks.js.map +1 -0
  375. package/dist/src/runtime/interface-checks.d.ts +12 -0
  376. package/dist/src/runtime/interface-checks.js +224 -0
  377. package/dist/src/runtime/interface-checks.js.map +1 -0
  378. package/dist/src/runtime/policy.d.ts +13 -0
  379. package/dist/src/runtime/policy.js +97 -0
  380. package/dist/src/runtime/policy.js.map +1 -0
  381. package/dist/src/runtime/report.d.ts +2 -0
  382. package/dist/src/runtime/report.js +48 -0
  383. package/dist/src/runtime/report.js.map +1 -0
  384. package/dist/src/runtime/schema.d.ts +406 -0
  385. package/dist/src/runtime/schema.js +308 -0
  386. package/dist/src/runtime/schema.js.map +1 -0
  387. package/dist/src/runtime/types.d.ts +177 -0
  388. package/dist/src/runtime/types.js +2 -0
  389. package/dist/src/runtime/types.js.map +1 -0
  390. package/dist/src/runtime/verifier.d.ts +2 -0
  391. package/dist/src/runtime/verifier.js +1201 -0
  392. package/dist/src/runtime/verifier.js.map +1 -0
  393. package/dist/src/server.d.ts +2 -0
  394. package/dist/src/server.js +1352 -0
  395. package/dist/src/server.js.map +1 -0
  396. package/docs/installation.md +337 -0
  397. package/knowledge-base/INDEX.md +285 -0
  398. package/knowledge-base/benchmarks/aegisops/CALIBRATION.md +52 -0
  399. package/knowledge-base/benchmarks/aegisops/MANIFEST.md +56 -0
  400. package/knowledge-base/benchmarks/aegisops/SOURCE-EVIDENCE.md +45 -0
  401. package/knowledge-base/benchmarks/aegisops/acceptance-criteria.md +42 -0
  402. package/knowledge-base/benchmarks/aegisops/anti-patterns.md +19 -0
  403. package/knowledge-base/benchmarks/aegisops/attestations.template.yaml +3 -0
  404. package/knowledge-base/benchmarks/aegisops/attestations.yaml +115 -0
  405. package/knowledge-base/benchmarks/aegisops/journeys.json +91 -0
  406. package/knowledge-base/benchmarks/aegisops/product-contract.yaml +328 -0
  407. package/knowledge-base/benchmarks/azure-optimizer/SOURCE-EVIDENCE.md +26 -0
  408. package/knowledge-base/benchmarks/azure-optimizer/V2-IMPLEMENTATION.md +39 -0
  409. package/knowledge-base/benchmarks/azure-optimizer/acceptance-criteria.md +23 -0
  410. package/knowledge-base/benchmarks/azure-optimizer/anti-patterns.md +13 -0
  411. package/knowledge-base/benchmarks/azure-optimizer/journeys.json +88 -0
  412. package/knowledge-base/benchmarks/azure-optimizer/product-contract.yaml +216 -0
  413. package/knowledge-base/benchmarks/azure-optimizer/v2-human-review-methodology.yaml +171 -0
  414. package/knowledge-base/benchmarks/azure-optimizer/v2-journeys.json +139 -0
  415. package/knowledge-base/benchmarks/corpus/PROVENANCE.md +21 -0
  416. package/knowledge-base/benchmarks/corpus/README.md +30 -0
  417. package/knowledge-base/benchmarks/corpus/cases/anti-slop-negative/package.json +9 -0
  418. package/knowledge-base/benchmarks/corpus/cases/anti-slop-negative/src/FakeDashboard.tsx +10 -0
  419. package/knowledge-base/benchmarks/corpus/cases/anti-slop-positive/package.json +9 -0
  420. package/knowledge-base/benchmarks/corpus/cases/anti-slop-positive/src/Progress.tsx +15 -0
  421. package/knowledge-base/benchmarks/corpus/cases/architecture-negative/package.json +9 -0
  422. package/knowledge-base/benchmarks/corpus/cases/architecture-negative/src/OperationsPanel.tsx +40 -0
  423. package/knowledge-base/benchmarks/corpus/cases/architecture-positive/package.json +9 -0
  424. package/knowledge-base/benchmarks/corpus/cases/architecture-positive/src/Dashboard.tsx +17 -0
  425. package/knowledge-base/benchmarks/corpus/cases/architecture-positive/src/theme.css +15 -0
  426. package/knowledge-base/benchmarks/corpus/cases/task-incomplete/SOURCE-EVIDENCE.md +3 -0
  427. package/knowledge-base/benchmarks/corpus/cases/task-incomplete/journeys.json +20 -0
  428. package/knowledge-base/benchmarks/corpus/cases/task-incomplete/product-contract.yaml +78 -0
  429. package/knowledge-base/benchmarks/corpus/corpus.schema.yaml +159 -0
  430. package/knowledge-base/benchmarks/corpus/corpus.yaml +209 -0
  431. package/knowledge-base/benchmarks/interface-quality/README.md +26 -0
  432. package/knowledge-base/benchmarks/interface-quality/SOLO-MAINTAINER-TRACK.md +35 -0
  433. package/knowledge-base/benchmarks/interface-quality/comparison-methodology-v1.1.schema.yaml +288 -0
  434. package/knowledge-base/benchmarks/interface-quality/comparison-methodology.schema.yaml +235 -0
  435. package/knowledge-base/benchmarks/interface-quality/comparison-methodology.template.yaml +181 -0
  436. package/knowledge-base/benchmarks/interface-quality/evidence/example-runtime-report.json +11 -0
  437. package/knowledge-base/benchmarks/interface-quality/review-session.schema.yaml +14 -0
  438. package/knowledge-base/benchmarks/interface-quality/review.schema.yaml +296 -0
  439. package/knowledge-base/benchmarks/interface-quality/review.template.yaml +43 -0
  440. package/knowledge-base/benchmarks/portfolio-corpus/ADAPTERS.md +68 -0
  441. package/knowledge-base/benchmarks/portfolio-corpus/PORTFOLIO-RUNNER.md +131 -0
  442. package/knowledge-base/benchmarks/portfolio-corpus/PRODUCT-TASK-CONTRACTS.md +29 -0
  443. package/knowledge-base/benchmarks/portfolio-corpus/PROMOTED-RULES.md +31 -0
  444. package/knowledge-base/benchmarks/portfolio-corpus/archetype-profiles.yaml +26 -0
  445. package/knowledge-base/benchmarks/portfolio-corpus/product-task-profile.schema.yaml +105 -0
  446. package/knowledge-base/benchmarks/portfolio-corpus/registry.schema.yaml +188 -0
  447. package/knowledge-base/benchmarks/portfolio-corpus/registry.template.yaml +63 -0
  448. package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/component-size-abstention.json +10 -0
  449. package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/component-size-negative.json +10 -0
  450. package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/component-size-positive.json +10 -0
  451. package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/interactive-integrity-abstention.json +10 -0
  452. package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/interactive-integrity-negative.json +10 -0
  453. package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/interactive-integrity-positive.json +10 -0
  454. package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/raw-design-values-abstention.json +10 -0
  455. package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/raw-design-values-negative.json +10 -0
  456. package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/raw-design-values-positive.json +10 -0
  457. package/knowledge-base/benchmarks/portfolio-corpus/rule-holdout-evaluation.template.json +14 -0
  458. package/knowledge-base/benchmarks/portfolio-corpus/rule-promotion-evidence.template.json +24 -0
  459. package/knowledge-base/benchmarks/portfolio-corpus/v3-command-evidence.template.json +17 -0
  460. package/knowledge-base/benchmarks/portfolio-corpus/v3-qualification-evidence.template.json +29 -0
  461. package/knowledge-base/benchmarks/scenestart/CALIBRATION.md +95 -0
  462. package/knowledge-base/benchmarks/scenestart/MANIFEST.md +53 -0
  463. package/knowledge-base/benchmarks/scenestart/SOURCE-EVIDENCE.md +43 -0
  464. package/knowledge-base/benchmarks/scenestart/acceptance-criteria.md +59 -0
  465. package/knowledge-base/benchmarks/scenestart/anti-patterns.md +26 -0
  466. package/knowledge-base/benchmarks/scenestart/attestations.template.yaml +3 -0
  467. package/knowledge-base/benchmarks/scenestart/attestations.yaml +21 -0
  468. package/knowledge-base/benchmarks/scenestart/human-review.md +99 -0
  469. package/knowledge-base/benchmarks/scenestart/human-review.template.md +105 -0
  470. package/knowledge-base/benchmarks/scenestart/journeys.json +141 -0
  471. package/knowledge-base/benchmarks/scenestart/product-contract.yaml +427 -0
  472. package/knowledge-base/dependencies.yaml +69 -0
  473. package/knowledge-base/design-intelligence/MASTER.md +87 -0
  474. package/knowledge-base/design-intelligence/asset-generation.md +66 -0
  475. package/knowledge-base/design-intelligence/brand-systems.md +69 -0
  476. package/knowledge-base/design-intelligence/closed-loop-repair.md +95 -0
  477. package/knowledge-base/design-intelligence/design-deliverable.schema.yaml +1194 -0
  478. package/knowledge-base/design-intelligence/design-deliverable.template.yaml +591 -0
  479. package/knowledge-base/design-intelligence/design-plan.md +78 -0
  480. package/knowledge-base/design-intelligence/design-plan.schema.yaml +621 -0
  481. package/knowledge-base/design-intelligence/figma-production.md +63 -0
  482. package/knowledge-base/design-intelligence/generation-adapter.md +72 -0
  483. package/knowledge-base/design-intelligence/generation-adapter.schema.yaml +47 -0
  484. package/knowledge-base/design-intelligence/iconography.md +46 -0
  485. package/knowledge-base/design-intelligence/information-design.md +104 -0
  486. package/knowledge-base/design-intelligence/information-design.schema.yaml +390 -0
  487. package/knowledge-base/design-intelligence/information-design.template.yaml +281 -0
  488. package/knowledge-base/design-intelligence/interaction-recovery-verification.md +72 -0
  489. package/knowledge-base/design-intelligence/interface-trust.md +103 -0
  490. package/knowledge-base/design-intelligence/interface-trust.schema.yaml +263 -0
  491. package/knowledge-base/design-intelligence/interface-trust.template.yaml +173 -0
  492. package/knowledge-base/design-intelligence/licensing-and-provenance.md +59 -0
  493. package/knowledge-base/design-intelligence/presentation-design.md +56 -0
  494. package/knowledge-base/design-intelligence/product-design-brief.md +67 -0
  495. package/knowledge-base/design-intelligence/product-design-brief.schema.yaml +279 -0
  496. package/knowledge-base/design-intelligence/product-design-brief.template.yaml +225 -0
  497. package/knowledge-base/design-intelligence/repair-request.schema.yaml +95 -0
  498. package/knowledge-base/design-intelligence/repair-request.template.yaml +39 -0
  499. package/knowledge-base/design-intelligence/visual-accessibility.md +56 -0
  500. package/knowledge-base/design-intelligence/visual-polish.md +172 -0
  501. package/knowledge-base/maintained/architecture/MASTER.md +22 -0
  502. package/knowledge-base/maintained/architecture/component-boundaries.md +30 -0
  503. package/knowledge-base/maintained/architecture/product-platforms.md +25 -0
  504. package/knowledge-base/maintained/architecture/quality-attributes-and-evaluation.md +35 -0
  505. package/knowledge-base/maintained/product-patterns/MASTER.md +10 -0
  506. package/knowledge-base/maintained/product-patterns/ai-workspaces.md +26 -0
  507. package/knowledge-base/maintained/product-patterns/operational-dashboards.md +22 -0
  508. package/knowledge-base/provenance.yaml +196 -0
  509. package/knowledge-base/retrieval-scope.yaml +43 -0
  510. package/knowledge-base/usability-evaluation/HEURISTIC_EVALUATION.md +115 -0
  511. package/knowledge-base/usability-evaluation/heuristic-review.schema.yaml +210 -0
  512. package/knowledge-base/usability-evaluation/heuristic-review.template.yaml +37 -0
  513. package/package.json +133 -0
package/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026 ZtotheZ
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
12
+ SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
14
+ OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
15
+ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,448 @@
1
+ # ZtotheZ Design Engineering System
2
+
3
+ [![Quality](https://github.com/ztothez/ztothez-design-engineering/actions/workflows/quality.yml/badge.svg)](https://github.com/ztothez/ztothez-design-engineering/actions/workflows/quality.yml)
4
+
5
+ ZtotheZ Design Engineering is a local-first Agent Skill, MCP server, and deterministic quality gate for building production UI and UX systems. It combines product semantics, software architecture, usability evaluation, browser verification, and evidence-backed acceptance criteria.
6
+
7
+ This project focuses on design engineering instead of style recommendation. It checks whether an interface supports real tasks, exposes coherent states, uses maintainable component boundaries, remains accessible, and produces verifiable evidence.
8
+
9
+ ## Current Capabilities
10
+
11
+ - Production-ready Agent Skill in [`SKILL.md`](SKILL.md).
12
+ - Scoped MCP access to architecture, Figma, design-system, UX-pattern, and usability guidance.
13
+ - Independently authored brand, Figma production, asset-generation, iconography, presentation, licensing, and visual-accessibility modules.
14
+ - Versioned product design briefs that block generation when users, tasks, data behavior, recovery, assumptions, or acceptance evidence are materially undefined.
15
+ - Versioned design-deliverable manifests with deterministic visual direction, semantic token, typography, composition, density, state, motion, chart, rendered-evidence, contrast, provenance, icon, and presentation validation.
16
+ - Versioned interface-trust contracts for data mode, connection, result origin, freshness, fallback disclosure, and provenance-preserving records.
17
+ - Versioned operational information-design contracts for decision metrics, evidence-backed findings, chart purpose, hierarchy, exceptional states, and scalable collections.
18
+ - A bounded nine-stage interface workflow linking product task, truthful state, information hierarchy, interaction states, visual direction, semantic tokens, implementation, automated evidence, and attributable human review.
19
+ - Repository architecture audits for coupling, component size, raw design values, mock production paths, network states, accessible names, and placeholder interactions.
20
+ - Structured heuristic reviews with evidence provenance and severity-based acceptance candidates.
21
+ - Browser verification for responsive layout, clipping, overlap, focus, contrast, target sizing, keyboard behavior, text resizing, reflow, reduced motion, media, console errors, and network failures.
22
+ - Opt-in V2 browser contracts for persistent data-mode disclosure, trust-stage and fixture-state coverage, chart names and alternatives, masked dynamic regions, and checksum-based screenshot regression detection.
23
+ - Product contracts with declarative task journeys and acceptance criteria.
24
+ - Consolidated quality gates and multi-profile release decisions.
25
+ - Executable AegisOPS and SceneStart benchmark contracts.
26
+ - Versioned positive and negative corpus benchmarks with provenance, per-dimension scoring, recommendation MRR, and explicit abstention checks.
27
+ - Exact provenance and dependency inventories with active-reference isolation checks.
28
+ - A self-contained offline runtime with approved knowledge, a serialized retrieval index, production dependencies, and SHA-256 integrity evidence.
29
+ - GitHub Actions verification with retained fixture evidence.
30
+ - A local-only portfolio registry and disposable snapshot boundary for non-destructive cross-product benchmarking.
31
+
32
+ Ranked BM25 knowledge retrieval and exact filename reads are available now. The versioned retrieval scope contains only explicitly approved distributable files and excludes local raw research and legacy archives.
33
+
34
+ ## Requirements
35
+
36
+ - Node.js 22 or newer
37
+ - npm
38
+ - Chromium for browser verification
39
+ - Linux, macOS, or Windows with a Chromium executable supported by Playwright
40
+
41
+ ## Quick Start
42
+
43
+ ```bash
44
+ git clone https://github.com/ztothez/ztothez-design-engineering.git
45
+ cd ztothez-design-engineering
46
+ npm ci
47
+ npx --no-install playwright-core install chromium
48
+ npm run build
49
+ npm test
50
+ ```
51
+
52
+ Build, install, and verify the distributable package:
53
+
54
+ ```bash
55
+ npm run package:smoke
56
+ npm run release:pack
57
+ npm run release:check
58
+ npm install -g ./.ztothez-design-release/ztothez-design-engineering-2.0.0.tgz
59
+ zz-design --version
60
+ ```
61
+
62
+ See [`docs/installation.md`](docs/installation.md) for source and package installation plus exact setup for Codex, Claude Code, Cursor, Windsurf, Antigravity, GitHub Copilot, Kiro, Qoder, and Lovable.
63
+
64
+ Start the stdio MCP server:
65
+
66
+ ```bash
67
+ npm start
68
+ ```
69
+
70
+ The server writes diagnostics to standard error. Standard output remains reserved for MCP JSON-RPC messages.
71
+
72
+ ## MCP Configuration
73
+
74
+ Build the project first, then register the compiled entrypoint as a stdio MCP server. Use absolute paths in agent configuration files.
75
+
76
+ ```json
77
+ {
78
+ "mcpServers": {
79
+ "ztothez-design-engineering": {
80
+ "command": "node",
81
+ "args": [
82
+ "/absolute/path/to/ztothez-design-engineering/dist/cli/index.js"
83
+ ],
84
+ "env": {
85
+ "ZTOTHEZ_DESIGN_ENGINEERING_ROOT": "/absolute/path/to/ztothez-design-engineering"
86
+ }
87
+ }
88
+ }
89
+ }
90
+ ```
91
+
92
+ Use the equivalent stdio MCP fields in Claude Code, Cursor, Windsurf, Antigravity, GitHub Copilot, Kiro, Codex, Qoder, or another MCP-capable environment. Lovable Desktop can register the same executable as a custom local MCP server.
93
+
94
+ The package declares two equivalent MCP executable names:
95
+
96
+ - `ztothez-design`
97
+ - `zz-design`
98
+
99
+ The release archive is checked against an explicit distribution allowlist and installed into an empty temporary project during `npm run package:smoke`. Raw research and historical sources are not included. `npm run release:check` verifies the offline runtime, checksums, approved retrieval index, and launch path without using the repository's installed packages.
100
+
101
+ ## MCP Tools
102
+
103
+ | Tool | Purpose |
104
+ |---|---|
105
+ | `search_design_knowledge` | Search approved knowledge with deterministic BM25 ranking, source paths, excerpts, confidence, and explicit no-match output. |
106
+ | `evaluate_corpus_benchmark` | Score maintained positive and negative cases for retrieval, abstention, architecture, task completeness, and anti-slop behavior. |
107
+ | `get_architecture_spec` | List or read approved architecture guidance. |
108
+ | `get_figma_system_rules` | List or read Figma and design-system guidance. |
109
+ | `get_design_intelligence` | List or read maintained brand, asset, icon, presentation, licensing, and visual-accessibility modules. |
110
+ | `validate_product_design_brief` | Validate evidence-backed product intent, primary audiences, outcomes, tasks, data, states, assumptions, requirements, and generation readiness. |
111
+ | `compile_design_plan` | Deterministically compile a valid brief into traceable architecture, contract, token, responsive, asset, stage, and verification decisions. |
112
+ | `validate_design_deliverable` | Validate visual polish, semantic tokens, responsive composition, states, motion, charts, evidence readiness, contrast, provenance, icons, and presentations. |
113
+ | `validate_interface_trust` | Validate operational claims, source traceability, fallback and stale states, disconnected recovery, and history or export provenance. |
114
+ | `validate_information_design` | Validate metrics, findings, chart decisions, value states, large collections, operational hierarchy, and answer-flow tasks. |
115
+ | `evaluate_interface_comparison` | Validate anonymous comparison methods, required stages, retained claim evidence, and attributable human or representative-user records. |
116
+ | `get_dashboard_pattern` | List or read approved dashboard and UX patterns. |
117
+ | `get_usability_evaluation` | List or read usability-evaluation guidance and schemas. |
118
+ | `validate_product_contract` | Validate a product archetype, primary tasks, recovery states, narrow paths, sources, journeys, and cross-references. |
119
+ | `evaluate_heuristic_review` | Validate a structured review and derive candidates from unresolved severity 3 and 4 findings. |
120
+ | `audit_repository_architecture` | Scan a repository against deterministic architecture and anti-slop rules. |
121
+ | `verify_ui_runtime` | Run browser checks and capture runtime evidence. |
122
+ | `run_design_quality_gate` | Combine contract, audit, runtime, acceptance, and human evidence into one decision. |
123
+ | `aggregate_design_quality_gates` | Combine required journey-profile reports into a release decision. |
124
+ | `list_portfolio_projects` | List explicitly enabled local benchmark IDs and effective capabilities without source roots. |
125
+ | `get_portfolio_benchmark_report` | Read a completed local benchmark summary without starting commands. |
126
+
127
+ Knowledge tools enforce category boundaries, Markdown-only reads, file-size limits, and path-traversal protection. `SKILL.md` remains authoritative when supporting documents conflict.
128
+
129
+ Search before opening deep reference files:
130
+
131
+ ```text
132
+ Call search_design_knowledge with:
133
+ query: "semantic design tokens for operational status states"
134
+ categories: ["skill", "design-intelligence", "architecture"]
135
+ limit: 5
136
+ ```
137
+
138
+ The search index is defined by `knowledge-base/retrieval-scope.yaml`. A no-match response is a valid result. Do not replace it with content from ignored research or legacy archives.
139
+
140
+ ## Command Line Workflows
141
+
142
+ Validate and inventory the ignored local portfolio registry:
143
+
144
+ ```bash
145
+ zz-design portfolio validate-registry
146
+ zz-design portfolio inventory
147
+ ```
148
+
149
+ Create, verify, and delete a disposable snapshot without running a command in the original project:
150
+
151
+ ```bash
152
+ zz-design portfolio snapshot --project scenestart
153
+ ```
154
+
155
+ Use `--keep` only when an isolated adapter needs the snapshot for a later local stage. The local
156
+ registry lives at `.ztothez-design-local/portfolio-registry.yaml`; snapshots live under
157
+ `.ztothez-design-benchmarks/`. Both are excluded from Git and package output. Linux executable
158
+ stages use Bubblewrap and fail closed when process isolation is unavailable.
159
+
160
+ Run a complete isolated baseline or cohort and verify source integrity:
161
+
162
+ ```bash
163
+ zz-design portfolio baseline --project scenestart --run scenestart-baseline
164
+ zz-design portfolio benchmark --cohort development --run development-001
165
+ zz-design portfolio verify-unchanged --run development-001
166
+ zz-design portfolio report --run development-001
167
+ ```
168
+
169
+ Projects with a declared static fixture and product contract also run browser journeys, the
170
+ consolidated quality gate, optional heuristic review, and checksummed artifact capture.
171
+
172
+ Audit a repository:
173
+
174
+ ```bash
175
+ npm run audit -- --repo PATH_TO_APPLICATION --fail-on error
176
+ ```
177
+
178
+ Validate a product contract:
179
+
180
+ ```bash
181
+ npm run validate-contract -- \
182
+ --contract knowledge-base/benchmarks/aegisops/product-contract.yaml \
183
+ --project-root .
184
+ ```
185
+
186
+ Evaluate a heuristic review:
187
+
188
+ ```bash
189
+ npm run review-heuristics -- \
190
+ --review knowledge-base/usability-evaluation/heuristic-review.template.yaml
191
+ ```
192
+
193
+ Validate a product design brief before planning generation:
194
+
195
+ ```bash
196
+ npm run validate-brief -- \
197
+ --brief knowledge-base/design-intelligence/product-design-brief.template.yaml
198
+ ```
199
+
200
+ The installed CLI provides the same report with `zz-design validate-brief --brief PATH`.
201
+
202
+ Compile the validated brief into a deterministic, traceable design plan:
203
+
204
+ ```bash
205
+ npm run compile-plan -- \
206
+ --brief knowledge-base/design-intelligence/product-design-brief.template.yaml \
207
+ --project-root . \
208
+ --json
209
+ ```
210
+
211
+ The installed CLI equivalent is `zz-design compile-plan`. Planned downstream contracts remain
212
+ provisional rather than being reported as implementation-ready.
213
+
214
+ Generate a new independent React and TypeScript fixture from a ready plan:
215
+
216
+ ```bash
217
+ mkdir -p .ztothez-design-generated
218
+ zz-design generate-react \
219
+ --plan path/to/ready-design-plan.json \
220
+ --generation-root .ztothez-design-generated \
221
+ --output .ztothez-design-generated/example-app \
222
+ --portfolio-registry .ztothez-design-local/portfolio-registry.yaml \
223
+ --json
224
+ ```
225
+
226
+ The output directory must not exist. Generation fails when the plan is not implementation-ready,
227
+ the registry is invalid, a path is symlinked or escaping, or the target overlaps a read-only
228
+ portfolio root. Version 1.0 creates a new independent fixture only; it does not patch an existing
229
+ repository. See `knowledge-base/design-intelligence/generation-adapter.md`.
230
+
231
+ Repair one supported finding in a generated fixture with retained before and after evidence:
232
+
233
+ ```bash
234
+ zz-design repair-react \
235
+ --request path/to/repair-request.yaml \
236
+ --generation-root .ztothez-design-generated \
237
+ --target .ztothez-design-generated/example-app \
238
+ --portfolio-registry .ztothez-design-local/portfolio-registry.yaml \
239
+ --contract knowledge-base/benchmarks/aegisops/product-contract.yaml \
240
+ --project-root . \
241
+ --url http://127.0.0.1:4173 \
242
+ --profile responsive-overview \
243
+ --output .ztothez-design-repair/example \
244
+ --fail-on warning
245
+ ```
246
+
247
+ The URL must be loopback and already running. Repairs are limited to exact, digest-bound
248
+ replacements in generation-manifest-owned files. Repeated or failed verification restores the
249
+ original target and produces an unresolved report. See
250
+ `knowledge-base/design-intelligence/closed-loop-repair.md`.
251
+
252
+ For a versioned browser task contract, `knowledge-base/design-intelligence/interaction-recovery-verification.md`
253
+ adds retained start, success, failure, preserved-state, keyboard, export, and offline checkpoints.
254
+ Only states declared applicable by the task and data model are verified; unsupported automation remains
255
+ an explicit limitation.
256
+
257
+ Validate a design-intelligence deliverable:
258
+
259
+ ```bash
260
+ npm run validate-design -- \
261
+ --manifest knowledge-base/design-intelligence/design-deliverable.template.yaml
262
+ ```
263
+
264
+ Verify an instrumented interface across the maintained responsive matrix and both implemented
265
+ themes:
266
+
267
+ ```bash
268
+ npm run verify-ui -- --url http://127.0.0.1:4173 --color-schemes light,dark
269
+ ```
270
+
271
+ Composition verification is opt-in through `data-ztothez-design-composition="1.0"`. It checks
272
+ decision order, action and region limits, status meaning, evidence-backed visual claims, rendered
273
+ focus, state and chart contrast, and asset metadata without prescribing a universal style.
274
+
275
+ Validate interface trust and data provenance:
276
+
277
+ ```bash
278
+ npm run validate-trust -- \
279
+ --contract knowledge-base/design-intelligence/interface-trust.template.yaml
280
+ ```
281
+
282
+ Validate operational information design:
283
+
284
+ ```bash
285
+ npm run validate-information -- \
286
+ --contract knowledge-base/design-intelligence/information-design.template.yaml
287
+ ```
288
+
289
+ Validate an interface comparison and require complete release evidence:
290
+
291
+ ```bash
292
+ npm run validate-comparison -- \
293
+ --methodology knowledge-base/benchmarks/interface-quality/comparison-methodology.template.yaml \
294
+ --review knowledge-base/benchmarks/interface-quality/review.template.yaml \
295
+ --require-release-ready
296
+ ```
297
+
298
+ Omit `--require-release-ready` while preparing an honest incomplete review. Structural validation can pass while the release decision remains blocked by missing stages or evidence classes.
299
+
300
+ Compile only reviewer-supplied sessions marked `complete`:
301
+
302
+ ```bash
303
+ npm run compile-comparison -- \
304
+ --methodology knowledge-base/benchmarks/azure-optimizer/v2-human-review-methodology.yaml \
305
+ --base-review evidence/interface-quality/azure-v2-review/review.yaml \
306
+ --sessions evidence/interface-quality/azure-v2-review/reviewer-packet/completed-sessions \
307
+ --output evidence/interface-quality/azure-v2-review/review.completed.yaml \
308
+ --require-release-ready
309
+ ```
310
+
311
+ The compiler hashes each source session and reports matrix completeness, counterbalancing, category scores, task metrics, and the anonymous target-versus-comparator decision. It rejects draft templates and never creates human observations.
312
+
313
+ Assess a disclosed maintainer review without claiming independent validation:
314
+
315
+ ```bash
316
+ npm run assess-maintainer -- \
317
+ --methodology knowledge-base/benchmarks/azure-optimizer/v2-human-review-methodology.yaml \
318
+ --review evidence/interface-quality/azure-v2-review/review.completed.yaml \
319
+ --output evidence/interface-quality/azure-v2-review/maintainer-assessment.json \
320
+ --require-engineering-ready
321
+ ```
322
+
323
+ The solo-maintainer track may authorize continued engineering when the target stages and maintainer-scored categories pass. It never changes the anonymous comparison thresholds or converts maintainer evidence into representative-user or external release evidence.
324
+
325
+ Evaluate the maintained system corpus:
326
+
327
+ ```bash
328
+ npm run evaluate-corpus
329
+ ```
330
+
331
+ Verify a running interface:
332
+
333
+ ```bash
334
+ npm run verify-ui -- \
335
+ --url http://127.0.0.1:3000 \
336
+ --journeys knowledge-base/benchmarks/aegisops/journeys.json \
337
+ --profile responsive-overview \
338
+ --output .ztothez-design-runtime/responsive-overview
339
+ ```
340
+
341
+ Create and then compare a screenshot baseline while masking only declared dynamic regions:
342
+
343
+ ```bash
344
+ npm run verify-ui -- \
345
+ --url http://127.0.0.1:3000 \
346
+ --dynamic-selector "[data-runtime-clock]" \
347
+ --screenshot-baseline evidence/runtime/screenshots.json \
348
+ --update-screenshot-baseline
349
+
350
+ npm run verify-ui -- \
351
+ --url http://127.0.0.1:3000 \
352
+ --dynamic-selector "[data-runtime-clock]" \
353
+ --screenshot-baseline evidence/runtime/screenshots.json
354
+ ```
355
+
356
+ Screenshot matching establishes only that the captured pixels and masking policy are unchanged in the current environment. It does not establish visual quality, task success, or approval of an intentional change.
357
+
358
+ When Playwright cannot launch Chromium directly in a managed environment, start Chromium with a
359
+ loopback CDP endpoint and set `ZTOTHEZ_DESIGN_CHROMIUM_CDP_URL` to its HTTP origin. Only loopback
360
+ origins are accepted:
361
+
362
+ ```bash
363
+ chromium --headless --no-sandbox --remote-debugging-address=127.0.0.1 \
364
+ --remote-debugging-port=9222 --user-data-dir=/tmp/ztothez-design-cdp about:blank
365
+
366
+ ZTOTHEZ_DESIGN_CHROMIUM_CDP_URL=http://127.0.0.1:9222 npm run verify-ui -- \
367
+ --url http://127.0.0.1:3000
368
+ ```
369
+
370
+ Run a complete profile quality gate:
371
+
372
+ ```bash
373
+ npm run quality-gate -- \
374
+ --contract knowledge-base/benchmarks/aegisops/product-contract.yaml \
375
+ --repo PATH_TO_APPLICATION \
376
+ --project-root . \
377
+ --url http://127.0.0.1:3000 \
378
+ --profile responsive-overview \
379
+ --output .ztothez-design-quality-gate/responsive-overview \
380
+ --fail-on error
381
+ ```
382
+
383
+ Run `npm run COMMAND -- --help` for the complete options supported by each CLI workflow.
384
+
385
+ ## Evidence Model
386
+
387
+ The system keeps evidence types distinct:
388
+
389
+ 1. Automated evidence records deterministic source, contract, browser, network, and state checks.
390
+ 2. AI-assisted expert evidence identifies likely usability risks but does not represent user behavior.
391
+ 3. Human-expert evidence requires an attributable reviewer.
392
+ 4. Representative-user evidence records observed task performance with appropriate study context.
393
+
394
+ AI agents must never create human attestations or present generated observations as representative-user evidence. Open severity 3 and 4 heuristic findings become acceptance-criterion candidates that require review before contract integration.
395
+
396
+ ## Knowledge Precedence
397
+
398
+ Use sources in this order:
399
+
400
+ 1. Current product requirements and repository behavior.
401
+ 2. Root [`SKILL.md`](SKILL.md).
402
+ 3. The selected benchmark contract and manifest.
403
+ 4. Maintained files in [`knowledge-base/`](knowledge-base/INDEX.md).
404
+ 5. Public standards or official platform documentation when the maintained corpus has a declared gap.
405
+
406
+ Historical research is outside the supported workflow. It is not a runtime dependency, retrieval fallback, implementation authority, or source to copy into production code. The clean-room constraints in [`clean-room-ux-design-spec.md`](clean-room-ux-design-spec.md) govern all new capabilities.
407
+
408
+ ## Repository Layout
409
+
410
+ | Path | Purpose |
411
+ |---|---|
412
+ | `SKILL.md` | Authoritative Agent Skill instructions. |
413
+ | `src/server.ts` | MCP server and tool registration. |
414
+ | `src/audit/` | Static repository audit engine. |
415
+ | `src/runtime/` | Browser verification and evidence capture. |
416
+ | `src/contracts/` | Product-contract and journey validation. |
417
+ | `src/heuristics/` | Structured heuristic-review evaluation. |
418
+ | `src/design-intelligence/` | Design-deliverable schema, provenance, token, contrast, icon, and presentation validation. |
419
+ | `src/interface-trust/` | Interface-state truth, claim-source traceability, and history or export provenance validation. |
420
+ | `src/information-design/` | Operational metric, finding, chart, hierarchy, collection, and answer-flow validation. |
421
+ | `src/product-brief/` | Evidence-backed product intake and generation-readiness validation. |
422
+ | `src/comparison/` | Anonymous comparison, claim-ledger, evidence-integrity, and release-readiness validation. |
423
+ | `src/corpus/` | Versioned corpus loading, deterministic case evaluation, scoring, and reporting. |
424
+ | `src/retrieval/` | Approved-scope Markdown indexing and deterministic BM25 search. |
425
+ | `src/quality-gate/` | Consolidated profile quality gate. |
426
+ | `src/repair/` | Finding-bound generated-fixture repair, rollback, and before/after evidence. |
427
+ | `src/aggregate/` | Multi-profile release aggregation. |
428
+ | `cli/` | Stdio server and command-line entrypoints. |
429
+ | `knowledge-base/` | Approved maintained guidance, schemas, benchmarks, provenance, and dependency records. |
430
+ | `tests/` | Contract, MCP, audit, runtime, and quality-gate regression tests. |
431
+ | `ci/` | Deterministic fixture and product-workflow example. |
432
+ | `.github/workflows/quality.yml` | Active repository quality workflow. |
433
+
434
+ ## Development
435
+
436
+ ```bash
437
+ npm run build
438
+ npm run typecheck
439
+ npm test
440
+ npm run independence:check
441
+ npm run release:check
442
+ ```
443
+
444
+ The active GitHub workflow also validates clean-room isolation, both benchmark contracts, the maintained corpus, packed installation, offline release, an archive-free workspace mirror, and the deterministic browser fixture gate. It uploads the resulting evidence. See [`ci/README.md`](ci/README.md) before adapting the multi-profile workflow to a product repository.
445
+
446
+ ## Project Status
447
+
448
+ All nine V1, V2, and V3 roadmap items are implemented. See [`ROADMAP.md`](ROADMAP.md), [`V2-ROADMAP.md`](V2-ROADMAP.md), and [`V3-ROADMAP.md`](V3-ROADMAP.md) for evidence-backed status and completion criteria. V2 includes an external anonymous human visual comparison of five candidates; it validates the static visual questions asked and does not claim interactive representative-user testing. V4 Items 1 through 5 implement evidence-gated product briefs, deterministic design-plan compilation, contained React and TypeScript fixture generation, rendered visual-composition and asset enforcement, and bounded finding-driven repair with rollback. Item 6 adds versioned executable interaction and recovery checkpoints while preserving the boundary between runtime, human-review, and representative-user evidence. The remaining closed-loop delivery program is defined in [`V4-ROADMAP.md`](V4-ROADMAP.md).
package/ROADMAP.md ADDED
@@ -0,0 +1,127 @@
1
+ # ZtotheZ Design Engineering Roadmap
2
+
3
+ This roadmap tracks the work required to turn the skill, local knowledge base, MCP server, and quality gate into an independently owned design-engineering system. [`SKILL.md`](SKILL.md) remains the authoritative operating instruction; roadmap items describe future engineering work, not capabilities that may be claimed before validation.
4
+
5
+ ## Current Foundation
6
+
7
+ - Usability guidance is available through MCP.
8
+ - Heuristic reviews use a versioned schema with evidence provenance.
9
+ - Browser verification covers responsive integrity, accessibility, focus, contrast, target sizing, text resizing, reflow, and reduced motion.
10
+ - The published repository runs a deterministic GitHub Actions quality workflow and retains fixture-gate evidence.
11
+ - AegisOPS provides the first executable product benchmark.
12
+ - Approved design knowledge is available through deterministic, authority-aware BM25 retrieval with explicit abstention.
13
+ - Independently authored design-intelligence modules and a versioned deliverable manifest provide executable checks for tokens, provenance, visual accessibility, icon semantics, and presentation structure.
14
+ - A versioned positive and negative corpus measures retrieval relevance, abstention, architectural integrity, task completeness, and anti-slop rejection with attributable provenance and release thresholds.
15
+ - Exact provenance, dependency boundaries, archive-free operation, isolated package installation, and offline runtime integrity are release-certified.
16
+
17
+ ## Roadmap Items
18
+
19
+ Status definitions:
20
+
21
+ - **Done:** every stated deliverable has current passing evidence.
22
+ - **Partial:** implementation evidence exists, but at least one stated deliverable or current acceptance condition is incomplete.
23
+ - **Not started:** no implementation of the roadmap-specific capability exists.
24
+
25
+ ### 1. Publish And Activate CI
26
+
27
+ Status: **Done**
28
+
29
+ Initialize and publish the repository, run `.github/workflows/quality.yml` on GitHub, and retain the first complete passing evidence artifact.
30
+
31
+ Evidence: the repository is published at `https://github.com/ztothez/ztothez-design-engineering` with `main` tracking `origin/main`. GitHub Actions run `32947084426` passed build, typecheck, both benchmark-contract validations, all 21 regression tests, the deterministic fixture quality gate, and artifact upload. The retained `ztothez-design-fixture-quality-gate` artifact was created on 2026-08-26 with 14-day retention.
32
+
33
+ ### 2. AegisOPS Product Workflow
34
+
35
+ Status: **Done**
36
+
37
+ Add deterministic `demo-success`, `offline-recovery`, and `responsive-overview` environments to the AegisOPS repository. Run each profile independently and aggregate them into one release decision.
38
+
39
+ Evidence: `knowledge-base/benchmarks/aegisops/` contains the contract and all three journey profiles. `.uix-quality-gate/aegis-release-strict/aggregate-report.json` and `.uix-quality-gate/aegis-release-final/aggregate-report.json` both pass with 3 of 3 profiles and 9 of 9 acceptance criteria verified.
40
+
41
+ ### 3. Resolve AegisOPS Findings
42
+
43
+ Status: **Done**
44
+
45
+ Correct the verified contrast-token and control-size failures, rerun all required profiles, and preserve attributable human-review evidence separately from automated evidence.
46
+
47
+ Evidence: foreground tokens and primary target contracts were corrected without exemptions, and AegisOPS product tests, lint, and production build pass. The current strict reports at `.uix-quality-gate/aegis-demo-v191/`, `.uix-quality-gate/aegis-offline-v191/`, and `.uix-quality-gate/aegis-responsive-v191/` each pass with zero runtime errors and warnings. `.uix-quality-gate/aegis-release-v191/aggregate-report.json` passes with 3 of 3 profiles and 9 of 9 criteria. Existing user-authored attestations remain separate from automated evidence. See `knowledge-base/benchmarks/aegisops/CALIBRATION.md`.
48
+
49
+ ### 4. SceneStart Product Benchmark
50
+
51
+ Status: **Done**
52
+
53
+ Create a second product contract, task journeys, acceptance criteria, anti-patterns, and human-review template for SceneStart. Use it to prove the system generalizes beyond a security-operations dashboard.
54
+
55
+ Evidence: `knowledge-base/benchmarks/scenestart/` contains the contract, four journey profiles, acceptance criteria, anti-patterns, human-review template, source evidence, and calibration. Contract tests pass, multi-route verification is implemented, and CSP-compatible Blob export evidence is covered by regression tests and real Studio and Release profile artifacts. SceneStart accessibility and Workshop-to-Studio state continuity are separately recorded product findings, not missing benchmark deliverables.
56
+
57
+ ### 5. Scoped Knowledge Retrieval
58
+
59
+ Status: **Done**
60
+
61
+ Add deterministic full-text or BM25 retrieval across approved knowledge categories. Return source paths, excerpts, confidence, and explicit no-match results while keeping `SKILL.md` authoritative.
62
+
63
+ Evidence: `knowledge-base/retrieval-scope.yaml` explicitly approves 17 project-owned Markdown files across five categories and marks `SKILL.md` authoritative. `src/retrieval/` builds a deterministic 140-chunk Markdown index, applies BM25 ranking with bounded title and authority boosts, and returns source paths, sections, bounded excerpts, scores, confidence, matched terms, and explicit `no-match` reports. The `search_design_knowledge` MCP tool exposes structured and Markdown output. `tests/fixtures/retrieval-cases.yaml`, `tests/retrieval.test.ts`, and `tests/mcp.test.ts` verify ranking, category isolation, authority precedence, abstention, archive exclusion, category-escape rejection, and MCP behavior. The maintained corpus migration replaced historical architecture, Figma, and UX routes with independently authored modules under `knowledge-base/maintained/` and `knowledge-base/design-intelligence/`. The complete 35-test regression suite passes.
64
+
65
+ ### 6. Installation And Packaging
66
+
67
+ Status: **Done**
68
+
69
+ Package the MCP server and document repeatable installation for Codex, Claude Code, Cursor, Windsurf, Antigravity, GitHub Copilot, Kiro, Qoder, and Lovable.
70
+
71
+ Evidence: package `@ztothez/design-engineering` defines Node.js 22 compatibility, ESM exports, public scoped-package metadata, and the equivalent `ztothez-design` and `zz-design` executable aliases. Its explicit `files` allowlist includes the compiled runtime, authoritative skill, approved retrieval corpus, usability schemas, and benchmark contracts while excluding source archives, raw research, and tests. `npm run package:check` validates every approved retrieval file and benchmark artifact against the packed manifest. `npm run package:smoke` installs the 250-file tarball into an empty temporary project, verifies both CLI metadata contracts, rejects historical knowledge paths, starts the installed server over stdio, lists MCP tools, and exercises architecture, dashboard, retrieval, and corpus operations. `npm run release:pack` also creates a self-contained offline runtime, serialized knowledge index, manifest, and SHA-256 checksums; `npm run release:check` verifies integrity and launches that runtime outside the source tree. `docs/installation.md` documents repeatable setup for Codex, Claude Code, Cursor, Windsurf, Antigravity, GitHub Copilot, Kiro, Qoder, and Lovable Desktop. `.github/workflows/quality.yml` runs the packed-install and offline-release checks and retains the release directory as a CI artifact.
72
+
73
+ ### 7. Design Intelligence Expansion
74
+
75
+ Status: **Done**
76
+
77
+ Add independently authored, structured modules for brand systems, Figma workflows, asset generation, iconography, presentation design, licensing, and visual-accessibility verification.
78
+
79
+ Evidence: `knowledge-base/design-intelligence/` contains an independently authored coordinating module and seven focused modules for brand systems, Figma production, asset generation, iconography, presentation design, licensing and provenance, and visual accessibility. The versioned `design-deliverable.schema.yaml` and passing `design-deliverable.template.yaml` define a portable contract for token architecture, brand references, Figma mappings, asset rights and generation provenance, icon semantics, presentation masters, and mode-aware contrast evidence. `src/design-intelligence/` implements deterministic `ZTDE-DI-*` findings, reference validation, token-cycle detection, WCAG contrast calculations, non-color-cue checks, and explicit limits around rendered proof and legal clearance. The `validate_design_deliverable` MCP tool and `validate-design` CLI expose the workflow with external-root restrictions. `get_design_intelligence` and the approved retrieval manifest expose the maintained guidance without admitting legacy archives. CI validates the maintained template, package checks enforce its distribution allowlist, packed-install smoke testing passes, and the complete 30-test regression suite covers valid, invalid, traversal, retrieval, and MCP behavior.
80
+
81
+ ### 8. Corpus Benchmarking
82
+
83
+ Status: **Done**
84
+
85
+ Build positive and negative benchmark sets from user-owned projects and appropriately licensed sources. Measure recommendation relevance, abstention, architectural integrity, task completeness, and anti-slop rejection.
86
+
87
+ Evidence: `knowledge-base/benchmarks/corpus/` contains a versioned portable schema, executable manifest, provenance record, project-owned synthetic repositories, an incomplete task-contract fixture, and owner-authorized AegisOPS and SceneStart cases. The 13 maintained cases include 8 positive and 5 negative expectations across recommendation relevance, abstention, architectural integrity, task completeness, and anti-slop rejection. The corpus records four provenance sources, including user-owned product evidence and a W3C WCAG 2.2 reference under the W3C Document License 2015 without redistributing specification text. `src/corpus/` implements bounded loading, project-root containment, deterministic case evaluation, per-dimension scoring, mean reciprocal rank, provenance-preserving reports, and strict thresholds. `evaluate_corpus_benchmark` exposes structured MCP results with traversal protection, and `npm run evaluate-corpus` writes JSON and Markdown evidence when given `--output`. Calibration identified and corrected single-generic-term retrieval overmatching. The maintained corpus passes 13 of 13 cases at 100 percent across all five dimensions with recommendation MRR 0.75 against a 0.75 floor. All 35 regression tests, packed-install MCP smoke testing, and the package allowlist pass. The active GitHub workflow evaluates the corpus and is configured to retain its JSON and Markdown reports as a dedicated artifact.
88
+
89
+ ### 9. Clean-Room Independence And Supply Resilience
90
+
91
+ Status: **Done**
92
+
93
+ Implement [`clean-room-ux-design-spec.md`](clean-room-ux-design-spec.md) as an independently owned capability specification. External design products, including UI/UX Pro Max and UX Pilot, are comparative references only; they must not become production dependencies, sources of copied implementation, or authorities over this system.
94
+
95
+ Evidence: the active retrieval and exact-read routes now use independently authored architecture, product-pattern, design-intelligence, and usability modules. `knowledge-base/provenance.yaml` records exact ownership, license, review, and transformation coverage for all 62 shipped guidance artifacts. `knowledge-base/dependencies.yaml` records all seven direct dependency versions, licenses, narrow infrastructure boundaries, fallbacks, and replacement triggers. `npm run independence:check` validates both manifests, audits all 97 locked production packages against the license policy, and scans 137 active files for prohibited archive authority paths. Retrieval and corpus cases preserve explicit no-match behavior and category isolation. `npm run package:smoke` proves the installed package contains no historical knowledge paths and exercises its installed MCP server. `npm run release:pack` creates an offline runtime with 4,243 files from 94 copied production package roots, 17 approved documents, a 140-chunk serialized index, manifest, and checksums; `npm run release:check` verifies it and launches the CLI without repository dependencies. `npm run independence:archive-smoke` creates an isolated workspace with no reference archives and passes build, typecheck, all 35 regressions including MCP and retrieval, corpus evaluation, and the Chromium fixture quality gate. The active CI workflow runs and retains these independence proofs. The ZtotheZ Design Engineering identity remains consistent across the skill, package, MCP server, CLI, rules, reports, and CI.
96
+
97
+ #### Independence Rules
98
+
99
+ 1. Do not import, execute, package, install, or call reference-project code, CLIs, hosted services, catalogs, templates, or update channels from production paths.
100
+ 2. Keep reference repositories removable. The build, tests, MCP server, retrieval, quality gate, generated skill, and installer must continue to work when all reference archives are absent.
101
+ 3. Reimplement observable capabilities from independently designed contracts. Do not copy or translate source code, internal structure, proprietary wording, or unverified assets.
102
+ 4. Build knowledge from independently authored rules, user-owned material, public standards, official platform documentation, and sources with recorded reuse rights.
103
+ 5. Record provenance, license status, version, freshness, and transformation history for every distributable catalog or asset.
104
+ 6. Preserve local-first operation. After installation, core design guidance, retrieval, auditing, and quality-gate behavior must not require a vendor account or remote design service.
105
+ 7. Treat commodity open-source libraries as replaceable infrastructure, not product authorities. Keep them lockfile-pinned, license-audited, isolated behind narrow interfaces, and covered by substitution or fallback plans.
106
+ 8. Maintain explicit no-match and abstention behavior. A missing independent rule must never be silently filled from an archived reference dataset.
107
+ 9. Preserve the independently owned ZtotheZ Design Engineering identity across distributable files and document any future compatibility or installation transition.
108
+
109
+ #### Deliverables
110
+
111
+ - A machine-readable provenance and license manifest for distributable knowledge and assets.
112
+ - A dependency inventory separating strategic capabilities from replaceable infrastructure.
113
+ - CI checks that reject imports and runtime paths into reference archives.
114
+ - Retrieval tests proving archived reference content is excluded from approved search categories.
115
+ - Behavioral compatibility tests based on inputs, outputs, states, and errors rather than reference internals.
116
+ - A product and package identity owned by this project.
117
+ - An offline release bundle containing the authoritative skill, schemas, knowledge indexes, and quality-gate runtime.
118
+
119
+ #### Completion Criteria
120
+
121
+ Item 9 is complete only when reference archives can be moved outside the workspace and all builds, tests, MCP operations, retrieval evaluations, fixture gates, and installation smoke tests still pass. Every shipped knowledge artifact must have acceptable provenance, and no supported workflow may require continued access to a reference vendor or repository.
122
+
123
+ ## Execution Order
124
+
125
+ SceneStart product remediation can proceed separately from skill development. AegisOPS remediation is complete against the current verifier and must be reopened if later product or verifier changes invalidate its evidence.
126
+
127
+ All roadmap items are complete. The Item 9 independence rules remain release constraints for every future change to the skill, maintained knowledge, dependencies, retrieval, quality-gate runtime, packaging, or agent integrations.