Skip to content

feat: distinguish synthetic prompts in session replay - #1504

Merged
jhrozek merged 6 commits into
mainfrom
impl/synthetic-user-prompt-replay
Sep 15, 2026
Merged

jhrozek merged 6 commits into
mainfrom
impl/synthetic-user-prompt-replay

Conversation

@eleftherias

Copy link
Copy Markdown
Member

Stage

Implementation

Plan / Interface baseline

Summary

  • add authoritative Synthetic origin metadata to durable user_prompt events
  • preserve the additive field through JSON, protobuf, gRPC, and HTTP replay while leaving event-sourced conversation folding unchanged
  • classify established harness continuations as non-genuine for title/activity consumers
  • render synthetic replay prompts as persistent mecatui notices while preserving genuine media bubbles and scheduled-delivery precedence
  • update replay/API user documentation

Acceptance criteria

Completed AC1.1–AC1.4 and AC2.1–AC2.4. The plan-specific strict trace reports all 8 ACs with zero failures.

Verification

  • task generate: pass
  • task api:check: pass
  • task lint: pass
  • task test: pass (rerun with a shorter repo-local TMPDIR because the managed temporary path exceeded Darwin's Unix-socket path limit)
  • task docs: pass
  • task site:build: pass
  • go run ./cmd/mecademo: pass
  • ac-trace --strict --plan docs/acceptance/synthetic-user-prompt-replay.md: pass, 8 ACs / 0 failures
  • Full-tree task ac-trace-strict remains blocked by the pre-existing malformed status in docs/acceptance/callmcpwithquery-broker-support.md; this plan's strict forward check is green.
  • Panel review: omitted at the directing user's explicit request after rebasing and regenerating contracts.

Interfaces match approved contract: Yes

Non-material implementation deviations: none.

Closes #1457

@eleftherias
eleftherias requested a review from jhrozek September 14, 2026 17:18
@jhrozek
jhrozek force-pushed the impl/synthetic-user-prompt-replay branch from 2f12e94 to eb682e6 Compare September 14, 2026 21:29
Eleftheria and others added 5 commits September 15, 2026 09:53
Panel review found the no-progress nudge/extractive-nudge literals
duplicated verbatim between engine/agent/loop.go (authoring) and
engine/session/title.go (classification), unlike the established
CompactionSummaryMarker/Tier4SummaryMarker precedent in the same file.
Promote them to exported session.NoProgressNudgeText/
NoProgressExtractiveNudgeText and have loop.go and the title tests
reference the single copy instead of duplicating it.

Also flip ADR 0337 from Proposed to Accepted now that its plan is
landed, and update ADR 0038's superseded-by note to match.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@jhrozek
jhrozek force-pushed the impl/synthetic-user-prompt-replay branch from eb682e6 to e59e150 Compare September 15, 2026 07:55
task api:update after exporting session.NoProgressNudgeText/
NoProgressExtractiveNudgeText; adds the matching Added (minor)
engine/CHANGELOG.md entry.

Co-authored-by: mecatl <[email protected]>
@jhrozek
jhrozek force-pushed the impl/synthetic-user-prompt-replay branch from e59e150 to 9595399 Compare September 15, 2026 07:56
@jhrozek
jhrozek merged commit fb05301 into main Sep 15, 2026
35 checks passed
@jhrozek
jhrozek deleted the impl/synthetic-user-prompt-replay branch September 15, 2026 08:44
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.

Resumed session shows harness-authored messages as chat history

2 participants