Skip to content

sweep: a pending or dismissed approval card reaches the model's history as Done #35

Closed

Description

@frostyard-machines

Kind: inconsistency. Severity: medium.

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.").

Where (at 1f7185f):

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

  1. added
    sweep
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sweep

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions