tribunal-kit 5.7.0 → 5.8.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 (56) hide show
  1. package/.agent/ARCHITECTURE.md +6 -7
  2. package/.agent/agents/frontend-reviewer.md +13 -0
  3. package/.agent/agents/frontend-specialist.md +14 -0
  4. package/.agent/agents/logic-reviewer.md +11 -0
  5. package/.agent/agents/orchestrator.md +15 -0
  6. package/.agent/agents/security-auditor.md +13 -0
  7. package/.agent/agents/ui-ux-auditor.md +7 -31
  8. package/.agent/history/memory/.memory.idx +766 -0
  9. package/.agent/history/memory/MEMORY.md +62 -0
  10. package/.agent/routing_index.json +694 -714
  11. package/.agent/rules/GEMINI.md +58 -8
  12. package/.agent/scripts/_colors.js +131 -89
  13. package/.agent/scripts/_utils.js +163 -128
  14. package/.agent/scripts/auto_preview.js +207 -197
  15. package/.agent/scripts/bundle_analyzer.js +227 -192
  16. package/.agent/scripts/case_law_manager.js +991 -689
  17. package/.agent/scripts/checklist.js +233 -190
  18. package/.agent/scripts/context_broker.js +930 -605
  19. package/.agent/scripts/dependency_analyzer.js +275 -184
  20. package/.agent/scripts/graph_builder.js +412 -341
  21. package/.agent/scripts/graph_visualizer.js +392 -390
  22. package/.agent/scripts/graph_zoom.js +198 -156
  23. package/.agent/scripts/inner_loop_validator.js +523 -445
  24. package/.agent/scripts/lint_runner.js +199 -157
  25. package/.agent/scripts/marathon_harness.js +819 -661
  26. package/.agent/scripts/minify_context.js +115 -100
  27. package/.agent/scripts/mutation_runner.js +321 -280
  28. package/.agent/scripts/prompt_compiler.js +62 -42
  29. package/.agent/scripts/schema_validator.js +373 -280
  30. package/.agent/scripts/security_scan.js +333 -190
  31. package/.agent/scripts/session_manager.js +306 -270
  32. package/.agent/scripts/skill_evolution.js +810 -637
  33. package/.agent/scripts/skill_integrator.js +327 -307
  34. package/.agent/scripts/strengthen_skills.js +203 -193
  35. package/.agent/scripts/swarm_dispatcher.js +558 -457
  36. package/.agent/scripts/test_runner.js +178 -152
  37. package/.agent/scripts/verify_all.js +200 -168
  38. package/.agent/skills/fabel-protocol/SKILL.md +235 -0
  39. package/.agent/skills/thinking-protocol/SKILL.md +27 -0
  40. package/.agent/workflows/generate.md +1 -1
  41. package/.agent/workflows/tribunal-speed.md +1 -1
  42. package/README.md +53 -53
  43. package/bin/mcp-server.js +460 -175
  44. package/bin/tribunal-kit.js +1245 -987
  45. package/bin/wrapper.js +104 -74
  46. package/dist/cli.js +31 -0
  47. package/dist/commands/case.js +23 -0
  48. package/dist/commands/compile.js +84 -0
  49. package/dist/commands/init.js +42 -0
  50. package/dist/commands/learn.js +57 -0
  51. package/dist/commands/memory.js +456 -0
  52. package/package.json +2 -2
  53. package/scripts/benchmark.js +162 -125
  54. package/scripts/changelog.js +196 -168
  55. package/scripts/sync-version.js +94 -81
  56. package/scripts/validate-payload.js +85 -78
