Repository navigation
fix: skip ledger persistence when safe outputs do not succeed - #77480
Conversation
Skip ledger persistence when safe outputs did not succeed and stop reconciliation after artifact download failure. Cover Git and comment-backed ledgers and regenerate affected workflows. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
✅ 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.
|
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.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅ Matt Pocock Skills 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.
|
|
✅ 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 failed to deliver outputs. Please review the logs for details. PR Specification 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.
|
|
✅ 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.
|
There was a problem hiding this comment.
Reviewed the changed workflow compiler, specification, regression tests, and generated-lock implications. No actionable correctness, security, performance, or maintainability issues were found in the changed lines. The fail-closed persistence behavior is consistent with the documented requirement, and the added regression coverage validates the generated job guards.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the changes that gate ledger persistence on successful safe outputs and stop reconciliation after transaction-download failures.
No open issues 🎉
What changed in this PR
This PR makes ledger persistence in gh-aw fail closed: it runs only after safe outputs succeed, and transaction-download failures stop reconciliation. Permissions, credentials, detection dependencies, and transaction validation remain unchanged.
Changes:
- Require successful safe outputs and restore default step success guards.
- Add regression coverage for Git, comment-memory, and mixed ledgers, and document the failure behavior.
- Regenerate 11 workflow locks with the updated guards.
| File | Description |
|---|---|
pkg/workflow/ledger_test.go |
Tests job and step guards across three ledger configurations. |
pkg/workflow/ledger_job.go |
Gates persistence and stops reconciliation after download failure. |
docs/src/content/docs/specs/repo-memory-ledger-specification.md |
Specifies fail-closed persistence behavior. |
.github/workflows/weekly-git-simulator-dreaming.lock.yml |
Applies updated persistence guards. |
.github/workflows/smoke-repo-memory-ledger.lock.yml |
Applies updated persistence guards. |
.github/workflows/smoke-builtin-ledgers.lock.yml |
Applies updated persistence guards. |
.github/workflows/pr-specification-reviewer.lock.yml |
Applies updated persistence guards. |
.github/workflows/pr-code-quality-reviewer.lock.yml |
Applies updated persistence guards. |
.github/workflows/daily-mcp-concurrency-analysis.lock.yml |
Applies updated persistence guards. |
.github/workflows/daily-caveman-optimizer.lock.yml |
Applies updated persistence guards. |
.github/workflows/daily-awf-spec-compiler-surfacing.lock.yml |
Applies updated persistence guards. |
.github/workflows/daily-arxiv-researcher.lock.yml |
Applies updated persistence guards. |
.github/workflows/copilot-centralization-optimizer.lock.yml |
Applies updated persistence guards. |
.github/workflows/audit-workflows.lock.yml |
Applies updated persistence guards. |
Review effort: Balanced (dynamic)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs and /tdd. The fix is correct and well guarded; no blocking issues found.
📋 Key Themes & Highlights
Verification
- ✅
TestLedgerPersistenceRequiresSuccessfulSafeOutputsfails when theledger_job.gohunk is reverse-applied (actual: "always()"), so it guards the regression. - ✅ Ledger-wide tests pass (
go test ./pkg/workflow -run 'Ledger|ledger'). - ✅ Recompiling the 11 workflows matches the committed locks except for scattered cron minutes, which depend on the repo-slug seed in
schedule_preprocessing.goand are environmental.
Non-blocking Follow-ups
- Missing-artifact path: no test asserts that the download step fails hard when the
ledger-transactionsartifact is absent. Consider asserting thatcontinue-on-erroris absent on the download step. - Operator visibility: a skipped
push_ledger_changesjob when safe outputs fail is not reported as a failure. Consider documenting this in the spec.
@copilot please address the non-blocking follow-ups if you agree.
🧠 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
|
🍳 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": "a6575bf5c78fccb8afa30860910830c6b1066168",
"kind": "requested",
"schema_version": "1",
"state": "92752b2577094bbd03bf0858ad9d385e993e54caef567547eca719fe98318b3d",
"work": [
"42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac",
"c7cf93e497befdd5e698d00101b0703e4101fe4133d86d433f7c170d07402b7e"
],
"workflow": "pr-sous-chef"
}
|
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 |
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
|
🍳 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": "bffb232f808d7d354fae897cea9ce6c426ff1944",
"kind": "requested",
"schema_version": "1",
"state": "a95cec338c1a8429cefe94d2152d064ab607b15e07965a7f189b5d7e0873cef2",
"work": [
"42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac"
],
"workflow": "pr-sous-chef"
}
|
Preserve the successful-safe-outputs ledger gate, align the incoming assertion, and regenerate workflow lock conflicts with the merged compiler. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Current |
|
🎉 This pull request is included in a new release. Release: |
Summary
Run 43442754622 failed because
push_ledger_changesran even though activation, the agent, and safe outputs were skipped. The transaction artifact was never created, but the job ignored the download failure and attempted reconciliation anyway.Require
needs.safe_outputs.result == 'success'before ledger persistence and restore default step success guards so a failed artifact download stops reconciliation. Missing artifacts remain failures rather than silently becoming empty transactions. Permissions, credentials, detection dependencies, and transaction validation are unchanged.Adds regression coverage for Git, comment-memory, and mixed ledgers, documents the fail-closed behavior, and regenerates all 11 affected workflow locks.
Validation
Source security review passed with no confirmed vulnerabilities. The reviewer could not resume for generated-lock follow-up; those diffs were checked directly and contain only the matching scheduling and step-guard changes.