Skip to content

fix(mcp): replay terminal localization evidence#327

Draft
zzet wants to merge 1 commit into
mainfrom
fix/localization-terminal-evidence-replay
Draft

fix(mcp): replay terminal localization evidence#327
zzet wants to merge 1 commit into
mainfrom
fix/localization-terminal-evidence-replay

Conversation

@zzet

@zzet zzet commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • retain a deterministic, bounded localization evidence digest and final response at answer-ready
  • replay the terminal answer idempotently for later navigation calls while keeping model-visible replay compact
  • preserve the full terminal contract and digest in host metadata
  • authenticate compact replay in the PostToolUse hook without weakening the existing visible-contract path
  • cover concurrency, lifecycle, malformed boundaries, sanitization, replay size, host-loop behavior, and tamper rejection

Verification

  • go test ./internal/mcp ./internal/hooks -count=1
  • go test -race -p 1 ./internal/...
  • golangci-lint run ./...
  • git diff --check

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.

1 participant