GenesisCode is an AI-first language/runtime project focused on deterministic evaluation, sealed error/effect boundaries, capability-gated host effects, and reproducible execution evidence.
The workspace builds a CLI binary named genesis.
- Pure, deterministic kernel evaluator (
Gλstyle) - Unforgeable
UNHANDLED/EFFECT/ERRORprotocol values via seals - Deny-by-default effect runner with deterministic logs and replay checks
- Package/obligation/evidence workflows designed for agent-driven iteration
- Strict hardening gates (panic guards, capability conformance, replay integrity)
crates/: Rust workspace crates (kernel, CLI, effects, obligations, patches, etc.)prelude/: Prelude modules and language surface helpersselfhost/: Selfhost artifact/toolchain materialdocs/: Specs, handoff, policy, and status docsscripts/: test/health/profile gates and CI-style contract checks
Build everything:
cargo build --workspaceRun the CLI:
cargo run -p gc_cli -- --helpFormat CoreForm:
cargo run -p gc_cli -- fmt path/to/file.gc
cargo run -p gc_cli -- fmt --check path/to/file.gcEvaluate pure code:
cargo run -p gc_cli -- eval path/to/file.gcRun effects with capability policy and deterministic log:
cargo run -p gc_cli -- run path/to/file.gc --caps caps.toml --log out.gclog
cargo run -p gc_cli -- replay path/to/file.gc --log out.gclogPackage/testing flow:
cargo run -p gc_cli -- test --pkg path/to/package.toml --caps path/to/caps.toml
cargo run -p gc_cli -- pack --pkg path/to/package.tomlApply semantic patch:
cargo run -p gc_cli -- apply-patch path/to/change.gcpatch --pkg path/to/package.toml --caps path/to/caps.tomlFast changed-aware loop:
bash scripts/test_changed_fast.shAlias / broader loop:
bash scripts/test_fast.sh
bash scripts/test_fast.sh --fullStrict profile used for release-quality agent readiness:
bash scripts/check_upgrade_plan_health.sh --profile prepush-standard- Docs index:
docs/INDEX.md - Primary design/paper:
docs/PAPER_v0.2.md - Technical handoff:
docs/TECH_HANDOFF.md - Seals/dispatch/replay spec:
docs/spec/SEALS_DISPATCH_REPLAY.md - Patch schema spec:
docs/spec/PATCH_SCHEMA.md - Capability surface matrix:
feature_matrix.md
Dual licensed under either:
- Apache-2.0 (
LICENSE-APACHE) - MIT (
LICENSE-MIT)
See LICENSE for the dual-license notice.