This roadmap is the authoritative phase-by-phase plan for CCT.
It has two goals:
- record what is already complete and stable
- preserve the historical phase plan and the current release-facing execution context
- Incremental delivery by phase, with strict regression control
- Determinism first (compiler behavior, sigilo metadata, generic materialization)
- No silent scope expansion inside a phase
- Architecture continuity (avoid unnecessary rewrites of stable subsystems)
- Honest subset declarations (supported vs restricted vs out-of-scope)
- Current completed phase: FASE 40
- Current completed subphase: FASE 40C
- Current phase context: the repository is on the validated post-bootstrap platform baseline, with the self-hosted compiler promoted and operational platform layers closed through media bridges and packaging
- Phase-21 delivery status: bootstrap foundations and lexer implemented and closed
- Phase-22 and 23 delivery status: bootstrap parser, AST, advanced syntax surface, and modular parsing implemented and closed
- Phase-24 and 25 delivery status: bootstrap semantic core, generic semantics, constraints, and deduplicated instantiation implemented and closed
- Phase-26, 27, and 28 delivery status: bootstrap code generation, structural data lowering, advanced control flow,
FORMA, and generic materialization implemented and closed - Phase-29 delivery status: stage0/stage1/stage2 self-host convergence and identity validation implemented and closed
- Phase-30 delivery status: self-hosted workflows, mature application libraries, packaging, and final operational handoff implemented and closed
- Phase-31 delivery status: self-hosted compiler promoted to default, CLI parity, workflow integration, promotion/demotion infrastructure, and parity validation matrix implemented and closed
- Phase-32 delivery status: security, cryptography, encodings, and media foundations implemented and closed
- Phase-33 delivery status: advanced text, parsing, date/time, TOML, and compression modules implemented and closed
- Phase-34 delivery status: file/media inspection, image operations, language detection, and advanced string/runtime diagnostics implemented and closed
- Phase-35 delivery status: Sigilo Vivo foundations and operational platform utilities implemented and closed
- Phase-36 delivery status: PostgreSQL, search, Redis, and advisory-lock operational database layer implemented and closed
- Phase-37 delivery status: transactional mail layer implemented and closed
- Phase-38 delivery status: runtime instrumentation and context-local operational telemetry implemented and closed
- Phase-39 delivery status: animated trace visualization and operational span overlays implemented and closed
- Phase-40 delivery status: media store, ZIP archive support, and S3-compatible object storage bridges implemented and closed
- Current whole-project regression gate:
make test-all-0-31 - Current public-release target:
v0.40 - Current platform validation note: Linux-tested baseline
- Compiler maturity: host compiler plus validated bootstrap/self-host compiler stack
- Backend strategy: generated C plus host C compiler remains the official backend for both host and bootstrap paths
- Sigilo model: dual-level modular model remains stable and continues to be part of the release contract
- Validation model: legacy, rebased legacy, bootstrap, self-host, and operational platform suites are first-class gates
- Typing model: advanced typing subset plus bootstrap generic semantics and materialization are closed on the validated baseline
- Operational maturity: post-bootstrap platform expansion is closed through FASE 40
- Freestanding FS-1A through FS-5D are now closed on top of the existing
--profile freestandingfoundation. - Current freestanding gate closed:
G-FS5, with a booted QEMU image proving PCI discovery, RTL8139 bring-up, bare-metal HTTP serving, and CCT-generated HTML/JSON responses. - Canonical freestanding consumer:
../grub-hello/. - Primary validation path:
CCT_TEST_PHASES=FS1A,FS1B,FS1C,FS2A,FS2B,FS2C,FS3A,FS3B,FS3C,FS3D,FS4A,FS4B,FS4C,FS4D,FS5A,FS5B,FS5C,FS5D bash tests/run_tests.sh. - Current freestanding references:
docs/freestanding/README.mddocs/freestanding/FS1_RUNTIME_MANUAL.mddocs/freestanding/FS2_RUNTIME_MANUAL.mddocs/freestanding/FS3_RUNTIME_MANUAL.mddocs/freestanding/FS4_RUNTIME_MANUAL.mddocs/freestanding/FS5_RUNTIME_MANUAL.mddocs/freestanding/GRUB_HELLO_INTEGRATION.mddocs/release/FREESTND_FS1_RELEASE_NOTES.mddocs/release/FREESTND_FS2_RELEASE_NOTES.mddocs/release/FREESTND_FS3_RELEASE_NOTES.mddocs/release/FREESTND_FS4_RELEASE_NOTES.mddocs/release/FREESTND_FS5_RELEASE_NOTES.md
Objectives completed:
- repository structure and build system
- CLI skeleton (
--help,--version) - core error model and test harness
Architecture impact:
- established the project layout still used today
Quality gate achieved:
- deterministic base build and baseline tests
Objectives completed:
- full tokenizer implementation
- keywords, identifiers, literals, comments, location tracking
--tokensCLI integration
Architecture impact:
- stable token stream contract used by parser and diagnostics
Quality gate achieved:
- lexical regression coverage and clear location-aware errors
Objectives completed:
- recursive-descent parser and AST model
- expression precedence and core ritual syntax
- parser hardening and AST printing (
--ast)
Architecture impact:
- stable AST backbone for semantic/codegen/sigilo
Quality gate achieved:
- robust parser regression with syntax error behavior preserved
Objectives completed:
- symbol registration and scope management
- type checks for core executable subset
- declaration/use and call compatibility validation
--checkintegration
Architecture impact:
- semantic pass model used by every later phase
Quality gate achieved:
- semantic pass became mandatory gate before codegen and sigilo emission
Objectives completed:
- first executable pipeline via generated C
- structured control flow and call execution
- consolidated loop/call behavior with explicit subset boundaries
Architecture impact:
- C-hosted backend became official strategy
Quality gate achieved:
- end-to-end compile/run tests across core subset
Objectives completed:
- deterministic sigilo generation integrated with compile
- layered SVG model and
.sigilmetadata - visual engine redesign and style options
- sigilo CLI controls (
--sigilo-only, style/output selectors)
Architecture impact:
- sigilo became first-class output (not post-processing)
Quality gate achieved:
- determinism tests and style/metadata regressions
Objectives completed:
- executable language expansion (
UMBRA,FLAMMA,VERBUM,SERIES, baseSIGILLUM) - runtime helper layer and cleaner generated C organization
- internal contract hardening across semantic/codegen/runtime
Architecture impact:
- backend and runtime interfaces stabilized for large feature growth
Quality gate achieved:
- generated C structure and runtime-path regressions became explicit
Objectives completed:
- practical pointer/memory subset (
SPECULUM, alloc/free/discard patterns) - advanced executable
SIGILLUMsubset and controlled by-reference mutation - dynamic indexed-memory subset and phase-7 policy closure
Architecture impact:
- memory/structural behavior moved from demo-level to operational subset
Quality gate achieved:
- policy-level diagnostics and behavior consistency in phase-7 final tests
Objectives completed:
- core throw/catch model (
IACE,TEMPTA,CAPE) - propagation across ritual calls
- guaranteed finalization path (
SEMPER) in supported subset - final phase-8 harmonization and policy closure
Architecture impact:
- failure-control became a coherent execution axis integrated with runtime behavior
Quality gate achieved:
- local/propgation/cleanup/final-policy tests consolidated
Objectives completed:
- multi-file closure and deterministic import graph (
ADVOCARE) - inter-module resolution rules and visibility boundaries (
ARCANUM) - official dual-level sigilo architecture (local + system)
- system sigilo rendered as vector inline sigil-of-sigils
- final CLI contract stabilization for modular workflows
Architecture impact:
- modules and system sigilo became stable platform capabilities
Quality gate achieved:
- essential/complete mode behavior, modular diagnostics, and system sigilo determinism
Objectives completed:
- generic model (
GENUS) with explicit instantiation - pragmatic executable monomorphization and deterministic dedup
- contract model (
PACTUM) with explicit conformance - basic constraints (
GENUS(T PACTUM C)) in supported contexts - final harmonization and frozen subset contract (10E)
Architecture impact:
- advanced typing subset is stable enough to support larger library/ecosystem phases
Quality gate achieved:
- full regression closure through phase-10 final tests and metadata contract checks
Objectives completed:
- official reserved namespace
cct/... - canonical stdlib physical root (
lib/cct/) and deterministic resolver contract - foundational stdlib module-origin metadata in module closure
- platform contracts documented (error, ownership, side effects, stability classes)
- inspection compatibility preserved (
--ast,--ast-composite,--check)
Architecture impact:
- standard-library foundation is now a concrete platform layer, not only roadmap intent
Quality gate achieved:
- canonical namespace resolution tests
- reserved-namespace diagnostics for missing stdlib modules
- full historical regression remains green
Objectives completed:
cct/verbummodule delivered in Bibliotheca Canonica- text primitives:
len,concat,compare,substring,trim,contains,find - strict substring bounds policy with clear runtime failure behavior
- predictable text composition basis for
cct/fmtand downstream stdlib modules
Architecture impact:
- platform now has a canonical text-manipulation foundation layer
Quality gate achieved:
- dedicated 11B.1 text tests green
- integration with
OBSECRO scribemaintained - full historical regression remains green
Objectives completed:
cct/fmtmodule delivered- canonical stringify APIs for int/real/float/bool
- canonical parse APIs for int/real with strict invalid-input behavior
- textual composition helper (
format_pair) for label-value output
Architecture impact:
- textual subsystem 11B is now complete (
verbum+fmt)
Quality gate achieved:
- dedicated 11B.2 formatting/parse tests green
- scribe integration preserved
- full historical regression remains green
Objectives completed:
cct/seriesmodule delivered with static-collection helperscct/algmodule delivered with deterministic integer-array algorithms- practical generic utility usage preserved where semantically valid (
series_fill,series_copy,series_reverse) - integration with existing textual modules validated
Architecture impact:
- static collections now have canonical reusable operations
- foundational algorithm layer exists for follow-up utility phases
Quality gate achieved:
- dedicated 11C collection/algorithm tests green
- sigilo generation remains stable with new stdlib modules
- full historical regression remains green
Objectives completed:
cct/memmodule delivered- runtime-backed memory builtins integrated (
alloc,free,realloc,copy,set,zero,compare) - explicit ownership/discard policy documented for canonical stdlib flows
- memory utility baseline prepared for
FLUXUSstorage phases
Architecture impact:
- canonical dynamic-memory foundation now exists for stdlib collections expansion
Quality gate achieved:
- dedicated 11D.1 memory tests green
- interop with existing stdlib modules preserved
- full historical regression remains green
Objectives completed:
- runtime-backed FLUXUS storage core delivered (
src/runtime/fluxus_runtime.*,src/runtime/mem_runtime.*) - deterministic capacity growth and storage primitives validated
- standalone runtime test target integrated (
make test_fluxus_storage)
Architecture impact:
- dynamic-vector storage core became explicit and testable as a runtime layer
Quality gate achieved:
- dedicated 11D.2 runtime storage tests green
- full historical regression remains green
Objectives completed:
- canonical module
cct/fluxusdelivered - ergonomic public API for dynamic vectors (
init/free/push/pop/len/get/clear/reserve/capacity) - sigilo metadata counters added for FLUXUS operations
- usage docs and example program added
Architecture impact:
- block 11D is now fully closed (
mem+ storage core + public fluxus facade)
Quality gate achieved:
- dedicated 11D.3 API/integration tests green
- full historical regression remains green
Objectives completed:
- canonical modules
cct/ioandcct/fsdelivered - runtime-backed IO surface integrated (
print,println,print_int,read_line) - runtime-backed filesystem surface integrated (
read_all,write_all,append_all,exists,size) - IO/FS integration with
VERBUMcovered by dedicated tests and fixtures
Architecture impact:
- canonical external-world interaction layer is now available on top of the 11D ownership/runtime foundation
Quality gate achieved:
- dedicated 11E.1 IO/FS tests green
- sigilo compatibility preserved with stdlib imports
- full historical regression remains green
Objectives completed:
- canonical module
cct/pathdelivered - minimal stable path API shipped (
path_join,path_basename,path_dirname,path_ext) - integration with
cct/fsvalidated through read/write path-composition tests - sigilo metadata counters for PATH usage added
Architecture impact:
- block 11E is now closed (
cct/io+cct/fs+cct/path) with clear IO/FS/PATH boundaries
Quality gate achieved:
- dedicated 11E.2 PATH tests green
- full historical regression remains green
Objectives completed:
- canonical modules
cct/mathandcct/randomdelivered - deterministic numeric helper surface (
abs,min,max,clamp) - reproducible random baseline (
seed,random_int,random_real) - sigilo metadata counters for math/random operations added
Architecture impact:
- utility block 11F started with a practical numeric+random baseline without expanding into heavy statistical scope
Quality gate achieved:
- dedicated 11F.1 tests green
- full historical regression remains green
Objectives completed:
- canonical modules
cct/parseandcct/cmpdelivered - strict textual conversions shipped (
parse_int,parse_real,parse_bool) - canonical comparator layer shipped (
cmp_int,cmp_real,cmp_bool,cmp_verbum) - moderate
cct/algexpansion added (alg_binary_search,alg_sort_insertion) - sigilo metadata counters for parse/cmp/alg operations added
Architecture impact:
- utility block 11F closed with a practical numeric + parse + compare baseline, without expanding into heavy parsing/statistics framework scope
Quality gate achieved:
- dedicated 11F.2 tests green
- full historical regression remains green
Objectives completed:
- canonical showcase suite delivered (
string,collection,io/fs,parse/math/random,multi-module) - public examples mirrored by deterministic integration fixtures in
tests/integration/ - stdlib usage counters/list consolidated in
.sigiland.system.sigil - showcase workflows validated for
--check,--ast,--ast-composite, and--sigilo-only
Architecture impact:
- Bibliotheca Canonica now has a public-facing, executable showcase layer on top of the technical stdlib baseline
Quality gate achieved:
- dedicated 11G tests (428–439) green
- essential/complete sigilo mode stability preserved in multi-module showcase
- full historical regression remains green
Objectives completed:
- final stdlib subset manifest frozen (
docs/stdlib_subset_11h.md) - final stability matrix published (
docs/stdlib_stability_matrix_11h.md) - final naming boundary freeze documented (including
cct/fmtparse façade) - packaging/install contract finalized (
make dist,make install,make uninstall) - install and release notes documentation delivered (
docs/install.md,docs/release/FASE_11_RELEASE_NOTES.md)
Architecture impact:
- FASE 11 is formally closed as a publishable language + canonical stdlib kit baseline
Quality gate achieved:
- dedicated 11H release-readiness tests green
- full historical regression remains green
Objectives completed:
- structured diagnostics and cast baseline (
12A,12B) - Option/Result, Map/Set, and collection combinators (
12C,12D.1,12D.2) ITERUMbaseline syntax and semantics (12D.3)- formatter/linter/project workflow/doc generator (
12E,12F,12G) - closure and governance gate (
12H)
Quality gate achieved:
- full suite green at phase closure
- legacy behavior preserved while tooling surface expanded
Objectives completed:
- sigilo inspect/diff/check/baseline/validate ecosystem (
13A..13D) - determinism audit and release governance closure (
13D.2..13D.4) - common math operator addendum (
13M:**,//,%%) with full matrix validation
Quality gate achieved:
- deterministic contracts preserved
- complete regression closure and release artifacts published
Objectives completed:
- diagnostics/exit-code/explain-mode harmonization (
14A) - docs/publication/release process hardening (
14B,14D) - regression matrix, stress/soak, performance budget, residual risk register (
14C)
Quality gate achieved:
- release engineering gates stabilized without breaking legacy workflows
Objectives completed:
- loop-control finalization (
FRANGE,RECEDE) across supported loops - logical and bitwise/shift operator closure
CONSTANSsemantic and codegen stabilization
Quality gate achieved:
- full closure gate passed with no regressions
Objectives completed:
--profile freestanding,--emit-asm, and entrypoint contract stabilization- freestanding runtime shim and
cct/kernelbridge surface - ABI/linkability and host zero-regression closure
Quality gate achieved:
- bridge path validated while preserving host baseline behavior
Objectives completed:
- lexer/tooling-oriented canonical modules (
verbum_scan,args,char) - text-construction utilities (
verbum_builder,code_writer) - host utility modules (
env,time,bytes) and closure artifacts
Quality gate achieved:
- full historical regression green at 17D.4 closure
Objectives completed:
- large stdlib expansion in text/format/parse, fs/io/path, collections/algorithms
- new modules:
process,hash,bit - closure docs and governance finalized in 18D.4
Quality gate achieved:
- full suite green and canonical library baseline consolidated
Objectives completed:
ELIGE/CASUS/ALIOQUINover integer,VERBUM, and payloadORDO(CUMpreserved as a compatibility alias)FORMAinterpolation with formatting specs (host profile)- payload-capable
ORDOdeclaration/construction/destructuring ITERUMexpansion tomap/setwith arity validation and insertion-order contract- documentation/release/handoff closure (
19D2,19D3,19D4)
Quality gate achieved:
- final closure gate:
Passed: 1069 / Failed: 0
- Completed: FASE 0 to FASE 40, plus FASE 14T
- Current operational baseline: promoted self-hosted compiler as default, validated platform expansion through FASE 40
- Next work category: release packaging, publication, and stabilization for
v0.40
Delivered after compiler promotion:
- FASE 32:
cct/crypto,cct/encoding,cct/regex - FASE 33:
cct/datetime,cct/toml,cct/compress - FASE 34:
cct/filetype,cct/media,cct/image,cct/langdetect, advanced string/runtime utilities - FASE 35: Sigilo Vivo foundations plus
cct/lexer,cct/uuid,cct/slug,cct/i18n,cct/form,cct/log,cct/trace,cct/metrics,cct/signal,cct/watch,cct/audit - FASE 36:
cct/db_postgres,cct/db_postgres_search,cct/redis,cct/db_postgres_lock - FASE 37:
cct/mail,cct/mail_spool,cct/mail_webhook - FASE 38:
cct/instrument,cct/context_local - FASE 39: Sigilo Vivo trace rendering and comparison tooling
- FASE 40:
cct/media_store,cct/archive_zip,cct/object_storage
Operational consequence:
- the roadmap is no longer centered on bootstrap completion
- the validated repository baseline is now the full FASE 40 platform
- the immediate next project move is publishing release
v0.40
Primary objective:
- upgrade sigilo SVG artifacts from deterministic visual outputs into deterministic, hover-readable semantic reading instruments.
Delivered scope:
14TA: source-context extraction/normalization and tooltip text pipeline.14TB: SVG<title>emission for ritual nodes, structural nodes, local edges, and system-sigilo module/system edges.14TC: deterministic additivedata-*on local nodes/call edges plus lightweight root semantics.14TD: hover polish, instrumentation toggles, documentation, release notes, handoff, and closure gate.
Architectural policy:
- no JavaScript dependency;
- keep SVG pure, exportable, and diff-friendly;
- preserve deterministic output contracts;
- keep
.sigilschema stability unless additive metadata becomes strictly necessary.
Out of scope:
- full web viewer, animated navigation, search UI, or a large visual redesign of sigilo layout.
Closure evidence:
- major SVG elements now expose useful hover titles and stable metadata attributes without breaking current sigilo workflows.
- local and system sigilo components can now be hovered directly in the SVG to inspect meaning without a separate viewer.
- instrumentation can be disabled via
--sigilo-no-titlesand--sigilo-no-data, including full plain-mode fallback. - dedicated FASE 14T regression coverage: 46 tests.
- final closure gate:
Passed: 1120 / Failed: 0.
Primary objective completed:
- turned the post-19 language baseline into a practical application platform through canonical JSON, networking, HTTP, configuration, and local database modules.
Delivered scope:
20A:cct/jsonwith JSON value model, strict parser, stringify/pretty-print, and navigation helpers.20B:cct/socket/cct/netwith host-only TCP/UDP runtime bridge plus high-level wrappers in CCT.20C:cct/httpclient/server baseline overcct/net, covering HTTP/1.1 text workflows and JSON integration.20D:cct/configfor canonical application configuration parsing/loading/writing.20E:cct/db_sqlitefor local persistence via a thin runtime bridge and ergonomic CCT wrappers.20F: documentation, examples, release closure, and hardening of the new stack.
Architectural policy:
- implement parsing, modeling, protocol logic, wrappers, and high-level ergonomics in CCT wherever possible;
- keep C runtime additions thin and limited to OS/binding boundaries such as sockets, timeouts, and SQLite APIs.
Out of scope:
- TLS/HTTPS, HTTP/2+, WebSocket, remote DB drivers, ORM layers, and a broad new wave of core-language syntax work.
- large ownership/lifetime redesigns.
Closure evidence:
- 61 new integration tests across 20A-20E.
- canonical examples published for HTTP JSON client/server, config + SQLite, and UDP loopback.
- release/handoff artifacts published for FASE 20.
- final closure gate:
Passed: 1181 / Failed: 0.
Primary objective:
- begin compiler self-hosting by porting lexer to CCT and establishing library foundations needed for bootstrap.
Planned scope:
21A: library foundations (cct/char,cct/verbumexpansions,cct/diagnostic)21B: token model and keyword table in CCT21C: lexer core (character scanning, literals)21D: lexer advanced (comments, error recovery, line tracking)21E: validation (lexer CCT tokenizes suite identically to lexer C)
Out of scope:
- parser, semantic, codegen (FASE 22-28)
- self-hosting completion (FASE 29)
- library maturation (FASE 30)
Architecture impact:
- first compiler component rewritten in CCT
- library grows incrementally per bootstrap needs
Definition of done:
- lexer CCT produces identical tokens to lexer C on full suite
- ~1500 LOC CCT (library ~800 + lexer ~700)
- 2-3 months duration
Primary objective:
- port core parser and AST construction to CCT.
Planned scope:
22A: AST model (94 node types as ORDO/SIGILLUM)22B: expression parsing (literals, binary, unary, call)22C: basic statement parsing (EVOCA, REDDE, SI, DUM)22D: declaration parsing (RITUALE, SIGILLUM, simple ORDO)22E: error recovery + synchronization22F: validation (parse simple programs from suite)
Critical challenge:
- AST representation without C unions (ORDO payload vs SPECULUM NIHIL tradeoff)
Out of scope:
- advanced control flow (TEMPTA/CAPE, ELIGE with QUANDO fallback, nested loops) → FASE 23
- GENUS parsing → FASE 23
- semantic analysis → FASE 24
Definition of done:
- parser CCT generates valid AST for simple programs
- ~4500 LOC CCT
- 3-4 months duration
Primary objective:
- complete parser with advanced control flow, generics, and module system.
Planned scope:
23A: complex control flow (TEMPTA/CAPE, ELIGE with QUANDO fallback, nested loops)23B: GENUS parsing (type parameters, constraints)23C: PACTUM/CODEX parsing23D: import/module system parsing23E: validation (parse full suite including generics)
Out of scope:
- semantic analysis → FASE 24
Definition of done:
- parser CCT handles full language surface
- ~2500 LOC CCT
- 2-3 months duration
Primary objective:
- port core semantic analysis (symbol tables, types, scopes) to CCT.
Planned scope:
24A: symbol table + scope chains24B: type system model (13 primitive + composite types)24C: type resolution (primitives, SIGILLUM, ORDO)24D: expression type checking24E: statement validation24F: function signature checking24G: validation (semantic check on programs without GENUS)
Critical challenge:
- symbol lookup O(n) may require hashmap (add if profiling shows bottleneck)
- scope parent chains with SPECULUM
- type equality and compatibility
Out of scope:
- generic type instantiation → FASE 25
Definition of done:
- semantic analyzer CCT validates non-generic programs correctly
- ~6500 LOC CCT
- 4-5 months duration
Primary objective:
- complete semantic analysis with generic type instantiation and constraint checking.
Planned scope:
25A: generic type parameter tracking25B: generic type instantiation25C: constraint checking (PACTUM conformance)25D: generic deduplication (FNV hash + canonicalization)25E: validation (full semantic check with GENUS)
Critical challenge:
- instantiation cache and deduplication strategy
Definition of done:
- semantic analyzer CCT handles full language with generics
- ~2500 LOC CCT
- 3-4 months duration
Primary objective:
- port core code generation (expressions, statements, functions) to CCT.
Planned scope:
26A: codegen context + C emission infrastructure26B: expression emission (literals, binary, unary, call)26C: statement emission (assign, if, loops)26D: function emission (signature, body, return)26E: type mapping CCT → C26F: runtime bridge emission (includes, helpers)26G: validation (generate C for simple programs, compile and execute)
Critical challenge:
- string building for C code (~311 sprintf uses in C compiler)
- string pool management
- temporary variable generation
Out of scope:
- struct/enum codegen → FASE 27
- generic instantiation codegen → FASE 28
Definition of done:
- codegen CCT produces valid C for simple programs
- ~5500 LOC CCT
- 4-5 months duration
Primary objective:
- complete codegen for structured types (SIGILLUM, ORDO with/without payload).
Planned scope:
27A: SIGILLUM codegen (typedef, field access, copy)27B: simple ORDO codegen (C enum)27C: ORDO payload codegen (tagged union)27D: ELIGE codegen (QUANDO fallback compatibility; switch vs if-chain, payload destructuring)27E: validation (generate C for programs with structs/enums)
Definition of done:
- codegen CCT handles structured types
- ~2500 LOC CCT
- 2-3 months duration
Primary objective:
- complete codegen with generic instantiation, exceptions, and advanced control flow.
Planned scope:
28A: generic instantiation codegen28B: exception handling codegen (TEMPTA/CAPE/SEMPER)28C: advanced control flow (nested loops, break/continue labels)28D: FORMA (string interpolation) codegen28E: validation (generate C for complex programs from suite)
Definition of done:
- codegen CCT handles full language surface
- ~3500 LOC CCT
- 3-4 months duration
Primary objective:
- achieve full self-hosting with multi-stage bootstrap validation.
Planned scope:
29A: compile CCT compiler with C compiler → stage 029B: stage 0 compiles itself → stage 129C: stage 1 compiles itself → stage 229D: identity validation (stage 1 == stage 2)29E: regression testing (full suite with bootstrap compiler)29F: performance profiling + critical optimizations
Critical gate:
- 3-stage bootstrap complete with identical outputs
- full suite (1181+ tests) passes with bootstrap compiler
- performance acceptable (10× slower than C compiler is OK)
Definition of done:
- CCT compiler successfully compiles itself
- ~500 LOC CCT (scripts + harness)
- 2-3 months duration
Primary objective:
- close the operational transition from validated bootstrap to usable self-hosted platform.
Delivered scope:
30A: self-hosted toolchain as default operational path30B: self-hosted stdlib/runtime compatibility subset30C: mature application libraries (csv,https,orm_lite)30D: self-hosted project workflows, packaging, and distribution30E: final gate, release notes, and handoff
Out of scope:
- further language surface expansion (post-bootstrap phases)
Definition of done:
- self-hosted compiler is an operational path
- application-library subset is usable over the self-hosted compiler
- project workflows are validated over the self-hosted path
- release/handoff docs match the validated state
Primary objective:
- promote the validated self-hosted compiler from bootstrap artifact to operational default compiler path
Delivered scope:
31A: self-host wrapper parity (compile, output handling, stdlib resolution)31B: CLI contract parity (--check, --ast, --tokens, fallback delegation)31C: project workflow parity (build, run, test, bench, clean, package)31D: promotion and demotion infrastructure (explicit, reversible, testable)31E: default switch and final validation gate
Out of scope:
- complete tooling parity (fmt, lint, doc remain host-delegated)
- pending stdlib modules (config, json, db_sqlite, http)
- performance optimization (bootstrap 2-3x slower than host acceptable)
Definition of done:
./cctdefaults to self-hosted compiler after promotioncct-hostandcct-selfhostexplicit paths available- promotion/demotion via
make bootstrap-promote/make bootstrap-demote - formal parity matrix documented (
docs/bootstrap_parity_matrix.txt) - parity validation automated (
make test-bootstrap-parity) - 31 promotion tests passing (1724-1754)
- host compiler preserved as fallback
| Phase | Scope | Duration | LOC CCT | Cumulative |
|---|---|---|---|---|
| 21 | Foundations + Lexer | 2-3 mo | ~1500 | 1500 |
| 22 | Parser básico | 3-4 mo | ~4500 | 6000 |
| 23 | Parser avançado | 2-3 mo | ~2500 | 8500 |
| 24 | Semantic básico | 4-5 mo | ~6500 | 15000 |
| 25 | Semantic generics | 3-4 mo | ~2500 | 17500 |
| 26 | Codegen básico | 4-5 mo | ~5500 | 23000 |
| 27 | Codegen structs/enums | 2-3 mo | ~2500 | 25500 |
| 28 | Codegen generics | 3-4 mo | ~3500 | 29000 |
| 29 | Self-hosting | 2-3 mo | ~500 | 29500 |
| 30 | Closure + library | 2-3 mo | library | 30000+ |
| 31 | Promotion + parity | 1-2 mo | wrapper | 30000+ |
| TOTAL | 11 phases | 29-40 mo | ~30K LOC |
Bootstrap status: phases 21-31 completed on the current validated baseline.
Target profile:
- stable public technical preview
- complete core language/toolchain baseline through advanced typing consolidation
- mature sigilo outputs and modular workflows
Target profile:
- stronger stdlib and runtime maturity
- improved backend quality and broader practical programming surface
Target profile:
- deeper ecosystem maturity and advanced tooling
- strong release confidence for larger projects
Target profile:
- self-hosting trajectory completed (or functionally equivalent production maturity)
- full production-grade stability and ecosystem readiness
Every phase must pass these gates before closure:
- full regression suite remains green
- deterministic behavior preserved where promised
- subset boundaries documented (supported/restricted/out-of-scope)
- docs updated (
README,spec,architecture, roadmap) - no silent API contract breaks in stable public entry points
The bootstrap roadmap (phases 21-31) is complete, and the post-bootstrap platform roadmap through FASE 40 is also complete.
Immediate engineering focus:
- keep
make test-all-0-31green - maintain parity validation (
make test-bootstrap-parity) - preserve host/bootstrap/self-host behavioral convergence
- preserve the validated FASE 40 operational baseline
- prepare and publish release
v0.40
Release-side priorities:
- keep Linux-tested workflows green
- verify release packaging and install paths
- align public docs with the FASE 40 baseline
- publish the FASE 40 release package and notes
Historical traceability note: closure artifacts from the host-era and bootstrap-era phases are preserved under docs/release/ and docs/bootstrap/.
FASE 31 closes the compiler-promotion problem.
Closed outcomes:
- the self-hosted compiler is no longer only a validated bootstrap artifact
- the repository exposes explicit host and self-host wrappers side by side
- the default wrapper path can be promoted or demoted intentionally
- the testing model now distinguishes product validation, host fallback validation, bootstrap identity, and phase-specific promotion gates
The roadmap after FASE 31 should be read as platform maturation, not bootstrap enablement.
For the current repository state, that maturation track is already closed through FASE 40.
Immediate forward frontier:
- preserve host/self-host behavioral convergence
- preserve the fully closed FASE 40 platform baseline
- ship release
v0.40 - continue self-host/tooling parity work only when it does not disrupt the validated release baseline