Skip to content

Code Cleaner v1.3.0

Choose a tag to compare

@ZodiacDog ZodiacDog released this 04 Dec 22:41
· 35 commits to main since this release
84b3e29

Code Cleaner 1.3.0 adds SCRAWL as the 11th language. SCRAWL (Structured Compressed Runtime for Agent-to-Agent Workload Language) was created by M. L. McKnight / ML Innovations Research Lab to combat latency: agents send compact binary frames instead of JSON and run them on a register VM. Code Cleaner now checks SCRAWL source in its readable ROSETTA text form.

Install

pip install "git+https://github.com/ZodiacDog/Code-Cleaner@v1.3.0"                    # core, no dependencies
pip install "code-cleaner[all] @ git+https://github.com/ZodiacDog/Code-Cleaner@v1.3.0"  # + tree-sitter, esprima, javalang

GitHub Action: uses: ZodiacDog/Code-Cleaner@v1.3.0 · pre-commit: rev: v1.3.0. Not on PyPI.

What's new

  • SCRAWL language support (.rosetta and .scrawl files, --language scrawl): 38 scrawl-* rules across the five tiers. They check what the ROSETTA v1.1 compiler accepts and what the SCRAWL v1.2 VM actually runs: dropped or rejected lines, register banks and bounds, opcodes that trap (only 39 of 84 run), branch targets, wire-byte waste, identity verification before consensus.
  • The SCRAWL Rosetta Stone (docs/languages/scrawl/ROSETTA_STONE.md): all 84 opcodes as ROSETTA text, mnemonic and SYNAPSE bytes, with a "How to read this" guide, and the Darmok form (SCRAWL Idioms 1.0 phrases lined up with their LEX_CALL bytes and full instructions). Byte strings were produced by the SCRAWL v1.2 Rust encoder.
  • Readable canonical forms (decided by ML Innovations, December 4, 2026; docs/languages/scrawl/DECISIONS.md): consensus.vote(proposal=1, agent=0, vote=APPROVE) and lex.call("Heartbeat at Cafe"). Code Cleaner reads them; the ROSETTA compiler in the SCRAWL repository does not yet and needs updating to match. The older positional vote form is still read and flagged.
  • docs/languages/scrawl.md (the language, its purpose, measured wire sizes) and SCRAWL example programs in examples/scrawl/.
  • Code-Cleaner-SCRAWL: a design-stage project for a Code Cleaner whose source is written in SCRAWL: https://github.com/ZodiacDog/Code-Cleaner-SCRAWL. Plans only; nothing in it runs yet.

Non-SCRAWL analysis is unchanged.

Verified for this release

208 unit tests pass (13 skipped locally without optional dependencies), 11/11 language smoke tests, 247/247 stress tests and the self-analysis gate on Python 3.13 locally, and CI on Python 3.10-3.13 (bare and [all]) is green on the release commit.

Known limitations

SCRAWL support checks ROSETTA/.scrawl text only (not SYNAPSE binary frames or host-API instruction lists) and follows the ROSETTA v1.1 compiler and SCRAWL v1.2 VM; the ROSETTA compiler is not published, so its behavior was read from a local copy. Taint tracking stays inside one function (#1); no TypeScript yet (#4); no Java taint tracking (#6).