tribunal-kit 5.8.4 → 6.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 (322) hide show
  1. package/.agent/ARCHITECTURE.md +219 -215
  2. package/.agent/agents/accessibility-reviewer.md +66 -151
  3. package/.agent/agents/ai-code-reviewer.md +22 -2
  4. package/.agent/agents/anti-pattern-reviewer.md +99 -0
  5. package/.agent/agents/api-architect.md +19 -2
  6. package/.agent/agents/backend-specialist.md +25 -3
  7. package/.agent/agents/cloud-engineer.md +21 -0
  8. package/.agent/agents/code-archaeologist.md +20 -3
  9. package/.agent/agents/complexity-reviewer.md +22 -2
  10. package/.agent/agents/database-architect.md +24 -3
  11. package/.agent/agents/db-latency-auditor.md +22 -2
  12. package/.agent/agents/debugger.md +19 -3
  13. package/.agent/agents/dependency-reviewer.md +19 -2
  14. package/.agent/agents/devops-engineer.md +24 -3
  15. package/.agent/agents/documentation-writer.md +21 -3
  16. package/.agent/agents/explorer-agent.md +21 -3
  17. package/.agent/agents/frontend-reviewer.md +19 -3
  18. package/.agent/agents/frontend-specialist.md +72 -224
  19. package/.agent/agents/game-developer.md +22 -3
  20. package/.agent/agents/interaction-reviewer.md +118 -0
  21. package/.agent/agents/logic-reviewer.md +18 -3
  22. package/.agent/agents/minimalist-reviewer.md +98 -0
  23. package/.agent/agents/mobile-developer.md +21 -3
  24. package/.agent/agents/mobile-reviewer.md +22 -2
  25. package/.agent/agents/orchestrator.md +19 -3
  26. package/.agent/agents/penetration-tester.md +22 -3
  27. package/.agent/agents/performance-optimizer.md +21 -3
  28. package/.agent/agents/performance-reviewer.md +2 -0
  29. package/.agent/agents/precedence-reviewer.md +19 -5
  30. package/.agent/agents/product-manager.md +20 -3
  31. package/.agent/agents/product-owner.md +22 -1
  32. package/.agent/agents/product-reviewer.md +98 -0
  33. package/.agent/agents/project-planner.md +19 -3
  34. package/.agent/agents/qa-automation-engineer.md +24 -3
  35. package/.agent/agents/resilience-reviewer.md +21 -2
  36. package/.agent/agents/schema-reviewer.md +21 -2
  37. package/.agent/agents/security-auditor.md +7 -1
  38. package/.agent/agents/seo-specialist.md +18 -3
  39. package/.agent/agents/sql-reviewer.md +22 -2
  40. package/.agent/agents/supervisor-agent.md +22 -3
  41. package/.agent/agents/swarm-worker-registry.md +7 -0
  42. package/.agent/agents/system-architect.md +19 -0
  43. package/.agent/agents/test-coverage-reviewer.md +22 -2
  44. package/.agent/agents/test-engineer.md +21 -2
  45. package/.agent/agents/throughput-optimizer.md +22 -2
  46. package/.agent/agents/type-safety-reviewer.md +21 -2
  47. package/.agent/agents/ui-ux-auditor.md +44 -242
  48. package/.agent/agents/ui-visual-auditor.md +99 -0
  49. package/.agent/agents/ux-reviewer.md +104 -0
  50. package/.agent/agents/visual-reviewer.md +98 -0
  51. package/.agent/agents/vitals-reviewer.md +23 -2
  52. package/.agent/history/README.md +53 -0
  53. package/.agent/history/case-law/cases/template-case.json +19 -0
  54. package/.agent/history/integrity_manifest.json +131 -33
  55. package/.agent/history/memory/.memory.idx +1581 -1
  56. package/.agent/history/memory/MEMORY.md +105 -1
  57. package/.agent/routing_index.json +272 -690
  58. package/.agent/rules/GEMINI.md +10 -12
  59. package/.agent/rules/GEMINI_PLANNER.md +84 -0
  60. package/.agent/scripts/_utils.js +28 -7
  61. package/.agent/scripts/case_law_manager.js +2 -0
  62. package/.agent/scripts/context_broker.js +152 -19
  63. package/.agent/scripts/guardrail_engine.js +60 -5
  64. package/.agent/scripts/impact_classifier.js +167 -0
  65. package/.agent/scripts/integrity_manifest.js +10 -4
  66. package/.agent/scripts/marathon_harness.js +10 -1
  67. package/.agent/scripts/minimal_change_engine.js +437 -0
  68. package/.agent/scripts/pipeline_engine.js +856 -0
  69. package/.agent/scripts/skill_evolution.js +36 -21
  70. package/.agent/scripts/socratic_gate_policy.js +60 -0
  71. package/.agent/scripts/swarm_dispatcher.js +65 -6
  72. package/.agent/scripts/token_budget_broker.js +52 -0
  73. package/.agent/scripts/verify_all.js +13 -0
  74. package/.agent/scripts/visual_audit.js +92 -0
  75. package/.agent/skills/12-principles-of-animation/SKILL.md +19 -10
  76. package/.agent/skills/60fps-animation/SKILL.md +19 -10
  77. package/.agent/skills/accessible-animation/SKILL.md +19 -10
  78. package/.agent/skills/adapt/SKILL.md +19 -10
  79. package/.agent/skills/advanced-rag-pipelines/SKILL.md +21 -3
  80. package/.agent/skills/agent-organizer/SKILL.md +21 -7
  81. package/.agent/skills/agentic-patterns/SKILL.md +19 -7
  82. package/.agent/skills/ai-prompt-injection-defense/SKILL.md +21 -7
  83. package/.agent/skills/animation-on-scroll/SKILL.md +19 -10
  84. package/.agent/skills/animation-systems/SKILL.md +19 -10
  85. package/.agent/skills/antfu-conventions/SKILL.md +21 -10
  86. package/.agent/skills/api-patterns/SKILL.md +21 -7
  87. package/.agent/skills/api-patterns/scripts/__pycache__/api_validator.cpython-311.pyc +0 -0
  88. package/.agent/skills/api-security-auditor/SKILL.md +21 -7
  89. package/.agent/skills/app-builder/SKILL.md +21 -7
  90. package/.agent/skills/apple-design/SKILL.md +19 -10
  91. package/.agent/skills/architecture/SKILL.md +21 -7
  92. package/.agent/skills/audit-and-fix/SKILL.md +19 -10
  93. package/.agent/skills/authentication-best-practices/SKILL.md +21 -7
  94. package/.agent/skills/backend-security-expert/SKILL.md +21 -7
  95. package/.agent/skills/baseline-ui/SKILL.md +19 -10
  96. package/.agent/skills/bash-linux/SKILL.md +21 -7
  97. package/.agent/skills/behavioral-modes/SKILL.md +19 -7
  98. package/.agent/skills/better-colors/SKILL.md +31 -14
  99. package/.agent/skills/better-ui/SKILL.md +19 -10
  100. package/.agent/skills/bolder/SKILL.md +19 -10
  101. package/.agent/skills/brainstorming/SKILL.md +17 -7
  102. package/.agent/skills/browser-native-ai/SKILL.md +19 -3
  103. package/.agent/skills/build-primitive/SKILL.md +19 -10
  104. package/.agent/skills/building-native-ui/SKILL.md +21 -7
  105. package/.agent/skills/cicd-pro/SKILL.md +21 -10
  106. package/.agent/skills/clarify/SKILL.md +19 -10
  107. package/.agent/skills/clean-code/SKILL.md +21 -7
  108. package/.agent/skills/cloud-architect/SKILL.md +21 -10
  109. package/.agent/skills/cobejs/SKILL.md +19 -10
  110. package/.agent/skills/code-review-checklist/SKILL.md +21 -7
  111. package/.agent/skills/codebase-design/SKILL.md +21 -10
  112. package/.agent/skills/colorize/SKILL.md +19 -10
  113. package/.agent/skills/compact-landing/SKILL.md +19 -10
  114. package/.agent/skills/company-logos/SKILL.md +19 -10
  115. package/.agent/skills/config-validator/SKILL.md +21 -7
  116. package/.agent/skills/containerization-pro/SKILL.md +21 -10
  117. package/.agent/skills/create-design-md/SKILL.md +19 -10
  118. package/.agent/skills/critique/SKILL.md +19 -10
  119. package/.agent/skills/csharp-developer/SKILL.md +21 -7
  120. package/.agent/skills/data-validation-schemas/SKILL.md +21 -7
  121. package/.agent/skills/database-design/SKILL.md +21 -7
  122. package/.agent/skills/database-design/scripts/__pycache__/schema_validator.cpython-311.pyc +0 -0
  123. package/.agent/skills/delight/SKILL.md +19 -10
  124. package/.agent/skills/deployment-procedures/SKILL.md +21 -7
  125. package/.agent/skills/design-lab/SKILL.md +21 -10
  126. package/.agent/skills/devops-engineer/SKILL.md +21 -7
  127. package/.agent/skills/devops-incident-responder/SKILL.md +21 -7
  128. package/.agent/skills/diagnosing-bugs/SKILL.md +21 -10
  129. package/.agent/skills/distill/SKILL.md +19 -10
  130. package/.agent/skills/documentation-templates/SKILL.md +21 -7
  131. package/.agent/skills/domain-modeling/SKILL.md +21 -10
  132. package/.agent/skills/edge-computing/SKILL.md +21 -7
  133. package/.agent/skills/emil-design-eng/SKILL.md +19 -10
  134. package/.agent/skills/error-resilience/SKILL.md +21 -7
  135. package/.agent/skills/extract-design-system/SKILL.md +21 -7
  136. package/.agent/skills/fabel-protocol/SKILL.md +19 -2
  137. package/.agent/skills/fixing-accessibility/SKILL.md +25 -14
  138. package/.agent/skills/fixing-metadata/SKILL.md +19 -10
  139. package/.agent/skills/fixing-motion-performance/SKILL.md +19 -10
  140. package/.agent/skills/framer-motion-expert/SKILL.md +19 -6
  141. package/.agent/skills/frontend-design/SKILL.md +66 -204
  142. package/.agent/skills/frontend-design/scripts/__pycache__/accessibility_checker.cpython-311.pyc +0 -0
  143. package/.agent/skills/frontend-design/scripts/__pycache__/ux_audit.cpython-311.pyc +0 -0
  144. package/.agent/skills/frontend-security-expert/SKILL.md +21 -7
  145. package/.agent/skills/game-design-expert/SKILL.md +21 -7
  146. package/.agent/skills/game-engineering-expert/SKILL.md +21 -7
  147. package/.agent/skills/generative-ui-expert/SKILL.md +19 -3
  148. package/.agent/skills/geo-fundamentals/SKILL.md +21 -7
  149. package/.agent/skills/geo-fundamentals/scripts/__pycache__/geo_checker.cpython-311.pyc +0 -0
  150. package/.agent/skills/git-pro/SKILL.md +21 -10
  151. package/.agent/skills/github-operations/SKILL.md +21 -7
  152. package/.agent/skills/gpt-taste/SKILL.md +19 -10
  153. package/.agent/skills/gsap-core/SKILL.md +21 -4
  154. package/.agent/skills/gsap-frameworks/SKILL.md +21 -4
  155. package/.agent/skills/gsap-performance/SKILL.md +20 -5
  156. package/.agent/skills/gsap-plugins/SKILL.md +20 -5
  157. package/.agent/skills/gsap-react/SKILL.md +20 -5
  158. package/.agent/skills/gsap-scrolltrigger/SKILL.md +21 -4
  159. package/.agent/skills/gsap-timeline/SKILL.md +20 -5
  160. package/.agent/skills/gsap-utils/SKILL.md +20 -5
  161. package/.agent/skills/harden/SKILL.md +19 -10
  162. package/.agent/skills/harness-protocol/SKILL.md +20 -4
  163. package/.agent/skills/i18n-localization/SKILL.md +21 -7
  164. package/.agent/skills/i18n-localization/scripts/__pycache__/i18n_checker.cpython-311.pyc +0 -0
  165. package/.agent/skills/impeccable/SKILL.md +21 -10
  166. package/.agent/skills/improve-codebase-architecture/SKILL.md +21 -10
  167. package/.agent/skills/improve-ui/SKILL.md +19 -10
  168. package/.agent/skills/intelligent-routing/SKILL.md +19 -7
  169. package/.agent/skills/knowledge-graph/SKILL.md +20 -4
  170. package/.agent/skills/landing-page/SKILL.md +20 -10
  171. package/.agent/skills/lint-and-validate/SKILL.md +21 -7
  172. package/.agent/skills/lint-and-validate/scripts/__pycache__/lint_runner.cpython-311.pyc +0 -0
  173. package/.agent/skills/lint-and-validate/scripts/__pycache__/type_coverage.cpython-311.pyc +0 -0
  174. package/.agent/skills/llm-engineering/SKILL.md +21 -7
  175. package/.agent/skills/local-first/SKILL.md +21 -7
  176. package/.agent/skills/local-first-architecture/SKILL.md +19 -10
  177. package/.agent/skills/lottie-animation/SKILL.md +19 -10
  178. package/.agent/skills/marquee-loop/SKILL.md +19 -10
  179. package/.agent/skills/masked-reveal/SKILL.md +19 -10
  180. package/.agent/skills/mcp-builder/SKILL.md +21 -7
  181. package/.agent/skills/micro-interaction/SKILL.md +19 -10
  182. package/.agent/skills/mobile-design/SKILL.md +21 -6
  183. package/.agent/skills/mobile-design/scripts/__pycache__/mobile_audit.cpython-311.pyc +0 -0
  184. package/.agent/skills/monorepo-management/SKILL.md +21 -7
  185. package/.agent/skills/morphing-icons/SKILL.md +19 -10
  186. package/.agent/skills/motion-engineering/SKILL.md +86 -171
  187. package/.agent/skills/nextjs-react-expert/SKILL.md +19 -7
  188. package/.agent/skills/nextjs-react-expert/scripts/__pycache__/convert_rules.cpython-311.pyc +0 -0
  189. package/.agent/skills/nextjs-react-expert/scripts/__pycache__/react_performance_checker.cpython-311.pyc +0 -0
  190. package/.agent/skills/nodejs-best-practices/SKILL.md +21 -7
  191. package/.agent/skills/observability/SKILL.md +21 -7
  192. package/.agent/skills/page-transition-animation/SKILL.md +19 -10
  193. package/.agent/skills/parallel-agents/SKILL.md +23 -7
  194. package/.agent/skills/performance-profiling/SKILL.md +21 -7
  195. package/.agent/skills/performance-profiling/scripts/__pycache__/lighthouse_audit.cpython-311.pyc +0 -0
  196. package/.agent/skills/plan-writing/SKILL.md +21 -7
  197. package/.agent/skills/platform-engineer/SKILL.md +21 -7
  198. package/.agent/skills/playwright-best-practices/SKILL.md +21 -7
  199. package/.agent/skills/polish/SKILL.md +19 -10
  200. package/.agent/skills/powershell-windows/SKILL.md +21 -7
  201. package/.agent/skills/pricing-page/SKILL.md +19 -10
  202. package/.agent/skills/product-aware-heuristics/SKILL.md +358 -0
  203. package/.agent/skills/progressive-blur/SKILL.md +19 -10
  204. package/.agent/skills/project-idioms/SKILL.md +20 -8
  205. package/.agent/skills/python-patterns/SKILL.md +21 -7
  206. package/.agent/skills/python-pro/SKILL.md +21 -6
  207. package/.agent/skills/quieter/SKILL.md +19 -10
  208. package/.agent/skills/react-doctor/SKILL.md +19 -10
  209. package/.agent/skills/react-specialist/SKILL.md +19 -6
  210. package/.agent/skills/readme-builder/SKILL.md +21 -7
  211. package/.agent/skills/realtime-patterns/SKILL.md +21 -7
  212. package/.agent/skills/red-team-tactics/SKILL.md +21 -7
  213. package/.agent/skills/redesign-skill/SKILL.md +19 -10
  214. package/.agent/skills/review-animations/SKILL.md +21 -10
  215. package/.agent/skills/rust-pro/SKILL.md +21 -7
  216. package/.agent/skills/seo-fundamentals/SKILL.md +21 -7
  217. package/.agent/skills/seo-fundamentals/scripts/__pycache__/seo_checker.cpython-311.pyc +0 -0
  218. package/.agent/skills/server-management/SKILL.md +21 -7
  219. package/.agent/skills/shadcn-ui-expert/SKILL.md +21 -7
  220. package/.agent/skills/shape/SKILL.md +19 -10
  221. package/.agent/skills/skill-creator/SKILL.md +21 -7
  222. package/.agent/skills/soft-skill/SKILL.md +19 -10
  223. package/.agent/skills/sounds-on-the-web/SKILL.md +19 -10
  224. package/.agent/skills/sql-pro/SKILL.md +21 -7
  225. package/.agent/skills/supabase-postgres-best-practices/SKILL.md +21 -7
  226. package/.agent/skills/svg-animation/SKILL.md +19 -10
  227. package/.agent/skills/swiftui-expert/SKILL.md +21 -7
  228. package/.agent/skills/swiss-design/SKILL.md +19 -10
  229. package/.agent/skills/system-design-pro/SKILL.md +21 -9
  230. package/.agent/skills/systematic-debugging/SKILL.md +21 -7
  231. package/.agent/skills/tailwind-patterns/SKILL.md +21 -7
  232. package/.agent/skills/taste-skill/SKILL.md +19 -10
  233. package/.agent/skills/tdd-workflow/SKILL.md +21 -10
  234. package/.agent/skills/test-result-analyzer/SKILL.md +18 -6
  235. package/.agent/skills/testing-patterns/SKILL.md +21 -7
  236. package/.agent/skills/testing-patterns/scripts/__pycache__/test_runner.cpython-311.pyc +0 -0
  237. package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +21 -10
  238. package/.agent/skills/thinking-protocol/SKILL.md +20 -8
  239. package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +19 -10
  240. package/.agent/skills/transitions-dev/SKILL.md +19 -10
  241. package/.agent/skills/trend-researcher/SKILL.md +17 -6
  242. package/.agent/skills/typescript-advanced/SKILL.md +21 -7
  243. package/.agent/skills/typeset/SKILL.md +19 -10
  244. package/.agent/skills/ui-reasoning-engine/SKILL.md +154 -0
  245. package/.agent/skills/ui-skill-packs/SKILL.md +77 -0
  246. package/.agent/skills/ui-skills-root/SKILL.md +21 -9
  247. package/.agent/skills/ui-ux-pro-max/SKILL.md +62 -583
  248. package/.agent/skills/ui-ux-researcher/SKILL.md +17 -6
  249. package/.agent/skills/vue-expert/SKILL.md +19 -6
  250. package/.agent/skills/vulnerability-scanner/SKILL.md +21 -7
  251. package/.agent/skills/vulnerability-scanner/scripts/__pycache__/security_scan.cpython-311.pyc +0 -0
  252. package/.agent/skills/web-accessibility-auditor/SKILL.md +21 -7
  253. package/.agent/skills/web-design-guidelines/SKILL.md +32 -206
  254. package/.agent/skills/web-quality-audit/SKILL.md +19 -10
  255. package/.agent/skills/webapp-testing/SKILL.md +21 -7
  256. package/.agent/skills/webapp-testing/scripts/__pycache__/playwright_runner.cpython-311.pyc +0 -0
  257. package/.agent/skills/webgpu-performance/SKILL.md +19 -3
  258. package/.agent/skills/whimsy-injector/SKILL.md +20 -10
  259. package/.agent/skills/workflow-optimizer/SKILL.md +16 -6
  260. package/.agent/templates/DESIGN.md +292 -0
  261. package/.agent/templates/design-tokens.json +137 -0
  262. package/.agent/workflows/acf.md +13 -6
  263. package/.agent/workflows/api-tester.md +15 -8
  264. package/.agent/workflows/audit.md +19 -8
  265. package/.agent/workflows/brainstorm.md +14 -9
  266. package/.agent/workflows/changelog.md +14 -8
  267. package/.agent/workflows/create.md +16 -8
  268. package/.agent/workflows/debug.md +15 -10
  269. package/.agent/workflows/deploy.md +16 -8
  270. package/.agent/workflows/enhance.md +15 -10
  271. package/.agent/workflows/fix.md +15 -8
  272. package/.agent/workflows/generate.md +17 -11
  273. package/.agent/workflows/marathon.md +15 -8
  274. package/.agent/workflows/migrate.md +16 -8
  275. package/.agent/workflows/minimal.md +94 -0
  276. package/.agent/workflows/orchestrate.md +15 -8
  277. package/.agent/workflows/performance-benchmarker.md +15 -8
  278. package/.agent/workflows/pipeline.md +155 -0
  279. package/.agent/workflows/plan.md +14 -10
  280. package/.agent/workflows/preview.md +14 -7
  281. package/.agent/workflows/refactor.md +16 -8
  282. package/.agent/workflows/review-ai.md +15 -7
  283. package/.agent/workflows/review.md +15 -7
  284. package/.agent/workflows/session.md +14 -7
  285. package/.agent/workflows/status.md +13 -7
  286. package/.agent/workflows/strengthen-skills.md +15 -6
  287. package/.agent/workflows/super-prompt.md +19 -10
  288. package/.agent/workflows/swarm.md +15 -7
  289. package/.agent/workflows/test.md +15 -8
  290. package/.agent/workflows/tribunal-backend.md +16 -9
  291. package/.agent/workflows/tribunal-database.md +15 -8
  292. package/.agent/workflows/tribunal-frontend.md +26 -11
  293. package/.agent/workflows/tribunal-full.md +29 -14
  294. package/.agent/workflows/tribunal-mobile.md +15 -8
  295. package/.agent/workflows/tribunal-performance.md +15 -8
  296. package/.agent/workflows/tribunal-speed.md +16 -9
  297. package/.agent/workflows/tribunal-ui.md +82 -0
  298. package/.agent/workflows/ui-ux-pro-max.md +51 -107
  299. package/CONTRIBUTING.md +2 -2
  300. package/README.md +5 -5
  301. package/bin/mcp-server.js +126 -76
  302. package/bin/wrapper.js +67 -31
  303. package/dist/cli.js +39 -1
  304. package/dist/commands/compile.js +7 -0
  305. package/dist/commands/context.js +8 -3
  306. package/dist/commands/graph.js +8 -2
  307. package/dist/commands/init.js +37 -2
  308. package/dist/commands/memory.js +119 -68
  309. package/dist/commands/minimal.js +71 -0
  310. package/dist/commands/native.js +228 -0
  311. package/dist/commands/optimize.js +15 -5
  312. package/dist/commands/validate.js +67 -0
  313. package/dist/esm/index.mjs +26 -32
  314. package/dist/mcp/server.js +4 -138
  315. package/dist/utils/fs.js +10 -4
  316. package/dist/utils/helpers.js +10 -1
  317. package/dist/utils/version.js +9 -2
  318. package/mcp_config.json +10 -1
  319. package/package.json +19 -15
  320. package/scripts/benchmark.js +58 -0
  321. package/scripts/sync-version.js +129 -76
  322. package/scripts/visual_audit.js +126 -0
