Skip to content

Require terminal output from Claude token optimizer - #11535

Merged
lpcox merged 4 commits into
mainfrom
copilot/aw-fix-daily-claude-optimization
Nov 13, 2026
Merged

lpcox merged 4 commits into
mainfrom
copilot/aw-fix-daily-claude-optimization

Conversation

Copilot AI commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

When no eligible workflow was staged, the optimizer exited without a terminal safe output, leaving completion unconfirmed. Configure noop for successful runs that have no optimization issue to create, including the no-target and no-report paths.

  • Safe outputs: Add a noop output that does not create an issue.
  • Completion guidance: Require exactly one terminal output—create_issue for recommendations, noop otherwise.
  • Regression coverage: Assert the no-issue configuration and early-exit instructions.
noop:
  report-as-issue: false

Copilot AI changed the title [WIP] Fix completion signal for Daily Claude Token Optimization Advisor Require terminal output from Claude token optimizer Nov 13, 2026
Copilot AI requested a review from lpcox November 13, 2026 14:48
@lpcox
lpcox marked this pull request as ready for review November 13, 2026 15:44
Copilot AI adaptive review requested due to automatic review settings November 13, 2026 15:44

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.

🟡 Changes recommended

The prompt omits max: 1, leaving noop capped at 2 and allowing multiple terminal outputs despite the single-output contract; the configuration and compiled lock should be corrected.

1 open issue
What changed in this PR

Updates the Claude token optimizer workflow so successful runs always emit a terminal safe output, including noop when no optimization issue should be created.

Changes:

  • Adds a non-issue noop safe-output configuration.
  • Updates no-target and no-report paths to require terminal safe output.
  • Adds regression assertions and regenerates the workflow lock metadata.
File Description
scripts/​ci/​smoke-copilot-workflow.test.ts Adds regression checks for the noop configuration and required early-exit instructions.
.github/​workflows/​claude-token-optimizer.md Configures noop and documents terminal safe-output behavior for successful runs and fallback paths.
.github/​workflows/​claude-token-optimizer.lock.yml Regenerates the compiled workflow metadata and safe-output configuration.

Review effort: Lite (dynamic)

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@lpcox

lpcox commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

Copilot AI commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

@copilot fix the failing ci unit-test check https://github.com/github/gh-aw-firewall/actions/runs/43456301326/job/131991227800?pr=11535

Fixed in c6d38da. The regression test now expects noop.max: 1, and the compiled lock reflects that cap. Workflow compilation and lock post-processing passed; local Jest execution was blocked because npm dependencies could not be installed in this environment.

@lpcox
lpcox merged commit 13b097e into main Nov 13, 2026
36 of 38 checks passed
@lpcox
lpcox deleted the copilot/aw-fix-daily-claude-optimization branch November 13, 2026 16:56
lpcox added a commit that referenced this pull request Nov 20, 2026
…1850)

* docs(diagnostics): add CI-012 terminal safe-output finding and CI-008 citation

- CI-012: agentic workflow exits 0 without a terminal safe output (issue #11523, PR #11535)
- CI-008: cite PR #11558 for local-build config sync on published-release workflows
- Regenerate docs/diagnostics/README.md index

Co-authored-by: Copilot <[email protected]>

* docs(diagnostics): scope CI-012 to Copilot

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

* docs: regenerate diagnosis artifacts

Co-authored-by: Copilot App <[email protected]>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: lpcox <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Landon Cox <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Daily Claude Token Optimization Advisor: finished without a terminal safe output

3 participants