← All posts

Software Factory—from requirements to production evidence

How a lifecycle graph makes AI-assisted delivery reviewable, repeatable and accountable.

Dmitry Mykhaylov · 13 min read

Open the Software Factory presentation

AI can produce a plausible implementation before a team has agreed what the software should do. That shifts effort into review and rework. A Software Factory gives people and agents a shared delivery process, with a named owner, an accepted output and the evidence required to advance at every stage.

The lifecycle moves from requirements through product and technical specifications, delivery planning, implementation and release, and production evidence.
The delivery stages. Review can send work back to the stage where a decision needs revisiting. Explore diagram

Six feedback loops in the Software Factory design

The presentation follows one change at six levels. The outer Software Engineering Lifecycle Graph connects requirements, product specification, technical specification, roadmap, implementation, and deployment and QA. Within that graph, a draft can be revised several times, a pull request can go through successive review rounds, and a production observation can start another task. Step through the design to see what each loop sends back and what lets it advance.

From requirements to production feedback
  1. Requirements and design

    OrchestrateExecuteReview

    The executor creates a candidate document from the brief and its attachments. Security and QA agents review it in parallel with a human product reviewer. Findings accompany the instructions for the next revision of the document in Confluence.

  2. Implementation and verification

    Task graphSymphonyExecution harness

    Symphony selects ready tasks from the roadmap and dispatches them to remote execution harnesses. Each harness works on its assigned task and submits a pull request with verification evidence.

  3. Specification clarification

    QuestionHuman or agentRechecked specification

    When implementation exposes an ambiguity, the answer and supporting evidence update the specification. The orchestrator uses the revised version to decide whether planning or implementation can resume.

  4. Pull-request review

    New revisionReviews and CIMerge gate

    A human reviewer checks acceptance, GitHub Copilot supplies inline code review, and a reviewer agent checks the validation evidence. Unit tests, integration tests and package builds run against the same revision. A finding or a failed check starts another round.

  5. Environment promotion

    DevelopmentStagingProduction

    The candidate moves through explicit gates. Smoke, contract and end-to-end checks contribute evidence in the environment where each applies. The release owner can inspect that evidence before wider rollout.

  6. Production evidence and follow-up

    ObserveInvestigateCorrective task

    The Evidence Agent investigates signals such as an error spike or a failed synthetic check alongside recent release changes. Confirming a regression produces a Jira task with evidence that the implementation team can act on.

Give each stage a reviewable output

  1. Requirements capture the user problem, desired outcomes, constraints, acceptance signals and open questions.
  2. Product specification turns those requirements into user journeys, observable behaviour, edge cases and explicit exclusions.
  3. Technical specification records service boundaries, data and API contracts, design trade-offs, migration risks and how the team will verify them.
  4. Roadmap breaks the design into deliverable slices and makes dependencies, owners and release gates visible.
  5. Implementation and release connect each change to its requirement, tests, review findings and deployment plan. Production signals then feed the next decision.

Encode decisions in the lifecycle graph

The Software Engineering Lifecycle Graph (SELG) defines stages, allowed transitions and their inputs. An orchestration engine such as Symphony handles execution separately. It can dispatch work to people or agents and track attempts, artefacts and reviews, while the lifecycle defines what can advance.

The lifecycle defines stages and approval rules. An execution engine routes the work, shared QA and delivery support it, and production evidence returns to the lifecycle.
The lifecycle owns decisions. The execution engine runs the work. Release and service evidence inform the next decision. Explore diagram

For each stage, an orchestrator selects the next action, an executor produces a versioned artefact, and reviewers check it against the agreed criteria and approved inputs. Independent review produces findings. An accountable human approves consequential changes. If a design reveals an unresolved business rule, send that question back to Requirements and identify which downstream decisions need review.

Measure the whole delivery loop

Begin with one feature across the full lifecycle, including deployment and a production check. Compare it with work of similar scope and complexity. Track human effort, elapsed lead time, rework and escaped defects. Include review queues and fixes after release. Faster drafting is valuable when the team can also ship and operate the result with confidence.

Once the loop is dependable, use it to deliver a small improvement to the factory itself. That exercise exposes gaps in permissions, evidence and ownership that a demonstration can miss.

Follow a requirement through the review loop

Imagine that a team wants to give account administrators an export of billing activity. This is a hypothetical feature. It has a recognisable shape, a web page, a job and a file, but the useful decisions are about eligibility, permissions and what the user sees when the export takes time. Work through the example below to see where those decisions belong and how a finding changes the plan.

