Repository navigation
Description
Owner 2026-11-21: oxa is a lab tool to prove efficiency, speed and power, more powerful than Codex yolo, not an enterprise product. Only the block list in docs/threat-model.md "Risk we accept" (#2269) may refuse; everything else is owner-configurable with generous defaults, warn+record, no invented limits, yolo never asks.
Code audit of main 7665139 (each item checked by a second reviewer against the code). Fix them in the order below (high impact first); split into PRs of up to about 800 lines; each PR updates SECURITY.md/AGENTS.md/user docs it touches.
- [high]
oxa/oxa-cli/src/lead_loop.rs:16: Lead loop only observes and turns every board action into an owner ask; the publish_pending path (line 239) says outright 'the loop cannot push'.- Hits: Lead: a PR that is ready, CI that failed or an accepted commit that is not pushed all wait for the owner to answer an ask. The lead cannot drive the release.
- Fix: Add owner setting oxa.lead.act (default on in yolo): assign live workers, publish accepted commits and enqueue ready PRs. Record each action and keep the ask only as a notice.
- [high]
oxa/oxa-cli/src/lead_chat/conversation.rs:10: Owner chat is one fixed turn with no tools: message capped at 4KB, reply at 512 tokens + 3584 reasoning, JSON only, 8 board facts. Any tool call or citation outside the shown facts fails.- Hits: Owner and lead: asking the lead anything real fails with lead_reply_incomplete or lead_evidence_invalid. A thinking model runs out of its token budget.
- Fix: Run chat as a normal lead session turn with tools and the owner's model limits. Drop the fixed TURN_TOKENS and MAX_BOARD_FACTS=8 (evidence.rs:12). Warn and record an unknown citation instead of failing.
- [high]
oxa/oxa-work/src/queue.rs:33: oxa work --queue runs one task at a time unless --max is passed every run.- Hits: Owner and lead: queued tasks run in series by default, so throughput is one task.
- Fix: Default max to a user setting oxa.work.queueMax, generous by default (e.g. CPU count / 2 or 8).
- [high]
oxa/oxa-cli/src/workers/tool.rs:73: oxa.workers.max defaults to 4 live workers per session; the next start is refused outright (line 786) and so is a resume (line 1222).- Hits: Lead and models: a lead fanning out 6-10 slice workers is refused at the fifth and must stop or wait for one.
- Fix: Raise the default (e.g. 16). Past the limit, queue the start or warn and record instead of erroring. Keep the setting user-only.
- [medium]
oxa/oxa-cli/src/workers/tool.rs:78: Workers can never start workers: OXA_WORKER_DEPTH set means the worker tool is not built at all.- Hits: Workers and models: a slice worker cannot split its own job into sub-workers, so the tree is flat and everything goes through the lead.
- Fix: Add owner setting oxa.workers.maxDepth (default 2) and pass depth+1 to the child instead of a boolean marker.
- [medium]
oxa/oxa-work/src/lane.rs:17: Fixed 75-minute LANE_WAIT: lane acceptance fails when lane CI has not finished by then.- Hits: Workers: a slow or busy runner fails acceptance and the task needs --rerun, wasting the work already done.
- Fix: Make it owner setting oxa.work.laneWaitMinutes or derive it from task max_time. On timeout, record and keep waiting or hand off instead of failing.
- [medium]
oxa/oxa-work/src/lib.rs:98: Manual and legacy task files default to max_time 45 minutes (runner tasks get 4h).- Hits: Owner and workers: hand-written task files are wrapped up at 45 minutes in the middle of a large slice.
- Fix: Use the same generous default as runner tasks (4h), or a user setting oxa.work.maxTimeDefault.
- [medium]
oxa/oxa-work/src/board/landing.rs:8: Merge-queue rejection allows exactly one auto-retry (Retry::Consumed -> RetryExhausted), spaced at least 30 minutes apart, then waits for a new main.- Hits: Lead: a flaky merge-group CI leaves the PR in RetryExhausted until a human acts, and every bounce costs 30 minutes or more.
- Fix: Add owner settings landing.maxRetries (default 3) and retrySpacingMinutes (default 5). Warn and record on repeat rejection.
- [medium]
oxa/oxa-cli/src/lead_loop.rs:26: The lead loop, lead chat (lead_chat.rs:180), lead status (suite_status/lead.rs:73) and oxa local (dispatch.rs:329) all refuse any caller with OXA_CODING_AGENT, AI_AGENT or OXA_SUBAGENT_DEPTH set.- Hits: Lead, Claude and Codex: an agent shell cannot run or inspect the lead, the lead's own tools see it as 'unknown', and dogfood verification has to go through a human.
- Fix: Allow agent callers with the owner binding, and route lead actions through the session's owner-confirm broker (yolo auto-answers). Keep the refusal only for share/guest serving.
- [medium]
oxa/oxa-cli/src/work_cmd/native_queue.rs:140: A native steering objective over 2048 bytes is refused, and the whole handoff is capped at 4096 bytes (managed_steering.rs:14).
- Hits: Lead and models: a detailed steering objective or plan is rejected as 'invalid native steering objective'.
- Fix: Raise to about 64KB (a pipe buffer holds that with one write loop) or pass the objective through a 0600 file. Truncate with a warning instead of refusing.
- [medium]
oxa/oxa-cli/src/workers/tool.rs:838: Worker start is refused when branch agent/ already exists; names are also capped at 40 chars and a reason over 300 chars or longer than one line is refused (model_policy.rs:75).
- Hits: Models: re-spawning a stopped worker, or giving a verbose reason, wastes a tool turn on an error and a retry with a new name.
- Fix: Auto-suffix the name (-2, -3) when the branch exists. Truncate and flatten reason instead of erroring.
- [low]
oxa/oxa-work/src/queue.rs:776: Disk admission fails closed: if df fails or cannot be parsed (free_bytes None), every queued task is blocked.
- Hits: Owner and workers: on a host where df is missing or prints an odd format, the queue silently stops admitting work.
- Fix: On a df error, warn, record and admit. Keep the 512MB minimum free space only when the reading is real.
- [low]
oxa/oxa-a2a/src/server.rs:75: Server limits are validated to a hard band (timeout <=60s, connections 2-32, body <=16MB). A stream dies at the 30s request deadline and at a 1MB total output (line 472).
- Hits: Lead and workers over a2a: a long-running agent task stream is cut at 30s and the client has to resubscribe or poll.
- Fix: Drop the upper bounds in the validation. Give streams their own idle deadline that renews on each event instead of the request deadline.
Stays (protects a real block class): oxa/oxa-work/src/publish.rs Publish refuses when the pushed commits add secret content (content scan, plus fail-closed when the scan cannot run, line 680).; oxa/oxa-work/src/publish.rs Publishing and landing are refused in offline mode (also publish/landing.rs:191).; oxa/oxa-cli/src/dispatch.rs Share/guest serving and guest key commands are refused from an agent tool.; oxa/oxa-cli/src/workers/tool.rs oxa.workers.enabled, oxa.workers.max and oxa.workers.repository are read from user settings only, so a project file cannot raise or enable them.
Done when: every item above is fixed or answered with evidence on this issue.
Activity