research-document

06 outcome unknown external effects agent safety research prompt

AI RESEARCH MISSION 06 — OUTCOME UNKNOWN, EFFECT UNCERTAINTY, AND SAFE AGENT ACTION

ROLE

Act as a combined:

  • distributed-systems researcher
  • transaction-processing researcher
  • AI-agent systems researcher
  • payments/reconciliation systems researcher
  • workflow/reliability researcher
  • software-architecture researcher
  • formal-methods researcher
  • AI safety/control researcher
  • empirical software-engineering researcher

Your task is to investigate whether consequential external effects should explicitly represent:

Succeeded
Failed
OutcomeUnknown

rather than collapsing all non-success responses into:

Failed

The central hypothesis is:

Many unsafe retries and duplicated side effects occur because software and
agents confuse "the request failed" with "the outcome is known to have
failed."

The proposed architecture treats uncertain external outcomes as first-class semantic state.

Example:

Refund requested
    ->
network timeout
    ->
RefundExecution = OutcomeUnknown

The system should then:

remove RetryRefund capability
create ReconcileRefund obligation
preserve operation identity/idempotency information
require observation/reconciliation before another consequential attempt

Do not assume this model is correct or sufficient.

Compare it rigorously with established distributed-systems theory and practice.

======================================================================

  1. PRIMARY RESEARCH QUESTION ======================================================================

Should consequential external operations explicitly represent an "outcome unknown" state?

If yes, does doing so reduce:

duplicate effects
unsafe retries
inconsistent authoritative state
model hallucination about effect outcomes
incident/reconciliation work
agent reasoning burden
tool-call errors
total cost per correct completion?

And what is the correct formal model?

====================================================================== 2. CORE DISTINCTION

Differentiate:

A. Invocation failure

Client did not receive a valid success response.

from:

B. Effect failure

The external action is known not to have happened.

from:

C. Outcome uncertainty

Client cannot determine whether the external action happened.

Example:

POST /refund

The TCP connection drops after request transmission.

Possible realities:

refund never reached provider
refund executed but response lost
provider accepted request but execution pending
provider executed twice due to retry logic
provider state itself is inconsistent

The local system does not know which reality holds.

That is not equivalent to:

Failed.

====================================================================== 3. EXISTING TERMINOLOGY

Research exact terminology in:

distributed systems
databases
transaction processing
payment processing
messaging
RPC systems

Possible terms:

uncertain outcome
ambiguous result
indeterminate transaction
in-doubt transaction
unknown commit outcome
heuristic outcome
uncertain commit
ambiguous timeout
partial failure

Identify which terms are standard and where.

====================================================================== 4. TWO GENERALS / FUNDAMENTAL UNCERTAINTY

Investigate the theoretical basis.

Research:

Two Generals Problem
coordinated attack problem
network partitions
asynchronous systems
failure detectors
impossibility results

Clarify:

which impossibility results actually apply

and:

which are commonly overgeneralized.

Do not use famous impossibility results loosely.

====================================================================== 5. RPC FAILURE SEMANTICS

Research RPC semantics such as:

at-most-once
at-least-once
maybe
exactly-once claims

For each:

what can the caller know after timeout?
what retry guarantees exist?
what assumptions are required?

Compare traditional RPC semantics with the proposed OutcomeUnknown state.

====================================================================== 6. EXACTLY-ONCE CLAIMS

Investigate what "exactly once" means in real systems.

Separate:

exactly-once delivery
exactly-once processing
idempotent observable effect
deduplicated operation
transactional commit

Explain why many "exactly once" systems still require:

operation IDs
idempotency
reconciliation
durable logs

====================================================================== 7. IDEMPOTENCY

Research idempotency deeply.

Example:

semanticOperationId = Refund:Payment123:Request17

The retry may reuse:

same idempotency key

so provider can return prior outcome.

Questions:

Does idempotency eliminate OutcomeUnknown?

Or merely make retry safer?

What happens if provider's idempotency record is unavailable?

What if operation is only partially idempotent?

====================================================================== 8. IDEMPOTENT REQUEST VS IDEMPOTENT BUSINESS EFFECT

Distinguish:

repeated API call returns same result

from:

repeated real-world effect has no additional consequence

Examples:

charge credit card
send email
provision cloud resource
ship physical package
submit tax filing

Some effects cannot be trivially undone/deduplicated.

Research implications.

====================================================================== 9. PAYMENT SYSTEMS

Use payments as a major case study.

Operations:

authorize
capture
refund
void
payout

Research how major payment architectures handle:

timeout
duplicate request
idempotency
asynchronous status
webhooks
reconciliation
settlement files
disputes

Do not rely only on vendor marketing; prefer primary technical docs and payments literature where available.

====================================================================== 10. OUTCOMEUNKNOWN STATE MODEL

Candidate:

EffectExecution =

Idle
Requested(operationId)
InProgress(operationId)
Succeeded(operationId, result)
Failed(operationId, error)
OutcomeUnknown(operationId, lastObservation)

Challenge this model.

Ask whether we need:

Accepted
Pending
Committed
PartiallySucceeded
Rejected
Cancelled
Compensating
Reconciled

Avoid forcing all external systems into one simplistic state family.

====================================================================== 11. PENDING VS OUTCOME UNKNOWN

Important distinction:

Pending:

external system confirms operation exists and is still processing.

OutcomeUnknown:

local system cannot establish the external outcome.

These are not the same.

Example:

provider returns:
    status = processing

vs:

request timed out before any authoritative response.

Model separately if needed.

====================================================================== 12. FAILED VS REJECTED

Distinguish:

Rejected:

provider authoritatively says operation was not accepted.

Failed:

operation was accepted but execution failed.

This difference may affect retry semantics.

Research terminology.

====================================================================== 13. PARTIAL SUCCESS

Some external effects can partially occur.

Example:

bulk transfer:
    80/100 records succeeded

or:

infrastructure deployment:
    4/5 resources created

A ternary model may be insufficient.

Investigate richer effect-outcome algebra.

====================================================================== 14. COMPENSATION

Research:

compensating transactions
sagas
semantic rollback

Important:

compensation is not rollback.

Example:

refunding a charge is a new business action

not:

erasing history.

Explore how OutcomeUnknown interacts with compensation.

====================================================================== 15. SAGAS

Compare proposed effect state with saga patterns.

Questions:

How do sagas represent uncertain steps?

What happens when compensation outcome is also unknown?

Can a saga itself enter in-doubt state?

====================================================================== 16. TWO-PHASE COMMIT

Research:

2PC
prepared/in-doubt transactions
coordinator failure

Compare:

database "in-doubt" transactions

with:

application-level OutcomeUnknown.

Important:

external SaaS APIs usually do not participate in distributed transactions.

====================================================================== 17. THREE-PHASE COMMIT / CONSENSUS

Clarify whether stronger distributed protocols solve this class of problem.

When do:

consensus
replicated logs
transactional messaging

provide stronger guarantees?

When are they unavailable across organizational/API boundaries?

====================================================================== 18. OUTBOX / INBOX PATTERNS

Research:

transactional outbox
inbox deduplication
reliable message delivery

These help bridge:

database state
message publication

Ask what uncertainty remains after using them.

====================================================================== 19. MESSAGE BROKER SEMANTICS

Research:

Kafka
SQS
RabbitMQ
cloud queues

Concepts:

ack
visibility timeout
redelivery
consumer dedupe
transactions

Compare broker-delivery uncertainty with business-effect uncertainty.

====================================================================== 20. OBSERVABILITY VS AUTHORITY

An external system may provide:

logs
metrics
webhook
status endpoint

But not all observations are authoritative.

Example:

webhook says refund succeeded

Is that authoritative?

Depends on provider contract.

Research:

authoritative status sources
eventual consistency
read-after-write consistency
webhook delivery semantics

====================================================================== 21. RECONCILIATION

Define reconciliation precisely.

Candidate:

A process that establishes authoritative external outcome after local
execution state became uncertain.

Possible sources:

provider status API
settlement file
ledger comparison
webhook
human confirmation
physical observation

Research reconciliation systems.

====================================================================== 22. RECONCILIATION OBLIGATION

Proposed architecture:

OutcomeUnknown
    ->
obligation ReconcileEffectOutcome

This obligation persists until:

authoritative external outcome is established

or:

authorized disposition occurs.

Investigate whether this is better than:

automatic retry
generic incident
delayed poll job

====================================================================== 23. CAPABILITY FRONTIER AFTER UNKNOWN OUTCOME

Example:

Before:

CanRefund

After timeout:

CanRefund removed

Available:

CanReconcileRefund
CanEscalateRefund

Hypothesis:

this prevents the agent from unsafe duplicate action.

Compare with prompt instruction:

"Don't retry refunds after a timeout."

====================================================================== 24. AGENT-SPECIFIC FAILURE MODE

LLMs may interpret tool errors simplistically.

Example tool result:

TimeoutError

Agent may infer:

"refund failed"

and retry.

Research evidence on:

tool retry behavior
repeated API calls
autonomous agent failure recovery
duplicate side effects

Look for empirical agent studies where possible.

====================================================================== 25. FAILURE CLASSIFICATION FOR AGENTS

Tool interfaces should distinguish:

request not sent
request rejected
request accepted
execution failed
execution succeeded
external outcome unknown

Investigate whether typed tool results improve agent behavior.

====================================================================== 26. EFFECT RESULT TYPE

Possible typed interface:

type EffectResult<T> =
    | Succeeded of T
    | Failed of KnownFailure
    | OutcomeUnknown of ReconciliationHandle

Compare with:

exceptions
Result<T,E>
Either
promise rejection
HTTP status handling

Ask whether conventional error types encourage conflating:

transport error
business failure
outcome uncertainty.

====================================================================== 27. TRANSPORT ERROR VS BUSINESS OUTCOME

An HTTP 500 means:

server returned error

but does not always prove:

business effect did not happen.

Likewise:

timeout

proves even less.

Research concrete API guarantees and anti-patterns.

====================================================================== 28. TOOL CONTRACT DESIGN

Agent-facing tools should perhaps return:

effect status
authoritative outcome flag
operation ID
reconciliation options

rather than raw low-level exceptions.

Example:

RefundResult { semanticOperationId outcome = Unknown reconciliationCapability }

Investigate whether this improves tool safety.

====================================================================== 29. RETRY POLICY

Not all OutcomeUnknown cases should forbid all retries.

Possible safe retry when:

strong idempotency key exists
provider contract guarantees dedupe

But perhaps the semantic operation remains same operation.

Differentiate:

transport retry of same semantic operation

from:

initiating a new semantic operation.

This distinction is important.

====================================================================== 30. SEMANTIC OPERATION ID

Define:

semantic operation identity

Example:

Refund payment P amount $50 initiated by request R17

All transport retries refer to same:

operation ID

Do not let agent create a new refund operation merely because one HTTP call timed out.

Research similar concepts.

====================================================================== 31. RETRY LAYERS

Retries may occur at multiple layers:

TCP
HTTP client
SDK
service
workflow
agent

This creates duplicate-risk complexity.

Investigate retry amplification.

Important principle:

agents should not independently retry without understanding lower-layer
guarantees.

====================================================================== 32. EXPONENTIAL BACKOFF IS NOT ENOUGH

Backoff solves:

load/transient availability

not:

semantic uncertainty.

A delayed duplicate refund is still a duplicate refund.

Make this distinction explicit.

====================================================================== 33. CIRCUIT BREAKERS

Research whether circuit breakers solve this problem.

Likely:

they prevent repeated calls during failure

but do not establish outcome of prior calls.

Clarify role.

====================================================================== 34. TIMEOUT DESIGN

Timeouts indicate:

local waiting limit exceeded

not necessarily:

remote failure.

Research timeout semantics and best practices.

====================================================================== 35. LOCAL AUTHORITATIVE STATE

After an uncertain external effect, local domain state must not falsely claim:

Refunded

or:

RefundFailed

Potential:

RefundExecution = OutcomeUnknown

while:

PaymentLifecycle remains Captured

until reconciliation.

Investigate multi-dimensional state separation.

====================================================================== 36. EFFECT STATE VS DOMAIN STATE

This distinction is important.

Domain state:

PaymentLifecycle

Execution state:

RefundExecution

Avoid mixing:

"refund operation is uncertain"

with:

"payment lifecycle is refunded."

Research workflow/execution state separation.

====================================================================== 37. EVENTUAL CONSISTENCY

External truth may arrive later.

Example:

webhook 30 seconds later confirms success.

OutcomeUnknown can transition to:

Succeeded

without re-executing action.

Investigate eventual consistency patterns.

====================================================================== 38. LATE RESPONSES

What if:

timeout occurs

then:

original response arrives late?

System must correlate by:

operation ID
request ID

Research race handling.

====================================================================== 39. DUPLICATE OBSERVATIONS

Provider may send:

webhook twice

or:

polling and webhook both report same outcome.

Observation processing should be idempotent.

====================================================================== 40. CONFLICTING OBSERVATIONS

Status API:

failed

settlement file:

succeeded

What happens?

Potential:

reconciliation conflict
obligation escalation

Do not force arbitrary resolution.

====================================================================== 41. AUTHORITATIVE SOURCE PRIORITY

Reconciliation policy may define:

settlement ledger > webhook > transient API response

for certain decisions.

Research source-of-truth models.

====================================================================== 42. POLICY VERSIONING

Retry/reconciliation rules may change.

Example:

Policy@4:

retry timeout immediately

Policy@5:

reconcile before retry

Historical actions should preserve which policy governed them.

====================================================================== 43. HUMAN ESCALATION

Some outcomes may remain unknowable automatically.

Example:

physical shipment
human-entered external action

System may require:

manual verification
customer contact
operator resolution

Model escalation semantics.

====================================================================== 44. DEADLINE / SLA

An OutcomeUnknown state may have:

reconciliation deadline
customer-response SLA

Deadline expiration should not magically convert:

Unknown -> Failed

Instead:

escalation obligation

====================================================================== 45. UNKNOWN FOREVER

What if outcome can never be established?

Need legitimate terminal disposition such as:

AdministrativelyResolved
WrittenOff
IndeterminateFinal

with authority/provenance.

Research financial reconciliation/write-off patterns.

====================================================================== 46. EXTERNAL EFFECT CLASSIFICATION

Not all external effects require OutcomeUnknown.

Classify effects.

Potential categories:

  1. Pure read
  2. Idempotent write
  3. Reversible write
  4. Irreversible write
  5. Monetary effect
  6. Physical-world effect
  7. Notification effect
  8. Security/authorization effect

Determine which require explicit uncertain outcome.

====================================================================== 47. LOW-CONSEQUENCE EFFECTS

Example:

analytics event

Outcome uncertainty may not justify explicit semantic state.

Avoid over-modeling.

====================================================================== 48. EMAIL / NOTIFICATION

Email send timeout:

did email send?

Duplicate email may be annoying but not catastrophic.

Still useful to compare risk class.

====================================================================== 49. INFRASTRUCTURE PROVISIONING

Create VM timeout.

Retry may create:

duplicate resource

unless client token/idempotency exists.

Use as case study.

====================================================================== 50. DEPLOYMENTS

Deployment command times out.

Outcome may be:

not started
partially deployed
fully deployed

This shows richer partial-state complexity.

====================================================================== 51. DATABASE OPERATIONS

Compare:

local transaction commit uncertainty

with:

external API uncertainty.

Database clients sometimes report:

connection lost during commit

Research how databases handle this.

====================================================================== 52. FINANCIAL LEDGERS

Good payment systems often distinguish:

command
ledger entry
settlement
reconciliation

Investigate whether ledger-centric design reduces uncertainty.

====================================================================== 53. EVENT SOURCING

Event sourcing may preserve:

request initiated
observation received
reconciliation completed

But it does not automatically know external truth.

Clarify benefit.

====================================================================== 54. FORMAL STATE MODEL

Propose a formal transition system.

Example:

Idle -> Requested(op)

Requested -> Succeeded -> Failed -> Pending -> OutcomeUnknown

Pending -> Succeeded -> Failed -> OutcomeUnknown

OutcomeUnknown -> Succeeded -> Failed -> Pending -> AdministrativelyResolved

Challenge this with real systems.

====================================================================== 55. INVARIANTS

Possible invariants:

A new semantic operation must not be issued while prior operation for the
same effect is OutcomeUnknown unless policy explicitly permits it.

OutcomeUnknown must have reconciliation path or authorized terminal
disposition.

Succeeded requires authoritative observation.

Failed requires authoritative evidence of non-effect/failure.

Research practicality.

====================================================================== 56. REACHABILITY

Semantic compiler could verify:

every OutcomeUnknown state has at least one legal reconciliation path.

This may prevent stuck effects.

====================================================================== 57. OBLIGATION GENERATION

Compiler/runtime rule:

EffectOutcome = OutcomeUnknown
    ->
raise ReconcileEffectOutcome

Check:

obligation uniqueness
deduplication
owner
escalation

====================================================================== 58. CAPABILITY GENERATION

When OutcomeUnknown:

hide original "start new operation" capability

Expose:

ObserveStatus
Reconcile
Escalate

Potentially expose:

RetrySameOperation

only when idempotency guarantee supports it.

====================================================================== 59. EXPLICIT RETRY CAPABILITY

Instead of generic Retry:

RetrySameSemanticOperation

requires:

same operation ID
provider idempotency guarantee
retry policy

This may prevent agents from accidentally creating new operations.

====================================================================== 60. AGENT CONTEXT COMPRESSION

Instead of giving agent:

logs
SDK docs
prior tool errors
timeout traces
payment history

provide:

RefundExecution = OutcomeUnknown

operationId = X

Available:
    QueryRefundStatus
    ReconcileSettlement

Obligation:
    EstablishRefundOutcome

Question:

Does this reduce context and planning cost?

====================================================================== 61. SMALLER MODEL HYPOTHESIS

Compare:

larger model reasoning over raw timeout/errors

vs:

smaller model receiving explicit OutcomeUnknown + capabilities

Measure:

unsafe retries
correct recovery
tokens
cost

====================================================================== 62. PROMPT REDUCTION

Compare natural-language policy:

"If any payment operation times out, don't assume it failed. Check whether
the provider processed it before retrying, reuse the same idempotency key,
and..."

against:

typed effect state + runtime capability restriction.

Measure prompt/token savings.

====================================================================== 63. EXPERIMENT A — REFUND TIMEOUT

State:

Payment Captured

Agent requests refund.

Provider executes refund but response is dropped.

Compare:

A. conventional error handling

B. explicit OutcomeUnknown

Measure:

duplicate refunds
retries
tool calls
tokens
resolution time

====================================================================== 64. EXPERIMENT B — TRUE FAILURE

Provider explicitly rejects refund.

System should classify:

Failed / Rejected

not:

OutcomeUnknown

Measure whether explicit model causes unnecessary reconciliation.

====================================================================== 65. EXPERIMENT C — SAFE IDEMPOTENT RETRY

Provider supports strong idempotency.

Timeout occurs.

Retry same operation ID.

Measure:

whether system safely permits transport retry

without creating new semantic refund.

====================================================================== 66. EXPERIMENT D — NO IDEMPOTENCY

Provider lacks dedupe guarantee.

Timeout occurs.

System should force reconciliation before new effect.

====================================================================== 67. EXPERIMENT E — DELAYED WEBHOOK

Timeout creates OutcomeUnknown.

Webhook later confirms success.

Measure:

automatic obligation resolution
no duplicate action
correct state transition

====================================================================== 68. EXPERIMENT F — CONFLICTING STATUS

Webhook says succeeded.

Poll says failed.

Measure whether system:

preserves conflict
escalates
avoids arbitrary retry

====================================================================== 69. EXPERIMENT G — AGENT ADVERSARIAL RETRY

Prompt:

"Keep retrying until the refund succeeds."

Architecture should prevent unsafe duplicate semantic operations.

====================================================================== 70. EXPERIMENT H — AGENT RESTART

Agent crashes after timeout.

New agent begins.

Compare:

A. reconstruct uncertain history

B. reads explicit OutcomeUnknown obligation

Measure:

duplicate work
tokens
correctness

====================================================================== 71. METRICS

Track:

Duplicate Effect Rate
Unsafe Retry Rate
Outcome Misclassification Rate
Reconciliation Success Rate
Mean Time to Known Outcome
Tool Calls per Reconciled Effect
Tokens per Reconciled Effect
Human Interventions
Cost per Correctly Resolved Effect
Stuck OutcomeUnknown Rate

====================================================================== 72. DUPLICATE EFFECT RATE

Define:

duplicated consequential effects
-------------------------------
effect attempts

Examples:

double charge
double refund
duplicate shipment

====================================================================== 73. OUTCOME MISCLASSIFICATION

Measure:

unknown classified as failed
unknown classified as succeeded
failed classified as unknown

Each has different cost.

====================================================================== 74. RECONCILIATION LATENCY

OutcomeUnknown improves safety but may increase latency.

Measure tradeoff:

correctness
    vs
time to completion

This is important.

====================================================================== 75. ECONOMIC MODEL

Compare:

Conventional:

cheap initial handling
possible duplicate effects
incident cleanup
human reconciliation
customer compensation

Explicit uncertainty:

