Skip to content

fix(serdes): rebuild file path in deserialize - #937

Draft
SilanHe wants to merge 3 commits into
mainfrom
fix/filesystem-serdes-rebuild-path
Draft

SilanHe wants to merge 3 commits into
mainfrom
fix/filesystem-serdes-rebuild-path

Conversation

@SilanHe

@SilanHe SilanHe commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #936. Port of aws-durable-execution-sdk-js#1219.

deserialize ignores the envelope's file path and rebuilds it from basePath, pathEncoding, the execution ARN and the entity ID. Each entity has one file name, with no write ID.

Last write wins is intended: a second write to the same entity replaces the first, and an earlier envelope reads the newer value.

Behavior change: a file envelope from another identity no longer reads. Files written by older SDK versions are not found.

Tests: mvn install passes.

🤖 AI-assisted comment

@SilanHe
SilanHe force-pushed the fix/filesystem-serdes-rebuild-path branch 3 times, most recently from 09d58fa to e0792b4 Compare December 2, 2026 23:05
@SilanHe
SilanHe force-pushed the fix/filesystem-serdes-rebuild-path branch from e0792b4 to e26e913 Compare December 3, 2026 22:58

This branch has not been deployed

No deployments
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.

fix(serdes): FileSystemSerDes.deserialize must not trust the envelope's file path

2 participants