Skip to main content

Module types

Module types 

Source
Expand description

Object type, actor, artifact, and header primitives.

This module centralizes the low-level metadata shared across the object layer:

  • ObjectType defines every persisted object family and the conversions needed by pack encoding, loose-object style headers, JSON payloads, and internal numeric ids.
  • ActorKind and ActorRef identify who created an object.
  • ArtifactRef links an object to content stored outside the Git object database.
  • Header is the immutable metadata envelope embedded into AI objects such as Intent, Plan, or Run.

One important distinction in this module is that object types live in multiple identifier spaces:

  • Git pack header type bits support only core Git types and delta entries.
  • String/byte names are used for textual encodings and AI object persistence.
  • to_u8 / from_u8 provide a crate-local stable numeric mapping that covers every variant.

Structs§

ActorRef
Reference to the actor that created or owns an object.
ArtifactRef
Reference to an artifact stored outside the object database.
Header
Shared immutable metadata header embedded into AI objects.

Enums§

ActorKind
High-level category of the actor that created an object.
ArchivedObjectType
An archived ObjectType
ObjectType
Canonical object kind shared across Git-native and AI-native objects.
ObjectTypeResolver
The resolver for an archived ObjectType