Classify every comment as tautology, stale, excuse or decision record. Tautology/stale/excuse comments are deleted (excuses filed as issues #196-#236), decisions moved to docs/adr/0001-0034. - scripts/lint-comments.sh + .comment-baseline: per-file comment count may only go down; wired into tests/all.sh - .claude/skills/delete-comment: repeatable audit workflow - cargo fmt applied to touched crates Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
18 lines
840 B
Markdown
18 lines
840 B
Markdown
# Herdr state reporting is lossy, ordered and non-blocking
|
|
|
|
Status: accepted
|
|
|
|
## Context
|
|
hx reports idle/working/blocked, a resume command and release to the herdr that owns the pane. Reporting must never slow the agent.
|
|
|
|
## Decision
|
|
- Reports go through one worker that sends only the latest state; intermediate states are dropped and the agent never blocks.
|
|
- The sequence number is wall-clock millis bumped within the process, so it is strictly increasing across processes.
|
|
- The first report claims the pane; `report` marks the state changed again on every update.
|
|
- Resume args must not contain apostrophes or control characters; herdr rejects them.
|
|
|
|
## Consequences
|
|
Herdr may miss transient states, but ordering holds across restarts.
|
|
|
|
Code: crates/hx-core/src/herdr.rs (module, resume arg sanitising, sequence counter, worker start)
|