Expand description
The change workflow (SPECIFICATION.md Phase 1; brief §42).
gemel change begin opens a pending change (workspace metadata); gemel change finish computes the resulting state from the working tree,
synthesizes operations from the delta, records claims/evidence/residuals,
creates the Change, and advances the Trajectory — all under one journaled
ref transaction. Human names (I<n>, T<n>, C<n>, S<n>) are
registered in the ref namespace; identities remain content-addressed.
Structs§
- Begin
Options - Options for
change begin. - Begin
Outcome - The outcome of
change begin. - Checkpoint
Options - Options for
gemel checkpoint. - Checkpoint
Outcome - The outcome of
gemel checkpoint. - Claim
Spec - A basic claim specification for
change finish. - Close
Trajectory Options - Options for
gemel trajectory close. - Close
Trajectory Outcome - The outcome of
gemel trajectory close. - Evidence
Spec - A basic evidence specification for
change finish. - Finish
Options - Options for
change finish. - Finish
Outcome - The outcome of
change finish. - Residual
Spec - A basic residual specification for
change finish. - Resolve
Residual Options - Options for
gemel residual resolve. - Resolve
Residual Outcome - The outcome of
gemel residual resolve.
Constants§
- DEFAULT_
WORKSPACE - The default workspace id (Phase 1 has one workspace per repository).
- PENDING_
SCHEMA - The pending-change record schema.
Functions§
- begin_
change - Opens a pending change in a (named) workspace.
- close_
trajectory - Publishes a new trajectory version with an outcome and termination reason
(append-chained; the alternative remains canonical). The full change
sequence stays the concatenation of
added_changesacross the chain. - create_
checkpoint - Creates a checkpoint: a continuation boundary assembled from structured
repository state (AGENT_PROTOCOL.md §9.2). Object family
checkpoint(0x14); fields in strict ascending tag order. - finish_
change - Finishes the pending change (SPECIFICATION.md Phase 1 demo: State S0 → Intent I1 → Trajectory T1 → Change C1 → State S1).
- name_
in_ namespace - The name registered for
gidin a namespace, if any. - next_
name - Advances the named counter for
kindand returns the next human name (I<n>/T<n>/C<n>/S<n>/K<n>/Re<n>). Callers hold the writer lock. - read_
pending - The pending change record, if any (default workspace).
- read_
pending_ named - The pending change record of a named workspace, if any.
- resolve_
residual - Publishes a new residual version with a disposition event. The original version stays referenced by its change; the derived disposition comes from the latest chain version (OBJECT_MODEL.md §6.12, §8.3).
- set_
workspace_ named_ state - Updates a named workspace’s materialized state (caller holds the writer lock).
- set_
workspace_ state - Updates the default workspace’s materialized state (caller holds the writer lock).
- workspace_
dir - The workspace metadata directory.
- workspace_
named_ dir - The metadata directory of a named workspace.
- workspace_
named_ state - The state a named workspace is currently materialized from, if any.
- workspace_
state - The state the default workspace is currently materialized from, if any.