feat: comment add starts your thread or appends to your open one (#1690) #1700
All Vouch review confidence checks passed
Residual risk 0.36 = Change Risk (0.45) × (1 − Review Confidence (0.19)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 432 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 25% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.363
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #1700"
general
weight: 0.35
claude[bot]
What
hadron comment add <node> --body "…"becomes its own command (it was an alias ofcreate): one call that leaves the caller's feedback on a node whether or not they already hold an open thread there. This is the shed-step command oftasks:trim-context-clear-and-recoverstep 1, so it has to always work.Refs #1690 (S1 of hadron-server#3493). Gate: Xylon CHECKED T2 + scoped §10 every head (6660642630); spec FIT COMPLIANT, Vera (6660453375).
Behavior (as the issue specifies)
createComment. Accepted ->started(this includes a resolved earlier thread).extensions.code=COMMENT_OPEN_THREAD_EXISTSand a non-empty stringextensions.threadIdT -> exactly onereplyToComment(T),replied. Typed code only, never message text (api.OpenThreadConflictID).threadIdmissing/empty/non-string, malformed response, transport error, 5xx — a 5xx envelope is excluded the way cli#1495 excludes it) is returned unchanged with its exit code: no reply, no retry.--body -consumes stdin once); both calls send the same bytes. SharedresolveBodykeepscreate's validation byte-identical.--quote/--anchor-revisioninto the reply body as a Markdown blockquote (composedQuote: true); on the start path they are sent ascreatesends them.--jsonerror.extensions.threadIdcarries it.started thread <id>/replied to your open thread <id>, then the comment;--json{outcome, threadId, composedQuote, comment}.comment createis unchanged (still exit 5, no reply) apart from its help dropping the alias and pointing toadd. No server change.Evidence
started/repliedline, nocomposedQuote).make lint0 issues,go test ./...all ok,make generateclean,make coverage-matrix-checkin sync,make help-inventory-checkclean (one newcomment addrow,createloses its alias).threadId, don't compose the quote, don't name the thread,threadId= reply id, drop the envelopethreadId.Limits
Fake transport only. No real-provider conflict/race proof here: that is the QA seat's bounded leg (or its reuse map) per the stamp. No server change, no release claim (rides the next tag).
Worker: Joshua (cli-engineer) <https://hadronmemory.com/app/u/hrn:worker:hadronmemory.com:hadron-dev-team:joshua>
🤖 Generated with Claude Code