Skip to main content

Module types

Module types 

Source
Expand description

Core types for the TaskRun system.

These mirror the data model in .yah/docs/working/yah-task-runs.md. Intentionally kept free of I/O — the store layer owns persistence.

The types TaskRunId, Level, EventSource, ChunkRef, Event, Diagnostic, Initiator, and RunStatus live in crates/yah/observation/ and are re-exported here for backward compatibility.

Structs§

BeholderStatus
Opaque string surfaced on TaskRunMeta.beholder_status.
ChunkRef
Back-pointer from an event into the raw byte stream.
Diagnostic
Normalized diagnostic shape — produced by beholders and shims where it makes sense. Agents query task.diagnostics rather than parsing raw events.
Event
A structured event row — written by beholders (Tier 1.5) or shims (Tier 2).
ForgeId
Stable identity for a forge run (UUID), shared across all three forge species (local, remote, integration). Stable across yah restarts.
KeepRange
OutputChunk
SeqRange
Inclusive range over chunk seq numbers within a single run.
TaskRunId
TaskRunMeta
Triage
Pruner output for a run: a list of verbatim chunk ranges + a human-facing synopsis.

Enums§

EventScope
The scope an event row belongs to — stored as (scope_kind, scope_id) in scryer’s events.db so the index generalizes across all species.
EventSource
Initiator
Who or what initiated a run.
Level
RunStatus
Terminal + in-flight status of a run.
Stream

Constants§

RESERVED_FIELD_PATHS
Field paths in Event.fields that have defined semantics.