Skip to content

Preserve Go workflow validation failures and completed progress - #76587

Merged
pelikhan merged 2 commits into
mainfrom
pelikhan/go-validation-policy-conflicts
Nov 10, 2026
Merged

pelikhan merged 2 commits into
mainfrom
pelikhan/go-validation-policy-conflicts

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Preserve either go test failure through the bench-performance pipeline, including the first command piped through tee.
  • Require all ten benchmark results with valid, finite metrics before updating history or reporting regressions. Accept fractional/scientific timing values; reject missing, duplicate, malformed and failed results.
  • Enforce fail-closed Parallelizer cursor persistence with compiler-owned 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 as report_incomplete, not noop.
  • Regenerate both workflow locks and add parser, fake-Go pipeline and workflow-contract regressions.

Validation

  • Review batch: six Python tests passed, with complete numeric fixtures, mid-line FAIL detection and fake-Go pipeline failures. Removing the finite check in memory fails the NaN/infinity cases.
  • Three focused Go workflow contracts and the existing restore-only compiler integration test passed. Compiled output restores memory and has no cache persistence path.
  • test-scripts now invokes the Python suite; make -n test-all confirms automated reachability.
  • make agent-report-progress passed build, formatting/lint, impacted tests and lock drift for the review batch. make recompile compiled all 365 workflows with existing repository warnings.
  • No workflow was dispatched/rerun and no real performance benchmark was executed.

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

Source Change Security impact
daily-cli-performance.md Reject failed/partial measurements; defer cache access to immutable policy; allow history only for comparison after current measurements. Improves measurement integrity; no new permissions, credentials or destinations.
daily-go-test-parallelizer.md Disable cursor persistence with restore-only caching and report incomplete when validation is blocked or fails. Removes cache publishing capability, preserves full-suite/race and security controls; temporarily pauses round-robin advancement.

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]>
@pelikhan
pelikhan marked this pull request as ready for review November 10, 2026 19:19
Copilot AI adaptive review requested due to automatic review settings November 10, 2026 19:19
@github-actions

github-actions Bot commented Nov 10, 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.5K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification 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 PR Specification Reviewer · gpt56 · ~3 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 1.6K · ◷

Generated by PR Specification Reviewer for #76587

@github-actions

github-actions Bot commented Nov 10, 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 · ⊞ 181 · ◷

Generated by Ponytail Reviewer for #76587

@github-actions

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

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the 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 · ~5 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 1.6K · ◷

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-10T19:27:00Z
review_event: COMMENT
top_themes: [deterministic cursor persistence after validation]
files_reviewed: [.github/workflows/daily-cli-performance.md, .github/workflows/daily-go-test-parallelizer.md, Makefile, pkg/workflowcontract/go_validation_workflow_contract_test.go, scripts/parse_benchmark_results.py, scripts/test_parse_benchmark_results.py]
comment_count: 1

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

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

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

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

@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 /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 pipefail line makes test_make_propagates_each_go_failure fail, 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.py is not referenced by any Makefile target or workflow, so the strict validator and the pipefail guard can regress silently.
  • Conflicting instructions: daily-cli-performance.md Phase 1 forbids reading pre-existing caches, while Phase 2 reads repo-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 FAIL guard 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.
  • ✅ pipefail on the benchmark target means a failing go test cannot be masked by a downstream tee.
  • ✅ 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

Comment thread scripts/test_parse_benchmark_results.py Resolved
Comment thread scripts/parse_benchmark_results.py Resolved

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.

🟡 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)

Comment thread scripts/test_parse_benchmark_results.py Resolved
Comment thread scripts/test_parse_benchmark_results.py Resolved
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]>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan
pelikhan merged commit eb5bcb6 into main Nov 10, 2026
137 checks passed
@pelikhan
pelikhan deleted the pelikhan/go-validation-policy-conflicts branch November 10, 2026 19:58
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.3

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.

2 participants