# Brevio Ventures — Engineering Research Notes

> Engineering notes from operating an autonomous coding harness. The only token measurement is one tenant's 14-day ledger; counts such as rules, tests and golden cases were taken from the harness code on 2026-11-16. Targets are labelled as targets and no result is claimed for them.

Canonical URL: https://brevio.pro/research
Dataset: 850 Model Calls · 58.2M Tokens · 13 Merges (one tenant, 14 days to 2026-10-23)

---

## Note 01: Anatomy of 58.2M Tokens: Where Autonomous Coding Agents Spend Their Tokens
- **Slug**: `token-anatomy`
- **Basis**: 14-day ledger, one tenant
- **Published**: 2026-10-24 (14 days to 2026-10-23, one tenant)
- **Sample Size**: 850 Model Calls · 58.2M Tokens · 13 Merges
- **Tags**: #Token Economics #FinOps #Agent Architecture #Production Audit
- **Source URL**: https://brevio.pro/research#token-anatomy

### 1. Failure Mode
Rows tagged to a merged task hold 586,759 tokens per merge (7.6M of the 58.2M). The harness measures tokens per merged change and reports it weekly. Tokens in the window also went to unmerged tasks, untagged text calls and scheduled jobs. The Developer agent alone used 35.0M tokens over 123 calls, and 380 planning calls used about 8.4M.

### 2. How the Harness Handles It
The audit proposed four levers: 1) run the deterministic checks (completeness, test gaps, typecheck, targeted suites) before a single resumed developer session that receives the union of findings; 2) reuse the PRD, UX and engineering plan when the hash of the item brief matches; 3) re-plan on a diff of the critic's issues; 4) per-role budgets. They are targets, not results.

### 3. Measured Impact (or None Claimed)
No saving is claimed. The audit itself notes that neither the tokens per merge on merged rows nor the total per merge had moved after the first token-plan changes. The targets below were set on 2026-10-24 and are not yet measured.

#### 1. Net Task Tokens vs. Total Spend
Most benchmarks report only the tokens of tasks that succeeded. Over 14 days on one tenant (850 model calls, 40.6M input tokens, 17.6M output tokens) the ledger gives 586,759 tokens per merge on rows tagged to a merged task. The harness measures tokens per merged change and reports it weekly. This is one tenant and one 14-day window, so treat it as a baseline for that tenant and not as an average.

```
Metric                                  | 14d baseline (measured) | Target (set 2026-10-24, not measured)
----------------------------------------+-------------------------+---------------------------------------
Tokens on merged task rows / merge      | 586,759                 | none set
Developer rows / merge                  | 9.5 (35.0M tokens)      | fewer than 6 (under 2M per merge)
Planning tokens / merge (5 roles)       | about 650,000 (8.4M)    | under 300,000
```

#### 2. Transcript Replay in Resumed Sessions
After a vertical slice the Developer agent could start up to four follow-up processes (completeness, test gaps, typecheck, targeted tests), and each resumed process re-reads the conversation history on every step. Running the deterministic checks first and sending the union of failures in one resumed call is the proposed change. The audit calls its estimated saving an estimate to be confirmed from the trace data, and no confirmed figure exists.

---

## Note 02: How the Harness Chooses Models per Role
- **Slug**: `provider-ab-science`
- **Basis**: method note, state of 2026-11-16
- **Published**: 2026-10-24 (Method note · state of the harness on 2026-11-16)
- **Sample Size**: 17 Agent Roles · 182 Golden Cases · 1 default model client
- **Tags**: #Model Routing #Golden Evals #Statistical Trials #Agent Roles
- **Source URL**: https://brevio.pro/research#provider-ab-science

### 1. Failure Mode
Choosing a model by price per token alone is a risk: a model that is cheaper per token but lowers the merge rate can cost more per merged change. The harness therefore compares tokens per merge and merge rate, not price per token. This note publishes no measured case of such a trade-off.

### 2. How the Harness Handles It
One routing table sets the model tier for every call and role. Golden evaluation cases (182 cases for 17 agent roles, 10 to 12 each) replay in git worktrees and an eval drift check gates automatic merges. A proposed change goes through a trial and is reverted if it does not pass.