The export feature, from requirements to production
  1. Requirements

    An administrator needs to reconcile charges without asking support. Agree which transactions must appear and what counts as a successful reconciliation.

    Outcome and examples recorded

  2. Product specification

    Describe the request, pending state and expiry. The specification covers access at submission and leaves access at download ambiguous.

    Candidate product rules

  3. Technical specification

    The proposed design authorises the request at submission and gives a finished export a download link. The design inherits the unanswered policy question.

    Candidate design and tests

  4. Review returns a finding

    A revoked administrator could still use the link. The reviewer sends the finding back to the product specification, where the retrieval policy is decided.

    Return to Product Specification

  5. Revised specification

    Check current access at retrieval. A revoked user cannot download a finished export. Update the design and both accepted and denied access examples.

    Revised policy and acceptance cases

  6. Delivery and release

    Commit the linked changes and tests. Release to a limited pilot and confirm that the team can pause new exports and investigate failures.

    Pilot rollout and verification

  7. Production evidence

    Inspect real reconciliation attempts, completion times and errors. The service owner uses the evidence to decide whether to expand the pilot.

    Next deployment decision

The request starts as an outcome people can evaluate. An administrator should be able to reconcile charges for a selected period without asking support to assemble the data. A finance analyst can show several real reconciliation tasks and agree on what would count as success, such as including credits and cancelled transactions under explicit rules. A support lead can identify the recurring questions that a usable export should answer. Capture a small set of examples and identify who owns each decision. The implementation team can estimate the work once the parties agree on those examples.

The product specification decides what the administrator can ask for, how the interface shows a pending request, who can retrieve the finished file and when it expires. It should cover what happens if someone’s permissions change while the job runs. Someone who could request the export in the morning may have lost access by the time the file is ready. A product decision about that case changes what the implementation can do, so an executor should bring the uncertainty back to the product owner before building around a guess.

The technical specification can then explain the job lifecycle, the source of truth for access, the data boundary, retention and the approach to retries. The first proposed design in the animation assumes that authorisation at submission is sufficient. An independent reviewer notices that the design allows an administrator to retrieve a file after their access has been revoked. The finding identifies the affected decision and a concrete acceptance example. It goes to Product Specification, which is the earliest artefact with authority over that rule. Once the revised specification is approved, the team reviews the technical plan and the affected tests again.

What the lifecycle graph records

I use the word graph because an accepted decision can feed several later artefacts, and a finding can send work back along one of those relationships. A requirements document may feed a product spec and a technical spike at the same time. A technical change can affect the roadmap, test plan and rollout runbook even if the product behaviour stays the same. Those dependencies are more useful than a single status field when the team needs to work out what a change invalidated.

Start with a short list of allowed transitions. A submitted artefact can be revised at the same stage, returned to the stage that owns a blocking decision, or advanced after the relevant checks and approvals. A prototype can run in parallel to reduce uncertainty, as long as it is clearly identified as provisional. Store its results as evidence for the design decision. This gives people room to explore while keeping the approved path clear to a reader who arrives later.

A candidate artifact enters independent review. An approved revision can advance. A finding sends work back to the stage that owns the decision.
Independent review can return work to an earlier stage. The finding identifies which decision needs revisiting. Explore diagram

Each recorded transition should answer a handful of questions. Which work item was active, and at which stage? Which revision did the executor see? What upstream artefacts were approved? What did the reviewer check, and against what evidence? Who was authorised to make the decision? A durable event history can answer those questions after an agent session ends, a colleague changes teams or a production review comes around six months later.

Write the simplest lifecycle rule before choosing a storage product. If an approver confirms revision 4 while a second executor has started revision 5, recording the approval against whatever happens to be current would be wrong. The approval belongs to revision 4. Use a revision check when saving the decision, and surface conflicts so a person can compare the changes. An automated retry must link to the same attempt or create a clearly distinguished attempt, so it cannot produce duplicate tasks, approvals or release records.

Separate making the artefact from accepting it

A workflow can switch among different agents and tools. The roles still need to be specific. The orchestrator reads workflow state and selects the next authorised action. It can ask for a more focused investigation if the evidence reveals a gap. The executor writes a candidate artefact or produces a check result in the permitted workspace. The reviewer evaluates the candidate against the agreed criteria and records findings that the author can act on. Role boundaries make it easier to diagnose mistakes and replace one tool without changing the rules.

A typed contract-review task enters a capability queue. An eligible person or agent returns a typed result, and unresolved work can be escalated.
Route a task by the capability it needs, then keep the review artefact or escalation attached to the task. Explore diagram

Provide reviewers with the same candidate and approved inputs, plus the evaluation criteria and prior unresolved findings. Ask them to identify a specific claim, describe the evidence they found or expected, and explain what decision it affects. ‘Please improve security’ leaves the next executor guessing. ‘The specification permits a download after access is revoked, which contradicts the approved example about a permissions change’ points straight to the decision. Include human approval when the consequences warrant it and identify the role that has authority to give it.

