You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sweep: a pending or dismissed approval card reaches the model's history as Done #35
Rule:docs/adr/0004-porter-drafts-and-the-owner-sends.md:41: a routine's action that it may not take "waits as an approval, a card in the thread"; nothing runs until the owner approves it. The tool result that porterd gives the model at the time says so (internal/agent/agent.go:295: "Proposed to the owner as an approval card; nothing is done unless they approve it.").
internal/agent/agent.go:401-420, outcome, writes what a past card's tool returned. It handles api.CardCapture by status, and StatusFailed; every other card, an api.CardApproval with status pending or cancelled included, becomes "Done: " + c.Summary + ".".
Why it matters: after a routine proposes an approval, the next chat turn (or a search_thread) tells the model the action is done while it still waits for the owner, or after the owner dismissed it, so Porter can report a flag, move or append that never happened.
Suggested fix: handle api.CardApproval in outcome by status (pending: waits for the owner's approval; cancelled: dismissed, nothing done; done: approved and done), as capture cards are, and add a test for each status. Size: S.
Activity