Skip to content

arc-dind: agent logs are written under RUNNER_TEMP but the summary parser reads /tmp/gh-aw #72896

Backlog

Description

@jonas-harmoney

Split from #66926 (finding 1), as requested in #66926 (comment).

Summary

On the arc-dind topology awf writes the agent logs under ${RUNNER_TEMP}/gh-aw/sandbox/agent/logs, while parse_copilot_log.cjs reads /tmp/gh-aw/sandbox/agent/logs. The parser finds nothing and the agentic conversation is missing from every run summary.

State at v0.92.0

The firewall half of this was fixed by #66223, released in v0.91.4. We have taken that upgrade and deleted the firewall half of our workaround — confirmed, that one is closed.

The agent half is unchanged. @pelikhan's own recheck points at the same place: the summary parser consumes the unadjusted engine path in pkg/workflow/compiler_yaml_ai_execution.go (L195-L202 at ffdd9c9), while arc-dind execution rewrites the paths.

What we carry

steps:
  - name: Link the awf agent log dir the summary parser reads
    run: |
      mkdir -p /tmp/gh-aw/sandbox/agent "${RUNNER_TEMP}/gh-aw/sandbox/agent/logs"
      rm -rf /tmp/gh-aw/sandbox/agent/logs
      ln -s "${RUNNER_TEMP}/gh-aw/sandbox/agent/logs" /tmp/gh-aw/sandbox/agent/logs

post-steps:
  - name: Unlink the awf agent log dir before artifact consolidation
    # consolidation copies /tmp/gh-aw into RUNNER_TEMP/gh-aw and cannot replace a logs dir with the link
    if: always()
    run: rm -f /tmp/gh-aw/sandbox/agent/logs

The post-step is load-bearing: artifact consolidation copies /tmp/gh-aw into ${RUNNER_TEMP}/gh-aw and cannot replace a real logs directory with a symlink. So a naive symlink workaround trades a missing summary for a failing consolidation step — worth knowing for anyone else on arc-dind.

Ask

Give the agent log parser the same treatment #66223 gave the firewall parser, so producer, parser and artifact consolidation agree on one path. Acceptance for us is both summary panels populated and consolidation green with no symlink in the workflow.

Evidence

Run 37612927710, "no agent log files found in directory". That run has since been purged from our Actions history — our retention is far shorter than we assumed, which is also why several run ids in the umbrella issue now 404. We can reproduce on demand on v0.92.0.

Activity

  1. locked and limited conversation to collaborators on Oct 29, 2026
  2. unlocked this conversation on Oct 29, 2026
  3. lpcox commented on Oct 29, 2026

    @lpcox
    Collaborator

    🔗 AWF tracking issue: #aw_track3

    Generated by Firewall Issue Dispatcher · copilot · auto · ~24 AIC · ⊞ 5.5K · ◷

  4. lpcox commented on Oct 30, 2026

    @lpcox
    Collaborator

    🔗 AWF tracking issue: #aw_track5

    Generated by Firewall Issue Dispatcher · copilot · auto · ~19 AIC · ⊞ 5.5K · ◷

  5. lpcox commented on Oct 31, 2026

    @lpcox
    Collaborator

    🔗 AWF tracking issue: #aw_track1

    Generated by Firewall Issue Dispatcher · copilot · auto · ~19 AIC · ⊞ 5.5K · ◷

  6. lpcox commented on Nov 1, 2026

    @lpcox
    Collaborator

    🔗 AWF tracking issue: #aw_trk72896

    Generated by Firewall Issue Dispatcher · copilot · auto · ~21 AIC · ⊞ 5.5K · ◷

  7. lpcox commented on Nov 1, 2026

    @lpcox
    Collaborator

    This remaining fix should be implemented in gh-aw, not gh-aw-firewall. I closed github/gh-aw-firewall#10969 (which contains no file changes) and its tracking issue github/gh-aw-firewall#10944 as not planned in that repository; the bug reported here remains open.

    The ownership boundary is the key point: AWF handles sandbox execution and Docker bind-mount/path translation, while gh-aw generates the engine invocation, selects the input path for parse_copilot_log.cjs, and performs artifact consolidation. As this issue notes, the compiler passes the parser the unadjusted engine path even though ARC/DinD execution uses a relocated runner-visible path. The fix needs to resolve that effective path in gh-aw and use it consistently for the producer, summary parser, and artifact handling, following the firewall-parser treatment in #66223.

    Making AWF also expose logs at a hard-coded /tmp/gh-aw/sandbox/agent/logs location would couple a general-purpose firewall to gh-aw’s internal directory layout and conceal the consumer-side mismatch. A symlink is not a sound substitute either: the workaround documented here already requires removal before consolidation to avoid failures. Regression coverage should live with gh-aw’s generated execution/parsing/consolidation flow and verify populated agent summaries plus successful ARC/DinD artifact consolidation without symlinks.

  8. added
    backlog:runners-tools
    on Nov 21, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions