Repository navigation
Conversation
…alid input Co-authored-by: rabeckett <[email protected]>
-1 and K/M values for runtime GH_AW_DEFAULT_*MAX_AI_CREDITS, and warn on values that fall back
…-ai-credits # Conflicts: # .github/workflows/ab-testing-advisor.lock.yml # .github/workflows/ace-editor.lock.yml # .github/workflows/actions-aw-linter-factory.lock.yml # .github/workflows/agent-job-health.lock.yml # .github/workflows/agent-performance-analyzer.lock.yml # .github/workflows/agent-persona-explorer.lock.yml # .github/workflows/agentic-token-audit.lock.yml # .github/workflows/agentic-token-trend-audit.lock.yml # .github/workflows/ai-moderator.lock.yml # .github/workflows/api-consumption-report.lock.yml # .github/workflows/approach-validator.lock.yml # .github/workflows/archie.lock.yml # .github/workflows/architecture-guardian.lock.yml # .github/workflows/archivx-agentic-workflows-analyzer.lock.yml # .github/workflows/artifacts-summary.lock.yml # .github/workflows/audit-workflows.lock.yml # .github/workflows/auditor.lock.yml # .github/workflows/auto-triage-issues.lock.yml # .github/workflows/avenger.lock.yml # .github/workflows/aw-failure-investigator.lock.yml # .github/workflows/aw-issue-clustering.lock.yml # .github/workflows/blog-auditor.lock.yml # .github/workflows/bot-detection.lock.yml # .github/workflows/breaking-change-checker.lock.yml # .github/workflows/changeset.lock.yml # .github/workflows/chaos-pr-bundle-fuzzer.lock.yml # .github/workflows/ci-coach.lock.yml # .github/workflows/claude-code-user-docs-review.lock.yml # .github/workflows/cli-consistency-checker.lock.yml # .github/workflows/cli-version-checker.lock.yml # .github/workflows/cloclo.lock.yml # .github/workflows/code-scanning-fixer.lock.yml # .github/workflows/code-simplifier.lock.yml # .github/workflows/codex-github-remote-mcp-test.lock.yml # .github/workflows/commit-changes-analyzer.lock.yml # .github/workflows/constraint-solving-potd.lock.yml # .github/workflows/contribution-check.lock.yml # .github/workflows/copilot-agent-analysis.lock.yml # .github/workflows/copilot-centralization-drilldown.lock.yml # .github/workflows/copilot-centralization-optimizer.lock.yml # .github/workflows/copilot-cli-deep-research.lock.yml # .github/workflows/copilot-opt.lock.yml # .github/workflows/copilot-pr-merged-report.lock.yml # .github/workflows/copilot-pr-nlp-analysis.lock.yml # .github/workflows/copilot-pr-prompt-analysis.lock.yml # .github/workflows/copilot-session-insights.lock.yml # .github/workflows/craft.lock.yml # .github/workflows/daily-action-setup-security-audit.lock.yml # .github/workflows/daily-agent-of-the-day-blog-writer.lock.yml # .github/workflows/daily-agentrx-trace-optimizer.lock.yml # .github/workflows/daily-ambient-context-optimizer.lock.yml # .github/workflows/daily-architecture-diagram.lock.yml # .github/workflows/daily-arxiv-researcher.lock.yml # .github/workflows/daily-assign-issue-to-user.lock.yml # .github/workflows/daily-astrostylelite-markdown-spellcheck.lock.yml # .github/workflows/daily-aw-cross-repo-compile-check.lock.yml # .github/workflows/daily-awf-spec-compiler-surfacing.lock.yml # .github/workflows/daily-byok-ollama-test.lock.yml # .github/workflows/daily-cache-strategy-analyzer.lock.yml # .github/workflows/daily-caveman-optimizer.lock.yml # .github/workflows/daily-choice-test.lock.yml # .github/workflows/daily-cli-performance.lock.yml # .github/workflows/daily-cli-tools-tester.lock.yml # .github/workflows/daily-code-debt-aider.lock.yml # .github/workflows/daily-code-metrics.lock.yml # .github/workflows/daily-community-attribution.lock.yml # .github/workflows/daily-compiler-quality.lock.yml # .github/workflows/daily-compiler-threat-spec-optimizer.lock.yml # .github/workflows/daily-credit-limit-test.lock.yml # .github/workflows/daily-declarative-engine-improver.lock.yml # .github/workflows/daily-doc-healer.lock.yml # .github/workflows/daily-doc-updater.lock.yml # .github/workflows/daily-documentation-diagram.lock.yml # .github/workflows/daily-ecosystem-explorer.lock.yml # .github/workflows/daily-elixir-credo-snippet-audit.lock.yml # .github/workflows/daily-evals-report.lock.yml # .github/workflows/daily-experiment-report.lock.yml # .github/workflows/daily-fact.lock.yml # .github/workflows/daily-file-diet.lock.yml # .github/workflows/daily-firewall-report.lock.yml # .github/workflows/daily-formal-spec-verifier.lock.yml # .github/workflows/daily-function-namer.lock.yml # .github/workflows/daily-geo-optimizer.lock.yml # .github/workflows/daily-github-docs-seo-optimizer.lock.yml # .github/workflows/daily-go-test-parallelizer.lock.yml # .github/workflows/daily-go-test-stubs-aider.lock.yml # .github/workflows/daily-grader-audit.lock.yml # .github/workflows/daily-graft-intelligence.lock.yml # .github/workflows/daily-hippo-learn.lock.yml # .github/workflows/daily-issues-report.lock.yml # .github/workflows/daily-malicious-code-scan.lock.yml # .github/workflows/daily-max-ai-credits-test.lock.yml # .github/workflows/daily-mcp-concurrency-analysis.lock.yml # .github/workflows/daily-model-inventory.lock.yml # .github/workflows/daily-model-resolution.lock.yml # .github/workflows/daily-multi-device-docs-tester.lock.yml # .github/workflows/daily-news.lock.yml # .github/workflows/daily-observability-report.lock.yml # .github/workflows/daily-performance-summary.lock.yml # .github/workflows/daily-pr-review-cursor.lock.yml # .github/workflows/daily-regression-audit-kiro.lock.yml # .github/workflows/daily-regulatory.lock.yml # .github/workflows/daily-reliability-review.lock.yml # .github/workflows/daily-rendering-scripts-verifier.lock.yml # .github/workflows/daily-repo-chronicle.lock.yml # .github/workflows/daily-report-dispatcher.lock.yml # .github/workflows/daily-safe-output-integrator.lock.yml # .github/workflows/daily-safe-output-optimizer.lock.yml # .github/workflows/daily-safe-outputs-conformance.lock.yml # .github/workflows/daily-safeoutputs-git-simulator.lock.yml # .github/workflows/daily-schema-audit-cursor.lock.yml # .github/workflows/daily-secrets-analysis.lock.yml # .github/workflows/daily-security-observability.lock.yml # .github/workflows/daily-security-red-team.lock.yml # .github/workflows/daily-semgrep-scan.lock.yml # .github/workflows/daily-spdd-spec-planner.lock.yml # .github/workflows/daily-spec-coverage-kiro.lock.yml # .github/workflows/daily-spending-forecast.lock.yml # .github/workflows/daily-squid-image-scan.lock.yml # .github/workflows/daily-storify.lock.yml # .github/workflows/daily-syntax-error-quality.lock.yml # .github/workflows/daily-team-evolution-insights.lock.yml # .github/workflows/daily-team-status.lock.yml # .github/workflows/daily-testify-uber-super-expert.lock.yml # .github/workflows/daily-tlc-test-expert.lock.yml # .github/workflows/daily-token-consumption-report.lock.yml # .github/workflows/daily-trajectory-grader-implementer.lock.yml # .github/workflows/daily-vulnhunter-scan.lock.yml # .github/workflows/daily-windows-defender-scan.lock.yml # .github/workflows/daily-windows-terminal-integration-builder.lock.yml # .github/workflows/daily-work-queue-formal-verification.lock.yml # .github/workflows/daily-work-queues-report.lock.yml # .github/workflows/daily-workflow-security-model.lock.yml # .github/workflows/daily-workflow-updater.lock.yml # .github/workflows/daily-yamllint-fixer.lock.yml # .github/workflows/dataflow-pr-discussion-dataset.lock.yml # .github/workflows/dead-code-remover.lock.yml # .github/workflows/deep-report.lock.yml # .github/workflows/deepsec-security-scan.lock.yml # .github/workflows/delight.lock.yml # .github/workflows/dependabot-burner.lock.yml # .github/workflows/dependabot-go-checker.lock.yml # .github/workflows/deployment-incident-monitor.lock.yml # .github/workflows/design-decision-gate.lock.yml # .github/workflows/designer-drift-audit.lock.yml # .github/workflows/detection-analysis-report.lock.yml # .github/workflows/dev-hawk.lock.yml # .github/workflows/dev.lock.yml # .github/workflows/developer-docs-consolidator.lock.yml # .github/workflows/dictation-prompt.lock.yml # .github/workflows/docs-noob-tester.lock.yml # .github/workflows/draft-pr-cleanup.lock.yml # .github/workflows/duplicate-code-detector.lock.yml # .github/workflows/engine-conformance-dispatcher.lock.yml # .github/workflows/enterprise-docs-audit.lock.yml # .github/workflows/eslint-factory-dispatcher.lock.yml # .github/workflows/eslint-miner.lock.yml # .github/workflows/eslint-monster.lock.yml # .github/workflows/eslint-refiner.lock.yml # .github/workflows/evoskill-evolver.lock.yml # .github/workflows/example-failure-category-filter.lock.yml # .github/workflows/example-permissions-warning.lock.yml # .github/workflows/example-workflow-analyzer.lock.yml # .github/workflows/feature-grower.lock.yml # .github/workflows/firewall-escape.lock.yml # .github/workflows/front-page-copy-guard.lock.yml # .github/workflows/functional-pragmatist.lock.yml # .github/workflows/github-mcp-structural-analysis.lock.yml # .github/workflows/github-mcp-tools-report.lock.yml # .github/workflows/github-remote-mcp-auth-test.lock.yml # .github/workflows/glossary-maintainer.lock.yml # .github/workflows/go-fan.lock.yml # .github/workflows/go-logger.lock.yml # .github/workflows/go-pattern-detector.lock.yml # .github/workflows/gpclean.lock.yml # .github/workflows/grumpy-reviewer.lock.yml # .github/workflows/hippo-embed.lock.yml # .github/workflows/hourly-ci-cleaner.lock.yml # .github/workflows/impeccable-skills-reviewer.lock.yml # .github/workflows/instructions-janitor.lock.yml # .github/workflows/issue-arborist.lock.yml # .github/workflows/issue-monster.lock.yml # .github/workflows/issue-triage-agent.lock.yml # .github/workflows/jsweep.lock.yml # .github/workflows/layout-spec-maintainer.lock.yml # .github/workflows/lint-monster.lock.yml # .github/workflows/linter-miner.lock.yml # .github/workflows/lockfile-stats.lock.yml # .github/workflows/mattpocock-skills-reviewer.lock.yml # .github/workflows/mcp-inspector.lock.yml # .github/workflows/mergefest.lock.yml # .github/workflows/metrics-collector.lock.yml # .github/workflows/necromancer.lock.yml # .github/workflows/notion-issue-summary.lock.yml # .github/workflows/objective-impact-report.lock.yml # .github/workflows/org-health-report.lock.yml # .github/workflows/pdf-summary.lock.yml # .github/workflows/plan.lock.yml # .github/workflows/poem-bot.lock.yml # .github/workflows/ponytail-reviewer.lock.yml # .github/workflows/portfolio-analyst.lock.yml # .github/workflows/pr-code-quality-reviewer.lock.yml # .github/workflows/pr-description-caveman.lock.yml # .github/workflows/pr-finisher.lock.yml # .github/workflows/pr-nitpick-reviewer.lock.yml # .github/workflows/pr-sous-chef.lock.yml # .github/workflows/pr-specification-reviewer.lock.yml # .github/workflows/pr-triage-agent.lock.yml # .github/workflows/prompt-clustering-analysis.lock.yml # .github/workflows/purelock.lock.yml # .github/workflows/python-data-charts.lock.yml # .github/workflows/q.lock.yml # .github/workflows/refactoring-cadence.lock.yml # .github/workflows/refiner.lock.yml # .github/workflows/repo-audit-analyzer.lock.yml # .github/workflows/repo-tree-map.lock.yml # .github/workflows/repository-quality-improver.lock.yml # .github/workflows/research.lock.yml # .github/workflows/safe-output-health.lock.yml # .github/workflows/schema-consistency-checker.lock.yml # .github/workflows/schema-feature-coverage.lock.yml # .github/workflows/scout.lock.yml # .github/workflows/security-compliance.lock.yml # .github/workflows/security-review.lock.yml # .github/workflows/semantic-function-refactor.lock.yml # .github/workflows/sergo.lock.yml # .github/workflows/sighthound-security-scan.lock.yml # .github/workflows/skillet.lock.yml # .github/workflows/slide-deck-maintainer.lock.yml # .github/workflows/smoke-agent-all-merged.lock.yml # .github/workflows/smoke-agent-all-none.lock.yml # .github/workflows/smoke-agent-public-approved.lock.yml # .github/workflows/smoke-agent-public-none.lock.yml # .github/workflows/smoke-agent-scoped-approved.lock.yml # .github/workflows/smoke-aider.lock.yml # .github/workflows/smoke-atomic.lock.yml # .github/workflows/smoke-azure-codex.lock.yml # .github/workflows/smoke-azure-pi.lock.yml # .github/workflows/smoke-builtin-ledgers.lock.yml # .github/workflows/smoke-call-workflow.lock.yml # .github/workflows/smoke-checkout-pr-dispatch.lock.yml # .github/workflows/smoke-claude-auto.lock.yml # .github/workflows/smoke-claude-copilot-auto.lock.yml # .github/workflows/smoke-claude-copilot.lock.yml # .github/workflows/smoke-claude-dynamic.lock.yml # .github/workflows/smoke-claude-on-copilot.lock.yml # .github/workflows/smoke-claude-routed-anthropic.lock.yml # .github/workflows/smoke-claude-routed.lock.yml # .github/workflows/smoke-claude-sub-agents.lock.yml # .github/workflows/smoke-claude.lock.yml # .github/workflows/smoke-codex-auto.lock.yml # .github/workflows/smoke-codex-bare-auto.lock.yml # .github/workflows/smoke-codex-routed-openai.lock.yml # .github/workflows/smoke-codex-routed.lock.yml # .github/workflows/smoke-codex.lock.yml # .github/workflows/smoke-copilot-aoai-apikey.lock.yml # .github/workflows/smoke-copilot-aoai-entra.lock.yml # .github/workflows/smoke-copilot-arm.lock.yml # .github/workflows/smoke-copilot-auto.lock.yml # .github/workflows/smoke-copilot-dynamic-workflow.lock.yml # .github/workflows/smoke-copilot-mai.lock.yml # .github/workflows/smoke-copilot-routed-claude.lock.yml # .github/workflows/smoke-copilot-routed-steering.lock.yml # .github/workflows/smoke-copilot-routed.lock.yml # .github/workflows/smoke-copilot-sdk-routed-claude.lock.yml # .github/workflows/smoke-copilot-sdk-routed.lock.yml # .github/workflows/smoke-copilot-sdk.lock.yml # .github/workflows/smoke-copilot-small.lock.yml # .github/workflows/smoke-copilot-sub-agents.lock.yml # .github/workflows/smoke-copilot.lock.yml # .github/workflows/smoke-create-cross-repo-pr.lock.yml # .github/workflows/smoke-crush.lock.yml # .github/workflows/smoke-cursor.lock.yml # .github/workflows/smoke-deepseek-harness.lock.yml # .github/workflows/smoke-drive.lock.yml # .github/workflows/smoke-factory.lock.yml # .github/workflows/smoke-gemini.lock.yml # .github/workflows/smoke-github-claude.lock.yml # .github/workflows/smoke-github-codex.lock.yml # .github/workflows/smoke-goose.lock.yml # .github/workflows/smoke-issues.lock.yml # .github/workflows/smoke-kiro.lock.yml # .github/workflows/smoke-mini-swe-agent.lock.yml # .github/workflows/smoke-multi-pr.lock.yml # .github/workflows/smoke-opencode.lock.yml # .github/workflows/smoke-otel-backends.lock.yml # .github/workflows/smoke-pi-auto.lock.yml # .github/workflows/smoke-pi-routed-claude.lock.yml # .github/workflows/smoke-pi-routed.lock.yml # .github/workflows/smoke-pi-sub-agents.lock.yml # .github/workflows/smoke-pi.lock.yml # .github/workflows/smoke-project.lock.yml # .github/workflows/smoke-pydantic.lock.yml # .github/workflows/smoke-repo-memory-ledger.lock.yml # .github/workflows/smoke-security-alerts.lock.yml # .github/workflows/smoke-service-ports.lock.yml # .github/workflows/smoke-temporary-id.lock.yml # .github/workflows/smoke-test-tools.lock.yml # .github/workflows/smoke-update-cross-repo-pr.lock.yml # .github/workflows/smoke-work-queue.lock.yml # .github/workflows/smoke-workflow-call-with-inputs.lock.yml # .github/workflows/smoke-workflow-call.lock.yml # .github/workflows/spec-enforcer.lock.yml # .github/workflows/spec-extractor.lock.yml # .github/workflows/spec-librarian.lock.yml # .github/workflows/squad-game-planner.lock.yml # .github/workflows/squad-implement-worker.lock.yml # .github/workflows/squad-plan.lock.yml # .github/workflows/squad.lock.yml # .github/workflows/stale-pr-cleanup.lock.yml # .github/workflows/stale-repo-identifier.lock.yml # .github/workflows/static-analysis-report.lock.yml # .github/workflows/step-name-alignment.lock.yml # .github/workflows/sub-issue-closer.lock.yml # .github/workflows/super-linter.lock.yml # .github/workflows/technical-doc-writer.lock.yml # .github/workflows/terminal-stylist.lock.yml # .github/workflows/test-quality-sentinel.lock.yml # .github/workflows/tidy.lock.yml # .github/workflows/typist.lock.yml # .github/workflows/ubuntu-image-analyzer.lock.yml # .github/workflows/uk-ai-operational-resilience.lock.yml # .github/workflows/unbloat-docs.lock.yml # .github/workflows/update-astro.lock.yml # .github/workflows/video-analyzer.lock.yml # .github/workflows/visual-regression-checker.lock.yml # .github/workflows/weekly-blog-post-writer.lock.yml # .github/workflows/weekly-editors-health-check.lock.yml # .github/workflows/weekly-git-simulator-dreaming.lock.yml # .github/workflows/weekly-issue-summary.lock.yml # .github/workflows/weekly-network-domains-audit.lock.yml # .github/workflows/weekly-otel-reference.lock.yml # .github/workflows/weekly-safe-outputs-spec-review.lock.yml # .github/workflows/windows-grower.lock.yml # .github/workflows/windows.lock.yml # .github/workflows/workflow-generator.lock.yml # .github/workflows/workflow-health-manager.lock.yml # .github/workflows/workflow-normalizer.lock.yml # .github/workflows/workflow-skill-extractor.lock.yml # docs/src/content/docs/reference/compiler-enterprise-environment-controls.md # docs/src/content/docs/reference/threat-detection.md Co-authored-by: rabeckett <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The runtime credit-default comparison triggers unsuppressed ShellCheck SC2071, causing gh aw compile --dry-run validation to fail for affected workflows.
1 open issue
What changed in this PR
Updates gh-aw’s generated firewall configuration steps to honor documented runtime AI credit defaults, addressing #77140.
Changes:
- Accepts runtime
-1andK/Mvalues, omittingmaxAiCreditswhen the budget is disabled. - Adds value-withheld fallback warnings and Bash-based tests for normalization, boundaries, and admission overrides.
- Updates documentation and regenerates workflow locks and WASM golden fixtures.
| File | Description |
|---|---|
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/with-imports.golden |
Refreshes imported-workflow budget output. |
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/smoke-copilot.golden |
Refreshes agent and detection budget output. |
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/playwright-cli-mode.golden |
Refreshes Playwright fixture budget output. |
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/custom-safe-output-max-length.golden |
Refreshes agent and detection budget output. |
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/basic-copilot.golden |
Refreshes basic Copilot budget output. |
pkg/workflow/testdata/TestWasmGolden_AllEngines/pi.golden |
Refreshes Pi engine budget output. |
pkg/workflow/testdata/TestWasmGolden_AllEngines/gemini.golden |
Refreshes Gemini engine budget output. |
pkg/workflow/testdata/TestWasmGolden_AllEngines/copilot.golden |
Refreshes Copilot engine budget output. |
pkg/workflow/testdata/TestWasmGolden_AllEngines/codex.golden |
Refreshes Codex engine budget output. |
pkg/workflow/testdata/TestWasmGolden_AllEngines/claude.golden |
Refreshes Claude engine budget output. |
pkg/workflow/awf_runtime_max_ai_credits_test.go |
Adds generated-script runtime budget tests. |
pkg/workflow/awf_config_test.go |
Updates generated-command assertions. |
pkg/workflow/awf_command_builder.go |
Adds normalization, warnings, and budget omission. |
docs/src/content/docs/specs/ai-credits-specification.md |
Removes runtime-sentinel implementation caveats. |
docs/src/content/docs/reference/threat-detection.md |
Documents detection variable formats and fallback. |
docs/src/content/docs/reference/compiler-enterprise-environment-controls.md |
Documents runtime budget defaults and warnings. |
.github/workflows/workflow-health-manager.lock.yml |
Regenerates detection budget handling. |
.github/workflows/smoke-work-queue-worker.lock.yml |
Regenerates agent budget handling. |
.github/workflows/smoke-work-queue-dispatcher.lock.yml |
Regenerates agent budget handling. |
.github/workflows/semantic-function-refactor.lock.yml |
Regenerates detection budget handling. |
.github/workflows/schema-consistency-checker.lock.yml |
Regenerates detection budget handling. |
.github/workflows/safe-output-health.lock.yml |
Regenerates detection budget handling. |
.github/workflows/pr-triage-agent.lock.yml |
Regenerates detection budget handling. |
.github/workflows/portfolio-analyst.lock.yml |
Regenerates detection budget handling. |
.github/workflows/example-workflow-analyzer.lock.yml |
Regenerates detection budget handling. |
.github/workflows/daily-team-evolution-insights.lock.yml |
Regenerates detection budget handling. |
.github/workflows/daily-safe-output-optimizer.lock.yml |
Regenerates detection budget handling. |
.github/workflows/daily-regulatory.lock.yml |
Regenerates detection budget handling. |
.github/workflows/daily-grader-audit.lock.yml |
Regenerates detection budget handling. |
.github/workflows/daily-compiler-quality.lock.yml |
Regenerates detection budget handling. |
.github/workflows/daily-cli-tools-tester.lock.yml |
Regenerates detection budget handling. |
.github/workflows/daily-arxiv-researcher.lock.yml |
Regenerates detection budget handling. |
.github/workflows/copilot-centralization-optimizer.lock.yml |
Regenerates detection budget handling. |
.github/workflows/code-simplifier.lock.yml |
Regenerates detection budget handling. |
.github/workflows/ci-coach.lock.yml |
Regenerates detection budget handling. |
.github/workflows/archivx-agentic-workflows-analyzer.lock.yml |
Regenerates detection budget handling. |
.github/workflows/agent-job-health.lock.yml |
Regenerates detection budget handling. |
Review effort: Max
…ization Co-authored-by: rabeckett <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
One or more custom setup steps configured for this repository failed during this Copilot code review run: Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review. Note You can configure setup steps for Copilot code review separately from Copilot cloud agent with a |
…arning Co-authored-by: rabeckett <[email protected]>
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Specification Reviewer completed successfully!
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: 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.
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: 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.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: 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.
|
There was a problem hiding this comment.
Reviewed commit 7bec6d42ccbd6c5053ab5c2b26effdb32afe865a against docs/src/content/docs/specs/ai-credits-specification.md §10.5–§10.7 and the changed reference documentation.
Blocking finding: the PR changes normative runtime validation and sentinel behavior, but leaves the specification at Version 1.5.3 / 2026-11-05 with no change-log entry for these obligations. The inline comment requests the required version/publication metadata and change-log update.
No specification edits were applied by this review. Existing review comments were checked; this finding is novel.
Generated by PR Specification Reviewer for #77185 · copilot · gpt50 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.6K
Comment /review-specs to run again
| @@ -665,13 +663,15 @@ A conforming implementation MUST enforce the following at compile time when a fr | |||
| - Reject integer values below `-1` with a compile-time validation error. | |||
| - Reject non-numeric values. | |||
|
|
|||
| At runtime, when the budget is resolved from an organization variable (`GH_AW_DEFAULT_MAX_AI_CREDITS`, `GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS`, or `GH_AW_DEFAULT_EVALS_MAX_AI_CREDITS`), the generated step accepts `-1` or a base-10 positive whole number without leading zeroes (up to 19 digits, covering positive `int64` values); `K` and `M` suffixes are compile-time frontmatter syntax only. Any other runtime value MUST fall back to the built-in default (`1000`, or `400` for detection and evals runs) and emit a step-log warning without echoing the raw value. | |||
There was a problem hiding this comment.
This PR changes normative behavior and adds runtime MUST requirements, but the document metadata and change log still identify Version 1.5.3 (2026-11-05) and only describe the prior 1.5.3 changes (lines 10-12, 773+). Please increment the specification version/publication date according to the spec process and add a change-log entry covering §10.5/§10.6 and T-AIC-PR-003; otherwise the published contract change is not traceable.
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found one blocking correctness issue: the runtime validation accepts 19-digit values above int64 max, despite the specification requiring positive int64 values. The inline comment includes a concrete example and test recommendation. Specialist pass was unavailable because its tool access was denied; this review is based on independent static analysis of the prefetched diff.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
| @@ -407,7 +407,8 @@ fi | |||
| ` | |||
| } | |||
| return fmt.Sprintf(`%s | |||
| if [[ ! "$%s" =~ ^[0-9]+$ ]]; then | |||
| if [[ ! "$%s" =~ ^(-1|[1-9][0-9]{0,18})$ ]]; then | |||
There was a problem hiding this comment.
The regex only checks that the value has at most 19 digits; it does not enforce the documented positive-int64 upper bound. For example, 9999999999999999999 matches and is emitted as maxAiCredits, even though it exceeds math.MaxInt64 and can be rejected or overflow in AWF. Please add an upper-bound check (or a lexical comparison against 9223372036854775807) and cover an over-limit 19-digit value in the runtime test.
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs, /tdd, and /grill-with-docs. Requesting changes on one correctness gap in the new runtime guard.
📋 Key Themes & Highlights
Key Themes
- Bound mismatch: the runtime regex
^(-1|[1-9][0-9]{0,18})$admits 19-digit values aboveint64max (9223372036854775807). The compile-time path rejects them, and bash arithmetic wraps them negative. - Boundary test gap: the table has no case between the int64 max and the 20-digit cutoff.
- Spec wording: §10.6 claims 'covering positive int64 values', which the code does not yet enforce.
Positive Highlights
- ✅
-1sentinel handling is consistent across the shell guard and the JS readers (ai_credits_context.cjs,check_daily_aic_workflow_guardrail.cjs). - ✅ The value-withheld warning avoids echoing raw input, which fits the security posture.
- ✅ Targeted Go tests pass, including the ShellCheck case.
See the inline comments for the specific fix. @copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again
| @@ -407,7 +407,8 @@ fi | |||
| ` | |||
| } | |||
| return fmt.Sprintf(`%s | |||
| if [[ ! "$%s" =~ ^[0-9]+$ ]]; then | |||
| if [[ ! "$%s" =~ ^(-1|[1-9][0-9]{0,18})$ ]]; then | |||
There was a problem hiding this comment.
[/diagnosing-bugs] The new guard admits 19-digit values above int64 max. 9999999999999999999 passes the regex, but the compile-time path (ParseInt64KMSuffix) rejects it, and spec §10.6 says the runtime accepts values 'covering positive int64 values'. Bash arithmetic also wraps this value ($(( 9999999999999999999 )) is negative), so later arithmetic would silently go wrong.
💡 Suggested fix
Keep the regex and add a lexical bound check for 19-digit values. Same-length digit strings compare correctly as text:
if (( ${#GH_AW_MAX_AI_CREDITS} == 19 )) && [[ $GH_AW_MAX_AI_CREDITS > 9223372036854775807 ]]; then
... fallback ...
fiFold this into the existing fallback branch so one path handles both cases, and add a boundary test (see the test-file comment).
@copilot please address this.
| {"1500", "1500"}, | ||
| {"9223372036854775807", "9223372036854775807"}, | ||
| {"0", "default"}, | ||
| {"10000000000000000000", "default"}, |
There was a problem hiding this comment.
[/tdd] The table jumps from 9223372036854775807 (accepted) straight to 10000000000000000000 (rejected), so the boundary the spec describes is not pinned. Add the two cases closest to the int64 max, 9223372036854775808 and 9999999999999999999, both expecting default. They fail against the current guard and pass once the bound check is added.
@copilot please address this.
| @@ -665,13 +663,15 @@ A conforming implementation MUST enforce the following at compile time when a fr | |||
| - Reject integer values below `-1` with a compile-time validation error. | |||
| - Reject non-numeric values. | |||
|
|
|||
| At runtime, when the budget is resolved from an organization variable (`GH_AW_DEFAULT_MAX_AI_CREDITS`, `GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS`, or `GH_AW_DEFAULT_EVALS_MAX_AI_CREDITS`), the generated step accepts `-1` or a base-10 positive whole number without leading zeroes (up to 19 digits, covering positive `int64` values); `K` and `M` suffixes are compile-time frontmatter syntax only. Any other runtime value MUST fall back to the built-in default (`1000`, or `400` for detection and evals runs) and emit a step-log warning without echoing the raw value. | |||
There was a problem hiding this comment.
[/grill-with-docs] The runtime rule says the format is 'up to 19 digits, covering positive int64 values'. That only holds if the guard enforces the int64 maximum. Today 19-digit values above 9223372036854775807 are accepted, so the text describes a bound the code does not enforce. Once the guard is tightened (see the builder comment), this wording is accurate. Otherwise, state the exact accepted maximum here.
@copilot please address this.
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "7bec6d42ccbd6c5053ab5c2b26effdb32afe865a",
"kind": "requested",
"schema_version": "1",
"state": "a424042d133fa2408ee39db735c809ac9bc0f79479836b3febcb206f3ff3b4bc",
"work": [
"0a22b0cf613e8d9a71bf12fccca7953137e1fb44983ac982b740757fab0cb75d",
"34f38971738f6a752a646bd7797a6c8d47fb096e4eb6f91e946a91255433c8c4",
"51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf",
"59a10cb229860c59187396a02b2a603384132f151155fb29f35196c3b6cdf1c3",
"7a551b7987af3172e5186fefe60f7e3b3dbd98490fd5abc68b81dae8cf299e70",
"be5532c161ec31c2c1211d395ca9f487297b615911e2f8bd718b51c301ef610e",
"ff39d711534a0477bc3a176133a30abe3e4bfa4b22c5765b575f1140af0d4838"
],
"workflow": "pr-sous-chef"
}
|
…-ai-credits Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
Triage
|
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "6df376dc3c04923298937135177b55d17485ac91",
"kind": "requested",
"schema_version": "1",
"state": "f3fae32226ebc9bab93d792f8ed9c0904043338600c92a54eb0fe01166bc2b2c",
"work": [
"0a22b0cf613e8d9a71bf12fccca7953137e1fb44983ac982b740757fab0cb75d",
"43282e7f5b3023b8c8cf9099eab79e7b99f650965f08b47d3df33cde5589879d",
"59a10cb229860c59187396a02b2a603384132f151155fb29f35196c3b6cdf1c3",
"7a551b7987af3172e5186fefe60f7e3b3dbd98490fd5abc68b81dae8cf299e70",
"be5532c161ec31c2c1211d395ca9f487297b615911e2f8bd718b51c301ef610e",
"ff39d711534a0477bc3a176133a30abe3e4bfa4b22c5765b575f1140af0d4838"
],
"workflow": "pr-sous-chef"
}
|
…-ai-credits Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>


The compiled AWF step validated runtime
GH_AW_MAX_AI_CREDITSwith a digits-only check (^[0-9]+$). As a result, settingvars.GH_AW_DEFAULT_MAX_AI_CREDITS,vars.GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS, orvars.GH_AW_DEFAULT_EVALS_MAX_AI_CREDITSto-1silently fell back to the built-in default budget (1000or400), even though the AI credits specification (§10.5,T-AIC-PR-003) requires a runtime-1to disable the per-run budget.Runtime validation (
buildMaxAICreditsExport)^[0-9]+$to^(-1|[1-9][0-9]{0,18})$:-1passes straight through to"maxAiCredits":-1inawf-config.json, which AWF (v0.29.11+) natively maps to disabling the per-run budget (matching compile-timemax-ai-credits: -1).0, leading zeroes such as0100, orK/Msuffixes, which remain compile-time frontmatter syntax only) falls back to the built-in default and emits a value-withheld step warning:-1and compiler-expandedK/Mvalues) always match the guard, so they never enter the fallback branch. Admission-allowance overrides remain unchanged.Tests
awf_runtime_max_ai_credits_test.goextracts the generated step fromBuildAWFCommandand runs it with bash across agent (1000), detection (400), and evals (400) configurations for-1, positive integers, invalid values (0,0100,5K,100M,-2, whitespace, non-numeric, secret-like text), admission overrides, compile-time frontmatter literals, and ShellCheck cleanliness (T-AIC-PR-003)..lock.ymlfiles and WASM / action-mode golden fixtures.Specification and documentation
ai-credits-specification.md§10.5: clarifies that runtime-1disables AWF budget enforcement either by omittingmaxAiCreditsor settingmaxAiCreditsto-1(which AWF treats identically), removes the §10.5 implementation-status note, and removes the(not yet implemented by gh-aw)marker fromT-AIC-PR-003.compiler-enterprise-environment-controls.mdandthreat-detection.md: document that the runtime organization variables accept positive whole numbers or-1(with AWF releases after v0.29.11 continuing budget notices unlesssandbox.agent.token-steering: false, or against AWF's hard cap for detection runs), while other values fall back to the default with a step-log warning.-1andK/Mvalues inGH_AW_DEFAULT_MAX_AI_CREDITSfall back to the default budget #77140