observability: logstream-hub — the Go log-stream hub behind its follow-function seam #806
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#806
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Feature spec: #791 — control-panel observability child spec: logs (P10) (DDR 0203).
Design ticket #760; slice-map fan-in #770; wayfinder map #7.
Slice
logstream-hubofdocs/slices/observability.yaml; covers spec #791 stories 35–37.What to build
The control plane gains a log-stream hub — a component of its own process, no new port and no
new ingress surface — seamed at its follow function (the prototype's
FollowFuncshape) sothat multiplexing, ref-counting, tail, rate cap, ring and drop-oldest are all provable against a
fake follow with no containers, no units and no fleet.
The mechanics: N subscribers on one log target hold one underlying follow, ref-counted,
released when the last subscriber leaves — and a subscriber leaving never interrupts the others.
A new subscriber gets the target's tail of 200 lines immediately from the ring, then live
lines. A target producing faster than 200 lines/s is capped per target rather than flooding
every subscriber. The per-target 2000-line ring is drop-oldest, and it is what a reconnecting
or resuming client backfills from — backfill is the ring's job, not the client's, which is
why a reconnecting client need remember only its last line. A slow subscriber has lines
dropped for it rather than blocking the target or any other subscriber.
Bounds are configuration, not constants scattered through the code.
Acceptance criteria
Blocked by
bootstrap:skeleton(#23 — done, satisfied)Task manifest
Emitted by
/to-ticketsoverdocs/slices/observability.yamlin an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.swarm-claim host=matou-dev-server-01 run=10067
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #806 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope