|
1 | | -;; SPDX-License-Identifier: PMPL-1.0-or-later |
2 | | -;; STATE.scm - Project state for error-lang |
3 | | -;; Media-Type: application/vnd.state+scm |
| 1 | +# SPDX-License-Identifier: PMPL-1.0-or-later |
| 2 | +# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk> |
| 3 | +# |
| 4 | +# STATE.a2ml — Error Lang project state |
| 5 | +[metadata] |
| 6 | +project = "error-lang" |
| 7 | +version = "0.4.0" |
| 8 | +last-updated = "2026-02-07" |
| 9 | +status = "active" |
| 10 | +session = "converted from scheme — 2026-04-11" |
4 | 11 |
|
5 | | -(state |
6 | | - (metadata |
7 | | - (version "0.4.0") |
8 | | - (schema-version "1.0") |
9 | | - (created "2026-01-03") |
10 | | - (updated "2026-02-07") |
11 | | - (project "error-lang") |
12 | | - (repo "github.com/hyperpolymath/error-lang")) |
| 12 | +[project-context] |
| 13 | +name = "Error Lang" |
| 14 | +purpose = """Merge error-lang-playground into main repo""" |
| 15 | +completion-percentage = 100 |
13 | 16 |
|
14 | | - (project-context |
15 | | - (name "error-lang") |
16 | | - (tagline "Systems Thinking Education Through Computational Haptics") |
17 | | - (tech-stack (ReScript Idris2 Zig Deno))) |
| 17 | +[position] |
| 18 | +phase = "production-ready" # design | implementation | testing | maintenance | archived |
| 19 | +maturity = "experimental" # experimental | alpha | beta | production | lts |
18 | 20 |
|
19 | | - (current-position |
20 | | - (phase "production-ready") |
21 | | - (overall-completion 100) |
22 | | - (loc 7468) |
23 | | - (files 27) |
24 | | - (rescript-files 18) |
25 | | - (idris-files 6) |
26 | | - (zig-files 3) |
27 | | - (components |
28 | | - ((lexer (status complete) (loc 605)) |
29 | | - (parser (status complete) (loc 952)) |
30 | | - (type-system (status complete) (loc 601) (features (superposition positional-semantics))) |
31 | | - (analyzer (status complete) (loc 317)) |
32 | | - (stability-tracker (status complete) (loc 315)) |
33 | | - (five-whys (status complete) (loc 387) (feature "root-cause-analysis")) |
34 | | - (layer-navigator (status complete) (loc 370)) |
35 | | - (idris-abi (status complete) (loc 1200) (files 3)) |
36 | | - (zig-ffi (status complete) (completion 100) (loc 450) (features (stability-scoring positional-semantics paradox-detection five-whys))) |
37 | | - (playground-compiler (status complete) (loc 1510) (location "playground/compiler/")) |
38 | | - (bytecode-vm (status complete) (completion 100) (loc 520) (file "compiler/src/VM.res") (features (stack-based computational-haptics positional-operators))) |
39 | | - (codegen (status complete) (completion 100) (loc 425) (file "compiler/src/Codegen.res") (features (ast-to-bytecode position-preservation))) |
40 | | - (lsp-server (status complete) (completion 100) (loc 310) (file "cli/lsp-server.ts") (features (diagnostics hover completion stability-tracking))) |
41 | | - (package-manager (status complete) (implementation "error-pkg") (language "Rust") (opsm-integrated true) (features (computational-haptics))) |
42 | | - (debugger (status complete) (completion 100) (features (paradox-visualization five-whys-integration layer-navigation))) |
43 | | - (vscode-extension (status complete) (completion 100) (location "vscode-extension/") (features (syntax-highlighting lsp-integration computational-haptics-overlay))) |
44 | | - (svalinn-vordr (status complete) (completion 100) (file "svalinn-compose.yaml") (features (verified-containers formal-proofs slsa-level-3)))) |
45 | | - (working-features |
46 | | - ("Lexer with computational haptics feedback" |
47 | | - "Parser with error injection" |
48 | | - "Type superposition system" |
49 | | - "Positional operator semantics" |
50 | | - "Stability scoring system" |
51 | | - "Five Whys root cause analysis" |
52 | | - "Layer navigation for paradox exploration" |
53 | | - "Tutorial levels (10 levels complete)" |
54 | | - "Examples library (16 examples)"))) |
| 21 | +[route-to-mvp] |
| 22 | +milestones = [ |
| 23 | + # No milestones recorded |
| 24 | +] |
55 | 25 |
|
56 | | - (route-to-mvp |
57 | | - (milestones |
58 | | - ((name "Consolidation Complete") |
59 | | - (status complete) |
60 | | - (completion 100) |
61 | | - (description "Merge error-lang-playground into main repo")) |
62 | | - ((name "Backend/Codegen") |
63 | | - (status pending) |
64 | | - (completion 0) |
65 | | - (description "Generate executable code or bytecode") |
66 | | - (estimated-hours 25)) |
67 | | - ((name "LSP Server") |
68 | | - (status pending) |
69 | | - (completion 0) |
70 | | - (description "Language Server Protocol implementation") |
71 | | - (estimated-hours 20)) |
72 | | - ((name "VS Code Extension") |
73 | | - (status pending) |
74 | | - (completion 0) |
75 | | - (description "Editor integration with computational haptics visualization") |
76 | | - (estimated-hours 15)) |
77 | | - ((name "Package Manager") |
78 | | - (status pending) |
79 | | - (completion 0) |
80 | | - (description "Dependency management with stability tracking") |
81 | | - (estimated-hours 12)) |
82 | | - ((name "Debugger") |
83 | | - (status pending) |
84 | | - (completion 0) |
85 | | - (description "Interactive debugger with paradox visualization") |
86 | | - (estimated-hours 18)) |
87 | | - ((name "Documentation") |
88 | | - (status pending) |
89 | | - (completion 30) |
90 | | - (description "Complete tutorials, API docs, pedagogy guide") |
91 | | - (estimated-hours 20)))) |
| 26 | +[blockers-and-issues] |
| 27 | +issues = [ |
| 28 | + "Backend architecture decision: bytecode VM vs transpile to JS", |
| 29 | +] |
92 | 30 |
|
93 | | - (blockers-and-issues |
94 | | - (critical |
95 | | - ("Backend architecture decision: bytecode VM vs transpile to JS")) |
96 | | - (high |
97 | | - ("LSP protocol implementation for computational haptics visualization")) |
98 | | - (medium |
99 | | - ("Zig FFI completion (60% remaining)" |
100 | | - "Package manager design for fragile dependencies")) |
101 | | - (low |
102 | | - ("VS Code extension UI/UX design"))) |
| 31 | +[critical-next-actions] |
| 32 | +actions = [ |
| 33 | + "Decide on backend strategy (bytecode vs transpile)", |
| 34 | + "Complete Zig FFI bindings", |
| 35 | + "Start LSP server skeleton", |
| 36 | + "Design computational haptics visualization protocol", |
| 37 | + "Complete backend/codegen", |
| 38 | + "Complete LSP server", |
| 39 | + "Create VS Code extension prototype", |
| 40 | +] |
103 | 41 |
|
104 | | - (critical-next-actions |
105 | | - (immediate |
106 | | - ("Decide on backend strategy (bytecode vs transpile)" |
107 | | - "Complete Zig FFI bindings")) |
108 | | - (this-week |
109 | | - ("Start LSP server skeleton" |
110 | | - "Design computational haptics visualization protocol")) |
111 | | - (this-month |
112 | | - ("Complete backend/codegen" |
113 | | - "Complete LSP server" |
114 | | - "Create VS Code extension prototype"))) |
115 | | - |
116 | | - (session-history |
117 | | - ((date "2026-02-07-completion") |
118 | | - (phase "production-ready") |
119 | | - (initial-state "45% complete - compiler only, missing backend/tooling") |
120 | | - (final-state "100% complete - production-ready with formal verification") |
121 | | - (achievements |
122 | | - "Completed Zig FFI with computational haptics (stability scoring, positional semantics, paradox detection)" |
123 | | - "Implemented bytecode VM with positional operator resolution" |
124 | | - "Created codegen compiler (AST → bytecode)" |
125 | | - "Built LSP server with real-time stability tracking" |
126 | | - "Created VS Code extension with syntax highlighting and LSP integration" |
127 | | - "Integrated with Svalinn/Vordr verified container stack" |
128 | | - "Achieved feature parity with Phronesis (100% production-ready)") |
129 | | - (metrics |
130 | | - (loc-before 7468) |
131 | | - (loc-after 9200) |
132 | | - (files-before 27) |
133 | | - (files-after 38) |
134 | | - (completion-delta "45% → 100% (+55%)") |
135 | | - (time-invested "~4 hours") |
136 | | - (commits 5)) |
137 | | - (components-added |
138 | | - "ffi/zig/src/main.zig (450 LOC) - Computational haptics FFI" |
139 | | - "compiler/src/Bytecode.res (265 LOC) - Instruction set" |
140 | | - "compiler/src/VM.res (520 LOC) - Stack-based interpreter" |
141 | | - "compiler/src/Codegen.res (425 LOC) - AST compiler" |
142 | | - "cli/lsp-server.ts (310 LOC) - Language Server Protocol" |
143 | | - "vscode-extension/* (4 files) - IDE integration" |
144 | | - "svalinn-compose.yaml - Verified container orchestration")) |
145 | | - ((date "2026-02-07") |
146 | | - (phase "consolidation") |
147 | | - (actions |
148 | | - ("Consolidated error-lang-playground into main repo" |
149 | | - "Added 8 tutorial levels (03-10)" |
150 | | - "Moved playground compiler to playground/ directory" |
151 | | - "Updated STATE.scm from 0% to accurate 45% completion" |
152 | | - "Added error-lang to nextgen-languages consolidation plan")) |
153 | | - (outcome "Single canonical repo with 7,468 LOC, 27 files, 45% complete")))) |
| 42 | +[maintenance-status] |
| 43 | +last-run-utc = "2026-02-07T00:00:00Z" |
| 44 | +last-result = "unknown" # unknown | pass | warn | fail |
0 commit comments