Last modified: 2026-08-30 12:03 EDT
Batchalign is the only product built from this repository. CHAT parsing, validation, typed models, transforms, and the tree-sitter grammar are consumed from the version-pinned TalkBank Chatter dependency.
Use Bazel through the repository recipes:
just batchalign build debug
just batchalign test debug
just batchalign pytest
just batchalign cli -- --helpjust batchalign cli is the authoritative CLI integration path. Do not replace
it with an ad hoc Python or maturin invocation. Local Bazel work defaults to one
job so Rust compilation and ML model execution do not contend for memory.
- Types document stable domain concepts; avoid primitive and tuple-packed seams.
- Keep modules focused and public APIs narrow. Methods should make ownership and the intended action obvious.
- Do not introduce one-use helper functions, god functions, or walls of unrelated functions, methods, or classes.
- Similar operations use parallel semantic names.
- Production failures return typed errors; do not use panics as control flow.
- Construct and mutate CHAT through the typed Chatter APIs. Do not assemble
%mor,%gra, or other CHAT tiers with string concatenation. - Backend submission must remain bounded. Model-bearing work is grouped by language so one cached Stanza pipeline serves compatible requests.
- Work taking more than about one second must report progress through the Batchalign progress protocol.
- Documentation edits update their timestamp using the actual system time.
Run focused tests while iterating, then the Batchalign Bazel test targets. Exercise corpus fixtures in small chunks and clear the Batchalign task cache when comparing behavior across implementations. Never overlap a Rust/Bazel compile with a Stanza runtime test on a memory-constrained host.