openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Fix Teeny end to end so it files Discord reports as issues: it answers chat fragments, its ticket button errors, and what it files leaks PII into a public repo

Open Al629176 opened this issue 1 month ago • 5 comments

Description

Teeny should be the thing that turns Discord reports into well-formed GitHub issues with priorities. That is the design, and it is the right one — a human pass over the ticket board does not scale and would have to be repeated every week.

Today every stage of that pipeline is broken, and the failures compound: it answers things that were not questions, the button it offers to escalate returns an error, what does get filed is unusable and leaks personal data into a public repository, and the result is never announced. This issue is to fix the chain end to end.

Repo: tinyhumansai/teeny-guild-bot (private) · filing into tinyhumansai/openhuman (public)

Stage 1 — It answers things that were not questions

In #teeny-logs, two consecutive single-word follow-ups in an ongoing team conversation — "Approval?" and "Before filing?" — each drew the same verbatim canned reply:

"I couldn't find a confident answer to that in the docs. The team can help in #support-ticket — or press the button and I'll open a private ticket with what I found so far."

with an Open a ticket button attached to both. The team's own reaction, in channel: "mmm a bit noisy." — "Yeah."

Three distinct defects here:

  • No gate on what is addressed to it. Conversational fragments and continuations of someone else's thread are treated as standalone queries.
  • No awareness of what it just said. The identical fallback fired twice in a row, a minute apart, in the same channel.
  • A low-confidence miss still produces a reply and an escalation button. Below a confidence threshold the correct behaviour is silence, not an offer to open a ticket.

That last one is the root of the junk downstream: an open issue on this repo is titled [discord] yw — a reporter's "you're welcome" — because a conversational fragment was treated as a report. Fixing the gate at this stage removes most of the junk at every later stage.

Stage 2 — The escalation button does not work

#6671: "Note that the Teeny app suggests that it will open a ticket. When we click on the 'Open a ticket' button, we get an error saying integration failed."

So the one path Teeny offers users is broken. Note also what Teeny posted on that report: "What Teeny found (confidence 0.00)" — it published its own non-answer, labelled with zero confidence, rather than staying quiet. The confidence value is computed and then ignored.

Stage 3 — What it files is unusable, and leaks personal data

This matters more than the rest because openhuman is a public repository.

  • Titles are the chat line, not the defect. One open issue is titled with the reporter's "you're welcome" while the actual crash it describes — revealing the vault folder — is buried in the body.
  • An open issue's title contains a community member's Windows username and their 24-character user id, lifted verbatim from a pasted file path.
  • Filed issues carry Reported in Discord by <handle> with a direct link to the Discord message, publicly attributing a named member.
  • At least one hot-links a cdn.discordapp.com attachment URL including its access parameters.

#6715 covered the format problem and is closed, yet these remain open and unredacted — so either the fix did not cover them or they predate it and were never backfilled.

Stage 4 — Nothing is announced

#6714: githubTrackerChannelID is an empty string, and a destination whose channel is blank is skipped, so every delivery is silently dropped. Nobody in Discord sees an issue get filed. The reporter has no idea anything happened, which is why the same thing gets reported again.

Stage 5 — Issues freeze at the opening message

#6713 covered keeping a filed issue current as its ticket thread continues, rather than frozen at the first message, and is closed. Worth re-verifying as part of this, since a ticket's useful detail — version, OS, repro — usually arrives in the replies, not the opening line.

The question the team already asked

The conversation that triggered the noisy replies was itself "Approval?" and "Before filing?", with votes attached. That is the right question and it should be settled here: a human approves before Teeny opens a public issue.

Given this repository is public and the current output leaks personal data, approval-before-filing should be the default rather than a configurable nicety. Teeny drafts, a maintainer approves in Discord, and only then does the issue appear.

Required filing rules

Whatever Teeny files must obey these, enforced in code rather than in the prompt:

  • No raw report text. Summarise the defect; never paste the thread.
  • No personal data anywhere in the issue: no Discord handles or display names, no real names, no emails, no OS usernames, no user ids, no paths containing them. Redact a path to its shape — C:\Users\<user>\.openhuman\users\<id>\workspace\….
  • No Discord message links, no cdn.discordapp.com URLs. Attachments get re-hosted or described.
  • The title names the defect, never the sentence the reporter typed.
  • Dedup before filing. Dozens of [discord] issues already exist and several open ones overlap with live work. A match becomes a comment carrying the new evidence, not a new issue — and the number of distinct reporters should raise the priority.
  • A priority on every issue, from a fixed rubric: P0 data loss, privacy exposure, money taken without delivery, or unusable for everyone · P1 a core flow broken with no workaround, or several reporters on one defect · P2 broken with a workaround, or one platform · P3 cosmetic or unreproducible.

Related

  • #6671 — the Open-a-ticket button returns "integration failed"; Stage 2
  • #6714 — #github-tracker silently drops everything; Stage 4
  • #6713, #6715 — closed, covering thread triage and the issue format; their gaps are Stage 3 and 5

Acceptance Criteria

Stop the harm first

  • [ ] The existing [discord] issues containing personal data are redacted and the chat-line titles rewritten to name their defects
  • [ ] Teeny cannot file into a public repo until the redaction rules below are in place — pause automatic filing if that is what it takes

Stage 1 — listening

  • [ ] Teeny only answers messages addressed to it, not every message in a channel, and not continuations of someone else's exchange
  • [ ] Below a confidence threshold it stays silent rather than posting a fallback and an escalation button; the threshold is configurable and its value recorded here
  • [ ] It does not repeat an identical reply in the same channel within a short window
  • [ ] A maintainer confirms in #teeny-logs that the noise is gone

Stage 2 — escalation

  • [ ] The "Open a ticket" button opens a ticket; the "integration failed" error is fixed and covered by a test
  • [ ] A confidence-0.00 result is never published as "What Teeny found"

Stage 3 — filing

  • [ ] Issue titles name the defect
  • [ ] No filed issue contains a Discord handle, real name, email, OS username, user id, Discord message link or cdn.discordapp.com URL — enforced by a check in the filing path, with a test that a report containing each of these files cleanly
  • [ ] Every filed issue follows the #6247 format and carries a priority from the rubric
  • [ ] Dedup runs before filing; a duplicate becomes a comment and bumps priority by reporter count

Stage 4 and 5 — announce and maintain

  • [ ] #6714 is fixed; a filed issue appears in #github-tracker, and a blank channel id fails loudly at startup instead of dropping silently
  • [ ] The reporter is told in their ticket that an issue was filed, with its link
  • [ ] An issue stays current as its ticket thread continues, rather than frozen at the opening message

Approval

  • [ ] A maintainer approves in Discord before any public issue is created, and the approval is recorded
  • [ ] An end-to-end run is demonstrated on a real ticket: report → gate → draft → approval → well-formed issue with priority → announcement in #github-tracker → reporter notified

Al629176 avatar Oct 07 '26 07:10 Al629176

Triage 27 open Discord support tickets into properly formatted GitHub issues, plus fix existing auto-filed issues that leak PII (usernames, user ids, Discord links) on the public repository — #6694's title redaction is urgent.

Labelled priority: p0.

tinysweeper avatar Oct 07 '26 07:10 tinysweeper

A coordinated triage pass: redact PII and retitle existing auto-filed [discord] issues, then classify open Discord tickets and file only genuine engineering work in the standard format with priorities, while routing non-engineering tickets elsewhere. This is a task rather than a bug or feature. The PII exposure on a public repository is active and ongoing, so the redaction portion warrants p0; the rest of the backlog triage follows from that. No duplicate among the candidates: #6714 is a related tracker bug, not the same work.

Labelled priority: p0.

tinysweeper avatar Oct 07 '26 07:10 tinysweeper

End-to-end repair of the Teeny Discord-to-GitHub filing pipeline: gate noisy replies, fix the broken ticket button, enforce PII redaction and defect-titled issues before public filing, fix silent delivery drops, add maintainer approval before filing. The PII exposure on a public repository makes this p0; it is a coordinated work item (task) rather than a single bug or feature. No duplicate among the candidates: #6714 covers only one stage of this chain.

Labelled priority: p0.

tinysweeper avatar Oct 07 '26 07:10 tinysweeper

Triage: needs opinion — “Fix Teeny end to end so it files Discord reports as issues: it answers chat fragments, its ticket button errors, and what it files leaks PII into a public repo” needs a maintainer decision on product scope/priority or fresh reproduction evidence before its status can be settled. Please advise whether to pursue, narrow, or close it.

senamakel avatar Oct 09 '26 17:10 senamakel

Status: fixes shipped, end-to-end run done on prod

Every stage now has a fix merged in tinyhumansai/teeny-guild-bot. Each merge to main deploys to prod; the last one (tinyhumansai/teeny-guild-bot#75) deployed 2026-10-26 07:52 UTC. Today's runs on real reports are below. One item is still open: pressing Open a ticket from a member account. That test was blocked by the server's moderation bot (see the end of this comment).

End-to-end run, 2026-10-26

Two reports were posted in #feedback-bugs: one from a team account, one from a brand-new non-team account. Both went report → triage → draft in #teeny-logs → Approve and file → issue.

Step Evidence
Draft held for a maintainer; nothing filed before the press Font-size draft in #teeny-logs (15:54 IST), with Approve and file / Discard
Personal data removed C:\Users\jdoe42\… → C:\Users\<user>\… (#8411); C:\Users\sam\… removed (#8406); the test email and cdn.discordapp.com link don't appear anywhere; both issues say only "Reported in Discord."
Title names the defect #8411 "Chat font size resets to Default after restarting OpenHuman"; #8406 "Markdown conversation export creates an empty file"
#6247 format and priority Both issues have every section; priority: p2 (#8411), priority: p1 (#8406)
Announced in #github-tracker "Filed from a Discord report", with title, link and labels, at 16:05 IST; no reporter, no Discord link
Reporter told #8406: "Update on your report: the team have filed it as …/8406" as a reply to the report (12:55 IST)

#8406 and #8411 were test reports and are closed.

Acceptance criteria

Stop the harm first

  • [x] Teeny can't file to a public repo until redaction is in place: personal data is stripped in code before filing (tinyhumansai/teeny-guild-bot#65), and nothing is filed without a maintainer's press (tinyhumansai/teeny-guild-bot#68)
  • [ ] Existing [discord] issues that contain personal data are redacted and retitled. #6694 is retitled and closed; it still needs deletion by an org owner. The rest of the old issues haven't been re-audited yet.

Stage 1 — listening (tinyhumansai/teeny-guild-bot#66, #71, #72, #73)

  • [x] Teeny answers only messages addressed to it or that stand alone as a question or report; it ignores fragments and other people's threads
  • [x] It stays silent below a confidence threshold. Defaults: QA_SILENCE_BELOW=0.4 (silent below this), ANSWER_CONFIDENCE_MIN=0.75 (posts an answer at or above this); both can be overridden through env. Prod, per /qa status on 2026-10-26: mode live, confidence bar 0.75, 2 allow-listed channels. /qa status doesn't show the silence threshold, so it is the 0.4 default unless the prod env sets QA_SILENCE_BELOW.
  • [x] It doesn't repeat an identical reply in the same channel within QA_REPEAT_WINDOW (default 10m)
  • [ ] A maintainer confirms in #teeny-logs that the noise is gone

Stage 2 — escalation (tinyhumansai/teeny-guild-bot#67)

  • [x] The button acknowledges the press before doing the work, which was the cause of "integration failed"; covered by tests
  • [x] A confidence-0.00 result is never posted as "What Teeny found". Below the threshold Teeny says nothing; a drafted report gets "written it up for the team" instead.
  • [ ] Pending: a screenshot of the button opening a ticket on prod (#6671 is closed on the strength of tinyhumansai/teeny-guild-bot#67)

Stage 3 — filing (tinyhumansai/teeny-guild-bot#65, #69, #74)

  • [x] Titles name the defect (#8406, #8411)
  • [x] No handle, name, email, OS username, user id, Discord message link or cdn.discordapp.com URL is filed; the filing code enforces this and tests cover it
  • [x] #6247 format, plus a priority from the rubric
  • [x] The duplicate check runs before drafting; the maintainer sees possible matches with the draft, and the reporter count raises priority

Stage 4 and 5 — announce and maintain (tinyhumansai/teeny-guild-bot#70, #75)

  • [x] #6714 is fixed: filed issues appear in #github-tracker, and a blank announce channel now stops the bot at startup instead of being skipped silently
  • [x] The reporter is told, with the link (in their ticket thread if they have one, otherwise as a reply to their message)
  • [ ] An issue stays up to date as its ticket thread continues (#6713). Not re-checked in this run.

Approval (tinyhumansai/teeny-guild-bot#68)

  • [x] A maintainer approves in Discord before any public issue is created; who approved and when is stored on the run, and the draft message is rewritten to "✅ Approved by …"
  • [x] End-to-end run shown above (the ticket-button step is still pending)

Found during the run: the moderation bot removes new members' reports

The new account's first report was deleted by Wick, the server's moderation bot, and the account was timed out over and over. Teeny had already read the report, so the draft and #8411 were created. Because the original message was gone, the reporter could not be told: Discord refuses a reply to a deleted message, so Teeny logged it and told the approver to inform the reporter themselves. This is a moderation setting rather than a Teeny bug. Still, as configured, new members who report a bug may be timed out and may never hear back.

Left before closing

  1. Show Open a ticket opening a private thread on prod (screenshot)
  2. Re-audit the old [discord] issues for personal data; an org owner deletes #6694
  3. A maintainer confirms in #teeny-logs that the noise is gone
  4. Re-check #6713 (an issue stays up to date as its ticket thread continues)

CodeGhost21 avatar Oct 26 '26 10:10 CodeGhost21