Repository navigation
[AI-assisted] docs(copilot): describe the transcript journal, not the removed dual-write mirror - #125599
Conversation
…write mirror The new copilot plugin doc described transcript persistence through extensions/copilot/src/dual-write-transcripts.ts with session-scoped content-fingerprint keys and best-effort failure containment. That module was removed in openclaw#114403 (Jul 27): attempts now own an attempt-transcript-journal keyed by run id and SDK event id, journaled in structurally complete groups, and persistence failures fail closed by aborting the SDK session and flagging replay as unvalidated. Rewrite the section around the current journal, and update the two "transcript mirror" references that pointed at it.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 25, 2026, 2:55 AM ET / 06:55 UTC. ClawSweeper reviewWhat this changesThe PR replaces obsolete Copilot transcript-mirroring documentation with the current attempt-journal persistence, identity, grouping, and failure behavior. Merge readinessKeep open: the central correction is source-backed, but the renamed documentation leaves two linked callers advertising the removed transcript-mirroring architecture. Priority: P3 Review scores
Verification
How this fits togetherThe Copilot plugin converts SDK attempt events into OpenClaw’s durable session transcript. Its journal gives turns stable identities, commits complete assistant/tool groups, and prevents replay of incomplete persistence. flowchart LR
A[Copilot SDK events] --> B[Attempt execution]
B --> C[Transcript journal]
C --> D[Session transcript]
C --> E[Failure handling]
E --> F[Replay decision]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceDocs +10. Total +10 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use “transcript persistence” or “transcript journal” in the two linked caller documents, then rebase and merge the focused documentation correction. Do we have a high-confidence way to reproduce the issue? Not applicable: this is documentation correctness, and current-main source directly establishes the terminology that the docs must describe. Is this the best way to solve the issue? No: the canonical page is corrected, but its two linked callers still advertise transcript mirroring; updating them is the smallest coherent solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fbf8460da350. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
Co-authored-by: Santhi Prakash <[email protected]>
|
Maintainer verification complete on head Current Independent review also caught one inaccurate recovery detail in the original patch: an invalidated replay is not revalidated. Verification:
|
|
Merged via squash.
|
… removed dual-write mirror (openclaw#125599) * docs(copilot): describe the transcript journal, not the removed dual-write mirror The new copilot plugin doc described transcript persistence through extensions/copilot/src/dual-write-transcripts.ts with session-scoped content-fingerprint keys and best-effort failure containment. That module was removed in openclaw#114403 (Jul 27): attempts now own an attempt-transcript-journal keyed by run id and SDK event id, journaled in structurally complete groups, and persistence failures fail closed by aborting the SDK session and flagging replay as unvalidated. Rewrite the section around the current journal, and update the two "transcript mirror" references that pointed at it. * docs(copilot): clarify invalid replay starts a fresh session Co-authored-by: Santhi Prakash <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where developers reading the new Copilot plugin doc would be pointed at a transcript mirroring architecture that no longer exists. The doc (added in #125556) describes
runCopilotAttemptdual-writing messages viaextensions/copilot/src/dual-write-transcripts.ts, scoped per session (copilot:${sessionId}) with per-message content-fingerprint keys, and claims a transcript write failure "never fails the attempt" because failures are merely logged.None of that matches current
main:dual-write-transcripts.tswas removed in #114403 (Jul 27) and replaced by the attempt transcript journal.Why This Change Was Made
The section now describes the shipped architecture, verified against
extensions/copilot/src/on current main:createAttemptTranscriptJournal, wired inattempt-execution.ts) that persists turn messages into the OpenClaw session transcript.${runId}:user, SDK eventscopilot-sdk:${sdkSessionId}:${eventId}, deduped via claimed event ids plus an idempotency scan at the transcript store. The journal itself comments that old mirror keys "can be content fingerprints and are not turn identity".before_message_writehooks may redact content but not role/tool topology.journalValidated/nativeReplayInvalidinattempt-finalize.ts) so the next run revalidates rather than trusting a partial transcript. Only the post-append transcript update notification is best-effort.The two "transcript mirror" references that pointed at the section (intro list, compaction lead-in) were updated to match, and the heading renamed to "Transcript persistence". No other doc or anchor references the old heading (repo-wide grep).
User Impact
Developers extending or debugging the Copilot plugin read an accurate description of transcript persistence, key identity, and failure behavior instead of hunting for a deleted module and wrong invariants (the old text implied transcript write failures are silent, when they now abort the session and invalidate replay).
Evidence
git log:dual-write-transcripts.tslast exists before fix(copilot): keep tool transcript groups structurally complete #114403 (3dc3370d), which addedattempt-transcript-journal.ts(+ tests) and deleted the dual-write files.attempt-transcript-journal.tsimplements${runId}:user/copilot-sdk:${sdkSessionId}:${eventId}keys (L473/L521/L681),captureFailureaborts the SDK session,attempt-finalize.tssetsjournalValidated: false/nativeReplayInvalid: trueon journal failure.bash scripts/docs-spellcheck.sh→ exit 0 across the full docs tree.#transcript-mirroringanchor; the changed section adds and removes zero links; file parses cleanly under markdown-it (15 headings).