# Measure and improve the Software Factory

A balanced set of flow, quality, assurance, reliability, context, supervision and value measures for the Factory.

Author: Murali Sid (https://linkedin.com/in/muralisid)
Source: https://www.agenticarchitectureskills.com/factory/measurement
Published: 2026-11-02
Updated: 2026-11-02
Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/
Cite as: Murali Sid. Measure and improve the Software Factory. Agentic Architecture Skills. https://www.agenticarchitectureskills.com/factory/measurement

---


The Factory succeeds when it produces safe, useful change repeatedly. Code volume, model-call count and agent autonomy are not outcome measures.

<ConceptVisual variant="evidence" />

## Flow [#flow]

<SectionVisual
  title="Measure elapsed work, queues and recovery"
  caption="Fast coding can coexist with slow delivery when work waits for decisions, environments or evidence."
  layout="flow"
  items="[
  { label: &#x22;Demand&#x22;, detail: &#x22;A bounded outcome enters the intake queue.&#x22;, output: &#x22;Arrival time&#x22; },
  { label: &#x22;Ready&#x22;, detail: &#x22;Specification, dependencies and authority become sufficient for delivery.&#x22;, output: &#x22;Ready time&#x22; },
  { label: &#x22;Released&#x22;, detail: &#x22;The change reaches its intended users under approved controls.&#x22;, output: &#x22;Lead time&#x22; },
  { label: &#x22;Recovered&#x22;, detail: &#x22;A failed change is contained and service is restored.&#x22;, output: &#x22;Recovery time&#x22; }
]"
/>

* Demand to approved specification
* Specification to first working increment
* Commit to production
* Change failure and recovery time
* Queue and handoff time
* Work in progress and blocked dependencies

Use timestamps from systems of record and publish the definitions. Separate active work from wait time, and classify waits by cause such as missing decision, unavailable environment, external dependency or assurance queue. Median time shows the typical path; upper percentiles and ageing expose the work that becomes stuck.

Do not reward shorter lead time in isolation. A team can improve the number by reducing testing, batching risk into later releases or excluding failed work. Read flow together with change failure, rework and outcome measures. The useful question is which constraint prevents safe value from moving.

## Quality and assurance [#quality-and-assurance]

<SectionVisual
  title="Connect quality evidence to the behaviours that matter"
  caption="Counts become useful when they identify what escaped, why it escaped and which control changes next."
  layout="loop"
  items="[
  { label: &#x22;Specify&#x22;, detail: &#x22;Define acceptance, prohibited behaviour and risk-based assurance depth.&#x22;, output: &#x22;Testable intent&#x22; },
  { label: &#x22;Verify&#x22;, detail: &#x22;Run deterministic tests, evaluations and independent checks.&#x22;, output: &#x22;Evidence&#x22; },
  { label: &#x22;Observe&#x22;, detail: &#x22;Capture defects, wrong outcomes, regressions and expired exceptions.&#x22;, output: &#x22;Failure pattern&#x22; },
  { label: &#x22;Improve&#x22;, detail: &#x22;Change cases, controls or design and prove the effect.&#x22;, output: &#x22;Reduced recurrence&#x22; }
]"
/>

* Acceptance-case pass rate
* Defects and escaped defects
* Rework and repeated review
* Evaluation regressions
* Security findings and time to resolve
* Exceptions, waivers and expired waivers
* Release-evidence completeness

Stratify failures by severity, delivery profile and detection point. A defect found in a local test is different from a wrong customer outcome found after release. Track how often the same class returns after a claimed fix. Repeated review comments often indicate an unclear standard or missing automated check, not individual carelessness.

Evaluation pass rate needs its suite version, model version, environment and confidence limits. Growing the suite with easy cases can inflate the rate. Maintain a protected set of important cases and report regressions by capability and risk domain.

## Runtime reliability [#runtime-reliability]

<SectionVisual
  title="Reliability follows the business outcome"
  caption="Technical availability matters, but an available agent that completes the wrong task is not reliable."
  layout="flow"
  items="[
  { label: &#x22;Attempt&#x22;, detail: &#x22;A request is accepted with a defined service objective.&#x22;, output: &#x22;Work started&#x22; },
  { label: &#x22;Act&#x22;, detail: &#x22;The system reasons, calls tools and applies controls.&#x22;, output: &#x22;Observable execution&#x22; },
  { label: &#x22;Resolve&#x22;, detail: &#x22;The intended business state is reached once and correctly.&#x22;, output: &#x22;Verified outcome&#x22; },
  { label: &#x22;Correct&#x22;, detail: &#x22;Failures are contained, reconciled and learned from.&#x22;, output: &#x22;Recovery evidence&#x22; }
]"
/>

* Resolved outcomes
* Wrong outcomes and severity
* Retry and duplicate-side-effect rate
* Fallback and human-handover rate
* SLO performance
* Incidents, rollback and recovery
* Exercised autonomy above permitted autonomy

Define resolution from the user or business process, not from the agent loop. A response that says a refund was issued is unresolved until the system of record confirms the correct amount and the customer is notified. Measure duplicates, partial completion and delayed harm as well as obvious errors.

Compare permitted, configured and exercised autonomy. A broad permission that is never used is still exposure. An agent repeatedly hitting an approval boundary may indicate either a sound control or a poor allocation of responsibility. Review the pattern before changing the limit.

## Human work [#human-work]

<SectionVisual
  title="Human oversight is a capacity system"
  caption="Design for ordinary load, burst demand and the cognitive quality of the decision."
  layout="flow"
  items="[
  { label: &#x22;Escalate&#x22;, detail: &#x22;Route only cases that need human judgement with sufficient context.&#x22;, output: &#x22;Qualified queue&#x22; },
  { label: &#x22;Decide&#x22;, detail: &#x22;Present alternatives, evidence, uncertainty and consequence clearly.&#x22;, output: &#x22;Accountable decision&#x22; },
  { label: &#x22;Act&#x22;, detail: &#x22;Apply the decision once and return the result to the workflow.&#x22;, output: &#x22;Resolved case&#x22; },
  { label: &#x22;Learn&#x22;, detail: &#x22;Use repeated exceptions to improve policy, design or training.&#x22;, output: &#x22;Lower avoidable load&#x22; }
]"
/>

* Review time per resolved outcome
* Exception volume and peak burst
* Supervisor wait time
* Interrupt rate
* Manual rework
* Adoption and contestability outcomes

Measure queue age, peak arrival rate and the time required for a considered decision. Average review time can hide a burst that overwhelms supervisors. Also inspect false escalations, rubber-stamping, reversals and whether affected people can contest a result. These reveal the quality of oversight, not only its cost.

Human effort is not automatically waste. Some decisions should remain human because accountability, empathy or contextual judgement is the point. The improvement target is unnecessary work and poorly supported judgement.

## Context and compute [#context-and-compute]

<SectionVisual
  title="Account for the whole context envelope"
  caption="The useful denominator is a resolved outcome, including discovery, retries and supporting services."
  layout="stack"
  items="[
  { label: &#x22;Discover&#x22;, detail: &#x22;Load system rules, skill descriptions and routing metadata.&#x22;, output: &#x22;Discovery cost&#x22; },
  { label: &#x22;Activate&#x22;, detail: &#x22;Load selected instructions, references, schemas and working memory.&#x22;, output: &#x22;Active context&#x22; },
  { label: &#x22;Execute&#x22;, detail: &#x22;Use model calls, tools, retrieval, storage and retries.&#x22;, output: &#x22;Run cost&#x22; },
  { label: &#x22;Resolve&#x22;, detail: &#x22;Include supervision, correction and failed attempts.&#x22;, output: &#x22;Cost per outcome&#x22; }
]"
/>

* Input and output tokens per resolved outcome
* Discovery and active-skill tokens
* Reference and tool-schema load
* Cache reuse
* Compaction and restart rate
* Model, tool, storage and platform cost

Report context by source so the team can distinguish essential knowledge from accidental prompt weight. A large instruction library may cost little at discovery but heavily after activation. Tool schemas, repeated reference text and retained conversation history can dominate a task even when the user prompt is small.

Optimize only after preserving outcome quality. Useful interventions include better routing, smaller task-specific context packs, cached stable references, deterministic preprocessing and restarting a polluted session. Record the before and after result on the same case set.

## Business value [#business-value]

<SectionVisual
  title="Compare verified value with full delivery cost"
  caption="A credible value case starts from a baseline and includes errors, supervision and displacement effects."
  layout="flow"
  items="[
  { label: &#x22;Baseline&#x22;, detail: &#x22;Measure the current process, demand, quality, delay and cost.&#x22;, output: &#x22;Counterfactual&#x22; },
  { label: &#x22;Outcome&#x22;, detail: &#x22;Verify the changed business result for affected users.&#x22;, output: &#x22;Benefit&#x22; },
  { label: &#x22;Full cost&#x22;, detail: &#x22;Include delivery, operation, compute, review and correction.&#x22;, output: &#x22;Net effect&#x22; },
  { label: &#x22;Decision&#x22;, detail: &#x22;Scale, change, constrain or stop based on evidence.&#x22;, output: &#x22;Investment action&#x22; }
]"
/>

Use the common [cost per resolved outcome](/use-cases/value-and-investment). Include failed and retried attempts, supervision labour and the cost of correcting wrong outcomes. Report resolution quality, serious errors and delayed harm alongside the average.

Segment results where effects differ. An overall improvement can conceal poorer outcomes for a customer group, region or complex case type. State what would have happened without the change and identify benefits that merely move work to another team. Reconcile financial claims with operational evidence rather than multiplying estimated minutes saved by every transaction.

## Improvement path [#improvement-path]

<SectionVisual
  title="Improve through controlled comparison"
  caption="Change one important constraint, compare the result and preserve what was learned."
  layout="loop"
  items="[
  { label: &#x22;Find constraint&#x22;, detail: &#x22;Use balanced measures and case evidence to identify the limiting condition.&#x22;, output: &#x22;Problem statement&#x22; },
  { label: &#x22;Form hypothesis&#x22;, detail: &#x22;Predict which design, control or process change will improve it.&#x22;, output: &#x22;Expected effect&#x22; },
  { label: &#x22;Compare&#x22;, detail: &#x22;Run the change on a bounded cohort against a stable baseline.&#x22;, output: &#x22;Measured difference&#x22; },
  { label: &#x22;Standardize&#x22;, detail: &#x22;Adopt, revise or reverse the change and update reusable knowledge.&#x22;, output: &#x22;New operating baseline&#x22; }
]"
/>

Improve the weakest constraint rather than chasing a composite score. A Factory can be fast and unsafe, highly governed and unusably slow, or efficient while solving the wrong work. Track the measures by delivery profile and compare changes against a stable baseline.

Assign an owner, review frequency, source and decision use to every retained measure. Remove measures that never change a decision. When a measure becomes a target, inspect for gaming and counter-metrics. For example, pair faster approval time with reversal rate and serious misses.

Use the [learning flywheel](/architecture/learning-flywheel) for agent behaviour and the [ADM change phase](/transform/govern-and-change) for material architecture or portfolio change.

**Next step:** return to the [Factory overview](/factory) or apply a [delivery profile](/factory/profiles) to an approved increment.