### 3. Measured Impact (or None Claimed)
No saving is claimed. Counts from the code: 182 golden cases for 17 agent roles. Trial rule: at least 10% fewer tokens per merge at one-sided z ≥ 1.64, merge rate not lower, at least 5 merged changes per arm, at most 14 days.

#### 1. Routing Tiers and Model Clients
Scouts, market research, distribution, the release orchestrator, fast fixes and the humanization editor run on the low-effort tier. The product manager, designer, developer, review-and-fix, test author, QA, risk gate, writers and spec judge run on the medium tier. The tech lead, architect, innovator and advisor run at medium reasoning, while the plan critic and the critical reviewer run at high effort on a different model family than the author. The harness uses one model command-line client first (agy); other installed clients are an optional fallback behind one setting, and the default is agy only. It makes no direct model API calls and keeps no key pools. Judges, agents that read untrusted text and text-only calls do not work inside the repository.

#### 2. One-Sided z ≥ 1.64 Promotion
The self-tuning loop (the Steward) makes one model call per cycle that proposes at most two hypotheses; code applies them within bounds. A trial promotes a change only if tokens per merge fall by at least 10% at one-sided z ≥ 1.64 and the merge rate does not fall, with at least 5 merged changes per arm and at most 14 days. Otherwise the change is reverted. A cheaper tier for an agent is proposed through a 20% holdout and kept only on evidence.

---

## Note 03: Tenant Isolation: Per-Tenant State, Knowledge Seal and Optional Encryption
- **Slug**: `multi-tenant-isolation`
- **Basis**: method note, state of 2026-11-16
- **Published**: 2026-10-24 (Method note · state of the harness on 2026-11-16)
- **Sample Size**: Per-tenant state · knowledge seal · isolation probe
- **Tags**: #Tenant Isolation #Multi-Tenancy #Backups #Report-First Settings
- **Source URL**: https://brevio.pro/research#multi-tenant-isolation

### 1. Failure Mode
A system that runs several products on one host can mix their state, their secrets and the lessons it learns. Agents run as the harness's own user, so the isolation between tenants rests on paths, locks and records, not on operating-system users.

### 2. How the Harness Handles It
Every path, database, trust file, policy, knowledge vault and secrets file belongs to one tenant, and a tenant's secrets are not copied into the process environment. A knowledge seal records honest writes to the knowledge stores and puts back or reports anything else. Lessons that name a tenant are refused, and promoting a lesson to harness-wide use is closed until the owner opens it.

### 3. Measured Impact (or None Claimed)
No leakage figure is claimed. An isolation probe checks that one tenant's data does not appear in another tenant's API or bridge output; it is a test, not a proof. The guards that refuse cross-tenant reads start in report mode, which records what they would refuse and changes nothing.

#### 1. Lessons Stay With the Tenant That Produced Them
Rule files carry a scope. A refusal filter rejects a lesson that names a tenant, and moving a lesson to harness-wide rules needs an owner decision. That promotion is closed while the collective policy reads none, and nothing reaches a prompt until the archetype setting is switched on (it is off by default). No lessons are shared across tenants today.

#### 2. Seal, Backups and Erase Record
The knowledge seal runs with every agent call and every 15 minutes. It detects and restores; it does not stop a process of the same user from writing. Backups are nightly sets per unit, kept locally. Sets are encrypted with age only when a recipient is configured; otherwise they are plaintext with secrets left out, and the daily brief says so. An off-server copy is made only when the owner sets a ship command. A project can be exported as an encrypted archive or erased, and erasing writes an erase record whose hash goes into the audit chain. The record is a JSON entry, not a signature.

