|
4 | 4 |
|
5 | 5 | (meta |
6 | 6 | (version "0.1.0") |
7 | | - (last-updated "2026-03-20") |
| 7 | + (last-updated "2026-03-21") |
8 | 8 |
|
9 | 9 | (architecture-decisions |
10 | | - (adr "001-iser-pattern" |
| 10 | + (adr "001-progressive-disclosure" |
11 | 11 | (status "accepted") |
12 | | - (context "Need to make powerful languages accessible without steep learning curves") |
13 | | - (decision "Use manifest-driven code generation: user describes WHAT, tool generates HOW") |
14 | | - (consequences "Users write zero target language code; all complexity in the -iser")) |
| 12 | + (context "Complex APIs have steep learning curves; users must learn everything before they can do anything") |
| 13 | + (decision "Generate three disclosure tiers (@beginner, @intermediate, @expert) where each is a strict superset of the previous") |
| 14 | + (consequences "Users start simple, grow into power features; layer correctness verified by Idris2 proofs")) |
15 | 15 |
|
16 | | - (adr "002-abi-ffi-standard" |
| 16 | + (adr "002-complexity-scoring" |
17 | 17 | (status "accepted") |
18 | | - (context "Need verified interop between Rust CLI, target language, and user code") |
19 | | - (decision "Idris2 ABI for formal proofs, Zig FFI for C-ABI bridge") |
| 18 | + (context "Need an automated way to decide which endpoints belong at which disclosure level") |
| 19 | + (decision "Compute a cognitive-load score (0-100) per endpoint based on parameter count, type depth, and error surface") |
| 20 | + (consequences "Deterministic, reproducible tier assignment; configurable thresholds in mylangiser.toml")) |
| 21 | + |
| 22 | + (adr "003-smart-defaults" |
| 23 | + (status "accepted") |
| 24 | + (context "@beginner wrappers need fewer parameters, so hidden parameters need safe values") |
| 25 | + (decision "Infer defaults from type constraints (enum first variant, numeric lower bound), API docs, or user overrides") |
| 26 | + (consequences "Beginner code works out of the box; defaults are provably type-safe via Idris2")) |
| 27 | + |
| 28 | + (adr "004-abi-ffi-standard" |
| 29 | + (status "accepted") |
| 30 | + (context "Need verified interop between Rust CLI, Zig runtime, and generated My-Lang code") |
| 31 | + (decision "Idris2 ABI for formal proofs (DisclosureLevel, ComplexityScore, LayeredWrapper), Zig FFI for C-ABI bridge") |
20 | 32 | (consequences "Compile-time correctness guarantees; zero runtime overhead from proofs")) |
21 | 33 |
|
22 | | - (adr "003-rsr-template" |
| 34 | + (adr "005-rsr-template" |
23 | 35 | (status "accepted") |
24 | 36 | (context "Need consistent project structure across 29+ -iser repos") |
25 | 37 | (decision "All repos cloned from rsr-template-repo with full CI/CD and governance") |
26 | 38 | (consequences "17 workflows, SECURITY.md, CONTRIBUTING, bot directives from day one"))) |
27 | 39 |
|
28 | 40 | (development-practices |
29 | | - (language "Rust" (purpose "CLI and orchestration")) |
30 | | - (language "Idris2" (purpose "ABI formal proofs")) |
31 | | - (language "Zig" (purpose "FFI C-ABI bridge")) |
| 41 | + (language "Rust" (purpose "CLI orchestration, manifest parsing, codegen pipeline")) |
| 42 | + (language "Idris2" (purpose "ABI formal proofs: layer subset correctness, smart-default safety, layout verification")) |
| 43 | + (language "Zig" (purpose "FFI C-ABI bridge: API analysis runtime, complexity scoring, layer generation")) |
32 | 44 | (build-tool "cargo") |
33 | 45 | (ci "GitHub Actions (17 workflows)")) |
34 | 46 |
|
35 | 47 | (design-rationale |
| 48 | + (principle "Progressive disclosure" |
| 49 | + (explanation "Every API should teach itself — users see only what they need, and can peel back layers as they grow")) |
| 50 | + (principle "Formally verified layers" |
| 51 | + (explanation "Idris2 dependent types prove that @beginner is a subset of @intermediate, which is a subset of @expert")) |
| 52 | + (principle "Smart defaults are type-safe" |
| 53 | + (explanation "Inferred defaults are validated against type constraints; Idris2 proves they cannot violate invariants")) |
36 | 54 | (principle "Manifest-driven" |
37 | | - (explanation "User intent captured in TOML; all generation is deterministic and reproducible")) |
38 | | - (principle "Formally verified bridges" |
39 | | - (explanation "Idris2 dependent types prove interface correctness at compile time")) |
40 | | - (principle "Zero target language exposure" |
41 | | - (explanation "Users never write Chapel/Julia/Futhark/etc. — the -iser handles everything")))) |
| 55 | + (explanation "User intent captured in mylangiser.toml; all generation is deterministic and reproducible")))) |
0 commit comments