Tests come first. That's the whole point!
Code first. Otherwise what are you even testing?
No two teams have ever agreed on a development lifecycle.
So this one is built to be tailored. Change the stages, change who holds them, and everything it builds still ends the same way: with its standard's own signed document, a Descriptor for an agent and a process document for a process.
Every stage says who holds it and how you know it's done.
This reference runs from the first idea to the last day. Each names its role, what it's given, what it hands back, and how you know it's done. Here's one.
Test
- Role
- test writer
- Given
- the spec, and the agent's own files from Design; where code already exists, the behaviors and the existing tests and gaps (parts 1 and 5 of the as-built record), from which it writes characterization tests that pin today's behavior until Requirements says otherwise; where a build starts from the as-built record of code kept elsewhere, the same parts and the interfaces (part 3), from which it writes tests that pin each behavior the person approved, for code written fresh
- Hands back
- the suite, with at least one test for each acceptance scenario of the spec, named by its id, and what no test could be written for
- Done when
- every acceptance scenario has a test, every exact word, pattern and number a requirement verified by test fixes is checked by a test, the suite fails against empty stand-ins, and notices each program removed
- Why here
- The tests are written from the spec, before any code exists. Whoever writes them, a separate check confirms that every test traces back to something the person approved, and that every test fails while the code is still empty, so a test can't pass by agreeing with a mistake. (Yes, people argue about this.)
Cut it to fit the way you work.
Add the stages you need, drop the ones you don't, and name them whatever you like. Put your own agent, a vendor's or a person in any role.
- RequirementsWishlistnew name
- Testas written
- Codeyour own agent
- Legal reviewadded
- Packageon-ramp
- Releaseon-ramp
- Evaldropped
Join the lifecycle where you are.
Everybody starts from something: an idea, a prototype, a skill, a codebase you're taking on, the as-built record of code kept elsewhere, an agent from outside, working code, a package. Find what you already have, and start at the stage it's ready for.
- If you already have an idea,start at Requirements
- If you already have a prototype,start at Test, then Code
- If you already use a coding agent,start at Requirements, and let it write everything through Code
- If you already have a skill people run in their own assistant,start at Security review, then Package on-rampThe person who ran it was the approval. Security review writes that down: what it may reach, what it may spend, and who says yes.
- If you already have a written business process,start at SourceIts steps are what Source takes in. Write one at agentprocesses.ai.
- If you already have an existing codebase you're taking on,start at Reverse engineeringIt writes down what the code does today, with the evidence for each behavior. At Requirements you decide what to keep, what's a bug, and what to drop.
- If you already have an agent from another team or company to let in as it is,start at Inspection, then Admission, then Deploy goes liveIt reads what the agent does without running it. Admission lets it in for a trial first, then to go live.
- If you already have the as-built record of code kept elsewhere, and want it built again without taking that code on,start at RequirementsFor a rewrite, a port, or a clean-room rebuild. The record already says what the code does, so at Requirements you decide what to keep, and Code writes the code fresh.
- If you already have working code to ship as it is,start at Security review, then Package on-ramp
- If you already have a package or an image,start at Security review, then Release on-ramp, then Admission, then Deploy goes live
- If you already have a remote agent with an A2A endpoint,start at Admission; Deploy registers its card, and you add what it refuses and records
- If you already have an agent connected to a network through a node,it's already on; finish its Descriptor
- If you already have agents running on a platform,start at Run and Change
Every starting point that gets credentials passes Security review first, or Inspection for an outside agent let in as it is. Every agent, whoever built it, passes Admission before Deploy.
Everyone agrees on the ending.
However your lifecycle runs, every agent ends with a signed Descriptor and a registration. An agent a platform runs also arrives as an Agent Package: the declaration, the parts, a manifest and a digest.
Our package maker is the easy on-ramp to the mesh. Any other tool works, as long as the package is valid.
A platform checks every package before it installs or updates anything, so every agent it runs meets the same gate, whoever built it.
Any agent can hold a role, and so can you.
Each stage describes a kind of work, called a role, rather than a particular tool. The roles are written down at agentroles.ai, so anyone can build an agent to do one, and a person can do any of them. One agent can do the work of several stages. What has to stay separate is the checking: the work of each stage is checked by something the agent that wrote it can't change. The coding agent you already use can write an agent from its spec through its code this way, and here is how. A tool that already checks software can do a checking role the same way, and here is what it signs.
Start from working code, not a blank page.
Reference agents for eleven roles are open source under Apache-2.0, at github.com/CommonAgent/adlc.
Run them, read them, or swap in your own.
$ git clone https://github.com/CommonAgent/adlc $ cd adlc/agents/test-writer # eleven agents, one folder each: spec-writer test-writer code-writer package-maker deployment-manager conformance-checker publisher catalog documenter incident-recorder solution-planner
Copy a process instead of writing one.
Here are three examples, in the open format at agentprocesses.ai. Copy one, put your own holders in it, and run it.
Make a new agent
A request in words becomes a deployed agent, with the owner's yes at three gates.
agentprocesses.ai/make-a-new-agentRecord an incident
Notice it, gather the records, write it down with every gap named, then decide.
agentprocesses.ai/record-an-incidentRetire an agent
Take the listing down, get the owner's yes, remove it, close its AgentDoc.
agentprocesses.ai/retire-an-agentHere is the whole map.
Open any stage for its role, its handoffs and its check.
Make
Prove
Change
Beside the stages sits the ledger, where the debts a change leaves behind are written down.