01
Model access & selection
Choose model access, model and version, routing and configuration to fit the task. Record those choices alongside outcomes and test alternatives; this does not require operating model serving infrastructure.
Agentic engineering
Build. Run. Observe. Improve.
11factor is my framework for engineering with AI agents and building reliable agent-based systems. Build, Run, Observe and Improve connect the task to its execution, evidence and next change. Human control, permissions and version lineage apply throughout.
These are engineering recommendations, not runtime guarantees. The learning mechanisms below describe a research direction; I have not demonstrated the full end-to-end learning loop.
01
Choose model access, model and version, routing and configuration to fit the task. Record those choices alongside outcomes and test alternatives; this does not require operating model serving infrastructure.
02
Select and assemble the active context for each attempt. Version policies for choosing sources, truncating and refreshing information, and test whether the selected context helps the task rather than assuming more is better.
03
Define what persists between attempts, with provenance, scope and retention rules. Make stored memory correctable and deletable; distinguish observations from inferred lessons and evaluate retrieval before expanding reuse.
04
Give tools and data access protocol-agnostic contracts with explicit inputs, outputs, permissions, failure modes and side effects. Test these boundaries. MCP is one example, not mandatory; the same controls apply through other protocols.
05
Preserve durable execution state, checkpoints and explicit handoffs. Account for repeated side effects when retrying or resuming work, and make completion and stop conditions inspectable across workers and interruptions.
07
Bound time, cost, concurrency and retries for each task and learning attempt. Measure quality alongside resource use. Reliability is a whole-system outcome, not a property guaranteed by this factor or by a larger budget.
08
Connect traces to outcomes, versions and evaluation criteria. Traces explain what happened; outcome judgement asks whether the work met its goals. Use independent checks and keep uncertainty visible rather than accepting an agent’s self-score.
09
Agent self-learning turns experience into candidate lessons and proposed changes. Recursive improvement proposes changes to the learning process itself. Both require independent comparisons, authorised promotion and later outcome evidence, without guaranteed gains.
Two nested mechanisms inside Improve: a framework and research direction, not implemented software. Reflection and a self-score are not independent evidence. Model weight training is not required. Permissions remain independently governed. There is no guarantee of continuous gains.
Select relevant outcome evidence, traces and human corrections from bounded real work.
Extract a candidate lesson with scope and uncertainty; it is not automatically trusted knowledge.
Propose a skill, context selection, memory policy, tool use, workflow or model behaviour change, with a falsifiable expected benefit.
Use independent evidence to compare the candidate with the baseline on criteria fixed for the comparison.
Only an authorised decision may promote a gate-passing candidate to a bounded canary; monitor and rollback when criteria fail.
Feed later outcomes back into learning, including evidence that challenges an earlier lesson.
Agents may propose changes to how they select experience, extract lessons or generate candidate updates. Compare the revised learning process against the previous learning process on held-out tasks, with criteria fixed for the comparison. Merely repeating reflection is iteration, not evidence of improved learning machinery. A revised process must pass the same promotion gate; later outcomes can challenge both its lessons and the process that produced them.
These controls apply throughout the cycle, including both learning mechanisms.
06
Provide human approval, intervention and takeover throughout Build, Run, Observe and Improve. Give people the context to decide, and capture corrections as scoped evidence rather than unquestionable rules for every future task.
10
Keep authority externally enforced and separate from optimisation. Permissions, approval requirements and safety boundaries must constrain every stage; an agent cannot grant itself access or weaken controls to make a candidate pass.
11
Preserve version lineage from evidence to lesson, candidate, tests and promotion decision. Record enough context to investigate results and maintain a tested rollback path. Auditability does not promise exact stochastic replay.
A proposal for discussing how much change a system may make, not a claim that I operate any of these levels. More autonomy is not necessarily the right goal for every task.
Capture work and outcomes without changing behaviour.
Suggest evidence-linked changes for human review.
Run candidate tests automatically; keep promotion a separate decision.
Trial gate-passing changes within approved limits, with monitoring and rollback.
Allow changes only within independently governed permissions and defined promotion criteria.