Agentic Engineering Workflow · design walkthrough

An engineering team made of agents.

A team of agents, with a person at every gate.

A design for writing safety-critical software documents and code with AI agents, where a person approves each step and an independent team checks the work.

0development agents
0independent compliance agents
0record that crosses the firewall
0guards before anything is published
SCROLL
Real run

It already runs end to end. Here is the receipt.

This is the results card the workflow printed at the end of one real run on a Windows machine, from a sample brief. A brief went in, ten agents did their jobs, and the run stopped at the publish gate to wait for a person. None of these numbers are illustrative.

final_summary.txt
VerdictAUDIT READY
Development7 of 7 agents done
intake, planner, requirements, design, code and unit tests, test procedures, test code
Compliance3 of 3 agents clean
checker, verification, QA
Publishwaiting for a person to say yes
Output6 source files, 4 test files, full trace record
Blocking0 problems
8 of 8requirements traced all the way to code and tests
24 of 24planted defects caught by the generated tests
9m 47sof agent time, brief to audit-ready package
35 of 40cloud calls used, under a hard cap
1automatic rework round, sent back to the owning agent
224automated checks pass, none call a model
macOSWindows (WSL, Ubuntu)publish gate held shut

Honest footnote: QA raised 7 warnings, all the same note. The run was started in auto-approve mode, so no person signed off each step along the way. That is what the human gate is for in a real project.

01 · The idea

Build it the way a real engineering team is built.

Software for aircraft is not written by one person. It is written by people with separate jobs, and checked by other people who report to someone else. This design copies that structure with agents, so the same checks and balances apply.

The human team

☰
Requirements engineerwrites what the system must do
◇
Design engineerdecides how it will be built
{ }
Software engineerwrites the code and unit tests
☑
Verification engineerwrites and runs the test procedures
★
QAaudits, and reports outside the project
→→→→→

The agent team

☰
REQ agentone requirement per behavior in the brief
◇
Design agentlow-level requirements and module notes
{ }
Coding + unit test agentsource that builds, with tests
☑
Test procedure + test code agentscases, then runnable test code
★
Checker, Verification, QA agentsa separate team that only reads the record
Watch it run

One run, three ways to see it.

The same system and the same run, shown flat and step by step, as 3D blocks you can spin, or as the five layers of the stack. Pick a view.

Press play and watch a project move through the team.

Every agent writes to one shared record and tells the Orchestrator it is done. The Orchestrator releases whoever is next. Nobody talks to anybody directly. The amber layer underneath is MCP, the connector to the certification platform. Click any box to see what it does, then publish at the end.

Example brief: landing gear position indication (invented) Audit not run yet

ORCHESTRATOR · deterministic, no model Gets a pointer when an agent finishes. Releases the next one. DEVELOPMENT TEAM COMPLIANCE TEAM WRITES ← READS → FIREWALL · ONLY THE RECORD CROSSES RECORD 0 items ✉intakewaiting ✎plannerwaiting ☰reqwaiting ◇designwaiting { }coding + utwaiting ☑test proc.waiting ▶test codewaiting ✔checkerwaiting ⚖adequacywaiting ★qawaiting PUBLISHING · CLEAN AUDIT ONLY document importer FINDINGS ← own area only VIA MCP MCP · MODEL CONTEXT PROTOCOL Agents and the platform speak through a short list of tools. STAGING · calls are planned, nothing is sent create + read tools no update, no delete AUDIT GATE PLATFORM 0 records

Selected agent

Click any box

Each agent has one job, reads from the record, and writes back to it after a person approves.

Reads

The record only

Writes

Its own items, after a human gate

Ready. Press play to start a run.
Inside one agent

What happens inside each step.

Every agent runs the same loop, on a model the project is allowed to use, and when the audit finds a problem it goes back to the agent that owns it.

Every agent runs the same loop.

Pull the input, draft, check it, ask a person, write it down, tell the Orchestrator. If the person asks for changes, the loop goes around again with their words attached.

changes requested self-check loop Inputfrom record Draftcloud or local model Self-checkgaps, duplicates Human gateapprove or edit Writerecord, via MCP Notifya pointer, not data Next agentpulls from record
  1. 01The agent pulls its input from the record. It never gets a handoff payload from another agent.
  2. 02It drafts with a model. A person chooses cloud or local for the whole run.
  3. 03It checks its own draft for missing coverage and copied text, and redrafts before anyone sees it.
  4. 04A person reads the draft. They can approve, or type what to change and send it back around the loop.
  5. 05Only after approval does the draft go to the record. The write is recorded with who approved it.
  6. 06The agent tells the Orchestrator it finished. The note is a pointer to the record.
  7. 07The Orchestrator releases the next agent, which reads what was just written.
05 · The firewall

The team that builds it cannot talk to the team that checks it.

In a real project, QA is not supposed to be friends with the person whose work they are auditing. The code enforces that. Try breaking it.

Development team

intakeplannerreqdesigncoding + uttest proceduretest code

Writes to the record. Cannot see compliance findings.

FIREWALL

Compliance team

checkertest adequacyqa

Reads the record. Writes findings to its own area. Uses no model, so nothing grades its own work.

Pick an action above. Allowed and refused calls show up here.
Two walls, not one

Wall one is in the code: the teams cannot message each other or read each other's areas. Wall two is the operating system: the audit runs as its own process on a read-only copy of the record, with writes allowed only in its own folder and the network switched off. When it finishes, the real record is checked byte for byte. If anything changed, the audit is thrown away.

The compliance view, live
CheckerDo all the links trace?waiting
Test adequacyDo the tests catch defects?waiting
QAIs it audit-ready?waiting
PUBLISH GATE
WAITING
The audit has not run yet.

The gate opens only when the audit is clean and still matches the current record. Edit anything after the audit and it closes again until the audit is rerun. This is the same view the compliance team sees while a real audit runs.

06 · Proving it is complete

Every requirement has to trace all the way down.

Requirement, design, code, test, and test procedure. If any link is missing, the audit says so. Break something and watch the verdict change. The requirements below are invented for the example.

High-level requirementLow-levelCodeTest caseProcedure
AUDIT READY
No findings. Every requirement traces to code and to a test that exists.

One requirement, all the way down.

This is real output from a finished sample run, not a mock-up. A pilot asks for a mute button, and seven agents turn that one sentence into requirements, code and a test that proves the 500 millisecond limit. Every arrow is a link stored in the record, so the audit can walk it in both directions.

  1. 1
    Customer requestwritten by the intake agent
    cr-5

    The system shall silence the gear warning tone when the pilot operates the gear warning mute button.

  2. 2
    System requirementwritten by the planner agent
    sr-5traces to cr-5

    The software shall stop the gear warning tone output within 500 milliseconds of receiving an active gear warning mute discrete from the pilot control panel.

  3. 3
    High-level requirementwritten by the requirements agent
    hlr-5traces to sr-5safetyverified by test

    The software shall de-assert the gear warning tone output within 500 milliseconds of the gear warning mute discrete from the pilot control panel becoming active.

  4. 4
    Low-level requirementswritten by the design agent
    llr-10llr-11both trace to hlr-5

    The gear acquisition module shall set the MUTE_ACTIVE flag in the 50 millisecond cycle in which the gear warning mute discrete from the pilot control panel reads active.

    The warning tone module shall de-assert the gear warning tone output within 100 milliseconds of the MUTE_ACTIVE flag asserting.

  5. 5
    Source codewritten by the coding agent
    warning_tone.ctagged llr-11
    /* LLR: llr-11 */
    static bool warning_tone_mute_gate(bool tone, bool mute_active)
    {
        /* MUTE_ACTIVE overrides the hold and de-asserts the tone immediately. */
        if (mute_active) {
            return false;
        }
    
        return tone;
    }
  6. 6
    Test case and procedurewritten by the test procedure agent
    tc-9tp-9trace to hlr-5

    Verify that with the gear warning tone output asserted and the gear warning mute discrete from the pilot control panel becoming active, the gear warning tone output is expected to de-assert within 500 milliseconds.

  7. 7
    Test codewritten by the test code agent
    test_gear_warning_tone_mute_deassert.ctagged tc-9built and passed
    /* TC: tc-9 */
    static void test_tc9_mute_deasserts_tone_within_500ms(void)
    {
        ...
        /* Pilot control panel mute discrete becomes active. */
        g_mute_din = true;
    
        while (elapsed_ms < TC9_DEASSERT_LIMIT_MS) {
            gear_acquisition_task();
            elapsed_ms += TC9_TICK_MS;
            ...
            if (!warning_tone_is_asserted(&w)) {
                deasserted = true;
                deassert_ms = elapsed_ms;
                break;
            }
        }
    
        CHECK(deasserted == true);
        CHECK(deassert_ms <= TC9_DEASSERT_LIMIT_MS);
    }

