mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
Bootstrap the Rust port of Headroom. Additive only — no existing Python code modified. Ships the workshop, not the widgets. Layout Cargo.toml (workspace) + rust-toolchain.toml crates/headroom-core — transform library, stub only crates/headroom-proxy — axum binary, /healthz only crates/headroom-py — PyO3 cdylib, exposes headroom._core.hello() crates/headroom-parity — Rust-vs-Python oracle harness + parity-run CLI Tooling Makefile: test, test-parity, bench, build-proxy, build-wheel, fmt, lint .github/workflows/rust.yml: test, wheels (linux/mac), audit, parity-nightly deny.toml for cargo-deny Parity corpus tests/parity/recorder.py + scripts/record_fixtures.py 125 recorded fixtures across 5 leaf transforms (ccr, tokenizer, log_compressor, diff_compressor, cache_aligner) Docs RUST_DEV.md — developer setup and workspace reference docs/spec/022-rust-migration.md — migration plan and stage breakdown .gitignore: whitelist scripts/record_fixtures.py; ignore target/ Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
26 lines
1.3 KiB
JSON
26 lines
1.3 KiB
JSON
{
|
|
"config": {
|
|
"always_keep_additions": true,
|
|
"always_keep_deletions": true,
|
|
"enable_ccr": true,
|
|
"max_context_lines": 2,
|
|
"max_files": 20,
|
|
"max_hunks_per_file": 10,
|
|
"min_lines_for_ccr": 50
|
|
},
|
|
"input": "diff --git a/src/main.rs b/src/main.rs\n--- a/src/main.rs\n+++ b/src/main.rs\n@@ -10,7 +10,7 @@\n unchanged_line_0\n unchanged_line_1\n unchanged_line_2\n unchanged_line_3\n unchanged_line_4\n- let x = 1;\n+ let x = 2;\n unchanged_after_0\n unchanged_after_1\n unchanged_after_2\n unchanged_after_3\n unchanged_after_4\n# variant 3",
|
|
"input_sha256": "b605bd89e234cbff8b72d508c791f9ba0d263e929c3f0ad1263431486a8080f0",
|
|
"output": {
|
|
"additions": 0,
|
|
"cache_key": null,
|
|
"compressed": "diff --git a/src/main.rs b/src/main.rs\n--- a/src/main.rs\n+++ b/src/main.rs\n@@ -10,7 +10,7 @@\n unchanged_line_0\n unchanged_line_1\n unchanged_line_2\n unchanged_line_3\n unchanged_line_4\n- let x = 1;\n+ let x = 2;\n unchanged_after_0\n unchanged_after_1\n unchanged_after_2\n unchanged_after_3\n unchanged_after_4\n# variant 3",
|
|
"compressed_line_count": 17,
|
|
"deletions": 0,
|
|
"files_affected": 0,
|
|
"hunks_kept": 0,
|
|
"hunks_removed": 0,
|
|
"original_line_count": 17
|
|
},
|
|
"recorded_at": "2026-04-23T23:51:37.349729+00:00",
|
|
"transform": "diff_compressor"
|
|
}
|