factory design: ask inbox + engage side (#613 follow-up) #614
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#614
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?
Context
#613 ("factory design: incident/healer view + ask inbox + engage side", #611 follow-up) scoped both read-side screens (incident/healer view, ask inbox) plus the composition-of-existing-protocols half of engage. #613 closed on its delivered, proven slice — the Incidents tab (
.sandcastle/tui/,data/healer_ledger.py) — per #607/#611's own precedent (aready-for-sessionticket left open across sessions scores "no progress" under this repo's session-runner rules) rather than sit open indefinitely. This ticket carries everything #613 named that didn't fit in that slice.Scope
Read side (still a real gap, not a stub):
ask-human.shthreads..sandcastle/ask-human.shposts a parking notice and times out toready-for-human;.sandcastle/post-issue-ask.shwrites the idempotent marker (the outstanding-question check against the Mattermost thread, not a local file — confirmed by reading the script: there is no local marker file, the idempotency is entirely thread-state-derived);.sandcastle/resume-parked-asks.shis the sweep that later consumes a reply (resume order is load-bearing: copy ruling → re-arm → consume thread LAST, perdocs/agents/swarm-atlas.md§6). Unlike the Incidents tab (a local ledger-file read), this screen's data lives in Forgejo (ready-for-humanissues) crossed with Mattermost thread state — needs bothFORGEJO_TOKENand Mattermost bot credentials, closer in shape to the Queue tab's network-bound read than the Fleet/Incidents tabs' local-file read.Engage side — the composition-of-existing-protocols half only (all two-way doors under ADR 0174, agent-shaped once picked up, per #573's own ruling, carried forward unchanged by #611/#613):
ask-human.sh/post-issue-ask.sh/resume-parked-asks.sh)./labelssub-endpoint (seedocs/agents/issue-tracker.md— alabelsfield in an issue PATCH is silently ignored).rearm_dispatch.Explicitly NOT this ticket: cancelling a live run — already shipped, #612.
Suggested next slice
Same shape as #573/#607/#611/#613's own slice-by-slice history: the ask inbox is the next-cheapest read-only piece, following the Queue tab's network-read pattern (
data/tracker.py) rather than the Fleet/Incidents tabs' local-file pattern — a newdata/ask_inbox.pymodule (Forgejoready-for-humanissues joined against Mattermost thread state, injectable fetch functions for both liketracker.py's_http_getseam) + a newTabbedContentpane + offline tests with faked fetches (no real network in the suite, matchingtest_tracker.py's posture) — live-smoke-verified on matou-workstation. The engage-side write actions (answer-ask, label writes,rearm_dispatch) are a separate slice again: each is a real write against the tracker or Mattermost, wants its own confirm-before-fire UX design (the Cancel action's two-keypress arm/confirm, #612, is the nearest precedent) rather than being bolted onto the inbox read.Ruled by agent under ADR 0174 (scope split, revertible/provable, no one-way-door): filed
ready-for-sessionto match #573/#607/#611/#613's own label — this is factory/dev tooling requiring the session's host standing, not Ben.Close report
Ruled by agent under ADR 0174 — veto anytime. Scope split (revertible/provable, no one-way-door): this session took #614's own "Suggested next slice" (the ask inbox — a network-bound read joining two APIs) and delivered it in full; the engage-side write actions (answer-ask, label writes,
rearm_dispatch) are split into a follow-up ticket, same precedent as #607/#611/#613's own slice history — aready-for-sessionticket left open across sessions scores "no progress" under this repo's session-runner rules, so closing on the delivered, proven slice rather than sitting open.What landed (
Matou/ourcloud@35cee49):.sandcastle/tui/data/ask_inbox.py— new module joining Forgejo's openready-for-humanissues against their Mattermost ask-thread state. The thread-state logic (candidate-thread selection, current-question, consumed-vs-outstanding) mirrorsask-human.sh/post-issue-ask.sh/resume-parked-asks.sh's own jq exactly, in pure Python, since there is no local marker file to read instead — confirmed by readingpost-issue-ask.sh: idempotency is entirely thread-state-derived, correcting what #613's body had said. Two independent injectable fetch seams (Forgejo, Mattermost), same shape astracker.py's_http_get. Missing Mattermost config (MATTERMOST_URL/MATTERMOST_CHANNEL_ID/bot token) degrades every row tostate: chat-unavailableinstead of erroring the whole screen — the Forgejo half stays independently useful..sandcastle/tui/app.py— sixthTabbedContentpane,#inbox-table(number/title/state/detail), its own 30s refresh interval and inline#inbox-errorpanel — same network-bound shape as the Queue tab (crosses two APIs, touches no local host state), not the Fleet/Incidents tabs' local-file cadence..sandcastle/tui/README.md,STATUS.md— updated in the same commit per this repo's own rule.Proof:
test_ask_inbox.py, 4test_app.py, plus 6 more from re-covering the new_apphelper params), full TUI suite 102/102 green. No real network call in the suite — every test injects fake Forgejo/Mattermost fetches, same posture astest_tracker.py.ask_inbox.fetch_parked_issues()against the realgit.matou.nzAPI with this session'sFORGEJO_TOKEN— correctly returned the 8 real openready-for-humanissues (#606, #601, #506, #475, #473, #471, #425, #183).FORGEJO_TOKENbut not the Mattermost bot credential — the realmattermost_bot_token/MATTERMOST_URL/MATTERMOST_CHANNEL_IDlive only in the swarm's own checkout/CI secrets, outside what this session was granted. So rather than reach for host files outside that grant, I ran the actualapp.pyend-to-end through Textual's test harness with the real Forgejo fetch and no Mattermost config — confirming the realchat-unavailablefallback path renders correctly (8 rows, allchat-unavailable), which is exactly the environment this checkout runs in. A live Mattermost thread walk (outstanding/answered-pending-sweep/idle) is covered by the offlineFakeMattermostApi-based tests instead, and should get a real live-smoke pass from a session that does carry Mattermost bot standing.Follow-up: engage-side write actions (answer-ask, label writes,
rearm_dispatch) filed as #615,ready-for-session, same label as this ticket's own.matou-build-agent referenced this issue2026-08-20 05:45:13 +00:00