Skip to content

#76 Surface metadata-missing as a typed failure inside persisted entity handlers - #87

Draft
lucas-barake wants to merge 1 commit into
mainfrom
ship/issue-76-metadata-missing-entity-errors
Draft

#76 Surface metadata-missing as a typed failure inside persisted entity handlers#87
lucas-barake wants to merge 1 commit into
mainfrom
ship/issue-76-metadata-missing-entity-errors

Conversation

@lucas-barake

Copy link
Copy Markdown
Owner

Missing replica metadata inside a persisted cluster entity handler escaped as a defect rather than a typed failure, so callers could not discriminate it and it bypassed the normal error channel.

This adds a preflight capability to ReplicaGate so the metadata check runs before the handler body rather than inside it, and threads the typed error through the document store, recovery, bootstrap, sync and session paths, plus the browser restore protocol.

Draft: pushed as a working-tree snapshot on the owning session's behalf so the work isn't stranded locally. Typechecks clean; the owning session had not yet finished its review pass, so treat scope and test coverage as unreviewed.

…ty handlers

Working-tree snapshot pushed on behalf of the issue-76 session so the work is not
stranded locally.

Missing replica metadata inside a persisted cluster entity handler escaped as a
defect rather than a typed failure. This adds a `preflight` capability to
`ReplicaGate` so the check happens before the handler body runs, and threads the
typed error through the document store, recovery, bootstrap, sync and session
paths, plus the browser restore protocol.
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