Expand description
Core object primitives extracted from the monolith.
Structs§
- Action
- An action records an operation between states.
- Action
Id - Unique identifier for an action (derived from content).
- Agent
- AI agent identity that performed changes on behalf of a principal.
- Annotation
- A stable logical annotation with revision history.
- Annotation
Revision - A single revision of a logical annotation.
- Attribution
- Attribution for a change (who did it).
- Blob
- A blob stores raw file contents.
- Branch
Created V1 - Branch creation operation body.
- Change
Id - A stable change identifier (16 bytes / 128 bits).
- Conflict
Side - Conflict
Symbol - Content
Hash - A BLAKE3 content hash (32 bytes / 256 bits).
- Context
Blob - A collection of logical annotations for a single target.
- Cursor
Moved V1 - Cursor movement operation body.
- Discussion
- Discussion
Turn - Discussions
Blob - File
Change - A single file change with path and kind.
- File
Change Set - A collection of file changes with convenience accessors.
- File
Provenance - Line
Span - Marker
Name - Name of a heddle marker (tag-like construct).
- Native
Tool Call RefV1 - Native harness tool-call identity.
- Operation
Id - Origin
- Origin
Set - Principal
- Human identity accountable for changes.
- Producer
Id - Identifies the producer that fired this signal. The
versionlets budgeting and signal-health surfaces age out signals from old producer versions without re-running computation — important when we tune a producer’s heuristics and want to compare apples to apples. - Redaction
- A redaction declaration on a single blob in a single state.
- Redactions
Blob - On-disk blob containing all redactions for a single blob hash. One file
per redacted blob, encoded with
rmp-serde— matches theReviewSignaturesBlobpattern. - Review
Signature - Review
Signatures Blob - Risk
Signal - Risk
Signal Blob - Top-level encoded blob. Stored under a [
ContentHash] referenced from [State::risk_signals]. A blob withformat_version > FORMAT_VERSIONis rejected; older versions are read with the missing-field defaults. - Scope
- Checkout/lane scope identifier for scoped operations.
- Session
- Session
Segment - Signal
Anchor - Where in the change a signal fires. Symbol-level is preferred — symbols are durable across renames; line ranges are computed at fire time and drift as code is reformatted.
- State
- A state is an immutable snapshot with rich metadata.
- State
Signature - Signature information for a state.
- State
Visibility - A visibility-tier declaration on a single state.
- State
Visibility Blob - On-disk blob containing all visibility records for a single state. One
file per state, encoded with
rmp-serde— mirrors theRedactionsBlobsidecar pattern. - Structured
Conflict - Symbol
Anchor - Durable symbol-level anchor: a file path plus a symbol name. No line range — line numbers move under reformatting; symbols do not.
- Thread
Name - Name of a heddle thread (branch-like construct).
- Timeline
Branch Id - Timeline
Operation Envelope - A v1 timeline operation envelope.
- Timeline
Operation Id - Content-addressed identifier for a timeline operation envelope.
- Timeline
Step Id - Timeline
Tool Payload Metadata - Scrubbed metadata for native tool payloads.
- Tool
Call Finished V1 - Tool-call finish operation body.
- Tool
Call Started V1 - Tool-call start operation body.
- Tree
- Tree
Entry - Verification
- Verification information for a state.
Enums§
- Annotation
Kind - The canonical annotation taxonomy the product surfaces.
- Annotation
Scope - What part of a file an annotation targets.
- Annotation
Status - Change
IdParse Error - Error parsing a ChangeId.
- Change
Importance - How important is this change for review.
- Conflict
Error - Conflict
Resolution - Context
Error - Context
Target - A typed target for context entries.
- Diff
Kind - Kind of file change.
- Discussion
Error - Discussion
Resolution - Entry
Type - File
Mode - Modification
Kind - What kind of modification was made to a file.
- Operation
- Type of operation performed.
- Operation
IdParse Error - Provenance
Error - Redaction
Error - Errors produced while encoding/decoding redactions.
- Review
Kind - Reviewer roles. New variants append at the tail; the wire format stays
backwards compatible because
serdeemits the snake-case discriminant. - Review
Scope - Reviewer signed off on the whole change, or on a specific list of symbols.
- Review
Signature Error - Risk
Signal Error - Risk
Signal Kind - Why a signal fired. Variants are wire-stable; new variants are appended.
- Semantic
Change - A semantic change description.
- Signature
Status - Signature verification result.
- State
Visibility Error - Errors produced while encoding/decoding/validating state visibility.
- Status
- Lifecycle status of a state.
- Timeline
Branch Reason - Why a timeline branch was created.
- Timeline
Codec Error - Timeline operation codec error.
- Timeline
Cursor Move Reason - Why the timeline cursor moved.
- Timeline
Label - Safety labels attached to timeline operations.
- Timeline
Operation Body V1 - V1 timeline operation body variants.
- Timeline
Operation IdParse Error - Error parsing a timeline operation id.
- Timeline
Operation Kind - Explicit timeline operation kind stored in every operation envelope.
- Timeline
Tool Call Status - Tool-call terminal status.
- Tree
Error - Visibility
Tier - Content-side visibility tier. Shared by annotations, discussions, and states so the per-commit visibility tiers and annotation/discussion visibility draw from one vocabulary rather than parallel enums.
Constants§
- MAX_
REASON_ LEN - Maximum length of
RiskSignal::reason, in bytes. - REDACTION_
SIGNING_ PAYLOAD_ VERSION_ TAG - Stable byte prefix the signing payload begins with. Bumping this versions the payload format itself; old signatures with the old prefix continue to verify exactly as they did when written.
- STATE_
VISIBILITY_ SIGNING_ PAYLOAD_ VERSION_ TAG - Stable byte prefix the signing payload begins with. Bumping this versions the payload format itself; old signatures with the old prefix continue to verify exactly as they did when written.
- TIMELINE_
OPERATION_ SCHEMA_ VERSION - Current timeline operation schema version.
Functions§
- diff_
trees - Collect all file changes between two trees.
- diff_
trees_ visit - Diff two trees with internal iteration, invoking
visitorfor eachFileChangein traversal order. - generate_
session_ id - parse_
commit_ extension_ headers - Parse the extension headers from a raw git commit object’s content bytes
(the bytes
git cat-file commit <sha>prints — i.e. gix’sCommit::data), in their exact on-the-wire order, ready to store inState::extra_headers. - signing_
payload - Build the deterministic byte payload that a
ReviewSignatureis computed over. Re-implementing this in another language (TypeScript, Python) must produce byte-identical output for verification to round-trip. - validate_
tree_ entry_ name
Type Aliases§
- Discussion
Id - Stable opaque identifier for a discussion. Generated server-side at open
time. We use a
Stringrather thanChangeIdto leave room for whatever id scheme the discussion service ends up choosing (likely a UUID).