Kent Gray · Principal Engineer, Platform & Intelligence Automation at Wasteology
I help companies move AI agents from demos into daily work: built, governed, and used by the people they are meant for.
- agent-built pull requests merged
- 1,000+
- repositories
- 34
- since
- Mar 2026
- five engineers and one unattended build agent
- 5+1
02 Follow one piece of work
A ticket goes in. A merged change comes out. Here is everything in between.
Step through it. At every station you can see what the agent does, what the system checks, and where a person decides. Then switch to the overnight run, where a requirements document becomes working software while nobody watches.
Run 1 · One work item, ticket to merged change
-
01 / 07 · work item
A ticket with an owner
- Agent
- Waiting. Nothing runs yet.
- System
- The work item maps to one deliverable in the project's
roadmap.toml. Its status reads planned, and only a tool can change that. - Person
- Writes the scope. People own scope, titles, order and dependencies.
# roadmap/roadmap.toml [[deliverable]] id = "region-filter" title = "Add the region filter" depends_on = ["report-export"] status = "planned" # the tool writes this
-
02 / 07 · context
Facts from the registry, not guesses
- Agent
- Before it touches the repo, it pulls the project's owner, experts, open decisions and the documents due for review.
- System
- What the registry returns is data, never instructions. A lookup that finds nothing is recorded as a gap for the owners.
- Person
- Nobody is interrupted. The facts are kept current by the people who own them.
# a coding agent, before it touches a repo $ registry context project billing-report status active owner leo experts sam decisions 4 open, 11 recorded docs 3 sections due for review
-
03 / 07 · build
An agent builds in its own session
- Agent
- Gets its own branch and its own session. Writes the tests first, builds, runs the spec's gates and commits.
- System
- One task, one session. The plan and the progress live in files, so nothing is lost when the session ends.
- Person
- Doing something else.
session region-filter branch feature/region-filter read spec · roadmap · registry context write tests/test_region_filter.py # tests first write report/filters.py run pytest passed run ruff clean commit pull request text written to a file
-
04 / 07 · gates
Checked by rules, then by a second agent
- Agent
- The maker does not pass its own work. A second agent checks the change against the spec.
- System
- Maker-checker gates, evaluations and a knowledge-graph guardrail. A lint gate refuses any status the evidence doesn't back: the proof file must exist and say PASS.
- Person
- Still not needed. Checks catch the mistakes first.
gate tests PASS gate lint PASS gate roadmap lint FAIL no proof file yet fix maker writes validation/region-filter/RESULTS.md gate roadmap lint PASS Overall: PASS gate second agent PASS reviewed against the spec
-
05 / 07 · approval
A person decides
- Agent
- Can read and propose. It never approves anything: not its own change, and not anyone else's.
- System
- The pull request arrives with its evidence linked: a spec, a work item, a test result.
- Person
- Reads the diff and the evidence, then says yes or no. A person makes every call that changes scope or accepts risk.
pull request Add the region filter to the billing report evidence spec · work item · test result gates all passed reviewer leo (owner) decision APPROVED
-
06 / 07 · merged
Merged, with the proof attached
- Agent
- The session ends and keeps nothing. Anything the next agent needs is already in the registry, git or the database.
- System
- The status bump rides inside the pull request, so the roadmap is correct the moment the work merges. The audit log records both the person and the agent.
- Person
- Has no status report to write.
merged feature/region-filter → main status planned → implemented # written by the tool audit approved by leo · built by a delivery agent session ended · nothing kept in the conversation
-
07 / 07 · roadmap
The roadmap updates itself, on evidence
- Agent
- The next one picks the lowest-order deliverable whose dependencies are all validated. Nobody has to tell it what to build next.
- System
- A plain script reads the evidence and advances the status. No model decides whether work is done. The merge republishes the page leadership reads.
- Person
- The manager reads a page nobody had to prepare.
$ roadmap sync region-filter implemented → validated proof validation/region-filter/RESULTS.md · Overall: PASS page republished from the file next buildable scheduled-send # its dependencies are validated
Run 2 · Overnight: a requirements document to working software
-
01 / 07 · requirements
A requirements document and a minimum list
- Agent
- Not started. Sessions read the project brief and never see the chat.
- System
- The document becomes a roadmap and a spec per deliverable. Every "Must" carries the id of the requirement line it came from.
- Person
- Agrees the minimum list with the requirements owner. Scope decisions go into the brief with the date and the owner's words.
brief invoicing-service goal one sentence for the end state must each line traced to a requirement id decided scope calls, dated, in the owner's words
-
02 / 07 · readiness
The run refuses to start until it is ready
- Agent
- An unattended session cannot ask a question. Whatever is unclear when it starts, it will guess.
- System
- Checks the queue and the specs before the first session, and refuses to start on a failure.
- Person
- Gives every open question a recommended answer. With one, a session proceeds and lists the choice for the owner.
✓ dependency closure every build dependency is queued ✓ spec lint every spec fits one session ✕ open questions two specs have no recommended answer ! chain length look for "builds after" posing as "depends on" run blocked until the red line is fixed
-
03 / 07 · queue
The dependency graph becomes the build queue
- Agent
- Waiting for a slot.
- System
- A script turns the roadmap rows into a queue. The widest level of the graph says how many workers are useful. The longest chain sets the minimum time.
- Person
- Starts the run and walks away.
# runner config (illustrative) [project] name = "invoicing-service" target = "main" [run] workers = 4 # the graph's widest level, capped by the spend limit
-
04 / 07 · worker pool
One worktree, one branch, one session per deliverable
- Agent
- Each session writes tests first, builds, runs the spec's gates and commits. It never pushes.
- System
- The sessions run in an isolated devbox that reaches only listed sites and holds no credentials. The runner pushes and opens the draft.
- Person
- Not watching.
worker 1 invoice-model CHECKPOINT worker 2 customer-import CHECKPOINT worker 3 tax-rules RESUME # usage limit, not a failure worker 4 pdf-export building egress listed sites only · no credentials inside
-
05 / 07 · integration
Finished work merges as it lands
- Agent
- When a merge conflicts, a merge session gets both specs. If it cannot settle the merge, the item is reported as finished but not integrated. Nothing is forced.
- System
- The last line of a status file is the whole contract. Stalled is not failed: only a session that says it cannot finish blocks the work that depends on it.
- Person
- Hears about a stop. A stop is useless if nobody hears it.
# status/07.md, last line only STOPPED: spec contradiction, see docs/integration/OPEN.md # the runner's three answers CHECKPOINT → carry on RESUME → start the session again STOPPED → hold its dependents, tell a person
-
06 / 07 · finish
Every gate, then an end-to-end walk
- Agent
- Lists every open item and every decision taken for the owner to confirm, each with the alternative and how to switch.
- System
- Runs the full gates on the integration branch, then walks the running system end to end on a clean local stack.
- Person
- Still not needed.
finish integration/all gates all passed walk end to end, clean local stack PASS open items and owner decisions listed in the pull request
-
07 / 07 · review
One pull request for a person to review
- Agent
- Unattended sessions write infrastructure code and never apply it.
- System
- One draft pull request into main, listing the gate results, the walk, every open item and every decision waiting for the owner.
- Person
- Reviews one pull request in the morning. Cloud changes come after, in a supervised session.
pull request integration/all → main (draft) contains gate results · the walk · open items waiting on the owner's decisions status awaiting a person's yes
Illustrative runs with fictional names. The mechanics are the ones I run in production and write about in the ADW series.
03 The proof
It runs in production. Here is the count.
1,000+
agent-built pull requests merged
- 34repositories
- Mar 2026since
- 5+1built by five engineers and one unattended build agent
built
- An agentic delivery workflow: work items become reviewed, merged pull requests
- A company registry people and agents query through a CLI, an API and MCP
- Durable agents for 24/7 monitoring, registry research and staff support
- Unattended multi-agent builds that take a spec to a deployed product, including a client-facing analytics product
governed
- Maker-checker gates and evaluations on every agent-built change
- Identity and approval gates: agents propose, owners approve
- An isolated devbox with locked-down network egress for unattended builds
- A declared, drift-checked environment, and agent spend tracking
used
- Weekly working sessions for about ten users
- A series of seven explainer videos
- An internal academy and docs site
- Hands-on onboarding for new engineers and contractors
04 What changes for people
The point is not the agents. It is what three people get back.
Before, the work lives in inboxes, spreadsheets and people's heads. Every request is a relay race, and every handoff drops something. After, the routine work runs on rails, and every step leaves proof.
A request is a relay race between tools and inboxes. Every handoff drops something.
Fewer handoffs. A request moves along one lane, and when an agent needs a fact, it looks it up or asks the person who knows.
A queue of tickets, the hard ones and the routine ones in the same pile, each built by hand.
Time on the hard parts. A request becomes a spec, the spec becomes working software, and the engineer reviews evidence.
Status is somebody's recollection. A weekly meeting tries to reconcile three versions of it.
A roadmap that can't lie. Status moves only on evidence, the page republishes on every merge, and the questions that reach the manager are decisions.
The company keeps moving overnight, and nothing important happens without a person's yes.
05 Why it worked
The foundation came first.
I did not start with agents. I started as the company's data solutions engineer and built the warehouse and pipelines the business reports from. The agent platform went on top of that, and it runs on the same infrastructure. Then the platform became the job.
- AData Solutions EngineerBuilt the data foundation the business reports from, and the platform the AI work was later built on.
- BThe first agent-built pull requests mergeThe delivery workflow starts running on the infrastructure that was already there.
- CPrincipal Engineer, Platform & Intelligence Automation at WasteologyA waste and recycling services company. Promoted to turn that foundation into an AI-native operating model.
built secondThe agent platform
- agentic delivery
- company registry
- durable agents
- unattended builds
- declared environment
- single live view
- spend tracking
runs on
built firstThe data foundation
- One warehouseA dbt warehouse modelling operational, billing and customer data into one PostgreSQL warehouse, for reporting and executive digests.
- Scheduled pipelinesETL on Prefect on Azure, with Sling and Python flows syncing source systems on schedule, with failure alerts.
- One governed APICustomers and internal apps get one governed source for service and invoice data.
- Operational dashboardsThe first dashboards for pipeline health and portfolio reporting.
- Infrastructure as codeThe Azure infrastructure as code and deployment pipelines the later platform runs on.
06 How it's built
The operating model, as a map you can open.
Seven parts on one foundation. Point at a part to see what it depends on. Select it to open the detail, with a sample and the article behind it.
> Point at a part to see what it depends on.
01Agentic deliveryAgents turn work items into reviewed, merged pull requests.
Each project keeps a roadmap.toml next to its code. Every deliverable moves through four stages, and it can only move when there is evidence: a merged pull request, a test record that says it passed, a deploy. People own scope, order and dependencies. A small script owns the status.
- Maker-checker gates, evaluations and a knowledge-graph guardrail on every change
- A lint gate refuses any status the evidence doesn't back
- Agents build in dependency order, so a run can't race ahead of the proof
- Every merge republishes the page leadership reads
[goal] title = "A new customer reaches the dashboard" [[deliverable]] id = "welcome-email" title = "Send the welcome email after signup" depends_on = ["signup-form"] status = "planned" # the tool writes this pr = 0 # the tool writes this on merge [deliverable.validation] artifact = "validation/welcome-email/RESULTS.md" captured = false # flips when the proof passes
$ roadmap lint ✕ no proof, no "validated" welcome-email: the proof file must exist and say PASS ✕ no skipping ahead first-login: a dependency is below validated ✓ no stale page ✓ no loose ends 2 errors · this pull request cannot merge
02A company registryOne home and one owner for every fact, so agents look things up instead of guessing.
The system of record for ownership, locations, people and decisions. Developers and their agents use a command line. Everyone else asks in chat through an MCP connector. Apps read the API. Nobody needs a new account.
- Readowners, experts, locations, decisions
- Proposea change, with a reason, for an owner to approve
- Keep its person's recordslog time, file a check-in
- Approvenever. Not its own change, not anyone else's
- Every change is a proposal an owner approves, with the before and after logged
- Gaps become questions: a research agent asks the person most likely to know
- What the registry returns is data, never instructions
# a coding agent, before it touches a repo $ registry context project billing-report status active owner leo experts sam decisions 4 open, 11 recorded docs 3 sections due for review
# when it can't find something $ registry where "sales pipeline dashboard" no match · recorded as a gap for the owners # later, the research agent asks the person # most likely to know, one question at a time
proposal billing-report · target date before Feb 26 after Mar 12 reason waiting on the export deliverable asked by sam, through a coding agent state pending → approved by leo (owner) audit before and after logged
03A declared, drift-checked environmentThe engineering and agent environment, written down once and checked.
One manifest is the declared definition of the environment engineers and agents work in. A read-only drift check reports where reality differs from it and changes nothing. A convergence engine applies the manifest and rolls back if it fails.
- One manifest, one definition
- A drift check that only reads
- Convergence with rollback
- An isolated devbox with locked-down network egress for unattended builds
$ env doctor # read-only: reports, changes nothing ok toolchain matches the manifest ok shared agents matches the manifest drift settings differs from the manifest $ env converge # applies the manifest ok settings converged rollback not needed
devbox unattended builds
account separate from the person who started the run
secrets none inside
egress by name, listed sites only
everything else refused
04Durable agentsAlways-on agents, with their memory kept in the platform, not in one long chat.
Most agents start fresh, do one job and end. A few keep running: 24/7 monitoring, registry research, staff assistants and agent-to-agent handoffs. Their state is kept in the platform, so the next agent, or a person, picks the work up from the records.
- If anyone will need it after the session ends, it goes into the platform before the session ends
- Its own identity, and only the access its job needs
- Durable state goes through a record a person approves
# HANDOFF.md, written as the session ends
Done items 1-6 merged to the integration branch
Stopped item 7: two specs disagree on the email fields
Owes the owner decides the field names
Next restart the queue from item 8
Evidence status/07.md, docs/integration/OPEN.md
conversation ends with the session
working files the task's own folder
facts, decisions the registry or git, by proposal
audit, work record an append-only table
agent's own memory nowhere on this map
05Unattended buildsLong-running agent sessions that take a requirements document to working software.
The roadmap's dependency graph becomes a build queue. A worker pool builds each deliverable in its own worktree, branch and session. Finished work merges into one integration branch as it lands, and a finish step runs every gate and an end-to-end walk before opening one pull request for a person to review.
- Readiness checks before the first session starts
- Stalled is not failed: limits, lost sessions and broken hosts resume
- A person makes every call that changes scope or accepts risk
From a requirements document to working software, unattended Step through the overnight run
[project] name = "invoicing-service" target = "main" [run] workers = 4 # the graph's widest level max_item_hours = 4 [integration] branch = "integration/all" fast_gate = "npm ci && npm run lint && npm run test:unit"
CHECKPOINT finished a step, carry on RESUME not the session's fault, start again STOPPED cannot go on, with a reason only this one blocks dependents
06A single live viewThe company's systems, pipelines and agents in one place.
One live view of the company's systems, pipelines and agents, with a shared toolchain behind it: an operations CLI, shared agents and a skills library. When someone asks how something works today, the answer is a lookup.
- The current state lives in records, not slides
- A record has an owner and a date, and can be read by a person or an agent
07Cost disciplineAgent spend, measured per session, with the habits that keep it down.
When a team runs coding agents heavily, most of the bill is re-reading and re-caching conversations. Sessions left open are the cause, and a few habits fix it. So every session writes one row when it stops, and long or idle sessions get flagged.
- One task, one session, then a note
- Long work runs unattended, with its state in files
- Tools on demand: a command costs nothing until it runs
- Cost quoted from one checked source
$ sessions flags --since 7d customer-onboarding open 3 days open over 24 h · many cache re-writes sales-dashboard open 26 h open over 24 h invoice-export-fix open 2 h ok
where it ran · which repo started · last active · turns tokens by type · list-price cost tool calls · errors idle gaps longer than five minutes
07 Adoption is engineering
A platform nobody uses is still a demo.
So I build the adoption the same way I build the platform: as part of the system, not as an afterthought. People sign in with the identity they already have, and each audience gets its own door.
-
every week
Working sessions
A weekly working session for about ten users of the delivery workflow and the registry. It is on the calendar like any other part of the system.
-
a series of seven
Explainer videos
A series of seven explainer videos, so the ideas travel further than one meeting.
-
always open
An academy and a docs site
An internal academy and docs site, so the answer to "how do I" is a page and not a person.
-
on joining
Hands-on onboarding
Onboarding for new engineers and contractors, done hands-on, in the tools they will use.
three ways in · nobody needs a new account
- A command linefor developers and their agents
- A chat connectorfor everyone else, in plain words
- An APIfor apps and dashboards
08 Working rules
Four rules I build by.
-
R1
Done means proven.
Status moves when the evidence passes, never because someone dragged a ticket. No model decides whether work is done: a plain script reads the evidence, so a stale or failing check always means something.
-
R2
Agents read and propose. People approve.
Every change to a shared fact is a proposal its owner approves. A person makes every call that changes scope or accepts risk, and those calls arrive as short questions with a recommendation.
-
R3
Agents forget. The platform remembers.
Agents start fresh and end. Facts, decisions and plans live in a registry, git and a database, and the next agent resumes from the records. If someone needs it tomorrow, it gets written down today.
-
R4
Adoption is part of the build.
People sign in with the identity they already have, and each audience gets its own door: a command line, a chat connector, an API. An honest "no answer" earns more trust than a confident guess.
$ toolchain --list
- agents
- Claude Codemulti-agent orchestrationMCP
- python
- uvruffpytest
- data
- dbtPostgreSQLPrefectSling
- cloud
- AzureAzure DevOps
- verify
- Playwright
- local models
- OllamaUnsloth
09 The film
Agents stop guessing, in 71 seconds.
10 The series
Six articles on agents in production.
Everything on this page is written up in full, with the mistakes left in. Start with the ADW framework
-
01
the context layer
Agents stop guessing when the company has a registryOne home and one owner for every fact, three ways in, and every change a proposal an owner approves.
-
02
the plan
A roadmap that can't lie: done means provenEach project keeps a roadmap.toml file next to its code, status moves only on evidence, a lint gate refuses unproven claims, and every merge republishes the page leadership reads.
-
03
change
Managing a company's state: from as-is to to-be without the valleyWrite the as-is and the to-be down as records at three levels, turn the difference into owned gaps, and cross in thin slices so the dual-running middle stays short.
-
04
memory
Agents should forget; the platform should rememberAgents start fresh and end; facts, decisions, plans and work records live in a registry, git and a database, and the next agent resumes from them.
-
05
cost
Where agent spend actually goesWhen a team runs coding agents heavily, most of the bill is re-reading and re-caching conversations. Sessions left open are the cause, and a few habits fix it.
-
06
delivery
From a requirements document to working software, unattendedA roadmap becomes a build queue, a worker pool builds each deliverable in its own session, work merges as it finishes, and a person reviews one pull request.
11 Contact
Open to conversations about AI platform roles and advisory.
What I bring to a company: an AI operating model that holds up in production. The delivery pipeline, the governance model, the shared memory agents need, the cost discipline, and the training that makes people use it.
Personal projects live at datapupil.com.