# Engineering backlog > An audit of this repo dated 2026-08-13: candidate work items on capability, > correctness and usefulness, each checked against the code before being listed. > > ⚠️ Every `file:line` in here was true on 2026-08-13 and drifts the moment anyone > edits. Open the line before you trust it — acting on a stale audit has produced > confident, specific and wrong findings here more than once. ## THE NUMBER ONE THING **Tell the truth in `--help` (and in the system prompt) about what it can actually run.** The help text ends `What it may execute: node, npm, npx, tsc … No shell, no pipes, no other program` (`lib/cli-args.mjs:271-273`, verified verbatim) while six tested language presets — python, go, rust, ruby, make, node-bin — ship at `lib/command.mjs:268` and `PRESET_NAMES` at `:405`; `grep -c preset lib/cli-args.mjs` returns **0** and `grep -c preset lib/turn.mjs` returns **0**, so neither the evaluator reading the tour nor the model driving the loop is ever told they exist. It is roughly an hour of text across two files, against capability that is already written, already tested and already correctly described by `--doctor` — and it changes the answer to "can it run MY tests" for every Python, Go, Rust and Ruby repo on earth, which is the one question the run→fix loop lives or dies on. --- ## TIER 1 — SHIP THIS WEEK (hours each) Ordered by payer-value-per-hour. Effort corrections from the judge pass are marked **[corrected]**. | # | What | Why a payer cares | Where | Effort | What proves it worked | |---|---|---|---|---|---| | 1 | **Presets in `--help` + a `loopSystemPrompt` paragraph naming `.acuvo/commands.json`** | The tour currently says the loop cannot touch their repo. Most repos are not Node. | `lib/cli-args.mjs:271-273` · `lib/turn.mjs` `loopSystemPrompt` · `lib/command.mjs:268`,`:405` | ~1h | `acuvo --help \| grep -i pytest` returns a line; a test asserts every `PRESET_NAMES` entry appears in `USAGE` | | 2 | **Make `--budget` cover the whole interactive session, not each turn** | `DEFAULT_BUDGET_USD=0.05` (it was 0.02 when this row was written) is documented as the run's ceiling and is silently per-turn — a 40-turn session spends 40×. Pricing is the first thing the frame names and this is the one number we cannot have wrong. | `bin/acuvo.mjs:847` (`budgetUsd: over.budgetUsd ?? opts.budgetUsd`) · the fix already exists at `bin/acuvo.mjs:779-804` (resume path subtracts prior spend) · `lib/budget.mjs:141` | **hours [corrected from days]** — mirror the resume branch, nothing in `turn.mjs` changes | A scripted 3-turn chat against a stub: turn 3 refuses once cumulative spend passes the ceiling, and prints the running total | | 3 | **Running out of money is a failed run — plus `EXIT_BUDGET` / `EXIT_ROUNDS`** | Verified: `sessionFailed` (`lib/turn.mjs:3404-3459`) has clauses for `!ok`, strict+nothingHappened, `model-error`, verification and gating acceptance — **no budget clause**. With the ceiling on by default this is now the likeliest first-hour outcome, and `acuvo … && git push` pushes it. Routing it to exit 1 alone makes "your code is broken" and "I hit the ceiling" indistinguishable to a CI script. | `lib/turn.mjs:3404` · `BUDGET_STOP_REASONS` at `:3354` (one consumer, `:3161`) · `bin/acuvo.mjs:94-97` | hours | Stub run with `--budget 0.0001`: exit code is the new budget code, `--json` `ok:false`; mutate the clause out and the test goes red | | 4 | **Keep the real tail of a loud command** | Verified at `lib/command.mjs:1654-1657`: capture stops at 32,000 chars **while reading**, so on a 5MB suite the "tail" shown to the model is byte 32,000 — the middle — and `clampOutput` computes "~24,000 characters omitted" against the already-capped string. Every real test suite prints its failure summary last, so the loop fixes what it can see and never learns 5 tests failed. | `lib/command.mjs:1654` · `clampOutput` `:1506` · `MAX_CAPTURED_CHARS` `:80` | hours (second ring buffer + a `producedChars` counter) | Feed 200k lines through `spawnBounded`; the last line of input appears in the model-facing text and the omitted count matches bytes produced, not bytes kept | | 5 | **Rewrite the README install section and the stale ENTERPRISE claims** | Verified live: README:44-91 tells a buyer the clone is "1,192 tests, 4 failing", that npm 404s, and — in bold — "**THE SINGLE-FILE BUNDLE DOES NOT EXIST … `scripts/bundle.mjs` was never written**". `scripts/bundle.mjs` is 30,806 bytes and `dist/acuvo.mjs` is 1,770,044 bytes (Aug 12). The install section apologising for having been wrong is itself wrong again. Same for `ENTERPRISE.md:807` and `lib/audit.mjs:182-202` ("grep for `reply.model` and there are no hits" — there are two). | `README.md:40-95` · `ENTERPRISE.md:807-810` · `lib/audit.mjs:182-202` · `test/docs-truth.test.mjs:294` | hours | `docs-truth` gains an assertion that every path the README says does not exist, does not exist | | 6 | **`acuvo spend` — read the audit log back** (and put `budget` + `cache` into `toJson` in the same pass) | Every run already appends `costUsd`; nothing reads it. "What did this cost me last week" is the buyer's question and we write the answer down and never read it. **[corrected]** `parseAuditLog` already exists (`lib/audit.mjs:309`, zero runtime callers), and per-run cache telemetry already exists (`aggregateCache` → `cacheClause`) — only `toJson` drops both. **[cache half DONE 2026-08-14** - `toJson` now emits `cache` and `providers`; the `budget` half is still open, `grep -n budget lib/report.mjs` returns a comment and no field.] | `lib/audit.mjs:309`,`:444` · `lib/report.mjs:120-178` · `lib/cli-args.mjs:288` `COMMANDS` | hours | `acuvo spend --since 7d` over a fixture directory; a `costUsd:null` record counts as **unknown**, never zero | | 7 | **The refusal names the repo's own evidence** | `presetProviding` already prints the preset and the exact JSON (verified, `lib/command.mjs:1284-1290`) — it just never says "you have a `pyproject.toml`". Costs one paid round to discover a limitation a free line could have prevented. | `lib/command.mjs:1284` · `lib/tools.mjs:410` `languagesPresent` | hours (message half only — **defer the interactive y/n write to Tier 2**) | Refusal text in a workspace with `go.mod` names go.mod and the go preset | | 8 | **`CI=false` must not arm `--strict`** | Verified `bin/acuvo.mjs:1045`: `Boolean(process.env.CI)` — every non-empty string is truthy. And `scrubEnvironment` sets `CI='1'` on every child (`lib/command.mjs:967`), so a nested acuvo inherits strict it never asked for. A false exit 1 in someone's pipeline is this repo's signature failure, in the flag shipped to prevent the opposite one. | `bin/acuvo.mjs:1045` · `lib/command.mjs:967` | **minutes [corrected]** | `CI=false` + a run that writes nothing exits 0 | | 9 | **Fix the MCP install snippet** | `bin/acuvo-mcp.mjs:9-13` prescribes `npx -y acuvo-code acuvo-mcp` — a name that 404s, in a shape `lib/mcp-defaults.mjs:20-40` records our own client refusing (it injects `--no`, strips `-y`) and measures a dark entry costing the full 20s handshake timeout. The reader's first act produces "failed to connect". | `bin/acuvo-mcp.mjs:9-13` · `lib/mcp-defaults.mjs:20-40` | minutes | The documented config connects in a host; the `node /bin/acuvo-mcp.mjs` form is the one printed | | 10 | ~~**Wire `isPolicyProtectedPath`**~~ **DONE - DO NOT RE-FIX.** The hole is CLOSED. See the note under this table. | It was the only security defect on the list, and it is closed. | `lib/workspace.mjs:166` `AGENT_CONFIG_DIR` - `test/agent-cannot-rewrite-its-own-leash.test.mjs` | - | RE-VERIFIED 2026-08-14: **8/8 green** | | 11 | **A credential guard on `read_file`** | `gatherWorkspaceContext` skips `.env`/`*.pem`/`credentials.json` via `refusedCommitPath` (`lib/turn.mjs:227`, list at `lib/git.mjs:100-107`) — the model-driven read has no such guard (`lib/workspace.mjs:389`). Same "one verb, two paths, one hardened" pattern this repo has paid for twice. "Does it send our secrets to a third party" is a procurement gate. | `lib/workspace.mjs:389` · `lib/git.mjs:100-107` | hours | `read_file .env` refuses (or redacts loudly) and the refusal is in the run output, never silent | | 12 | **Undo — snapshot touched files before the first write, add `acuvo undo`** | Nothing snapshots anything (grep: no undo/backup/revert capability). On a dirty tree, an untracked file, or a non-git workspace, an agent edit is unrecoverable. `--sandbox` and `--review` both help *before* the fact; nothing helps after, which is when people need it. | new `.acuvo/undo//` · change list already at `lib/report.mjs:124` | hours | Overwrite a file, `acuvo undo`, bytes are identical | | 13 | **Stop a background probe verifying somebody else's server** | Verified `lib/background.mjs:135`: `if (rec.port === null) rec.port = detectPort(rec.log)` — pinned once, never revised. Next.js's "Port 3000 is in use, trying 3001" matches `PORT_PATTERNS[2]` and pins 3000; `lib/turn.mjs:2229-2243` promotes the 200 from the developer's *other* server into `passed:true` → `✔ VERIFIED` → exit 0. | `lib/background.mjs:82`,`:135`,`:291` · `lib/turn.mjs:2229` | **hours for the fix that gets 80% [corrected]** — re-derive each check, prefer the LAST match, reject a port whose context says "in use"/EADDRINUSE/"trying". Ownership proof is Tier 3 and may not be worth it | A log containing the Next.js line yields port 3001 or silence, never 3000; silence must never become a negative verdict | | 14 | **Publish to npm** (owner login) | Adoption is the binding constraint: nobody can install this from the registry today. `package.json` is publish-ready: two bins, MIT, `engines>=20`, `dependencies:{}`. ⚠️ In the same pass: `files` currently ships `test/` and **omits** `dist/`. | `package.json:1-30` · `README.md:56` | hours (blocked on owner) | `npx acuvo-code --version` on a clean machine | | 15 | **`acuvo init`** — write `ACUVO.md`, ignore `.acuvo/`, write the detected preset, print the env lines. Add `CLAUDE.md` to `MEMORY_FILES`. | `STARTER_TEMPLATE` (`lib/project-memory.mjs:114`) has **zero call sites** — the memory feature has no front door. And `MEMORY_FILES = ['ACUVO.md','.acuvo.md','CONVENTIONS.md','AGENTS.md']` (verified `:45`) omits the single most common agent-conventions file in 2026, which is free goodwill by the module's own argument. | `lib/project-memory.mjs:45`,`:114` · `lib/cli-args.mjs:288` · `lib/doctor.mjs:317` | hours | `acuvo init` in a temp repo produces all four artifacts, printing each before writing; never automatic | | 16 | **`--push` / `--pr` behind an explicit flag** | `lib/github.mjs:19-21` states the condition for building it verbatim, and `nextSteps` at `:249` already computes the exact `git push -u` and `gh pr create` argv; `findToken` at `:83` already resolves credentials and is already PATH-hijack hardened. `acuvo --issue 42` currently stops one manual step short of the demo that sells the product. | `lib/github.mjs:19`,`:83`,`:249` | **hours [corrected from days]** | Refuses on `main`/`master`, refuses a dirty tree, never fires from `--until-done` escalation | | 17 | **`git_branch` / `git_checkout` as model verbs** | `lib/git.mjs:596` says it outright: commit is the only write verb — so the agent commits onto whatever branch you were on, and the mitigation is the human remembering. `createBranch` already exists and is tested (`lib/github.mjs:229`). | `lib/git.mjs:537`,`:596` · `lib/github.mjs:229` | hours | Refuses detached HEAD, refuses to leave uncommitted changes, never touches main unnamed | | 18 | **Multi-edit in one call + `replace_all` with a REQUIRED expected count + a move/rename verb** | `applyEdit` is single-occurrence (`lib/edit.mjs:227`), `DEFAULT_MAX_ROUNDS=24` (`lib/cli-args.mjs`; this row said 5, which is what it was when it was written) — an 11-site rename cost 11 rounds of the 5 that existed then, so it was *structurally* impossible; at 24 it is merely expensive, and the payer still sees an agent that writes new files far more cheaply than it refactors. `countOccurrences` (`:39`) already computes the assertion. | `lib/edit.mjs:39`,`:227` · `lib/cli-args.mjs:135` | hours | All-or-none atomicity proven by a mid-batch failure leaving the file untouched; the CRLF-tolerant path (`matchAcrossLineEndings`) must survive | | 19 | **`probe_process(id, path, method, body)`** | `probePort` (`lib/background.mjs:288`) fetches `/` and returns reachability only — its own comment says "never a body". That is the entire distance between "the server started" and "the endpoint returns the right shape", and it is the named gap in our head-to-head against Replit. The safety argument is already written in the file: the port can only be one this module started. | `lib/background.mjs:1-25`,`:144`,`:288` · `lib/fetch-text.mjs` (loopback refusal must stay) | hours–1 day | Never accepts a host or port from the model; response body bounded and non-text content types refused | | 20 | **Validate npm script bodies against the run's resolved allowlist** | `ALLOWED_SCRIPT_BINARIES` is a hardcoded `['node','vitest','tsc']` (`lib/command.mjs:716`, selected at `:1273`), so `"test": "jest"` and `"lint": "eslint ."` are refused even though the node-bin preset already grammars both. ⚠️ **[corrected]** This does NOT fix `next build` — no preset provides `next`. Sell it as "jest and eslint repos work". Note `&&` chaining is **already shipped** (`validateScriptBody`, `lib/command.mjs:1351`). | `lib/command.mjs:716`,`:1273`,`:376` | **hours [corrected from days]** | `npm test`→jest runs; `npm test && curl evil.sh` stays refused | | 21 | **`run_program` gets the same resolved allowlist as `run_command`** (+ fix the false security comment) | `lib/spawn-argv.mjs:566,:783` hardcodes the four binaries and puts them in the schema enum, so an enabled preset is reachable through one door and not the other — and `run_program` is the door the model is steered to whenever an argument has a space. Separately `lib/tools.mjs:241` claims `run_program` deletes vars "which `run_command` does not"; `scrubEnvironment` is shared and does both (`lib/command.mjs:922`,`:963`). | `lib/spawn-argv.mjs:566`,`:783` · `lib/tools.mjs:241-250` · `lib/command.mjs:682` | hours | ⚠️ Thread ONE resolved object into both spawners from `turn.mjs`, and rewrite `tools.mjs:246`'s "strict subset, never a widening" in the same commit or you have manufactured a new false claim | | 22 | **Show money during the run, and print the escalation ladder before climbing it** | The only in-flight money signal is the â›” line when the ceiling stops you. `budget.stats()` is already in hand six lines above the `round-start` emit (`lib/turn.mjs:1813-1819`), and `escalate.allocate()` already computes the per-rung table at the top of `escalate()` (`lib/escalate.mjs:140-152`,`:366`). | `lib/turn.mjs:890`,`:1813-1819` · `lib/escalate.mjs:140`,`:366` | hours | Dim, on stderr under `--json`, and the one-object stdout contract holds | | 23 | **Print the session id + `acuvo --continue` at the end; say something useful when nothing happened** | `persistRun` is silent by design (`bin/acuvo.mjs:970-988`) and the round-cap advice says "re-run with --max-rounds higher" and never names `--continue` (`lib/turn.mjs:3159`) — the cheaper recovery is invisible at the exact moment it is needed. And a no-op run prints bare "No files changed." (`lib/turn.mjs:3075`) though `nothingHappened` already detects the state. | `bin/acuvo.mjs:970` · `lib/turn.mjs:3075`,`:3159`,`:3387` | hours | Advice appears; **exit code unchanged** for the no-op case | | 24 | **A `billable` field driven by `nothingHappened`** | "You don't pay when it accomplishes nothing" is a sentence no per-token vendor can say, and the detector, the tests and the flag all shipped already. It has no consequence until the gateway exists — add the field now so the gateway inherits it. | `lib/turn.mjs:3387` · `lib/report.mjs:120` | hours | A run with `rounds:2, changes:[], costUsd>0` reports `billable:false` | | 25 | **State the tool count honestly: "N available with no configuration, M more with a key"** | The registry size is what the README and `docs-truth` assert, and it describes a surface no stranger has. Being the one who states the smaller number first is worth more than being caught at the larger one. `toolOffer` already computes both halves. | `lib/tools.mjs:180-196`,`:465-497` · `lib/doctor.mjs:577`,`:1409` · `test/docs-truth.test.mjs:358` | hours | `--doctor` prints a two-column table; README quotes the reachable number first | | 26 | **Decide what `generate_image` does on a stranger's machine** | Verified `lib/imagegen.mjs:138-149`: an **unset** variable yields `xxiautomate-star--acuvo-perchance-images-serve.modal.run`, so every bare install routes prompts to our GPU. With "we don't wanna pay anything for modal" this is either an unbounded bill or a dead button, and "every installed copy phones home" is a procurement blocker. | `lib/imagegen.mjs:138` · `lib/tools.mjs:480-497` | hours of code — **the decision is the owner's** | Either off-by-default with a named opt-in, or a keyless third party with our endpoint as the upgrade | | 27 | ~~**Surface the curated MCP catalogue (and add Playwright/Chrome DevTools to it)**~~ **MOSTLY DONE 2026-08-14** - `--doctor` now imports it and prints an MCP catalogue section, so it is reachable; the entry was removed from `wiring-reach`'s `KNOWN_UNWIRED`. Catalogue is 8 entries, 6 verified BY RUNNING THEM: browser (Chrome DevTools, 29 tools), playwright (24 tools), docs (Context7, keyless), acuvo, filesystem, firecrawl. `mcp-server-git` was **deleted** - npm `mcp-server-git` is a security-research canary, not a server. ⚠️ **STILL OPEN:** no `acuvo mcp` / `acuvo init` command writes the starter config - `renderStarterConfigJson` still has no CLI door, so the user hand-writes `.acuvo/mcp.json` from the doctor's output. | `lib/mcp-defaults.mjs` - `lib/doctor.mjs` `mcpCatalogueChecks` - `test/mcp-catalogue-claims.test.mjs` | hours (the CLI door only) | Doctor prints "4 of 6 servers we have run ourselves are usable here"; every entry opt-in; no first-run download | | 28 | **Wire `describePolicy` + stamp `policyFingerprint` into the audit line** | Verified zero runtime callers for both; `bin/acuvo.mjs:47` imports five policy functions and not this one. Its own comment: "a policy nobody can see is a policy nobody trusts — and worse, it is indistinguishable from a broken agent." ⚠️ This also corrects an earlier premise: the `$X per run` cap is **not** rendered anywhere today. | `lib/policy.mjs:643`,`:667` · `bin/acuvo.mjs:47` · `lib/audit.mjs:249` | hours | Under a policy the banner explains it; two machines' fingerprints are comparable in a support ticket | | 29 | **Wire `searchChecks()` into `--doctor`; reset the search cap per task; tell the truth when the IP is throttled** | `lib/websearch.mjs:391` returns exactly the doctor row and **has no caller** — the one keyless capability shipped this week is invisible in the honesty surface. And `searchesThisProcess` (cap 12, `:44`) never resets in an interactive session while the refusal claims "this run has already made 12 searches". One corporate NAT breaks StackOverflow's 300/day for everyone behind it and the message will blame the wrong thing. | `lib/websearch.mjs:44`,`:59`,`:241`,`:391` · `lib/doctor.mjs:1338` (wiring pattern) | hours | Doctor shows a web-search row; turn 3 of a chat can still search; a 429 produces a distinct "the provider throttled this IP" refusal | | 30 | **`--json`: add `schemaVersion`, `runId`, `durationMs`** | `toJson`'s header asserts the shape is stable with nothing a consumer can assert against, and **no run-level elapsed time exists anywhere** (only per-command `durationMs` at `lib/turn.mjs:1040`). "Cost per task" without "time per task" cannot be compared to a developer hour, which is the only comparison a buyer makes. `runId` is also what makes invoice↔receipt reconciliation possible later. | `lib/report.mjs:120-178` | hours | A consumer can pin `schemaVersion`; `runId` matches the audit line | | 31 | **Persist the session and the audit line on the crash path** | `persistRun` runs at `bin/acuvo.mjs:915`, after `runSession` returns — so the `main().then(…, err => …)` handler at `:1475` writes **no session and no audit line**. Money spent, files on disk, nothing recorded. A ledger with a hole exactly where things went wrong is the least useful ledger. | `bin/acuvo.mjs:915`,`:1475` | hours (the SIGINT half is Tier 2 — the accumulators live inside `runSession`'s closure) | Throw mid-run; the audit line exists | | 32 | **`acuvo tools` and `acuvo memory`** | Capabilities are currently visible only as an *absence*: `--doctor` prints one summary line and then names only the **withheld** tools (`lib/doctor.mjs:1403-1415`). The stateful REPL — a real differentiator — appears nowhere a user can see. And `learned.mjs` `recall`/`forget` (`:158`,`:224`) have no human surface, so the only way to fix a poisoned memory is deleting a file by hand. | `lib/doctor.mjs:577`,`:1409` · `lib/learned.mjs:158`,`:224` | hours | Both list, both `--json` | | 33 | **Interactive commands: `/help /cost /files /tools /doctor /model /budget`** | `lib/chat.mjs:27` is the entire command surface (`exit/quit/:q/bye`) and `runChat` is called with an empty `banner`. Interactive is where a tool becomes a habit. ⚠️ **[corrected]** `/undo` is NOT partly built — it needs item 12 first. | `lib/chat.mjs:27`,`:110` · `bin/acuvo.mjs:1209` | hours (ship `/cost` and `/files` first) | A line must match a command exactly, or it is a task | | 34 | **`--commit` for a verified run** | Turns "files are different now" into a reviewable unit and pairs with the exit-code contract. `gitCommit` (`lib/git.mjs:392`), `validateCommitMessage` (`:359`) and the `--issue` restraint precedent (`bin/acuvo.mjs:1102-1135`) all exist. | `lib/git.mjs:359`,`:392` | hours | Reuse `gitCommit`'s realpath-checked paths — `lib/git.mjs:44-50` records a junction committing a file from outside the workspace | | 35 | **A money section in `--doctor`, backed by a real price table** | ⚠️ **[corrected]** the doctor already has a credits check and a cache section; what is missing is the ceiling in force (and whether it is the default) plus 7-day spend. And `OR_MODELS_URL` is **already fetched keyless** at `lib/doctor.mjs:104`,`:1271` — `catalogueIds` (`:1505`) throws away the `pricing` object in the same payload. Cache to `~/.acuvo/prices.json`, stamp it, expire it, degrade to the floor loudly. | `lib/doctor.mjs:104`,`:1271`,`:1505` · `lib/budget.mjs:151` (`DEFAULT_USD_PER_MILLION_TOKENS`) · README:274-279 states the hazard | **hours [corrected from days]** | A tier on a 20× model is projected at 20×, not 3× | | 36 | **Doctor resolves preset binaries per machine** | Every preset resolves through PATH (`lib/command.mjs:97-105`, the honest weakening). On Windows `python` is frequently the Store alias stub, exiting 9009 with a message that reads like a broken agent. Do this in the same sitting as item 1. | `lib/doctor.mjs:1662-1685` · `lib/lsp.mjs` `resolveOnPath` | hours | Doctor distinguishes "preset off" from "preset on, binary missing" | | 37 | **Cost in the saved session + `--sessions`** | `lib/session.mjs:636` records `usage` and no budget block; `summarizeSession` (`:865`) shows no money. `turn.mjs:2807` already returns `budget.toJSON()`. Use `budget` (honest about estimated rounds), not `usage.cost`. | `lib/session.mjs:636`,`:865` · `bin/acuvo.mjs:430`,`:732` | hours | `--sessions` shows `· $0.0009` | | 38 | **macOS runner + Node 24 in CI** | Verified `.github/workflows/test.yml:48-50`: `[ubuntu-latest, windows-latest]` × `['20','22']`. The workflow's own comment says almost every hard-won bug here is platform-specific — and this package spawns processes, kills process trees, resolves PATH and handles signals, all macOS-divergent. "1,696 tests, 0 failing" is a claim about two operating systems. | `.github/workflows/test.yml:48-50` | hours | Green on three OSes; Node 24 added, `engines>=20` reconsidered | | 39 | **Extend the reach guard from modules to exported functions** | `test/wiring-reach.test.mjs:570-577` walks *module* imports, which is exactly why `parseAuditLog`, `costDecision`, `isPolicyProtectedPath`, `describePolicy`, `searchChecks` and `STARTER_TEMPLATE` are all unreachable inside *imported* modules with the guard green. Every "built but unwired" finding in this backlog is one defect class the existing check structurally cannot see. | `test/wiring-reach.test.mjs:570` | hours | Adding a new exported-but-uncalled function turns the suite red unless listed in `KNOWN_UNWIRED` | | 40 | **`acuvo where` / `acuvo purge`, a `SECURITY.md`, and stop shipping internal docs** | Files land in the workspace `.acuvo/`, `~/.acuvo-trust.json` (`lib/mcp-consent.mjs:53`) and `~/.acuvo/policy.json` (`bin/acuvo.mjs:383`); nothing enumerates them and there is no uninstall note. There is no `SECURITY.md` for a tool that executes commands and spawns MCP servers — a required procurement field. `package.json` `files` ships `ROADMAP.md` (a public list of what does not work) and `test/`. | `package.json:23-30` · repo root · `lib/mcp-consent.mjs:53` | hours | `acuvo where` lists every path; the tarball contains no planning docs | | 41 | **A Dockerfile and a GitHub Action** | A zero-dependency Node package is a five-line Dockerfile. CI is where a $0.001/task agent is worth the most — run it on every PR — and there is no packaged way to do that. It is also a distribution channel that does **not** depend on the npm login. | new `Dockerfile` · new `.github/workflows/action.yml` | hours each | The action runs a task on a PR and posts the diff | | 42 | **The honest-small bundle** (one session, one commit): `list_dir` reports skipped entries (`lib/workspace.mjs:576`, bare `catch { continue }`); an in-band "earlier output dropped" marker in the background ring buffer (`lib/background.mjs:130`,`:318`,`:375`); flush the SSE residual buffer (`lib/stream.mjs:44-66`); re-point the two CRLF/UTF-8 tests at `editThroughExecutor` and *then* delete `editFile` (`lib/edit.mjs:266` vs `:404`); have the doctor's media section call `findCredentialNearby` so its two fix lines agree (`lib/doctor.mjs:628` vs `:1364`); fix the README's stale 1,378 test count. | Individually small; together they are the class of drift that costs a sceptical reader the twenty true comments around the false one. | as cited | minutes each | Each has a test that goes red when the fix is reverted | | 43 | **Concurrent independent reads in a round** | `lib/model.mjs:501` sets `parallel_tool_calls:true` and `lib/turn.mjs:2044` awaits them in a plain `for` loop — we invite batching and throw the benefit away. Filler only: nobody chose a coding agent because its reads were concurrent. | `lib/turn.mjs:2044` · `lib/model.mjs:501` | hours | Split by tool identity, never by guessing arguments; results appended in the model's original call order | --- ### ⚠️⚠️ ITEM 10 IS CLOSED. DO NOT SPEND A SESSION RE-FIXING IT. This list is what the next session acts on, and its **top-rated security item was wrong one day after it was written** - it described an open remote-code-execution hole that was already fixed. Someone would have spent hours re-closing it, found the guard already there, and distrusted the rest of the document. **MEASURED 2026-08-14:** `node --test test/agent-cannot-rewrite-its-own-leash.test.mjs` -> **8 tests, 8 pass, 0 fail.** `write_file('.acuvo/mcp.json', ...)` is refused and nothing reaches disk. The guard is `AGENT_CONFIG_DIR = '.acuvo'` at `lib/workspace.mjs:166`, on the write path itself. ⚠️ **The item pointed at the wrong mechanism, which is why it read as open.** It said to wire `isPolicyProtectedPath` (`lib/policy.mjs:628`) and noted that `WRITE_FORBIDDEN_ROOTS` (`lib/workspace.mjs:132`) still omits `.acuvo`. Both observations are still literally true - and the hole is shut anyway, by a third mechanism neither line names. `policy.mjs` cannot be imported from the write path (policy -> tools -> workspace is a cycle), so the rule deliberately lives in two places, pinned together by that test file rather than by a shared import. ⭐ **What is actually left is smaller and different:** a duplicate guard that could drift from the live one. That is the same two-doors-one-verb shape as `editFile`, it is a maintenance risk rather than a security hole, and the pinning test is the thing keeping it honest. Re-scope it that way; do not re-open it as an RCE. ⭐ **And the general lesson, since this is the second time:** a `file:line` that still reads as described does **not** mean the defect is live. Run the test that would fail if it were. This document's own header says every line drifts - it turns out the *conclusions* drift faster than the lines do. --- ## TIER 2 — THE NEXT FORTNIGHT (days each) | # | What | Why a payer cares | Where | Effort | What proves it worked | |---|---|---|---|---|---| | 1 | **A named-provider endpoint with its own key variable** | Verified `lib/model.mjs:62-81`: `ACUVO_API_URL` is accepted **only for loopback** and *throws* otherwise. The reasoning is right (a plain override redirects `Authorization: Bearer `), but the conclusion prices out every regulated, air-gapped, Azure/Bedrock or LiteLLM shop. Fix is a `{baseUrl, keyEnv, model}` config where a non-default base URL **requires its own key var**. | `lib/model.mjs:41`,`:62`,`:159` | days | Pointing at a second host never sends the default credential; the loopback test stub still works | | 2 | **Make the "provider chain" actually multi-provider** | `lib/chain.mjs:1-11` opens with the failure it exists to prevent: a single upstream having a bad ten minutes takes down every user at once — and `buildChain` (`:57-70`) returns four **model ids** all sent to the same endpoint. The outage the file was written to prevent is still live. | `lib/chain.mjs:57` | days (after T2-1) | A stubbed 429 on provider A is answered by provider B | | 3 | **HTTP(S) proxy support** | Zero implementation hits for `HTTPS_PROXY`/`ProxyAgent`/`setGlobalDispatcher`; Node's `fetch` does not honour proxy env vars. The code already hands out `NODE_EXTRA_CA_CERTS` advice and already redacts a measured HTTP 407 — it just cannot route through one. Every enterprise laptop; the failure is `ECONNREFUSED` with advice that does not fix it. | `lib/model.mjs:200-215`,`:281-287`,`:425` · `lib/fetch-text.mjs:614` · `lib/h2.mjs:96` | days | A run succeeds through a local CONNECT proxy with `HTTPS_PROXY` set | | 4 | **Policy path scoping (`allowPaths` / `forbidPaths`)** | The full key set is tools/rounds/cost/dryRun/models/mcp (`lib/policy.mjs:121-152`) — no path granularity, so in a monorepo containing `infra/`, `terraform/` or another team's package the only setting is all-or-nothing. This is the most-requested guardrail before an agent is allowed near a real repo, and `mergePolicies` (`:375`) already gives it monotone merging for free. | `lib/policy.mjs:121`,`:375` | days | A write outside `src/` is refused and explained | | 5 | **`--sandbox`: run in a disposable copy** | `lib/best-of.mjs:31-60` already copies the workspace to a temp dir with `COPY_SKIP_DIRS` (`:42`) and a 256MB ceiling (`:54`), and applies a winner back. Answers "can I point this at a repo I care about", and at a third of a cent a rejected attempt is free to redo. ⚠️ Must ship as "protects your working tree", never as a jail — `lib/command.mjs:49-54` admits the hole. | `lib/best-of.mjs:31-60` · `lib/command.mjs:49` | days (most of it is the `node_modules` question and Windows junctions) | A rejected run leaves the real tree byte-identical | | 6 | **`--review`: per-file accept / skip / revert** | The only pre-execution control is `--dry-run` and the only diff view is a tool the *model* calls; there is no operator-facing gate. Cheapest possible answer to "what did it actually change". | `lib/git.mjs:82`,`:276` · `lib/report.mjs:124` | days | Inert under `--json`/`--parallel`/CI; bounded fallback for binary and very large files | | 7 | **Per-command approval (the middle setting between four binaries and `--shell`)** | `--shell` grants "ANY program on the machine … rm -rf, curl, ssh" for the whole run (`lib/command.mjs:109-136`). `lib/mcp-consent.mjs` already ships the exact substrate: prompt, hash what was approved, store under HOME, fail closed when non-interactive. ⚠️ Write it as an *amendment* to `command.mjs`'s "there is no clever middle setting" paragraph, not slipped past it. | `lib/mcp-consent.mjs:43`,`:45` · `lib/command.mjs:109-136` | **a week [corrected]** — the fail-closed matrix is the work, not the prompt | Fails closed in `--json`, `--parallel`, best-of and any non-TTY; trust keyed to the **resolved** binary path | | 8 | **Auto-enable the detected preset (the half item 7 of Tier 1 deferred)** | Converts the last refused round into zero. ⚠️ `LANG_MANIFESTS` (`lib/tools.mjs:395`) covers only typescript/python/rust/go — **there is no Ruby manifest**, so the detector can auto-enable at most 3 of 6 presets today. | `lib/tools.mjs:395`,`:410` · `lib/command.mjs:682` | days | Announced every run; an existing `commands.json` is final; `make` is never auto-enabled (`lib/command.mjs:192-215`) | | 9 | **Structured test-result extraction** | Parse (passed, failed, first failure, message) out of the stream while reading, for `node --test` TAP and `pytest -q` first. Makes the loop act on the failure rather than on surviving text, and gives `--json` the `failedTests[]` a CI consumer actually wants. | `lib/command.mjs:1654` (stream already read) · `:1866` `formatRunForModel` · `lib/report.mjs:130` | days for two runners; a week for four | **Abstain rather than guess**: an unrecognised runner returns null and renders today's raw log. A half-understanding parser reporting green is worse than the truncation it replaces | | 10 | **`--deadline 10m`** | `lib/command.mjs:1598` says it in the source: "there is no session-level deadline anywhere in this package", in a comment documenting a measured unbounded hang. Every individual call is bounded; the sum is not, and a loop of cheap rounds satisfies the dollar governor indefinitely. | `lib/turn.mjs:1803-1818` (the pre-round slot) · `lib/command.mjs:1598` | days | Must land in `sessionFailed` in the same commit or it becomes Tier 1 item 3 again | | 11 | **A Terminal-Bench number that can be non-zero** | The only quantitative claim a buyer would ask for, and it does not exist. ⚠️ Sequence: run it **after** the preset work or with `--shell`, because `lib/command.mjs:88-105` states the allowlist is the ceiling and the bench is largely made of exactly those tasks. ⚠️ Needs Docker — **not the owner's laptop**. | `bench/terminal-bench/results` · `lib/command.mjs:88-105` | days | A test asserts the harness *can* emit a non-zero reward; publish the number and say which allowlist produced it | | 12 | **A real-task canary on a schedule** | Every defect in this document is a live path with green tests over it. Fresh clone, temp workspace, one real task, `--budget 0.01 --strict`, assert an artifact exists and exit 0. | extend `test/cli-success-path.test.mjs` (today it drives the real binary against a **stub** on loopback) | days | Key-absent is a hard **red**, never a skip — a canary that skips is the defect it exists to catch | | 13 | **The MCP server exposes the differentiated tools** | Verified `lib/mcp-server.mjs:175`,`:219`: two tools, both env-gated, so a stranger connects and gets an empty list. Ship the ~12 tools a host does **not** already have natively — repl/repl_reset, evaluate, read_lines/read_around, the four LSP tools, web_search, plan_*, remember/forget, delegate — not 34 duplicates of Cursor's own file tools. ⚠️ **Exclude `generate_image`** or strangers spend our Modal budget. | `lib/mcp-server.mjs:175`,`:394` · `lib/tools.mjs:804-850` | **3–5 days [corrected]** — the server has no executor and no workspace root; both must be constructed and bounded | A host lists the tools and a stranger with no env vars gets a working set | | 14 | **`--quote` before the run** | The differentiator a per-token vendor structurally cannot offer. ⚠️ Only the history-backed version is worth shipping — with zero rounds observed `projectNext()` returns the same $0.00055 seed for every task ever, which is a confident wrong number. | `lib/budget.mjs` `projectNext` · `lib/escalate.mjs:140` | days — **blocked on Tier 1 items 6 and 35** | Presents a range from measured history and says plainly when there is none | | 15 | **Save the session on Ctrl-C** | `lib/turn.mjs:1136-1149` registers SIGINT/SIGTERM/SIGBREAK and exits immediately; nothing is persisted. ⚠️ The real work is that the accumulators live in `runSession`'s closure (`:1718`) — the handler needs a live snapshot before it can write anything. | `lib/turn.mjs:1136`,`:1718` · `bin/acuvo.mjs:915` | days | Bounded write; the `exit(128+n)` contract survives | | 16 | **A team defaults file** | Policy sets **ceilings** and cannot set **defaults** — there is no way to commit "this team uses model X, budget Y, these presets". Five developers cannot get the same behaviour without five identical shell profiles. `parsePolicyDocument`/`mergePolicies` already exist. | `lib/policy.mjs:102`,`:375` · `lib/command.mjs:425` | days | A committed file changes a fresh clone's first run; flags still override | | 17 | **`ACUVO_PASS_ENV`** | `scrubEnvironment` strips anything matching KEY/TOKEN/SECRET/PASSWORD/… (`lib/command.mjs:814`,`:913`) — correct, and it means every integration suite needing `DATABASE_URL` silently degrades to unit tests while reporting green. | `lib/command.mjs:814`,`:913`,`:427-455` | days | Read **only** from the parent environment, never from `.acuvo/commands.json`; echoed in the run header and the audit line | | 18 | **`budget.mjs` as the server-side governor** | Verified: the module has **no imports at all** — no fs, no net, injected clock (`:244`) — so it drops into a server unchanged, refuses *before* a round it cannot afford (`:390`), prices unknown rounds at the projection (`:322`), and has `reserveUsd` for postpaid. | `lib/budget.mjs` (whole module) | days | Its own documented limit holds: a >1.4×/round cost curve can overshoot by one round | | 19 | **A licence primitive that gates the server, never a local `if`** | Verified by grep: no licence, billing, account, entitlement, seat, quota, trial or telemetry code exists anywhere. `node:crypto` is already imported in four modules, so ed25519 adds zero dependencies. ⚠️ `policyFingerprint` is a hash, **not** a signature — copy the shape, don't cite it as prior art. | new module · `lib/policy.mjs` (shape) | days | One signed blob, one public key, no login/session/refresh; it identifies an account and raises a ceiling, and unlocks nothing locally | | 20 | **Opt-in crash reports and an update notice** | `bin/acuvo.mjs:1475-1483` catches a crash and correctly says "this is a bug in acuvo-code" — and that stack exists only in one terminal. Two-sided: we learn nothing at 100 users, and an installed copy never learns a fix shipped. | `bin/acuvo.mjs:1475` | days (needs an endpoint — pairs with T2-1) | Explicit consent, the stack only, never the task text | --- ## DELIBERATELY NOT DOING **Anything that assumes paid GPU** — the owner ruled it out verbatim. So: no issuing Modal credentials (Tier 1 item 25 states the split honestly instead), no hosting media endpoints for strangers, no talking-head or voice work inside the CLI. The `generate_image` default endpoint is a *decision to close*, not a capability to grow. **Building our own browser driver.** `lib/tools.mjs:166-177` already confesses that Playwright MCP and Chrome DevTools MCP are free and one install away. Curation is the edge, not access — ship them as a curated default (Tier 1 item 27) and keep the token-cheap verdict on top. **PR-review automation as a differentiator.** GitHub's own agent does this inside the PR UI with zero install and home-field advantage. Build it as parity only, if item 16 lands and users ask; never lead with it. **"Better planning" as a modelling claim.** Long-horizon decomposition is precisely where every frontier lab is spending in 2026 and a 12-month lead is not purchasable. We ship the *affordability* framing or we don't ship the claim. **MCP resources and prompts.** Verified missing (`lib/mcp.mjs:321` is the only `tools/list` call) — but no payer evaluates a coding CLI on protocol surface completeness. Strategy-deck value, not purchase value. **JVM / .NET / PHP / C++ presets ahead of demand.** Each is a grammar plus tests plus a Windows resolution trap, and `./gradlew` is agent-writable shell with a daemon that never exits. Build **one**, when a named prospect asks. **A search index or a bundled ripgrep.** `MAX_FILES_SCANNED=4000` (`lib/search.mjs:78`) is reported honestly, so the failure is loud. The index is a small database with a cache-coherence problem (weeks); `@vscode/ripgrep` breaks the zero-dependency line, which is a real selling point. Do not start until a real repo hits the cap. **Shell completion.** Corrected to about a day for three dialects, changes no capability, and every rival ships it — pure polish with nobody to notice. **Per-seat machine ids and team attribution.** Adding a machine id to a log whose stated promise is that it contains nothing identifying (`lib/audit.mjs:74-104`) is a real privacy regression, and it should only ever be bought for a concrete need. Land it *with* the gateway or not at all. **`docs-truth` assertions over prose comments.** Proposed twice in the source lists; rejected. A regex over English in a codebase whose comments *are* the documentation is a machine for turning correct work red — the exact failure this repo has paid for four times. Keep every assertion against a **parsed value**: a flag row, a constant, an array length. **A local licence `if`.** A check that runs on the user's machine, in source they can read, is not an enforcement mechanism, and pretending otherwise costs more credibility than the gate is worth. **Concurrent tool calls, ahead of anything.** Correct diagnosis, real fix, filler priority — nobody has ever chosen a coding agent because its reads were parallel. ---