Skip to content

fix(core): validate replay operation identity - #698

Open
zhongkechen wants to merge 4 commits into
mainfrom
fix/replay-operation-identity
Open

fix(core): validate replay operation identity#698
zhongkechen wants to merge 4 commits into
mainfrom
fix/replay-operation-identity

Conversation

@zhongkechen

Copy link
Copy Markdown
Contributor

Summary

  • validate checkpoint type, subtype, and name before operation-specific replay handling
  • fail mismatches with NonDeterministicExecutionError instead of consuming another operation's checkpoint
  • cover type, subtype, and name drift through unit and end-to-end regression tests

Testing

  • 1,587 core non-e2e tests passed
  • 46 core e2e tests passed
  • hatch run dev-core:typecheck
  • hatch fmt --check

Closes #692

@zhongkechen
zhongkechen temporarily deployed to ai-pr-review-runtime August 31, 2026 18:58 — with GitHub Actions Inactive
@zhongkechen
zhongkechen had a problem deploying to ai-pr-review-runtime August 31, 2026 19:11 — with GitHub Actions Failure
@zhongkechen
zhongkechen had a problem deploying to ai-pr-review-runtime August 31, 2026 19:11 — with GitHub Actions Failure
@zhongkechen
zhongkechen had a problem deploying to ai-pr-review-runtime August 31, 2026 19:31 — with GitHub Actions Failure
@zhongkechen
zhongkechen temporarily deployed to ai-pr-review-runtime August 31, 2026 19:31 — with GitHub Actions Inactive
@github-actions

This comment has been minimized.

@zhongkechen
zhongkechen had a problem deploying to ai-pr-review-runtime August 31, 2026 22:50 — with GitHub Actions Failure
@zhongkechen
zhongkechen temporarily deployed to ai-pr-review-runtime August 31, 2026 22:50 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

Codex AI review

Two P1 replay-safety gaps remain in concurrent map/parallel handling. Tests do not cover early-completion races or actual NESTED→FLAT replay.

Reviewed commit d8f9c9846eb9aef8367324e72bf72f55f170293b. Workflow run

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.

[Bug]: Replay mismatch silently consumes a checkpoint from a different operation

1 participant