Skip to content

Latest commit

 

History

History
401 lines (308 loc) · 19.1 KB

ROADMAP.md

File metadata and controls

401 lines (308 loc) · 19.1 KB

Rynix Development Roadmap

Rynix is an AI-native systems/backend language: canonical syntax, structured diagnostics, Zero-GC memory (escape → stack/region/heap), colorless fibers, and an LLVM backend targeting small binaries.

Phases are acceptance-gated. Irreversible decisions live in docs/adr/.

Conventions

  • Binary: rynixc · sources: .ryx · IR text: .rir · codes: RYX####
  • One atomic step ≈ one commit · English docs · zero-config fmt
  • Windows (gnu) first-class through codegen; Linux for io_uring + ASan CI

Pipeline

.ryx → lexer → parser/AST → sema → RIR (SSA)
    → escape + regions + free → LLVM (.ll) + ThinLTO → binary + rynix-rt

Honesty legend

  • ✅ acceptance met with in-tree tests

Phase 0 — Workspace ✅

Cargo workspace, pedantic lints, unsafe_op_in_unsafe_fn = deny, ADRs 0001–0006.

Phase 1 — Lexer ✅

Zero-alloc cursor, RYX0001..0006, mmap, proptest tiling, zero-alloc proof, criterion (~388 MiB/s mixed). Shipping gate ≥ ~400 MiB/s (within noise) — met. See benchmarks.md.

Phase 2 — Parser / AST ✅

Arena AST, Pratt, recovery, dumps; formatter in Phase 9.

Phase 3 — Diagnostics ✅

Human + rynix.diag.v1 JSON schema; MCP tools completed Phase 9.

Phase 4 — Sema ✅

Scopes, types, #^ error, soft std + tensor/signal/agent.

Phase 5 — RIR ✅

SoA SSA, block args, DCE/const-fold/simplify-cfg/BCE, interpreter. Indexing with bounds_check / load_index. Immutable lets bind as SSA values; let mut stays alloc/load/store. for / break / continue lower to real CFG. Field access via field_offsets + gep_i64. match on int/bool/_/nullary enum variants (+ else) → icmp/br chains. Methods .len / .push / .get / .insert by receiver kind.

Phase 6 — Escape ✅

Lattice, region inject, Free { site, ptr } → rynix_rt_heap_free. #^ alloc: + #^ free-at covered.

Phase 7 — LLVM ✅

Textual .ll shipping backend (ADR-0005), reachability DCE, heap free codegen, hello size gate <300KiB (when clang present). Differential: diff_llvm_vs_interp.

Phase 8 — Runtime ✅

  • Fibers (Win32 / ucontext) with PARKED waits for I/O
  • TCP: listen/accept/connect/recv/send (fiber-safe)
  • Echo + RPS: tcp_echo_rps + load_harness; methodology in bakeoff.md (+ optional Go script)
  • io_uring (Linux): fiber-aware submit → park → CQ harvest in rynix_rt_run; APIs for read/write/accept/connect; tcp_accept/tcp_connect use uring when the ring is ready (else poll); tcp_recv/tcp_send stay non-blocking poll+yield
  • IOCP (Windows): --runtime=iocp — AcceptEx/ConnectEx + WSARecv/WSASend; fiber park/unpark; iocp_echo_smoke
  • Pipe echo + fiber smoke + ASan CI; uring_sqe_smoke

Phase 9 — Std / tooling / AI ✅

  • CLI: build/run/test/fmt/mcp-serve · rynix.toml
  • MCP: diagnostics, format, explain_alloc, compile, ast_query, apply_fix
  • Vec/Map: ADR-0006 — Vec[i64] / Map[i64, i64] + soft builtins + methods (complete shipping collections design)
  • Soft net/time/io · Presburger-lite BCE · smart primitives

Milestones

Id Criterion Status
M0–M6 scaffold → escape ✅
M7 native LLVM + size gate ✅ (clang)
M8 fiber TCP + RPS + fiber-aware uring ✅
M9 std + MCP + fmt + BCE + mono Vec/Map ✅
M10 product surface (LSP, Suite5 publish, richer AI CLI, install UX) ✅

