toolspace › registry › Muninn perch_triage
Muninn perch_triage
Triage open Perch flight-log discussions by reaction signal. Groups them into action buckets (auto-close, discuss, file-issue, hold, correct, nag). Optional auto-close path executes the THUMBS_UP/LAUGH bucket.
Install
install-manifest install https://raw.githubusercontent.com/oaustegard/muninn-utilities/main/manifests/perch-triage/muninn-perch-triage.v0.4.json
manifest JSON · source · docs · issues · homepage
Security
| Kill switch | manual Manual procedure: — |
|---|---|
| Smoke contract | shell timeout 15s |
Scopes
-
github.discussionsread, write github-pat (coarse; full account write access)Reads open Flight Log discussions and their reactions. When auto_close=true and a discussion has a THUMBS_UP/LAUGH reaction, writes a closing comment and toggles state to CLOSED.
-
memory.trackingwrite turso-libsql-token (coarse; full DB access)When auto_close=true, writes a `world`-typed memory summarising each auto-closed flight log so the closure remains traceable. Read-only when auto_close=false.
-
net.outboundread, write api.github.com, *.turso.ioTalks to api.github.com (GraphQL for discussion read, REST for close-with-comment) and to the configured Turso libSQL host when auto-closing.
Data boundary
Reads
github.discussionssensitivity: low
Transmits
-
api.github.com none-per-vendor-tos
discussion read + auto-close write
env.GH_TOKEN
Persists
—
Tool-local retention: 365 day(s).
Actions
-
triage destructive
Read open Flight Log discussions and group them by reaction-driven action. Optionally auto-close the THUMBS_UP / LAUGH bucket. ·
github.discussionsmemory.trackingnet.outbound- Goal
- Triage Perch flight logs by reaction; optionally auto-close the obvious-good bucket.
- Inputs
auto_close (bool, default true), nag_days (int, default 3), limit (int, default 25)- Outputs
{auto_closed, discuss_priority, file_issues, hold, correction, close_not_useful, close_celebrate, nag, unreacted_recent} — each an array of log dicts- Errors
auth_invalid, category_not_found, network_unreachable, tracking_unconfigured (when auto_close=true and TURSO_* not set)- Example
triage auto_close=false nag_days=3
-
triage_report read idempotent
Format a triage result as a concise human-readable report. Read-only. ·
github.discussions- Goal
- Render a triage result as text.
- Inputs
result (optional triage output dict)- Outputs
{report: string}- Errors
(inherits from triage when result=null)- Example
triage_report
Environment
GH_TOKEN |
GitHub personal access token. Reads discussion content and reactions; writes only when auto_close=true (closes the discussion with a comment). Same coarse credential as perch_publish, issue_close, blog_publish, verify_patch. Falls back to GITHUB_TOKEN. required · secret: yes · obtain |
|---|---|
GITHUB_TOKEN |
Optional fallback for GH_TOKEN. The source reads `os.environ.get('GH_TOKEN') or os.environ.get('GITHUB_TOKEN')`. optional · secret: yes · obtain |
TURSO_TOKEN |
Turso libSQL auth token for the Muninn memory database. Required only if you intend to use auto_close=true; the recommendation-only path does not write memories. Optional. optional · secret: yes · obtain |
TURSO_URL |
Hostname of the Muninn memory libSQL database. Same conditional rule as TURSO_TOKEN. optional · secret: no |
Verify & cost
| Install fee | 0¢ |
|---|---|
| Monthly fee | 0¢ |
| Usage model | external |
Runtime
runtime: python-module · install method: preinstalled · entrypoint: python -m muninn_utils.perch_triage
Two operating modes. **Recommendation-only** (auto_close=false): reads open Flight Log discussions on oaustegard/claude-skills, classifies each by primary reaction (priority order: ROCKET > HEART > CONFUSED > EYES > HOORAY > THUMBS_DOWN > THUMBS_UP > LAUGH), groups them into action buckets, and returns the report. Pure read; no GitHub writes, no memory writes. **Auto-close** (auto_close=true, default): for THUMBS_UP / LAUGH reactions only, additionally writes a `world`-typed memory summarising the log, then closes the GH discussion with a comment referencing the memory id. Issue #5 calls this out as the test for a tool that produces a recommendation rather than a change — the recommendation-only mode is read-only with no writes; the auto-close mode is write-and-destructive on a narrow reaction set.
Tags: githubdiscussionstriageflight-logsreactions
License: MIT
Last fetched 2026-06-18T09:09:16Z (live)