edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching·0 forks·Rust·370.3 MiB·9b67700·Tahinli·3 days ago·4021 commits
| 1 | # Lane conventions (orchestrated run from 2026-10-15) |
| 2 | |
| 3 | `DONE.md` is the spec. Every lane serves one item in it, and its charter names the |
| 4 | edith-visible effect it buys. |
| 5 | |
| 6 | ## Setup for lane `<name>` |
| 7 | - Repo: `/home/user/Documents/Code/Rust/edith_codecs` (edith lanes: `/home/user/Documents/Code/Rust/edith`). |
| 8 | - Worktree: `git -C <repo> worktree add ~/.cache/wt/<name> -b lane/<name> main` |
| 9 | (edith: branch `lane-<name>`, worktree `~/.cache/wt/edith-<name>`). |
| 10 | - Fixtures: `scripts/link-fixtures.sh` from inside the worktree (edith_codecs only). |
| 11 | - Never commit to `main`. The orchestrator merges. |
| 12 | |
| 13 | ## Where computation runs |
| 14 | Heavy work (cargo build/test/clippy/bench/fuzz) runs on the servers through |
| 15 | `scripts/remote-run.sh <name> -- <command>` once that script exists. Before then, or if it |
| 16 | is unavailable, run locally with: |
| 17 | `CARGO_TARGET_DIR=~/.cache/tgt-<name> TMPDIR=~/.cache/tmp-<name>` (create the tmp dir; |
| 18 | never write into /tmp). Limit local builds to `-j4`. |
| 19 | - Use `--host auto` (the default). `--host a|b` never falls back and exits 75 when the slot |
| 20 | stays busy. Under auto, the local fallback is a real run: cargo-fuzz and nightly are |
| 21 | installed locally too. |
| 22 | |
| 23 | ## Rules |
| 24 | - Errors: `ec_core::Error::unsupported(what, why)` for out-of-scope input and |
| 25 | `Error::corrupt(..)` for malformed input. No `unwrap`/`expect`/`panic!` on input-dependent |
| 26 | paths. No `debug_assert` as the only guard before indexing. |
| 27 | - No source file over 5,000 lines. Put new code in new modules. |
| 28 | - `cargo clippy -p <crate> --all-targets -- -D warnings` must be clean on the crates you touch. |
| 29 | An `#[allow]` needs a one-line reason comment. |
| 30 | - Match the surrounding code's style and comment density. Pure Rust only (no C, no asm). |
| 31 | - Never delete or `#[ignore]` an existing test to make things pass. |
| 32 | |
| 33 | ## Finish |
| 34 | 1. Write `lanes/<name>.report.md`: goal, base sha, what changed, the exact verify commands |
| 35 | and their results (pass counts, exact/inexact tables), and what is left. |
| 36 | 2. Commit on `lane/<name>` as `lane/<name>: <summary>`. No Co-Authored-By trailer or any other |
| 37 | AI attribution line in commit messages (the user's rule, 2026-10-16). |
| 38 | 3. In your final message, give the branch, the commit sha, the verify commands with |
| 39 | pass/fail, and any blocker. If you could not finish, say exactly what fails. Do not |
| 40 | claim success you did not observe. |