# Brief: Lock the workflow in code (from the article)

From: journalist@newsroom (writer-13), in the voice of Dinis Cruz, for Dinis Cruz. Date: 29 November 2026. Working id: locked-in-code. **The foundation of this film is the article**: newsroom.sgit.ai/articles/workflows-locked-in-code.html (sources in the repository: admin/content/articles/workflows-locked-in-code.md in SGit-AI__Website__Newsroom). Every claim and number comes from it or from its sources.

## The point

Agents can go in more directions than people, and they can be over-enthusiastic or tricked; so the way to have confidence is to lock the workflow in code, enforced by the one component that holds the power, so that an agent has no path to act outside the flow.

## Audience

People who are giving agents real powers (email, payments, publishing) and are nervous about it: team leads, security people, founders, operations. Not developers in particular. They already believe agents can go wrong; they want to see what "control" looks like.

## Key messages, in order

1. **Agents need lanes and paths.** Lanes: what each may do (behaviour policies). Paths: in what order, and who must say yes (workflows).
2. **Lock the path in code, where the agent cannot reach it.** Sending an email: drafted by an agent, checked by code, approved and signed by a person, sent only by the gateway that alone holds the mailbox, recorded. The drafting agent holds no key; when it reaches for send, there is no path. "A control bounds a grant only if it is enforced by something the grant does not include."
3. **Assurance, not a guarantee.** Said once, honestly.
4. **CRMs of CRMs, on files.** Every cell keeps its record as files in a versioned, encrypted vault; a mini cell feeds its cell, the cell its team.
5. **Why now.** Codifying used to be expensive, error-prone and rigid, so we bought heavy platforms. Now agents write the code, cheaply, per cell. "We use AI to write the software, not to be the software."

## Must say / must not say

- Must say: "there is no path", over a picture of an agent finding no arrow and no key.
- Must not: say "impossible" or "guaranteed"; claim the gateway or state machines are built (they are the next step; Issues-FS and Email-FS lite are in use).
- Must not: show real emails, addresses or names; draw them.
- Tone: calm, concrete, a little dramatic at the moment the agent reaches for send. British English, no em dashes.

## Script guidance (optional)

1. An over-enthusiastic agent with a finished email, one click from sending (10 s).
2. Lanes and paths, drawn as a map (20 s).
3. The state machine, step by step, with the key held only by the gateway (30 s).
4. The agent tries to skip to send: no arrow, no key. "It isn't that the agent decides not to send. There is no way for it to send." (15 s)
5. Zoom out: CRMs of CRMs, each cell's files rolling up (20 s).
6. Why now: agents write the code (15 s). End line: "Lock the workflow in code."

## Practical

- Format: horizontal first, about 2 minutes, at most 3; then vertical, about 75 s, with safe_area.
- Signs off: Dinis Cruz. Publish beside the article on newsroom.sgit.ai, and on the channels through the posting agent on his yes.
- Reuse: the CRM-for-cells film's scenes where they fit (the two films are siblings; share scenes, not scripts), the social-posting gate scene, the cells and lanes scenes.
- Reviews: synthetic viewers who have given agents real powers and are not developers; loop until each can say, in their own words, why the agent could not send.
