Skip to content

[avenger] Fix build: undefined topRawSafeOutputs in mergeSafeOutputConfig - #77626

Closed
github-actions[bot] wants to merge 2 commits into
mainfrom
avenger/fix-merge-safe-output-build-a242f60c7c558d6b
Closed

github-actions[bot] wants to merge 2 commits into
mainfrom
avenger/fix-merge-safe-output-build-a242f60c7c558d6b

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

CI failure

Most CI jobs failed at the Build gh-aw binary step. The cause was pkg/workflow/imports.go:585: undefined: topRawSafeOutputs.

Fix

mergeSafeOutputConfig used topRawSafeOutputs (for the require-agent-success merge), but the variable was only a parameter of MergeSafeOutputs. I added it as a parameter to mergeSafeOutputConfig and passed it from the caller.

Validation

  • go build ./cmd/gh-aw succeeds.
  • Targeted go test ./pkg/workflow -run SafeOutputs.*Import|MergeSafeOutputs passes.
  • gofmt is clean.
  • I did not run make test-unit, make lint or the merge from origin/main (git fetch failed with a TLS error in the sandbox), and I did not check the steering issue (the read returned nothing).

Generated by 🦸 Avenger · copilot · routed: sonnet55 high · ~30 AIC · ⌖ ~2 AIC · ⊞ 4.8K · ◷

  • expires on Nov 15, 2026, 7:38 PM UTC-08:00

@pelikhan
pelikhan marked this pull request as ready for review November 14, 2026 05:52
Copilot AI adaptive review requested due to automatic review settings November 14, 2026 05:52
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ PR Specification Reviewer completed successfully!

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

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

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

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 8.6K · ◷

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~4 AIC · ⌖ ~2 AIC · ⊞ 6.6K · ◷

@github-actions

Copy link
Copy Markdown
Contributor Author

✂️ Ponytail Reviewer has started processing this pull request

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

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

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~2 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 1.5K · ◷

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

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

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 7.3K · ◷

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.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

@github-actions

Copy link
Copy Markdown
Contributor Author

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-70e841fa-aaf7-4fa1-b834-e6e07bb0afeb","parents":[],"payload":{"id":"ldg-118ca016-65f1-4721-9700-ada158a4443d","operation":"append","value":{"finding_count":0,"head_sha":"830c673a84862812fd0ff370cabafca401f96d81","outcome":"aligned"}},"sha":"sha256:87653796a1ab87ae0a6a14bcd04802bc47bd4584f42c88914be486cdb1e7e0a7","timestamp":"2026-11-14T06:02:46.503Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor Author

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-14T05:56:14Z
review_event: REQUEST_CHANGES
top_themes: [import merge precedence for require-agent-success]
files_reviewed: [pkg/workflow/imports.go]
comment_count: 1
History

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 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷
Comment /review to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found one correctness issue in the safe-output import merge: explicit require-agent-success: false from an earlier import can be overridden by a later import because the new guard checks only top-level raw settings. Please preserve explicit imported values and add regression coverage.

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

Comment thread pkg/workflow/imports.go Outdated

// Merge meta-configuration fields (only set if empty/zero in result)
if _, defined := explicitSafeOutputs["require-agent-success"]; !defined {
if _, defined := topRawSafeOutputs["require-agent-success"]; !defined {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explicitSafeOutputs is updated after each import, but this guard only checks topRawSafeOutputs. As a result, an earlier imported workflow that explicitly sets require-agent-success: false can be overridden by a later import setting it to true, because the OR below then flips the merged value. Please guard on the accumulated explicit settings (or otherwise make explicit imported values sticky), and add a test covering two imports with false then true.

@github-actions

Copy link
Copy Markdown
Contributor Author

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-88936a26-fe7f-4770-b435-b7a278c4d4d3","parents":[],"payload":{"id":"ldg-4c066954-1382-42a6-a9c8-a6bc34a9b61a","operation":"append","value":{"finding_count":1,"head_sha":"830c673a84862812fd0ff370cabafca401f96d81","outcome":"findings"}},"sha":"sha256:319fc51b065d6f31a8ae3a945f5c301a36c651284ef125e62985f614740ba108","timestamp":"2026-11-14T06:03:45.349Z","type":"ledger_append","version":1}
History

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review 🧠

Applied /diagnosing-bugs and /tdd guidance. No blocking issues found.

📋 Details
  • Fix: mergeSafeOutputConfig now takes topRawSafeOutputs and uses it at pkg/workflow/imports.go:585. This resolves the undefined-variable build failure.
  • Verification: go build ./cmd/gh-aw, go vet ./pkg/workflow and gofmt are clean. TestSafeOutputsRequireAgentSuccessImports and TestSafeOutputsRequireAgentSuccess pass and exercise the changed require-agent-success branch.
  • Full pkg/workflow run: 4 failures (TestVerifyGitCredentials, TestVerifyGitCredentialsIncludes, TestCredentialFreePromptEnvironment, TestBuildDynamicEnclaveExpiryScriptResolvesMinOfConfiguredAndJobExpiry). They look environmental (mktemp permission, inherited GITHUB_TOKEN, clock-sensitive assertion) and are unrelated to this diff. Please confirm in CI.
  • Limits: The pre-fetched diff was empty, and PR head commit 830c673 is not present locally. I could not diff against the base. This review is based on the local checkout at bbd75c0.

@copilot please address the review comments above, if any.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~4 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants