Skip to content

logs --adoption: one run without lifecycle identity aborts the whole batch #79254

Done

Description

@mnkiefer

Problem

When one run's lifecycle session lacks its format or execution identity (pkg/cli/logs_lifecycle_evidence.go), pkg/cli/logs_outcomes.go returns evaluate adoption for run %d: … for the entire logs --adoption invocation. No JSON is produced for any other run in the batch. .github/skills/cracktro/refresh/from-delivery-to-value.md already notes this error for runs 40283474974 and 41401517986.

Evidence

Collecting the 10 most recent runs for each of three workflows (auto-triage-issues, glossary-maintainer, daily-compiler-quality) with --adoption --artifacts usage, 8 runs hit this error. Each occurrence discarded the whole batch; isolating the run and retrying re-downloaded the remaining runs, so the pilot used about 1,300 GitHub API requests instead of the expected ~300.

Proposed fix

Record the failure per run, for example adoption_errors: [{"run_id": 44062786863, "reason": "lifecycle_identity_missing"}], keep the run in runs[], and continue evaluating the rest. The JSON stays valid and the coverage gap remains explicit.

Reproduce

Observed with gh aw built from da62a9b1a8 when requesting the 10 most recent glossary-maintainer runs:

gh run list --repo github/gh-aw --workflow glossary-maintainer.lock.yml --limit 10 --json databaseId --jq '.[].databaseId' |
  gh aw logs --stdin --count 10 --repo github/gh-aw --adoption --artifacts usage --json

The command exited with evaluate adoption for run 44062786863: lifecycle session is missing its format or execution identity and reported none of the 10 runs. Removing that run produced the same error for 43847315458 and then 42008792449 before the remaining runs were returned.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions