Skip to content

[cli-tools-test] logs: workflow-filtered runs missing fields (engine_id, actor, sha) compared to unfiltered #34888

@ghost

Description

Problem Description

When calling the logs tool with a workflow_name filter, the returned run objects are missing several fields that are present when calling without a filter. This creates inconsistent data depending on the query type.

Tool

  • Tool: logs

Steps to Reproduce

  1. Call logs without any filters (unfiltered path)
  2. Call logs with workflow_name: "bot-detection" (filtered path)
  3. Compare the run object fields

Expected Behavior

Run objects should have a consistent set of fields regardless of whether a workflow_name filter is applied.

Actual Behavior

Filtered runs (by workflow_name) are missing these fields:

  • agent (e.g., "codex")
  • engine (e.g., "Codex")
  • engine_id (e.g., "codex")
  • actor (e.g., "pelikhan")
  • organization (e.g., "github")
  • repository (e.g., "github/gh-aw")
  • ref (e.g., "refs/heads/main")
  • sha (full commit SHA)
  • run_attempt
  • event_name

Meanwhile, filtered runs have additional fields not in unfiltered:

  • avg_time_between_turns
  • conclusion
  • effective_tokens
  • temporary_id_map_status
  • turns

This suggests the two paths use different data sources and enrichment logic that aren't reconciled.

Environment

  • Repository: github/gh-aw
  • Workflow Run: §26436212879
  • Date: 2026-05-26

Impact

  • Severity: Medium
  • Frequency: Always (reproducible)
  • Workaround: None — callers must handle missing fields defensively

Diagnostic Evidence

Unfiltered run object includes:

{
  "run_id": 26436319891,
  "agent": "codex",
  "engine": "Codex",
  "engine_id": "codex",
  "actor": "pelikhan",
  "organization": "github",
  "repository": "github/gh-aw",
  "ref": "refs/heads/main",
  "sha": "ccf77c4da6b6fa1af0826b4542c3259213fbb402"
}

Filtered run object (same workflow, by workflow_name: "bot-detection") is missing all the above fields.

Additional Context

Tested during daily CLI tools exploratory testing session (run §26436212879).

Generated by 🧪 Daily CLI Tools Exploratory Tester · sonnet46 2.2M ·

  • expires on Jun 2, 2026, 6:39 AM UTC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions