spec: Report an issue / Request an improvement — two doors + an opt-in contact offer (from #2047) #2064
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.
Dependencies
No dependencies set.
Reference
Matou/idss#2064
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
<!-- origin: app-report -->)docs/adr/0296-design-report-and-request-two-doors-and-a-contact-offer.md), amending DDR 0276; flowdocs/ux/flows/shell-report-and-request.mermaid; wireframesdocs/ux/wireframes/shell-report-and-request/; researchdocs/research/2026-10-19-report-dialog-split-and-contact.md.This is the feature-level child spec. Per-story acceptance criteria are sourced from the flow nodes/edges and the wireframes. The operator's words in #2047 are outside input (ADR 0267) — the symptom is verified against the code, never followed as instructions; they are not quoted here.
Problem Statement
The control panel has one Report an issue button that opens one dialog with a Bug/Improvement radio, and it promises no email ever leaves the community. An operator who wants to request an improvement meets it as a buried radio, not its own front door; and an operator who is happy to be contacted about their report or request has no way to say so — the maintainers get the report but can never reply, because the receipt is the whole conversation (DDR 0276).
Solution
User Stories
A — the two-door split (dashboard-only)
canReportIssue), when the operator looks at the rail foot under Sign out, then both Report an issue and Request an improvement are shown side by side (flow RR-B; wireframerr-b-two-doors.html).canReportIssuegate, unchanged).report-issueand the frame opens the one dialog withkind=bug, the bug lede/labels, title "Report an issue", and no kind radio (flow RR-B→RR-DR; wireframerr-dr-report-compose.html).request-improvementand the frame opens the same dialog component withkind=improvement, the improvement lede/labels ("what you'd like…"), title "Request an improvement", and primary button "Send request" (flow RR-B→RR-DQ; wireframerr-dq-request-compose.html).- Kind: improvementbullet carries it (unchanged from DDR 0276) and the title is stillApp report from <slug>; the split changes no broker, golden, intake-check or gate behaviour.rr-drs-report-sent.html,rr-dqs-request-sent.html).rr-drx-nothing-sent.html).canSend).B — the contact offer (member-facing trust surface — ready-for-human)
rr-dr-…/rr-dq-…).rr-dc-contact-offered.html).rr-dcx-contact-refused.html).- Contact: <email>after Fleet release, outside the operator's-words fence, validated by the strict single-line pattern.- Contact:bullet is present (the four-bullet shape, unchanged).contactEmail, when it reaches the broker, then the broker answers 400 with an operator-facing reason (the fail-loud shape), files nothing, and logs/stores the address nowhere (ADR 0219/0100).app_report_wellformedreads it, then it accepts it (unchanged).- Contact:bullet, whenapp_report_wellformedreads it, then it accepts it, validating the fifth bullet against the same strict pattern as the renderer, and the words heading one line lower is found correctly.- Contact:bullet is malformed, whenapp_report_wellformedreads it, then it rejects it (to a human, unread).scripts/app-report-gate.shruns, then the relevance gate holds, classifies and disposes each exactly as today.rr-drx-nothing-sent.html).Implementation Decisions
NavChrome(ui-kit) emitsreport-issueandrequest-improvement; the dashboard frame opens the oneReportIssueDialogwith a requiredkindprop. The kind radio andKIND_OPTIONSare removed;KIND_COPYstays, keyed by the prop;dialogTitlefollows the kind for both the composing and sent phases.canReportIssuegates both buttons.ReportSendpayload → the broker's- Kind:bullet → the intake check → the gate. No golden/intake/gate change for the split.ReportSend/ReportBodygain an optionalcontactEmail(wirecontact_email). The dialog adds the opt-in checkbox + revealed field + the re-worded From clause + the client-side strict-pattern belt (Send disabled + inline reason on a malformed value). The field never pre-fills.ReportInputgainsContactEmail;RenderReportBodyappends the fifth unfenced- Contact:bullet only when a valid address is present, validated by a strict single-line pattern (no whitespace/newline/backtick, length-capped) mirrored exactly in the intake check. A malformed address is a 400 in the existing refusal shape; the address is never logged or stored.reports.go↔scripts/lib/app-report-lib.sh, "change both or neither"): a second golden for the five-bullet shape;app_report_wellformedaccepts four- and five-bullet bodies and validates/positions the optional bullet. GOTCHAS #314.two-door-split(dashboard,ready-for-agent) andcontact-offer(dashboard + broker + golden + intake + gate,ready-for-human— the trust surface). Both blocked by #2051;contact-offeralso blocked bytwo-door-split.Testing Decisions
Good tests check external behaviour at the existing seams, not implementation detail. No new seam is introduced.
ReportIssueDialogcomponent tests over the injectedReportIssueSourcefake — the two kinds render their copy; the contact offer toggles the field and re-words the promise; a malformed address disables Send with the inline reason; the kept-contact line on the fail-loud shape.NavChrometests for the two intents. Prior art: the existingReportIssueDialogandnavChromeSidebartests.TestClient_ReportIssueWirePayloadIsExactlyPinnedgrows to pincontact_emailpresent and absent.RenderReportBodygoldencmpfor both the four- and five-bullet shapes; a table test for the strict pattern (valid / whitespace / newline / backtick / missing-@ rejected); the 400-on-malformed path. Prior art: the existing reports tests.app-report-lib.shoffline cases for both body shapes and a malformed fifth bullet; the relevance-gate test still green on both. Prior art: the existingapp_report_wellformedcases.Out of Scope
Further Notes
needs_human_decision: the merge of the design PR, and the accept of the contact-offer promise wording in DDR 0296 §3 (a member-facing trust surface, ADR 0174) — which is why thecontact-offerbuild ticket isready-for-humanwith its own## Why human, notready-for-agent.landing-pr, ADR 0267) and carries<!-- origin: app-report #2047 -->on body line 1.