Skip to content

Ikonik 1.8: Smart-Contract Target (--target solidity) + v1.8.0 - #21

Merged
thvtzy merged 11 commits into
masterfrom
feat/ikonik-171-gate-merge
Nov 26, 2026
Merged

thvtzy merged 11 commits into
masterfrom
feat/ikonik-171-gate-merge

Conversation

@thvtzy

@thvtzy thvtzy commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Summary — Ikonik 1.8: Smart-Contract Target (--target solidity) + v1.8.0

First milestone on the Ikonik rung (Phases 167–171), bringing Morphic specifications to zero-warning Solidity ^0.8.24 pure contracts backed by Z3 verification, proof-carrying bundles, and real EVM bytecode execution.

What Ships

  • Phase 167 (docs/ikonik-167-solidity-audit): Executable audit (IKONIK_18_AUDIT.md, tests/phase167_solidity_probes.rs) measuring Morphic ↔ Solidity type/ABI gaps, require: translation, negative-division & overflow boundaries, toolchain availability, and 6 Tier-1 DeFiMath exhibits; D1–D9 ratified (a) by the owner on 2026-11-26.
  • Phase 168 (feat/ikonik-168-freeze-solidity): Frozen IKONIK_18_SCOPE.md (D1a–D9a, 5-clause gate + closing line verbatim) + core Solidity emitter (src/codegen/solidity.rs, "solidity" | "sol" in codegen::generate / api::render, .sol default CLI extension):
    • Direct-ABI types (Int→int256, Bool, I8..I64, U8..U64, String→string memory, List<scalar>→<scalar>[] memory, Unit return-only).
    • Always-on runtime require(<cond>, "Precondition violated"); via dedicated constraint_to_solidity walker — hard-refuses Forall/Exists and unrenderable expressions (never emits require(true)).
    • public pure entrypoints + deduplicated internal pure transitive prelude helpers + on-demand _morphic_append_*/_morphic_clone_* memory-array helpers + keccak256(bytes(...)) string equality + explicit D8a NatSpec proof-boundary disclosure.
    • Hard CodegenError refusals on all 17 non-direct-ABI stdlib entries, unsupported types, and unsupported IR nodes.
    • WinnerReport.renders unchanged at 6 targets (D6a); zero new Cargo dependencies.
  • Phase 169 (feat/ikonik-169-contract-pcc): morphic build --contract-from <file.morph> (codegen::solidity::assemble_user_contract, native-only) sharing admit_user_specs, emitting <Module>.sol with per-function NatSpec provenance (tier, verdictBasis, battery, bundle, bundleSha256) alongside companion bundleVersion: 1 PCC bundles (<entry>.bundle.json), plus the committed 6-spec exhibit examples/contracts/defi_math.morph.
  • Phase 170 (feat/ikonik-170-evm-harness): Pinned solc@0.8.28 + @ethereumjs/evm@3.1.1 + ethers@6.13.4 Node EVM runner (tests/solidity_evm_runner.cjs, cached in scratch target/solidity-harness/). Caught and fixed a real solc@0.8.28 Error 1080 ternary literal-typing defect in src/codegen/solidity.rs. Measured across 22 contracts, 0 errors, 0 warnings, 157/157 real EVM calls, 16/16 real EVM reverts.
  • Phase 171 (feat/ikonik-171-gate-merge):
    • Fresh 5-clause 1.8 gate instrument (tests/phase171_gate.rs — PASS in full, frozen gate text unamended).
    • CI Solidity + EVM execution step wired in .github/workflows/ci.yml (Solidity compile + EVM execution (1.8)).
    • Lockstep 1.8.0 release stamp: crate + Cargo.lock (1 line), @thvtzy/morphic (77 files, 71,873 B ≤ 76,800 B), Rust facade morphic (7 files, 57,613 B), PCC bundles byte-identical (267,156 B), both WASM components rebuilt at morphic:library@1.8.0 (morphic-library.wasm 80,558 B ≤ 106,496 B; morphic-callbacks.wasm 66,011 B ≤ 90,112 B), and packages/vscode/morphic-1.8.0.vsix (324 files, 486,881 B).

Verification Evidence (Solo, 3 Frozen Configurations on Stamped 1.8.0 Tree)

  • cargo test --no-fail-fast: 1010 passed / 0 failed / 29 ignored (68 binaries)
  • cargo test --features bootstrap-codegen --no-fail-fast: 1010 passed / 0 failed / 29 ignored (68 binaries)
  • cargo test --no-default-features --no-fail-fast: 865 passed / 0 failed / 22 ignored (68 binaries)
  • cargo test --no-default-features --features wasm-playground --lib codegen: 67 passed / 0 failed / 10 ignored
  • npm publish --dry-run (@thvtzy/morphic@1.8.0) and cargo publish --dry-run (morphic v1.8.0): both exit 0 (live publishes remain owner-only).
  • Pure LF line endings verified (0 tracked files with w/crlf).

@thvtzy
thvtzy merged commit fb02782 into master Nov 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant