CaseCommit
A timeout is not proof that the business action failed.
CORE QUESTION — What should happen when the provider may have changed the outside world but the caller cannot prove the outcome?
CaseCommit (formerly ResolveOps) separates business resolution from execution authority, persists the interaction before the provider call, carries UNKNOWN as durable state, and reconciles provider truth before another destructive action is allowed.
Maturity · Isolated Evaluation Harness — Public reference published at engineering release-candidate stage.
- 01
Case
request + exact external resource identity - 02
Policy
deterministic eligibility + current provider snapshot - 03
Approval
explicit human gate when required - 04
Claim
durable execution identity + stable idempotency - 05
Persist
in-flight interaction before provider call - 06
Dispatch
bounded external mutation - 07
Reconcile
provider truth for UNKNOWN / asynchronous updates - 08
Outcome
verified append-only result
A timeout is not proof that nothing happened.
Pre-call interaction state survives restart; UNKNOWN remains distinct from failure
An ambiguous timeout is never a default permission to retry.
- 01Case
request + exact external resource identity
- 02Policy
deterministic eligibility + current provider snapshot
- 03Approval
explicit human gate when required
- 04Claim
durable execution identity + stable idempotency
- 05Persist
in-flight interaction before provider call
- 06Dispatch
bounded external mutation
- 07Reconcile
provider truth for UNKNOWN / asynchronous updates
- 08Outcome
verified append-only result
Engineering decisions — ledger of 4, as recorded. The signal edge marks the rejected alternative in each row.
| Ref | Decision — and why | Trade-off accepted | Rejected alternative |
|---|---|---|---|
| A | Business authority stays deterministic The model may interpret a case or explain a resolution, but resource identity, eligibility, limits, and irreversible actions remain policy-controlled. | New refund/plan policies require explicit rule code rather than prompt tuning. | Let the agent pass amounts and target charge IDs directly to billing APIs. |
| B | Persist before the provider call If the process dies after the remote side effect but before the response is recorded, the next process still needs evidence that an action may already have happened. | Adds an extra synchronous SQLite write on the critical path before external dispatch. | Record external mutations only after the HTTP response returns. |
| C | UNKNOWN is durable state Timeout is epistemic uncertainty, not a failed transaction and not permission to retry. | Delays ticket closure when provider responses time out until reconciliation finishes. | Treat HTTP/network timeouts as failures and auto-retry with backoff. |
| D | Reconciliation is a separate operation The system must query provider-current truth and establish the outcome before another mutation can be considered safe. | Increases state-machine complexity and requires webhook/polling endpoints. | Trust webhook payload bodies or caller retries without querying current state. |
Revision table — evidence provenance, verbatim from the record
| Rev | Evidence | Result | Semantics |
|---|---|---|---|
| A | Business-policy boundary Generated language does not become business authority. | Resource identity, current provider state, deterministic eligibility, and explicit approval precede execution | RECORDED Supported |
| B | Durable ambiguity An ambiguous timeout is never a default permission to retry. | Pre-call interaction state survives restart; UNKNOWN remains distinct from failure | RECORDED Supported |
| C | Stripe test-mode path Live Stripe runtime behavior and production payment operation are not claimed. | Bounded Charge-refund adapter with stable idempotency, exact reconciliation, authenticated webhooks, and provider-current verification | RECORDED Supported |
| D | Validation & coverage gate Verified test suite in docs/release-validation.md predating the final Stripe webhook line; not live customer production traffic. | 72 tests · 96.11% branch-aware coverage across Python 3.11–3.13 (above 85% gate) | REPRODUCIBLE Verified |
Schedule of capabilities — 17 entries, as recorded
- Customer-context retrieval
- Approved knowledge retrieval
- Intent classification
- Resolution planning
- Deterministic business policy
- Typed action proposals
- Risk classification
- Human-in-the-loop
- Replay-resistant approvals
- Execution adapters
- Idempotency
- Reconciliation
- Outcome tracking
- Policy simulation
- Case replay
- Feedback loop
- DecisionLock integration
Audience — Customer Support Engineering · CX Platform Teams · Support Operations · AI Automation Teams · SaaS/service businesses
Measurement contract — what would make the preferred answer fail?
EVALUATION METHOD
The transaction is correct only when ambiguity cannot turn into a duplicate or unverified external effect.
Policy-labeled cases, durable pre-call state, stable idempotency, timeout/failure injection, provider reconciliation, authenticated webhook replay, and provider-current verification.
UNKNOWN fidelity
ambiguous outcomes preserved as uncertaintyReconciliation
local state converges with provider truthIdempotency
stable identity across crash/retry pathsWebhook integrity
auth · timestamp · deduplicationOutcome verification
customer state confirmed against provider-current dataNOTE 1 — OWNERSHIP.
Personal engineering project
Public/sanitized engineering case study with governed-action boundaries.
NOTE 2 — READING. Numbers on this page carry their boundary lines. Quoting a result without its boundary omits its scope.