Repository navigation
fix: remove redundant nesting from agent session summaries - #74671
Conversation
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|
✅ 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.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Ponytail Reviewer completed successfully!
|
Verify unified Gemini and Claude publication, retaining diagnostic, accounting, and secret-redaction assertions. Co-authored-by: Copilot App <[email protected]>
|
✅ 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.
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
🟢 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)
There was a problem hiding this comment.
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:
-
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
There was a problem hiding this comment.
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.cjsandparse_claude_log.test.cjsstill look forExecution 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.cjsusesselectedSourceunguarded 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 Conversationwrapper and fixes the duplicate-disclosure problem. - ✅ The new
it.eachsuite covers Copilot, Claude, and Codex with and without safe outputs and legacy entries, and checks nesting depth. - ✅ Provenance fallback follows the spec:
indexandtimestampMsmatch 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 runon 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
Co-authored-by: Copilot App <[email protected]>
|
In response to this notification: |
|
In response to this notification: this is a reviewer progress notification rather than a change request. No code change is needed for this comment. |
|
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. |
|
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. |
|
In response to this notification: |
|
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. |
Co-authored-by: Copilot App <[email protected]>
|
Regarding this notification: it remains informational and requires no code change. |
|
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. |
|
Regarding this notification: completion status is informational and needs no additional code change. The separate provenance finding was fixed in be4731f. |
|
Regarding this notification: successful reviewer execution is not approval or a new change request. The provenance-helper recommendation was already implemented in be4731f. |
|
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. |
|
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. |
|
Regarding this earlier reply: the distinction between a no-action status and independent regression coverage remains correct. This clarification requests no additional code change. |
|
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. |
|
Regarding this earlier reply: the timestamp-preservation fix remains in be4731f. This prior resolution summary introduces no additional change request. |
|
Regarding this earlier reply: the shared provenance helper remains implemented in be4731f. No further change follows from this prior resolution summary. |
|
Regarding this earlier reply: the design-gate status still supplies no actionable ADR request. No documentation or code change is needed for this clarification. |
|
Regarding this earlier reply: leaving the bot-managed memory untouched remains appropriate. This prior resolution summary does not request additional code changes. |
|
🎉 This pull request is included in a new release. Release: |
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
make agent-report-progresspassed for the initial change;make agent-report-progress-no-testpassed for the review revision.