Measure and improve the Software Factory
A balanced set of flow, quality, assurance, reliability, context, supervision and value measures for the Factory.
The Factory succeeds when it produces safe, useful change repeatedly. Code volume, model-call count and agent autonomy are not outcome measures.
Visual map
Evidence becomes guidance through a controlled path
Questions lead to dated sources and reproducible tests. Results change advice only when their limits are explicit.
- 1Question
State the decision and the uncertainty.
- 2Sources
Prefer primary, dated and attributable evidence.
- 3Test
Use a matched control and recorded method.
- 4Result
Publish measurements, failures and limitations.
- 5Guidance
Update the recommendation and its discriminator.
- 6Re-verify
Check volatile facts and changed conditions.
Flow
Concept explained
Measure elapsed work, queues and recovery
Fast coding can coexist with slow delivery when work waits for decisions, environments or evidence.
- 1Demand
A bounded outcome enters the intake queue.
Output: Arrival time
- 2Ready
Specification, dependencies and authority become sufficient for delivery.
Output: Ready time
- 3Released
The change reaches its intended users under approved controls.
Output: Lead time
- 4Recovered
A failed change is contained and service is restored.
Output: Recovery time
- 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
Concept explained
Connect quality evidence to the behaviours that matter
Counts become useful when they identify what escaped, why it escaped and which control changes next.
- 1Specify
Define acceptance, prohibited behaviour and risk-based assurance depth.
Output: Testable intent
- 2Verify
Run deterministic tests, evaluations and independent checks.
Output: Evidence
- 3Observe
Capture defects, wrong outcomes, regressions and expired exceptions.
Output: Failure pattern
- 4Improve
Change cases, controls or design and prove the effect.
Output: Reduced recurrence
- 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
Concept explained
Reliability follows the business outcome
Technical availability matters, but an available agent that completes the wrong task is not reliable.
- 1Attempt
A request is accepted with a defined service objective.
Output: Work started
- 2Act
The system reasons, calls tools and applies controls.
Output: Observable execution
- 3Resolve
The intended business state is reached once and correctly.
Output: Verified outcome
- 4Correct
Failures are contained, reconciled and learned from.
Output: Recovery evidence
- 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
Concept explained
Human oversight is a capacity system
Design for ordinary load, burst demand and the cognitive quality of the decision.
- 1Escalate
Route only cases that need human judgement with sufficient context.
Output: Qualified queue
- 2Decide
Present alternatives, evidence, uncertainty and consequence clearly.
Output: Accountable decision
- 3Act
Apply the decision once and return the result to the workflow.
Output: Resolved case
- 4Learn
Use repeated exceptions to improve policy, design or training.
Output: Lower avoidable load
- 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
Concept explained
Account for the whole context envelope
The useful denominator is a resolved outcome, including discovery, retries and supporting services.
- 1Discover
Load system rules, skill descriptions and routing metadata.
Output: Discovery cost
- 2Activate
Load selected instructions, references, schemas and working memory.
Output: Active context
- 3Execute
Use model calls, tools, retrieval, storage and retries.
Output: Run cost
- 4Resolve
Include supervision, correction and failed attempts.
Output: Cost per outcome
- 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
Concept explained
Compare verified value with full delivery cost
A credible value case starts from a baseline and includes errors, supervision and displacement effects.
- 1Baseline
Measure the current process, demand, quality, delay and cost.
Output: Counterfactual
- 2Outcome
Verify the changed business result for affected users.
Output: Benefit
- 3Full cost
Include delivery, operation, compute, review and correction.
Output: Net effect
- 4Decision
Scale, change, constrain or stop based on evidence.
Output: Investment action
Use the common cost per resolved outcome. 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
Concept explained
Improve through controlled comparison
Change one important constraint, compare the result and preserve what was learned.
- 1Find constraint
Use balanced measures and case evidence to identify the limiting condition.
Output: Problem statement
- 2Form hypothesis
Predict which design, control or process change will improve it.
Output: Expected effect
- 3Compare
Run the change on a bounded cohort against a stable baseline.
Output: Measured difference
- 4Standardize
Adopt, revise or reverse the change and update reusable knowledge.
Output: New operating baseline
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 for agent behaviour and the ADM change phase for material architecture or portfolio change.
Next step: return to the Factory overview or apply a delivery profile to an approved increment.
Cite this page
Written by Murali Sid, Founder and AI Systems Architect, last updated 2 November 2026. Licensed CC BY-SA 4.0, so quote it freely with attribution.
Murali Sid (2026). Measure and improve the Software Factory. Agentic Architecture Skills. https://www.agenticarchitectureskills.com/factory/measurementMachine-readable version of this page: /factory/measurement.md
Skills, plugins and prompt governance
Treat agent instructions and tools as governed dependencies, with selective loading, token budgets, permission boundaries and measurable routing quality.
Operate: the weekly loop
The four checks to run every week once an agent is live, the measures the weekly review reads, and the gate before the agent may do more.