Repository navigation
fix(auto-sync): unblock the pi 1.7.0 upgrade and dogfood the Action from main - #59
Conversation
- Read model entries from the shipped pi-ai provider data file - Require every declared cost to resolve; at least one positive - Guard against empty catalog sections and costless catalogs - Keep the hasPositiveModelCost and github-copilot assertions Task 1 of auto-sync-pi-1.7.0-budget-exhausted. Signed-off-by: thxCode <thxcode0824@gmail.com>
- Prefer the structured verdict detail over the truncated reason - Add bounded findings with title, path, and cut evidence - Strip detail, then findings, before dropping entries over budget - Extend the mock gate and repair tests to cover check-out verdicts - Cover the findings strip stage and merge the strip loops Task 2 of auto-sync-pi-1.7.0-budget-exhausted. Signed-off-by: thxCode <thxcode0824@gmail.com>
- Use gpustack/loopwright@main so Auto Sync dogfoods the harness - Keep third-party Actions pinned to commit SHAs - Gate Action refs: SHA, or main for gpustack/loopwright; scan one-line steps - Let the gate accept a rollback to a pinned SHA - Scope the docs pin rule to self-upgrades and state the exception Task 3 of auto-sync-pi-1.7.0-budget-exhausted. Signed-off-by: thxCode <thxcode0824@gmail.com>
- Rename to report-repair-and-source-freeze for its three test groups - Move the scheduling weight key in run-tests.mjs with the file - Leave the historical spec Owns entry unchanged Signed-off-by: thxCode <thxcode0824@gmail.com>
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 1 selected item(s). Reviewed |
… prompt Signed-off-by: thxCode <thxcode0824@gmail.com>
Review round 1Triage of the 5 findings (2 inline, 3 routed to the summary). Each was checked against the source before any change.
The two Items 4 and 5 land as one fixup commit on top of Verification on the fix: No upgrade-compatibility risks were raised. |
What type of PR is this?
/kind bug
/area controller
/area agent-pi
/area github-app
/area docs
Summary
Auto Syncrun that attempted thepi1.6.0 → 1.7.0 upgrade ended inBUDGET_EXHAUSTED (admission /circuit-breaker/repairNoProgress)with most of its budget unspent. Two causes, one per layer.@earendil-works/pi-ai1.7.0 pruned legacyopenai-responsesentries, includinggpt-4.packages/agent-pi/test/multi-provider.test.tspinnedgpt-4as its "built-in catalog resolves cost" fixture, soauto-sync-verifyfailed on one test.verdict.reason, which the local command gate reduces to stdio tails (256 code points). The structured check-out (detail,findings) thatverify.shwrote reached the evidence but never the prompt. The repair role could not name the failing test, made no edit in 10 turns, and the no-progress breaker stopped the run under a hard-codedBUDGET_EXHAUSTEDlabel.extractGateVerdictExcerptprefersverdict.detailoverreasonand adds boundedfindings(at most 8, evidence cut to 512 code points). The repair prompt carries both. Over the 16 KiB budget it stripsdetail, thenfindings, then drops entries. The run log's check summary now shows the check-outdetail..github/workflows/auto-sync.ymlusesgpustack/loopwright@main, so the repository dogfoods its own harness without an Action release. Third-party Actions stay pinned to commit SHAs. The workflow gate allows a 40-character SHA for any Action, ormainforgpustack/loopwrightonly, and rejects./, tags, other branches, and short SHAs, including on one-line steps.specs/2026-11-15-self-upgrade-dogfooding.md(lines 17, 44, 67, 77, 163, 197) asks for 40-character SHA pins on every Action in the self-upgrade workflow, for bootstrap provenance. This PR reverses that rule for the onegpustack/loopwrightreference, by owner decision. Accepted risk: a mutable ref.mainis the protected default branch, the run log records the resolved SHA, and the gate still accepts a rollback to a SHA. The spec stays as written;docs/walkthroughs/declarative-taskpack.mdstates the exception.report-and-t3.test.tsis renamed toreport-repair-and-source-freeze.test.tsafter its content. The scheduling weight key inscripts/run-tests.mjsmoves with it.candidate) needs this change onmainand the Action atmain; it is not part of this PR.Related Issues
None.
Verification
npm run buildpassed cleanlynpm run typecheckpassed cleanlynpm run lintpassed cleanlynpm run lint:docspassed cleanlynpm run sitebuilt and verified with zero broken linksnode scripts/run-tests.mjs: 1754 tests, 1748 pass, 0 fail, 6 skipped)multi-provider.test.js, 6/6 on each).github/workflows/maintains least-privilegepermissionsand remains protected against untrusted taskpack/sandbox writesSigned-off-byDeveloper Certificate of Origin (DCO) included on all commitsDoes this PR introduce a user-facing change?