Skip to content

Commit f0eb13d

Browse files
hyperpolymathclaude
andcommitted
feat: TypeLL 41-panel integration, ECHIDNA ProofChain, SafeDOM defence-in-depth, flaky test fixes
- Wire TypeLL cross-panel type intelligence into all 41 panels (35 new + 7 existing), with central panelTypeChecks storage and graceful degradation on errors - Add ProofChain.res: CI/CD-style visual proof pipeline for ECHIDNA sessions with colour-coded status nodes, gap detection, branching, and progress bar - SafeDOM 4-layer defence: DOMPurify (SRI), regex sanitiser, tag nesting validator, Trusted Types; plus K9 contractile, Hypatia scan rules, 37 conformance tests - Coprocessor Engine (Phase 1-3): control plane, Zig FFI data plane, smart routing - GovernanceEngine with neurosymbolic integration and Vexometer/Humidity coupling - A2ML/K9 integration layer: manifest parsing, Kennel/Yard/Hunt contracts - Fix flaky Rust tests in multiplayer_monitor, valence_shell, vm_inspector, and release_manager by adding TEST_LOCK mutexes to serialise shared-state access - Tea framework enhancements: SSR, SVG, keyboard/mouse subscriptions, HTTP, JSON - 17 new Rust backend modules (a2ml, aerie, clade_scanner, feedback, fleet, etc.) - 1383 Deno + 179 Rust tests passing, 0 failures Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ee8a3ae commit f0eb13d

110 files changed

Lines changed: 16272 additions & 443 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.hypatia-rules.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
# PanLL-specific Hypatia scan rules
3+
4+
rules:
5+
- id: SAFEDOM-001
6+
name: "innerHTML usage outside SafeDOM"
7+
description: >
8+
Direct innerHTML assignment bypasses SafeDOM's 4-layer defence-in-depth
9+
(DOMPurify, regex sanitiser, nesting validator, Trusted Types).
10+
All DOM content injection MUST go through SafeDOMCore.mount() or
11+
SafeMount.mountRawHtml().
12+
severity: high
13+
category: security
14+
pattern: '\.innerHTML\s*='
15+
exclude_paths:
16+
- "src/core/SafeDOMCore.res"
17+
- "src/core/SafeMount.res"
18+
- "src/core/DOMPurify.res"
19+
- "src/core/TrustedTypes.res"
20+
- "node_modules/"
21+
- "tests/"
22+
languages:
23+
- rescript
24+
- javascript
25+
remediation: >
26+
Use SafeDOMCore.mount(selector, html) or SafeMount.mountRawHtml(selector, html)
27+
instead of direct innerHTML assignment. These functions apply DOMPurify sanitisation,
28+
regex pattern filtering, structural validation, and Trusted Types enforcement.
29+
references:
30+
- "src/core/SafeDOMCore.res"
31+
- "contractiles/safedom-enforcement.ncl"
32+
- "OWASP XSS Prevention Cheat Sheet"
33+
34+
- id: SAFEDOM-002
35+
name: "outerHTML usage"
36+
description: >
37+
Direct outerHTML assignment bypasses SafeDOM. Use SafeDOMCore.mount() instead.
38+
severity: high
39+
category: security
40+
pattern: '\.outerHTML\s*='
41+
exclude_paths:
42+
- "src/core/SafeDOMCore.res"
43+
- "node_modules/"
44+
- "tests/"
45+
languages:
46+
- rescript
47+
- javascript
48+
remediation: "Use SafeDOMCore.mount() instead of direct outerHTML assignment."
49+
50+
- id: SAFEDOM-003
51+
name: "document.write usage"
52+
description: >
53+
document.write bypasses all DOM sanitisation. Never use in production code.
54+
severity: critical
55+
category: security
56+
pattern: 'document\.write\s*\('
57+
exclude_paths:
58+
- "node_modules/"
59+
- "tests/"
60+
languages:
61+
- rescript
62+
- javascript
63+
remediation: "Use SafeDOMCore.mount() instead of document.write()."

.machine_readable/ECOSYSTEM.scm

Lines changed: 34 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
;; ECOSYSTEM.scm - PanLL's position in the hyperpolymath ecosystem
33

