Repository navigation
Preserve Go workflow validation failures and completed progress - #76587
Conversation
Reject incomplete benchmark measurements and propagate pipeline failures. Keep Parallelizer cursors unchanged on blocked or failed validation without weakening full-suite and race gates. Co-authored-by: Copilot App <[email protected]>
|
✅ 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: 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 Specification Reviewer completed successfully! PR Specification 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.
|
|
✅ 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.
|
|
✅ 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.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ 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.
|
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.
Review summary
One medium correctness concern was identified: cursor advancement remains model-enforced prose rather than a deterministic post-validation operation. The inline comment describes how this could still skip batches after blocked or failed validation. No high-severity issues found.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~5 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd, /diagnosing-bugs, and /codebase-design to the changed validation paths. Requesting changes because the parser regression tests never run in CI, and one prompt rule conflicts with a later phase.
📋 Verification performed
What I ran against the PR head (5e01b31)
- Python parser tests: 6/6 pass.
- Go workflow contract tests: both pass.
make bench-performance: exit 0, 10 benchmarks parsed and validated.- Mutation check: removing the
SHELL := /bin/bash -eu -o pipefailline makestest_make_propagates_each_go_failurefail, so the pipefail guard is real and covered. - Recompiled both daily workflows: locks match committed output, except environment-dependent cron scatter.
🔍 Key themes and findings
Findings
- Test wiring gap (main blocker):
scripts/test_parse_benchmark_results.pyis not referenced by any Makefile target or workflow, so the strict validator and the pipefail guard can regress silently. - Conflicting instructions:
daily-cli-performance.mdPhase 1 forbids reading pre-existing caches, while Phase 2 readsrepo-memory/.../benchmark_history.jsonl. Clarify that history is comparison-only. - Brittle contract tests: the Go tests pin exact prose, including a hard-wrapped sentence. Normalise whitespace and assert only load-bearing rules.
- Minor parser gap: the
FAILguard checks only the first field.
Positive highlights
- ✅ The strict parser rejects partial, duplicate, unexpected, and non-finite results rather than writing a partial JSON file.
- ✅
pipefailon the benchmark target means a failinggo testcannot be masked by a downstreamtee. - ✅ The cursor change makes state advance only after validation, which is the right semantics.
@copilot please address the review comments above, starting with wiring the Python test into test-scripts.
🧠 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
There was a problem hiding this comment.
🟡 Changes recommended
Automated checks skip the new regressions, numeric-validation tests can pass due to unrelated missing results, and the workflow’s cache ban conflicts with the immutable security policy.
3 open issues
What changed in this PR
This PR tightens gh-aw’s Go maintenance workflows so benchmark failures, incomplete measurements, and blocked validation are not treated as successful work.
Changes:
- Preserve failures from both benchmark commands and validate all ten results before updating metrics history.
- Make Parallelizer progress reflect completed analysis while retaining required race and full-suite checks.
- Add parser, pipeline, and workflow-contract regressions, and refresh both generated locks.
| File | Description |
|---|---|
scripts/test_parse_benchmark_results.py |
Adds parser rejection and benchmark failure-propagation tests. |
scripts/parse_benchmark_results.py |
Validates complete benchmark results and finite timing metrics before writing JSON. |
pkg/workflowcontract/go_validation_workflow_contract_test.go |
Checks workflow measurement, validation, and cursor contracts. |
Makefile |
Enables failure propagation through the benchmark pipeline. |
.github/workflows/daily-go-test-parallelizer.md |
Preserves completed progress and reports incomplete validation honestly. |
.github/workflows/daily-go-test-parallelizer.lock.yml |
Synchronizes generated hashes with the updated workflow source. |
.github/workflows/daily-cli-performance.md |
Uses the validated parser and stops on failed or incomplete measurements. |
.github/workflows/daily-cli-performance.lock.yml |
Synchronizes generated hashes with the updated workflow source. |
Review effort: Max (auto)
Disable cursor publication through restore-only caching until trusted validation can authorize advancement. Clarify immutable cache policy and comparison-only history, wire parser regressions into automated targets, and strengthen FAIL and numeric-validation coverage. Co-authored-by: Copilot App <[email protected]>
|
Reply to this notification: No code change is needed for this status notification; it contains no actionable design request. The no-action signal is not being treated as proof of test or publication success. |
|
Reply to this notification: No code change is needed for this status notification; it contains no specification finding. Validation evidence is reported separately rather than inferred from the no-action outcome. |
|
Reply to this notification: No code change is needed for this status notification; it contains no actionable finding. The reported no-action outcome is not being used as validation evidence. |
|
Reply to this notification: No change is required by this status notification itself. The actionable test-wiring and numeric-fixture findings in the separate inline comments are addressed in this batch. |
|
Reply to this notification: The actionable feedback from this skills review is addressed through its individual inline threads. This completion notification needs no separate code change. |
|
Reply to this notification: The cursor-persistence finding from this review is addressed in its inline thread. This status notification does not require an additional code change. |
|
Reply to this notification: The deterministic-cursor concern is handled in the linked inline review thread. This managed memory record is left unchanged; it is review metadata rather than a separate implementation request. |
|
🎉 This pull request is included in a new release. Release: |

Why
Two agent-declared incomplete runs exposed workflow-contract gaps: benchmark failures or missing measurements could appear successful, and Go Test Parallelizer could advance its scan cursor even when required validation was blocked. This fixes those confirmed gaps without weakening security policy or test requirements.
Changes
go testfailure through thebench-performancepipeline, including the first command piped throughtee.cache-memory.restore-only: no cache commit, upload, save, or publisher job is emitted. Cursor advancement is temporarily paused on every outcome pending a trusted validation/persistence hook; repeated runs may analyze the same batch. Retain required package race tests and the full suite, and report blocked work asreport_incomplete, notnoop.Validation
test-scriptsnow invokes the Python suite;make -n test-allconfirms automated reachability.make agent-report-progresspassed build, formatting/lint, impacted tests and lock drift for the review batch.make recompilecompiled all 365 workflows with existing repository warnings.Scope and remaining limitations
Related in-flight #76580 now changes the stock XPIA policy to trust normal toolchain caches; its current diff does not provision disposable caches. Cache setup and policy changes are deliberately excluded here. This PR addresses benchmark acceptance and completed-progress semantics, not the original CLI run's cache authorization blocker. The proposed policy change in #76580 is not evidence that the historical run or this revision has executed successfully.
The Parallelizer's environment/credential-fixture policy incompatibility remains independent and unresolved: #76580 still prohibits process-environment inspection and dummy-credential access. The workflow must fail honestly without advancing completed progress rather than skip required tests or grant fixture exceptions.
Independent security review passed for the earlier broader candidate with no confirmed vulnerabilities. The same reviewer became unavailable after resume, so there is no refreshed independent verdict for this reduced candidate. The final diff was inspected in the main session and this draft is published under the user's subsequent explicit draft-publication request.
Checkout-compiler dry-run emitted a ShellCheck-passed diagnostic lock for the Parallelizer. CLI dry-run was blocked by existing host steps/MCP scripts/pre-activation outputs; normal compilation passed. Diagnostic locks are not committed and compilation is not live-execution evidence.
Relates to #76541
Authored Markdown security impact
daily-cli-performance.mddaily-go-test-parallelizer.md