Files
archie/internal/eventbus/doc.go
T
sam 3c338a9722 refactor: strip doc and issue narration from code comments
Remove PRD/doc paths, bead IDs, phase notes and deleted-test references
from comments; drop test-only hooks left by the test deletion. Includes
in-progress archied bootstrap, gateway and query changes.
2026-10-03 21:47:46 +10:00

21 lines
1.0 KiB
Go

// Package eventbus is the broker-neutral messaging contract.
//
// It defines only the messaging behaviour Archie requires: publication,
// subscription, request/reply, and delivery outcomes. It names no broker.
// NATS subjects, JetStream configuration, consumer groups, acknowledgement
// mechanics, reconnection and serialization live in
// internal/infrastructure/eventbus/nats, which implements these interfaces.
//
// # The bus does not own message meaning
//
// This package deliberately transports opaque payloads. Message schemas
// belong to the domain that defines them -- work intake owns its task
// envelope, agent execution owns its request and response types -- and each
// domain owns the subjects it addresses. A previous version of the NATS
// package exported a TaskEnvelope type and a PublishTask method, which made
// the transport responsible for knowing what a unit of work was.
//
// Subjects are plain strings here. Constraining their syntax would encode one
// broker's addressing rules into the contract.
package eventbus