Skip to content

fix: preserve -1 in runtime AI credit budget codegen - #77479

Merged
pelikhan merged 5 commits into
mainfrom
pelikhan/awf-unlimited-support
Nov 13, 2026
Merged

pelikhan merged 5 commits into
mainfrom
pelikhan/awf-unlimited-support

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

The generated digits-only guard replaced -1 with the built-in AI credit budget even though AWF supports the disable sentinel. Allow -1 through the existing guard without changing other fallback behavior.

Adds generated-script regression coverage for agent, detection, and evals budgets, updates the related documentation/specification, and recompiles workflow lockfiles. K/M parsing remains unchanged and is tracked in github/gh-aw-firewall#11532.

Relates to #77140

Validation

  • Focused runtime-budget and admission regression tests pass.
  • Standard Go lint passes.
  • All 366 workflows compile, and the workflow-drift check passes.
  • All regenerated changes, including the compressed Windows script, contain only the -1 guard fix.
  • The full gate still reports pre-existing custom-lint findings.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review November 13, 2026 14:45
Copilot AI adaptive review requested due to automatic review settings November 13, 2026 14:45
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

❌ PR Specification Reviewer failed to deliver outputs. Please review the logs for details.

PR Specification Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from PR Specification Reviewer · gpt56 · ~2 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 1.7K · ◷

Generated by PR Specification Reviewer for #77479

@github-actions

github-actions Bot commented Nov 13, 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.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 8.6K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from PR Code Quality Reviewer · gpt56 · ~3 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 1.6K · ◷

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · routed: gpt61 medium · ~4 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 182 · ◷

Generated by Ponytail Reviewer for #77479

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 7.2K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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

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

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

@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.

No actionable correctness, performance, or security issues found in the changed lines. The new runtime regression coverage exercises the -1 sentinel and fallback behavior across agent, detection, and evals configurations.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again

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.

🔵 Needs a closer look

The generic secret scan did not complete, so human review is needed before approval.

No open issues 🎉

What changed in this PR

This PR updates gh-aw’s generated runtime budget guard to preserve -1, allowing the firewall to disable the configured AI credit budget instead of substituting the built-in default. It addresses the sentinel portion of #77140; runtime K/M parsing remains unchanged.

Changes:

  • Accepts -1 alongside digits while preserving existing fallback behavior for other values.
  • Documents detection-budget disabling and the continued operator-controlled hard cap, and adds a patch changeset.
  • Regenerates workflow lockfiles with the updated guard.
File Description
pkg/​workflow/​awf_command_builder.go Allows -1 through the generated budget guard.
docs/​src/​content/​docs/​reference/​threat-detection.md Documents -1 support and remaining limits.
.github/​workflows/​workflow-skill-extractor.lock.yml Regenerates budget guards.
.github/​workflows/​workflow-health-manager.lock.yml Regenerates budget guards.
.github/​workflows/​workflow-generator.lock.yml Regenerates budget guards.
.github/​workflows/​windows-grower.lock.yml Regenerates budget guards.
.github/​workflows/​weekly-safe-outputs-spec-review.lock.yml Regenerates budget guards.
.github/​workflows/​weekly-otel-reference.lock.yml Regenerates budget guards.
.github/​workflows/​weekly-network-domains-audit.lock.yml Regenerates budget guards.
.github/​workflows/​weekly-issue-summary.lock.yml Regenerates budget guards.
.github/​workflows/​weekly-editors-health-check.lock.yml Regenerates budget guards.
.github/​workflows/​weekly-blog-post-writer.lock.yml Regenerates budget guards.
.github/​workflows/​visual-regression-checker.lock.yml Regenerates budget guards.
.github/​workflows/​video-analyzer.lock.yml Regenerates budget guards.
.github/​workflows/​update-astro.lock.yml Regenerates budget guards.
.github/​workflows/​unbloat-docs.lock.yml Regenerates budget guards.
.github/​workflows/​uk-ai-operational-resilience.lock.yml Regenerates budget guards.
.github/​workflows/​ubuntu-image-analyzer.lock.yml Regenerates budget guards.
.github/​workflows/​tidy.lock.yml Regenerates budget guards.
.github/​workflows/​test-quality-sentinel.lock.yml Regenerates budget guards.
.github/​workflows/​terminal-stylist.lock.yml Regenerates budget guards.
.github/​workflows/​technical-doc-writer.lock.yml Regenerates budget guards.
.github/​workflows/​super-linter.lock.yml Regenerates budget guards.
.github/​workflows/​sub-issue-closer.lock.yml Regenerates budget guards.
.github/​workflows/​stale-repo-identifier.lock.yml Regenerates budget guards.
.github/​workflows/​stale-pr-cleanup.lock.yml Regenerates budget guards.
.github/​workflows/​squad.lock.yml Regenerates budget guards.
.github/​workflows/​squad-plan.lock.yml Regenerates budget guards.
.github/​workflows/​squad-implement-worker.lock.yml Regenerates budget guards.
.github/​workflows/​squad-game-planner.lock.yml Regenerates budget guards.
.github/​workflows/​spec-librarian.lock.yml Regenerates budget guards.
.github/​workflows/​spec-extractor.lock.yml Regenerates budget guards.
.github/​workflows/​spec-enforcer.lock.yml Regenerates budget guards.
.github/​workflows/​smoke-work-queue.lock.yml Regenerates budget guards.
.github/​workflows/​smoke-work-queue-worker.lock.yml Regenerates the agent budget guard.
.github/​workflows/​smoke-work-queue-dispatcher.lock.yml Regenerates the agent budget guard.
.github/​workflows/​smoke-test-tools.lock.yml Regenerates budget guards.
.github/​workflows/​smoke-temporary-id.lock.yml Regenerates budget guards.
.github/​workflows/​smoke-service-ports.lock.yml Regenerates budget guards.
.github/​workflows/​smoke-security-alerts.lock.yml Regenerates budget guards.
.github/​workflows/​smoke-project.lock.yml Regenerates budget guards.
.github/​workflows/​smoke-pi.lock.yml Regenerates budget guards.
.github/​workflows/​smoke-pi-auto.lock.yml Regenerates the agent budget guard.
.github/​workflows/​smoke-issues.lock.yml Regenerates budget guards.
.github/​workflows/​smoke-github-codex.lock.yml Regenerates the agent budget guard.
.github/​workflows/​smoke-gemini.lock.yml Regenerates budget guards.
.github/​workflows/​smoke-codex-bare-auto.lock.yml Regenerates the agent budget guard.
.github/​workflows/​smoke-codex-auto.lock.yml Regenerates the agent budget guard.
.github/​workflows/​smoke-claude-sub-agents.lock.yml Regenerates the agent budget guard.
.github/​workflows/​smoke-claude-copilot.lock.yml Regenerates the agent budget guard.
.github/​workflows/​smoke-claude-copilot-auto.lock.yml Regenerates the agent budget guard.
.github/​workflows/​smoke-claude-auto.lock.yml Regenerates the agent budget guard.
.github/​workflows/​smoke-azure-pi.lock.yml Regenerates the agent budget guard.
.github/​workflows/​smoke-azure-codex.lock.yml Regenerates the agent budget guard.
.github/​workflows/​smoke-agy.lock.yml Regenerates the agent budget guard.
.github/​workflows/​slide-deck-maintainer.lock.yml Regenerates budget guards.
.github/​workflows/​sighthound-security-scan.lock.yml Regenerates budget guards.
.github/​workflows/​security-compliance.lock.yml Regenerates budget guards.
.github/​workflows/​schema-feature-coverage.lock.yml Regenerates budget guards.
.github/​workflows/​schema-consistency-checker.lock.yml Regenerates budget guards.
.github/​workflows/​safe-output-health.lock.yml Regenerates budget guards.
.github/​workflows/​research.lock.yml Regenerates budget guards.
.github/​workflows/​repository-quality-improver.lock.yml Regenerates budget guards.
.github/​workflows/​repo-tree-map.lock.yml Regenerates budget guards.
.github/​workflows/​release.lock.yml Regenerates the agent budget guard.
.github/​workflows/​refiner.lock.yml Regenerates budget guards.
.github/​workflows/​refactoring-cadence.lock.yml Regenerates budget guards.
.github/​workflows/​q.lock.yml Regenerates budget guards.
.github/​workflows/​purelock.lock.yml Regenerates budget guards.
.github/​workflows/​pr-triage-agent.lock.yml Regenerates budget guards.
.github/​workflows/​pr-specification-reviewer.lock.yml Regenerates budget guards.
.github/​workflows/​pr-sous-chef.lock.yml Regenerates budget guards.
.github/​workflows/​pr-nitpick-reviewer.lock.yml Regenerates budget guards.
.github/​workflows/​pr-finisher.lock.yml Regenerates budget guards.
.github/​workflows/​pr-description-caveman.lock.yml Regenerates budget guards.
.github/​workflows/​pr-code-quality-reviewer.lock.yml Regenerates budget guards.
.github/​workflows/​poem-bot.lock.yml Regenerates budget guards.
.github/​workflows/​plan.lock.yml Regenerates budget guards.
.github/​workflows/​org-health-report.lock.yml Regenerates budget guards.
.github/​workflows/​objective-impact-report.lock.yml Regenerates budget guards.
.github/​workflows/​notion-issue-summary.lock.yml Regenerates the agent budget guard.
.github/​workflows/​necromancer.lock.yml Regenerates budget guards.
.github/​workflows/​metrics-collector.lock.yml Regenerates budget guards.
.github/​workflows/​mergefest.lock.yml Regenerates budget guards.
.github/​workflows/​mcp-inspector.lock.yml Regenerates budget guards.
.github/​workflows/​linter-miner.lock.yml Regenerates budget guards.
.github/​workflows/​layout-spec-maintainer.lock.yml Regenerates budget guards.
.github/​workflows/​jsweep.lock.yml Regenerates budget guards.
.github/​workflows/​issue-monster.lock.yml Regenerates budget guards.
.github/​workflows/​issue-arborist.lock.yml Regenerates budget guards.
.github/​workflows/​hippo-embed.lock.yml Regenerates the agent budget guard.
.github/​workflows/​grumpy-reviewer.lock.yml Regenerates budget guards.
.github/​workflows/​gpclean.lock.yml Regenerates budget guards.
.github/​workflows/​glossary-maintainer.lock.yml Regenerates budget guards.
.github/​workflows/​front-page-copy-guard.lock.yml Regenerates budget guards.
.github/​workflows/​firewall.lock.yml Regenerates the agent budget guard.
.github/​workflows/​firewall-escape.lock.yml Regenerates budget guards.
.github/​workflows/​feature-grower.lock.yml Regenerates budget guards.
.github/​workflows/​example-permissions-warning.lock.yml Regenerates the agent budget guard.
.github/​workflows/​evoskill-evolver.lock.yml Regenerates budget guards.
.github/​workflows/​eslint-monster.lock.yml Regenerates budget guards.
.github/​workflows/​eslint-miner.lock.yml Regenerates budget guards.
.github/​workflows/​eslint-factory-dispatcher.lock.yml Regenerates budget guards.
.github/​workflows/​enterprise-docs-audit.lock.yml Regenerates budget guards.
.github/​workflows/​engine-conformance-pydantic-ai.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-pi.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-opencode.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-mini-swe-agent.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-kiro.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-goose.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-gemini.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-factory.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-dispatcher.lock.yml Regenerates budget guards.
.github/​workflows/​engine-conformance-deepseek-harness.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-cursor.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-crush.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-copilot.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-codex.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-claude.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-atomic.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-aider.lock.yml Regenerates the agent budget guard.
.github/​workflows/​engine-conformance-agy.lock.yml Regenerates the agent budget guard.
.github/​workflows/​duplicate-code-detector.lock.yml Regenerates budget guards.
.github/​workflows/​draft-pr-cleanup.lock.yml Regenerates budget guards.
.github/​workflows/​docs-noob-tester.lock.yml Regenerates budget guards.
.github/​workflows/​dictation-prompt.lock.yml Regenerates budget guards.
.github/​workflows/​dev.lock.yml Regenerates the agent budget guard.
.github/​workflows/​dev-hawk.lock.yml Regenerates budget guards.
.github/​workflows/​design-decision-gate.lock.yml Regenerates budget guards.
.github/​workflows/​deployment-incident-monitor.lock.yml Regenerates budget guards.
.github/​workflows/​dependabot-burner.lock.yml Regenerates budget guards.
.github/​workflows/​delight.lock.yml Regenerates budget guards.
.github/​workflows/​dead-code-remover.lock.yml Regenerates budget guards.
.github/​workflows/​dataflow-pr-discussion-dataset.lock.yml Regenerates budget guards.
.github/​workflows/​daily-workflow-updater.lock.yml Regenerates budget guards.
.github/​workflows/​daily-workflow-security-model.lock.yml Regenerates budget guards.
.github/​workflows/​daily-work-queues-report.lock.yml Regenerates budget guards.
.github/​workflows/​daily-tlc-test-expert.lock.yml Regenerates budget guards.
.github/​workflows/​daily-team-status.lock.yml Regenerates budget guards.
.github/​workflows/​daily-team-evolution-insights.lock.yml Regenerates budget guards.
.github/​workflows/​daily-syntax-error-quality.lock.yml Regenerates budget guards.
.github/​workflows/​daily-storify.lock.yml Regenerates budget guards.
.github/​workflows/​daily-squid-image-scan.lock.yml Regenerates budget guards.
.github/​workflows/​daily-spdd-spec-planner.lock.yml Regenerates budget guards.
.github/​workflows/​daily-security-red-team.lock.yml Regenerates budget guards.
.github/​workflows/​daily-security-observability.lock.yml Regenerates budget guards.
.github/​workflows/​daily-secrets-analysis.lock.yml Regenerates budget guards.
.github/​workflows/​daily-schema-audit-cursor.lock.yml Regenerates budget guards.
.github/​workflows/​daily-safe-output-integrator.lock.yml Regenerates budget guards.
.github/​workflows/​daily-report-dispatcher.lock.yml Regenerates budget guards.
.github/​workflows/​daily-repo-chronicle.lock.yml Regenerates budget guards.
.github/​workflows/​daily-reliability-review.lock.yml Regenerates budget guards.
.github/​workflows/​daily-regulatory.lock.yml Regenerates budget guards.
.github/​workflows/​daily-pr-review-cursor.lock.yml Regenerates budget guards.
.github/​workflows/​daily-performance-summary.lock.yml Regenerates budget guards.
.github/​workflows/​daily-news.lock.yml Regenerates budget guards.
.github/​workflows/​daily-multi-device-docs-tester.lock.yml Regenerates budget guards.
.github/​workflows/​daily-model-resolution.lock.yml Regenerates budget guards.
.github/​workflows/​daily-model-inventory.lock.yml Regenerates budget guards.
.github/​workflows/​daily-mcp-concurrency-analysis.lock.yml Regenerates budget guards.
.github/​workflows/​daily-malicious-code-scan.lock.yml Regenerates the agent budget guard.
.github/​workflows/​daily-issues-report.lock.yml Regenerates budget guards.
.github/​workflows/​daily-hippo-learn.lock.yml Regenerates budget guards.
.github/​workflows/​daily-harness-experiment-proposer.lock.yml Regenerates the agent budget guard.
.github/​workflows/​daily-graft-intelligence.lock.yml Regenerates budget guards.
.github/​workflows/​daily-geo-optimizer.lock.yml Regenerates budget guards.
.github/​workflows/​daily-function-namer.lock.yml Regenerates budget guards.
.github/​workflows/​daily-formal-spec-verifier.lock.yml Regenerates budget guards.
.github/​workflows/​daily-firewall-report.lock.yml Regenerates budget guards.
.github/​workflows/​daily-file-diet.lock.yml Regenerates budget guards.
.github/​workflows/​daily-fact.lock.yml Regenerates budget guards.
.github/​workflows/​daily-experiment-report.lock.yml Regenerates budget guards.
.github/​workflows/​daily-evals-report.lock.yml Regenerates budget guards.
.github/​workflows/​daily-ecosystem-explorer.lock.yml Regenerates budget guards.
.github/​workflows/​daily-doc-updater.lock.yml Regenerates budget guards.
.github/​workflows/​daily-credit-limit-test.lock.yml Regenerates budget guards.
.github/​workflows/​daily-compiler-quality.lock.yml Regenerates budget guards.
.github/​workflows/​daily-community-attribution.lock.yml Regenerates budget guards.
.github/​workflows/​daily-code-metrics.lock.yml Regenerates budget guards.
.github/​workflows/​daily-cli-tools-tester.lock.yml Regenerates budget guards.
.github/​workflows/​daily-cli-performance.lock.yml Regenerates budget guards.
.github/​workflows/​daily-caveman-optimizer.lock.yml Regenerates budget guards.
.github/​workflows/​daily-awf-spec-compiler-surfacing.lock.yml Regenerates budget guards.
.github/​workflows/​daily-arxiv-researcher.lock.yml Regenerates budget guards.
.github/​workflows/​daily-ambient-context-optimizer.lock.yml Regenerates budget guards.
.github/​workflows/​craft.lock.yml Regenerates budget guards.
.github/​workflows/​copilot-pr-prompt-analysis.lock.yml Regenerates budget guards.
.github/​workflows/​copilot-pr-nlp-analysis.lock.yml Regenerates budget guards.
.github/​workflows/​copilot-pr-merged-report.lock.yml Regenerates budget guards.
.github/​workflows/​copilot-opt.lock.yml Regenerates budget guards.
.github/​workflows/​copilot-cli-deep-research.lock.yml Regenerates budget guards.
.github/​workflows/​copilot-centralization-optimizer.lock.yml Regenerates budget guards.
.github/​workflows/​contribution-check.lock.yml Regenerates budget guards.
.github/​workflows/​constraint-solving-potd.lock.yml Regenerates budget guards.
.github/​workflows/​codex-github-remote-mcp-test.lock.yml Regenerates the agent budget guard.
.github/​workflows/​code-simplifier.lock.yml Regenerates budget guards.
.github/​workflows/​code-scanning-fixer.lock.yml Regenerates budget guards.
.github/​workflows/​cloclo.lock.yml Regenerates budget guards.
.github/​workflows/​cli-version-checker.lock.yml Regenerates budget guards.
.github/​workflows/​cli-consistency-checker.lock.yml Regenerates budget guards.
.github/​workflows/​ci-front-door-researcher.lock.yml Regenerates budget guards.
.github/​workflows/​ci-coach.lock.yml Regenerates budget guards.
.github/​workflows/​changeset.lock.yml Regenerates budget guards.
.github/​workflows/​breaking-change-checker.lock.yml Regenerates budget guards.
.github/​workflows/​bot-detection.lock.yml Regenerates the agent budget guard.
.github/​workflows/​aw-issue-clustering.lock.yml Regenerates budget guards.
.github/​workflows/​avenger.lock.yml Regenerates budget guards.
.github/​workflows/​auditor.lock.yml Regenerates budget guards.
.github/​workflows/​audit-workflows.lock.yml Regenerates budget guards.
.github/​workflows/​architecture-guardian.lock.yml Regenerates budget guards.
.github/​workflows/​archie.lock.yml Regenerates budget guards.
.github/​workflows/​api-consumption-report.lock.yml Regenerates budget guards.
.github/​workflows/​ai-moderator.lock.yml Regenerates the agent budget guard.
.github/​workflows/​agy-conformance-reusable.lock.yml Regenerates the agent budget guard.
.github/​workflows/​agentic-token-optimizer.lock.yml Regenerates the agent budget guard.
.github/​workflows/​agentic-token-audit.lock.yml Regenerates budget guards.
.github/​workflows/​agent-performance-analyzer.lock.yml Regenerates budget guards.
.github/​workflows/​agent-job-health.lock.yml Regenerates budget guards.
.github/​workflows/​actions-aw-linter-factory.lock.yml Regenerates budget guards.
.github/​workflows/​ace-editor.lock.yml Regenerates the agent budget guard.
.github/​workflows/​ab-testing-advisor.lock.yml Regenerates budget guards.
.changeset/​fix-runtime-ai-credit-budgets.md Records the budget fix as a patch release.

Review effort: Balanced (dynamic)

@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 /diagnosing-bugs and /grill-with-docs. Requesting changes because the fix is not live in committed workflows and two docs edits remove the frontmatter opt-out.

📋 Key Themes and Highlights

Key Themes

  • Rollout gap: 366 .lock.yml files still embed the old ^[0-9]+$ guard, so -1 stays broken in them until make recompile runs.
  • Lost remediation: the frontmatter max-ai-credits: -1 opt-out was removed from the enterprise controls and threat-detection docs.
  • Path divergence (open question): frontmatter -1 sets enableTokenSteering:false, while runtime -1 keeps notices on. Confirm this is intended and document or test it.

Positive Highlights

  • ✅ The regex change is narrow: only exact -1 is admitted, and -2 and 100M still fall back.
  • ✅ TestBuildAWFCommand_RuntimeMaxAICredits covers the runtime path. Both new and existing Go tests pass locally.
  • ✅ Downstream guards (ai_credits_context.cjs, check_daily_aic_workflow_guardrail.cjs) already treat -1 as non-positive, so no consumer change is needed.

Not verified

  • The spec says AWF v0.29.13 treats maxAiCredits: -1 as an omitted budget. I did not confirm this against the AWF source, so please verify it before merging.

See the inline comments for file-specific fixes.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~6 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again

