Skip to content

fix: remove redundant nesting from agent session summaries - #74671

Merged
pelikhan merged 5 commits into
mainfrom
pelikhan/agent-session-summary
Nov 4, 2026
Merged

pelikhan merged 5 commits into
mainfrom
pelikhan/agent-session-summary

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Structured agent summaries were nested under an extra "Agentic Conversation" dropdown, requiring another click to reach the session details.

Publish all structured engine logs through the unified-session renderer, without an engine-specific rendering branch or an extra outer disclosure. Normalize legacy records and attach missing source provenance, preserving observed timestamps and existing source scopes. Unstructured log diagnostics and safe-output previews remain available.

Adds regression coverage for canonical and legacy Copilot, Claude, and Codex logs with and without safe outputs, and updates the summary-view specification.

Validation

  • Targeted parser, session, and unified-rendering suites: 362 tests passed.
  • JavaScript type checking, formatting, and lint passed.
  • make agent-report-progress passed for the initial change; make agent-report-progress-no-test passed for the review revision.

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

github-actions Bot commented Nov 4, 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 · ⌖ ~1 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 4, 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 4, 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 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Generated by Ponytail Reviewer for #74671

Verify unified Gemini and Claude publication, retaining diagnostic, accounting, and secret-redaction assertions.

Co-authored-by: Copilot App <[email protected]>
@github-actions

github-actions Bot commented Nov 4, 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: opus55 medium · ~12 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-04T00:16:20Z
review_event: COMMENT
top_themes: [provenance timestamp preservation]
files_reviewed: [actions/setup/js/log_parser_bootstrap.cjs, actions/setup/js/log_parser_bootstrap.test.cjs, actions/setup/js/agent_session.cjs, actions/setup/js/unified_session_order.cjs, actions/setup/js/agent_session_render.cjs]
comment_count: 1

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 · ~3 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 correctness issue in the new provenance fallback: retained session events can lose their observed timestamps because existing partial provenance bypasses timestamp enrichment. See the inline comment for the surgical fix and regression coverage.

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

🟢 Approval recommended

No active review issues block the unified-session summary changes.

No open issues 🎉

What changed in this PR

This PR simplifies gh-aw’s structured agent summaries by using the unified-session renderer for every engine, removing the extra “Agentic Conversation” dropdown.

Changes:

  • Normalizes legacy records and fills missing source provenance while preserving timestamps and existing source scopes.
  • Keeps safe-output previews alongside the unified session and preserves unstructured-log diagnostics.
  • Updates regression tests and the summary-view specification.
File Description
docs/​src/​content/​docs/​specs/​unified-agent-session-specification.md Documents engine-independent rendering and legacy normalization.
actions/​setup/​js/​parse_claude_log.test.cjs Updates Claude summary assertions for the unified view.
actions/​setup/​js/​log_parser_bootstrap.test.cjs Covers canonical and legacy logs, safe outputs, and disclosure nesting.
actions/​setup/​js/​log_parser_bootstrap.cjs Normalizes structured logs, adds missing provenance, and removes the outer disclosure.
actions/​setup/​js/​gemini_error_contract.test.cjs Verifies unified rendering preserves Gemini diagnostic semantics.
actions/​setup/​js/​agent_session_telemetry.test.cjs Updates redaction checks to target unified summary output.

Review effort: Balanced (auto)

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

What this change does: The parser now normalizes canonical and legacy engine records and sends structured sessions through the unified renderer. It keeps safe-output previews and the unstructured fallback path while removing the extra outer disclosure.

Should fix:

  1. Duplicate provenance construction (actions/setup/js/log_parser_bootstrap.cjs:L517-L523)

    • What this is: The new fallback map repeats the source, index, and native provenance construction that already exists for retained sessions.
    • Problem: Two inline copies define the same metadata envelope, so a later unified-session change can make retained and direct sessions diverge.
    • Fix: Extract one small helper, preserving the branch that keeps existing source scopes, and use it in both maps.
    • If we skip it: Future metadata changes require two edits and can produce inconsistent source summaries.