@@ -0,0 +1,53 @@
1
+ # 📜 Tribunal History Subsystem v3.0.0 — Architecture & Retention Guide
2
+
3
+ The `.agent/history/` directory maintains persistent memory, case law precedents, code backups, and context graphs for the Tribunal Anti-Hallucination Kit.
4
+
5
+ ---
6
+
7
+ ## 🏛️ The 4 History Pillars
8
+
9
+ ```mermaid
10
+ flowchart TD
11
+ H[".agent/history/"] --> M["1. memory/ (MEMORY.md + .memory.idx)"]
12
+ H --> C["2. case-law/ (index.json + cases/)"]
13
+ H --> S["3. snapshots/ (*.json backups)"]
14
+ H --> G["4. architecture-graph.yaml (Context Snapshots)"]
15
+
16
+ M --> M1["Semantic & Procedural Facts"]
17
+ C --> C1["Rejected Code Diffs & Precedents"]
18
+ S --> S1["Pre-edit Safety Reversion Backups"]
19
+ G --> G1["27x Context Reduction Graph"]
20
+ ```
21
+
22
+ ---
23
+
24
+ ## 1. Memory Subsystem (`history/memory/`)
25
+
26
+ * **`MEMORY.md`**: Permanent, deduplicated Markdown index storing Semantic (facts/idioms) and Procedural (build/test recipes) rules.
27
+ * **`.memory.idx`**: Binary index for rapid key-value lookup.
28
+ * **Retention Policy**: Memory entries are permanent unless explicitly updated by `/session` or `tribunal-kit memory prune`. Redundant entries are auto-deduplicated.
29
+
30
+ ---
31
+
32
+ ## 2. Case Law Subsystem (`history/case-law/`)
33
+
34
+ * **`index.json`**: Master index of historical review rejections and architectural verdicts.
35
+ * **`cases/`**: Detailed case records detailing fingerprint, rejected code diff, root cause, and remediation guidance.
36
+ * **Activation**: The `precedence-reviewer` agent queries `case-law/index.json` before code generation to ensure previous mistakes are never repeated.
37
+
38
+ ---
39
+
40
+ ## 3. Code Snapshots Subsystem (`history/snapshots/`)
41
+
42
+ * **`*.json`**: AST and content snapshots of target files created automatically prior to major structural edits.
43
+ * **Rotation Policy**:
44
+ - Maximum 10 latest snapshots retained per component.
45
+ - Snapshots older than 30 days are automatically eligible for purge.
46
+ - Enables instant rollback via `/session restore` or `/fix --rollback`.
47
+
48
+ ---
49
+
50
+ ## 4. Architecture Graph Subsystem (`history/`)
51
+
52
+ * **`architecture-graph.yaml` & `graph-cache.json`**: Compressed dependency topology graphs for 27x context window token reduction (used by `Knowledge Graph Analyzer` skill).
53
+ * **`integrity_manifest.json`**: SHA-256 cryptographic signatures ensuring snapshot integrity across AI sessions.
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "CaseLawRecord",
4
+ "version": "3.0.0",
5
+ "description": "Standard Case Law record schema for Tribunal Anti-Hallucination Kit precedence checks.",
6
+ "type": "object",
7
+ "required": ["id", "fingerprint", "domain", "verdict", "tags", "timestamp", "reason_summary", "remediation"],
8
+ "properties": {
9
+ "id": { "type": "integer", "description": "Unique Case Law ID" },
10
+ "fingerprint": { "type": "string", "description": "8-character hex SHA hash of the rejected pattern" },
11
+ "domain": { "type": "string", "enum": ["security", "performance", "architecture", "database", "frontend", "mobile", "ai-llm"] },
12
+ "verdict": { "type": "string", "enum": ["REJECTED", "APPROVED_WITH_CAVEAT"] },
13
+ "tags": { "type": "array", "items": { "type": "string" } },
14
+ "timestamp": { "type": "string", "format": "date-time" },
15
+ "reason_summary": { "type": "string", "description": "High-level summary of why the code diff was rejected" },
16
+ "rejected_diff": { "type": "string", "description": "The exact code snippet or diff that triggered rejection" },
17
+ "remediation": { "type": "string", "description": "The required pattern or solution to comply with kit standards" }
18
+ }
19
+ }
@@ -1,8 +1,8 @@
1
1
  {
2
- "version": "5.8.4",
3
- "generated_at": "2026-07-21T06:58:53.533Z",
2
+ "version": "6.0.0",
3
+ "generated_at": "2026-07-29T09:08:25.726Z",
4
4
  "agents": {
5
- "total": 44,
5
+ "total": 45,
6
6
  "reviewers": [
7
7
  "accessibility-reviewer",
8
8
  "ai-code-reviewer",
@@ -20,8 +20,10 @@
20
20
  "security-auditor",
21
21
  "sql-reviewer",
22
22
  "test-coverage-reviewer",
23
+ "throughput-optimizer",
23
24
  "type-safety-reviewer",
24
25
  "ui-ux-auditor",
26
+ "ui-visual-auditor",
25
27
  "vitals-reviewer"
26
28
  ],
27
29
  "specialists": [
@@ -48,10 +50,9 @@
48
50
  "swarm-worker-contracts",
49
51
  "swarm-worker-registry",
50
52
  "system-architect",
51
- "test-engineer",
52
- "throughput-optimizer"
53
+ "test-engineer"
53
54
  ],
54
- "reviewer_count": 19,
55
+ "reviewer_count": 21,
55
56
  "all": [
56
57
  "accessibility-reviewer",
57
58
  "ai-code-reviewer",
@@ -96,47 +97,79 @@
96
97
  "throughput-optimizer",
97
98
  "type-safety-reviewer",
98
99
  "ui-ux-auditor",
100
+ "ui-visual-auditor",
99
101
  "vitals-reviewer"
100
102
  ]
101
103
  },
102
104
  "skills": {
103
- "total": 106,
105
+ "total": 169,
104
106
  "names": [
107
+ "12-principles-of-animation",
108
+ "60fps-animation",
105
109
  "Knowledge Graph Analyzer",
110
+ "accessible-animation",
111
+ "adapt",
106
112
  "advanced-rag-pipelines",
107
113
  "agent-organizer",
108
114
  "agentic-patterns",
109
115
  "ai-prompt-injection-defense",
116
+ "animation-on-scroll",
117
+ "animation-systems",
118
+ "antfu-conventions",
110
119
  "api-patterns",
111
120
  "api-security-auditor",
112
121
  "app-builder",
113
122
  "appflow-wireframe",
123
+ "apple-design",
114
124
  "architecture",
125
+ "audit-and-fix",
115
126
  "authentication-best-practices",
116
127
  "backend-security-expert",
128
+ "baseline-ui",
117
129
  "bash-linux",
118
130
  "behavioral-modes",
131
+ "better-colors",
132
+ "better-typography",
133
+ "better-ui",
134
+ "bolder",
119
135
  "brainstorming",
120
136
  "browser-native-ai",
137
+ "build-primitive",
121
138
  "building-native-ui",
122
139
  "cicd-pro",
140
+ "clarify",
123
141
  "clean-code",
124
142
  "cloud-architect",
143
+ "cobejs",
125
144
  "code-review-checklist",
145
+ "codebase-design",
146
+ "colorize",
147
+ "compact-landing",
148
+ "company-logos",
126
149
  "config-validator",
127
150
  "containerization-pro",
151
+ "create-design-md",
152
+ "critique",
128
153
  "csharp-developer",
129
154
  "data-validation-schemas",
130
155
  "database-design",
156
+ "delight",
131
157
  "deployment-procedures",
158
+ "design-lab",
132
159
  "devops-engineer",
133
160
  "devops-incident-responder",
161
+ "diagnosing-bugs",
162
+ "distill",
134
163
  "documentation-templates",
164
+ "domain-modeling",
135
165
  "edge-computing",
136
166
  "emil-design-eng",
137
167
  "error-resilience",
138
168
  "extract-design-system",
139
169
  "fabel-protocol",
170
+ "fixing-accessibility",
171
+ "fixing-metadata",
172
+ "fixing-motion-performance",
140
173
  "framer-motion-expert",
141
174
  "frontend-design",
142
175
  "frontend-security-expert",
@@ -146,6 +179,7 @@
146
179
  "geo-fundamentals",
147
180
  "git-pro",
148
181
  "github-operations",
182
+ "gpt-taste",
149
183
  "gsap-core",
150
184
  "gsap-frameworks",
151
185
  "gsap-performance",
@@ -154,56 +188,87 @@
154
188
  "gsap-scrolltrigger",
155
189
  "gsap-timeline",
156
190
  "gsap-utils",
191
+ "harden",
157
192
  "harness-protocol",
158
193
  "i18n-localization",
194
+ "impeccable",
195
+ "improve-codebase-architecture",
196
+ "improve-ui",
159
197
  "intelligent-routing",
198
+ "landing-page",
160
199
  "lint-and-validate",
161
200
  "llm-engineering",
162
201
  "local-first",
202
+ "local-first-architecture",
203
+ "lottie-animation",
204
+ "marquee-loop",
205
+ "masked-reveal",
163
206
  "mcp-builder",
207
+ "micro-interaction",
164
208
  "mobile-design",
165
209
  "monorepo-management",
210
+ "morphing-icons",
166
211
  "motion-engineering",
167
212
  "nextjs-react-expert",
168
213
  "nodejs-best-practices",
169
214
  "observability",
215
+ "page-transition-animation",
170
216
  "parallel-agents",
171
217
  "performance-profiling",
172
218
  "plan-writing",
173
219
  "platform-engineer",
174
220
  "playwright-best-practices",
221
+ "polish",
175
222
  "powershell-windows",
223
+ "pricing-page",
224
+ "progressive-blur",
176
225
  "project-idioms",
177
226
  "python-patterns",
178
227
  "python-pro",
228
+ "quieter",
229
+ "react-doctor",
179
230
  "react-specialist",
180
231
  "readme-builder",
181
232
  "realtime-patterns",
182
233
  "red-team-tactics",
234
+ "redesign-skill",
183
235
  "review-animations",
184
236
  "rust-pro",
185
237
  "seo-fundamentals",
186
238
  "server-management",
187
239
  "shadcn-ui-expert",
240
+ "shape",
188
241
  "skill-creator",
242
+ "soft-skill",
243
+ "sounds-on-the-web",
189
244
  "sql-pro",
190
245
  "supabase-postgres-best-practices",
246
+ "svg-animation",
191
247
  "swiftui-expert",
248
+ "swiss-design",
192
249
  "system-design-pro",
193
250
  "systematic-debugging",
194
251
  "tailwind-patterns",
252
+ "taste-skill",
195
253
  "tdd-workflow",
196
254
  "test-result-analyzer",
197
255
  "testing-patterns",
256
+ "thermo-nuclear-code-quality-review",
198
257
  "thinking-protocol",
258
+ "to-spring-or-not-to-spring",
259
+ "transitions-dev",
199
260
  "trend-researcher",
200
261
  "typescript-advanced",
262
+ "typeset",
263
+ "ui-skill-packs",
264
+ "ui-skills-root",
201
265
  "ui-ux-pro-max",
202
266
  "ui-ux-researcher",
203
267
  "vue-expert",
204
268
  "vulnerability-scanner",
205
269
  "web-accessibility-auditor",
206
270
  "web-design-guidelines",
271
+ "web-quality-audit",
207
272
  "webapp-testing",
208
273
  "webgpu-performance",
209
274
  "whimsy-injector",
@@ -211,7 +276,7 @@
211
276
  ]
212
277
  },
213
278
  "scripts": {
214
- "total": 31,
279
+ "total": 33,
215
280
  "files": {
216
281
  "auto_preview.js": ".agent/scripts/auto_preview.js",
217
282
  "bundle_analyzer.js": ".agent/scripts/bundle_analyzer.js",
@@ -231,6 +296,7 @@
231
296
  "migrate_skills_frontmatter.py": ".agent/scripts/migrate_skills_frontmatter.py",
232
297
  "minify_context.js": ".agent/scripts/minify_context.js",
233
298
  "mutation_runner.js": ".agent/scripts/mutation_runner.js",
299
+ "pipeline_engine.js": ".agent/scripts/pipeline_engine.js",
234
300
  "prompt_compiler.js": ".agent/scripts/prompt_compiler.js",
235
301
  "schema_validator.js": ".agent/scripts/schema_validator.js",
236
302
  "security_scan.js": ".agent/scripts/security_scan.js",
@@ -242,12 +308,13 @@
242
308
  "swarm_dispatcher.js": ".agent/scripts/swarm_dispatcher.js",
243
309
  "test_runner.js": ".agent/scripts/test_runner.js",
244
310
  "verify_all.js": ".agent/scripts/verify_all.js",
311
+ "visual_audit.js": ".agent/scripts/visual_audit.js",
245
312
  "_colors.js": ".agent/scripts/_colors.js",
246
313
  "_utils.js": ".agent/scripts/_utils.js"
247
314
  }
248
315
  },
249
316
  "workflows": {
250
- "total": 34,
317
+ "total": 35,
251
318
  "names": [
252
319
  "acf",
253
320
  "api-tester",
@@ -264,6 +331,7 @@
264
331
  "migrate",
265
332
  "orchestrate",
266
333
  "performance-benchmarker",
334
+ "pipeline",
267
335
  "plan",
268
336
  "preview",
269
337
  "refactor",
@@ -442,6 +510,12 @@
442
510
  "exists": true,
443
511
  "type": "script"
444
512
  },
513
+ {
514
+ "source": "ARCHITECTURE.md",
515
+ "ref": "scripts/pipeline_engine.js",
516
+ "exists": true,
517
+ "type": "script"
518
+ },
445
519
  {
446
520
  "source": "ARCHITECTURE.md",
447
521
  "ref": "scripts/checklist.js",
@@ -682,6 +756,12 @@
682
756
  "exists": true,
683
757
  "type": "workflow"
684
758
  },
759
+ {
760
+ "source": "ARCHITECTURE.md",
761
+ "ref": "workflows/pipeline.md",
762
+ "exists": true,
763
+ "type": "workflow"
764
+ },
685
765
  {
686
766
  "source": "rules/GEMINI.md",
687
767
  "ref": "agents/frontend-specialist.md",
@@ -850,6 +930,12 @@
850
930
  "exists": true,
851
931
  "type": "script"
852
932
  },
933
+ {
934
+ "source": "workflows/pipeline.md",
935
+ "ref": "scripts/pipeline_engine.js",
936
+ "exists": true,
937
+ "type": "script"
938
+ },
853
939
  {
854
940
  "source": "workflows/preview.md",
855
941
  "ref": "scripts/auto_preview.js",
@@ -880,6 +966,12 @@
880
966
  "exists": true,
881
967
  "type": "script"
882
968
  },
969
+ {
970
+ "source": "workflows/tribunal-frontend.md",
971
+ "ref": "scripts/visual_audit.js",
972
+ "exists": true,
973
+ "type": "script"
974
+ },
883
975
  {
884
976
  "source": "workflows/ui-ux-pro-max.md",
885
977
  "ref": "scripts/swarm_dispatcher.js",
@@ -890,69 +982,75 @@
890
982
  "numeric_claims": [
891
983
  {
892
984
  "source": "ARCHITECTURE.md:L45",
893
- "claim": "19 reviewers",
894
- "actual": 19,
985
+ "claim": "21 reviewers",
986
+ "actual": 21,
987
+ "valid": true
988
+ },
989
+ {
990
+ "source": "ARCHITECTURE.md:L74",
991
+ "claim": "21 reviewers",
992
+ "actual": 21,
895
993
  "valid": true
896
994
  },
897
995
  {
898
- "source": "ARCHITECTURE.md:L270",
899
- "claim": "19 reviewers",
900
- "actual": 19,
996
+ "source": "ARCHITECTURE.md:L319",
997
+ "claim": "21 reviewers",
998
+ "actual": 21,
901
999
  "valid": true
902
1000
  },
903
1001
  {
904
- "source": "ARCHITECTURE.md:L276",
905
- "claim": "106 skills",
906
- "actual": 106,
1002
+ "source": "rules/GEMINI.md:L225",
1003
+ "claim": "21 reviewers",
1004
+ "actual": 21,
907
1005
  "valid": true
908
1006
  },
909
1007
  {
910
1008
  "source": "workflows/generate.md:L131",
911
- "claim": "19 reviewers",
912
- "actual": 19,
1009
+ "claim": "21 reviewers",
1010
+ "actual": 21,
913
1011
  "valid": true
914
1012
  },
915
1013
  {
916
1014
  "source": "workflows/tribunal-full.md:L2",
917
- "claim": "19 reviewers",
918
- "actual": 19,
1015
+ "claim": "21 reviewers",
1016
+ "actual": 21,
919
1017
  "valid": true
920
1018
  },
921
1019
  {
922
1020
  "source": "workflows/tribunal-full.md:L6",
923
- "claim": "19 reviewers",
924
- "actual": 19,
1021
+ "claim": "21 reviewers",
1022
+ "actual": 21,
925
1023
  "valid": true
926
1024
  },
927
1025
  {
928
1026
  "source": "workflows/tribunal-full.md:L35",
929
- "claim": "19 reviewers",
930
- "actual": 19,
1027
+ "claim": "21 reviewers",
1028
+ "actual": 21,
931
1029
  "valid": true
932
1030
  },
933
1031
  {
934
1032
  "source": "workflows/tribunal-full.md:L71",
935
- "claim": "19 reviewers",
936
- "actual": 19,
1033
+ "claim": "21 reviewers",
1034
+ "actual": 21,
937
1035
  "valid": true
938
1036
  },
939
1037
  {
940
1038
  "source": "workflows/tribunal-full.md:L127",
941
- "claim": "19 reviewers",
942
- "actual": 19,
1039
+ "claim": "21 reviewers",
1040
+ "actual": 21,
943
1041
  "valid": true
944
1042
  },
945
1043
  {
946
1044
  "source": "workflows/tribunal-speed.md:L184",
947
- "claim": "19 reviewers",
948
- "actual": 19,
1045
+ "claim": "21 reviewers",
1046
+ "actual": 21,
949
1047
  "valid": true
950
1048
  }
951
1049
  ],
952
1050
  "integrity": {
953
1051
  "phantom_references": 0,
954
1052
  "invalid_claims": 0,
955
- "total_references": 100,
956
- "total_claims": 10
1053
+ "total_references": 104,
1054
+ "total_claims": 11
957
1055
  }
958
1056
  }