Expand description
Domain policy over a plan document: the decisions, without the I/O.
Everything here is pure and consumes only schema. It exists because the
same decisions were being made independently in crates/tui and
crates/stack — and had already drifted (ADR 0020).
Structs§
- Class
Members - One shape class, resolved: which hunk stands for it and which it holds.
- Dependency
- One resolved
depends_onedge. - Enumeration
- The three git outputs enumeration is built from.
- File
View - Group
View - HunkId
- A canonical hunk, in memory.
- Line
Counts - Line totals for a hunk, or any aggregation of hunks.
- Plan
Index - A plan document’s id lookups, built and validated once.
- Reading
Split - One group split into what to read and what to defer.
- Review
Source - A resolved review source: where the diff comes from, and what the review is filed under.
- Review
View - The projection. Owned, not borrowing the document, so a session can hold both without becoming self-referential.
Enums§
- Deferral
- Why the deferred half is deferred. A renderer’s fold line or commit subject depends on this and on nothing else.
- Fold
- Whether the deferrable half of a group is currently hidden.
- Range
Spec - A revision-range spec, parsed. Pure — resolving
MergeBaseneeds a repository, but deciding what the user asked for does not. - Staged
- How one file should be staged.
Functions§
- alias_
path - A redirect: this id’s progress lives under the id named inside.
- all_
reviewed - Whether a set of hunks — a group’s, a file’s, a directory’s — reads as done.
- artefact_
dir - Where the pre-group document is left for the model to read, given the git common dir.
- attr_
marks_ generated - Does a
check-attrvalue declare a path generated? - build_
view - Build the canonical view.
- cache_
dir - Everything regenerable, in ONE subtree.
- class_
is_ generated - Whether a class is generated content: every member hunk lives in a file the classification pass marked generated.
- classify
- Apply classification hints and compute the mechanical partition.
- cumulative_
state - The stack renderer’s rule: the file’s state after
appliedof its hunks. - effort_
name - The tier’s domain name, identical to its wire value.
- final_
state - The core tree builder’s rule: the file’s final state, every hunk applied.
- generated_
files - The paths
docmarks generated, prepared once forclass_is_generated. - grouping_
cache_ dir - The grouping cache directory for a repo, given its git common dir.
- identity_
path - What a review was opened as: the base sha and the head spec as typed.
- missing_
mode - The one wording for “this file records no mode”, shared by every rule above
and by the renderers. It was copied character for character into
crates/stack, where a reader could not tell it was the same failure. - parse_
range - Parse
a..b,a...b, or two separate revs. - plan_
hash - A plan document’s content hash — its immutable identity, and what findings record so re-anchoring knows which document they were written against.
- reading_
split - Split a group into its read and deferred halves.
- review_
dir - One review’s sidecar directory, given the git common dir.
- review_
id - A review’s identity: the resolved base sha plus the head spec AS TYPED.
- review_
id_ named - A review the reader named. The name IS the identity, so neither endpoint is in the key: rebase the base or the head and the session survives, the way a pull request survives a force-push because it is an object rather than a range.
- review_
id_ remote - A review of a pull request or merge request (ADR 0029). The request is the identity, the way a name is: no endpoint is in the key, so a force-push reopens the same review. Its own tag byte keeps it out of both other spaces.
- reviews_
dir - Where every review is filed. The directory is the catalogue: there is no list file beside it that could disagree with what is on disk.
- role_
name - The ordering role’s domain name, identical to its wire value.
- short_
oid - An oid abbreviated for display.
- zero_
hunk_ state - A file with NO hunks: what it contributes to a tree.