Documentation
¶
Overview ¶
Package sessionmessage owns durable follow-up delivery to a completed session-move successor. Couriers transport canonical bytes; this package alone admits the inbox, verifies the live target, and attempts one paste.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrMessagePasteAmbiguous = errors.New("session message paste outcome is ambiguous")
ErrMessagePasteAmbiguous means a durable intent exists but no durable pasted receipt does. WB will not automatically paste the message again.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
Message sessionmove.Message `json:"message"`
Digest sessionmove.Digest `json:"message_digest"`
Receipt sessionmove.MessageReceipt `json:"receipt"`
Replay bool `json:"replay"`
}
func Receive ¶
Receive admits exact canonical bytes before inspecting target state. The typed canonical JSON is intentionally the agent-facing prompt contract: its kind and reply_to fields make even an empty-body request_handoff actionable. Once Receive publishes a paste intent it makes at most one automatic paste attempt.
type WorkLogRecord ¶
type WorkLogRecord struct {
ProjectsRoot string
Request sessionmove.Request
RequestDigest sessionmove.Digest
Receipt sessionmove.Receipt
Message sessionmove.Message
Record sessionmove.MessageRecord
}
WorkLogRecord is the exact target-side evidence passed to the Work Log adapter. Production omits Message.Body from the event it writes.