Skip to content

feat: new promise id format (':' lineage separator, drop id prefix) - #11

Open
Tomperez98 wants to merge 3 commits into
mainfrom
new-promise-id-format
Open

Tomperez98 wants to merge 3 commits into
mainfrom
new-promise-id-format

Conversation

@Tomperez98

Copy link
Copy Markdown
Member

New promise id format

Promise ids now use the form <promiseId>:<lineage>:

  • The root promiseId is separated from its lineage by a colon : (foo → foo:1); deeper lineage segments stay dot-separated (foo:1.1).
  • The id-prefix feature is removed: no builder prefix option, no prefixId, and the SDK no longer emits the resonate:prefix tag. Root ids are used raw; detached ids root on the lineage origin.

Only resonate:origin / resonate:branch / resonate:parent are emitted now, consistent across all Resonate SDKs.

Verification

  • ./gradlew build — SUCCESSFUL (spotless + compile + tests)

Only the promiseId<->lineage boundary uses ':'; lineage segments keep '.' (foo.1 -> foo:1, foo.1.1 -> foo:1.1).
Remove the promise/task ID prefix feature entirely: the builder prefix
option, the internal idPrefix/prefixId state and helper, and the
resonate:prefix tag emission. Root ids are used raw; detached ids root
on the lineage origin.

Part of the new promise id format (':' lineage separator + no prefix).
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