@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/V2-ROADMAP.md ADDED
@@ -0,0 +1,431 @@
1
+ # ZtotheZ Design Engineering V2 Roadmap
2
+
3
+ This roadmap governs the next capability program for ZtotheZ Design Engineering. It focuses on three weaknesses identified by the Azure Optimizer comparison: truthful interface disclosure, operational information design, and visual polish. The completed [`ROADMAP.md`](ROADMAP.md) remains the evidence record for the V1 foundation, and [`SKILL.md`](SKILL.md) remains the authoritative operating instruction.
4
+
5
+ V2 is a system upgrade, not an Azure-specific facelift. The contracts, knowledge modules, validators, quality gates, and evaluation methods must generalize across product domains while preserving V1 architecture, accessibility, responsiveness, maintainability, packaging, and clean-room independence.
6
+
7
+ ## Status Definitions
8
+
9
+ - **Done:** every stated deliverable has current passing evidence and all completion criteria are satisfied.
10
+ - **Partial:** relevant implementation or evidence exists, but at least one stated deliverable or acceptance condition is incomplete.
11
+ - **Not started:** no roadmap-specific implementation evidence exists.
12
+
13
+ ## Program Outcomes
14
+
15
+ V2 must provide independently owned and operational guidance that allows an agent to:
16
+
17
+ - Disclose demo, live, hybrid, imported, cached, degraded, and disconnected behavior accurately.
18
+ - Organize operational information around user decisions, evidence, impact, and next actions.
19
+ - Produce visually polished interfaces without sacrificing accessibility, responsiveness, performance, or architectural integrity.
20
+ - Verify deterministic claims automatically and route subjective quality judgments to attributable human review.
21
+ - Demonstrate improvement through anonymous comparison, measurable interaction tasks, and a second-product generalization test.
22
+
23
+ ## Release Constraints
24
+
25
+ Every V2 change must preserve these V1 constraints:
26
+
27
+ 1. `SKILL.md` remains authoritative over retrieved supporting guidance.
28
+ 2. External design products and generated comparison implementations remain references only. Production code, rules, catalogs, and tests must be independently authored.
29
+ 3. Automated, AI-assisted expert, human expert, and representative-user evidence remain distinct.
30
+ 4. An agent must not invent human attestations, user-test results, timestamps, identities, approvals, or risk acceptance.
31
+ 5. Visual quality cannot be claimed from token validation, screenshot existence, or pixel similarity alone.
32
+ 6. Existing build, typecheck, test, package, release, retrieval, corpus, and independence checks must remain passing.
33
+
34
+ ## Roadmap Items
35
+
36
+ ### 1. Versioned Comparison Methodology
37
+
38
+ Status: **Done**
39
+
40
+ Create a reproducible evaluation method before implementing the new design rules. The current Azure review provides a useful baseline, but it is not yet a portable, versioned protocol with anonymization, task measurements, reviewer records, and validation.
41
+
42
+ Implemented evidence: `knowledge-base/benchmarks/interface-quality/` contains versioned portable methodology and review schemas, honest templates, a retained synthetic artifact, and an evidence-boundary guide. `src/comparison/` validates candidate and stage scope, stage-specific artifact kinds, retained relative evidence, source revisions, screenshot viewport and state metadata, SHA-256 checksums, claim status and scope, contradictory overall-pass claims, WCAG evidence scope, counterbalanced candidate records, and attributable human and representative-user sessions. The `validate-comparison` CLI and `evaluate_interface_comparison` MCP tool expose structured reports with external-root protection.
43
+
44
+ The retained baseline at `evidence/interface-quality/azure-baseline/` evaluates four anonymous Azure implementations under one method. It includes exact build, typecheck, architecture-audit, browser, and candidate-journey records; 20 reviewer-facing captures across four declared viewports plus analysis results; a coordinator-only identity map; a counterbalanced reviewer protocol; source-tree revisions; and checksum-bound artifacts. The baseline validates with zero integrity errors and remains intentionally not release-ready because candidate findings are unresolved and no human-expert or representative-user evidence has been supplied. Those are Item 7 and Item 8 responsibilities, not missing Item 1 deliverables.
45
+
46
+ Regression coverage proves that a structurally valid incomplete review remains not release-ready, an attributable multi-level fixture can become release-ready, missing candidate-stage evidence blocks release, checksum tampering fails validation, candidate identities do not leak through packet filenames or instructions, and an independently authored Antigravity-style negative record is rejected for evidence mixing and false completion claims.
47
+
48
+ Deliverables:
49
+
50
+ - `knowledge-base/benchmarks/interface-quality/comparison-methodology.schema.yaml`
51
+ - `knowledge-base/benchmarks/interface-quality/comparison-methodology.template.yaml`
52
+ - `knowledge-base/benchmarks/interface-quality/review.template.yaml`
53
+ - Independently authored scoring criteria for truthful disclosure, information design, visual polish, task confidence, and next-action clarity.
54
+ - A validator and report format that reject malformed methods, mixed evidence classes, and generated human attestations.
55
+ - Regression fixtures for valid, invalid, incomplete, and attribution-violating review records.
56
+
57
+ Required evaluation controls:
58
+
59
+ - Remove product and generator labels from comparison captures.
60
+ - Use identical data, tasks, routes, states, and viewport dimensions.
61
+ - Randomize or counterbalance presentation order.
62
+ - Keep expert inspection separate from representative-user evidence.
63
+ - Record task completion, time on task, navigation errors, comprehension accuracy, recovery attempts, confidence, and perceived visual quality.
64
+ - Report sample size and limitations. Do not imply statistical significance from a formative sample.
65
+
66
+ Completion criteria:
67
+
68
+ - The methodology and review schemas validate deterministically.
69
+ - The same protocol can evaluate at least three implementations without implementation-specific fields.
70
+ - Tests prove that AI-authored human or user evidence is rejected.
71
+ - A baseline Azure comparison artifact is generated from the versioned method.
72
+
73
+ ### 2. Truthful Interface And Data Provenance Contract
74
+
75
+ Status: **Done**
76
+
77
+ Create `knowledge-base/design-intelligence/interface-trust.md` and a machine-readable contract for interface claims.
78
+
79
+ Implemented evidence: `knowledge-base/design-intelligence/interface-trust.md`, `interface-trust.schema.yaml`, and `interface-trust.template.yaml` define the independently owned version 1.0 trust model. The passing template covers demo, live, fallback, stale, and disconnected scenarios with separate data mode, connection, result origin, freshness, environment, scope, limitation, and processing-boundary claims. All 40 claims are classified as verified, demonstration, or unknown and are traceable to state-scoped sources where evidence is required.
80
+
81
+ `src/interface-trust/` and `validate-trust` enforce source compatibility, runtime timestamps, IANA timezones, pre-action disclosure, fallback persistence, stale labeling, disconnected recovery, history and export provenance, unsupported certainty labels, and credential-like values. MCP exposes the same report through `validate_interface_trust` with `ZTOTHEZ_DESIGN_TRUST_ROOTS` containment. Mutation-based negative fixtures independently cover every required scenario plus provenance loss and secret placeholders. The module is routed through `SKILL.md`, approved retrieval, exact reads, provenance, package allowlists, and installed MCP smoke verification. Passing validation remains a declaration result; rendered persistence and actual service behavior are intentionally deferred to Item 6 browser evidence.
82
+
83
+ The state model must distinguish:
84
+
85
+ ```text
86
+ dataMode: demo | live | hybrid | imported | cached
87
+ connection: unknown | checking | connected | degraded | disconnected
88
+ resultOrigin: live | simulated | imported | cached
89
+ freshness: timestamp plus timezone
90
+ ```
91
+
92
+ Required rules:
93
+
94
+ - Show data mode before a consequential action and preserve it in the application shell.
95
+ - Show connection status only when it is derived from runtime evidence.
96
+ - Disclose simulated or fallback behavior while it occurs and in the resulting artifact.
97
+ - Attach origin, scope, freshness, environment, and limitations to results, history, and exports.
98
+ - Distinguish a functioning interface from a functioning backend or external integration.
99
+ - Prohibit fake credentials, realistic secret placeholders, unsupported uptime claims, and unverified labels such as `operational`, `online`, `connected`, or `production`.
100
+ - Provide explicit unknown, checking, degraded, disconnected, partial, and stale states.
101
+ - Keep disclosure readable without requiring an obstructive watermark.
102
+
103
+ Completion criteria:
104
+
105
+ - A versioned trust contract and passing template exist.
106
+ - Every operational claim can be traced to a state source or is clearly labeled as demonstration content.
107
+ - Export and history records preserve the same provenance shown in the interface.
108
+ - Positive and negative fixtures cover live, demo, fallback, stale, and disconnected behavior.
109
+
110
+ ### 3. Operational Information Design Contract
111
+
112
+ Status: **Done**
113
+
114
+ Implemented evidence: `knowledge-base/design-intelligence/information-design.md`, `information-design.schema.yaml`, and `information-design.template.yaml` define the independently owned version 1.0 operational model. The passing template traces three decision metrics, two findings, one chart, one large collection, all eight hierarchy levels, and all six answer-flow questions through explicit sources, context, freshness, baselines, evidence, destinations, exceptional value states, and non-color cues.
115
+
116
+ `src/information-design/` and `validate-information` enforce reference integrity, IANA timezones, metric decision context, non-decorative metrics and charts, distinct missing, partial, and stale behavior, accessible label overflow, finding evidence and verification, non-color semantics, scalable collection controls, hierarchy order, and task-reference completeness. MCP exposes the same structured report through `validate_information_design` with `ZTOTHEZ_DESIGN_INFORMATION_ROOTS` realpath containment. Twelve mutation fixtures cover missing sources and baselines, decorative content, inaccessible labels, collapsed value states, color-only findings, incomplete charts, unbounded collections, hierarchy drift, and incomplete answer paths. The module is routed through `SKILL.md`, approved BM25 retrieval, provenance, package allowlists, and installed MCP smoke verification.
117
+
118
+ Completion boundary: the six task declarations prove that the contract contains inspectable paths for context, priority, impact, evidence, next action, and verification without color-only semantics. They do not claim representative-user comprehension or task success; attributable human evidence remains Item 8.
119
+
120
+ Create `knowledge-base/design-intelligence/information-design.md` and a structured metric and finding contract.
121
+
122
+ Every operational surface must answer, in priority order:
123
+
124
+ 1. What environment, scope, and data is the user viewing?
125
+ 2. What changed or requires attention?
126
+ 3. What is the operational, financial, security, or user impact?
127
+ 4. What evidence supports the conclusion?
128
+ 5. What action should happen next?
129
+ 6. How will the user verify that the action worked?
130
+
131
+ Each metric must declare its label, definition, formula, source, scope, time period, freshness, comparison baseline, drill-down destination, limitations, and supported user decision. Each finding must declare severity, affected entity, observation, evidence, impact, confidence, remediation, owner or destination, and validation method.
132
+
133
+ Required hierarchy:
134
+
135
+ ```text
136
+ Context and provenance
137
+ Primary outcome and action
138
+ Critical exceptions
139
+ Health and impact metrics
140
+ Prioritized findings
141
+ Operational telemetry
142
+ Evidence and audit trail
143
+ History and exports
144
+ ```
145
+
146
+ Completion criteria:
147
+
148
+ - Metric and finding schemas validate references and required decision context.
149
+ - Decorative metrics and charts without a supported decision are rejected or reported.
150
+ - Long labels, missing values, partial data, stale data, and large collections have defined behavior.
151
+ - Representative tasks can identify priority, impact, evidence, and next action without relying on color alone.
152
+
153
+ ### 4. Visual Polish System
154
+
155
+ Status: **Done; external anonymous human visual comparison completed**
156
+
157
+ Implemented evidence: `knowledge-base/design-intelligence/visual-polish.md` defines the independently owned visual-polish workflow and evidence boundary. The design-deliverable contract now supports version `2.1` and the `interface-system` scope while retaining versions `1.0` and `2.0` compatibility. The portable schema, runtime schema, maintained template, CLI, MCP report, and package smoke path cover visual direction, eight typography roles, four responsive grids, spacing rhythm, stable dimensions, surface, border, elevation and emphasis hierarchy, adaptive density, decision-first priority roles, per-mode text and focus contrast coverage, nine interaction states, semantic motion durations, reduced-motion equivalents, chart contracts, rendered captures, and attributable human review.
158
+
159
+ `src/design-intelligence/validator.ts` enforces semantic or component usage tokens, role and viewport completeness, decision-first priority order, per-mode text and focus contrast, domain ornament prohibitions, selected-state and non-color semantics, duration ranges, reduced-motion coverage, chart labels, values, comparison context, alternatives and exceptional states, capture declarations, and human-review attribution. `src/audit/rules/raw-design-values.ts` now detects recurring raw colors, dimensions, durations, shadows, and font declarations outside token files. Sixteen mutation fixtures isolate visual-token leakage, ornamental styling, missing roles and viewports, overloaded mobile density, telemetry-before-action order, incomplete theme coverage, color-only states and charts, excessive motion, missing reduced-motion behavior, incomplete evidence, and falsely completed human review.
160
+
161
+ Evidence boundary: the maintained template passes structural validation but reports
162
+ `visualPolish.releaseReady: false` because it is a reusable declaration template rather than a
163
+ completed product release record. Azure V2 has verified rendered evidence, one attributed disclosed
164
+ maintainer review, and an external anonymous human visual comparison using the same five candidates,
165
+ captures, four questions, and response format. Nine reviewers supplied complete answers and one
166
+ supplied partial feedback. This evidence validates perceived readability, information findability,
167
+ visual preference with rationale, and observable viewport-specific problems. It does not claim
168
+ interactive task completion, representative-user coverage, or statistical significance. Agents
169
+ must not generate, relabel, or upgrade the retained human evidence.
170
+
171
+ Create `knowledge-base/design-intelligence/visual-polish.md` and extend the design deliverable contract with visual direction, density, composition, chart, and rendered-evidence declarations.
172
+
173
+ The module must define:
174
+
175
+ - Primitive, semantic, and component token responsibilities.
176
+ - Typography roles for body text, labels, headings, metadata, metrics, evidence, logs, and code.
177
+ - Layout grids, content widths, spacing rhythm, alignment, density modes, and stable component dimensions.
178
+ - Border, elevation, surface, emphasis, and selected-state hierarchy.
179
+ - Chart purpose, labeling, legends, values, comparison context, alternatives, and empty or partial states.
180
+ - Motion purpose, duration categories, interruption behavior, and reduced-motion equivalents.
181
+ - Responsive composition at 375, 768, 1024, and 1440 CSS pixels.
182
+ - Domain-appropriate visual direction without decorative agent diagrams, excessive glow, meaningless gradients, or ornamental status elements.
183
+
184
+ Completion criteria:
185
+
186
+ - Component code uses semantic tokens instead of raw visual values.
187
+ - All required viewports have stable fixture screenshots and browser evidence.
188
+ - Charts remain understandable through labels and tabular or textual alternatives.
189
+ - Loading, empty, success, warning, error, partial, disabled, selected, and focus states share one coherent visual language.
190
+ - Attributable human review evaluates hierarchy, balance, scanability, density, and domain fit on rendered output.
191
+
192
+ ### 5. Skill, Retrieval, And MCP Integration
193
+
194
+ Status: **Done**
195
+
196
+ Implemented evidence: `SKILL.md` and `knowledge-base/design-intelligence/MASTER.md` now require one bounded nine-stage sequence from validated product task through attributable human visual review. The version 2.0 design-deliverable runtime and portable schemas link `productTask`, `interfaceTrust`, `informationHierarchy`, `metricContracts`, and `generationWorkflow` to the existing visual direction, density, chart, rendered-evidence, and human-review declarations. The validator enforces complete trust scenarios, canonical information order, metric-to-chart references, exact generation order, stage-specific statuses, evidence references, and the dependency from implementation to automated verification to human review. Its report separates structural pass, generation readiness, contract validation, automated evidence, rendered evidence, human review, and integrated release readiness.
197
+
198
+ Retrieval tests cover each V2 module, authoritative workflow routing, category isolation, prior V1 queries, and unrelated-query abstention. MCP regression tests list and exact-read `interface-trust.md`, `information-design.md`, and `visual-polish.md`. The approved retrieval scope and provenance manifest include all three modules and their portable artifacts. Package checks retain the complete allowlist, and a packed-install MCP smoke serves every module plus the integrated design report. The offline release contains 20 approved documents, 185 retrieval chunks, all required V2 schemas, valid checksums, and no prohibited reference path. Clean-room provenance, archive-removal smoke, skill validation, and all 62 repository tests pass.
199
+
200
+ Evidence boundary: the maintained design template intentionally reports `integration.releaseReady: false`. Its linked trust and information contracts are declarations, automated verification is required, captures are planned, and human review is required. No automated or AI-assisted result is promoted to human or representative-user evidence.
201
+
202
+ Integrate the three modules into the generation workflow without turning the root skill into an unbounded prompt.
203
+
204
+ Required generation order:
205
+
206
+ ```text
207
+ Product task
208
+ Truth and data-source contract
209
+ Information architecture
210
+ Interaction and state model
211
+ Visual direction
212
+ Token architecture
213
+ Implementation
214
+ Automated verification
215
+ Human visual review
216
+ ```
217
+
218
+ Deliverables:
219
+
220
+ - Update `SKILL.md` with concise routing and mandatory workflow steps.
221
+ - Add the three modules to the approved retrieval scope and provenance manifest.
222
+ - Extend `design-deliverable.schema.yaml` and its template with `interfaceTrust`, `informationHierarchy`, `metricContracts`, `visualDirection`, `densityProfile`, `chartContracts`, and `renderedEvidence` sections.
223
+ - Expose exact reads and scoped retrieval through existing MCP boundaries.
224
+ - Update package allowlists, offline indexes, installation smoke tests, and clean-room checks.
225
+
226
+ Completion criteria:
227
+
228
+ - Retrieval returns the correct V2 module for representative queries and abstains on unrelated queries.
229
+ - Existing V1 retrieval ranking and category isolation do not regress.
230
+ - Packed and offline installations contain and serve every approved V2 artifact.
231
+ - The skill never claims human validation from automated or AI-assisted evidence.
232
+
233
+ ### 6. Deterministic Quality Gates And Browser Verification
234
+
235
+ Status: **Done**
236
+
237
+ Implemented evidence: the static repository audit now rejects hard-coded credential literals (`ZTDE-SEC-001`), undisclosed production mock paths (`ZTDE-SLOP-001`), placeholder anchors (`ZTDE-SLOP-002`), inert native buttons and incomplete custom controls (`ZTDE-SLOP-003`), literal operational claims without source bindings (`ZTDE-TRUST-001`), recurring raw visual values (`ZTDE-DESIGN-001`), incomplete network states, and missing accessible names. Explicitly marked and visibly disclosed demo fallback remains allowed. The existing interface-trust, information-design, and design-deliverable validators retain deterministic metric, finding, chart, provenance, state, token, and evidence checks.
238
+
239
+ The browser verifier retains responsive overflow, semantic clipping, independent collisions, sticky occlusion, text contrast, 24-pixel minimum and 44-pixel recommended targets, accessible names, visible and unobscured focus, keyboard traps and positive tabindex, 200 percent reflow and text resizing, reduced motion, media, console, network, journey, and expected-failure checks. Item 6 adds opt-in persistent data-mode and provenance checks plus required stage and state coverage (`ZTDE-RUNTIME-017`), chart names, visible values, alternatives, and multi-series legends (`ZTDE-RUNTIME-018`), and checksummed screenshot-baseline comparison with explicit dynamic-region selectors (`ZTDE-RUNTIME-019`). Static, runtime, and consolidated reports now separate errors, warnings, verifier limitations, and human-review requirements.
240
+
241
+ `ci/fixtures/v2-quality-states.html` and `ci/v2-quality-states.journeys.json` cover normal, long-content, empty, partial, slow, fallback, stale, and disconnected states across initial, loading, result, error, history, and export stages. The exact CI sequence passes locally at 375, 768, 1024, and 1440 CSS pixels with 8 of 8 journeys, 36 captures per run, zero findings, one explicitly masked clock region, and 36 of 36 matching second-run checksums. A separate negative runtime fixture triggers both new trust and chart rules, and a tampered baseline triggers the screenshot regression rule. The active GitHub workflow retains the V1 quality gate, V2 machine reports, viewport captures, baseline manifest, masking policy, Azure V2 product evidence, and Item 8 packet-integrity validation as separate gates. All 62 repository tests pass, including AegisOPS and SceneStart contracts, Azure V2 state and evidence contracts, V1 and V1.1 comparison decisions, reviewer-session compilation, the V1 responsive fixture, quality aggregation, retrieval, corpus gates, and semantic CSS-variable audit coverage.
242
+
243
+ Evidence boundary: screenshot hashes establish sameness only within the captured environment and masking policy. They do not establish visual quality or improvement. Solid-color sampling does not establish contrast over complex media. Automated checks do not establish metric correctness beyond their inputs, legal clearance, domain fit, human comprehension, or representative-user task success. Intentional visual changes still require functional evidence and attributable human review.
244
+
245
+ Implement automated checks only for properties the available evidence can establish.
246
+
247
+ Static and contract checks should cover:
248
+
249
+ - Secret-like placeholder credentials.
250
+ - Inert buttons and interactive-looking non-controls.
251
+ - Operational claims without declared state bindings.
252
+ - Simulated or mock fallback without a disclosure contract.
253
+ - Metrics missing source, scope, period, freshness, baseline, or decision purpose.
254
+ - Raw visual values outside approved token definitions.
255
+ - Charts missing names, values, legends where required, or textual alternatives.
256
+
257
+ Browser verification should cover:
258
+
259
+ - Persistent data-mode disclosure at initial, loading, result, error, history, and export stages.
260
+ - Normal, long-content, empty, partial, slow, fallback, stale, and disconnected fixtures.
261
+ - Clipping, overflow, collisions, density, focus occlusion, keyboard flow, text resize, reflow, reduced motion, and touch targets at required viewports.
262
+ - Stable screenshots for regression detection with explicit handling for dynamic regions.
263
+
264
+ Pixel comparison may detect unintended change but must not be used as proof that a design is good or improved. Intentional baseline changes require passing functional evidence and attributable visual review.
265
+
266
+ Completion criteria:
267
+
268
+ - Positive fixtures pass and each negative fixture triggers its intended rule.
269
+ - Reports distinguish errors, warnings, verifier limitations, and human-review requirements.
270
+ - CI retains machine-readable reports and viewport evidence.
271
+ - Existing V1 fixture and product gates remain passing.
272
+
273
+ ### 7. Azure Optimizer V2 Benchmark
274
+
275
+ Status: **Done**
276
+
277
+ Implemented evidence: `benchmarks/azure-optimizer-v2/` is an independently tracked product fixture built from the normalized Azure task model and fixed comparison dataset. The four retained baseline candidates remain unchanged. The V2 implementation removes fake credentials, settings theater, unsupported monitoring claims, automatic undisclosed fallback, and component-level raw colors. It uses semantic tokens, a focused HTTP analysis boundary, an explicit opt-in local fallback, a provenance-preserving Blob export, and persistent data-mode, connection, processing-origin, freshness, scope, and limitation disclosure.
278
+
279
+ The overview follows context, priority, impact, evidence, action, owner, and validation order. All four metrics expose definition, source, scope, period, freshness, baseline, and supported decision. The ranked finding review connects affected scope to observation, impact, evidence, remediation, ownership, and validation. The restrained light operational composition preserves navigation, focus, reduced motion, chart alternatives, responsive reflow, text resizing, and component boundaries.
280
+
281
+ `knowledge-base/benchmarks/azure-optimizer/v2-journeys.json` verifies demo success, live local-API processing over the disclosed imported fixture, slow analysis, an expected 503 followed by explicit fallback, disconnected recovery, partial and stale results, detailed finding review, history, and export. The final production run passes 9 of 9 journeys at 375, 768, 1024, and 1440 CSS pixels with 40 captures, zero runtime findings, the expected network policy satisfied, a captured Blob export, and 40 of 40 matching screenshot hashes using only `.dynamic-value` as a declared mask. The application passes ESLint, TypeScript, and the Next production build. The repository static audit scans 22 implementation files with zero findings; the independently authored product icon is a separately built static asset.
282
+
283
+ Retained evidence is in `evidence/interface-quality/azure-v2/`, including the 40-capture baseline, final machine report, selected mobile and desktop captures, disclosed fallback and export captures, and the captured provenance JSON. `knowledge-base/benchmarks/azure-optimizer/V2-IMPLEMENTATION.md` maps each contract requirement to implementation and evidence.
284
+
285
+ Evidence boundary: Item 7 establishes automated product, state, accessibility, responsive, network, export, and screenshot-regression evidence. It does not establish visual superiority, reviewer preference, representative-user comprehension, or human approval. Those conclusions remain Item 8 reviewer-supplied work.
286
+
287
+ Required remediation:
288
+
289
+ - Replace fake API credentials and remove or implement inert settings actions.
290
+ - Replace unsupported operational messaging with runtime-derived status.
291
+ - Add persistent demo, live, hybrid, cached, imported, or disconnected disclosure.
292
+ - Enrich the overview with prioritized findings, impact, evidence, telemetry, and next actions without adding decorative density.
293
+ - Move network and fallback orchestration behind a focused boundary.
294
+ - Replace remaining component-level raw colors with semantic tokens.
295
+ - Preserve navigation, accessibility, reduced motion, responsive behavior, and maintainable component boundaries.
296
+
297
+ Required benchmark states:
298
+
299
+ - Demo success.
300
+ - Live connected success.
301
+ - Slow analysis.
302
+ - Backend failure with disclosed local fallback.
303
+ - Disconnected and recovery.
304
+ - Partial or stale result.
305
+ - Responsive overview and detailed finding review.
306
+ - Export with provenance.
307
+
308
+ Completion criteria:
309
+
310
+ - The V2 contract, static audit, browser profiles, build, typecheck, and tests pass.
311
+ - No undisclosed simulation, fake credential, unsupported status, inert primary action, or raw component color remains.
312
+ - Baseline and final evidence use identical tasks, states, data, and viewports.
313
+
314
+ ### 8. Anonymous Human And Interaction Review
315
+
316
+ Status: **Done**
317
+
318
+ Implemented evidence: comparison methodology version `1.1` adds required-stage candidate scope, minimum human-expert and representative-user counts, complete candidate-by-task and candidate-by-criterion matrices, counterbalanced-order coverage, category scoring, task metrics, and an anonymous target-versus-comparator decision. Missing or duplicate cells, insufficient sessions, insufficient counterbalancing, category scores below the floor or comparator, and task-metric regression remain explicit findings and prevent release.
319
+
320
+ `evidence/interface-quality/azure-v2-review/` contains a five-candidate packet with 51 checksum-bound automated artifacts, 25 common-state captures, a coordinator-only identity map, five counterbalanced orders, and draft-locked expert and representative-user templates. The base review validates with zero integrity errors and honestly remains not release-ready at 5 of 6 required stages because it contains zero human sessions. `compile-comparison` accepts only reviewer-supplied files marked `complete`, hashes their source files, preserves evidence levels, computes the V1.1 decision, and never creates or upgrades human observations.
321
+
322
+ Additional informal feedback from two attributable human chat contributors is retained in
323
+ `evidence/external-human-feedback.md`. It is valid qualitative feedback, including Candidate E's
324
+ readability advantage and the dark/light theme confound, but it is not a complete structured review
325
+ session and does not satisfy the formal human-expert or representative-user thresholds.
326
+
327
+ Ten responses to the simplified four-question visual form are retained in
328
+ `evidence/interface-quality/azure-v2-review/qualitative/visual-review-01.md` and
329
+ `evidence/interface-quality/azure-v2-review/qualitative/visual-reviews-02-10.md`, with a faithful
330
+ English translation where needed and explicit limitations. Nine responses contain complete
331
+ numbered answers and one contains a partial general preference. Candidate A has the strongest
332
+ readability signal, while Candidate D has the strongest information-findability and explicit
333
+ use-preference signals among complete responses. Candidate B combines
334
+ information-findability support with contrast criticism. Candidate E is polarized: one reviewer
335
+ preferred its contrast and layout, while multiple reviewers criticized its density, bright theme,
336
+ color scheme, layout, clutter, or visual monotony. Candidate D also has a concrete reported
337
+ 1024-pixel container-overflow defect. These are external human qualitative responses and meaningful
338
+ dissenting evidence. They do not count as formal human-expert or representative-user sessions
339
+ because attribution, task metrics, counterbalancing, and complete criterion matrices were not
340
+ supplied.
341
+
342
+ The disclosed session in `coordinator/maintainer-sessions/expert-session-01.yaml` scores every expert criterion for all five candidates and is retained unchanged in `review.completed.yaml`. `assess-maintainer` independently confirms that all required Azure target stages pass and that the target meets the category floor and equals or exceeds the configured comparator: truthful disclosure 4.0 versus 3.0, information design 4.0 versus 3.0, and visual polish 3.5 versus 2.0. The resulting `maintainer-assessment.json` reports `engineeringReady: true`, `externalReleaseReady: false`, and claim scope `engineering-continuation-only`.
343
+
344
+ The product owner distributed the review to a practical community pool that included nontechnical
345
+ people, people opposed to AI-generated work, people beginning IT careers, and volunteers connected
346
+ to a women-focused cybersecurity organization. The resulting maintainer evidence, attributable
347
+ chat feedback, and completed short visual responses are accepted as sufficient project-level human
348
+ review for this independently maintained release. The evidence preserves criticism and dissent,
349
+ including a preference for Candidate B and its reported contrast weakness, instead of requiring a
350
+ favorable result for the target candidate.
351
+
352
+ The controlled-study thresholds remain available for any future claim of independent comparative
353
+ validation, but they are not a completion requirement for this release. This project does not claim
354
+ three blinded expert sessions, five representative-user sessions, complete task timing, or formal
355
+ counterbalancing. The supplied community responses must not be relabeled as those evidence types.
356
+
357
+ Compare the upgraded ZtotheZ implementation with the Lovable benchmark and other retained baselines through the versioned methodology. External implementations remain evaluation references only and must not be packaged or treated as design authority.
358
+
359
+ Required tasks:
360
+
361
+ - Identify data origin, environment, and freshness.
362
+ - Find the highest-priority problem.
363
+ - Explain its impact and supporting evidence.
364
+ - Start analysis and identify whether live or fallback processing occurred.
365
+ - Identify the recommended next action and validation method.
366
+ - Export a result and verify that provenance is retained.
367
+
368
+ Required evidence:
369
+
370
+ - Anonymous and counterbalanced captures.
371
+ - Per-task completion, time, errors, comprehension, recovery, and confidence.
372
+ - Separate expert visual scores and representative-user task evidence.
373
+ - Reviewer-supplied attribution and limitations.
374
+ - No AI-generated human conclusions or approvals.
375
+
376
+ Project release completion criteria:
377
+
378
+ - The attributable maintainer rubric finds that ZtotheZ equals or exceeds the configured Lovable
379
+ comparator in truthful disclosure, information design, and visual polish.
380
+ - Available community reviewers can identify candidate strengths, preferences, and concrete
381
+ problems through the simplified review surface.
382
+ - Architecture, accessibility, responsiveness, and maintainability do not regress.
383
+ - Findings and dissenting reviewer evidence remain visible in the final report.
384
+ - Product-owner acceptance closes the project review without claiming controlled task-comprehension,
385
+ confidence, independent-expert, or representative-user-study results that were not collected.
386
+
387
+ ### 9. Cross-Product Generalization And V2 Release
388
+
389
+ Status: **Done**
390
+
391
+ Apply the V2 contracts to SceneStart or AegisOPS without Azure-specific exceptions, then certify packaging and release behavior.
392
+
393
+ Current progress: SceneStart Workshop-to-Studio initialization now loads the handed-off project
394
+ before the first client render, and a storage round-trip regression test covers the transfer.
395
+ Touch targets, slider hit areas, file-input naming, release checklist operation, and 200 percent
396
+ text resizing were remediated across the benchmark journeys. The runtime verifier now supports a
397
+ policy-restricted loopback CDP connection for managed Chromium environments and has regression
398
+ coverage for that policy and native editable-value scrolling.
399
+
400
+ All four SceneStart journeys pass at 320, 390, 768, 1024, and 1440 CSS pixels with 40 retained
401
+ screenshots. The learning journey now completes all nine Core Demo Craft lessons through explicit
402
+ goal checks and verifies persisted `9/9 DONE` state. ZtotheZ supplied attributable local-first
403
+ review evidence, and `release-provenance` passes all five criteria with zero runtime findings.
404
+
405
+ The aggregate SceneStart release gate passes 4 of 4 profiles and all 10 acceptance criteria with
406
+ zero failed or unverified criteria. SceneStart's 229-test suite and production build pass. The
407
+ ZtotheZ suite passes 65 tests. Package check, installed MCP smoke, provenance and independence,
408
+ archive-removal smoke, release pack, and offline verification pass with the review and attestation
409
+ included. Detailed evidence is recorded in
410
+ `knowledge-base/benchmarks/scenestart/CALIBRATION.md`.
411
+
412
+ Completion criteria:
413
+
414
+ - A second product implements the same trust, information, and visual contracts.
415
+ - Product-specific variation is expressed through declared data, tasks, tokens, and component contracts rather than copied Azure layout.
416
+ - Both product benchmarks pass automated gates and retain attributable review templates.
417
+ - Corpus cases measure truthful disclosure, information completeness, visual-token integrity, and intentional abstention.
418
+ - Build, typecheck, regression tests, package smoke tests, offline release checks, retrieval evaluation, corpus evaluation, and independence checks pass.
419
+ - Documentation and installation instructions describe V2 capabilities only after the release evidence exists.
420
+
421
+ ## Execution Order
422
+
423
+ All V2 roadmap items are complete. Item 8 closes on attributable maintainer acceptance and the
424
+ available community review evidence, including nine complete short visual responses, one partial
425
+ response, and retained dissent. SceneStart proves cross-product generalization without copying
426
+ Azure composition. The current release makes no controlled independent-validation or formal
427
+ representative-user-study claim.
428
+
429
+ No required V2 engineering or review work remains. Additional responses can inform later
430
+ iterations. Only complete schema-valid sessions can support a future controlled comparative-study
431
+ claim.