Skip to content

[DOCS] Document the mirror-agent-logs input for infer-action #223

Closed

Description

Summary

inference-gateway/infer-action shipped a new public input, mirror-agent-logs, in PR #74 (closed issue #67). It needs to be documented on the infer-action inputs reference.

User-facing behavior:

  • New boolean input mirror-agent-logs, default "true" (backward compatible - current behavior is preserved).
  • When true (default), the agent's full stdout/stderr transcript (tool inputs, tool outputs, file contents it read, web-fetch payloads, intermediate text) is mirrored to the GitHub Actions run log.
  • When false, that transcript is suppressed from the Actions run log. The /tmp/agent-output.txt tee is unaffected, so the (redacted) cooking-comment footer and the step summary still render in full. A minimal heartbeat (ticker updates and the exit code) still prints, so the step is not completely silent.
  • Wired to the runner as the INFER_MIRROR_AGENT_LOGS env var.

Why it matters: security-conscious consumers can keep the agent's full transcript out of the persisted run log, which is retained with the workflow run, downloadable as raw logs, and visible to everyone with repo read access (the whole world for public repos). ::add-mask:: only redacts known secret values; this input is a hard off-switch for arbitrary sensitive payloads (private source, customer data in a fetched page, a secret printed by a tool).

Affected pages

  • The infer-action inputs reference (the page that lists model, debug, enable-heuristic-redaction, web-fetch-domains, etc.). Add mirror-agent-logs next to the other observability / security inputs.
  • Any "logs, privacy, or security" section for infer-action: note the trade-off (suppressing the transcript vs. losing the live Actions-log view of what the agent did).

Example to add

- uses: inference-gateway/[email protected]
  with:
    model: anthropic/claude-opus-4-8
    github-token: ${{ secrets.GITHUB_TOKEN }}
    mirror-agent-logs: false  # keep the full agent transcript out of the Actions run log

Source

Acceptance Criteria

  • mirror-agent-logs documented on the infer-action inputs reference (boolean, default true).
  • Security trade-off explained, including that /tmp/agent-output.txt, the cooking-comment footer, and the step summary are unaffected and that a minimal heartbeat still prints.
  • Example showing mirror-agent-logs: false added.

Activity

  1. added
    documentation
    on Jun 14, 2026
  2. edenreich commented on Jun 14, 2026

    @edenreich
    Contributor

    @infer Can you document it? use /maintainer

  3. inference-gateway-maintainer commented on Jun 14, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Todos

    • Explore repository structure to find infer-action inputs reference and security/logs pages
    • Add mirror-agent-logs to the infer-action inputs reference page
    • Add mirror-agent-logs to any logs/privacy/security section for infer-action
    • Add example showing mirror-agent-logs: false
    • Create branch, commit, push, and open PR

    Pull Request

    #224

    ✅ Infer Result: Success

    All acceptance criteria from the issue are met:

    • ✅ mirror-agent-logs documented on the infer-action inputs reference (boolean, default true)
    • ✅ Security trade-off explained, including that /tmp/agent-output.txt, the cooking-comment footer, and the step summary are unaffected and that a minimal heartbeat still prints
    • ✅ Example showing mirror-agent-logs: false added
    • ✅ PR docs: document mirror-agent-logs input for infer-action #224 opened against main

    The task is complete.

    Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · View Job

    Tokens: 1,325,150 in · 6,578 out · 1,331,728 total (38 requests)

    Tool calls: 36 total · 100% success rate

    Triggered by edenreich · Infer Action

  4. moved this from Todo to Done in 2026on Jun 14, 2026
  5. inference-gateway-releaser commented on Jun 16, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.6.111 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions