Skip to content

Fix duplicate attribution footers in completion comments - #77482

Merged
pelikhan merged 5 commits into
mainfrom
pelikhan/duplicate-generated-footers
Nov 13, 2026
Merged

pelikhan merged 5 commits into
mainfrom
pelikhan/duplicate-generated-footers

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Summary

Completion comments included both the no-op summary's "Generated from" footer and the completion handler's "Generated by" footer, as seen in #77463 (comment).

Export the reusable no-op summary without standalone attribution, leaving the completion handler responsible for a single footer. Preserve credit breakdowns, ambient context size, history links, and execution traceability. Standalone no-op tracking comments retain their footer. Regenerate affected workflow lock files to pass the required footer metadata.

Validation

  • make fmt
  • go test ./pkg/workflow -run '^Test(NotifyComment|Noop|CompletionComment)' -count=1
  • npm exec -- vitest run notify_comment_error.test.cjs handle_noop_message.test.cjs (86 tests passed)
  • npm run typecheck
  • Go lint, custom Go linters, schema freshness, and impacted Go tests from make agent-report-progress passed. Restored missing lint dependencies and reran JavaScript lint through make agent-report-progress-no-test successfully.
  • make check-workflow-drift passed after regeneration: all 366 workflows compiled successfully.

Export no-op summaries without standalone attribution and retain a single completion footer with usage and history metadata.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review November 13, 2026 14:46
Copilot AI adaptive review requested due to automatic review settings November 13, 2026 14:46
@github-actions

github-actions Bot commented Nov 13, 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 by Ponytail Reviewer for #77482 · codex · routed: gpt61 medium · ~4 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 182 · ◷

@github-actions

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

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

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

❌ PR Specification Reviewer failed to deliver outputs. Please review the logs for details.

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 #77482 · copilot · gpt56 · ~4 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 1.7K · ◷

@github-actions

github-actions Bot commented Nov 13, 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 · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 6.6K · ◷

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ PR Code Quality Reviewer failed to deliver outputs during 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 · ~6 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 1.6K · ◷

@github-actions

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

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

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-13T14:50:36Z
review_event: COMMENT
top_themes: [conclusion metadata job-name propagation]
files_reviewed: [actions/setup/js/handle_noop_message.cjs, actions/setup/js/notify_comment_error.cjs, pkg/workflow/notify_comment_conclusion_helpers.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 · ~6 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.

Found one medium correctness issue: the new conclusion metadata path hardcodes needs.agent rather than honoring the conclusion builder's main job name. Inline comment posted; no tests or repository code were executed per static-review constraints.

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

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

The new completion-step environment entries are missing from the smoke-copilot golden fixture, causing the full normalized YAML comparison to fail until the expectations are regenerated and committed.

1 open issue
What changed in this PR

This PR removes duplicate attribution footers from gh-aw completion comments by making the completion handler responsible for the footer, while retaining attribution on standalone no-op tracking comments.

Changes:

  • Export no-op summaries without a footer and preserve standalone attribution.
  • Supply completion footers with engine metadata, credit breakdowns, ambient context size, and history links.
  • Add regression coverage and regenerate affected workflow locks.
File Description
pkg/​workflow/​notify_comment_conclusion_helpers.go Supplies completion-footer metadata.
pkg/​workflow/​noop_in_conclusion_test.go Tests compiler-provided footer metadata.
actions/​setup/​md/​noop_comment.md Replaces fixed attribution with an optional footer slot.
actions/​setup/​js/​notify_comment_error.test.cjs Tests single-footer rendering and preserved metadata.
actions/​setup/​js/​notify_comment_error.cjs Adds completion-footer history links.
actions/​setup/​js/​handle_noop_message.test.cjs Tests standalone and reusable footer behavior.
actions/​setup/​js/​handle_noop_message.cjs Separates reusable summaries from standalone attribution.
.github/​workflows/​windows.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​unbloat-docs.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​tidy.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​test-quality-sentinel.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​squad.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​squad-plan.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-update-cross-repo-pr.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-test-tools.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-temporary-id.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-service-ports.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-pydantic.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-project.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-pi.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-pi-routed-claude.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-otel-backends.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-opencode.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-multi-pr.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-kiro.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-goose.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-github-claude.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-gemini.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-drive.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-deepseek-harness.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-cursor.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-crush.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-create-cross-repo-pr.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-copilot.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-copilot-small.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-copilot-sdk.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-copilot-sdk-routed-claude.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-copilot-routed-steering.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-copilot-routed-claude.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-copilot-mai.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-copilot-auto.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-copilot-arm.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-copilot-aoai-entra.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-copilot-aoai-apikey.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-codex.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-claude.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-claude-on-copilot.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-checkout-pr-dispatch.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-call-workflow.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-aider.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-agent-scoped-approved.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-agent-public-none.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-agent-public-approved.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-agent-all-none.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​smoke-agent-all-merged.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​skillet.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​security-review.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​scout.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​q.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​pr-specification-reviewer.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​pr-sous-chef.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​pr-nitpick-reviewer.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​pr-code-quality-reviewer.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​ponytail-reviewer.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​poem-bot.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​plan.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​pdf-summary.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​necromancer.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​mergefest.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​mattpocock-skills-reviewer.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​grumpy-reviewer.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​design-decision-gate.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​dependabot-burner.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​craft.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​cloclo.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​archie.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​approach-validator.lock.yml Regenerates completion-footer metadata.
.github/​workflows/​ace-editor.lock.yml Regenerates completion-footer metadata.

Review effort: Balanced (dynamic)

@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 /diagnosing-bugs, /tdd and /codebase-design. The footer deduplication is correct: a no-op summary now carries one footer, and that footer comes from the completion handler. I found no blocking bug.

📋 Key Themes and Highlights

Key Themes

  • Body rendered twice: buildNoopCommentBody runs for both outputs with identical inputs.
  • Wider env block: GH_AW_ENGINE_* is now emitted for every workflow, which touches every conclusion job.
  • Test gap: the new Go test covers only the explicit-model path, not routing or the empty-model fallback.
  • Unverified: the notify_comment_error and handle_noop_message vitest suites could not run in this sandbox because the npm registry presents a self-signed certificate. Their new expectations need CI confirmation.

Positive Highlights

  • ✅ The {footer} slot renders cleanly, with no stray text when the footer is empty.
  • ✅ The history link reuses generateHistoryUrl, consistent with other handlers.
  • ✅ The new noop_in_conclusion_test.go case is well-named and asserts the exact env contract.

@copilot please address the review comments above.

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

Comment thread pkg/workflow/noop_in_conclusion_test.go Resolved
@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (pkg/workflow/notify_comment_conclusion_helpers.go:583): address unresolved feedback - Review comment
  3. Review (pkg/workflow/noop_in_conclusion_test.go:26): address unresolved feedback - Review comment
  4. Review (pkg/workflow/notify_comment_conclusion_helpers.go:583): address unresolved feedback - Review comment
  5. Review (actions/setup/js/handle_noop_message.cjs:371): address unresolved feedback - Review comment
  6. Fix failing check build-wasm (FAILURE): Check run.
  7. Fix failing check impacted-go-tests (FAILURE): Check run.
  8. Fix failing check JS Tests (shard 2/8) (FAILURE): Check run.
  9. Fix failing check push_ledger_changes (FAILURE): Check run.
  10. Fix failing check push_ledger_changes (FAILURE): Check run.
  11. Fix failing check push_ledger_changes (FAILURE): Check run.
  12. Fix failing check safe_outputs (FAILURE): Check run.
  13. Fix failing check safe_outputs (FAILURE): Check run.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "0b9f0c47b0d9a6c75f407862bcf8e8ed44d42f10",
  "kind": "requested",
  "schema_version": "1",
  "state": "f8c909e0cb05a4caa686f7fd13e9dcf2d765f90e384fe4fc65b89185fe8ab75a",
  "work": [
    "1e9481f9a89cf024b6dcf8840d8181d962fb6d08e0334f42b3028770314ff755",
    "2ec1c55a56c3bbc3d439b0f0d819e0f964a9c8ea5c8bbe45cc9676c7e7802a18",
    "42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac",
    "60f9c6f75a23e45038bdc0a714895e50930dc28c799e65ed0e0a6ca6d5b913c3",
    "67c3c42cc974b5d10ffc0a9076f3e690455245e1702432e372fd586160140d64",
    "729a75adcdab3d459798cdb90bc3577ce2920cd353879d76982e31ddfd9c9b42",
    "8acb61a077717e3a460018aacdfde96fd489f77606cd36169e2328d9079b75bb",
    "a272ebc970e2f198f5229cd6e6635c2fe71965b6d7bb94142833b5ebb8dd623a",
    "c7cf93e497befdd5e698d00101b0703e4101fe4133d86d433f7c170d07402b7e"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~4 AIC · ⌖ ~2 AIC · ⊞ 6.9K · ◷
Comment /souschef to run again

Copilot AI and others added 2 commits November 13, 2026 15:50
…nerated-footers

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>
pelikhan and others added 2 commits November 13, 2026 08:18
…nerated-footers

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Share the parsed no-op report between distinct publication bodies and add exact conclusion metadata coverage for explicit, empty, and routed models with a custom main job.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #77482 (comment): no code change is needed for this status-only comment. It contains one attribution footer with usage, history, and provenance; reported_no_action remains a completion category rather than an independent verification claim.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #77482 (comment): no additional change is needed. This status comment has one custom attribution footer with usage, history, and provenance, and contains no duplicate-footer defect or independent change request.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #77482 (comment): run 43446008614 failed ledger schema validation in safe_outputs, then push_ledger_changes failed because the transaction artifact was absent. These are unrelated ledger-path failures deferred from this footer fix; the status comment itself has one footer.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #77482 (comment): the substantive review feedback is addressed with model-path regression coverage and shared no-op report composition. This completion message already has one custom attribution footer and needs no separate code change.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #77482 (comment): the caller-selected job-name finding is addressed and now has conclusion-builder regression coverage. The historical run submitted its review before failing unrelated ledger schema validation, which also left the ledger-push artifact absent; its status message itself has one footer.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #77482 (comment): no change is needed for this status-only comment. It contains one custom attribution footer and no independent implementation request; the no-action category is not a claim that every downstream operation was verified.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #77482 (comment): this managed memory records the existing job-name propagation finding, which is addressed with caller-selected metadata and expanded regression coverage. No additional code change is required, and the managed memory block is preserved unchanged.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #77482 (comment): the main update is already merged, the listed build-wasm/impacted-go-tests/JS shard 2 failures are stale with newer successful checks, and the review feedback is addressed or verified already satisfied. The historical ledger schema and missing-artifact failures remain separate follow-up work; currently skipped ledger checks do not establish that those issues are fixed.

@pelikhan
pelikhan merged commit 3c70a0d into main Nov 13, 2026
110 checks passed
@pelikhan
pelikhan deleted the pelikhan/duplicate-generated-footers branch November 13, 2026 16:44
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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.

4 participants