@vib3code/sdk 2.0.3-canary.3b3ca18 → 2.0.3-canary.4e0dace

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 (62) hide show
  1. package/DOCS/AGENT_HARNESS_ARCHITECTURE.md +2 -0
  2. package/DOCS/ANDROID_DEPLOYMENT.md +59 -0
  3. package/DOCS/ARCHITECTURE.md +1 -0
  4. package/DOCS/CI_TESTING.md +2 -0
  5. package/DOCS/CLI_ONBOARDING.md +2 -0
  6. package/DOCS/CONTROL_REFERENCE.md +2 -0
  7. package/DOCS/CROSS_SITE_DESIGN_PATTERNS.md +2 -0
  8. package/DOCS/ENV_SETUP.md +2 -0
  9. package/DOCS/EPIC_SCROLL_EVENTS.md +2 -0
  10. package/DOCS/EXPANSION_DESIGN.md +2 -0
  11. package/DOCS/EXPANSION_DESIGN_ULTRA.md +2 -0
  12. package/DOCS/EXPORT_FORMATS.md +2 -0
  13. package/DOCS/GPU_DISPOSAL_GUIDE.md +2 -0
  14. package/DOCS/HANDOFF_LANDING_PAGE.md +2 -0
  15. package/DOCS/HANDOFF_SDK_DEVELOPMENT.md +2 -0
  16. package/DOCS/LICENSING_TIERS.md +2 -0
  17. package/DOCS/MASTER_PLAN_2026-01-31.md +2 -0
  18. package/DOCS/MULTIVIZ_CHOREOGRAPHY_PATTERNS.md +3 -1
  19. package/DOCS/OBS_SETUP_GUIDE.md +2 -0
  20. package/DOCS/OPTIMIZATION_PLAN_MATH.md +1 -0
  21. package/DOCS/PRODUCT_STRATEGY.md +2 -0
  22. package/DOCS/PROJECT_SETUP.md +2 -0
  23. package/DOCS/README.md +5 -3
  24. package/DOCS/REFERENCE_SCROLL_ANALYSIS.md +2 -0
  25. package/DOCS/RENDERER_LIFECYCLE.md +2 -0
  26. package/DOCS/REPO_MANIFEST.md +2 -0
  27. package/DOCS/ROADMAP.md +2 -0
  28. package/DOCS/SCROLL_TIMELINE_v3.md +2 -0
  29. package/DOCS/SITE_REFACTOR_PLAN.md +2 -0
  30. package/DOCS/STATUS.md +2 -0
  31. package/DOCS/SYSTEM_INVENTORY.md +2 -0
  32. package/DOCS/TELEMETRY_EXPORTS.md +2 -0
  33. package/DOCS/VISUAL_ANALYSIS_CLICKERSS.md +2 -0
  34. package/DOCS/VISUAL_ANALYSIS_FACETAD.md +2 -0
  35. package/DOCS/VISUAL_ANALYSIS_SIMONE.md +2 -0
  36. package/DOCS/VISUAL_ANALYSIS_TABLESIDE.md +2 -0
  37. package/DOCS/WEBGPU_STATUS.md +2 -0
  38. package/DOCS/XR_BENCHMARKS.md +2 -0
  39. package/DOCS/archive/BLUEPRINT_EXECUTION_PLAN_2026-01-07.md +1 -34
  40. package/DOCS/archive/DEV_TRACK_ANALYSIS.md +1 -80
  41. package/DOCS/archive/DEV_TRACK_PLAN_2026-01-07.md +1 -42
  42. package/DOCS/archive/SESSION_014_PLAN.md +1 -195
  43. package/DOCS/archive/SESSION_LOG_2026-01-07.md +1 -56
  44. package/DOCS/archive/STRATEGIC_BLUEPRINT_2026-01-07.md +1 -72
  45. package/DOCS/archive/SYSTEM_AUDIT_2026-01-30.md +1 -741
  46. package/DOCS/archive/WEBGPU_STATUS_2026-02-15_STALE.md +1 -38
  47. package/DOCS/dev-tracks/DEV_TRACK_SESSION_2026-01-31.md +2 -0
  48. package/DOCS/dev-tracks/DEV_TRACK_SESSION_2026-02-06.md +2 -0
  49. package/DOCS/dev-tracks/DEV_TRACK_SESSION_2026-02-13.md +2 -0
  50. package/DOCS/dev-tracks/DEV_TRACK_SESSION_2026-02-15.md +2 -0
  51. package/DOCS/dev-tracks/DEV_TRACK_SESSION_2026-02-16.md +2 -0
  52. package/DOCS/dev-tracks/PERF_UPGRADE_2026-02-16.md +2 -0
  53. package/DOCS/dev-tracks/README.md +2 -0
  54. package/package.json +2 -4
  55. package/src/cli/index.js +59 -5
  56. package/src/geometry/warp/HypersphereCore.js +53 -24
  57. package/src/math/Mat4x4.js +86 -72
  58. package/src/math/Projection.js +39 -4
  59. package/src/math/Rotor4D.js +31 -1
  60. package/src/scene/Node4D.js +74 -24
  61. package/src/testing/ProjectionClass.test.js +38 -0
  62. package/tools/update_projection.py +109 -0
