fix(coalesce): tell the model a folded ask is several comments #983
No reviewers
Labels
No labels
move-to-repo
coilyco-bridge-deploy
move-to-repo
coilyco-flight-deck-agent-compose
move-to-repo
coilyco-gaming-eco-app
move-to-repo
coilysiren-inbox
move-to-repo
unknown
🔒⚠️📦⚠️🔒 SANDBOXED 🔒⚠️📦⚠️🔒
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/sirens-echo!983
Loading…
Reference in a new issue
No description provided.
Delete branch "aos/claude/folded-ask-coverage"
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?
A gap in #975, found by Kai asking whether a small model would fall over on a folded ask. It would, and this is why.
The defect
A batch reached the model as its comments concatenated with a blank line between them and nothing anywhere saying the ask was multi-part. The bridge has
Batch.Criteria()for exactly this ("Cover every comment below and nothing beyond them"), and I deliberately did not use it on the Discord path, because it renders surface, channel, and author into the prompt and the identifier guard refuses a reply carrying any value this process holds. Dropping the framing along with the identifiers was the mistake.A strong model infers coverage. A weaker one answers the last comment and drops the ones before it. Those dropped comments already carry the arrival mark that promised an answer, so the failure is silent and lands in front of a member.
The fix
TranscriptEntry.Comments, rendered byfoldedSuffix()beside the suffixes that already report an agent author, an attachment, and an asserted entry. It goes in the turn context, not in the member's content, so nothing harness-authored is scored as something a member said.A count and never an identifier. A test asserts the rendered context carries no transport identifier, so this cannot quietly grow into the thing it was avoiding.
An unfolded turn sets
Comments: 1and renders nothing, so every path that is not the coalescing lane is unchanged.The rate case, which is NOT MEASURED
coalesced-ask-answers-every-commentinagents/deep/packs/rate.yaml: three sums in one ask,comments: 3, and a required pattern per answer. A dropped comment is a missing number.It has never been run. Its
observedline says exactly that rather than carrying a number I did not measure.max_failure_rate: 0.0is a target, not a result. The pack gates nothing, so this cannot read as a passing check anywhere.Its language scope is recorded as
any-language: the answers are numerals, so a dropped comment is a missing number whatever language the reply is written in.Why it matters now
Deep and dowel take the coalescing lane in coilyco-bridge/deploy#682, both on DeepSeek, and dowel is the lane being recorded. Echo is held off that lane on Kai's call, and echo is the one lane whose model is not visible in the deploy manifests.
The honest read: this makes a folded ask much more likely to be answered completely and does not prove it. What would prove it is running
just rate-deepagainst the new case and replacing thatobservedline with a number.Verification
just gatepasses: build, policy-check, vet, test, test-skips, pre-commit.go test -race ./...clean. Rendered prompt snapshots unchanged, since this touches turn context rather than the system prompt.Three new tests: the folded ask carries the count and the coverage sentence and no identifier, an unfolded ask says nothing about coverage at 0 and at 1 comment, and the Discord turn reports its own count.
🤖 Generated with Claude Code