|
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-meta-framework" |
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 "Need a factory to generate consistent -iser repos for each new language") |
| 13 | + (decision "Iseriser takes a language description and scaffolds a complete -iser repo") |
| 14 | + (consequences "Adding a new language to the ecosystem takes minutes not days; all -isers share identical structure")) |
15 | 15 |
|
16 | | - (adr "002-abi-ffi-standard" |
| 16 | + (adr "002-language-model" |
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 a structured representation of a target language's interop surface") |
| 19 | + (decision "LanguageModel captures name, type system features, compilation target, primitives, calling convention") |
| 20 | + (consequences "Template engine can make decisions based on language features (e.g., deeper ABI proofs for dependent types)")) |
| 21 | + |
| 22 | + (adr "003-abi-ffi-standard" |
| 23 | + (status "accepted") |
| 24 | + (context "Need verified interop between Rust CLI, generation engine, and generated output") |
| 25 | + (decision "Idris2 ABI for formal proofs of generation correctness, Zig FFI for C-ABI bridge") |
20 | 26 | (consequences "Compile-time correctness guarantees; zero runtime overhead from proofs")) |
21 | 27 |
|
22 | | - (adr "003-rsr-template" |
| 28 | + (adr "004-template-engine" |
23 | 29 | (status "accepted") |
24 | | - (context "Need consistent project structure across 29+ -iser repos") |
25 | | - (decision "All repos cloned from rsr-template-repo with full CI/CD and governance") |
26 | | - (consequences "17 workflows, SECURITY.md, CONTRIBUTING, bot directives from day one"))) |
| 30 | + (context "Need a flexible template system for generating diverse file types") |
| 31 | + (decision "Handlebars templates with language-model variables") |
| 32 | + (consequences "Templates are readable and maintainable; language-specific logic via conditionals")) |
| 33 | + |
| 34 | + (adr "005-self-hosting" |
| 35 | + (status "proposed") |
| 36 | + (context "Iseriser should be able to generate itself to prove completeness") |
| 37 | + (decision "Phase 4 roadmap: iseriser generates iseriser, diff converges to zero") |
| 38 | + (consequences "Ultimate validation that the template set is complete and correct"))) |
27 | 39 |
|
28 | 40 | (development-practices |
29 | 41 | (language "Rust" (purpose "CLI and orchestration")) |
30 | | - (language "Idris2" (purpose "ABI formal proofs")) |
31 | | - (language "Zig" (purpose "FFI C-ABI bridge")) |
| 42 | + (language "Idris2" (purpose "ABI formal proofs — LanguageModel, TypeSystemFeature, GeneratedArtifact types")) |
| 43 | + (language "Zig" (purpose "FFI C-ABI generation engine")) |
32 | 44 | (build-tool "cargo") |
| 45 | + (template-engine "Handlebars (handlebars crate)") |
33 | 46 | (ci "GitHub Actions (17 workflows)")) |
34 | 47 |
|
35 | 48 | (design-rationale |
36 | | - (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")))) |
| 49 | + (principle "Language-model-driven" |
| 50 | + (explanation "All generation decisions flow from the language model — no hardcoded per-language logic in templates")) |
| 51 | + (principle "Formally verified generation" |
| 52 | + (explanation "Idris2 dependent types prove that templates expand to well-typed output and ABI layouts are consistent")) |
| 53 | + (principle "Complete repo generation" |
| 54 | + (explanation "Generated -isers include source, tests, CI/CD, documentation, and RSR governance — ready to cargo build from day one")) |
| 55 | + (principle "Self-hosting as proof" |
| 56 | + (explanation "If iseriser can generate itself, the template set is provably complete")))) |
0 commit comments