Comment thread pkg/workflow/awf_command_builder.go Resolved
@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (pkg/workflow/awf_command_builder.go:410): address unresolved feedback - Review comment
  3. Review (docs/src/content/docs/reference/compiler-enterprise-environment-controls.md:260): address unresolved feedback - Review comment
  4. Review (docs/src/content/docs/reference/threat-detection.md:242): address unresolved feedback - Review comment
  5. Review (docs/src/content/docs/specs/ai-credits-specification.md:654): address unresolved feedback - Review comment
  6. Fix failing check build-wasm (FAILURE): Check run.
  7. Fix failing check impacted-go-tests (FAILURE): Check run.
  8. Fix failing check push_ledger_changes (FAILURE): Check run.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "c423ea915e0462491e0467f020d00aed95207e3b",
  "kind": "requested",
  "schema_version": "1",
  "state": "d653c2f51bc787d762002bcb9f6eec7d7b14cb04374f8a3f1c122f6ed2e6fb77",
  "work": [
    "25afe762f900a5629406113fa5064c8ef75de833c1bab0ed49f05c7268c50bf9",
    "2ec1c55a56c3bbc3d439b0f0d819e0f964a9c8ea5c8bbe45cc9676c7e7802a18",
    "42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac",
    "69e71870099f4766c4b4992db3890f23afb2191d1eb9a8dadd11b73637f1ef88",
    "734ebb7744c420b9846352da05d328df09a4beaa5b25ac1f5e0d79a1f1082038",
    "8acb61a077717e3a460018aacdfde96fd489f77606cd36169e2328d9079b75bb",
    "c26cf16dcefef8858e938470cf47093059f681dde863008b5f0cc685561fcfb3"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 6.9K · ◷
Comment /souschef to run again

Copilot AI and others added 2 commits November 13, 2026 15:29
…d-support

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

Copilot AI commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Merged main and addressed the review and CI findings in c3c56f0. Focused tests, WASM goldens, workflow compilation, standard lint and impacted tests pass. The final gate still reports the existing custom-lint findings; CodeQL timed out. No CI runs were triggered.

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

Copy link
Copy Markdown
Collaborator Author

In response to #77479 (comment):

Partially accepted: reviewed the logs and found ledger object-schema validation blocking publication, followed by a missing transaction artifact. This historical output failure is separate from the -1 codegen change; no workflow was rerun.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to #77479 (comment):

Accepted as informational; the no-op result is not treated as verification. Budget runtime regressions, compiler goldens, and the affected workflow contract tests pass independently.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to #77479 (comment):

Partially accepted: reviewed the logs and found ledger schema validation blocking publication, plus OTLP authorization errors. These historical output/infrastructure failures are outside the -1 fix; no credentials or workflow runs were retried.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to #77479 (comment):

Accepted as informational; no additional finding was reported. Correctness was checked independently rather than inferred from the no-op outcome.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to #77479 (comment):

Accepted as informational. Focused runtime-budget, golden, ledger-configuration, and workflow-contract tests pass independently; no additional code change was needed.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to #77479 (comment):

Accepted as informational; this completion notice contains no additional actionable finding. The concrete skills-review requests were independently verified and addressed in their individual threads.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to #77479 (comment):

Accepted and already addressed: the main merge, documentation corrections, regenerated locks, and CI fixes are committed. Current checks supersede the cited failures: build-wasm and impacted-go-tests pass, ledger publication skips when safe_outputs is skipped, and no CI was manually triggered.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to #77479 (comment):

Accepted and independently verified: the committed fixes satisfy the concrete review requests, and focused regressions pass. The current PR check snapshot has no failures, including custom lint; historical reviewer-publication errors remain separate.

@pelikhan
pelikhan merged commit 1914253 into main Nov 13, 2026
87 checks passed
@pelikhan
pelikhan deleted the pelikhan/awf-unlimited-support branch November 13, 2026 16:15
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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.

4 participants