Text is copied word for word from the run's record on an invented landing gear brief. The two code panels are trimmed for length, nothing is reworded. If any link in this chain were missing, the checker would refuse the audit.

07 · Do the tests actually work?

A passing test proves nothing until you break the code on purpose.

The verification agent makes small deliberate defects in a copy of the code, then checks whether the tests notice. Any defect the tests miss goes back to the test agent with the exact line. The counts here are illustrative.

int gear_warning(int alt_ft, int gear_down) {
    if (alt_ft < 500 && !gear_down) {
        return 1;   /* warn */
    }
    return 0;
}

One mutation: change < to <=. A good test set fails at exactly 500 feet. A weak one never tries that value and the bug survives.

24 DELIBERATE DEFECTS
0caught by the tests
0survived
-round

08 · Getting it into the platform

Publishing happens once, so every guard sits in front of it.

The certification platform has no update and no delete. Whatever is written stays written. So nothing goes in during the run. It goes in at the end, after the audit, and only if a person says yes.

// one call per item, sent only after the audit gate opens create_hlr({ item: "GEAR-DEMO", id: "HLR-1", text: "Warn below the limit, gear not down", traces_to: ["SR-1"] }) // response { ok: true, id: "item_0192" }
01One call per itemEvery requirement, design item, test and procedure is its own small call, so each one is easy to log and to check.
02A ledger stops duplicatesNothing can be deleted, so every call is recorded. A retry skips what already went in, and an unreadable response is marked unknown instead of being sent twice.
03Then read it all backThe same read tools pull the records out and compare them with what was sent. A mismatch is reported, not hidden.
☑
GUARD 01

Audit must be ready

Publishing refuses if the compliance team has any open failure.

#
GUARD 02

Bound to what was audited

A content fingerprint, not a timestamp. Change one word after the audit and publish stops.

⟳
GUARD 03

No stale records

If an upstream agent reran, every record downstream of it is flagged until it reruns too.

✋
GUARD 04

A person says yes

The plan lists every MCP call it will make. Nothing is sent until a human confirms.

◉
GUARD 05

Read it back

After writing, the same records are read from the platform and compared with what was sent.

Plan only. Nothing is written in this walkthrough.

A brief goes in. An audit-ready package comes out.

Every item is traced to the one above it, every draft was approved by a person, and the record says who and which model made it.

01

Requirements

Customer, system, and high-level requirements, one per behavior in the brief.

02

Design

Low-level requirements and short module descriptions, each tied to a requirement.

03

Source code

C code that builds, with unit tests, committed to git.

04

Verification

Test cases, test procedures, and results from running them against the real code.

05

Traceability matrix

Requirement to design to code to test, in one table, rebuilt on every audit.

06

Audit report

The verdict, every finding, and whether the project is ready for a human audit.

07

Provenance

Who approved each item, which model drafted it, and when, so auto-approvals are visible.

08

Publish plan

The exact list of platform calls the package would make, shown before anything is sent.

package/ requirements/ customer, system, high-level design/ low-level, module notes code/ src, unit tests (build and pass) verification/ test cases, procedures, results compliance/ findings, audit report, traceability matrix provenance.json who approved what, which model, when documents/ design description, test report (made after a clean audit) publish_plan every platform call, for a human yes
09 · My part and lessons

I came to this from testing the platform first.

Working on a certification platform for DO-178C and DO-254 projects meant finding where it fails before designing anything that writes into it. That is why the safety guards look the way they do.

40+

Defects found and documented

UI behavior, data integrity, and access control issues in the platform, several critical enough to go straight to engineering.

43

Point documentation review

Reviewed the platform's own technical documentation against the same standards it supports, across traceability, source control, and test procedures.

