RFC: in-app feedback with acceptance numbers and a status loop
Problem
Many users do not know how to file a GitHub issue (no account, unfamiliar with templates, unsure which version line they run). Their feedback either never arrives or arrives as a Discussion/DM that has to be transcribed by hand. Even when they do file, there is no loop: they cannot see whether anyone read it, and they learn a fix shipped only by chance.
Goals
- Submit feedback from inside Reasonix Studio (and the TUI) without a GitHub account.
- Every submission gets a receipt number immediately and becomes a GitHub issue automatically.
- The user sees, in the app, a status timeline that follows the issue: received -> recorded (#N) -> fixing -> fixed in vX.Y.Z / won't fix / duplicate of #N.
- Status is derived from GitHub state and release tags, not hand-maintained.
- Reuse existing infrastructure; no new always-on service; bounded D1 cost.
Non-goals
- Not a support chat, and no private/confidential channel (see Privacy; security reports keep going through SECURITY.md / GHSA).
- Not a public voting board (no upvotes, no comment threads in-app) in P0-P2.
- No mandatory account. Not a replacement for the GitHub issue forms; power users keep using them.
- No automatic upload of diagnostics; always explicit consent.
What exists today (research)
- Worker
workers/crash-report(crash.reasonix.io): D1reasonix-crash(groups, reports, pings, metrics, telemetry_receipts, report_daily, ...), D1reasonix-registry, a telemetry Queue + R2 raw bucket, cron triggers (daily purge, sentinel), and rate-limit bindings (RATE_LIMITER5/min/IP for/v1/report,WRITE_LIMITER30/min for registry writes, etc.). Public ingest routes are/v1/report,/v1/ping,/v1/metrics. Reports are unauthenticated, per-IP rate limited, zod-validated and passed throughscrubSensitiveText. Dashboard/registry use the shared id.reasonix.io session (accounts worker). - Client side:
internal/platform/crashreportwrites local, user-reviewed reports with its own redaction (user paths, emails, secret key/values, bearer/JWT/long hex/base64) and posts to/v1/report;internal/platform/telemetryholds a stable per-installinstallIDand posts pings/metrics. Both usenetclient. - In-app feedback UI: I found no existing "report a problem"/feedback surface in the Go tree; only the crash-report flow and the issue forms.
- GitHub side: forms
bug_report.yml,feature_request.yml;config.ymldisables blank issues and points to Discussions.issue-version-label.ymlmaps the form's "Version line" (and exact version) tov1/v2/v3.close-linked-issues.ymlcloses issues named byFixes #Nfor PRs merged intomain-v2(GitHub does this natively for the default branch, which is nowstudio;main-v2(1.x) is not default, soFixes #Nthere does not auto-close and this workflow covers it).issue-replies.ymlposts replies asgithub-actions[bot]viaworkflow_dispatchto spend repo quota rather than a person's content-creation limit. - Releases: Studio releases are cut by tag
studio-v*(release-studio.yml), so "which release contains this fix" is answerable with git. - Maintainer tooling: the issue-watch script polls open issues and keeps a seen-list; it needs new issues to be recognisable (label) and to carry a stable marker so scanner-created issues are not confused with hand-filed ones.
- Cost lesson (D1 rollup incident, Aug 2026): a cron scanning a range on the wrong index read ~3.6B rows/day. Any scanner here must be index-driven and O(new rows), never a periodic full or windowed scan.
User flow
- Studio: Help -> "Send feedback" (also from the command palette and Settings). TUI:
/feedback. - Form: category (Bug / Idea / Question-usability / Other), free text (required, max 8 KB), optional screenshot (max 2 MB, PNG/JPEG, EXIF stripped), optional "include diagnostics" checkbox (off by default).
- If diagnostics is on, the app shows the exact payload (version, OS/arch, surface, language, last error class, redacted recent log tail) after local redaction (reusing
crashreport's patterns) with a preview the user can edit or delete lines from. Nothing leaves the machine before "Send". - A visible notice, before Send: "Your feedback will become a public GitHub issue in esengine/DeepSeek-Reasonix. Do not include secrets or private code." The user previews the exact issue title/body and can edit it.
- On send the worker returns a receipt number, e.g.
FB-7K3M-9QX2(short, human-typable, Crockford base32, checksum char; random, not sequential, so numbers cannot be enumerated). Studio shows it and stores it locally. - "My feedback" list: each item shows the receipt, category, date and a timeline: Received -> Recorded (link to #N) -> Fixing -> Fixed in vX.Y.Z / Won't fix / Duplicate of #N. If the installed version is older than the fix, the row offers "Update to X.Y.Z".
Sketch:
My feedback
FB-7K3M-9QX2 Bug 2026-09-30 "Sidebar loses selection"
o Received o Recorded (#11350) o Fixing * Fixed in v2.21.0 [Update]
FB-2H8P-4WD7 Idea 2026-09-28 "Export session as markdown"
o Received * Recorded (#11302)Data model and API (worker)
New D1 tables (in reasonix-crash, or a new small DB to isolate quota):
feedback(id TEXT PK /*receipt*/, install_hash TEXT, category, body, attachment_key, diag_key, client_version, surface, os, lang, status, issue_number, resolved_version, created_at, updated_at, idem_key UNIQUE)- indexes:
(status, created_at)for the scanner,(install_hash, created_at)for "my feedback",(issue_number)for write-back. - Attachments and diagnostics go to R2 (existing bucket style), not D1; only the key is stored.
Endpoints (under /v1/feedback):
POST /v1/feedback->{receipt, status}. Idempotent: the client sends a UUIDIdempotency-Key; a retry returns the same receipt.GET /v1/feedback?since=...-> caller's items (auth below), paginated, for the "My feedback" list.GET /v1/feedback/{receipt}-> single item + timeline.- Internal (scanner-only, bearer secret):
GET /v1/feedback/pending?limit=,POST /v1/feedback/{receipt}/recorded {issue},POST /v1/feedback/status.
Auth: install token, no account by default. On first use the client requests a token bound to its existing installID (server stores only a hash; token = HMAC over install id + issue time, so no per-token row is needed). The token authorises submit and read-own. An optional signed-in account (id.reasonix.io) could later link installs so history follows the user across machines; that is out of P0.
Limits: body 8 KB, screenshot 2 MB, diagnostics 64 KB, 3 submissions/install/hour and 10/day, per-IP RATE_LIMITER-style binding (new namespace) plus a global budget binding like TELEMETRY_BUDGET_LIMITER. Server-side scrubbing runs again with scrubSensitiveText (the client is not trusted). Spam controls: identical-body dedupe per install, link-count cap, optional Turnstile challenge if abuse appears, a held status for anything that trips heuristics so a maintainer releases it, and a kill switch var like TELEMETRY_QUEUE_ENABLED.
Privacy
- Submissions become public issues; the form, the preview and the receipt page say so. Body is edited by the user before sending, and the server publishes exactly the previewed text (plus a fixed metadata block).
- Local redaction first (paths ->
~, emails, keys/tokens, long base64/hex), server scrub second. Screenshots: warn that they are public; strip EXIF; no automatic screenshots. - Diagnostics: opt-in, previewed, never contain prompts/file contents by construction (allowlist of fields, not a denylist).
- The install id is never published; only a salted hash is stored, and the issue shows the receipt and the reported version/OS, not an identifier that links to a person.
- Open option: a "private note to maintainers" field stored only in D1/R2 and never copied to GitHub (see open questions). Security-sensitive category routes the user to SECURITY.md instead of creating an issue.
Scanner design
Recommended: a GitHub Actions scheduled workflow (feedback-sync.yml, every 10-15 min, plus workflow_dispatch) that calls the worker's internal endpoints.
GET pending(index onstatus='received',LIMIT 20): O(new rows), no scan.- For each item: search for an existing issue containing the hidden marker
<!-- reasonix-feedback: FB-... -->(makes creation idempotent if the write-back failed), elseissues.createwith labelsfrom-studio,needs-triage, a version-line label derived from the reported version, and a body: user text, metadata table, receipt number, and a footer "Submitted via Reasonix Studio". POST recorded {issue: N}-> worker setsrecorded.- Status sync (P1): a second job lists issues with the
from-studiolabel whoseupdated_atis newer than the last cursor (issues APIsince=), maps state ->fixing(labelin-progressor linked open PR),fixed,wontfix,duplicate, and posts the change to the worker. Cursor lives in the worker, not a scan of D1.
Why polling, not the worker pushing via a GitHub App: no new secret surface on the public worker, no app to install/rotate, GitHub is the only writer to GitHub, rate limits are the repo's own GITHUB_TOKEN, and a 10-minute delay is fine for feedback. A GitHub App/webhook is a later upgrade if latency matters (it would also push status without polling).
Duplicates: P0 only exact-body dedupe per install. P2: the scanner searches open issues with the title's keywords and, on a maintainer-approved match, links the submission to duplicate of #N instead of opening a new one (never auto-close on a guess: judgements read structure, not wording, so the duplicate verdict comes from a maintainer action/label, not a text match).
Deriving "fixed in vX.Y.Z"
Structural chain, no wording heuristics:
- Issue closed with
state_reason: completedby a merged PR (the issue timeline has aclosedevent withcommit_id, andcross-referenced/connectedPRs). - Take that PR's merge commit SHA.
- Find the first
studio-v*tag containing it:git tag --contains <sha> --list 'studio-v*' --sort=version:refname | head -1(or compare API). Not yet tagged -> "Fixed, ships in the next version". not_plannedclose -> "Won't fix";duplicatelabel or a "Duplicate of #N" close -> duplicate with link.
Note: studio is the default branch, so GitHub auto-closes issues named by Fixes #N when a PR merges there; the sync job treats a completed close as the fix. 1.x fixes merged into main-v2 (not default) are closed by close-linked-issues.yml, and their cherry-picks map to the 1.x release tags: the mapping picks the tag namespace by the issue's version-line label.
Kernel / frontend split
Per REASONIX.md, behaviour lives in one place: a new internal/platform/feedback package (draft, redaction preview, submit, local receipt store, status refresh, offline queue with retry, like crashreport's on-disk queue) exposed through a control.Controller port (Feedback: Draft/Preview/Submit/List/Refresh). Studio (serve/HTTP endpoints + frontend), TUI (/feedback, /feedback list) and ACP call the same port. Requirements:
frontend-parity: declare the port intools/repolint/frontendparity.goand drive it from all frontends, or record a scoped exception with an issue.wire-parity: the serve DTOs mirrored in the desktop frontend go intools/repolint/wireparity.go.- Error identities: refusals such as rate-limited / too-large / held are typed codes through
refuse, not strings; a network failure (queue and retry) is distinguished from a domain refusal (fix your input). - Studio presentation: status labels are projected from the canonical status enum; no restating.
- Effect test through
boot.Buildasserting what reaches the transport (redacted payload) rather than component tests only. - Layering: the package is a leaf using
netclientand the redaction helpers; consider extracting the shared redaction fromcrashreportso both use one copy.
Cost / D1 impact
Volume is tiny (a few to tens of submissions/day). Writes: ~1 insert + 2 updates per item. Reads: scanner LIMIT 20 on a (status, created_at) index every 10 min = 144 tiny queries/day; "My feedback" is WHERE install_hash=? ORDER BY created_at DESC LIMIT 50 on an index. No cron in the worker, no rollups, no full-table or unindexed range scans. Attachments in R2. Should be far below the account-level D1 quota noted after the rollup incident, but because D1 quota is account-shared, put a global admission limiter on the submit path.
Phases
- P0: submit form (text + category), consent/preview notice, receipt number, worker endpoints + tables + limits, scanner workflow creating issues with
from-studiolabel and receipt marker, write-backrecorded+ issue link, "My feedback" list showing Received/Recorded, TUI/feedback. - P1: status sync (fixing / fixed in vX.Y.Z / won't fix / duplicate), "Update to X" affordance, notification when status changes, optional reply relay from maintainers ("needs info").
- P2: optional log-excerpt attachment with redaction preview, duplicate suggestion with maintainer confirmation, optional account linking, GitHub App/webhook if polling latency matters.
How comparable products do it (only what I am confident of)
- VS Code "Report Issue" opens a prefilled GitHub issue with system info and shows a preview, but requires a GitHub account.
- CLI agents'
/bug-style commands generally either open a prefilled issue URL or upload a report to the vendor; the loop back to the user is generally not shown in-app. - Public feedback boards (Canny, Linear-style customer requests) give status columns (planned/in progress/shipped) and notify submitters; those are the model for the status timeline, minus voting.
Open questions for the maintainer
- Should any part of a submission be private (kept in D1/R2, never on GitHub), or is "everything is public, with preview" acceptable? This decides whether diagnostics may ever be attached automatically.
- Anonymous install token only, or should signing in (id.reasonix.io) be encouraged so history follows the user across machines? Anonymous means a wiped install loses its list.
- Which version line do TUI/1.x users get: only Studio (2.x) first, or a backport of
/feedbackto 1.x? And who triagesfrom-studioissues (autoneeds-triage, or auto-label by category)? - Should the scanner auto-close obvious duplicates and Q&A, or only ever link? (Recommendation: link only, maintainer decides.)
- Receipt format and retention:
FB-XXXX-XXXXacceptable; how long to keep unrecorded/held submissions and attachments (suggest 90 days)?
Addendum (maintainer decisions, 2026-09-30)
- Screenshots are first-class, not P2. The form accepts a screenshot from the start (P0): paste from clipboard, drag and drop, file picker, and a one-click "capture this Studio window" that the user triggers explicitly (never automatic). Up to 3 images, PNG/JPEG, 2 MB each after client-side downscale, EXIF stripped. Before sending, the user sees each image and can crop or blur a region; the form says the images become public. Images are stored in R2 and embedded in the issue by URL (GitHub's REST API cannot upload issue attachments), with a retention/takedown path (maintainer can delete the object and the issue image goes dark). The TUI
/feedbackhas no image support in P0 (text and diagnostics only). - Reporter identity and diagnostics are mandatory context, shown transparently. Every submission carries, automatically and without a checkbox, the fields needed to diagnose: Studio/CLI version and build (
vX.Y.Z, commit), surface (Studio / TUI / ACP), OS and version, CPU architecture, locale, install channel, active model/provider kind (no keys, no base URLs), and the install's anonymous hash. These are shown read-only in the form before sending and rendered in the issue as a collapsed "Environment" block. Optional, consent-gated (off by default, redacted preview): the recent log excerpt and settings summary. - Reporter name. A display name is included on every submission: prefilled from the signed-in id.reasonix.io display name when there is one, otherwise a nickname the user types once (remembered locally). It appears in the public issue as "Reported by via Reasonix Studio"; it is a nickname by default, not a legal name, and the form says it is public. An optional private contact field (email/QQ) is stored only in D1 for the maintainer and never copied to GitHub.
- Phasing adjusted: P0 = submit + screenshots + environment block + name + receipt + recorded link; P1 = status sync + fixed-in-version; P2 = optional log excerpt, duplicate suggestion, account linking.
Source: esengine/DeepSeek-Reasonix