Repository navigation
test: add controlled booking lifecycle recovery reference - #312
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Existing fake booking examples demonstrate creation but do not exercise lifecycle recovery. This adds a controlled create/modify/cancel reference using the published SDK 0.1.25 wrapTool API, a disposable loopback provider and an independently maintained durable SQLite effect journal. The original examples remain intact.
The host binds action, tenant, resource, start/end instants, timezone, participants, party size, price/currency, terms, expiry, reservation and expected version. Fifty-eight probes cover confirmed replay across fresh protection processes, changed-effect conflict, distinct identical intent, invalid/missing inputs, missing expected authority, inventory expiry/stale-version refusals and all three lifecycle lost-acknowledgement paths. Delayed/NOT_FOUND/mismatched/nonunique lookup truth remains UNKNOWN until exact unique provider journal reconciliation. Twelve concurrent workers produce one effect; a deliberate unprotected negative control creates two duplicate effects.
Local Windows validation against published SDK 0.1.25 passed, with 13 independently counted mutation rows (11 protected effects and two negative-control duplicates). The offline evidence checker passed. Windows/Ubuntu CI installs a clean pinned published consumer, reruns the lab and uploads evidence. Exact-head CI must pass before merging.
This is a working local mock reference contract, not a production booking adapter. No real reservation system, customers or money are contacted. Real inventory/authentication/occupancy policies, whole-provider/application restart, distributed authority, cancellation races and opaque provider retries remain unqualified. The fixture's lost acknowledgement is a throw after response parsing. No universal exactly-once, production-provider or adoption claim.