Skip to content

Preserve comment-memory workflow run transaction history - #77335

Merged
pelikhan merged 8 commits into
mainfrom
pelikhan/comment-memory-history
Nov 13, 2026
Merged

pelikhan merged 8 commits into
mainfrom
pelikhan/comment-memory-history

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Comment-memory updates currently replace the previous comment's attribution, losing the list of workflow runs that wrote the memory.

Adds a separate collapsible Transaction history section with deduplicated workflow run links. The handler carries history forward across updates and clears, independently of generated footer settings, and keeps it out of editable memory. Framework history links do not consume the agent's link budget.

Older comments seed history from their most recent recorded attribution; earlier runs cannot be recovered. Updates that exceed GitHub's comment size limit fail without overwriting memory or truncating history.

Validation: 54 focused tests passed, TypeScript checking passed, and changed-file JavaScript lint passed. The final repository gate completed its build and impacted checks; its initially missing lint dependencies were restored and that lint gate passed separately.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review November 13, 2026 04:07
Copilot AI adaptive review requested due to automatic review settings November 13, 2026 04:07
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@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.

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

Generated from Design Decision Gate 🏗️ · routed: sonnet55 high · ~6 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 8.6K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@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

@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 from Ponytail Reviewer · routed: gpt61 medium · ~5 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 182 · ◷

Generated by Ponytail Reviewer for #77335

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

Reviewed the changed comment-memory implementation and tests. I found no actionable correctness, security, or maintainability issues on the changed lines. The transaction-history growth and explicit size-limit failure behavior are documented and covered by tests. Static review only; no code execution performed.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 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

Concurrent updates can permanently lose run history, while attacker-authored comments can inject arbitrary-domain links that are republished as trusted framework content.

3 open issues
What changed in this PR

This PR adds persistent workflow-run history to gh-aw comment memory, separate from editable memory and generated footers.

Changes:

  • Carries deduplicated run links across updates and clears, seeding older comments from their latest attribution.
  • Exempts history links from the agent link budget and rejects oversized updates without truncating history.
  • Adds regression tests and documents history retention and legacy limitations.
File Description
docs/​src/​content/​docs/​reference/​glossary.md Documents history retention, migration limits, and oversized-update behavior.
actions/​setup/​js/​comment_memory.test.cjs Tests history persistence, migration, staged mode, and size limits.
actions/​setup/​js/​comment_memory.cjs Builds and preserves history when updating managed memory comments.

Review effort: Balanced (dynamic)

Comment thread actions/setup/js/comment_memory.cjs Resolved
Comment thread actions/setup/js/comment_memory.cjs Resolved
Comment thread actions/setup/js/comment_memory.cjs Resolved
Comment thread actions/setup/js/comment_memory.cjs Resolved

@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 /grill-with-docs, /diagnosing-bugs, and /tdd. Requesting changes on one trust-boundary issue and one unbounded-growth issue.

📋 Key Themes & Highlights

Key Themes

  • Taint laundering: history labels are copied from agent-tainted text into a trusted node (inline comment on comment_memory.cjs line 75).
  • Unbounded growth: the sizeProtected history section grows about 104 characters per run and can permanently block updates near 600 runs (inline comment on line 94).
  • Test gap: no coverage for a forged label inside previous history (inline comment on comment_memory.test.cjs line 86).

Positive Highlights

  • ✅ Staged mode correctly skips history from the previous body.
  • ✅ A failed list call goes through the existing catch path.
  • ✅ The glossary entry documents the new section.

Verification Limits

  • The JS test suite could not run in this environment because npm ci failed with a TLS error. The claimed test results are unverified here.

@copilot please address the review comments above.

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

Comment thread actions/setup/js/comment_memory.cjs Resolved
Comment thread actions/setup/js/comment_memory.cjs 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 (actions/setup/js/comment_memory.cjs:75): address unresolved feedback - Review comment
  3. Review (actions/setup/js/comment_memory.cjs:94): address unresolved feedback - Review comment
  4. Review (actions/setup/js/comment_memory.test.cjs:86): address unresolved feedback - Review comment

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

Structured data
{
  "completed_task": 0,
  "head": "7177298d272bdd5c79a9a4bcc0f5b7c617845d52",
  "kind": "requested",
  "schema_version": "1",
  "state": "37394dafc4f1419b6dc0d9da08b2620fd252e1e1093db60f535dffcc43f08569",
  "work": [
    "147468198de965b1c8c8d81f2ca816e22f2bd1df6fc9e1a1c9227c59c75b91cc",
    "319179084f66c7c4c04ee8fbabd31f9668d2ff8e725dc838725393336e656546",
    "c42b549ced5a99789d1ba8490073014c288d0759a138078ede38a7cf21f73edd"
  ],
  "workflow": "pr-sous-chef"
}

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

Copilot AI and others added 2 commits November 13, 2026 04:53
…ry-history

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>

Copilot AI commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

@copilot

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

Merged main in 411b778 and addressed the three threads in 3eafba9. The final validation gate passed; merge-target recompilation was interrupted while waiting on an npm registry lookup.

Exclude memory payloads from metadata discovery, validate managed comment authors, preserve the complete run history, and serialize comment-memory safe-output jobs across workflows in the same Actions repository.

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

Copy link
Copy Markdown
Collaborator Author

In reply to #77335 (comment): No code change is requested by this completion report. The actionable review findings are being addressed in their individual threads rather than treating this no-op result as validation evidence.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In reply to #77335 (comment): No change needed for this notification; it contains no design finding or ADR request. The specific correctness and trust-boundary findings are evaluated separately.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In reply to #77335 (comment): No change needed for this completion notification or its associated no-findings review. The later actionable review comments are handled separately.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In reply to #77335 (comment): This is a completion notification rather than an additional change request. The associated label, retention, and regression-test feedback is answered directly in its review threads.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In reply to #77335 (comment): No code change is requested by this no-action report. It does not replace focused validation of the fixes requested in the other review threads.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In reply to #77335 (comment): The requested main merge is already present in 411b778, and the referenced fixes are evaluated in their individual review threads. No additional merge or workflow dispatch is needed for this notification.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In reply to #77335 (comment): Confirmed both earlier commits are on this branch; 69 focused JavaScript tests, TypeScript, focused compiler tests, standard Go lint, and all 365 workflow compilations/drift checks pass. The full gate is still blocked by a pre-existing discarded-error custom-linter finding in appendCustomActionSteps, which this batch leaves unchanged.

Comment thread actions/setup/js/comment_memory.cjs Resolved
pelikhan and others added 2 commits November 12, 2026 21:39
Share the lazy publishing-identity lookup between comment-memory and add-comment while preserving cached bot fallback behavior.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Seed an isolated action cache and assert the exact SHA-pinned external setup reference, retaining the existing repository and checkout checks without live tag resolution.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Document effective-credential identity lookup, scoped caching, API-author validation and the installation-token bot fallback for comment reuse and comment-memory upserts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan merged commit 0498dbb into main Nov 13, 2026
11 checks passed
@pelikhan
pelikhan deleted the pelikhan/comment-memory-history branch November 13, 2026 05:57
@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.

5 participants