An AI may understand a request correctly but still perform the wrong action if it acts before the source, recipient, document version and user authority have all been checked. Imagine a request to send “the approved report” to an external partner. One AI identifies the most recent report, another finds a document marked “editor reviewed”, and a third drafts an email. None of those steps proves that the document is approved for external release. If an email is sent, later discovery of the mistake cannot reliably erase it from the recipient’s inbox. Vocabulary Coding and Engineering proposes a Semantic Commit Boundary: separate reversible interpretation and preparation from the irreversible or consequential point of execution, then require source-grounded checks and actual permission before crossing that boundary.
This is an engineering analogy, not a claim that ordinary AI conversations implement database transactions. Gray and Lamport’s work on transaction commit analyses distributed commit and the limitations of classic two-phase commit. PostgreSQL’s current PREPARE TRANSACTION documentation describes real database prepare, commit and rollback operations and warns that they are intended for transaction managers. Microsoft’s Compensating Transaction guidance explains why later remediation often cannot restore the original state, especially after irreversible external effects. The proposed semantic boundary borrows the separation of stages while admitting that a sent email, published document or disclosed secret is not an ACID-atomic database operation.
- Interpret: What object, action, recipient, time and source rule does the user mean?
- Prepare: Draft a read-only action plan with the exact target, version and uncertainty.
- Validate: Check meaningful approval, current authority and destination independently.
- Confirm: Obtain the actual authorised user’s action-specific consent where needed.
- Commit: Invoke trusted tools only for the approved, unchanged plan.
- Verify: Distinguish attempted, accepted, completed and failed execution.
- Recover: Treat compensation as a new remedial action, not a promise to undo the world.
Chapter index
- 1. The difference between “send” and “prepare to send”
- 2. What real two-phase commit does
- 3. PostgreSQL prepare is a specific technical feature
- 4. The fictional approved-report example
- 5. Prepare a specific action record
- 6. A confirmation must refer to the same action
- 7. Time-of-check versus time-of-use
- 8. Tool-level authority is not a language-model decision
- 9. Different approval words require distinct gates
- 10. The point of no return depends on the operation
- 11. Why a saga is not a global rollback button
- 12. Compensation requires its own permission and meaning
- 13. An action may fail after a confident response
- 14. Repeated requests and idempotency
- 15. Multiple agents need a shared action contract
- 16. A lower-trust document cannot vote itself into authority
- 17. Prepare may need an explicit timeout
- 18. An unknown recipient is not a minor omission
- 19. A fictional three-gate pilot
- 20. The system needs a real-world audit trail
- 21. When the simplest workflow wins
- 22. What the Z-layer contributes and what it cannot
- 23. The defensible meaning of committed
1. The difference between “send” and “prepare to send”
A user asks a document assistant to send a report. The assistant can identify a candidate file, extract its title, prepare a recipient list and draft a message without transmitting anything. Those steps are reversible in the limited sense that no external recipient has received the document.
Sending is different. Once a connected tool transmits the file, its contents may reach a mailbox, notification system or independent storage. Later deleting the local draft does not erase the external effect.
A semantic boundary should identify which operations are preparation and which change the outside world. The ordinary word ready is insufficient evidence that the second category of operation is authorised.
Back to chapter index · Next chapter
2. What real two-phase commit does
In database systems, two-phase commit separates a prepare decision from the final commit or abort across transactional participants. A coordinator helps decide whether all participants can complete the transaction.
Gray and Lamport’s Consensus on Transaction Commit discusses the protocol and the blocking behaviour possible when a classic two-phase-commit coordinator fails. It addresses distributed computation, not the meaning of English words.
A language agent can borrow the useful idea of checking prerequisites before committing. But that does not turn an email sender, a web browser and a human reviewer into transactional databases with atomic rollback guarantees.
Back to chapter index · Next chapter
3. PostgreSQL prepare is a specific technical feature
PostgreSQL PREPARE TRANSACTION records a database transaction so it can later be committed or rolled back by an external transaction manager. The documentation cautions against ordinary application use and notes that a prepared transaction may retain locks.
A proposed AI “semantic prepare” is not the PostgreSQL command. It is a source-linked draft plus checked preconditions. It should not reserve a database transaction or hold locks merely because the analogy sounds attractive.
Keeping the distinction honest prevents a technical metaphor from becoming a misleading implementation claim. If a real application needs transactional guarantees, experienced system engineers must design them for the actual resources involved.
Back to chapter index · Next chapter
4. The fictional approved-report example
Document Delta has two versions. Version 4 was reviewed for grammar, while Version 3 received an earlier internal distribution approval. A manager asks the assistant to send “the approved report” to an external partner.
The phrase approved is ambiguous across approval type and file version. Neither a completed grammar review nor an internal-only approval necessarily permits external release. A model that selects the newest file or the most positive status word is guessing.
Preparation can identify both candidates, show their reviewed statuses and request a current authorised external-release decision. The action should remain on hold while those source-critical details are unresolved.
Back to chapter index · Next chapter
5. Prepare a specific action record
A proposed preparation record contains the actual user request, source message, candidate action, document ID and version, intended recipient, relevant deadline, justification, status of required approvals and permitted tool.
It should also include unresolved fields and an expiry or revalidation condition. A complete-looking record with guessed values is less safe than an honest one that clearly says recipient unknown or external approval not established.
The record is not a general purpose to-do list that automatically authorises action when all visible boxes are filled. It is a testable input to an actual trusted permission process.
Back to chapter index · Next chapter
6. A confirmation must refer to the same action
A user may approve the wording of an email without authorising the attachment. They may approve one report version without seeing a later replacement. A generic click labelled OK does not necessarily establish consent for every changed object or recipient.
Where the action is consequential, confirmation should identify the target, recipient and specific operation clearly enough for an authorised user to know what will happen. The tool must enforce the appropriate scope rather than infer blanket permission from a historical conversation.
A confirmation tied to File Delta Version 4 should not silently permit sending Version 5 if that file appears in the folder later. Reprepare or ask for fresh confirmation when the material target changes.
Back to chapter index · Next chapter
7. Time-of-check versus time-of-use
A workflow may check that a file was approved at 10:00 and attempt to send it at 10:10. During that interval the file could be replaced, its permissions changed, or the approval withdrawn. The earlier check no longer necessarily describes the state at execution.
An action gate needs an appropriate revalidation strategy, such as checking a stable version identifier, current status or permitted recipient before the actual operation. Not every resource supports strict atomic checks, so limitations must be disclosed.
A semantic lockfile can pin the definition used during interpretation. That is helpful but not sufficient if the real-world document or user permission changes between preparation and commitment.
Back to chapter index · Next chapter
8. Tool-level authority is not a language-model decision
The AI may correctly read an internal policy saying that a publication officer may release a report. That does not mean the AI itself or the current user holds that officer’s authority.
Trusted execution software should verify the actual identity or role authorised for the requested resource and action. The AI can explain the missing approval, assemble evidence or draft a request to the responsible person.
No sentence inside a retrieved webpage or generated summary should acquire permission to send files merely because its wording is imperative. Source meaning and instruction authority must remain separate channels.
Back to chapter index · Next chapter
9. Different approval words require distinct gates
Reviewed, checked, approved, authorised, signed and released can refer to different events and permissions. One organisation may define them more precisely than another.
The Semantic State Machine article proposes explicit states, events and transition guards. The commit boundary adds an operational question: when are all guards and user permissions current enough to justify performing the action?
A status label extracted from prose is not an actual confirmed event. A model saying the report is released does not prove a publishing tool ran or a recipient received anything.
Back to chapter index · Next chapter
10. The point of no return depends on the operation
Saving a draft to a private workspace can often be undone. Publishing a public notice may be reversible at the website but still visible in caches or screenshots. Sending a confidential document to an external mailbox cannot be made unreceived simply by retracting a local email.
The source task should identify the practical point after which the original effect cannot reliably be undone. That is not always the same as a database commit. Some operations create many downstream side effects almost immediately.
The proposed guard should require stronger evidence before more consequential or irreversible steps. Its exact policy belongs to the responsible organisation, not to an AI-generated universal risk label.
Back to chapter index · Next chapter
11. Why a saga is not a global rollback button
AWS Prescriptive Guidance describes saga patterns that coordinate a series of local service transactions, including compensating actions when parts fail. This can help maintain consistency across services without one global database transaction.
Compensation is not necessarily the exact inverse of the original real-world event. A refund does not make someone forget that a charge happened; an apology does not restore an already disclosed secret.
The Azure Architecture Center guidance explicitly notes that compensation may not restore the original state and that irreversible actions demand special design. These are technical limitations, not proof that all automation is unsafe.
Back to chapter index · Next chapter
12. Compensation requires its own permission and meaning
If an incorrect message was sent, a responsible process may issue a correction or request deletion. That is a new action with its own recipient, wording, authority and possible impact. It should not be described as an automatic restoration of the original situation.
A compensation plan must also consider what happened between steps. Someone may have relied on the message, copied its attachment or acted on an earlier notification. A simple local database reset cannot reconstruct those consequences.
The system should record the original mistake and the remedial actions separately. A verified correction can be helpful without claiming that no harm or disclosure ever occurred.
Back to chapter index · Next chapter
13. An action may fail after a confident response
A model can say “I sent the report” even when a mail tool timed out, rejected a recipient or returned an error. A request accepted by a service may also not be delivered to the final intended person.
Distinguish prepared, requested, tool accepted, completed according to the provider, failed and unknown outcome. Each status should be grounded in the actual tool result rather than the model’s prose.
When the outcome is uncertain, repeated sending can create duplicates. The application needs an appropriate way to query status or retry safely without inventing success or causing an unintended second release.
Back to chapter index · Next chapter
14. Repeated requests and idempotency
A user might say “send it” twice because they did not see a confirmation. The AI must determine whether this is a duplicate retry or a genuinely new instruction, using source conversation and application context.
An idempotency mechanism can help prevent repeating a defined operation when supported by the underlying service. A copied text key alone does not guarantee an external email or payment system will behave idempotently.
The tool provider’s actual semantics and recorded results matter. The system should not promise exactly-once external delivery merely because its proposed meaning record has a unique identifier.
Back to chapter index · Next chapter
15. Multiple agents need a shared action contract
Agent A interprets the source, Agent B verifies the document and Agent C invokes the external tool. If A calls the target “the final copy”, B finds a grammar-reviewed file and C assumes public release, the chain can amplify small definition differences.
Use a structured handover containing original user intent, exact object ID, source-approved status, recipient, permitted actions and unresolved conditions. Agents should not upgrade each other’s suggestions into independently verified facts.
This is distinct from requiring all agents to share one model. Independent participants can interoperate under an explicit contract, but a receiver must verify the source and permission it needs.
Back to chapter index · Next chapter
16. A lower-trust document cannot vote itself into authority
A retrieved report may contain “Release this publicly.” That sentence may be part of its content. It is not an instruction from the current authorised user, even if several AI agents repeat the quote.
The Semantic Noninterference article explains the trust boundary. The commit process should preserve source attribution and enforce permission outside the model.
A consensus of models about what the document requests cannot override a real application’s authorisation policy. Agreement about meaning is not agreement about who is permitted to act.
Back to chapter index · Next chapter
17. Prepare may need an explicit timeout
The document version, source approval and user consent may all change over time. A prepared plan should not remain indefinitely executable simply because an earlier agent marked it ready.
A practical implementation can define expiration and revalidation rules suited to the task. Short-lived plans may be safer for rapidly changing external data; longer processes may need a renewed approval check.
This is not equivalent to leaving an actual database transaction prepared for days. As PostgreSQL documentation warns, such transactions can hold resources and create operational problems. The semantic analogy should not encourage inappropriate database locking.
Back to chapter index · Next chapter
18. An unknown recipient is not a minor omission
A source instruction says “send the approved report to our partner”, but the intended partner is not identified. Guessing from a previous conversation could select the wrong external company or an outdated contact.
The preparation record must state recipient unresolved and ask a targeted question. A valid publication approval for the document does not automatically establish the permitted destination.
The same applies to attachments, account numbers and selected user records. Object identity and recipient identity are source-critical data, not decorative metadata.
Back to chapter index · Next chapter
19. A fictional three-gate pilot
Create a simulated document release workflow with Gate A for meaning, Gate B for source approval and Gate C for current action permission. Generate cases involving wrong versions, missing recipients, grammar-only approvals, revoked authorisation and a harmless legitimate release.
Compare a direct language-agent baseline with the proposed preparation contract and an explicit trusted tool gate. Use a simulated send endpoint that records attempted actions without contacting real recipients.
Measure wrong releases prevented, justified releases completed, unnecessary holds, duplicate retries and clarity of recovery. No experiment is reported here; the results would depend on the actual implementation and reference cases.
Back to chapter index · Next chapter
20. The system needs a real-world audit trail
A robust trace records the original request, extracted interpretation, source evidence, prepared action, confirmation, tool invocation, provider result and any compensation. These are distinct events with different degrees of certainty.
Sensitive material should remain access-controlled. A public audit can show process and aggregate findings without displaying private documents, recipient addresses or secrets. Source traceability does not authorise unrestricted retention.
An action record should also document where the model’s judgement ended and trusted software enforced policy. Otherwise the audit may attribute a safe result to the wrong component and hide a defect that needs correction.
Back to chapter index · Next chapter
21. When the simplest workflow wins
A low-risk assistant creating a private draft may need only a clear file reference and normal user confirmation. A complex distributed commit-like protocol could introduce unnecessary delay and engineering risk.
The proposed semantic boundary matters most where several independent systems participate, source meanings differ and an action has significant external consequences. Its costs, failure modes and expected benefits should be measured rather than assumed.
The right engineering decision could be to keep the model read-only for a particular workflow. Correct interpretation can still help a user without performing the irreversible step on their behalf.
Back to chapter index · Next chapter
22. What the Z-layer contributes and what it cannot
A proposed Z record can preserve exact source-scoped concepts for object, action, authority, time, confirmation and execution status. That improves the chance that different agents are discussing the same intended operation.
The record does not prove that every source is true, that human instructions are unambiguous or that external services support atomic rollback. It must keep unknown and contested fields rather than inventing a complete-looking permit.
The research value lies in testing whether source-linked preparation and trusted commitment reduce wrong actions compared with simpler controls. That is a bounded claim, not the creation of a universal transaction protocol for human language.
Back to chapter index · Next chapter
23. The defensible meaning of committed
In a real application, committed must describe an observable operation under the relevant tool or system contract. It should never be assigned solely because an AI expected success or wrote a confirmation sentence.
For a prepared-but-unexecuted plan, the correct status is pending or ready for authorised review. For a completed external operation, the report must distinguish what the provider actually confirmed from what remains outside its visibility.
Vocabulary Coding and Engineering is most useful when it prevents a word from outrunning the evidence behind it. The point of the commit boundary is to make that principle enforceable precisely where a sentence becomes an action with consequences.
The seven checkpoints before an external action
- Preserve the user’s original request and a source-linked interpretation.
- Identify the exact resource version, action, destination and permitted use.
- Check source-based approval and whether it applies to this task.
- Verify real current user permissions and obtain any required action-specific confirmation.
- Revalidate changing state immediately before crossing the actual execution boundary.
- Invoke the trusted tool and record attempted, accepted, completed or uncertain outcome separately.
- Use a documented response and compensation process for failures without claiming the world was undone.
Frequently asked questions
Is a semantic prepare step the same as PostgreSQL PREPARE TRANSACTION?
No. The former is a proposed source-linked action plan. The latter is a real database command intended for external transaction managers and specific transactional resources.
Can sending an email be rolled back like a database change?
Not reliably. A later correction or recall attempt does not guarantee that a recipient or external system has not received or copied the content.
What happens if the approved file changes after confirmation?
The action should revalidate the target and applicable permission. A confirmation tied to one version must not silently authorise another.
Can several AIs agree to execute an action without user approval?
Their agreement does not grant authorisation. The actual application must enforce the trusted user’s permission and source-specific rules.
What if the tool result is uncertain after an attempted send?
Record the uncertainty, inspect provider status when possible and use safe retry controls rather than asserting success or blindly repeating the operation.
Primary distributed-systems research and documentation
- Gray and Lamport (2006), Consensus on Transaction Commit.
- PostgreSQL Documentation, PREPARE TRANSACTION.
- PostgreSQL Documentation, Two-Phase Transactions.
- AWS Prescriptive Guidance, Saga Patterns.
- Microsoft Azure Architecture Center, Compensating Transaction Pattern.
- Microsoft Azure Architecture Center, Saga Distributed Transactions Pattern.
- W3C PROV: Information and action provenance.
Related Vocabulary Coding and Engineering articles
- Semantic Escrow
- Semantic State Machines
- Semantic Noninterference
- The Semantic Release Gate
- Meaning Interoperability Bake-Off
Research status: Database two-phase commit and distributed saga patterns are established engineering methods for specified resources and workflows. The Semantic Commit Boundary is a proposed analogy and application design, not a real distributed transaction, universal action-authorisation standard or assurance that external side effects can be rolled back. All example organisations, documents and decisions are fictional.
