Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2026 Changes in this version + func ComputeHash(prev [32]byte, e Envelope) [32]byte + func Marshal(v any) ([]byte, error) + func Unmarshal(data []byte, v any) error + type ActionRequestedPayload struct + ActionID string + ActionPayload json.RawMessage + ActionType string + type BudgetChargedPayload struct + ActionType string + Iterations int + Tokens int64 + USD float64 + WallClockMs int64 + type CompactionAppliedPayload struct + DroppedFrom uint64 + DroppedTo uint64 + PlanJSON json.RawMessage + Strategy string + SummaryRef string + type ConvergenceWarningPayload struct + Count int + Detector string + Reason string + type Envelope struct + Hash [32]byte + Kind Kind + LoopID LoopID + Payload []byte + Seq uint64 + Time time.Time + type ForkedFromPayload struct + AtSeq uint64 + SourceLoopID LoopID + type HumanRequestedPayload struct + ActionID string + Prompt string + type HumanRespondedPayload struct + ActionID string + Response string + type InterruptedPayload struct + Reason string + type IterationStartedPayload struct + Iteration int + type Kind string + const KindActionRequested + const KindBudgetCharged + const KindCompactionApplied + const KindConvergenceWarning + const KindForkedFrom + const KindHumanRequested + const KindHumanResponded + const KindInterrupted + const KindIterationStarted + const KindLoopFinished + const KindLoopStarted + const KindModelCalled + const KindPolicyDecided + const KindResumed + const KindSnapshotTaken + const KindSubAgentCompleted + const KindSubAgentSpawned + const KindToolCalled + type LoopFinishedPayload struct + Error string + OutcomeKind string + Result json.RawMessage + TotalSpend json.RawMessage + type LoopID string + type LoopStartedPayload struct + ConfigHash string + Depth int + InitialState json.RawMessage + Name string + ParentID LoopID + Seed int64 + type ModelCalledPayload struct + ActionID string + DurationMs int64 + Model string + Provider string + Request json.RawMessage + Response json.RawMessage + Usage ModelUsage + type ModelUsage struct + CostUSD float64 + In int + Out int + type PolicyDecidedPayload struct + ActionID string + Capability string + Decision string + Reason string + Tool string + type ResumedPayload struct + type Snapshot struct + LoopID LoopID + Seq uint64 + State []byte + StateHash [32]byte + TakenAt time.Time + type SnapshotTakenPayload struct + Seq uint64 + StateHash string + type StreamChunk struct + Delta json.RawMessage + Usage *ModelUsage + type SubAgentCompletedPayload struct + ChildLoopID string + ChildSpend json.RawMessage + Definition string + Error string + OutcomeKind string + RespJSON json.RawMessage + type SubAgentSpawnedPayload struct + ChildLoopID string + Definition string + Request json.RawMessage + type ToolCalledPayload struct + ActionID string + Args json.RawMessage + DurationMs int64 + IdempotencyKey string + IsError bool + Result json.RawMessage + Tool string