44
(ecosystem
5-
(version "1.0.0")
6-
(last-updated "2026-02-09")
5+
(version "1.1.0")
6+
(last-updated "2026-03-09")
77
(format-spec "hyperpolymath/rsr-template-repo/spec/ECOSYSTEM-FORMAT-SPEC.adoc")
88

99
(identity
@@ -80,9 +80,9 @@
8080

8181
((project "rsr-template-repo")
8282
(relationship "template-source")
83-
(nature "PanLL should follow RSR (Repository Structure Requirements) template")
84-
(integration-status "partial")
85-
(notes "Has AI manifest, PMPL license, but missing .machine_readable/ SCM files (being added now)"))
83+
(nature "PanLL follows RSR (Repository Structure Requirements) template")
84+
(integration-status "active")
85+
(notes "Has AI manifest, PMPL license, .machine_readable/ SCM files, TOPOLOGY.md, all 15 applicable workflows"))
8686

8787
((project "scaffoldia")
8888
(relationship "potential-tool")
@@ -117,8 +117,8 @@
117117
((project "verisimdb")
118118
(relationship "primary-backend-module")
119119
(nature "VeriSimDB is PanLL's first database backend. VQL-DT maps to PanLL's three-pane layout: Pane-L = proof obligations and type constraints, Pane-N = agentic inference ('you need a CITATION proof here'), Pane-W = query results, drift heatmaps, entity explorer. PanLL makes VQL-DT accessible to non-specialist users.")
120-
(integration-status "planned")
121-
(notes "Anti-Crash circuit breaker validates VQL queries before execution. Vexometer monitors cognitive load during complex VQL-DT sessions. Architecture proven by NQC Web UI (nextgen-databases/nqc/web/) and FormBD Studio (Tauri 2.0 + ReScript proof assistant). This is the neurosymbolic agentic DbVisualizer."))
120+
(integration-status "active")
121+
(notes "VeriSimDB panel wired with TypeLL cross-panel intelligence. BoJ database-mcp cartridge routes VQL queries when bojRouting=true."))
122122

123123
((project "quandledb")
124124
(relationship "future-backend-module")
@@ -141,24 +141,25 @@
141141
((project "gitbot-fleet")
142142
(relationship "automation-orchestration-module")
143143
(nature "PanLL as command center for gitbot-fleet (rhodibot, echidnabot, sustainabot, glambot, seambot, finishbot). Visualize bot activity, override decisions, review findings.")
144-
(integration-status "future")
145-
(notes "Anti-Crash validates bot actions before execution. Pane-N shows bot reasoning chains. Extends existing gitbot-fleet → hypatia → verisimdb pipeline with human oversight."))
144+
(integration-status "partial")
145+
(notes "Fleet panel wired with 6 bots and safety triangle. Seambot integration relevant for compliance seam detection. BoJ agent-mcp cartridge routes automation through BoJ gateway."))
146+
147+
((project "boj-server")
148+
(relationship "primary-backend-gateway")
149+
(nature "BoJ (Bundle of Joy) server provides 17 cartridges as MCP-compatible backend services. PanLL's BoJ panel and primary gateway route through BoJ cartridges.")
150+
(integration-status "active")
151+
(notes "17 cartridges (all Grade D Alpha), bojRouting toggle for 5 panels (lsp-mcp, database-mcp, dap-mcp, bsp-mcp, agent-mcp). Per-invocation latency tracking. Umoja federation for multi-instance coordination."))
146152

147153
((project "idaptik")
148154
(relationship "game-development-module")
149-
(nature "PanLL as development environment for IDApTIK game. Level architect integration via VeriSimDB, emulator/simulator panels for game testing.")
150-
(integration-status "future")
151-
(notes "Already uses VeriSimDB for level data persistence. PanLL provides: level editor panel, game state inspector, A2ML data viewer, sync server monitor."))
152-
153-
;; TODO (2026-02-27): COMPREHENSIVE MODULE AUDIT NEEDED
154-
;; The projects listed above were identified ad-hoc during a VeriSimDB session.
155-
;; Many more hyperpolymath projects likely map to PanLL modules — airie (network
156-
;; analysis/simulation/emulation), proven (BGP/crypto), stapeln (containers),
157-
;; ambientops, and others. A dedicated session should systematically walk the
158-
;; full ~265 repo ecosystem and map each candidate to PanLL's three-pane model
159-
;; (Pane-L constraints, Pane-N agent reasoning, Pane-W results/visualisation).
160-
;; This will also identify which projects are pure backends vs which need their
161-
;; own PanLL panels, and prevent duplication or missed integrations.
155+
(nature "PanLL as development environment for IDApTIK game. 11 IDApTIK eNSAID panels with full Rust backends.")
156+
(integration-status "active")
157+
(notes "11 panels wired: Valence Shell, Game Preview, VM Inspector, Network Topology, Level Architect, Multiplayer Monitor, DLC Workshop, Release Manager, Editor Bridge, Build Dashboard, Coprocessors. All have Rust backends with Tauri commands."))
158+
159+
;; NOTE (2026-03-09): 41 panels now wired. Comprehensive module audit still
160+
;; pending for remaining ~265 repo ecosystem mapping. Known candidates:
161+
;; airie (network analysis), proven (BGP/crypto), stapeln (containers),
162+
;; ambientops. See PanLL MEMORY.md for integration principle.
162163
)
163164

164165
(dependencies
@@ -196,24 +197,19 @@
196197
(criticality "critical")))
197198

198199
(libraries
199-
((name "rescript-tea")
200-
(version "0.16.0")
201-
(purpose "The Elm Architecture (TEA) state management")
202-
(license "MIT")
203-
(criticality "critical")
204-
(migration-note "Migrating from custom TEA to this official library"))
205-
206-
((name "rescript-webapi")
207-
(version "0.10.0")
208-
(purpose "Browser API bindings")
209-
(license "MIT")
210-
(criticality "medium"))
211-
212200
((name "@rescript/core")
213201
(version "1.6.1")
214202
(purpose "ReScript standard library")
215203
(license "MIT")
216-
(criticality "high")))
204+
(criticality "high"))
205+
206+
((name "custom-tea")
207+
(version "internal")
208+
(purpose "Custom TEA (The Elm Architecture) — 8 modules, ~1011 lines, VDOM diffing, ARIA, message queue")
209+
(license "PMPL-1.0-or-later")
210+
(criticality "critical")
211+
(note "ADR accepted: custom TEA in src/tea/ is permanent. rescript-tea@0.16.0 removed (unmaintained, incompatible).")))
212+
217213

218214
(dev-dependencies
219215
((name "Deno.test")
@@ -250,8 +246,8 @@
250246

251247
(roadmap-highlights
252248
((milestone "v0.2.0")
253-
(target "Q1 2026")
254-
(focus "Enhanced UI & functional components"))
249+
(target "Q2 2026")
250+
(focus "TypeLL cross-panel intelligence, backend connections, Coprocessor Phase 2/3, A2ML/K9 integrations"))
255251

256252
((milestone "v0.3.0")
257253
(target "Q2 2026")

0 commit comments

Comments
 (0)