PATTERN 12 Governance Leadership

Ghost in the Workflow

The person who built your AI workflow understood it. They knew why the prompt was worded that way, what the agent was never supposed to touch, and which outputs needed a second look. Then they moved on, and the workflow kept running without them.

A new employee holding a coffee leans in toward an empty desk, where an AI workflow dashboard is still running and reads Systems Optimized. A packed box and a Good luck, you'll be missed card sit on the desk. In a thought bubble above him, the colleague who built the workflow smiles at that same desk - the person he can no longer ask.

The builder did everything right - and it all lived in their head

Picture the builder who does it well. Before building anything, they wrote down what success looked like (Pattern 01, Begin with the End in Mind). They gave the AI rich context about the business, the audience, and the constraints instead of a list of commands (Pattern 02, Onboard Don't Program). They tried to break it before trusting it, and tuned it around the failures they found (Pattern 03, Test Adversarially). Where numbers mattered, they had the model write code to calculate rather than calculate itself (Pattern 10, Models Are Not Good at Math). The agent works because of all that discipline.

Now ask where that discipline lives. The value statement is in a chat thread. The onboarding context is spread across forty prompt revisions. The red-team findings - the edge cases, the inputs that broke it, the step where a human must check the output - exist only in the builder's memory. So does the answer to a question nobody thought to ask: what systems and data the agent can reach, and why it needs that access.

Organizations have lost knowledge this way before, in undocumented spreadsheets, macros, and homegrown databases. What's different now is visibility. A spreadsheet's logic sits in its cells, where a successor can at least read it. An AI workflow's logic sits in its tuning history: the revisions, the rejected outputs, the conversations that shaped it. None of that is visible in the finished agent.

When the builder leaves, all of it leaves with them, and what stays behind is a ghost. The successor sees the output but not the reasoning. They can't tell a deliberate design choice from an accident, or a necessary permission from a leftover one. The obvious options are bad: keep running something they don't understand, or shut it down and lose the value it was producing.

The worst outcome is the one nobody chooses. The agent keeps running while the world changes underneath it. A data source is restructured, a policy changes, a field is renamed. Nothing errors out. The output stays plausible and quietly becomes wrong, and no one remaining knows which assumptions to check.

There's an irony here. AI is often sold as the way to capture institutional knowledge before it walks out the door. Poorly documented AI does the opposite: it creates a new category of institutional knowledge, buries it inside prompts and agent configurations, and loses it the same way organizations have always lost knowledge.

AI assets that outlast the people who built them

Cut the hidden cost of turnover. Gallup estimates replacing an employee costs one-half to two times their annual salary, and part of that cost is the time it takes a replacement to become productive. For a $120,000 role, the total is $60,000 to $240,000. When the departing person's AI work documents itself, the successor inherits working knowledge instead of reverse-engineering it, which shortens that ramp.
Catch silent drift before it costs you. Documented assumptions let a successor see which data, policies, and dependencies an agent relies on, and check them when they change. Measure it: share of AI assets with documented dependencies, and how long it takes to spot a broken one.
Inherit an asset, not a liability. The successor can change, improve, or retire the workflow with confidence, instead of choosing between blind trust and starting over.
Keep access defensible. Every AI asset has a named owner who can explain what it reaches and why, so permissions can be reviewed rather than left in place. Measure it: share of AI assets with a named owner and a current access review.
Stay free to change models. When an AI workflow documents its purpose, inputs, prompts and owner outside any one tool, you can move it to a different model without rebuilding it from memory.

When this pattern applies

This pattern applies from the moment anyone other than the builder depends on an AI asset. That includes agents running on a schedule or triggered by events, prompts a team reuses, chat workflows built into how a process gets done, and any AI that touches business systems or data. The test is simple: if the builder disappeared tomorrow, would someone need to understand this?

It applies most urgently in three situations:

  • Agents that act on their ownAn agent that writes to systems, sends messages, or moves data does more damage when misunderstood than a prompt someone runs by hand.
  • Workflows that grew up informallyA personal experiment becomes something the team relies on, and it never gets a second look on the way.
  • Organizations in motionReorganizations, turnover, and role changes are when ghosts are made. The builder rarely leaves through a planned handoff.

It does not apply to throwaway work. A one-off chat to draft an email doesn't need a record. The line is reuse and reliance, not effort.

And it applies before the builder leaves, not after. Documentation written during the work captures the reasoning while it's fresh and visible. Documentation reconstructed after the fact captures only what the successor can guess.

Make documentation part of the AI's job

The fix is the thing that makes this problem different from every undocumented spreadsheet before it: the AI can document its own work. Instead of asking the builder to write it all down afterward, make documentation part of the AI's job description from the start. The AI produces the work, and it produces the record that explains the work.

Step 1
Write documentation into the job description
When you onboard the AI (Pattern 02), add a standing constraint: every output that others will rely on comes with a record a stranger could follow. For example:
Standing constraintAs you build and refine this workflow with me, maintain a running record for whoever inherits it. Capture what it does and why, the decisions we made and the alternatives we rejected, the assumptions it depends on, the systems and data it can access and why, the failures we found in testing, and the points where a human must check the output. Update the record whenever we change something. Write it for someone who wasn't in this conversation.
The builder doesn't write the documentation, but a human must review it. Treat the record as a draft, the same way you treat the AI's work. AI describes what it believes it did, which isn't always what it actually does.
Step 2
Scale the record to the risk
Not every AI asset needs the same record. Match the depth to how much damage a misunderstanding could do.

A lite record is enough for reusable prompts and chat workflows that a person runs by hand. It covers four things: what it's for, the key assumptions it depends on, where a human must check the output, and who owns it.

A full record is required for agents that act on their own, write to systems, or touch sensitive data. It answers every question a successor will have:

  • Purpose and successWhat it's for and what good output looks like (Pattern 01).
  • Context and design choicesWhat the AI was told, and why it was built this way rather than another way.
  • Assumptions and dependenciesWhich data sources, policies, fields, and upstream processes it relies on. This is the list to check when something changes.
  • Access and permissionsWhat systems and data it can reach, and why each one is needed. A human verifies this against the actual system configuration - the AI knows what it was told it can reach, not necessarily what it can.
  • Known failures and human checkpointsWhat broke during testing (Pattern 03), and where a person must verify before the output is used.
  • Owner and successorWho is accountable now, and who would take over. The named successor is the one who watches for triggers - especially the owner changing role, since the owner is the one leaving.
  • RetirementThe conditions under which it should be retired, what access to revoke, and what depends on it downstream.
Step 3
Keep the record with the work, not in the chat
A record inside a chat history is still a ghost. Store it alongside the agent, prompt, or workflow it describes, wherever the team already keeps shared work, and version it with every change. If someone can find the agent, they can find its record.

If you build in a chat tool, make it a habit: at the end of each working session, have the AI output the updated record as a file, and save it next to the workflow.

Protect the record like the system it describes. A full record maps what an agent can reach and why, which makes it useful to an attacker. Give it the same access controls as the agent itself.

Step 4
Test the record with someone who didn't build it
Hand the record to a colleague who wasn't involved and ask them three questions. What does this do? What would you check if the main data source changed? Is it safe to change, and how would you know? If they can't answer, the record isn't done. This is Pattern 03 applied to the documentation itself.
Step 5
Review the record when the world changes
Set triggers, not just dates: the owner changes role, a data source or system is restructured, a policy the workflow depends on changes, or the output starts to look off. Each trigger means opening the record, checking its assumptions, and updating it. That's how silent drift gets caught. Sometimes the answer is that the workflow is no longer needed - and the record's retirement section says what to revoke and what will break when it goes.

Why this matters more every quarter

The scale is about to change. Gartner forecasts that by 2028 the average global Fortune 500 enterprise will have more than 150,000 AI agents in use. Every one of them has a builder who will eventually move on. Gartner's own guidance on agent sprawl calls for a central inventory and lifecycle rules. An inventory tells you an agent exists; the record tells you what it's for. This pattern supplies the part an inventory can't.

Most of the conversation is about access. Security writers call these "orphaned agents" and focus on credentials that outlive their owners. That risk is real, and it's why access is part of every record. But the deeper problem is understanding. You can't right-size an agent's permissions, or safely retire it, if nobody knows what it's for.

Related patterns. This pattern preserves the work of Patterns 01, 02, 03 and 10. It is the mirror image of Embed the Expert (coming soon): Ghost in the Workflow is what happens when knowledge gets trapped in AI by accident; Embed the Expert captures it on purpose.

Use this pattern

Paste this into any AI system's custom instructions or at the start of a conversation to run Pattern 12. It creates a handoff record for an AI workflow, prompt, or agent, and keeps it current.

Put this pattern to work

Greg works with teams building AI into their practice. If you want to go deeper on any pattern, start a conversation.