Skip to content

Remove logs cached-logs alias - #60933

Merged
pelikhan merged 3 commits into
mainfrom
copilot/remove-cached-logs-alias
Sep 15, 2026
Merged

pelikhan merged 3 commits into
mainfrom
copilot/remove-cached-logs-alias

Conversation

Copilot AI commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

The logs command should expose cached JSONL reuse only through --cached-jsonl. This removes the duplicate --cached-logs alias from the CLI and related docs.

  • CLI

    • Removed --cached-logs flag registration.
    • Read cached log input directly from --cached-jsonl.
    • Updated help text and examples to show wildcard cache usage with --cached-jsonl.
  • Tests

    • Updated flag coverage to assert --cached-logs is no longer registered.
    • Removed alias-specific option wiring test.
  • Docs

    • Removed --cached-logs from the CLI option list.
    • Updated cached JSONL and wildcard cache documentation to reference --cached-jsonl only.

Run: https://github.com/github/gh-aw/actions/runs/34906446596

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See Network Configuration for more information.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 12 AIC · ⊞ 9K · ◷
Comment /souschef to run again


Run URL: https://github.com/github/gh-aw/actions/runs/34908198413

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See Network Configuration for more information.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 11.3 AIC · ⊞ 9.4K · ◷
Comment /souschef to run again

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan September 14, 2026 22:16
@pelikhan
pelikhan marked this pull request as ready for review September 14, 2026 22:26
Copilot AI balanced review requested due to automatic review settings September 14, 2026 22:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The implementation, tests, and documentation consistently remove the alias without changing wildcard cache functionality.

Pull request overview

Removes the redundant --cached-logs alias while retaining wildcard caching through --cached-jsonl.

Changes:

  • Simplifies CLI flag registration and option loading.
  • Updates tests, help text, documentation, and ADR wording.
File summaries
File Description
pkg/cli/logs_command.go Removes alias handling and updates help.
pkg/cli/logs_command_test.go Verifies the alias is absent.
docs/src/content/docs/setup/cli.md Updates CLI reference documentation.
docs/adr/60702-support-wildcard-cached-logs-files.md Aligns the draft decision with the simplified interface.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Lean already. Ship.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • ab.chatgpt.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "ab.chatgpt.com"

See Network Configuration for more information.

Generated by Ponytail Reviewer for #60933

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Warning

Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding.

What happened

The threat detection engine failed to produce results.

Review the workflow run logs for details.

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See Network Configuration for more information.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ PR Code Quality Reviewer failed during code quality review.

Warning

Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding.

What happened

The threat detection engine failed to produce results.

Review the workflow run logs for details.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel skipped because pre-fetch PR data was unavailable: unable to fetch test file diff

🧪 Test quality analysis by Test Quality Sentinel

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review 🧠

Applied /codebase-design and /grill-with-docs — requesting changes on process gaps around a released-flag removal.

📋 Key Themes & Highlights

Key Themes

  • Missing changeset: --cached-logs was a released alias (shipped with the wildcard-cache feature in PR #60702, called out as live in the 2026-09-14 weekly blog post). Removing a flag is always a breaking change per this repo's Breaking CLI Rules, which requires a major changeset with migration guidance. None was added in this diff.
  • ADR rewritten in place: The PR edits ADR-60702's body text to erase the original alias decision instead of superseding it, which conflicts with the repo's "immutable once accepted" ADR philosophy.

Positive Highlights

  • ✅ Code, tests, help text, and docs are all kept consistent — no stray --cached-logs references remain in the diff.
  • ✅ Clear, focused change with a good rationale in the PR description.

See inline comments for specifics. @copilot please address the review comments above.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See Network Configuration for more information.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · 140.2 AIC · ⌖ 15.2 AIC · ⊞ 10.4K
Comment /matt to run again

Comment thread pkg/cli/logs_command.go
@@ -642,7 +642,6 @@ func addLogsCommandFlags(logsCmd *cobra.Command, validArtifactSets string) {
logsCmd.Flags().String("format", "", "Output format: console (decorated tables), tsv (tab-separated), pretty (cross-run report), markdown (cross-run Markdown). Default: compact agent-optimized output")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/codebase-design] This removes a flag (--cached-logs) that shipped in the released wildcard-cache feature (PR #60702, referenced in the 2026-09-14 weekly blog post as already live). Per this repo's Breaking CLI Rules, removing a flag always requires a major changeset with migration guidance — I don't see a new file added under .changeset/ in this diff.

💡 Suggested changeset

Add .changeset/major-remove-cached-logs-alias.md:

---
"gh-aw": major
---

Remove the `--cached-logs` alias for `--cached-jsonl` on `gh aw logs`.

**Migration:** replace `--cached-logs` with `--cached-jsonl` (including wildcard prefixes such as `--cached-jsonl 'logs-*'`).

Without this, the release script won't record the breaking change or generate migration notes in CHANGELOG.md.

@copilot please address this.

---

### Context

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/grill-with-docs] This edits the body of an existing ADR to erase its original decision (adding the --cached-logs alias) rather than superseding it. The repo's ADR philosophy states ADRs are "immutable once accepted — never deleted; superseded ones marked 'Superseded by ADR-XXXX'". Since this PR reverses part of ADR-60702's decision, editing the original text in place hides the historical record of why the alias existed and was later removed.

💡 Suggested approach

Either:

  1. Leave ADR-60702 as the historical record of the original (now partially reversed) decision and add a new ADR (e.g. docs/adr/NNNN-remove-cached-logs-alias.md) documenting this removal, updating ADR-60702's status line to Superseded by ADR-NNNN for the alias-related content, or
  2. If ADR-60702 is still Draft and was never actually accepted/released, downgrade/mark it Deprecated instead of silently rewriting its narrative.

This keeps the decision trail intact for future readers trying to understand why --cached-logs briefly existed.

@copilot please address this.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot This PR looks blocked on review follow-up rather than checks. Please address the requested changes: add the required major changeset for removing the released --cached-logs flag alias, preserve ADR history instead of rewriting ADR-60702 in place, then run the pr-finisher skill and update the branch once those fixes are pushed.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See Network Configuration for more information.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 12 AIC · ⊞ 9K · ◷
Comment /souschef to run again

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>

Copilot AI commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

@copilot This PR looks blocked on review follow-up rather than checks. Please address the requested changes: add the required major changeset for removing the released --cached-logs flag alias, pres...

Addressed in dd5aa64:

  • Added .changeset/major-remove-logs-cached-logs-alias.md as a major changeset with a migration note (--cached-logs → --cached-jsonl).
  • Restored docs/adr/60702-support-wildcard-cached-logs-files.md to its original text so the ADR history isn't rewritten, and recorded the alias removal in new docs/adr/60933-remove-logs-cached-logs-flag-alias.md, which amends only the neutral "CLI surface grows by one alias" consequence of ADR-60702.

Branch is up to date with main (merge-base equals origin/main), and make agent-report-progress (fmt, lint, recompile, lock-file drift check, unit tests) passes.

Copilot AI requested a review from gh-aw-bot September 14, 2026 23:13
@pelikhan
pelikhan merged commit 7ab09f0 into main Sep 15, 2026
34 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.89.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants