Report feedback

From sonichi/sutando · View interactive version

Report feedback is an AI agent skill from the GitHub repository sonichi/sutando. THE way a bug, feature request or feedback about Sutando, s.space or the desktop app reaches the AG2 team; the only path to the tracker (Slack #product-feedback, a GitHub issue, the master DB). Posting it in chat, a room or a DM, or asking another agent to log it, is not reporting it. Use when the o

How to use this skill

Skill file

Report Feedback

When the user asks to report a bug / issue / feature request / feedback about Sutando, s.space or the desktop app — e.g. "report this bug", "report this issue", "report an issue", "file a bug", "log this bug", "submit feedback", "I have a feature request", "tell the team this is broken" — use this skill to file it, whether the ask comes in a DM, in a room or by voice. "Report this on the PR" or "report this to <someone>" asks for a PR comment or a message, not a report.

This is the only path that reaches the AG2 team. The report goes skill → /api/feedback → Slack #product-feedback, a GitHub issue on sonichi/sutando and the master feedback DB. A message in a room or a DM, a hand-opened GitHub issue, or asking another agent (another Sutando included) to "add a row" or pass it on never gets there; do not do those instead of filing. After filing, reply with the reference id the script prints.

It posts to the cloud /api/feedback route (the same one the desktop "Report an issue" form uses, which mirrors into GitHub issues) and auto-attaches diagnostic context (platform + a tail of recent workspace logs), so you don't need to gather logs yourself.

This is the single reporting path for all surfaces — chat, Discord, Telegram, and voice (which reaches it by delegating the task to the core agent). There is intentionally no separate voice tool, to avoid duplicating the same capability.

Usage

python3 skills/report-feedback/report-feedback.py \
  --title "<short one-line summary>" \
  [--body "<what happened, steps to reproduce, what was expected>"] \
  [--kind bug|feature|other] \
  [--severity low|medium|high|critical] \
  [--no-logs] [--auto]

Ask first (`--ask`, or `askFirst` in the owner's prefs)

The owner's approval step for automatic reports. Instead of filing, the report is parked as a draft under

<workspace>/state/feedback-drafts/<id>.json and registered in the engine's HITL store (src/hitl) as a

HumanRequirement: the gateway bridge projects it as the owner's card — **File this bug report · File

without logs · Skip** — into its proactive room, and applies the click with the same stale-revision guard

every other card gets. Nothing is posted by this script, so it needs no gateway env.

# ask (also what --auto does when feedback-prefs.json has "askFirst": true):
python3 skills/report-feedback/report-feedback.py --auto --title "..." --body "..."
# after the owner answers (the click is durable in the HITL store): run the clicked choices
python3 skills/report-feedback/report-feedback.py --apply
python3 skills/report-feedback/report-feedback.py --drafts        # pending drafts, oldest first
python3 skills/report-feedback/report-feedback.py --decide <draft-id> file|file_no_logs|skip   # by hand

turn_on_action, so the bridge records the click and then lets the same relay task through to the

core (and re-forwards it if the relay redelivers the same click before that task was written, so a

death in between cannot lose the turn); that task carries the header hitl_click: true and the card

label as its body — it is a click

already recorded, not an instruction: answer [no-send], do not file by hand, and let the turn end —

and the skill's Stop hook (manifest.json → hooks/apply-clicks.py, registered by

bash src/install-claude-hooks.sh like every skill hook) runs apply_clicks() as that turn ends.

--apply is the same routine by hand. It also registers any parked draft whose card was never created

(a store write that failed at ask time exits 3 and keeps the draft).

to <id>.filed, the card is resolved, the receipt removed; a 4xx (the server refused, nothing written)

renames it back to a draft. A 5xx proves nothing (the write may have committed), so like no answer at

all (a transport error, a death mid-request) it leaves <id>.posting, and

--apply holds it — never re-posted on a guess. A held draft is owner-visible: the answered card

closes and a new card asks "Bug report: filed or not? — File it again / Skip"; its click runs through

the same path (file re-posts on purpose, skip drops the in-flight draft). --drafts lists parked

drafts; in-flight ones are visible to list_drafts(ws, state="posting"), and --decide <id> file|skip

settles one by hand and closes its cards. The payload carries context.idempotency_key = <draft id>

for a server-side check.

Logs are gathered only after the choice — the card carries the title only.

is asked, and the off-switch applies to --ask as well as --auto.

Automatic reports (`--auto`)

When you (not the user) determine that a bug or error is caused by Sutando itself or s.space — engine services, bridges, the desktop app, s.space connectivity, or the AG2 cloud — queue it with --auto. Never --auto-file problems in the user's own projects or code, third-party tools/sites/APIs, or expected failures (bad input, credentials the owner simply hasn't provided).

--auto enforces the owner's Settings toggles (read from <workspace>/state/feedback-prefs.json, written by the desktop app). When the file or a key is absent, both default OFF:

Absence is not consent. An automatic report sends the owner's error context to the cloud, and the log excerpt adds incidental owner data — paths containing usernames, hostnames, workspace content. An owner who has never turned the toggles on files nothing automatically and ships no logs.

Auto reports are also deduped (an identical title within 24h) and rate-limited (5 per 24h) via <workspace>/state/feedback-auto-reports.json. A SKIPPED exit (3) is a normal outcome, not an error — just move on. Only after OK: filed (not HELD), tell the owner in one short sentence (e.g. "I've filed a bug report about this"); the Settings toggle is the consent surface, so don't ask permission first.

Hold automatic reports while existing recovery runs

--auto first returns HELD: incident fb_…. The report stays locally in

state/feedback-drafts/; it sends nothing and creates no approval card yet.

An identical pending title reuses its incident ID and original deadline.

Manual reports without --auto remain immediate.

Use the returned incident ID to record the existing recovery lifecycle:

python3 skills/report-feedback/report-feedback.py --auto --title "Bridge disconnected" --body "Observed failure"
python3 skills/report-feedback/report-feedback.py --recovery fb_0123456789 started
# After the existing recovery finishes, record exactly one outcome:
python3 skills/report-feedback/report-feedback.py --recovery fb_0123456789 succeeded
# Or, only when recovery has definitively failed / exhausted its own timeout:
python3 skills/report-feedback/report-feedback.py --recovery fb_0123456789 failed

queuing if it is already running). Do not start extra recovery to satisfy reporting.

Restarting a process alone is insufficient. Success archives the local diagnostic

draft as .suppressed and cancels any unsent approval card.

This immediately releases the report through the current preferences, daily cap,

deduplication and ask-first flow. An already-failed recovery can be recorded

immediately after queuing; no new attempt is required.

If recovery is still running at that deadline, it remains held. The existing

recovery controller/agent must report its final failure, including its own timeout.

This skill never infers success or failure from unrelated health checks.

for that incident only. Repeat detections do not extend the one-hour deadline.

deadlines and applies owner clicks. Reports carry context.recovery with the state,

deadline and release reason. Automatic posting never claims owner approval.

are archived and do not return when the switch is re-enabled. Logs are collected

only at filing, using current sendLogs and the queued --no-logs choice.

Deadline worker (deployment)

The Stop hook applies owner clicks without waiting behind a worker; automatic

releases run in the worker or explicit CLI. Install the periodic worker when deploying this change on macOS:

python3 skills/report-feedback/install-worker.py
# Inspect the job without installing:
python3 skills/report-feedback/install-worker.py --render
# Remove the worker:
python3 skills/report-feedback/install-worker.py --uninstall

It runs report-feedback.py --apply every 60 seconds via launchd and at login,

independent of the core. Deadlines persist across restarts and are evaluated on the

next tick after wake/login; an offline/asleep machine cannot submit at an exact

wall-clock deadline. Use a persistent checkout and Python installation; reinstall

if either path changes. Inspect logs/feedback-recovery.log for worker errors.

On other platforms, configure the OS scheduler to run the same --apply command

once per minute. Without a periodic worker, deadlines are checked only on an explicit --apply

or recovery update; installing the code alone does not activate the timer.

Posts use the existing draft .posting/.filed receipts: uncertain network outcomes

are held for the existing owner decision card, never automatically reposted. CLI,

Stop hook and worker serialize mutations with state/feedback-reports.lock.

Behavior

Access tier

Owner-tier only — it files under the owner's Sutando Cloud identity, and it reads the owner's cloud token + attaches the owner's workspace log tail. Run it only for access_tier: owner (or an unauthenticated local/voice owner task). The script has no tier check of its own.

Guest tasks, every non-owner Slack task, and non-owner Discord tasks from senders outside the channel's collaborators list go to a read-only codex exec --sandbox agent with no cloud token, which cannot run this script. s.space Team tasks, broker-attested collaborators included, and a Discord channel's listed collaborators run in the owner's core with its normal tools (docs/access-control.md). Nothing structural stops them from running this script: the gate is prose, the in-band Team guardrail or collaborator rulebook (no external actions on their say-so) and the section below.

When a non-owner asks

This applies to every task whose access_tier is not owner, a collaborator's included. A teammate, a guest or another agent asking you to report a bug cannot be filed under your owner's identity. Never stay silent and never hand it to another agent. Answer them in one line: file it through your own report-feedback skill (a person: through their own Sutando), or with the Report a bug button in the s.space app (the bug icon in the composer), which files it under their own account. If your owner asks you to file it for them, it is the owner's report: file it as usual.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.