```
Control                | Mechanism                                        | Default
-----------------------+--------------------------------------------------+--------------------
Per-tenant state       | own paths, database, trust file, secrets, locks  | on
Knowledge seal         | SHA-256 digests of writes to knowledge stores    | report (records)
Cross-tenant guards    | refuse a read that crosses tenants               | report (records)
Backups                | nightly set per unit, local                      | on
Backup encryption      | age, when a recipient is set                     | needs a recipient
Off-server copy        | only with a ship command                         | off
Restore check          | restore newest set into a temp dir, verify | nightly
Lesson promotion       | across tenants, needs an owner decision          | closed
```

---

## Note 04: Executive Command in Discord: Decisions, Hints and Rules
- **Slug**: `owner-in-the-loop`
- **Basis**: method note, state of 2026-11-16
- **Published**: 2026-10-24 (Method note · state of the harness on 2026-11-16)
- **Sample Size**: Discord decision cards · /hint · /rule · plan approval
- **Tags**: #Executive Governance #Discord Ops #Human-in-the-Loop #Protected Paths
- **Source URL**: https://brevio.pro/research#owner-in-the-loop

### 1. Failure Mode
In conventional agent loops, humans are interrupted too late (after full implementation), chat feedback is lost between context windows, noisy notifications cause alert fatigue, and escalation prompts rarely state the cost of delay.

### 2. How the Harness Handles It
Decision cards list options, consequences, a deadline and a safe default, and every ask says what happens if it is left unanswered. /hint and /rule store operator directives that reach builders and checkers. Plan approval is on by default, so a plan waits for the owner. Asks outside merges and emergencies are capped at ten a week by default, and the rest go into the 08:30 daily brief.

### 3. Measured Impact (or None Claimed)
No time figure is published. The harness has an operator baseline command that measures how many asks a week reach the owner and what they cost in minutes; no result from it is shown here.

#### 1. Default Actions and the Ask Budget
A decision's default applies at the deadline only for decision types on an allow list, and only after the card has been out for at least two waking hours. Plans the owner asked to review and left unanswered are held, not built. A new tenant starts at trust rung 0, where every merge goes to the owner; a rung needs about 11 clean outcomes, and any failure demotes one rung. Risky changes (money, authentication, tenant data) are parked on a branch and become a decision.

```
Situation                         | Behavior                                  | Owner sees
----------------------------------+-------------------------------------------+------------------------
Plan awaiting review              | held until answered                       | plan card (approve, note, drop)
Money, auth or tenant data change | parked on a branch                        | decision card
Protected path (policy file)      | escalates                                 | decision card
Routine change                    | merges on its own only after the trust    | merge card at rung 0
                                  | ladder promotes; rung 0 asks every time   |
```

---

## Note 05: 126 Rules Checked Without a Model Call: Rule Catalogs for Dev, Design and PM
- **Slug**: `zero-token-rules-engines`
- **Basis**: method note, state of 2026-11-16
- **Published**: 2026-10-25 (Method note · catalogs counted 2026-11-16)
- **Sample Size**: 126 Rules · 3 Catalogs (46 dev, 40 design, 40 PM)
- **Tags**: #No-Model-Call Rules #First-Pass Yield #PM & Design Rules #Line-Scan Rules
- **Source URL**: https://brevio.pro/research#zero-token-rules-engines

### 1. Failure Mode
Putting every rule into every agent prompt adds input tokens to each call and can dilute instruction adherence. A weak acceptance criterion or a too-small font class that is caught late costs extra repair calls.

### 2. How the Harness Handles It
Three rule catalogs, one each for software engineering, product design and product management, run as code. The first two layers use no model: deterministic checks, scans of the lines a diff adds, and text rules over specs. Code can also rewrite some weak items, such as weak acceptance criteria; whether it rewrites or only reports is a setting. Only when a violation remains, a short targeted hint (the code budgets up to 180 tokens) is attached to the retry.

### 3. Measured Impact (or None Claimed)
No token saving is claimed; it has not been measured. What can be counted in the code: 126 rules (46 dev, 40 design, 40 PM), checked without a model call. The checks are line scans and text rules, not syntax-tree analysis.

#### 1. Deterministic Layers Before Any Model Repair
Instead of asking a model to repair a missing threshold in an acceptance criterion or a banned sub-12px text class, code checks the artifact first. Layers 0 and 1 use no model tokens. Layer 2 runs only when a retry occurs and adds a short hint naming the failing rule.

