Skip to content

sweep: no tool call is logged, but the design and AGENTS.md promise app, tool, status and duration #36

Closed

Description

@frostyard-machines

Kind: gap. Severity: medium.

Rule: docs/design/overview.md:308-309: "Logs: each tool call is logged with its app, tool, status and duration, never its content." AGENTS.md:133-134: "Never log a prompt, a tool result or a token. Log the app, the tool, the status and the duration."

Where (at 1f7185f):

  • internal/agent/agent.go:251, Agent.call, runs every tool call (attended, unattended, capture and approval) and returns a card; it writes no log line. The agent's log calls are only at lines 82, 99, 156, 178 and 186 (grep -n 'a.log()' internal/agent/*.go), none of them a tool call.
  • internal/tools/registry.go logs only an app whose tools are unavailable (line 57); its Call path logs nothing and measures no duration.

Why it matters: the owner cannot see in the journal which app and tool Porter called, whether it failed, or how long it took, so a wrong or refused action (or a slow app) cannot be traced, as the design promises.

Suggested fix: at the end of Agent.call (or in Registry.Call), log the app, the tool, the card's status and the elapsed time, with no arguments or results, and add a test with a capturing slog handler that also checks no argument text is logged. 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