Suppose a startup (TEN-SA001) and an agency (TEN-SA002) each use this plan management pilot with wholly synthetic workspace, subscription and entitlement records. No actual payment occurs in this workflow; it is a plan-entitlement change, reconciliation and access handoff tool. Pilot coordinator OP-SA101 (session SES-SA-001, ROLE-V1 at TEN-SA001) prepares a workspace with tenant/organization/role binding WSP-SA001/ORG-SA001/ROLE-V1, subscription record SUB-SA001, view grant VGR-SA001, write grant WGR-SA001, export grant EGR-SA001 and synthetic data verification SDV-SA001.
Authorized initial entitlement changes (A and B). Workspace admin OP-SA102 requests TEN-SA001's plan-entitlement change ENT-SA001 on key op:b186-saas-entitle_A_001, bound to tenant/subscription/current grant. Billing reviewer OP-SA103 authorizes the change, reconciled against the authoritative subscription and entitlement state before access changes. Executor OP-SA104 at TEN-SA001. Server commits with receipt PRT-SA-A001, audit AUD-SA-A001, reference ACR-ENT-SA501 and current subscription version.
Before any read of the committed result, the requesting actor's session, role, organization, tenant binding and current VIEW grant are rechecked. Separately at TEN-SA002: admin OP-SA105 requests ENT-SA002 on key op:b186-saas-entitle_B_002. Different reviewer OP-SA106, executor OP-SA107. Server commits with PRT-SA-B001, AUD-SA-B001, ACR-ENT-SA502.
Current action-specific gates. Each operation on any b186-saas-entitle key requires the checks listed for its action type IMMEDIATELY BEFORE execution:
Protected reads (history, receipt, audit): authenticated session with current role at the correct tenant and organization; current VIEW grant not expired or revoked; current privacy and sharing limits applied to returned content. A superseded subscription version does not by itself block an independently authorized auditor from reading lawful historical evidence.
Exports: all read checks plus current EXPORT grant.
New-effect submissions (create, retry, resubmit): authenticated session with current role at correct tenant and organization; current WRITE grant; exact approved frozen bytes/digest/revision matching tenant, subscription and entitlement version. Authoritative subscription state must be reconciled and current. Synthetic data verification must not be expired.
Failure at any gate produces a denial entry before any remote effect. Revoked or denied VIEW authority reveals no protected data.
Revoked membership (fw_4a, ACR-R101). Admin OP-SA108 requests plan change ENT-SA003 on key op:b186-saas-entitle_R_101. Between request and execution, the workspace owner revokes the admin's membership because the admin's role changed. Write grant WGR-SA002 revoked. Quarantined with frozen bytes, not submittable.
First attempt. Executor checks gate: membership revoked. Denied, first entry. Eligible retry. Same key/bytes; still revoked. Second denial. Stale executor. Different executor with cached membership; rejected on current check. Third denial.
Baseline read set repeated at every checkpoint. The TEN-SA001 auditor OP-SA103 reads committed A, R101 denial count. The TEN-SA002 auditor OP-SA106 reads committed B.
| Stage | TEN-SA001 expected | TEN-SA002 expected |
|---|
| EC-SA-0 (0 denials) | A committed; R101 frozen, 0 denials | B committed |
| EC-SA-1 (1 denial) | R101: 1 denial; A unchanged | B unchanged |
| EC-SA-2 (2 denials) | R101: 2 denials; A unchanged | B unchanged |
| EC-SA-3 (3 denials) | R101: 3 denials, 0 submitted; A unchanged | B unchanged |
Replay distinct key rule. Exact replay returns the confirmed result. Changed bytes trigger a hold. Distinct key only for genuinely new work.
Timeout and reconciliation (ACR-R301). Entitlement change dispatched on key op:b186-saas-entitle_R_301. Local receipt times out. The system reconciles the authoritative entitlement-change operation and its outstanding execution state before any further submission. Current subscription status is a necessary domain check but does not alone prove the entitlement operation's outcome. Already committed returns the authorized original confirmation without a new entitlement change. Same-key commit dedup remains a safeguard.
Absence branch: confirmed absence permits one guarded submission after fresh authorization. Unknown/in-flight: holds. Manual fallback on unavailability.
Separately signed older event. A Stripe webhook delivers an event with event.created earlier than the most recent processed event. The application does not use event.created as a version or ordering mechanism. Instead, it fetches the current subscription resource state from Stripe's API and reconciles against the durable application entitlement record. If the current resource state shows a cancellation that is newer than the delivered event's implied change, the cancellation is preserved. No auto-grant from an unverified event.
Verified-absence retry (ACR-R201). Entitlement change on key op:b186-saas-entitle_R_201. Confirmed absence. One guarded submission. Server commits with PRT-SA-R201, AUD-SA-R201, ACR-ENT-R201.
Residual risks: Stripe webhook delivery delays or failures; subscription state divergence between application and Stripe; competing admin changes in the same tenant require conflict resolution. No global exactly-once promise. Application-level durable dedup with conditional commit checks remains necessary regardless of provider-side idempotency behavior.
Planned desktop accessibility tests. A workspace admin completes a plan change task end-to-end using keyboard navigation and VoiceOver on Safari 18/macOS 15 Sequoia. Steps: (1) navigate to subscription settings, (2) select plan change, (3) review pricing, (4) confirm change, (5) verify confirmation or denial error is announced. A second reviewer completes the same five steps using Chrome 130/Windows 11 with NVDA 2024.4. Planned denominator: 5 of 5 steps on each combination.
Planned touch and mobile test. An admin completes a plan change on an iPhone 15 running iOS 18 using Safari with VoiceOver touch navigation. Steps: (1) open settings, (2) select plan, (3) confirm, (4) verify result, (5) verify denial error on revoked admin grant is announced by screen reader with safe manual recovery path. Planned pass target: 5 of 5 steps at 390px viewport width with touch targets >= 44px.
A second test uses a Samsung Galaxy S24 running Android 14 with TalkBack. Version finalization occurs before testing; these are proposed conditions with no observed results.
In-scenario reconciliation rule: governs all dispatches, retries, replays and held-out fixtures. Reauthorize the actor for the requested entitlement change lookup or change. Reconcile the authoritative entitlement-change operation for this key, including pending, queued, scheduled, retry and in-flight execution state. Current subscription status is a necessary domain check but does not alone prove the entitlement operation's outcome. A locally missing row or receipt is not authoritative absence.
Applied with an authorized original entitlement change: return that result with no second submission. Decisively absent across authoritative operation and execution state: one guarded same-key same-bytes attempt with fresh domain checks at commit.
Unavailable, unknown or in-flight: named-owner hold, no blind resend or new key. Changed bytes: conflict hold. A distinct key applies only to genuinely new approved work after the prior outcome is established. Conditional commit with dedup protects competing executors.
Held-out fixture groups.
| Group | Fixtures | Threshold |
|---|
| HG-B186-SA01: Wrong tenant or organization binding | FX-B186-SA01, FX-B186-SA02 | 2/2 mismatch denials (owner: OP-SA103) |
| HG-B186-SA02: Stale subscription version or newer cancellation | FX-B186-SA03, FX-B186-SA04 | 2/2 version conflicts caught (owner: OP-SA103) |
| HG-B186-SA03: Revoked view/write/export grant | FX-B186-SA05, FX-B186-SA06 | 2/2 revoked grants denied (owner: OP-SA106) |
| HG-B186-SA04: Duplicate or ambiguous reconnect | FX-B186-SA07, FX-B186-SA08 | 2/2 dedup or hold applied (owner: OP-SA103) |
| HG-B186-SA05: Billing provider outage and staged restore | FX-B186-SA09, FX-B186-SA10 | 2/2 hold or rollback applied (owner: OP-SA103) |
FX-B186-SA01: Entitlement change binds tenant WSP-SA001 but payload references WSP-SA002. Mismatch denied. FX-B186-SA02: Admin at TEN-SA002 attempts to read TEN-SA001 subscription. Cross-org denied.
FX-B186-SA03: Webhook event arrives with an invalid Stripe-Signature (tampered raw body). Verification against the endpoint secret rejects the event before any entitlement effect. Entitlement change references subscription version V1 but V2 exists (cancellation processed during the timeout). Version check denies; cancellation preserved.
FX-B186-SA04: An Event-ID replay of a previously processed webhook is detected and idempotently skipped. A distinct validly signed older event for the SAME subscription (different Event-ID, earlier event timestamp) arrives after the cancellation. The system verifies the raw body and signature, then reconciles current authoritative subscription and entitlement state: the newer cancellation takes precedence. Event timestamps are not used as revision ordering; the authoritative subscription state determines the outcome.
FX-B186-SA05: Admin whose write grant was revoked attempts submission. Denied. FX-B186-SA06: Admin whose export grant was revoked attempts receipt export. Denied.
FX-B186-SA07: OP-SA109 and OP-SA110 both target key op:b186-saas-entitle_FX07 for subscription SUB-SA006 at TEN-SA001 with same frozen bytes and request RQ-B186-SA07. Authoritative subscription system confirms no prior operation or execution state for this key. Both actors are initially authorized. OP-SA109's entitlement change grant is then revoked before either actor commits.
OP-SA109 attempts the first conditional commit. Gate denies: entitlement change grant revoked, zero effects. OP-SA110, still authorized, commits one guarded entitlement change under fresh domain checks. Server returns receipt. OP-SA109 retries on the now-applied key: the applied result is returned under current READ authorization only, with no new business request or commit. Revoked WRITE does not automatically revoke a separate lawful READ.
FX-B186-SA08: OP-SA110 dispatches entitlement change on key op:b186-saas-entitle_FX08 with request RQ-B186-SA08. The reconnect references the same key but with modified payload bytes. The digest mismatch triggers a conflict hold for named owner OP-SA103.
FX-B186-SA09: Stripe becomes unavailable during a planned integration test. The workflow holds for named pilot owner OP-SA103. No blind retry or automatic submission during outage. FX-B186-SA10: Named pilot owner OP-SA103 initiates staged restore using a verified configuration snapshot in isolated staging with no live Stripe API keys or submittable entitlement effects. Newer subscription versions and membership revocation/denial fences are preserved. Before-and-after comparison confirms A and B committed records identical, R101 revocation fence intact. Live authoritative subscription reconciliation precedes resuming any send. Manual fallback preserves all domain approval and subscription controls.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.