Different reviewers can concentrate on different questions. A product reviewer can check eligibility and user behaviour. A technical reviewer can examine failure and retry semantics. A delivery reviewer can assess the rollout and rollback plans. In a small team these can be review passes by the same people on different work items. Adding reviewers has a coordination cost, so limit independent passes to the decisions where another viewpoint changes the outcome. A test failure with a clear owner rarely needs a council to interpret it.

Keep broad actions out of a generic runner. A process that can open a pull request needs a well-defined repository and branch policy. A process that can deploy needs to interact with a service that enforces the deployment policy. Code review findings, ticket text and generated notes are inputs to evaluate. The system should derive permissions and transition choices from the workflow and the authenticated actor, even if an artefact contains a plausible instruction to do something else.

Design for the work that fails halfway through

Early demos usually follow the path where every source is available and the first implementation is correct. The factory becomes useful when it can survive missing material, a delayed reviewer or an execution session that dies after producing part of an artefact. On a retry, identify what has already happened and resume or restart the bounded attempt. Preserve the unfinished output for analysis where it is useful, and make any resulting side effects visible to the operator.

Three states are especially easy to confuse. A check might fail because the candidate violates a requirement. It might be inconclusive because a service or source was unavailable. Or a result might be stale because the approved input changed while the check was running. A production gate should behave differently in each case. The first sends a finding to the author, the second may need an operational retry, and the third needs fresh evidence against the current revision. Surfacing the difference saves time during triage.

Plan for people to override the happy path. During an incident, an on-call engineer may need to apply an approved rollback before someone has completed a normal release record. Give the incident procedure an explicit transition, capture who authorised it and reconcile affected evidence after service is restored. The record should make it possible to review the exception without stopping time-sensitive incident response. Frequent exceptions indicate that the model of the workflow needs attention.

Build the last mile of evidence

The export feature can be broken into a thin first release that covers one role, one export format and a controlled set of accounts. The implementation artefact links the revised access requirement to tests for accepted requests, withdrawn permissions and repeated jobs. The rollout plan identifies where status and success are observed. Operations need enough detail to pause new jobs, assess in-flight work and handle completed files if an error is discovered. This readiness belongs to the feature, even if the code looks straightforward.

Production evidence has a different purpose from a pull-request checklist. The team can track completion times, failures by stage and the number of support requests during the pilot. Compare the signals with the expectations agreed in Requirements. The quality of the sample matters. Ten successful synthetic exports with no real pilot usage show that the path is available, while real reconciliation attempts reveal whether the feature addresses the original problem. Both are useful evidence when they are identified clearly.

Record the next decision in plain language. The owner might broaden the pilot, revise file expiry after observing more late downloads than expected, or improve monitoring because the support team cannot explain stuck jobs. Make the decision and the supporting signals available together. If a new requirement emerges, open it as a new revision or work item. The old release remains auditable and the next iteration starts with evidence from service operation.

Evaluate a pilot before expanding the factory

Pick a feature that reaches real users, has bounded operational risk and shares recognisable characteristics with prior work. Write down the comparison rules before the first run. For example, identify the systems involved, expected review effort, and the point at which ‘done’ will be measured. Features of similar size can differ in how often requirements change and how much risk their dependencies introduce. Keep those differences alongside the measurements so the results stay useful to engineering managers.

Measure active human effort and elapsed delivery time separately. An agent can run in parallel with a reviewer working on something else, so adding their clock times would be misleading. Track the time people spend clarifying requirements, reviewing artefacts, resolving failures and supporting rollout. Include rework and defects observed after release within a fixed follow-up window. A reduction in drafting effort is informative. The question a pilot must answer is whether total time or quality changes when you measure the full delivery process.

For work of comparable scope and risk, the pilot measures active human hours, rework and defects, and elapsed time to production.
Compare like-for-like work on all three measures. A change in one measure can reveal where work moved elsewhere in the process. Explore diagram

Pay special attention to where work waits. A team may produce technical specs faster and then spend longer getting product decisions because open questions were discovered earlier and arrived together. That is a useful outcome if the team uses it to improve decision ownership. Fast artefact production increases throughput when the downstream reviewers and release process can make use of it. Add resources or automate only after identifying the queue that constrains progress.

Once a pilot produces reliable evidence, apply the same loop to a modest factory improvement, such as adding the missing evidence link that made a review difficult. Keep human approval on the change. Observe whether the new behaviour makes the next feature easier to review. Building the factory through the factory is a practical way to find the difference between a workflow you can demonstrate and one that an engineering team can own in production.

Related reading OpenAI Symphony, Specification-driven development and DORA metrics.

← All posts