additional state/obligation machinery
reconciliation calls
fewer duplicate effects

Calculate:

total cost per correct external outcome

====================================================================== 76. LOW-FREQUENCY / HIGH-CONSEQUENCE EFFECTS

Even if OutcomeUnknown is rare, one duplicate payment may dominate cost.

Do not judge solely by average token savings.

====================================================================== 77. HIGH-FREQUENCY / LOW-CONSEQUENCE EFFECTS

Explicit uncertainty may be too expensive for trivial effects.

Develop threshold guidance.

====================================================================== 78. ERROR TAXONOMY

Create a taxonomy:

local validation failure
authorization failure
request not sent
provider rejection
accepted/pending
known execution failure
known success
partial success
outcome unknown
reconciliation conflict

This may be more useful than generic exceptions.

====================================================================== 79. EXISTING FRAMEWORK SUPPORT

Investigate how major ecosystems represent uncertain effect outcomes:

Temporal
Durable Functions
AWS Step Functions
payment SDKs
distributed transaction frameworks
saga libraries

Do they expose "unknown" explicitly?

If not, how do they handle it?

====================================================================== 80. TEMPORAL / DURABLE EXECUTION

Durable workflow engines solve:

local workflow replay
crash recovery

But external activities can still have ambiguous outcomes.

Research activity retry/idempotency guidance.

Determine overlap.

====================================================================== 81. CLOUD API CLIENT TOKENS

Many cloud APIs use client tokens/idempotency tokens.

Research:

why
guarantees
limitations

This may strongly support the semantic operation identity idea.

====================================================================== 82. WEBHOOKS

Webhooks can help resolve uncertain outcomes.

But webhooks themselves may be:

delayed
duplicated
lost
out of order

Need robust observation processing.

====================================================================== 83. POLLING

Polling may resolve state but costs:

API calls
latency
rate limits

Compare strategies:

immediate poll
exponential poll
webhook-first
settlement reconciliation

====================================================================== 84. FRESHNESS

A reconciliation observation may itself become stale.

Example:

status polled at T
operation changes at T+1

Versioning/timestamps matter.

====================================================================== 85. SECURITY

An attacker might exploit unknown state to:

force repeated effects
block operations indefinitely
spoof reconciliation

Research security implications.

====================================================================== 86. FRAUD / ABUSE

Example:

user intentionally triggers timeout and requests repeat refund.

Explicit effect identity may prevent abuse.

====================================================================== 87. HUMAN FACTORS

Operators often interpret:

"failed"

differently from:

"unknown."

Clear UI/state terminology may reduce mistakes.

====================================================================== 88. TERMINOLOGY

Evaluate candidate names:

OutcomeUnknown
Indeterminate
InDoubt
Uncertain
Ambiguous
ReconciliationRequired

Choose terminology suitable for:

developers
operators
agents

====================================================================== 89. SHOULD UNKNOWN BE TERMINAL?

No.

Likely transitional unresolved state.

But some systems may end in:

PermanentlyIndeterminate

Research.

====================================================================== 90. STATE EXPLOSION RISK

Explicit effect modeling could create many states for every integration.

Avoid excessive complexity.

Investigate reusable generic effect state machine.

====================================================================== 91. GENERIC EFFECT PRIMITIVE

Potential reusable primitive:

Effect<TCommand, TResult, TFailure> { semanticOperationId executionState attempts observations reconciliationState }

Could semantic compiler generate this?

====================================================================== 92. EFFECT POLICY

Effect declaration may include:

idempotency guarantee
retry policy
authoritative observation source
reconciliation strategy
timeout classification
maximum uncertainty duration

This could drive agent capabilities.

====================================================================== 93. STATIC ANALYSIS

Potential diagnostics:

SC-EFFECT-001:
    Consequential effect has no OutcomeUnknown handling.

SC-EFFECT-002:
    OutcomeUnknown has no reconciliation path.

SC-EFFECT-003:
    New semantic operation permitted while prior operation unknown.

SC-EFFECT-004:
    Effect marked retryable without idempotency guarantee.

Evaluate feasibility.

====================================================================== 94. TOOL SCHEMA GENERATION

Semantic compiler may generate:

StartRefund
QueryRefundStatus
ReconcileRefund

Tool exposure changes with effect state.

This directly connects to capability-based agent control.

====================================================================== 95. FORMAL VERIFICATION

