Repository navigation
Preserve comment-memory workflow run transaction history - #77335
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
✅ 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.
|
|
✅ 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 Code Quality Reviewer completed the code quality review.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ 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.
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
🟡 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)
There was a problem hiding this comment.
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.cjsline 75). - Unbounded growth: the
sizeProtectedhistory 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.cjsline 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 cifailed 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
|
🍳 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": "7177298d272bdd5c79a9a4bcc0f5b7c617845d52",
"kind": "requested",
"schema_version": "1",
"state": "37394dafc4f1419b6dc0d9da08b2620fd252e1e1093db60f535dffcc43f08569",
"work": [
"147468198de965b1c8c8d81f2ca816e22f2bd1df6fc9e1a1c9227c59c75b91cc",
"319179084f66c7c4c04ee8fbabd31f9668d2ff8e725dc838725393336e656546",
"c42b549ced5a99789d1ba8490073014c288d0759a138078ede38a7cf21f73edd"
],
"workflow": "pr-sous-chef"
}
|
…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>
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>
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
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>
|
🎉 This pull request is included in a new release. Release: |


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.