Verdict: fix 1 first.
Lean: -5 lines possible.

Generated by ✂️ Ponytail Reviewer for #74671 · codex · routed: gpt56 max · ~6 AIC · ⌖ ~1 AIC · ⊞ 118
Comment /ponytail 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.

Skills-Based Review 🧠

Applied /tdd and /codebase-design. Requesting changes because the routing change breaks two existing test assertions.

📋 Key Themes & Highlights

Key Themes

  • Stale test expectations: agent_session_telemetry.test.cjs and parse_claude_log.test.cjs still look for Execution Summary, Conversation:, and === Claude Execution Summary ===. The new unified output no longer prints those strings, so these tests will fail.
  • Guard consistency: log_parser_bootstrap.cjs uses selectedSource unguarded where an earlier call guards it. Safe today, but the invariant should be explicit.

Positive Highlights

  • ✅ Consolidating every structured engine log onto one renderer removes the nested Agentic Conversation wrapper and fixes the duplicate-disclosure problem.
  • ✅ The new it.each suite covers Copilot, Claude, and Codex with and without safe outputs and legacy entries, and checks nesting depth.
  • ✅ Provenance fallback follows the spec: index and timestampMs match the observed-projection definition.

Limits

  • Vitest could not run here (npm registry TLS failure), so the stale-test findings come from running the parser in plain Node and from static reading. Please run npx vitest run on the three test files to confirm.

@copilot please address the review comments above.

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

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

In response to this notification: reported_no_action is informational, not actionable feedback or proof of complete coverage, so no code change follows from it. The provenance fix has separate focused regression coverage.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

In response to this notification: this is a reviewer progress notification rather than a change request. No code change is needed for this comment.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

In response to this notification: the completion status requires no code change itself. The separately published timestamp-preservation finding was accepted and fixed in be4731f.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

In response to this notification: successful reviewer execution is informational, not an approval or a change request. The separate provenance-helper recommendation was accepted and implemented in be4731f.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

In response to this notification: reported_no_action does not include an actionable ADR request, so no documentation or code change is needed for this status. It is not being treated as proof that all gate requirements were verified.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

In response to this review memory: the bot-managed context is not an independent change request, so it remains untouched. The underlying provenance feedback was addressed in be4731f.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Regarding this notification: it remains informational and requires no code change. reported_no_action is not being treated as evidence of complete test coverage.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Regarding this notification: the reviewer has now completed, but this status itself requests no code change. The two separately published inline findings have been addressed individually.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Regarding this notification: completion status is informational and needs no additional code change. The separate provenance finding was fixed in be4731f.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Regarding this notification: successful reviewer execution is not approval or a new change request. The provenance-helper recommendation was already implemented in be4731f.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Regarding this notification: no actionable ADR request is present, so no documentation or code change is needed. The no-action status is not being treated as proof of complete gate verification.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Regarding this review memory: it is bot-managed context, not an independent change request, and remains untouched. The underlying timestamp-preservation finding was handled in its own review thread.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Regarding this earlier reply: the distinction between a no-action status and independent regression coverage remains correct. This clarification requests no additional code change.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Regarding this earlier reply: the original progress notification has since become a completion notification, but neither status itself requires code changes. The actual inline review findings have been addressed separately.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Regarding this earlier reply: the timestamp-preservation fix remains in be4731f. This prior resolution summary introduces no additional change request.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Regarding this earlier reply: the shared provenance helper remains implemented in be4731f. No further change follows from this prior resolution summary.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Regarding this earlier reply: the design-gate status still supplies no actionable ADR request. No documentation or code change is needed for this clarification.

@pelikhan

pelikhan commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Regarding this earlier reply: leaving the bot-managed memory untouched remains appropriate. This prior resolution summary does not request additional code changes.

@pelikhan
pelikhan merged commit 6ee6d92 into main Nov 4, 2026
35 checks passed
@pelikhan
pelikhan deleted the pelikhan/agent-session-summary branch November 4, 2026 00:51
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.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.

2 participants