Phase 10 — Competitive product surface ✅

Item Status Evidence
AI CLI (graph/slice/impact/eval/patch) ✅ crates/rynixc/tests/agent_cli.rs, MCP tools
JSON schemas (graph/impact/eval) ✅ docs/schemas/rynix.*.v1.json
Suite5 cross-lang + checksum (12 workloads) ✅ benchmarks/suite5/, CI suite5-check
Install UX ✅ install.ps1, INSTALL.sh, INSTALL.md
PRODUCTION_READINESS / SECURITY ✅ root docs
Editor — LSP + VS Code ✅ rynixc lsp-serve, editors/vscode/, lsp_cmd unit test
arch check + Architecture.toml ✅ root Architecture.toml, crates/rynixc/tests/phase10_gates.rs, CI
Std json/http in .ryx ✅ json_get_i64, http_get_json_i64, examples/05_http_json.ryx
GitHub Release binaries ✅ .github/workflows/release.yml + SHA256SUMS
Optional C11 backend 🔄 deferred ADR-0008
End peer benchmarks + gap closure ✅ Phase 11 END_PEER_GAP.md
UI / hot-reload / canvas frameworks 🔄 out of scope v0.1 ADR-0007

Phase 11 — Peer parity vs End ✅

Close product gaps without copying End prose or claiming unverified ✅. Gap analysis: END_PEER_GAP.md. Ordered execution plan: SURPASS_END_PLAN.md (Phases A→E: language → agent CLI → stdlib → runtime/packages → polish).

Item Status Evidence
Suite5 end builder + 12× .end ports ✅ benchmarks/suite5/*.end, checksums validated vs C
End checksum validation (local) ✅ endc + all 12 OK; CI suite5-with-end when present
End-style link flags (-flto, -funroll-loops, strip) ✅ build_cmd.rs; Suite5 rebench
--bench minimal RT (size vs End) ✅ rt/bench_rt.c + const-print C; ~18 KiB MSVCRT
README domain maturity matrix ✅ root README.md
Agent contracts approach ✅ design ADR-0009
Close End wins on Suite5 rows ✅ local opaque bounds + disclosed strength reduction; see END_PEER_GAP
Broader HTTP / frameworks ✅ C1–C5 landed serve/post/echo, sha256, kv, TLS, WS; ADR-0007 for UI
Agent verify / precheck / context ✅ verify/precheck/context + schemas + MCP
Explicit region scopes ✅ SPEC §3.1 + examples/08_region.ryx
Pipeline ` >` ✅
Use-after-move (linear types) ✅ RYX2011 + sema_unit
#^ effect: pure ✅ RYX2012 + effects_pure + wave1 contract
Agent security / scope ✅ agent_cli + MCP rynix_security / rynix_scope
Local path packages (rynix.toml deps) ✅ path + index + unity + multifile + workspace + lock + transitive + mangling + semver + std::
rynixc new / dna ✅ scaffold + rynix.dna.v1 + MCP
TLS echo (SChannel / OpenSSL) ✅ tls_echo_smoke_c + soft builtins
HMAC + AES-GCM KAT ✅ RFC 4231 + NIST empty-tag; crypto_kv_smoke
VS Code CodeLens (check/alloc/impact) ✅ editors/vscode CodeLens provider
Suite12 MATCH ports ✅ ALU/HFT/JSON/FSM/DNA/GEMM/MC/trees/SHA checksum gates
Suite12 divergent #1/#5/#6 ✅ deferred ADR-0011 — no stub
WS RFC6455 (64-bit + frag + large wire) ✅ ws_frames_smoke_c + ws_large_echo_smoke_c
Windows IOCP runtime ✅ AcceptEx/ConnectEx + WSARecv/WSASend
GPG release path ✅ release.yml + gpg_sign_smoke
Release packaging + optional GPG ✅ scripts/build_release.ps1 + release.yml
DCE strips dead Suite5 noise ✅ dce_matrix_noise — matrix LLVM is opaque*216
C11 backend 🔄 deferred ADR-0008 — no stub transpile
UI / canvas 🔄 deferred ADR-0007 — no stub studio
Network package registry 🔄 deferred ADR-0010 — local dir-scan + sparse index + unity + lock; no CDN

Phase 12 — Lead ahead (valuable, not theatrical)

Ordered plan (build-ready locks): LEAD_AHEAD.md. Research archive (peer + web): research/PHASE12_RESEARCH_INVENTORY.md. Peer End main @ cf5bef3 (2026-08-24) still simulates TLS/JIT/registry; Rynix does not copy that surface. Order: 0 → 1 → (1b ∥ 2) → 3 → 4 → (5 ∥ 6).

Wave Theme Status
0 Honesty freeze + field-assign reject (RYX2020) + README truth (shipped domains) ✅
1 rynixc build/run from [package].entry+files ✅
1b Memory compile_fail corpus (∥ Wave 2) ✅
2 Bounded looping HTTP (max_reqs) (∥ Wave 1b) ✅
3 Struct literals (i64 fields v1) + field store ✅
4 import std::fs / thin crypto SHA ✅
5 Suite12 MATCH as .ryx checksums (∥ Wave 6) ✅
6 LSP workspace go-to-def + eval honesty (∥ Wave 5) ✅

Phase 13 — WASM emit-ll + manifest optimize

Plan: PHASE13.md. Order: A then B.

Wave Theme Status
A emit-ll --target=wasm32-unknown-unknown + clang -c smoke ✅ emit_ll_wasm32_clang_accepts
B [build].optimize + --opt/--no-opt for build/run ✅ build_respects_manifest_optimize
C Dual-path HTTP loop (http_serve_loop_2paths_json_i64) ✅ http_loop_2paths

Phase 14 — Real .wasm (clang link, no WASI)

Plan: PHASE14.md. Locked Wave A over Sigstore-lite / deeper I/O.

Wave Theme Status
A rynixc emit-wasm → real .wasm (\0asm) via clang ✅ emit_wasm_clang_produces_wasm
B Local digest attest (rynix.attest.v1.json, not Rekor) ✅ deps_attest_write_verify_and_tamper
C Triple-path HTTP loop (http_serve_loop_3paths_json_i64) ✅ http_loop_3paths

Phase 15 — Run emitted .wasm (Node, no WASI)

Plan: PHASE15.md. Closes the emit→execute loop without WASI.

Wave Theme Status
A Node instantiates emit-wasm module; main()===42 ✅ emit_wasm_node_runs_main
B Skills-as-docs pack (emit-wasm + attest honesty) ✅ agent_skill_mentions_emit_wasm_and_attest

Phase 16 — Honesty + path_param HTTP + MCP path-first

Plan: PHASE16.md. Niche-10 base (ADR-0013); Raft deferred (ADR-0012). Order: 0→A→B→C→D.

Wave Theme Status
0 PHASE16 + ADR-0012/0013 locks ✅
A Suite5 + peer refresh ✅ Suite5 Phase 16-A artifact
B PRODUCTION_READINESS / local-digest wording ✅
C http_serve_loop_path_param_json_i64 ✅ http_loop_path_param
D MCP rynix_graph path-first ✅ mcp_graph_path_file

Phases 17–20 — Niche-10 path (after 16)

Phase Theme Status
17 Language: struct str, index assign, enum values, ADR-0014 mono collections ✅ struct_str_field_roundtrip, index_assign_ok, enum_value_roundtrip
18 Product HTTP(+TLS): header, bounded body, keep-alive, TLS path ✅ http_header_i64_smoke, http_body_bounded_smoke, http_keepalive_bounded_smoke, http_tls_product_smoke
19 LSP completion+rename; MCP path-first trio; agent contract ✅ completion_lists_fn_and_let, rename_local_updates_def_and_refs, mcp_impact_path_file, mcp_precheck_path_file, verify_phase19_path_mcp_contract
20 WASM host-import print_i64; package/INSTALL polish; Niche-10 certify ✅ emit_wasm_host_print_i64, package_ux_new_deps_attest, install_one_path_clang_win_linux, niche10_scorecard_links_gates — NICHE10.md

Phase 21 — ROI after Niche-10

Plan: PHASE21.md. MCP path-first remainder, product example, match on enum variants (ADR-0015), CHANGELOG, VS Code completion/rename docs.

Wave Theme Status
Hyg README headers + CodeLens honesty ✅
A MCP check / context / security / apply_fix path-first ✅ mcp_*_path_file
B examples/11_http_path_param_tls.ryx ✅ example_http_path_param_tls_checks
C match nullary enum variants ✅ enum_match_variant_roundtrip
D CHANGELOG (no push unless asked) ✅
E VS Code LSP completion/rename client honesty ✅

Phase 22 — Inline match+return + MCP path-first remainder

Plan: PHASE22.md. Fix phantom CFG join after exhaustive return in match/if when inlined; finish MCP disk-first tools.

Wave Theme Status
A Empty join → unreachable; reachable-only phi ✅ inline_match_return_roundtrip
B MCP format / explain_alloc / compile / ast_query path-first ✅ mcp_format_path_file, mcp_compile_path_file

Phase 23 — Depth: LSP refs, Enum::Variant, Vec[str], tag

Plan: PHASE23.md.

Wave Theme Status
Hyg PRODUCTION_READINESS honesty (0–22+) ✅
A LSP references + workspace/symbol ✅ references_lists_local_uses, workspace_symbol_lists_fn
B Enum::Variant paths + match ✅ enum_qualified_variant_roundtrip
C Vec[str] mono (ADR-0016) ✅ vec_str_roundtrip
D Local tag v0.1.0 (no push) ✅

Phase 24 — Map[str,i64] + product example

Plan: PHASE24.md.

Wave Theme Status
A Map[str, i64] mono (ADR-0017) ✅ map_str_i64_roundtrip
B examples/12_http_vec_map_str.ryx ✅ example_http_vec_map_str_checks

Golden path (post-24)

Canonical Q-Core plan: GOLDEN_PATH.md — Quality-10 Phases 25–29 closed. Post-Q-Core GOLDEN_REMAINING.md Phases 30–38 closed (v0.1.1 / v0.2.0 + LSP codeAction). Further releases remain user-triggered only (no auto push/tag). Track R is optional.

Phase 25 — Map[str,str] + documentSymbol

Plan: PHASE25.md.

Wave Theme Status
A Map[str, str] mono (ADR-0018) ✅ map_str_str_roundtrip
B LSP documentSymbol ✅ document_symbol_lists_fn
C examples/13_http_map_str_str.ryx ✅ example_map_str_str_product_checks
D Contract phase25_golden ✅ verify_phase25_golden_contract

Phase 26 — Maturity decompose

Plan: PHASE26.md.

Wave Theme Status
A lower/ decomp (ADR-0019) ✅ lower_decomp_invariants
B lsp/ decomp (ADR-0020) ✅ lsp_decomp_parity
C unwrap budget ≤60 ✅ unwrap_budget_gate
E–G contract schema / deny deferral / sanitizer scaffold ✅ named gates

Phase 27 — Security posture

Plan: PHASE27.md.

Wave Theme Status
A --sandbox=docker|none (ADR-0022) ✅ sandbox_docker_smoke
B RIR sanitize CallExt denylist (ADR-0023) ✅ sanitize_rejects_exec
C MSan/UBSan scaffold soft gate ✅ msan_ubsan_rt_clean
D New fuzz target + seed ✅ fuzz_new_targets_seeded
E STRIDE threat model ✅ docs/SECURITY_THREAT_MODEL.md
F ∥ Windows Job Object deferral ✅ windows_sandbox_or_deferral
G ∥ emit-ll no-link smoke ✅ emit_ll_no_link_smoke
H ∥ CWE matrix honesty ✅ security_cwe_matrix_or_deferral

Phase 28 — Agent polish + language depth

Plan: PHASE28.md.

Wave Theme Status
A LSP textDocument/formatting ✅ lsp_formatting_applies_fmt
B MCP rynix_slice path-first ✅ mcp_slice_or_documented_absence
C std::crypto HMAC/AES facade ✅ std_crypto_hmac_aes_import_ok
D ADR-0024 payload enums ✅ Deferred (0024)
E Payload match skip (0024 Deferred)
F Struct bool skip (PHASE28 Out)
G VERDICT peer date ✅ verdict_peer_date_current
H Multiline strings skip (PHASE28 Out)

Phase 29 — Runtime / WASM / docs ceiling

Plan: PHASE29.md.

Wave Theme Status
A uring recv/send honesty ✅ uring_recv_send_completion_smoke
B TLS CI matrix ✅ tls_ci_matrix_documented
C HTTP auth/method ✅ http_auth_or_method_gate (deferral)
D Escape interproc limit ✅ escape_interproc_or_limit_doc
E WASM env.print str ✅ emit_wasm_host_print_str
F Package UX + attest docs ✅ package_ux_diag_gate, attest_docs_match_impl
G Book skeleton ✅ book_skeleton_exists
H Suite5 artifact links ✅ suite5_post_p24_artifact_links
I RFC / CONTRIBUTING Track C ✅ rfc_or_contributing_sections

Golden Remaining (post Q-Core)

Plan: GOLDEN_REMAINING.md. Honesty gates in Phases 27/29 are superseded by behavioral gates in Phases 31–32 (not a reopen of Q-Core ✅).

Phase Theme Status
30 Public v0.1.1 Quality-10 release ✅ PHASE30.md
31 Security harden (UBSan, cargo-deny, Job Object) ✅ PHASE31.md
32 Runtime / HTTP (uring TCP, Bearer, escape) ✅ PHASE32.md
33 Language (payloads, struct bool, multiline, Vec[bool]) ✅ PHASE33.md
34 Track C depth ✅ PHASE34.md
35 Track G ADR-0025 + spike ✅ PHASE35.md
36 Track G ship ✅ PHASE36.md
37 Public v0.2.0 ✅ PHASE37.md
38 Agent surface remainder (LSP codeAction) ✅ PHASE38.md

Golden Lead (post Remaining)

Plan: GOLDEN_LEAD.md — single SoT for Phases 39–49.

Phase Theme Status
0 SoT + peer bdc8732 honesty ✅ Wave 0
39 LSP prepareRename + documentHighlight ✅ PHASE39.md
40 ADR-0026 Option[T] ✅ PHASE40.md
41 Ship Option[T] (i64|str) ✅ PHASE41.md
42 inlayHint ✅ PHASE42.md
43 MCP split + Agent-Quality Pack ✅ PHASE43.md
46-pre MCP dual-era / discover ✅
46 Lead Platform Complete ✅ PHASE46.md
44–45 seccomp / MSan (Track-R optional) optional
47–49 &T / traits (ask-only) ask

Follow-on (post-13 / parallel)

Item Status Gate
Local sparse package index (no CDN) ✅ deps_resolves_sparse_local_index, build_pkg_sparse_app_resolves_index
Suite5 sum closed form without sdiv/IDIV ✅ sum_opaque_closed_form_has_no_sdiv_or_loop
Local package digest attest (not Sigstore/Rekor) ✅ rynix.attest.v1 deps_attest_write_verify_and_tamper
HTTP ≥3 paths / extra fiber smokes ✅ http_loop_3paths

CI

.github/workflows/ci.yml: cargo test on Ubuntu + Windows; clippy; VS Code extension compile; Suite5 + arch gates; ASan fiber/echo/TCP/load/json; uring SQE + uring TCP smoke on Linux; optional suite5-with-end when endc on PATH; size_echo_gates suite12 + WS/IOCP/TLS/crypto smokes; release GPG smoke (gpg_detach_sign_smoke).