AI Summary
Pro Tip: Verify you have disabled model training on your AI account so your conversations and files remain private.
Copy this article link and instruct your Agent to summarize it at a fifth-grade level.
https://troyclemens.substack.com/p/universal-context-protocol-ucp
A2A Protocol UCP
Download my Agent to Agent Protocol as a UCP Zip file, then open it, then attach and send the json.md file to your agent! Now you gained a new Capability in the form of a Configuration (Mod). This makes sharing Configs easy and repeatable.
Universal Context Protocol (UCP)
Artificial intelligence has a memory problem.
Not only the kind where it forgets your favorite sandwich after confidently promising to remember it forever.
A more serious kind.
Work does not survive movement.
You spend three hours explaining a project to one agent.
It finally understands:
The objective.
The architecture.
The current state.
The files.
The rules.
The things it must never touch.
The mistakes already made.
The evidence required.
The next authorized action.
Then you open another chat.
The new agent looks at you like you just walked into a hotel lobby and demanded an update on the moon base.
Nothing traveled.
The intelligence moved.
The context did not.
That is the problem Universal Context Protocol exists to solve.
A prompt asks for work.
UCP transfers the world required to perform it.
Context Is the Invisible Work
People think the useful part of an AI session is the answer.
Usually, it is not.
The useful part is everything the system had to understand before the answer became possible.
What are we building?
Why are we building it?
What has already happened?
Which facts are verified?
Which decisions are final?
Which files are protected?
Which tools are allowed?
Which actions require approval?
What counts as proof?
When should the agent stop?
That information is context.
Context is the invisible operating environment around the task.
Without it, even a brilliant model is just a talented stranger who arrived late to the meeting.
It may understand every word you say.
It still does not know why everyone is angry at the spreadsheet.
Chat History Is Not a Protocol
Most people treat the conversation as the project.
That works until it does not.
A chat history is useful.
It is also fragile.
It may be:
Too long.
Partially summarized.
Unavailable to another agent.
Trapped inside one platform.
Mixed with outdated instructions.
Missing important attachments.
Full of temporary decisions that later changed.
Dependent on the model guessing which details still matter.
A conversation remembers loosely.
A protocol transfers deliberately.
That distinction matters.
Chat history says:
Somewhere above, we discussed the branch, the database, the protected file, the failed test, and what the reviewer wanted.
A protocol says:
This is the repository. This is the branch. This is the verified state. This file is protected. This test failed. This is the required correction. Stop before any destructive action.
One is a pile of conversation.
The other is operational state.
Imagine a Hospital Transfer
Suppose a patient is transferred from one hospital to another.
The first hospital does not send a note saying:
We talked about the patient for a while. The new doctor will probably figure it out.
That would be insane.
The transfer includes:
Patient identity.
Diagnosis.
Medication.
Allergies.
Recent procedures.
Current condition.
Known risks.
Test results.
Outstanding decisions.
Required monitoring.
Next treatment step.
The receiving team should not be forced to reconstruct reality from fragments.
The state must travel with the patient.
Agent work is similar.
The receiving agent should not inherit assumptions.
It should inherit state.
That is UCP.
What UCP Actually Is
UCP stands for Universal Context Protocol.
It is a portable standard for transferring complete working context between:
Humans.
AI agents.
Models.
Tools.
Sessions.
Repositories.
Platforms.
Local systems.
Cloud systems.
The protocol packages the information required to continue the work without pretending the receiver remembers anything.
The receiving system is treated as having zero presumed memory.
That rule is important.
Do not assume it remembers the last conversation.
Do not assume it knows the project.
Do not assume it understands your private shorthand.
Do not assume it knows which decision was approved.
Do not assume it can distinguish a temporary experiment from the current canon.
If the next worker needs it, the packet must carry it.
Context that cannot travel cannot become infrastructure.
A Prompt and a Handoff Are Not the Same Thing
A prompt might say:
Fix the application.
That is not a handoff.
That is a wish wearing work boots.
A real handoff might say:
Inspect the verified repository and branch. Reproduce the account-creation failure. Preserve all existing work. Do not modify payments, deployment configuration, database schema, or protected files. Make the smallest safe correction. Run the required tests. Return the exact files changed, commands executed, test results, unresolved risks, and evidence that the application works. Stop before deployment.
That instruction transfers more than a request.
It transfers:
Mission.
Environment.
Scope.
Authority.
Constraints.
Protected state.
Evidence requirements.
Completion conditions.
Stop conditions.
That is the difference.
A prompt asks the machine to think.
A handoff prepares the machine to operate.
One Protocol, Two Surfaces
UCP follows a simple doctrine:
One protocol, two surfaces.
The first surface is human-readable.
The second is machine-readable.
The human needs to understand what the packet contains.
The machine needs an exact contract it can parse and follow.
Those two surfaces must describe the same reality.
No separate version for the human.
No slightly different version for the agent.
No cheerful summary that quietly removes half the restrictions.
No machine contract that contains permissions the operator never saw.
One truth.
Two representations.
The package contains:
A readable document for inspection.
A structured contract for execution.
The human can review it.
The machine can act from it.
The UCP Package
A canonical UCP export contains two files inside one ZIP package:
NAME_READABLE.rtf
NAME.json.md
The readable file explains the mission in plain language.
The machine file contains the structured context contract.
The readable file also contains the exact machine contract inside it.
That means the operational instructions can be recovered even if the standalone machine file becomes separated from the package.
The standalone machine contract must be an exact extraction of the embedded contract.
Not similar.
Not mostly the same.
Exact.
If the embedded contract and standalone contract differ, the package is invalid.
Why be this strict?
Because parallel truth creates drift.
The human reads one version.
The agent executes another.
Then everyone spends the afternoon discovering that “do not touch production” somehow became “avoid touching production where practical.”
No.
No paraphrase.
No parallel truth.
No drift.
What the Human-Readable Surface Does
The readable document is not decorative packaging.
It exists so a person can inspect the transfer before trusting it.
It should explain:
What the mission is.
Why the packet exists.
What state is being transferred.
What authority is included.
What authority is withheld.
What must be preserved.
What risks are known.
What evidence is required.
What completion means.
What the receiver should do next.
Then it includes the exact machine contract.
A human should be able to open the packet and understand the operating situation without decoding raw structure.
The protocol should not require a computer-science degree to verify what the computer is being told.
That would defeat the point.
What the Machine-Readable Surface Does
The machine contract carries the exact operational state.
Depending on the mission, it may include:
Mission identity.
Operator identity.
Receiving-agent role.
Canonical architecture.
Current project state.
Verified facts.
Known uncertainty.
Repository information.
Branch information.
Runtime information.
Tool access.
Permissions.
Protected files.
Prohibited actions.
Prior attempts.
Known failures.
Evidence requirements.
Acceptance criteria.
Completion conditions.
Stop conditions.
Escalation rules.
Next authorized action.
The goal is not to include every fact in the known universe.
The goal is to include every fact required to continue safely and correctly.
A grocery list does not need your childhood medical history.
A production deployment packet probably should not omit the target environment.
Context should be complete for the mission.
Not bloated for sport.
State Must Be Verified
A dangerous handoff transfers assumptions as facts.
The previous agent says:
The tests passed.
Did they?
Which tests?
When?
Against which version?
On which branch?
Did the application run?
Was the output inspected?
Was the result independently reviewed?
UCP should distinguish:
Verified fact.
Operator decision.
Agent report.
Inference.
Open question.
Unresolved risk.
That separation matters.
Otherwise the new agent inherits confidence instead of evidence.
A system can carry a false statement across ten agents with perfect consistency.
Consistency is not truth.
The packet must preserve provenance.
Who said this?
What supports it?
When was it verified?
Is it still current?
Memory without provenance becomes folklore.
Context without provenance becomes operational fiction.
Authority Must Travel Too
Context is not only information.
It is also permission.
A receiving agent may know how to deploy the application.
That does not mean it is authorized to deploy it.
It may know how to delete a branch.
That does not mean deletion is inside the mission.
It may have access to the browser.
That does not mean it may submit the form.
Capability is not authorization.
A UCP packet must make authority explicit.
What may the receiver read?
What may it change?
Which tools may it use?
Which systems are off limits?
Which action requires human approval?
Which action is forbidden?
When must it stop?
Without those boundaries, the packet transfers knowledge but not governance.
That is incomplete.
A proper handoff carries both:
What the receiver needs to know.
What the receiver is allowed to do.
Protected State Must Be Named
Every serious project has things that should not be casually touched.
A locally modified file.
A production database.
A secret.
A deployment configuration.
A legal document.
A billing account.
A branch with unmerged work.
A customer record.
A recovery snapshot.
The machine may see these things.
That does not mean they belong inside the mission.
Protected state must be named directly.
Do not rely on:
Be careful.
That is not a protection rule.
Say:
Do not edit this file.
Do not stage this change.
Do not discard this work.
Do not rotate this credential.
Do not deploy.
Do not submit.
Do not merge.
Do not delete.
Stop and escalate if the mission requires touching the protected state.
Clear rules are cheaper than archaeological recovery.
Evidence Must Be Designed Before Execution
Most workflows ask for proof after the work is done.
That is backwards.
Evidence should be part of the mission before execution begins.
The packet should define what proof completion requires.
That might include:
File diffs.
Command output.
Test results.
Runtime checks.
Screenshots.
API responses.
Hashes.
Review findings.
Human confirmation.
Rollback verification.
The evidence requirement changes how the agent performs the work.
If the agent knows it must prove the result, it is less likely to confuse a plausible explanation with completion.
A mission without evidence requirements ends with:
Done.
A mission with evidence requirements ends with:
These files changed. These tests ran. This behavior was observed. This risk remains. This action was not authorized.
One is a claim.
The other is an operational record.
Stop Conditions Are Part of the Mission
Machines are excellent at continuing.
This is not always a virtue.
An agent may continue when:
The branch is wrong.
The state is dirty.
The required file is missing.
The evidence contradicts the mission.
A protected resource must be changed.
The next action requires approval.
The task has moved outside scope.
The tool returned incomplete information.
The work cannot be verified.
A UCP packet should define when the receiver must stop.
Stopping is not failure.
Stopping at the boundary is correct execution.
A governed agent does not merely know how to act.
It knows when it no longer has authority to continue.
Completion Must Mean Something
“Finished” is one of the most dangerous words in software and automation.
Finished according to whom?
The code exists?
The test passed?
The page loaded?
The user flow worked?
The reviewer approved?
The deployment completed?
Production was verified?
The customer received the result?
UCP defines completion before the work starts.
A completion condition might require:
The defect is reproduced.
The smallest correction is implemented.
Required tests pass.
Runtime behavior is verified.
Protected files remain unchanged.
Evidence is returned.
Unresolved risk is documented.
The agent stops before deployment.
Now completion has a shape.
Without that, the agent decides what “done” means while doing the work.
That is how a prototype wakes up wearing a production badge.
UCP Is Larger Than A2A
A2A means agent to agent.
It is the practice of one agent preparing a bounded mission for another agent.
A2A is a specialized use of UCP.
UCP is the broader context-transfer standard.
It can move context:
From one agent to another.
From a human to an agent.
From one model provider to another.
From cloud to local.
From one session to another.
From a project archive into a new workspace.
From a private system into a sanitized public package.
From today’s team to the team that inherits the work later.
So the relationship is simple:
UCP preserves portable context.
A2A transfers bounded work.
A2A is one vehicle.
UCP is the road system.
Durable Context Beats Clever Memory
AI companies are racing to make models remember more.
Useful.
But durable context cannot depend only on proprietary memory inside one product.
What happens when:
The model changes?
The account changes?
The conversation disappears?
The platform closes?
The project moves?
The agent is replaced?
The operator wants to run locally?
The work needs independent review?
The context must survive the provider.
That is why files matter.
A durable context package can be inspected, stored, versioned, transferred, compared, sanitized, and recovered.
The conversation may disappear.
The mission should survive.
Owned context is operational sovereignty.
Sanitization Makes Protocols Shareable
Some context should travel privately.
Some methods should be published publicly.
Those are different jobs.
A UCP package can be sanitized for public distribution.
The public version may preserve:
Roles.
Workflow structure.
Approval gates.
Evidence types.
Stop conditions.
Review logic.
Recovery patterns.
Reusable doctrine.
It should remove:
Private identities.
Repository names.
Branch names.
Task IDs.
Pull-request numbers.
Machine details.
Secrets.
Live vulnerabilities.
Deployment coordinates.
Private queue state.
This allows the method to travel without exposing the operation.
Teach the pattern.
Protect the coordinates.
That is how private operating knowledge becomes public infrastructure without turning into an instruction manual for entering the building.
UCP Prevents Context Drift
Context drift happens when the mission changes slightly each time it moves.
The first agent says:
Review the code.
The second agent understands:
Fix the code.
The third agent understands:
Refactor the system.
The fourth agent understands:
Replace the framework and deploy it while everyone is asleep.
Nobody explicitly authorized the final mission.
The work drifted through interpretation.
UCP resists that by freezing the contract.
The receiver gets:
The exact mission.
The exact scope.
The exact constraints.
The exact evidence requirements.
The exact stop conditions.
If the mission changes, the packet changes.
The new version becomes visible.
That is how context becomes governable.
Version the Context
Projects evolve.
Architecture changes.
Tools change.
Policies change.
Agents change.
A valid instruction today may be dangerous six months from now.
That means context packages need versioning.
A UCP packet should make it possible to determine:
Which version is current?
What changed?
Who approved the change?
Which mission used it?
Which earlier version is archived?
What should no longer be followed?
A model can perfectly execute an obsolete instruction.
That is not intelligence failure.
That is context-governance failure.
Old context should not silently remain immortal.
Canon must be named.
Superseded instructions must be marked.
History should remain available without pretending every historical rule is still active.
The Handoff Is the Real Technology
People focus on the model because the model is impressive.
It writes.
Reasons.
Codes.
Speaks.
Analyzes.
The model feels like the magic.
But real work breaks at the handoff.
The researcher found the answer.
Did the writer receive the sources?
The planner defined the mission.
Did the coder receive the constraints?
The coder changed the files.
Did the reviewer receive the exact evidence?
The reviewer found a blocker.
Did the operator receive a clear decision gate?
The model may be brilliant at every stage.
The system still fails if the truth does not survive movement.
That is why the handoff is the real technology.
Not because models do not matter.
Because intelligence that cannot transfer state becomes trapped intelligence.
Universal Means the Context Can Move
UCP is called universal because the context should not belong exclusively to one agent, one vendor, one interface, or one machine.
The package should remain understandable across systems.
A human should be able to read it.
A cloud model should be able to interpret it.
A local model should be able to use it.
A coding agent should be able to execute from it.
A reviewer should be able to audit it.
A future operator should be able to recover the mission.
Universal does not mean every system magically supports every field.
It means the essential operating truth is packaged in a form designed to travel.
The receiver may change.
The contract remains.
Context Becomes Infrastructure
Once context can travel reliably, new systems become possible.
Long-running missions.
Agent teams.
Portable project memory.
Provider-independent workflows.
Local and cloud handoffs.
Auditable automation.
Recoverable execution.
Cross-model review.
Durable organizational knowledge.
Human-readable machine instructions.
Machine-readable human authority.
That is when context stops being chat residue.
It becomes infrastructure.
The system no longer depends on one conversation continuing forever.
The work becomes portable.
The authority becomes visible.
The evidence becomes durable.
The mission survives movement.
The UCP Standard
A trustworthy UCP package should pass a simple test.
Does it contain the mission?
Does it identify the current verified state?
Does it separate fact from assumption?
Does it define authority?
Does it name protected state?
Does it specify prohibited actions?
Does it define evidence requirements?
Does it define completion?
Does it define stop conditions?
Can a human inspect it?
Can a machine execute from it?
Are the human and machine contracts identical in meaning?
Does the work depend on hidden memory outside the package?
If essential context is missing, the packet is incomplete.
If the two surfaces disagree, the packet is invalid.
If the authority is unclear, the receiver should stop.
That is not bureaucracy.
That is how context becomes trustworthy enough to operate.
The Conversation Is Not the System
A conversation is where context may be created.
It should not be the only place context lives.
The chat can help discover the mission.
Clarify the state.
Resolve ambiguity.
Record decisions.
Prepare the contract.
But once the work matters, the truth should leave the chat.
It should become an artifact.
Readable.
Structured.
Versioned.
Portable.
Auditable.
Recoverable.
The conversation is the workshop.
The protocol is what leaves the workshop ready to be used.
Universal Context Protocol
A prompt says:
Do something.
UCP says:
This is the mission. This is the verified state. This is your authority. These are the boundaries. This is the protected context. This is the evidence you owe. This is what completion means. This is when you stop.
That is a higher standard.
It does not make intelligence less creative.
It makes intelligence operational.
It does not remove human judgment.
It preserves human authority.
It does not ask the next agent to remember.
It gives the next agent what must not be forgotten.
The receiving agent should not inherit assumptions.
It should inherit state.
A conversation remembers loosely.
A protocol transfers deliberately.
Context that cannot travel cannot become infrastructure.
That is Universal Context Protocol.
The handoff is the real technology.
Knowledge Check
Why is chat history not sufficient for transferring operational context?
What is the difference between a prompt and a complete handoff?
Why must the human-readable and machine-readable surfaces carry the same contract?
What information should travel with authority, constraints, evidence requirements, and stop conditions?
How does UCP prevent context drift between agents, sessions, tools, and platforms?
Next Action
Choose one important AI conversation you are currently relying on.
Create a context packet with these headings:
Mission.
Current verified state.
Approved decisions.
Open questions.
Allowed tools.
Protected information.
Prohibited actions.
Evidence required.
Completion conditions.
Stop conditions.
Next authorized action.
Then test it.
Give the packet to a new agent with no prior conversation history.
Ask it to explain the mission, boundaries, current state, and next step before acting.
If it cannot continue safely without asking you to reconstruct the entire project, the context is not portable yet.
Do not ask the next agent to remember.
Transfer what must not be forgotten.


