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>
605 B
605 B
RPC concurrency and failing loud on session storage
Status: accepted
Context
A prompt holds the agent lock for its whole run. Separately, a silent fallback for a misconfigured sessions_dir would put sessions outside the cloud folder.
Decision
RPC abort and complete are handled without taking the agent lock so they work while a prompt runs. An unusable sessions dir fails loudly instead of falling back.
Consequences
Abort stays responsive; misconfiguration surfaces at startup.
Code: crates/hx-cli/src/rpc.rs (request dispatch), crates/hx-cli/src/main.rs (sessions dir resolution)