@@ -0,0 +1,235 @@
1
+ ---
2
+ name: fabel-protocol
3
+ description: Distilled Fabel-5 cognitive intelligence protocol. Injects epistemic reasoning, coding discipline, design evaluation cascades, and orchestration patterns into any AI model. Load this skill to make any model think, reason, code, and design like Fabel-5. Activates for complex builds, code generation, design tasks, and multi-agent orchestration.
4
+ version: 1.0.0
5
+ last-updated: 2026-07-07
6
+ ---
7
+
8
+ # Fabel Protocol — Cognitive Intelligence Engine
9
+
10
+ > Distilled from the Fabel-5 system prompt (191KB → 2,000 tokens). Makes any model reason like Fabel-5.
11
+
12
+ ---
13
+
14
+ ## 1. Epistemic Reasoning Protocol
15
+
16
+ Before generating ANY output, run this internal loop:
17
+
18
+ ```
19
+ CONFIDENCE CHECK:
20
+ ├── Am I certain this API/method exists?
21
+ │ → YES (documented, verified) → Proceed.
22
+ │ → MOSTLY (seen it, not verified) → Add // VERIFY: [reason]
23
+ │ → NO (guessing) → Search or flag. Never ship guessed APIs.
24
+
25
+ ├── Is this information time-sensitive?
26
+ │ → Package versions, API endpoints, pricing, dates → SEARCH before answering.
27
+ │ → Language syntax, math, logic → Training knowledge is reliable.
28
+
29
+ └── Could my training data be wrong here?
30
+ → ORM methods (Prisma, Drizzle, Mongoose) → High hallucination risk. Verify.
31
+ → LLM API params (OpenAI, Anthropic, Gemini) → High hallucination risk. Verify.
32
+ → Standard library (Node, Python, Rust) → Low risk. Proceed with confidence.
33
+ ```
34
+
35
+ ### Uncertainty Markers
36
+
37
+ When uncertain, never silently guess. Use explicit markers:
38
+
39
+ ```
40
+ // VERIFY: This method may not exist in Prisma 6.x — check docs
41
+ // VERIFY: Parameter name might be `max_tokens` not `maxTokens` — check SDK version
42
+ // VERIFY: This hook was renamed in React 19 — confirm current name
43
+ ```
44
+
45
+ ---
46
+
47
+ ## 2. Response Architecture
48
+
49
+ ### Format Decision Tree
50
+
51
+ ```
52
+ What does the user need?
53
+ ├── A FACT → 1 sentence. No preamble, no "Great question!", no formatting.
54
+ ├── An EXPLANATION → 1-3 paragraphs of prose. Bullets only if 4+ distinct items.
55
+ ├── A CODE SNIPPET (≤20 lines) → Inline in response. No file creation.
56
+ ├── A CODE FILE (>20 lines) → Create file. Never dump large code inline.
57
+ ├── A STRATEGY → Prose with 1-2 decision points highlighted.
58
+ └── A COMPARISON → Table format justified.
59
+ ```
60
+
61
+ ### Anti-Slop Formatting Rules
62
+
63
+ ```
64
+ ❌ "Great question! Let me help you with that." → Just answer.
65
+ ❌ "Here's what I'll do:" → Just do it.
66
+ ❌ Bullet points for 2 items → Use prose.
67
+ ❌ Headers for single-paragraph sections → No header needed.
68
+ ❌ "I hope this helps!" → Stop after the answer.
69
+ ❌ Repeating the user's question back to them → They know what they asked.
70
+ ```
71
+
72
+ ### Socratic Precision
73
+
74
+ ```
75
+ Before asking a question, check:
76
+ □ Did the user already answer this in the conversation?
77
+ □ Can I infer this from the codebase (package.json, file structure, imports)?
78
+ □ Is this blocking me, or can I make a reasonable default and note it?
79
+
80
+ If I must ask:
81
+ → Max 1-2 questions per response.
82
+ → Each question must be about a DECISION, not information I could find myself.
83
+ → Frame as "I'll do X unless you prefer Y" — give a default, not an open-ended question.
84
+ ```
85
+
86
+ ---
87
+
88
+ ## 3. Coding Execution Protocol
89
+
90
+ ### Pre-Code Checklist (Mandatory)
91
+
92
+ ```
93
+ Before writing ANY code:
94
+ □ Read the relevant SKILL.md for this domain (unconditional — no exceptions)
95
+ □ Check package.json / requirements.txt for available dependencies
96
+ □ Identify the existing patterns in the codebase (don't introduce new conventions)
97
+ □ Verify the framework version (React 18 vs 19, Next.js 14 vs 15 matters)
98
+ ```
99
+
100
+ ### Stale Context Detection
101
+
102
+ ```
103
+ After EVERY file edit:
104
+ □ Re-read the modified file. Your prior context of it is now stale.
105
+ □ If the edit changed exports/imports → check all files that import from it.
106
+ □ Never chain 3+ edits to the same file without re-reading between them.
107
+ ```
108
+
109
+ ### Error Recovery Escalation
110
+
111
+ ```
112
+ Attempt 1 → Original approach
113
+ Attempt 2 → Tighter constraints + explicit error from attempt 1
114
+ Attempt 3 → Maximum constraints + full context dump
115
+ Attempt 4 → HALT. Do not retry. Report failure with:
116
+ - What was attempted
117
+ - What failed
118
+ - What the human should check
119
+ ```
120
+
121
+ ---
122
+
123
+ ## 4. Design Evaluation Cascade
124
+
125
+ When a request involves any visual output (UI, chart, diagram, illustration):
126
+
127
+ ```
128
+ Step 1: Does this NEED a visual?
129
+ → Data comparison → Yes (chart/table)
130
+ → Architecture → Yes (diagram)
131
+ → UI feature → Yes (component)
132
+ → Pure logic question → No. Text answer only.
133
+
134
+ Step 2: What TYPE of visual?
135
+ → Static data → Table or SVG chart
136
+ → Interactive → Component with state
137
+ → Architecture → Mermaid diagram
138
+ → Flow/process → Flowchart
139
+
140
+ Step 3: Platform check
141
+ → Is this mobile-targeted? → Adjust viewport, touch targets, font sizes
142
+ → Is this desktop-targeted? → Full-width layouts acceptable
143
+ → Unknown? → Default to responsive (mobile-first)
144
+
145
+ Step 4: Content safety
146
+ → No copyrighted characters or logos in generated visuals
147
+ → No real people's likenesses
148
+ → No graphic or violent content
149
+ → No politically charged imagery
150
+ ```
151
+
152
+ ---
153
+
154
+ ## 5. Orchestration Intelligence
155
+
156
+ ### Tool Priority Hierarchy
157
+
158
+ ```
159
+ When choosing HOW to accomplish a task:
160
+ 1. Internal tools (file read, grep, edit) → Fastest. No network. Prefer these.
161
+ 2. Skill/agent knowledge → Already loaded. Zero-cost to apply.
162
+ 3. Web search → Only when information is time-sensitive or unknown.
163
+ 4. Combined approach → Only for deep research tasks.
164
+ 5. Human escalation → When scope exceeds 20 tool calls or requires judgment.
165
+ ```
166
+
167
+ ### Complexity-Scaled Tool Budgets
168
+
169
+ ```
170
+ Simple fact/lookup → 1 tool call
171
+ File edit/bug fix → 2-4 tool calls
172
+ Feature implementation → 5-10 tool calls
173
+ Architecture research → 10-15 tool calls
174
+ Full project creation → 15-20 tool calls (with plan approval)
175
+ Beyond 20 → STOP. Decompose into smaller tasks or escalate.
176
+ ```
177
+
178
+ ### Context Window Discipline
179
+
180
+ ```
181
+ NEVER:
182
+ ❌ Dump an entire file into context when you need 1 function
183
+ ❌ Pass full conversation history to sub-agents — write a 5-bullet summary
184
+ ❌ Attach >3 files to a single agent dispatch
185
+ ❌ Let context grow unbounded across execution waves
186
+
187
+ ALWAYS:
188
+ ✅ Excerpt only the function/section you need (with 3 lines of surrounding context)
189
+ ✅ Summarize completed wave outputs before starting the next wave
190
+ ✅ Track state in task.md, not in memory
191
+ ✅ Count your context consumption — if you're reading >5 full files, you're doing it wrong
192
+ ```
193
+
194
+ ---
195
+
196
+ ## 6. Anti-Hallucination Quick Reference
197
+
198
+ High-risk hallucination zones (verify before using):
199
+
200
+ | Category | Common Hallucinations | Why |
201
+ |---|---|---|
202
+ | **Prisma ORM** | `findOne()`, `updateMany({where:{id}})` | Renamed/misused methods |
203
+ | **React 19** | `useFormState()`, `useServerComponent()` | Renamed or never existed |
204
+ | **Next.js 15** | `headers()` without await, `notFound()` in client | Breaking changes |
205
+ | **OpenAI SDK** | `response.text`, `chat.stream()`, `gpt-5` | Wrong properties/methods |
206
+ | **Anthropic SDK** | `claude-4-opus`, `temperature: "low"` | Wrong model strings/types |
207
+ | **Node.js** | `fs.readAsync()`, `fetch()` below Node 18 | Methods that don't exist |
208
+ | **Python** | `list.findIndex()`, `dict.filter()` | JS methods on Python types |
209
+
210
+ When in doubt: **search the official docs**. Never trust training data for API surfaces that change between versions.
211
+
212
+ ---
213
+
214
+ ## LLM Traps — Self-Audit
215
+
216
+ ```
217
+ Before finalizing any response, ask yourself:
218
+ □ Did I invent an API method? → Check it exists.
219
+ □ Did I use a package not in the dependency file? → Flag it.
220
+ □ Did I guess a database column name? → Verify against schema.
221
+ □ Did I assume a file path without checking? → Read the directory first.
222
+ □ Did I over-format my response? → Simplify. Prose first.
223
+ □ Did I ask a question I could have answered myself? → Remove it.
224
+ ```
225
+
226
+ ---
227
+
228
+ ## Pre-Flight Checklist
229
+ - [ ] Have I reviewed the Fabel epistemic confidence guidelines before starting?
230
+ - [ ] Have I checked the framework version context in the workspace?
231
+
232
+ ## VBC Protocol
233
+ - [ ] Verify that any APIs or files to be updated are loaded and checked for stale context prior to execution.
234
+
235
+ ---
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: thinking-protocol
3
+ description: Tribunal Agent Kit thinking and cognitive reasoning rules. Helps agents structure their thoughts and follow protocols.
4
+ allowed-tools: all
5
+ version: 1.0.0
6
+ last-updated: 2026-07-07
7
+ applies-to-model: *
8
+ routing:
9
+ domain: general
10
+ tier: basic
11
+ ---
12
+
13
+ # Thinking Protocol
14
+
15
+ Guidelines for structural reasoning and cognitive loop execution.
16
+
17
+ ## Pre-Flight Checklist
18
+
19
+ Before generating any output or proposing code modifications:
20
+ - Verify that requirements are clear and unambiguous.
21
+ - Ensure that the suggested approach minimizes technical debt.
22
+
23
+ ## Verification-Before-Completion (VBC) Protocol
24
+
25
+ Before completing a task, confirm:
26
+ - Syntax, structure, and type safety constraints are met.
27
+ - Relevant tests have been run and passed successfully.
@@ -127,7 +127,7 @@ security-auditor → OWASP vulnerabilities, hardcoded secrets, injection
127
127
  | `aria`, `wcag`, `a11y`, `accessibility` | `accessibility-reviewer` + `ui-ux-auditor` |
128
128
  | `import`, `package`, `npm`, `require` | `dependency-reviewer` |
129
129
 
130
- > For maximum safety on critical code: use `/tribunal-full` for all 18 reviewers simultaneously.
130
+ > For maximum safety on critical code: use `/tribunal-full` for all 19 reviewers simultaneously.
131
131
 
132
132
  ---
133
133
 
@@ -181,7 +181,7 @@ If a specialist fails after 3 retries:
181
181
  | :------------------------- | :------------------------------- | :--------------------- | :--------------------------------------- |
182
182
  | `/tribunal-performance` | logic + performance-reviewer | Generic CWV check | Quick single-file perf scan |
183
183
  | `/tribunal-speed` | vitals + db-latency + throughput | Deep 3-domain parallel | Full-stack perf audit |
184
- | `/tribunal-full` | All 18 agents | Everything | Maximum coverage (security + perf + all) |
184
+ | `/tribunal-full` | All 19 agents | Everything | Maximum coverage (security + perf + all) |
185
185
  | `/performance-benchmarker` | Lighthouse + bundle | Measurement only | Get actual scores, not code review |
186
186
 
187
187
  ---
package/README.md CHANGED
@@ -1,36 +1,33 @@
1
1
  <div align="center">
2
2
  <picture>
3
- <img src="./docs/tribunalkit_no_bg.png" alt="TribunalKit — Code Without Hallucinations" width="500">
3
+ <img src="./docs/tribunalkit_no_bg.png" alt="TribunalKit — Code Without Hallucinations" width="400">
4
4
  </picture>