@@ -1,195 +1 @@
1
- # VIB3+ SDK - Session 014 Plan & Status
2
-
3
- **Date:** 2026-01-25
4
- **Branch:** `claude/phase-5-hardening-a4Wzn`
5
- **Session:** 014
6
-
7
- ---
8
-
9
- ## Executive Summary
10
-
11
- This session completed a comprehensive system review and implemented agent onboarding improvements. The VIB3+ SDK is a **general-purpose 4D rotation visualization SDK** for plugins, extensions, wearables, and agentic AI integration.
12
-
13
- ---
14
-
15
- ## System Architecture (Verified)
16
-
17
- ### Core Metrics
18
- | Component | Value |
19
- |-----------|-------|
20
- | **Active Systems** | 3 (Quantum, Faceted, Holographic) |
21
- | **Placeholder Systems** | 1 (Polychora - TBD) |
22
- | **Rotation Planes** | 6 (XY, XZ, YZ + XW, YW, ZW) |
23
- | **Base Geometries** | 8 |
24
- | **Core Warp Types** | 3 (Base, Hypersphere, Hypertetrahedron) |
25
- | **Total Geometries** | 24 (8 base × 3 cores) |
26
- | **Canvas Layers** | 5 per system |
27
- | **MCP Tools** | 14 |
28
- | **Tests Passing** | 693+ |
29
-
30
- ### Geometry Encoding Formula
31
- ```
32
- geometry_index = core_index * 8 + base_index
33
-
34
- Where:
35
- - core_index: 0 (Base), 1 (Hypersphere), 2 (Hypertetrahedron)
36
- - base_index: 0-7 (tetrahedron, hypercube, sphere, torus, klein, fractal, wave, crystal)
37
- ```
38
-
39
- ---
40
-
41
- ## Changes Made This Session
42
-
43
- ### 1. UI: Full 24 Geometry Support
44
- **File:** `sdk/index.html`
45
- - Added Core Type dropdown (Base, Hypersphere, Hypertetrahedron)
46
- - Implemented proper geometry encoding: `coreType * 8 + baseGeometry`
47
- - Updated geometry display to show "Geometry X / 24"
48
- - Fixed geometry buttons to work with core type selector
49
-
50
- ### 2. Documentation: System Inventory
51
- **File:** `DOCS/SYSTEM_INVENTORY.md`
52
- - Complete technical inventory
53
- - Architecture diagram
54
- - All 4 systems documented
55
- - 24 geometry encoding explained
56
- - 6D rotation system documented
57
- - MCP tools reference
58
- - Agent onboarding quiz
59
-
60
- ### 3. MCP: Agent Onboarding Tools
61
- **Files:** `src/agent/mcp/tools.js`, `src/agent/mcp/MCPServer.js`
62
-
63
- New tools added:
64
- - `get_sdk_context` - Returns essential SDK context on first connection
65
- - `verify_knowledge` - Multiple choice quiz to verify understanding
66
-
67
- Quiz format (answers: c, b, c, a, b, b):
68
- ```
69
- Q1: How many rotation planes? a)3 b)4 c)6 d)8
70
- Q2: Geometry formula? a)base*3+core b)core*8+base c)base+core d)core*base
71
- Q3: Canvas layers per system? a)3 b)4 c)5 d)6
72
- Q4: Which are the 3 ACTIVE systems? a)quantum,faceted,holographic b)quantum,faceted,polychora c)all four d)none
73
- Q5: How many base geometry types? a)6 b)8 c)10 d)24
74
- Q6: Core warp types? a)base,sphere,cube b)base,hypersphere,hypertetrahedron c)2D,3D,4D d)none
75
- ```
76
-
77
- ### 4. Polychora Marked as TBD
78
- - Polychora system marked as placeholder/TBD in MCP responses
79
- - Quiz updated to test knowledge that only 3 systems are ACTIVE
80
- - System exists but not production-ready
81
-
82
- ---
83
-
84
- ## Phase Status
85
-
86
- | Phase | Status | Notes |
87
- |-------|--------|-------|
88
- | **Phase 1: Foundation** | ✅ Complete | Math, geometry, parameters |
89
- | **Phase 2: Rendering** | ✅ Mostly Complete | Contracts exist, 4 adapters |
90
- | **Phase 3: Agentic** | ✅ Complete | MCP, CLI, Telemetry |
91
- | **Phase 4: WebGPU** | 🔄 Scaffold | Needs shader pipeline |
92
- | **Phase 5: Hardening** | 🔄 In Progress | 693 tests passing |
93
-
94
- ---
95
-
96
- ## Known Issues
97
-
98
- 1. **Polychora not production-ready** - Keep as TBD placeholder
99
- 2. **WebGPU backend incomplete** - Scaffold exists, needs shader pipeline
100
- 3. **Timing test flaky** - `withTiming` test sometimes fails by <1ms
101
- 4. **Playwright test config** - Browser tests don't run in vitest
102
-
103
- ---
104
-
105
- ## Planned Future Work
106
-
107
- ### Phase 2 Consolidation (Rendering)
108
- - [ ] Audit all 4 systems for RendererContract compliance
109
- - [ ] Extract shared scene graph code
110
- - [ ] Document lifecycle rules in code
111
- - [ ] Add contract compliance tests
112
-
113
- ### Phase 4 (WebGPU)
114
- - [ ] Complete WebGPU shader pipeline
115
- - [ ] Port shaders from WebGL to WGSL
116
- - [ ] Benchmark WebGL vs WebGPU
117
-
118
- ### Phase 5 (Hardening)
119
- - [ ] Fix flaky timing test
120
- - [ ] Separate Playwright tests from vitest
121
- - [ ] Add more integration tests
122
- - [ ] Browser rendering verification
123
-
124
- ### Documentation
125
- - [ ] Consolidate scattered docs
126
- - [ ] Archive outdated docs
127
- - [ ] Create "Start Here" guide for new agents
128
- - [ ] Add code examples to SYSTEM_INVENTORY.md
129
-
130
- ---
131
-
132
- ## File References
133
-
134
- ### Primary Documentation
135
- | File | Purpose |
136
- |------|---------|
137
- | `DOCS/SYSTEM_INVENTORY.md` | Complete system reference |
138
- | `DOCS/CLI_ONBOARDING.md` | Agent CLI setup |
139
- | `DOCS/CONTROL_REFERENCE.md` | UI parameters |
140
- | `24-GEOMETRY-6D-ROTATION-SUMMARY.md` | Geometry encoding |
141
-
142
- ### Core Source Files
143
- | File | Purpose |
144
- |------|---------|
145
- | `src/core/VIB3Engine.js` | Main unified engine |
146
- | `src/core/RendererContracts.js` | Shared interfaces |
147
- | `src/quantum/QuantumEngine.js` | Quantum system |
148
- | `src/faceted/FacetedSystem.js` | Faceted system |
149
- | `src/holograms/RealHolographicSystem.js` | Holographic system |
150
- | `src/core/PolychoraSystem.js` | Polychora (TBD) |
151
- | `src/agent/mcp/MCPServer.js` | MCP server |
152
- | `src/agent/mcp/tools.js` | MCP tool definitions |
153
- | `src/agent/cli/AgentCLI.js` | CLI interface |
154
-
155
- ---
156
-
157
- ## Git Commits This Session
158
-
159
- 1. `feat(ui): Add full 24 geometry support with core type selector`
160
- 2. `docs(sdk): Add comprehensive system inventory and agent onboarding tools`
161
- 3. (pending) `feat(mcp): Add multiple choice quiz and mark Polychora as TBD`
162
-
163
- ---
164
-
165
- ## Testing Commands
166
-
167
- ```bash
168
- # Run all tests
169
- npm test
170
-
171
- # Run specific test file
172
- npm test -- tests/agent/AgentCLI.test.js
173
-
174
- # Run with coverage
175
- npm test -- --coverage
176
-
177
- # Start dev server
178
- npm run dev:web
179
- ```
180
-
181
- ---
182
-
183
- ## Quiz Answers Reference
184
-
185
- For agent onboarding quiz (`verify_knowledge`):
186
- - Q1 (rotation planes): **c** (6)
187
- - Q2 (geometry formula): **b** (core*8+base)
188
- - Q3 (canvas layers): **c** (5)
189
- - Q4 (active systems): **a** (quantum, faceted, holographic)
190
- - Q5 (base geometries): **b** (8)
191
- - Q6 (core types): **b** (base, hypersphere, hypertetrahedron)
192
-
193
- ---
194
-
195
- *Document generated: Session 014, 2026-01-25*
1
+ Last reviewed: 2026-02-17
@@ -1,56 +1 @@
1
- # Session log (2026-01-07)
2
-
3
- ## 18:40:40
4
- - Logged required tooling and onboarding plan for agentic CLI workflows.
5
- - Created a dated dev track plan to anchor upcoming work.
6
- - Documented telemetry export flow in the onboarding guide.
7
-
8
- ## 23:19:52
9
- - Added onboarding verification prompts to ensure agents can name geometry types and controls.
10
-
11
- ## 23:34:16
12
- - Clarified the onboarding knowledge check to allow continuation while pointing to the correct reference docs.
13
-
14
- ## 23:37:38
15
- - Added a copy/paste knowledge-check template and planned it in the dev track.
16
-
17
- ## 02:07:46
18
- - Captured the unified SDK strategic blueprint and linked it from the README.
19
-
20
- ## 02:10:12
21
- - Expanded the strategic blueprint into detailed actions and created an execution plan checklist.
22
-
23
- ## 02:42:14
24
- - Added 4D rotation matrices, projection helpers, and stability tests; checked off Phase 1 math foundation items.
25
-
26
- ## 02:42:36
27
- - Ran `pnpm test` to validate rotation and projection math helpers.
28
-
29
- ## 02:46:57
30
- - Added renderer and resource manager contracts and checked off the Phase 2 interface definition.
31
-
32
- ## 02:53:28
33
- - Implemented Phase 3 agentic integration: MCP tool definitions, telemetry spans/error schema, and agent CLI JSON/non-interactive export.
34
-
35
- ## 02:53:50
36
- - Added CLI error handling for invalid pack JSON with structured telemetry errors.
37
-
38
- ## 03:09:19
39
- - Completed Phase 4 cross-platform scaffolding: WASM target, Flutter render command buffer, and WebGPU feature flags.
40
-
41
- ## 03:13:25
42
- - Completed Phase 5 deliverables: licensing tiers, export formats with golden snapshot coverage, and XR benchmark docs.
43
-
44
- ## 03:13:48
45
- - Ran `pnpm test` to update export format snapshots and validate test coverage.
46
-
47
- ## 13:19:14
48
- - Added scene graph scaffolding and documented GPU disposal patterns for Phase 2.
49
-
50
- ## 2026-01-23 22:04 (Session 011)
51
- - Fixed rotation stability test precision tolerance (Float32Array drift over 2000 iterations).
52
- - Expanded LICENSING_TIERS.md with implementation details: key format, activation flow, token schema, offline validation, feature gating.
53
- - Expanded EXPORT_FORMATS.md with format specifications, golden snapshot test implementation, and CI integration.
54
- - Expanded XR_BENCHMARKS.md with metrics collection, benchmark runner, regression detection, and performance overlay.
55
- - Added CLI `validate` command for validating scene packs, manifests, and tool responses.
56
- - All 584 tests passing.
1
+ Last reviewed: 2026-02-17
@@ -1,72 +1 @@
1
- # Strategic development blueprint (2026-01-07)
2
-
3
- This document captures the unified SDK direction for VIB3+ and provides an actionable architecture spine for agentic-first development.
4
-
5
- ## Unified architecture stack
6
- - **Rendering core**: WebGL engine becomes the renderer of record.
7
- - **Agentic wrapper**: MCP/automation layer orchestrates workflows, telemetry, and validation.
8
- - **SDK scaffolding**: Public API layer with modular packages for core, math, geometry, materials, webgl, webgpu, agent, and cli.
9
-
10
- ## Package layout target
11
- ```
12
- @vib3/core → Scene graph, resource management, abstract renderer
13
- @vib3/math → 4D vectors, rotors, matrices, projections
14
- @vib3/geometry → Polychora, tesseracts, slicing algorithms
15
- @vib3/materials → Shaders, holographic/quantum rendering modes
16
- @vib3/webgl → WebGL 2.0 backend
17
- @vib3/webgpu → WebGPU backend (experimental)
18
- @vib3/agent → MCP server, tools, telemetry
19
- @vib3/cli → Agent-friendly CLI interface
20
- ```
21
-
22
- ## Math + rendering principles
23
- - 4D rotations require rotors or 4×4 matrices; avoid storing orientation as Euler angles.
24
- - Provide stereographic and perspective projections with singularity clamping.
25
- - Renormalize rotors/matrices periodically to avoid drift.
26
-
27
- ## Agentic API design
28
- - Prefer workflow-oriented tools (create scene, apply rotations, render preview) over low-level API exposure.
29
- - Emit structured telemetry with explicit error codes, suggestions, and valid options.
30
- - Add JSON output mode, non-interactive flags, and streaming progress events to the CLI.
31
-
32
- ## Cross-platform strategy
33
- - Plan a shared core (Rust/C++/WASM) with thin platform bindings (web, Flutter, native).
34
- - Batch render commands to avoid per-frame FFI overhead.
35
- - Share shader sources and cross-compile to target platforms.
36
-
37
- ## Licensing direction (draft)
38
- - MIT runtime for core packages with paid tiers for advanced tooling and exports.
39
- - Provide transparent changelogs, pricing notices, and grandfathering policies.
40
-
41
- ## Phased roadmap
42
- 1. **Math foundation**: rotors, projections, core polychora generators.
43
- 2. **Rendering core**: renderer abstraction, system consolidation, resource disposal.
44
- 3. **Agentic integration**: MCP tools, telemetry, CLI JSON outputs.
45
- 4. **Cross-platform**: WASM core, Flutter bindings, WebGPU backend.
46
- 5. **Production hardening**: licensing, editor tooling, export formats, XR integration.
47
-
48
- ## Detailed blueprint actions
49
- ### Phase 1 — Mathematical foundation
50
- - Implement rotor/matrix utilities for all six rotation planes.
51
- - Provide stereographic + perspective projection helpers with clamping.
52
- - Add automated stability tests for rotation drift.
53
-
54
- ### Phase 2 — Rendering core consolidation
55
- - Extract renderer contracts and resource manager interfaces.
56
- - Unify the four visualization systems behind a shared scene graph.
57
- - Document disposal patterns to prevent GPU leaks.
58
-
59
- ### Phase 3 — Agentic integration
60
- - Define MCP tools around workflows (create scene, apply rotation, render preview).
61
- - Add telemetry spans and error schemas for validation and tooling.
62
- - Implement CLI JSON output modes and non-interactive flags.
63
-
64
- ### Phase 4 — Cross-platform execution
65
- - Formalize a WASM target and shared math core.
66
- - Add Flutter bindings with a batched render command buffer.
67
- - Prototype WebGPU backend behind feature flags.
68
-
69
- ### Phase 5 — Production hardening
70
- - Draft licensing tiers and activation flow.
71
- - Add export format support with golden snapshot tests.
72
- - Document XR integration and performance benchmarks.
1
+ Last reviewed: 2026-02-17