2

Standards worked through

DO-178C and DO-330 training covering assurance levels, requirements traceability, and tool qualification.

1

Agent framework designed and built

The two-team workflow on this page, worked out with the engineering lead and built in Python with a regression suite that runs without calling a model.

Six things I would tell the next team.

01

A model should not grade its own work

The compliance team uses plain rules instead of a model. The same kind of mistake does not get checked by the same kind of mind.

02

Passing the audit is not the same as being good

The audit says the record is complete and traceable. Whether the requirements are right is a person's call, which is why the gate exists.

03

Pass pointers, not payloads

Agents hand off a note that says where the work is. The next agent reads the record, so there is one source of truth.

04

Design around what the platform cannot do

No update, no delete, and no document content writes. That one fact decided when and how publishing happens.

05

Test the checkers too

I broke the record on purpose, missing tests, orphaned links, stale downstream items, and confirmed the audit caught each one.

06

Small models need small jobs

Asking a small local model for one narrow addition and merging it in code beat asking it to rewrite everything.

What is not proven yet

  • The full flow has run on sample briefs with a cloud model. The local-model path for restricted work still needs its own run.
  • The agents' output is only as good as the requirements a person approves.
  • Records written to the platform cannot be edited later, so rework has to finish before publishing.
00 · Where it stands

What is done, and what is next.

Done

  • Seven development agents and three compliance agents, run by a plain-code Orchestrator.
  • Human gate at each agent, with feedback that reaches the redraft.
  • Firewall between the teams, enforced in code and again by the operating system, so the audit cannot change the record it is checking.
  • Audit gate, content fingerprint, stale-record check, and guarded publish with read-back.
  • A publishing step that only runs after a clean audit: a document agent renders the design description and test report straight from the audited record (no model, so the documents cannot drift from it), and an importer writes and reads back.
  • A test-strength check that can be switched from a warning to a hard stop, so a weak test set blocks the audit.
  • Each development agent now sends back its own draft when links are missing or an id repeats, before a person has to look at it.
  • A regression suite that runs without calling a model.
  • Local-model safeguards: a readiness check that stops a run at once instead of quietly degrading, smaller jobs per call, per-agent model choice under the same restricted-work rules, a repair step that shows a model its own rejected code, a fixed memory window so long prompts are not silently cut, and a watchdog that only stops a run that has gone quiet.
  • A first small slice written to a sandbox project and read back clean.

Proven so far

  • Full runs on invented sample briefs, with a cloud model.
  • Generated code builds and its tests pass.
  • The audit catches deliberately broken records.
  • A full end to end run on a second operating system (Windows, through WSL): audit ready, 8 of 8 requirements traced, 24 of 24 planted defects caught, publish gate held for a person.

Passing the audit means complete and traceable, not that the requirements are right. That judgment stays with the person at the gate.

Next

  • A full run on a local model for restricted work, using the new safeguards (built and tested with stand-in models, not yet proven on a real local run).
  • A full publish to a sandbox project, then read back.
  • Attach the generated documents to the platform by hand, since it cannot accept document content yet.
  • A trial on a real, non-sensitive project with an engineer reviewing every gate.
The words on this page, in plain English glossary

DO-178C

The standard that governs software in airborne systems. It asks for proof at every step: what the software must do, how it is built, and how it was tested.

High-level requirement

A statement of what the system must do, written so it can be tested. One per behavior in the customer brief.

Low-level requirement

A finer-grained statement of how a piece of the software will meet a high-level one. The code is written against these.

Traceability

An unbroken chain from a requirement, to its design, to its code, to the test that proves it. A gap anywhere is a finding.

MCP

Model Context Protocol, a standard way for an AI agent to use another system's tools. Here it is how agents read from and write to the platform.

Orchestrator

The plain-code controller that releases each agent when the one before it finishes. It uses no AI, so it behaves the same way every time.

Firewall

The rule that development and compliance never message each other. Only the shared record connects them, so QA stays independent.

Mutation check

Deliberately breaking a copy of the code to see whether the tests notice. A test that passes both ways is not proving anything.

Provenance

The record of who approved each item, which model drafted it, and when. It makes any auto-approval visible to the auditor.