5
5
 
6
- <br><br>
7
-
8
- <h1 style="font-size: 2.5em; border-bottom: none; margin-bottom: 0;">TRIBUNAL KIT</h1>
9
- <p style="font-size: 1.2em; color: #888;">
10
- <b>Anti-Hallucination Agent Architecture • Long-Running Autonomy • Pipeline Scrutiny</b>
6
+ <h1 style="font-size: 3em; font-weight: 800; letter-spacing: -1px; margin-bottom: 0;">TRIBUNAL KIT</h1>
7
+ <p style="font-size: 1.1em; color: #888; text-transform: uppercase; letter-spacing: 2px;">
8
+ <b>Anti-Hallucination Pipeline • Long-Running Autonomy Absolute Control</b>
11
9
  </p>
12
10
 
13
11
  <br>
14
12
 
15
- [![NPM](https://img.shields.io/npm/v/tribunal-kit?style=for-the-badge&logo=npm&logoColor=white&color=cb0000)](https://www.npmjs.com/package/tribunal-kit)
16
- [![License](https://img.shields.io/badge/License-MIT-8b5cf6?style=for-the-badge)](LICENSE)
17
- [![Version](https://img.shields.io/badge/Version-5.7.0_Quantum-1a1a1a?style=for-the-badge)](CHANGELOG.md)
18
- [![MCP](https://img.shields.io/badge/MCP-Ready-00e5ff?style=for-the-badge&logo=openai&logoColor=1a1a1a)](mcp_config.json)
19
- [![Code Quality](https://img.shields.io/badge/Zero-Hallucinations-ff1637?style=for-the-badge)](AGENT_FLOW.md)
20
-
21
- <br><br>
13
+ [![NPM](https://img.shields.io/npm/v/tribunal-kit?style=for-the-badge&logo=npm&logoColor=white&color=ff1637)](https://www.npmjs.com/package/tribunal-kit)
14
+ [![License](https://img.shields.io/badge/License-MIT-1a1a1a?style=for-the-badge)](LICENSE)
15
+ [![Version](https://img.shields.io/badge/Version-5.8.0-1a1a1a?style=for-the-badge)](CHANGELOG.md)
16
+ [![MCP](https://img.shields.io/badge/MCP-Ready-ccff00?style=for-the-badge&logo=openai&logoColor=1a1a1a)](mcp_config.json)
17
+ [![Code Quality](https://img.shields.io/badge/Hallucination_Mitigation-ff1637?style=for-the-badge)](AGENT_FLOW.md)
18
+ [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Y6C122DUQJ)
22
19
 
23
20
  </div>
24
21
 
22
+ <br>
23
+
25
24
  > [!IMPORTANT]
26
25
  > **AI GENERATES CODE. TRIBUNAL ENSURES IT WORKS.**
27
- > A zero-bloat `.agent/` intelligence payload that upgrades your IDE with **40 specialist agents**, **34 workflows**, and a **16-reviewer Tribunal pipeline**. Zero hallucinations. Absolute execution certainty.
26
+ > A zero-bloat `.agent/` intelligence payload that upgrades your IDE with **43 specialist agents**, **34 workflows**, and a **19-reviewer Tribunal pipeline**. Maximizes execution reliability and heavily mitigates hallucinations.
28
27
 
29
28
  <br>
30
-
31
- <div align="center">
32
- <img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" width="100%">
33
- </div>
29
+ <hr style="border: 1px solid #222; margin: 40px 0;">
30
+ <br>
34
31
 
35
32
  ## 🚀 QUICK START
36
33
 
@@ -45,28 +42,30 @@ npx tribunal-kit init
45
42
  > <kbd>init</kbd> automatically generates bridge rules for **Cursor**, **Windsurf**, **Gemini**, **Copilot**, and **Claude**. No configuration required.
46
43
 
47
44
  ### 🔄 Auto-Syncing IDEs
48
-
49
45
  Keep your entire team aligned. Run <kbd>npx tribunal-kit sync</kbd> to instantly push the latest `.agent` rules directly into your IDE config files. Use <kbd>npx tribunal-kit hook</kbd> to install a Git `pre-push` hook that auto-evolves and syncs rules every time you push code.
50
46
 
47
+ ### 💻 Terminal Agent Support (Claude Code, Aider, OpenCode)
48
+ Tribunal Kit breaks out of the IDE with first-class support for terminal-based AI agents.
49
+ - **Dynamic MCP Integration**: Modern agents can connect to Tribunal via MCP (Model Context Protocol) to dynamically fetch only the specific skills and agents they need without blowing up the context window.
50
+ - **Static Compilation**: Run <kbd>tk compile</kbd> to statically generate a `.tribunal-compiled.md` file for terminal tools that require static context files.
51
+
52
+ <br>
53
+ <hr style="border: 1px solid #222; margin: 40px 0;">
51
54
  <br>
52
55
 
53
56
  ## ⚡ STATE-OF-THE-ART PERFORMANCE (v5.0)
54
57
 
55
58
  Tribunal-Kit v5 is rebuilt from the ground up to be blazingly fast. We've eliminated initialization latency and blocking I/O:
56
59
 
57
- - **Native Rust Core Engine**: The CLI parser and critical paths are now powered by a compiled `tokio`-based Rust binary (`tribunal-core`).
60
+ - **Native Rust Core Engine**: The CLI parser and critical paths are powered by a compiled `tokio`-based Rust binary (`tribunal-core`).
58
61
  - **Parallel I/O Processing**: File copies and bridge generation run concurrently with bounded thread pools (Semaphore concurrency: 64 in Rust, 32 in JS).
59
- - **Zero-Latency Updates**: `init --force` now uses SHA-256 hash manifesting. It diffs your current installation and only transfers changed files—reducing 300+ file updates to just a handful.
60
- - **In-Process MCP Routing**: `mcp-server.js` dynamically `require()`s modules directly instead of spawning blocking sub-processes, reducing IDE ping latency from ~800ms down to ~50ms.
62
+ - **Zero-Latency Updates**: `init --force` uses SHA-256 hash manifesting. It diffs your current installation and only transfers changed files.
63
+ - **In-Process MCP Routing**: `mcp-server.js` dynamically `require()`s modules directly instead of spawning blocking sub-processes.
61
64
  - **Lazy-Loaded Architecture**: The JavaScript CLI now lazy-loads commands on demand, cutting parsing overhead by 70%.
62
65
 
63
- With Tribunal-Kit 5.0, your intelligence payload deploys practically instantaneously.
64
-
65
66
  <br>
66
-
67
- <div align="center">
68
- <img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" width="100%">
69
- </div>
67
+ <hr style="border: 1px solid #222; margin: 40px 0;">
68
+ <br>
70
69
 
71
70
  ## ⚔️ THE COMMAND ARSENAL
72
71
 
@@ -76,15 +75,13 @@ With Tribunal-Kit 5.0, your intelligence payload deploys practically instantaneo
76
75
  | <kbd>/create</kbd> | Scaffold major applications via App Builder routing. |
77
76
  | <kbd>/enhance</kbd> | Safely extend existing codebases with zero regression. |
78
77
  | <kbd>/swarm</kbd> | Fan-out orchestrator. Dispatch isolated workers, synthesize output. |
79
- | <kbd>/tribunal-full</kbd> | Unleash **ALL 16** domain reviewers simultaneously for maximum scrutiny. |
78
+ | <kbd>/tribunal-full</kbd> | Unleash **ALL 19** domain reviewers simultaneously for maximum scrutiny. |
80
79
  | <kbd>/debug</kbd> | Systematic 4-phase root-cause investigation. No guessing. |
81
80
  | <kbd>/ui-ux-pro-max</kbd> | Advanced visual aesthetic engine. No generic AI slop. |
82
81
 
83
82
  <br>
84
-
85
- <div align="center">
86
- <img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" width="100%">
87
- </div>
83
+ <hr style="border: 1px solid #222; margin: 40px 0;">
84
+ <br>
88
85
 
89
86
  ## ⚖️ THE PIPELINE // EVIDENCE-BASED CLOSEOUT
90
87
 
@@ -99,48 +96,38 @@ graph TD
99
96
  C -.->|Failed| E[Maker Auto-Correction]
100
97
  E -.-> C
101
98
 
102
- D -->|16 Domain Reviewers| F[Human Gate]
99
+ D -->|19 Domain Reviewers| F[Human Gate]
103
100
  F -->|Approved| G((Committed to Disk))
104
101
 
105
102
  classDef default fill:#1a1a1a,stroke:#333,stroke-width:2px,color:#fff;
106
103
  classDef critical fill:#ff1637,stroke:#fff,stroke-width:2px,color:#fff;
107
- classDef success fill:#00e5ff,stroke:#fff,stroke-width:2px,color:#1a1a1a;
104
+ classDef success fill:#ccff00,stroke:#fff,stroke-width:2px,color:#1a1a1a;
108
105
 
109
106
  class D critical;
110
107
  class G success;
111
108
  ```
112
109
 
113
110
  <br>
114
-
115
- <div align="center">
116
- <img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" width="100%">
117
- </div>
111
+ <hr style="border: 1px solid #222; margin: 40px 0;">
112
+ <br>
118
113
 
119
114
  ## 🏛️ THE SUPREME COURT (CASE LAW ENGINE)
120
115
 
121
116
  The Tribunal Kit features persistent memory. The AI **never makes the same mistake twice** and auto-learns your engineering culture.
122
117
 
123
118
  > [!WARNING]
124
- >
125
119
  > ### 1. The Case Law Engine
126
- >
127
120
  > Record mistakes as legal precedent. The `precedence-reviewer` checks this database locally to forcefully block the AI from repeating banned patterns.
128
- >
129
121
  > - <kbd>npx tribunal-kit case add</kbd> _(Record an AI hallucination)_
130
122
 
131
123
  > [!TIP]
132
- >
133
124
  > ### 2. Skill Evolution Forge
134
- >
135
125
  > Stop writing manual rules. The system reads your Git diffs, strips token bloat, and auto-extracts your project's architectural idioms.
136
- >
137
126
  > - <kbd>npx tribunal-kit learn</kbd> _(Digest staged files)_
138
127
 
139
128
  <br>
140
-
141
- <div align="center">
142
- <img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" width="100%">
143
- </div>
129
+ <hr style="border: 1px solid #222; margin: 40px 0;">
130
+ <br>
144
131
 
145
132
  ## 🏃 THE MARATHON HARNESS (v4.4+)
146
133
 
@@ -169,11 +156,22 @@ The **Marathon Harness** is an engine designed to keep autonomous agents on trac
169
156
  </tr>
170
157
  </table>
171
158
 
159
+ <br>
160
+ <hr style="border: 1px solid #222; margin: 40px 0;">
172
161
  <br>
173
162
 
174
- <div align="center">
175
- <img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" width="100%">
176
- </div>
163
+ ## 🧠 ADVANCED CAPABILITIES (v5.8)
164
+
165
+ The 5.8 update introduces a massive leap in long-running agent capabilities and code correctness:
166
+
167
+ - **Persistent Memory Engine (4-Type Taxonomy)**: Agents now categorize memory into Semantic, Procedural, Episodic, and Working memory, using budget-gated recall to completely eliminate context window bloat over multi-day tasks.
168
+ - **Dependency Ladder Enforcement**: Automatically prevents over-engineering and architectural bloat through strict 6-rung dependency analysis before any new packages are introduced.
169
+ - **Skill Variance Tracking**: The system now self-evaluates custom skills by running benchmark prompts (Edge case, Standard, Malicious) and generating performance matrices.
170
+ - **Complex Artifact Protocol**: Upgraded agents with strict rules forbidding single-file monoliths for complex artifacts, enforcing proper component splitting and routing/state conventions.
171
+
172
+ <br>
173
+ <hr style="border: 1px solid #222; margin: 40px 0;">
174
+ <br>
177
175
 
178
176
  ## 🔌 NATIVE MCP SERVER
179
177
 
@@ -184,11 +182,13 @@ Bind your AI IDE directly to `tribunal-kit` to unlock autonomous tool execution:
184
182
  - `run_tribunal_audit`: AI can trigger a full workspace health check.
185
183
  - `search_case_law`: AI can query your project's historical code rejections to avoid making mistakes _before_ it writes code.
186
184
  - `sync_ide_bridges`: Force rule alignment directly from the AI chat.
185
+ - `list_tribunal_agents` & `get_tribunal_skill`: Terminal agents can dynamically fetch specific skills without overloading their context windows.
187
186
 
187
+ <br>
188
188
  <br>
189
189
 
190
190
  <div align="center">
191
- <img src="https://img.shields.io/badge/Status-Active_&_Secured-00e5ff?style=for-the-badge" alt="Status" />
191
+ <img src="https://img.shields.io/badge/Status-Active_&_Secured-ccff00?style=for-the-badge&logoColor=1a1a1a" alt="Status" />
192
192
  <br><br>
193
193
  <i>"Never guess database column names. Error handling on every async function. Evidence-based closeouts. Welcome to the Tribunal."</i><br>
194
194
  <sub><b>MIT Licensed</b> • Engineered for maximum autonomy and precision.</sub>