```
Catalog        | Rules | What it checks                                         | Model call
---------------+-------+--------------------------------------------------------+-----------
Engineering    | 46    | scan of the lines a diff adds, plus a targeted brief   | none
Design         | 40    | text size, tap target and visual rules on UI code      | none
Product (PM)   | 40    | acceptance criteria, research citations, KPI structure | none
```

#### 2. Three Layers and Their Limits
Layer 0 rewrites known defects in text. Layer 1 checks the diff or spec against the catalog. Layer 2 adds the short hint on retry. No timing or saving is published for these layers because none was measured.

---

## Note 06: AI Citations: How the Harness Tracks Where a Product Is Recommended
- **Slug**: `ai-citation-radar`
- **Basis**: method note, no saved run
- **Published**: 2026-10-27 (Method note · no saved run published)
- **Sample Size**: Method only · no result figures
- **Tags**: #AEO / GEO #AI Citation Radar #Answer Engines #Discovery Files
- **Source URL**: https://brevio.pro/research#ai-citation-radar

### 1. Failure Mode
Citations in AI answers change when competitors update their documentation and when engines change. A product that is cited today may not be cited next week. How fast this happens depends on the engine and the prompts, and this note publishes no rate.

### 2. How the Harness Handles It
1) The citation engine records runs of probes against answer engines and classifies the product's standing as dominant, challenger or displaced; 2) the marketing lane generates llms.txt and llms-full.txt for the tenant's product; 3) this site serves a markdown version of its pages to requests that accept text/markdown.

### 3. Measured Impact (or None Claimed)
No decay, persistence or citation-rate figure is claimed. A figure will be published only with a saved run, its date and its sample size.

#### 1. What the Citation Engine Records
A run probes answer engines with prompts about the product's category and records whether the product is cited, which URLs are cited and how the standing changed since the last run. Standings are meant to be published only when a saved run backs them. The runs happen on the customer's own server and their output is not part of this site.

#### 2. Markdown for Machines
Requests to this site that send an Accept: text/markdown header receive a markdown version of the page, with the canonical URL in a Link header. The marketing lane of the harness writes /llms.txt and /llms-full.txt for the product's own site in the same spirit. Neither is a measured ranking improvement.

---

## Note 07: Competitor Watch: Deterministic Probes of Public Pages and Review Gaps
- **Slug**: `pricing-canaries-negative-space`
- **Basis**: method note, state of 2026-11-16
- **Published**: 2026-10-27 (Method note · state of the harness on 2026-11-16)
- **Sample Size**: Method only · no competitor data published
- **Tags**: #Competitive Intelligence #Page Probes #Review Mining #Nova
- **Source URL**: https://brevio.pro/research#pricing-canaries-negative-space

### 1. Failure Mode
Manual market research lags market shifts, and user complaints on public review sites stay anecdotes instead of becoming structured engineering tasks.

### 2. How the Harness Handles It
A daily deterministic probe of public competitor pages (no model call) records when a page changes. The Nova research step also reads competitors' low-star reviews, and the winners of its tournament are handed to the roadmap. Nova does not build, price, ship or merge; it hands bets to the roadmap.

### 3. Measured Impact (or None Claimed)
No detection latency or price figure is claimed, and no competitor names or prices are published here. The harness keeps its competitor data on the customer's own server.

#### 1. Daily Probes of Public Pages
The probe fetches lightweight public pages (for example /llms.txt, /.well-known/agent-card.json and a pricing page), compares them with the previous copy and records the difference. It makes no model call. A host guard that refuses private and internal hosts is available and starts in report mode.

#### 2. From Reviews to Roadmap Input
Nova's weekly cycle settles past bets, researches first-party signals, public forums and competitors' low-star reviews, generates ideas, red-teams and grades them, runs an Elo tournament and shortlists up to 3 bets. Winners are handed to the roadmap and start as fake-door tests. Nova has a fixed 6% share of the week's tokens by default.

---
