Expand description
Lattice - A Rust-native CLI for stacked branches and PRs
Lattice is a single-binary tool that mirrors Graphite CLI semantics for stacked development: creating, navigating, restacking, submitting, syncing, and merging stacked branches and pull requests.
§Architecture
The codebase follows a strict layered architecture:
cli- Command-line interface layer (parses args, delegates to engine)engine- Orchestrates Scan → Gate → Plan → Execute → Verify lifecyclecore- Domain types, schemas, verification, and operationsgit- Single interface for all Git operationsforge- Abstraction for remote forges (GitHub v1)auth- GitHub App OAuth authenticationsecrets- Secret storage abstractiondoctor- Explicit repair frameworkui- User interaction utilities
§Correctness Invariants
Lattice maintains the following invariants:
- Commands execute only against validated execution models
- All mutations flow through a single transactional executor
- Repository state is never silently corrupted
- Repairs are explicit and require user confirmation