# 32.7 When each foundation fits (/affordable-self-improving-ai-workers/choosing-the-foundation/when-each-fits)

---
type: Document
title: "32.7 When each foundation fits"
description: "Four questions that choose a foundation for a worker, where the data may go, and ten rules for depending on a small open-source team."
status: stable
order: 432.07
ksor:
  owner: team:panaversity
  audience: [ public ]
  approval:
    by: process:panaversity
    at: 2026-11-30T08:18:55Z
chapter: "32"
part: IV
expert_status: manager
concepts: [ "32.7" ]
last_verified: 2026-11-29
generated:
  at: 2026-11-30T08:18:55Z
  by: human:zia
trust_tier: unverified
build_id: sha256:d6ce3f28a2cf8e492a60bae1b426b7cc6466e35e83d70c3b9763db2c55009f4b
dirty: true
ksor_version: 0.0.60
---

**In everyday life.** A family with one car rents a parking space. A company with two hundred delivery vans builds its own depot. Both are right, for their size.

**What you will learn.** Four questions that decide the foundation for one worker, why data rules can decide for you, and how to manage the risk of a small upstream team.

**Why it matters.** "Which foundation is best?" has no answer. "Which foundation is best for *this* worker, for *this* client?" does.

### Four questions

**1. How much would model choice save?** Price the worker as in [32.4](price-your-own-worker.md), against the cost-tuned Claude setup, not the default one. If the saving is a few dollars a month and you run five workers, stay on Claude Managed Agents. If you run hundreds, the open stack starts to pay for its engineering.

**2. Does the quality hold on cheaper models?** Run your golden set on each candidate model. A cheaper model that gets more work rejected costs more in review than it saves in tokens. Many teams end with a **hybrid**: economy models for routine steps, Claude for hard cases.

**3. Where may the data go?** This question can decide for you. The economy models in the paper's example run in other countries: Qwen in Alibaba Cloud's Singapore region, DeepSeek through its own service. A client's contracts or regulator may forbid sending supplier and payment data there. Then you route by the kind of data:

| Kind of data | Where it may go |
| --- | --- |
| Public or made-up | Any tested model, including the cheapest |
| The client's business data | Only providers in the client's data agreement |
| Regulated or restricted | Only approved regions, such as Claude with US-only inference or a model hosted in an approved cloud |

And the model is only one place data goes. The transcripts in Durable Objects, the database, the logs and the gateway all hold data too, and each needs an answer.

**4. How much do you want to run yourself?** Claude Managed Agents runs the platform for you. An open stack makes you the operator: you deploy it, watch it, update it and fix it at night. A team without that skill should not take it on for a few dollars a month.

### When each fits

- **Claude Managed Agents fits** a pilot or a small number of workers. It fits work where Claude's quality is the whole point, a client who requires Anthropic, and a team that does not want to run infrastructure.
- **An open stack fits** many workers, routine work that cheaper models do well, a team that can run a platform, and a business whose margin depends on the model bill.
- **Both can be true in one firm.** Start a new kind of worker on Claude Managed Agents. Move it to the open stack once you know its workload and its golden set. Your professional layer, the memory, rules and tests, should be written so it can move with it.

### Depending on a small team

Pi is owned and developed by Earendil, a small company. A small team decides fast and knows its code well. It also means few people hold the knowledge. The paper sets ten rules for depending on any open-source harness. Use them as a checklist:

1. Pin the versions you run, and test them before you upgrade.
2. Keep builds you can reproduce, and a copy of the source you approved.
3. Watch the project's design and licence decisions.
4. Learn how the harness works inside.
5. Send fixes back to the project where you can.
6. Keep your worker's knowledge outside the harness, in your own stores.
7. Put a thin layer of your own code between your worker and the harness.
8. Write down how you would patch, fork or move away in an emergency.
9. Look at other harnesses from time to time.
10. Watch whether the project keeps its contributors.

Rules 6 and 7 matter most. Keep your memory, rules and tests as your own, and let your worker talk to the harness through a small layer of your own. Then you can change the harness later without rebuilding the worker.

> **The invariant.** Choose the foundation per worker, from its cost, its quality, its data rules and your team. Keep the professional layer portable, so the choice can change.

**Check yourself.** A client's contract says supplier data must stay in the United States. Can Brightline send routine invoice reading to the economy models in the paper's example? *(No. It must route that data to an approved provider in the United States, even if it costs more.)*