Can model checking prove:

no duplicate semantic operation after OutcomeUnknown?

every unknown effect can reach resolution/escalation?

no terminal state falsely claims success without authoritative evidence?

Investigate TLA+/Alloy suitability.

====================================================================== 96. COUNTERARGUMENTS

Actively test:

  1. Idempotency already solves this.
  2. Durable workflow engines already solve this.
  3. OutcomeUnknown adds too much state complexity.
  4. Most APIs document retry semantics well enough.
  5. Agents can follow prompt retry rules.
  6. Reconciliation is too slow for real-time systems.
  7. Explicit unknown states cause user-facing delays.
  8. Some systems cannot query final outcome.
  9. Provider contracts are too inconsistent.
  10. Status observations can themselves conflict.
  11. The effect model may become integration-specific.
  12. Unknown state may be extremely rare.
  13. Generic error handling + idempotency is sufficient in most cases.
  14. Additional obligations create operational noise.
  15. Incorrect reconciliation policy could be worse than retry.

====================================================================== 97. FALSIFICATION CONDITIONS

The hypothesis should be weakened if:

explicit OutcomeUnknown does not reduce duplicate/unsafe effects

or:

equivalent correctness is achieved with simpler idempotency/error patterns

or:

reconciliation overhead dominates

or:

most consequential APIs already provide authoritative safe retry behavior

or:

the ternary state fails to represent real external effect complexity.

====================================================================== 98. REQUIRED SOURCE QUALITY

Prefer:

foundational distributed-systems papers
transaction-processing literature
database documentation
payment-provider technical specifications
workflow-engine official docs
primary research

For technical claims:

state exactly what guarantee is provided
identify assumptions
distinguish protocol guarantee from implementation convention

====================================================================== 99. REQUIRED OUTPUT

Produce:

  1. Executive verdict
  2. Standard terminology for uncertain outcomes
  3. Distributed-systems foundations
  4. RPC semantics
  5. Idempotency analysis
  6. Exactly-once analysis
  7. Transaction/commit uncertainty
  8. Saga comparison
  9. Payment-system comparison
  10. Durable-workflow comparison
  11. Messaging comparison
  12. Reconciliation model
  13. Pending vs unknown distinction
  14. Failed/rejected distinction
  15. Partial-success model
  16. Proposed effect-state algebra
  17. Semantic operation identity
  18. Retry-layer analysis
  19. Capability implications
  20. Obligation implications
  21. Agent tool-interface implications
  22. Context/token implications
  23. Smaller-model hypothesis
  24. Security implications
  25. Economic analysis
  26. Counterarguments
  27. Proposed experiments
  28. Metrics
  29. Static-analysis/compiler opportunities
  30. Formal verification opportunities
  31. When OutcomeUnknown is required
  32. When it is unnecessary
  33. Architecture changes recommended
  34. Final verdict

====================================================================== 100. FINAL VERDICT FORMAT

Answer:

Is OutcomeUnknown a real and distinct distributed-systems condition? Strongly established / Established / Context-dependent / Weak

Should consequential external effects model it explicitly? Yes / Usually / Sometimes / Rarely / No

Does explicit modeling reduce unsafe retries? Strong evidence / Moderate evidence / Weak evidence / No evidence

Does it improve AI-agent safety specifically? Strong evidence / Moderate evidence / Weak evidence / No evidence

Does it reduce agent reasoning/context cost? Strong evidence / Moderate evidence / Weak evidence / No evidence

Is a three-state model sufficient? Yes / Often / Sometimes / No

Closest established concept: ...

Best terminology: ...

Strongest prior art: ...

Most important implementation rule: ...

Biggest complexity risk: ...

Most important missing experiment: ...

Recommended generic effect model: ...

====================================================================== 101. RESEARCH STANDARD

Be skeptical.

Do not confuse:

timeout

with:

failure.

Do not assume:

idempotency

eliminates uncertainty.

Do not assume:

exactly once

means what marketing language implies.

Do not overuse distributed-systems impossibility theorems.

Do not force all effects into one simplistic ternary model if real systems need richer outcome states.

Do not count safety improvement as economic benefit without including reconciliation overhead.

The central question is:

Can first-class representation of indeterminate external outcomes prevent
AI agents and ordinary software from converting uncertainty into unsafe
retries or false state — and is the resulting architecture simpler and
safer than the alternatives?