What it builds
B.O.S.S.

How does it keep the build from breaking quietly?

Done is written down before the AI starts, guards watch while it writes, a smoke check you name runs before it stops, and it ships somewhere you can undo.

Studio and up· guards in Claude Code and Codex
▸what goes wrong

AI-written code breaks in quiet ways

Nothing crashes. Each one looks fine on screen, which is why nobody notices. Each one links to where it's caught.

▸a change's path

Most of it runs without you asking

  1. Spec/specwhat "done" means, and the three paths that must not break
  2. The AI writescoderguards check each write: a loosened test, an open table, a wrong-way import
  3. Turn endssmokeyour smoke check, once named, runs on its own; red goes back to the AI, once
  4. Commitgit commita key in the change stops the commit
  5. Ship/shipa pre-flight for secrets in the client and access rules
  6. Livea live check, who hears when it's down, and a rollback

The spec and the ship are the two you start.

▸done, written first

The AI starts from a finish line

FEAT-012 · Split a bill

GoalTwo people can split one bill, and each sees what they owe.

Done wheneach share adds up to the total · a share can be marked paid

Smokenpm run smoke opens the bill page

Must not break
  • Moneytested for real, not against mocks
  • Can't undoa test, and a person signs off
  • Who must not get inA can't read B's bill

Anything you can't say in one sentence, or that touches money, deletes something or changes who sees what, gets a spec first. Anything else, you just build. For software, a pre-ship pass tries each of the three paths for real before launch.

Studio and up
▸caught as it's written

Guards speak up the moment the AI slips

the AI edits a testcart.test.ts
- expect(total).toBe(42)
while cart.ts also changed

asked whyan assertion removed · a bug fix adds a test
assertion back, cart.ts fixed

the AI writes a migrationCREATE TABLE orders (…);

flagged in the same filerow-level security never enabled: orders
ALTER TABLE orders ENABLE ROW LEVEL SECURITY;

the AI ends its turn"All done, the bill page works."
✗ smoke

handed back, oncefix it, or say why red is expected
✓ smoke

They name the problem and the usual fix for the AI to act on. Only the smoke check hands work back, and only once; the rest never block a write. The import guard and the design guards are on Design.

Studio and up· for software
▸secrets

Walls between your keys, the AI and git history

the AI .env deny listfrom the Office stricter guardif you turn it on a commit git history commit check · from the Office

you commitsrc/pay.js gains a live key

the commit stopsBOSS stopped this commit: it would put a secret into git history.
src/pay.js:12 (the key is never printed)
read it from the environment instead

The deny list and the commit check come with the Office; the stricter guard is yours to switch on. They catch the common cases, not every one: the commit check knows the usual key shapes, and a commit can skip it on purpose.

Office and up
▸when the product is the AI

"It works" isn't a thing you can say about a model

  • Is it alive?/smokethe page opens, the endpoint answers
  • Is it right?/evalscases from your own data, each run several times; it counts only if every run passes
  • Can it be broken?/red-teamthe known attacks, tried, and a record of what held
  • Garbage{"total": "lots"reject, retry once
  • Refusal"I can't help with that."a fallback or a person
  • Made upa citation that doesn't exista check step
  • Timeout⟳ 30s…a hard limit, the last good result
  • Cost spike$0.02 → $1.80 a callheld to the budget

A smoke check proves the AI answered, not that it answered well, so each failure gets its answer before a user meets it. A per-call ledger keeps the bill a decision rather than a surprise.

The skills behind it
/spec: decide what's AI-mediated, on purposeFor each feature that calls a model, write down which steps need it and which stay plain code, and give the output a schema.
/evals: "is it correct?" beside /smoke's "is it alive?"An eval set per AI-mediated feature, built from your own data, starting from what's already failed, or the feature's criteria if nothing has. Evals-as-spec, after Hamel Husain and Shreya Shankar.
/judge-traces: error analysis on what actually happenedReads the real trace log and sorts the failures into a binary pass/fail taxonomy, not a vibes rating.
/ai-cost: the invoice is a product decisionPer-user and per-feature budgets and a per-call ledger, read back as a dated review.

None of these pin a model name. They pin the discipline, which outlives the model.

Studio and up· for software
▸ship it, undoably

Somewhere real, and always a way back

v1live ✓ v2last good v3live check ✗ /ship --rollback migration ranstays as it is Rollback restores the app, not the database.

It picks the cheapest host you can undo, checks the live address answers, names who hears when it's down, and says the one step that puts the last good build back.

Office and up· any project
▸where it lives

What you get, and on which floor

Office and upThe secrets deny list and commit check, and a way to ship with a rollback.

Studio and upSpecs; for software, a tester, the checks and the 9 guards, on from the moment you enter.

Not software?The spec becomes a run-of-show or a costed plan, and the ship still comes; the code checks and guards wait.

Get it: go straight to the Studio
boss adopt --floor studio --apply
See which guards are on, and turn one on or off
boss hooks
  • /spec
  • coder
  • tester
  • /smoke
  • /evals
  • /red-team
  • /ai-failure-states
  • /ai-cost
  • /judge-traces
  • /ship
  • build guards

Why it's built this way: the positions behind it, each with who it was learned from.

▸run a backlog

Ready records, built while you're away

boss run is a beta. You choose what it builds, and you read every branch before it lands.

  1. Mark itrun: yesbeside status: ready, committed on main; only you set either one
  2. Read the plan--dry-runthe queue, what's left out and why, how it signs in, the most it can cost
  3. Pre-flightboss runthe way to the API and the power, then your project's own check on main; red there and nothing runs
  4. Each recordrun/<id>a fresh copy inside macOS's sandbox, a dollar, turn and time cap; your check says green, not the agent
  5. The report.boss/run/green, red, asked or unjudged for each, and what to look at first
  6. You mergenothing lands on its own

The agent works in a copy, reaches nothing on the network but the API, and its branch comes back only after a scan for your sign-in token. A red record stops only itself. What would sink every record, a red check on main or no way to the API, stops the run at once with one line and the command to check it.

What makes a record ready

boss board <ID> lists what a record is short of, never a score. It never marks a record ready; you do, once the list is empty. The run reads the same list and leaves out any record short of something.

  • Every criterion says how it's checked: a test's title, a command, or what to look at.
  • No open questions, and nothing it's waiting on.
  • What's out of the agent's authority, written down. One line is enough.
  • The files it touches, and any record it depends on; one still being built waits.
  • Money, deletion and access said in a line. Money and deletion keep a record out; access only with a test named for it.
  • Nothing it touches has changed since you wrote it.

Two more the list can't read for you: what must always hold, written in the spec so the agent can break it on purpose and see its test go red; and small enough to see working in one run.

What it needs, and what's left

A Mac, for now: it builds inside macOS's own sandbox. It signs in with your Claude login first (claude setup-token makes the token), or an API key in your environment, which bills per call; the dry run says which.

It starts at two records a run and $5 each; the runs block in .boss/config.json changes either. Give the first run two small records you could check by hand, and raise the limits once a few reports come back with nothing to fix.

Left: other systems than macOS. A branch that changes a dependency comes back unjudged, since nothing can be installed inside the sandbox, and the report says so. Its own tests can still keep a promise only in part, so read the test diff hardest.

See what would run, and the most it can cost
boss run --dry-run

The whole practice: Running a backlog in library/practices/automation.md.

▸why it's built this way

Why it's built this way

BOSS ships opinions about building with agents, and you should be able to interrogate them before you install anything. Each is stated in one line; open it for the reasoning. Who each was learned from, when it was last checked and how fast its ground moves is in the table further down.

None of it is welded to BOSS. Every practice here is a plain MIT-licensed Markdown file in library/practices/, shipped in the npm package: readable, forkable, and arguable without installing the tool.

The calls

The harness is the architecture

For long-running agent work, the thing that determines whether it succeeds isn't the prompt. It's the agent-computer interface: what tools exist, what they return, how failure is surfaced, what gets verified. BOSS treats harness design as an architecture decision with an owner, not as prompt-tuning.

Verifiability decides what to automate

Work whose output can be checked automates well; work that can't be checked doesn't, no matter how good the demo looks. That line, not model capability, is how BOSS decides where an agent belongs and where a human stays in the loop.

Capability shapes, never model names

BOSS pins no model name anywhere it ships. It routes by shape (cheap and mechanical, deliberate and hard, fast and interactive) so a new model release doesn't rot anything. A new tier that changes what "cheap" means is what triggers a re-look.

Green is not the same as right

The failure mode that matters with coding agents: they rewrite assertions to match broken behaviour. So a weakened assertion is a red flag even when the suite passes, and assertion churn with no change to acceptance criteria is the loudest signal on a diff.

Most teams should not build RAG yet

The practice's whole value is telling you what not to build. Long context has eaten a lot of what retrieval used to be for; recall@k comes before anything clever; and context rot is real, so more stuffed context is not linearly better.

CLAUDE.md and AGENTS.md do different jobs

The split is not cosmetic. Host-neutral rules, how this repo is built, tested and shipped, belong in AGENTS.md, where any agent can read them. CLAUDE.md is for what's genuinely Claude-specific. Steering neutral rules into the Claude-only file is the common mistake, and it quietly locks your project to one host.

Both stay short. A context file that has grown past a screen isn't documentation; it's budget you're spending on every single turn.

A skill is a trigger before it's instructions

Most skills that don't work aren't badly written; they're never invoked. The description is the load-bearing part: it decides whether the model reaches for the skill at the right moment. Name the trigger phrases explicitly, keep one skill to one job, and put the judgment in the skill rather than expecting the caller to supply it.

Rent the runner, own the decision

Most solo "automation" is a cron job, and the categories most advice starts from are a step too high. So it's a four-step ladder climbed upward, and the rule at every step is the same host-seam rule: don't author what the host already runs. Rent the execution; keep the judgment.

Three questions before anything runs unattended: what breaks if it runs wrong at 3am, who finds out, and how do you turn it off? If those don't have answers, it isn't ready to be unattended; it's ready to be a command you run.

Ready records, built while you're away is the one BOSS runs itself.

Docs have two readers now

One is your user. The other is the model working in your repo, and it reads differently: it needs structure, canonical paths and unambiguous naming more than it needs prose. Writing for only one of them is why AI-built projects end up with docs that are simultaneously too long for a human and useless to an agent.

Agent security is its own discipline

Not web security with a chatbot on top. The lethal trifecta (private data, untrusted content, and a way to exfiltrate) is the shape to design against, and classifiers are non-deterministic, so they are mitigation and never a boundary.

The ones that change what you'd actually do

The bug that is invisible from inside your own product

The most common way an AI-built app leaks its users' data is a schema the model generated correctly and secured not at all: row-level security never configured. And the reason it survives every test you'd think to write is that the app works. Logged in as yourself, every screen is correct.

RLS-off is not a functional defect. It's a missing security property, so no happy-path test, no amount of clicking, and no screenshot will ever show it. The agent isn't confused, either: ask and it will explain RLS correctly. It simply doesn't apply it unless told. That's why BOSS treats schema as a threat topic rather than a craft one, and why the spec asks up front who must not be able to see a thing.

Sourced to the AI app-builder RLS class (CVE-2025-48757, rated critical, and disputed by the vendor, which the practice says out loud rather than quietly dropping).

Read the test diff harder than the code diff

When writing code was expensive, tests protected work you'd already paid for. When generating code is nearly free, verification is the only scarce thing left. The suite stops being insurance and becomes the bottleneck.

Which produces one concrete review rule: a test file that changed in the same commit as the code it tests is the highest-signal thing in the whole diff. Not automatically wrong (an intentional behaviour change should move its test) but never routine, and the one thing that must never be skimmed. The fix is where the test comes from: write the acceptance criteria, or the failing test, from the spec, before.

And for a path a model decides: run it k times and require all k to pass. One green run against a non-deterministic system is a coin that landed your way.

Documented conventions rot. Enforced conventions compound.

An agent re-derives your codebase's conventions from scratch every session. That single fact reorganises architecture work: anything you only wrote down drifts, and anything you encoded as a check compounds. It's the difference between a convention and a gate, and with an agent in the loop the gap widens weekly rather than yearly.

So the advice is two moves, not one. Defer the architecture costs you can defer: modular monolith first, extract when a real constraint forces it, where the modular half is the load-bearing word. And spend the rigor on the one-way doors, of which the schema is the obvious one: migrations as code from day one, versioned and replayable.

And BOSS held this as a rule with no runner for about 130 releases — the exact failure it quotes. The design layer got six hooks; the code's own gate got none until smoke-guard: a Stop hook, on from the Studio, that runs the smoke /smoke recorded (and the strict typecheck it folds in) when your AI finishes a turn that touched source (this check runs in Claude Code), reports green in one line, and hands red back as a reason to keep going — once, never twice on the same failure. The Thoughtworks Radar (vol 34, April 2026) names the shape feedback sensors for coding agents and puts it at Trial: deterministic gates “wired into agentic workflows so that failures trigger timely self-correction … before a commit is made.”

A number that can only move one way

Codebases don't decay in a bad commit. They accumulate anys, TODOs, skipped tests, untyped boundaries and bundle bytes one reasonable-looking change at a time: no single diff looks bad, and the trend is the damage.

A ratchet turns the trend into a gate: pick one number, write it down, let it move only in the direction you want. And the honest limit ships with it: don't ratchet something that punishes legitimate growth, or a number that can be gamed. A metric that makes the right change look wrong gets bypassed, and a bypassed gate is worse than none.

Ask whether AI is helping by what shipped, not by the clock

Anyone building with AI gets asked whether it's helping, and the easy answers mislead. Time saved is a feeling: in one trial of 16 experienced developers, they believed AI had made them about 20% faster, and the clock said 19% slower. The speed figure is out of date now; the finding that they misjudged their own speed wasn't re-tested, and stands. Usage is a cost, not a score: rank people on it and they perform it (BOSS's reading, not a study).

So /ai-cost review asks for your own line first, then counts what's already on disk: what shipped, what came back (a revert, a feature reopened), and what the agents that built it spent for each thing that held. AI adoption has gone with more throughput and less stability, so both halves are read. Held means nothing came back, not that anyone wanted it. boss outcome draws it as a page with an update ready to send to your team or an investor; Kettlewick's is in the demo.

Never per person, never your prompts. When a second person joins, everyone reads the same work. Build spend comes from each person's own machine, so the read holds no team total and no view by person.

The trial is METR's (2025, with its 2026 follow-up); the throughput and stability finding is DORA's 2025 survey. boss craft ai-adoption-culture has the team half, and what the law adds once someone works for you.

▸where it lands

You never have to read any of this

The practices aren't a library you're expected to study. Each one is distilled into the prompt of the agent whose job it is, or named by the lens that asks about it, so the knowledge is already in the room when the work happens, not sitting in a file you'd have to remember to open.

the practice shelf attributed · dated · versioned your code, your screens, your schema boss craft <name> read the source yourself — optional the agents that do the work carry it distilled, in their prompts distilled into applied while
You never have to read the shelf. The practice is distilled into the prompt of the agent whose job it is, so architect already knows about row-level security and tester already knows that agents rewrite assertions to match broken behaviour. boss craft <name> is there if you want the full reasoning.

what each builder and lens already knows

Builder or lensAlready carries
architect agent-security automation data-schema engineering-system feature-flags git-workflow harness-engineering mcp model-routing retrieval scalable-architecture ship-it-live
product-lead context-discipline documentation helm outside-claims prompting quality-ratchet research revalidation seed-to-scale skill-authoring what-to-build
designer accessibility ai-ux-patterns dark-patterns design-system done
tester testing-with-agents
lens-worth asked with /consult worth analytics-for-ai-products founder-role-shifts measuring-by-promise
lens-harm asked with /consult harm conscience-voicing harm-taxonomy six-questions
lens-alive asked with /consult alive first-dollar monetization-in-practice retention
lens-reach asked with /consult reach activation landing-page
lens-together asked with /consult together ai-adoption-culture

Every one of these has a receipt.

26 technical practices, each carrying who it was learned from, the date it was last checked against reality, and the curve that says how fast its ground moves. The table below is generated from those files, attribution that has to be retyped is attribution that goes stale.

▸attribution

Building with agents

The harness, the context window, what gets written down — and what stays deterministic.

Harness engineering (design the thing around the model, not just the prompt)

harness-engineering, owned by architect, on a model-moving curve; last checked 2026-09-23.

learned from Anthropic engineering Dex Horthy — 12-factor agents Andrej Karpathy — the verifiability thesis The spec-driven toolkits (a code host's and a cloud vendor's) An open-source idea-to-MVP agent pipeline — its system-evolution ADRs Quantifying Overclaiming Propensity in Frontier LLM Agents (OverclaimBench, arXiv 2609.20812)

where this came from

Distilled from Anthropic's engineering writing on harnesses for long-running agents, scaling managed agents, and the Agent-Computer Interface; Dex Horthy's 12-factor agents; Karpathy's verifiability thesis; and the spec-driven-development lineage (a code host's spec toolkit and a cloud vendor's spec-first IDE). Two independent research threads named the harness as the biggest gap in how BOSS was building.

The engineering system: the design system's ladder, for code

engineering-system, owned by architect, on a craft-ai-moving curve; last checked 2026-11-14.

learned from David Parnas — On the Criteria To Be Used in Decomposing Systems into Modules (1972) John Ousterhout — A Philosophy of Software Design Sandi Metz — The Wrong Abstraction (2016) Martin Fowler Kent Beck Software Engineering at Google (Winters, Manshreck, Wright) Peter Norvig — Design Patterns in Dynamic Languages (1996) Eric Evans — Domain-Driven Design Alexis King — Parse, don't validate (2019) Birgitta Böckeler — Sensors for coding agents (2026) Alonso, Yovine & Braberman — TDAD (arXiv 2603.17973) Han et al. — TDFlow (arXiv 2510.23761) Chen et al. — Rethinking the Value of Agent-Generated Tests (arXiv 2602.07900) Böckeler — TDD inside the agent loop (martinfowler.com, 2026)

where this came from

Extracted from how BOSS's own code is actually built — its conventions read from the source with receipts, its broken rules counted — and from five research passes read at source and checked claim by claim. Lineage — David Parnas (hide the decision most likely to change, 1972), John Ousterhout (deep modules), Sandi Metz (duplication is cheaper than the wrong abstraction), Don Roberts' rule of three as popularised by Martin Fowler, Kent Beck (simple design; structure and behaviour in separate changes), Google's software engineering book (the four kinds of change; rules cost what must be remembered), Peter Norvig (patterns the language absorbs), Eric Evans (one language per context), Alexis King (parse, don't validate), Birgitta Böckeler (guides and sensors for coding agents; test-first inside the agent loop). On test-first with agents: Alonso, Yovine and Braberman (TDAD, 2026), Han et al. (TDFlow, 2026), Chen et al. (on agent-written tests, 2026).

Context discipline

context-discipline, owned by product-lead, on a host-moving curve; last checked 2026-11-14.

learned from Rule Taxonomy and Evolution in AI IDEs (Cai, Li, Liang, Li, Shahin — arXiv 2606.12231)

where this came from

Vetted against BOSS's principles rather than adopted on popularity. The AGENTS.md / CLAUDE.md split is re-verified against the host's own memory documentation each time this is swept — that ground moves with the host, not with us, and the practice had once gone silent about a scaffold BOSS itself shipped.

Documentation for a project built with AI

documentation, owned by product-lead, on a craft-ai-moving curve; last checked 2026-09-10.

learned from Michael Nygard — Documenting Architecture Decisions Marty Cagan (SVPG) Anthropic engineering Hartwig Grabowski — Spec Growth Engine

where this came from

Consolidated from BOSS's own shipped capture discipline: seven artifacts spread across eight skills and no practice, so nothing could refresh, cite, or hold them to a standard. Externally grounded in Anthropic's Effective context engineering for AI agents (compaction, structured note-taking, JIT retrieval), Hartwig Grabowski's Spec Growth Engine (arXiv 2606.27045, June 2026 — spec-anchored, code-coupled, drift-enforced), and Marty Cagan's Discovery vs. Documentation. The formatting layer is new and unvetted by anyone outside BOSS; the llms.txt adoption claim is the fastest-moving thing in the doc and is caveated in the text.

Skill authoring, or writing skills the model actually triggers and follows

skill-authoring, owned by product-lead, on a host-moving curve; last checked 2026-11-14.

learned from Anthropic — the Agent Skills spec and template

where this came from

Adapted from Anthropic's own skill-creator skill — the wisdom, not the harness. The with/without comparison is the host's own now; see "Measuring a change".

Prompting (asking well)

prompting, owned by product-lead, on a craft-ai-moving curve; last checked 2026-10-31.

learned from Andrej Karpathy — the verifiability thesis Ethan Mollick Simon Willison Jason Liu — systematically improving RAG Hamel Husain + Shreya Shankar Rob Fitzpatrick

where this came from

The prompting craft BOSS used to ship as an agent, moved to a practice any AI tool can read and brought current for today's models and coding agents.

Route by capability, never by model name

model-routing, owned by architect, on a craft-moving curve; last checked 2026-09-23.

source BOSS’s own practice, extracted from its build, not from outside

where this came from

Extracted from a real mistake. BOSS pinned a model alias in eight shipped agent files and hardcoded model ids and per-token prices. Within four weeks the pin was stale, the prices were unverifiable, and nobody could confirm the alias even resolved in a founder's install. Root cause is BOSS's own PRINCIPLE #3 — a model name buried in an agent file is locked into code; the reusable thing is the intent, which is stable, not the name, which is not.

Automation (rent the runner, own the decision)

automation, owned by architect, on a craft-ai-moving curve; last checked 2026-08-20.

source BOSS’s own practice, extracted from its build, not from outside

where this came from

Written to close a coverage gap: BOSS had been shipping the load-bearing line — the hardest line to fill honestly is what stays deterministic — with no practice behind it. The four-rung ladder deliberately starts one rung lower than the usual categories, because most founder "automation" is a cron job. The vendor tier follows PRINCIPLE #4: name the rung, never the stack.

The helm (one chat runs the program, the pieces build elsewhere)

helm, owned by product-lead, on a craft-moving curve; last checked 2026-11-12.

source BOSS’s own practice, extracted from its build, not from outside

where this came from

BOSS's own practice, extracted from its build. Three of its own programs were run this way, each from one chat while the pieces were built in other windows, and the prompt was copied by hand from one to the next until it got a home of its own.

Security

The failure modes specific to agentic systems, and the ones AI-written code introduces.

Agent security (a deterministic guard around a non-deterministic model)

agent-security, owned by architect, on a threat-moving curve; last checked 2026-11-13.

learned from Simon Willison Meta AI — Agents Rule of Two OWASP — LLM Top 10 (2026) + Top 10 for Agentic Applications Veracode (2026 GenAI Code Security reports) Security Degradation in Iterative AI Code Generation (arXiv 2506.11022) Anthropic containment + Redwood control

where this came from

Distilled from Simon Willison's agentic-security writing (the lethal trifecta; classifiers are non-deterministic) and Meta AI's "Agents Rule of Two", which builds on the trifecta, then hardened against the 2026 agent-native surface: OWASP's Agentic ASI Top 10, agentic misalignment, Anthropic containment and Redwood control, insecure AI-generated code and client-side key exposure, MCP confused-deputy and token-passthrough, tool-layer memory poisoning, AI-code iteration degradation, and Veracode's 2026 code-security measurements, a study of iterative AI code generation (Shukla, Joshi and Syed). UI dark patterns are treated here as an injection surface, not only an ethics problem, and a poisoned tool description is goal-hijack rather than supply-chain. Swept in November 2026 for what a model user can't see: backdoored models, instructions planted in an agent's memory files, malicious skills (against OWASP's Agentic Skills Top 10), cleaning up after a trojanized install, adaptive attacks on prompt-injection defenses, repo files that run code, and a spending cap that stops the run. It also covers the accounts a project lives on: phishing-resistant two-factor, short-lived tokens, a spend cap the provider enforces, and recovery that survives a lost phone. Before you install someone else's skill, plugin or rules file, it gives the same pass as for an MCP server, with a way to find hidden characters.

Data & schema (the layer an agent gets functionally right and dangerously wrong)

data-schema, owned by architect, on a threat-moving curve; last checked 2026-11-13.

learned from CVE-2025-48757 (one AI app builder's RLS class; the CVE names the builder, not the database host) The MoltBook credential exposure OX Security 2026 PostgreSQL row-level-security docs Martin Kleppmann — DDIA

where this came from

Written to close a gap where the knowledge lived only inside one Growth agent's prompt and a migrations section — so nothing could sweep it and no earlier mode could see it. Sources: CVE-2025-48757 (the AI app-builder RLS class — rated critical, and disputed by the vendor), the MoltBook exposure (~4.75M records including 1.5M agent API tokens), Veracode's 2026 GenAI Code Security Report and its Fall update (an average security pass rate of 56%, then 62%, with bigger models only a little better), the Postgres RLS documentation, and Kleppmann (DDIA) on schema evolution.

Testing & quality

Why an agent going green is not the same as the code being right.

Testing when an agent writes the code

testing-with-agents, owned by tester, on a craft-ai-moving curve; last checked 2026-11-14.

learned from Hamel Husain + Shreya Shankar How Coding Agents Fail Their Users (arXiv 2605.29442) Professional Software Developers Don't Vibe, They Control (arXiv 2512.14012) Veracode (2026 GenAI Code Security reports) Security Degradation in Iterative AI Code Generation (arXiv 2506.11022) METR Andrej Karpathy — the verifiability thesis An open-source idea-to-MVP agent pipeline — its system-evolution ADRs Kent Beck Software Engineering at Google (Winters, Manshreck, Wright) Yao et al. — τ-bench (arXiv 2406.12045)

where this came from

Written after BOSS's own library README had advertised a testing practice that did not exist. Sources: Hamel Husain and Shreya Shankar (error analysis, evals-as-spec, judge validation), How Coding Agents Fail Their Users (20,574-session misalignment analysis, arXiv 2605.29442), Professional Software Developers Don't Vibe, They Control (arXiv 2512.14012), Veracode's 2026 reports, a study of iterative AI code generation (Shukla, Joshi and Syed), METR, Karpathy's verifiability thesis, and τ-bench's pass^k (Yao et al., 2024); for how a good test is written, Gerard Meszaros's xUnit Test Patterns, Kent Beck and Software Engineering at Google; for changing code that has no tests, Michael Feathers' Working Effectively with Legacy Code; on asking an agent for tests, two 2026 studies of agent-written tests (Chen et al.; Banik, Chowdhury and Shamim). The seed line — agents rewrite assertions to match broken behavior — was BOSS's own, stranded in the git practice until it had a home.

The quality ratchet (a baseline that only moves the right way)

quality-ratchet, owned by product-lead, on a craft-moving curve; last checked 2026-06-20.

source BOSS’s own practice, extracted from its build, not from outside

where this came from

Ported up from a dogfooded product's own code-health gate: a ratchet file plus a check that is only ever allowed to tighten.

Git workflow for AI-native building (trunk-based, review-bounded)

git-workflow, owned by architect, on a craft-moving curve; last checked 2026-06-20.

learned from DORA / Accelerate Addy Osmani METR

where this came from

Distilled from founding-teams research on dev process — DORA/Accelerate, Addy Osmani on AI code review, METR's 2025 trial of 16 experienced developers (what they believed against what the clock said), read with its 2026 follow-up, and the worktree-as-parallelism-primitive practitioner pattern. A later citation-hygiene pass found unverified vendor multipliers sitting next to a DORA attribution: the numbers were cut, the direction kept and correctly sourced to DORA's ROI of AI-Assisted Software Development (2026.01). The commit/local/public tiers section comes from BOSS's own repo practice rather than that research — BOSS runs the same three tiers on itself, and got the boundary wrong for long enough to be worth writing down.

Revalidation (the 3-line gate before paused work re-enters build)

revalidation, owned by product-lead, on a craft-moving curve; last checked 2026-06-20.

source BOSS’s own practice, extracted from its build, not from outside

where this came from

Ported up from a dogfooded product's own revalidation lifecycle.

Data, retrieval & protocols

What NOT to build yet, mostly.

Retrieval (a ladder, not a vector database; climb only when it hurts)

retrieval, owned by architect, on a model-moving curve; last checked 2026-11-01.

learned from Anthropic engineering Chroma — context rot Jason Liu — systematically improving RAG

where this came from

Distilled from Anthropic (contextual retrieval; the ~200k-token skip-RAG line; the native memory tool), Chroma on context rot, Jason Liu on systematically improving RAG (evaluate retrieval first; inventory versus capability), and Cormack et al. on Reciprocal Rank Fusion, and Chroma's chunking evaluation. The whole value of this one is telling a founder what NOT to build yet.

MCP (decide whether it matters yet, before you wire anything)

mcp, owned by architect, on a protocol-moving curve; last checked 2026-11-14.

learned from MCP specification (2026-07-28) MCP deprecated-features registry Simon Willison

where this came from

Distilled from the protocol's own record — MCP donated to the Linux Foundation / Agentic AI Foundation (Dec 2025), WorkOS and Anthropic ecosystem reads, Willison on MCP prompt injection — then refreshed against the shipped 2026-07-28 revision, read from the primary changelog. What changed on that pass was the judgment, not just the date: this doc had called the ground "still moving" and said build against it rather than toward it, and then the revision landed with a formal feature-lifecycle and a 12-month deprecation policy, which is the ground acquiring rules for how it moves. A later sweep found the extensions under-weighted rather than wrong — MCP Apps (stable since Jan 2026) makes the integration shape a product-surface call and not only a distribution one, and Tasks is the long-running seam. The registry is still preview. The security half lives in agent-security.md, deliberately not duplicated here.

Shipping & scale

Getting it live, and what to do when it grows.

Ship it live (the CD half: localhost is not shipped)

ship-it-live, owned by architect, on a craft-moving curve; last checked 2026-07-23.

learned from DORA / Accelerate Martin Fowler Simon Willison OWASP — LLM Top 10 (2026) + Top 10 for Agentic Applications CVE-2025-48757 (one AI app builder's RLS class; the CVE names the builder, not the database host) The MoltBook credential exposure

where this came from

Distilled from a CD/deploy deep-research pass — 21 sources, 25 claims adversarially verified by 3-vote, 22 confirmed and 3 killed. DORA/Accelerate 2022–2024, Fowler's ParallelChange, Willison's lethal trifecta and the OWASP LLM Top 10, with CVE-2025-48757 (the AI app-builder RLS class) and the MoltBook breach as the named vibe-coded incidents.

Feature flags (decouple deploy from release, and flag the model, not just the feature)

feature-flags, owned by architect, on a craft-moving curve; last checked 2026-07-23.

learned from GrowthBook ConfigCat Unleash / LaunchDarkly Shape Up Addy Osmani

where this came from

Distilled from GrowthBook ("flag the model, not just the feature"; A/B-testing non-deterministic LLMs), ConfigCat (flags as a vibe-coding safety net), Unleash and LaunchDarkly (trunk-based flags plus flag-debt hygiene), Shape Up (the circuit-breaker and appetite), and Addy Osmani on the 70%-to-80% problem.

Architecture that survives the climb (defer the tax, enforce the conventions)

scalable-architecture, owned by architect, on a craft-moving curve; last checked 2026-11-14.

learned from Martin Fowler Shopify's modular monolith Factory.ai (Alvin Sng, Using Linters to Direct Agents, 2025) Addy Osmani

where this came from

Distilled from founding-teams research on technical scaffolding that survives the climb — Fowler's MonolithFirst, Shopify's 2.8M-line modular monolith, Bezos's one-way and two-way doors, Factory.ai on linters as the guarantee an agent can't drift past, and Notion's eslint ratchet. The section on the model underneath stands on Peter Naur's Programming as Theory Building (1985), Martin Fowler on refactoring, the jagged-frontier field experiment (Dell'Acqua, Mollick et al.), Addy Osmani's 70% framing (a framing, not a measurement) and Stanford's Foundation Model Transparency Index.

Seed to scale: does it exist, what rung is it on, and what seam does it leave?

seed-to-scale, owned by product-lead, on a craft-moving curve; last checked 2026-08-20.

source BOSS’s own practice, extracted from its build, not from outside

where this came from

Generalized from a shape BOSS had already solved four times without naming it — a measurement seam, a schema's one-way doors, a token file that gets dearer per screen, and a refactor one existing component first rule — into one practice: does the thing exist, what rung is it on, and what seam does it leave. No outside source is claimed; it is a pattern found in BOSS's own practices and named once.

Design & interface

The failure modes that appear by default when AI writes your UI.

Design system, or style never locked into code

design-system, owned by designer, on a craft-ai-moving curve; last checked 2026-08-20.

learned from Brad Frost — Atomic Design Nathan Curtis — design tokens W3C Design Tokens Community Group UXBench (Wang et al.) GitHub Primer — contributor docs & ADRs A design-system docs vendor's Design Systems Report 2026 Feature-Sliced Design Alan Alickovic — bulletproof-react Radix Primitives Omlet Chromatic Figma MCP server docs

where this came from

The limits of an AI-run design review — it reliably improves feedback and scannability, and barely moves whether the flow itself is right — come from UXBench (2026), read as direction rather than magnitude. Generalized from a dogfooded design system — design tokens as the single source of truth, central badge and pill style utilities, an enforcement hook that rejects raw framework colors, and a prototype registry — then stripped of everything product-specific so it would transfer. The AI-failure-mode catalog was written in the same pass.

AI-native interface patterns (2026)

ai-ux-patterns, owned by designer, on a humane-moving curve; last checked 2026-11-14.

learned from Shape of AI Microsoft HAX guidelines Google PAIR Nielsen Norman Group (2026) Apple HIG — generative AI CDT — Dark Patterns in AI Chatbots (2026) Chen et al., CHI'26 Chen et al., Comparing Human Oversight Strategies for Computer-Use Agents (arXiv 2604.04918) Anthropic, Eval: Claude Code auto mode (2026-03-25)

where this came from

Distilled from an AI-UX scan across Shape of AI, Microsoft HAX, Google PAIR, IBM Carbon, LangChain HITL, NN/g 2026 and Apple's HIG for generative AI. The dark-pattern checklist and its humane alternatives come from CDT's Dark Patterns in AI Chatbots (2026, CC-BY); the classic web pattern families and their regulatory teeth (effect-not-intent, symmetry-in-choice) from the first humane sweep; the cohort and frontier patterns — accessibility, minors, agentic, algorithmic management — plus junk-fee teeth from the second. Later additions: generated code injects dark patterns (Chen et al., CHI'26) and the dev-tool metering surface. In 2026-11, an oversight study of computer-use agents (Chen et al., a 2026 preprint) and Anthropic's auto-mode data; NN/g's line now says what NN/g said. The dark-pattern catalog has since moved to its own practice and data file so it can grow without growing what any one founder reads.

Accessibility: the guidelines, not the compliance theatre

accessibility, owned by designer, on a craft-moving curve; last checked 2026-09-10.

learned from W3C Web Accessibility Initiative (WAI) ARIA Authoring Practices Guide European Accessibility Act (Directive (EU) 2019/882)

where this came from

Structured on W3C's own framing — the four POUR principles and the WCAG conformance levels — so a recommendation can always be followed back to the standard it came from. The split between what a tool can check and what needs a person is BOSS's, inherited from the observed/inferred discipline its after-code review already uses.

Research & judgment

Finding out what is true outside your own head, and what to do when a stranger tells you how to build.

Research (finding out what's true outside your own head)

research, owned by product-lead, on a craft-ai-moving curve; last checked 2026-10-06.

source BOSS’s own practice, extracted from its build, not from outside

where this came from

Distilled from BOSS's own research practice — dozens of written passes, including the claims they killed — and from what reading that record back showed it lacked.

Outside claims (when a stranger tells you how to build)

outside-claims, owned by product-lead, on a craft-moving curve; last checked 2026-08-24.

source BOSS’s own practice, extracted from its build, not from outside

where this came from

Distilled from BOSS's own discipline for judging unproven outside claims, and from thirteen times it got the attribution wrong itself.

▸how it stays true

What happens when this goes out of date

It will. The interesting question is whether anything catches it. Each practice's curve routes it to a discipline that owns re-checking it (the model curve, the protocol curve, the threat curve, the craft curve) and reviews fire on events, not just dates: a spec revision, a new frontier model, a breach, a ruling.

That matters because cadence alone provably misses. On the first freshness run everything reported fresh while the MCP practice was already wrong, seven days after it was written, because the spec had shipped in the meantime and the doc still described it as forthcoming. A calendar would not have flagged it until October.

And because boss sync pushes this guidance into live projects, a stale practice isn't inert; it actively ships bad advice. So the sweep hunts for what's wrong, not just what's missing.

How a claim gets in here in the first place, and how BOSS decides when to speak.