Repository navigation
Distinguish estimated credits from recorded daily AIC usage - #66043
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. No ADR enforcement needed for PR #66043: has_implementation_label=false and default_business_additions=6 (<=100 threshold, no custom .design-gate.yml). Gate exits without action.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Ponytail Reviewer completed successfully! Lean already. Ship.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality Sentinel skipped because pre-fetch PR data was unavailable: unable to fetch PR file list
|
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
Provenance, retry behavior, conservative enforcement, reporting, and generated workflow propagation are consistent and tested.
Review effort: Balanced
Findings: None
What changed in this PR
Separates recorded AIC usage from conservative estimates while retaining both in guardrail enforcement.
Changes:
- Tracks provenance and retries unresolved cached estimates.
- Reports recorded and estimated credits separately.
- Propagates estimated totals through activation and conclusion reporting.
| File | Description |
|---|---|
actions/setup/js/daily_aic_{scan,cache_helpers}.cjs |
Tracks and reconciles accounting provenance. |
actions/setup/js/check_daily_aic_workflow_guardrail.cjs |
Calculates and reports estimated AIC. |
actions/setup/js/handle_agent_failure.cjs and reporting template |
Clarifies exceeded-limit reporting. |
| Related JavaScript and Go tests | Covers retry, reporting, and output propagation. |
pkg/workflow/compiler_activation_outputs.go |
Exposes the estimated-credit output. |
pkg/workflow/notify_comment_conclusion_helpers.go |
Passes estimates to conclusion reporting. |
.github/workflows/*.lock.yml (319 generated files) |
Propagates the new output through compiled workflows. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
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.
Verdict
No blocking issues found in the changed lines.
Notes
I checked the risky parts of this change: cache precedence between recorded and estimated observations, retry behavior for legacy/provenance-less cache entries, the activation summary breakdown, and the new estimated-AIC plumbing into the conclusion report. The updated tests cover the edge cases I would normally expect to break here, and I did not find a changed-line correctness issue that should block merge.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 30.5 AIC · ⌖ 5.94 AIC · ⊞ 21.1K
Comment /review to run again
There was a problem hiding this comment.
Reviewed the diff (11 real content files; remaining 319 files are mechanical .lock.yml bumps from recompilation). The change correctly threads source ("recorded" vs "estimated") provenance through the scan cache, guardrail summary, and conclusion report.
Verified via direct node execution (sandbox network blocked npm install for vitest with a self-signed-cert error) that readScanCache provenance precedence works as intended: a recorded entry is never overwritten by a later estimated observation for the same run attempt, while among same-provenance entries the most recent observed_at wins. Also ran go build ./... and go test ./pkg/workflow/... -run TestDailyAIC — all pass.
No blocking issues found on the changed lines.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
codeload.github.com
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
network:
allowed:
- defaults
- "codeload.github.com"See Network Configuration for more information.
🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · copilot · sonnet50 · 92.6 AIC · ⌖ 13.1 AIC · ⊞ 8.2K
|
@copilot address the following outstanding work in one pass:
Push the necessary fixes, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved. Use the pr-finisher skill and stop when only human review or CI remains; do not trigger CI. Sous-chef head: 8c9b259
|
…-reports 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>
Merged latest |
|
🎉 This pull request is included in a new release. Release: |
The daily AIC guardrail can count a cancelled run at its full per-run limit when accounting is unavailable. Cached fallback values could then block later runs while the report described the total as credits already consumed.