nomarmy 0.1.0-alpha.1 → 0.1.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -449
- package/bin/nomarmy.mjs +456 -68
- package/config/common.env +4 -2
- package/config/profiles/hosted.env +6 -0
- package/config/profiles/remote.env +9 -0
- package/docker/Dockerfile.go +5 -3
- package/docker/Dockerfile.rust +16 -1
- package/e2e.sh +6 -0
- package/harnesses/_template/README.md +27 -0
- package/harnesses/_template/harness.yml +26 -0
- package/harnesses/browser-playwright/README.md +35 -0
- package/harnesses/browser-playwright/fixture/package.json +1 -0
- package/harnesses/browser-playwright/fixture/page.html +1 -0
- package/harnesses/browser-playwright/fixture/page.spec.js +5 -0
- package/harnesses/browser-playwright/fixture/playwright.config.js +8 -0
- package/harnesses/browser-playwright/harness.yml +18 -0
- package/harnesses/go/README.md +45 -0
- package/harnesses/go/harness.yml +14 -0
- package/harnesses/mock-oidc/README.md +31 -0
- package/harnesses/mock-oidc/fixture/.nomarmy.yml +4 -0
- package/harnesses/mock-oidc/fixture/discovery.test.mjs +16 -0
- package/harnesses/mock-oidc/harness.yml +19 -0
- package/harnesses/node/README.md +53 -0
- package/harnesses/node/harness.yml +18 -0
- package/harnesses/python/README.md +46 -0
- package/harnesses/python/harness.yml +16 -0
- package/harnesses/rust/README.md +45 -0
- package/harnesses/rust/harness.yml +13 -0
- package/install.sh +35 -8
- package/lib/admission.mjs +103 -25
- package/lib/agents.mjs +6 -5
- package/lib/army.mjs +23 -10
- package/lib/budget-state.mjs +5 -2
- package/lib/budget.mjs +4 -1
- package/lib/config.mjs +15 -0
- package/lib/connect.mjs +45 -8
- package/lib/continue-from.mjs +93 -0
- package/lib/coordinator-instructions.mjs +4 -1
- package/lib/diff-checks.mjs +90 -0
- package/lib/dispatch-schema.mjs +12 -11
- package/lib/doctor.mjs +111 -6
- package/lib/egress-proxy.mjs +116 -0
- package/lib/execute.mjs +97 -16
- package/lib/execution.mjs +57 -0
- package/lib/git-record.mjs +2 -1
- package/lib/harness-schema.mjs +61 -0
- package/lib/harnesses.mjs +99 -0
- package/lib/health.mjs +72 -12
- package/lib/install-freshness.mjs +111 -0
- package/lib/job-format.mjs +32 -0
- package/lib/model-probe.mjs +61 -0
- package/lib/openclaw-run.mjs +5 -6
- package/lib/outcome.mjs +12 -2
- package/lib/outcomes.mjs +6 -0
- package/lib/podman-health.mjs +41 -0
- package/lib/propose.mjs +10 -11
- package/lib/registry-python.mjs +96 -0
- package/lib/registry-secrets.mjs +128 -0
- package/lib/repo-query.mjs +13 -7
- package/lib/runs.mjs +7 -1
- package/lib/sandbox-images.mjs +484 -81
- package/lib/sandbox-vm.mjs +32 -0
- package/lib/schema.mjs +10 -11
- package/lib/scout.mjs +6 -2
- package/lib/server-context.mjs +21 -1
- package/lib/setup-steps.mjs +55 -0
- package/lib/statusline.mjs +32 -6
- package/lib/usage-limits.mjs +126 -0
- package/lib/verification-artifacts.mjs +46 -0
- package/lib/verification-flow.mjs +52 -7
- package/lib/verification-network.mjs +66 -0
- package/lib/verify.mjs +338 -85
- package/lib/worker-prompt.mjs +5 -2
- package/lib/zod-issues.mjs +15 -0
- package/mcp/server.mjs +60 -14
- package/package.json +7 -5
- package/playbooks/feature.md +3 -3
- package/scripts/configure-openclaw.sh +40 -4
- package/scripts/generate-harness-docs.mjs +42 -0
- package/scripts/install-llama-cpp.sh +8 -1
- package/scripts/lib.sh +30 -3
- package/scripts/start-inference.sh +10 -3
- package/scripts/stop-inference.sh +8 -1
- package/scripts/verify-install.sh +16 -6
package/README.md
CHANGED
|
@@ -3,494 +3,121 @@
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<a href="https://github.com/rayson-tech/nomarmy/actions/workflows/ci.yml"><img src="https://github.com/rayson-tech/nomarmy/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
5
5
|
<a href="https://www.npmjs.com/package/nomarmy"><img src="https://img.shields.io/npm/v/nomarmy/alpha?label=npm%40alpha" alt="npm"></a>
|
|
6
|
-
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License: Apache 2.0"></a>
|
|
6
|
+
<a href="https://github.com/rayson-tech/nomarmy/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License: Apache 2.0"></a>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
|
-
<p align="center"><em>
|
|
9
|
+
<p align="center"><em>Every byte verified.</em> 🍪</p>
|
|
10
10
|
|
|
11
11
|
**Your coding assistant plans; sandboxed workers build; nothing counts until nomArmy has checked it.**
|
|
12
12
|
|
|
13
|
+
AI coding workers are confident. Their "done, all tests pass" is a claim, not evidence. nomArmy lets your coding assistant (Claude Code, Codex or Cursor) hand work to workers called **noms**, then checks every change itself before anything is committed: the real diff, your tests run in a fresh sandbox, a check that those tests actually catch the change, and a secret scan.
|
|
14
|
+
|
|
13
15
|
## TL;DR
|
|
14
16
|
|
|
15
|
-
1. **Have** Git, Node
|
|
16
|
-
2. **Install
|
|
17
|
+
1. **Have** Git, Node 24.16+ (or 26.1+) and [Podman](https://podman.io). On macOS, give Podman 8 GiB: `brew install podman && podman machine init --memory 8192 && podman machine start`.
|
|
18
|
+
2. **Install and set up:**
|
|
17
19
|
```bash
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
npm install -g nomarmy@alpha
|
|
21
|
+
cd your-project
|
|
22
|
+
nomarmy setup
|
|
21
23
|
```
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
Developed and maintained by Rayson Technologies. This is an alpha (`0.1.0-alpha`).
|
|
35
|
-
|
|
36
|
-
## How it works
|
|
37
|
-
|
|
38
|
-
1. The General briefs a job: a task, acceptance criteria, the tests that prove it.
|
|
39
|
-
2. nomArmy creates a worktree from your branch and runs the worker in a Podman sandbox with no network and no host credentials. (One exception, the Claude subscription: see [Security posture](#security-posture).)
|
|
40
|
-
3. The worker edits, runs tests, and ends with a four-line report: `STATUS`, `TESTS`, `NOT_DONE`, `NOTE`.
|
|
41
|
-
4. nomArmy treats that report as a claim. It reads the real diff from git, runs your verification profile itself in a fresh sandbox, reverts the production change to check the tests actually fail without it, and scans for secrets.
|
|
42
|
-
5. Only then does it commit, on the worker's own branch. It never merges into yours: reviewing and integrating stay with the General, and with you.
|
|
43
|
-
|
|
44
|
-
A malformed report isn't automatically a failure: if the repository changed, nomArmy verifies independently and may recover the work. Failing verification stays failed, unconditionally. And the checks aren't the General's to waive: a repo's `.nomarmy.yml` policy (on by default for new repos) makes verification and the revert check mandatory for every job.
|
|
45
|
-
|
|
46
|
-
Around that core: **agents** say where a job can run, the **army** says which role runs on which agent, and **`/feature`** runs a whole feature end to end, from plan through build, review and acceptance, handing you a branch to merge.
|
|
47
|
-
|
|
48
|
-
## Install
|
|
49
|
-
|
|
50
|
-
| Platform | Guide |
|
|
51
|
-
|---|---|
|
|
52
|
-
| macOS (Apple Silicon) | [macOS](#macos-apple-silicon) |
|
|
53
|
-
| Linux, with or without an NVIDIA GPU | [Linux](#linux) |
|
|
54
|
-
| Windows | [Windows](#windows) |
|
|
55
|
-
| NVIDIA DGX Spark | [DGX Spark](#dgx-spark) |
|
|
56
|
-
| No GPU, or no local inference | [Cloud (Bedrock)](#cloud-bedrock) |
|
|
57
|
-
|
|
58
|
-
Every platform needs Git and Podman. `nomarmy doctor` checks the host and prints a fix for anything missing.
|
|
59
|
-
|
|
60
|
-
`install.sh` builds llama.cpp for local inference, installs and configures [OpenClaw](https://github.com/openclaw/openclaw) (the host-side broker every model call goes through), builds the sandbox image, and registers the MCP server if Claude Code is installed. `nomarmy connect` (run by `install.sh`, or by hand for Codex and Cursor) also installs the `/feature` command, Claude Code's status line and, on macOS, nomArmy's notifier. The coordinator gets nomArmy's instructions from the MCP server itself, so there's nothing to copy into your projects.
|
|
61
|
-
|
|
62
|
-
**From npm:** `npm install -g nomarmy@alpha` gives you the `nomarmy` command; `nomarmy setup` then picks a profile and model and prints the `install.sh` command to run. Installing from a clone, as in the TL;DR, is the most tested path.
|
|
63
|
-
|
|
64
|
-
### macOS (Apple Silicon)
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
git clone https://github.com/rayson-tech/nomarmy.git
|
|
68
|
-
cd nomarmy
|
|
69
|
-
chmod +x install.sh e2e.sh scripts/*.sh
|
|
70
|
-
./install.sh --profile macbook-pro
|
|
71
|
-
./e2e.sh --profile macbook-pro
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
`install.sh` builds llama.cpp with Metal, installs and configures OpenClaw, starts the model, builds the sandbox, and registers the MCP server if Claude Code is installed. `e2e.sh` should end with:
|
|
75
|
-
|
|
76
|
-
```text
|
|
77
|
-
PASS inference health
|
|
78
|
-
PASS model discovery
|
|
79
|
-
PASS worker report contract
|
|
80
|
-
PASS autonomous edit + verification
|
|
81
|
-
=== E2E PASS ===
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
If `e2e.sh` says `No API key found for provider "llama-cpp"`, run `./scripts/configure-openclaw.sh macbook-pro` and try again.
|
|
85
|
-
|
|
86
|
-
### Linux
|
|
87
|
-
|
|
88
|
-
`install.sh` installs the toolchain, CMake, Git and Node when they're missing. Install Podman yourself first (`apt`, `dnf`, `zypper`, `pacman` or `apk install podman`).
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
# no NVIDIA GPU
|
|
92
|
-
./install.sh --profile cpu-linux --no-claude && ./e2e.sh --profile cpu-linux
|
|
93
|
-
|
|
94
|
-
# an NVIDIA GPU (not a DGX Spark: see below)
|
|
95
|
-
./install.sh --profile nvidia-linux --no-claude && ./e2e.sh --profile nvidia-linux
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
CPU-only Linux works but is slow for interactive use: see [Sizing](#sizing).
|
|
99
|
-
|
|
100
|
-
### Windows
|
|
101
|
-
|
|
102
|
-
`install.sh` doesn't run natively. In order of preference:
|
|
103
|
-
|
|
104
|
-
1. **WSL2** (the supported path): install a Linux distro under WSL2, install Podman inside it, and follow the [Linux](#linux) guide entirely inside the distro. Watch WSL2's default cap of about half your RAM (`.wslconfig`), and set `git config --global core.longpaths true` (`nomarmy doctor` checks this).
|
|
105
|
-
2. **Native llama.cpp on Windows**, built from source: more RAM, more setup. Prebuilt binaries aren't a safe shortcut; some CPUs crash every backend at startup.
|
|
106
|
-
3. **No local inference**: `./install.sh --profile bedrock` (see [Cloud (Bedrock)](#cloud-bedrock)), or hosted agents only.
|
|
107
|
-
|
|
108
|
-
`nomarmy sizing` reports what your hardware can support.
|
|
109
|
-
|
|
110
|
-
### DGX Spark
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
git clone https://github.com/rayson-tech/nomarmy.git
|
|
114
|
-
cd nomarmy
|
|
115
|
-
chmod +x install.sh e2e.sh scripts/*.sh
|
|
116
|
-
./install.sh --profile dgx-spark --no-claude
|
|
117
|
-
./e2e.sh --profile dgx-spark
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
Moving from a Mac install? Don't copy a Mac binary or model cache over: clone fresh and let `install.sh` build llama.cpp for CUDA on that machine.
|
|
121
|
-
|
|
122
|
-
### Cloud (Bedrock)
|
|
123
|
-
|
|
124
|
-
No GPU, no local build:
|
|
125
|
-
|
|
126
|
-
```bash
|
|
127
|
-
export AWS_BEARER_TOKEN_BEDROCK=... # or configure an AWS profile
|
|
128
|
-
./install.sh --profile bedrock
|
|
129
|
-
./e2e.sh --profile bedrock
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
Enable the models you intend to use in the Bedrock console first. `bedrock-cheap` runs the coordinator on the same open-weight model as the workers: real savings, a materially weaker guarantee (see `policies/reviewer.md`).
|
|
133
|
-
|
|
134
|
-
## Agents: where a job can run
|
|
135
|
-
|
|
136
|
-
`~/.config/nomarmy/agents.yml` (or `$NOMARMY_CONFIG_DIR`) lists every account a job can run on. An api or subscription agent is the **account**, not a model: the model is chosen per role or per job, and a `model` on the agent is only an optional default.
|
|
137
|
-
|
|
138
|
-
| Kind | What it is | Set up with |
|
|
139
|
-
|---|---|---|
|
|
140
|
-
| `local` | Your local llama-server model. `local` is built in; define another with `slot: gpt` for a second loaded model (see `config/agents.yml.example`) | nothing |
|
|
141
|
-
| `api` | A metered API key: `xai`, `openai`, `anthropic`, `deepinfra`, `bedrock`, `azure-openai`, `openai-compatible` (with `base_url`), or `openclaw` for any other OpenClaw provider by id | `nomarmy agents add api` |
|
|
142
|
-
| `subscription` | **One person's own** Claude, ChatGPT or Muse Code plan. Never pooled; every job on it names its owner. A Claude subscription's tools run on your machine, so it's for scouts and reviews unless you allow more (see [Security posture](#security-posture)) | `nomarmy agents add subscription claude\|codex\|meta` |
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
nomarmy agents add # asks which kind, then walks through it
|
|
146
|
-
nomarmy agents list # each agent, and which roles use it
|
|
147
|
-
nomarmy agents update codex --max-concurrent 3
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
`agents add` does the whole setup and asks only when something needs you:
|
|
151
|
-
|
|
152
|
-
- **An api agent**: it registers the key with OpenClaw over stdin, typed once or read from an environment variable you name, and makes a test call. `agents.yml` only ever holds the variable's *name*.
|
|
153
|
-
- **A subscription**: it installs the vendor's CLI if it's missing, runs that CLI's login, installs the OpenClaw plugin the vendor needs, lists the models your plan can use, defaults the owner to the account you logged in as, and makes a real test call before saving. For Meta it also copies the key Muse Code's login stored in your macOS keychain into OpenClaw (only that auto-connected key is flat-rate, per Meta's docs), and adds Meta's provider entry to OpenClaw's config.
|
|
154
|
-
|
|
155
|
-
nomArmy starts each login; the vendor's CLI and OpenClaw do the authenticating.
|
|
156
|
-
|
|
157
|
-
```yaml
|
|
158
|
-
# ~/.config/nomarmy/agents.yml (see config/agents.yml.example)
|
|
159
|
-
agents:
|
|
160
|
-
claude: { kind: subscription, provider: claude-cli, owner: you@example.com }
|
|
161
|
-
codex: { kind: subscription, provider: openai, owner: you@example.com, max_concurrent: 3 }
|
|
162
|
-
grok: { kind: api, provider: xai, auth_env: NOMARMY_XAI_API_KEY, thinking: high }
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
**Which model runs**, first to last: the job's own `model` (the General's choice), then the role's model unless it's `auto`, then the agent's default. No model at all is refused, never guessed, and nothing picks between agents at random. A job with no role and no agent runs on `local`.
|
|
166
|
-
|
|
167
|
-
**Settings**:
|
|
168
|
-
- `max_concurrent`: how many jobs run on this agent at once, counted across every session on the machine. Defaults are 1 for a subscription and 2 for an api key; raising it spends your plan's usage limits faster. Api and subscription jobs together are also capped by `NOMARMY_MAX_POOL_WORKERS` (default 4), separately from local workers.
|
|
169
|
-
- `thinking`: `true` follows the job's level, `false` is off, or a fixed `low`, `medium` or `high`.
|
|
170
|
-
- `context_window`: overrides OpenClaw's catalog for a model newer than it knows.
|
|
171
|
-
|
|
172
|
-
Changes apply to the next job with no restart. The exception is a **new** api agent, which needs one `nomarmy connect claude` so the MCP server sees its key variable (`agents add` offers to do it).
|
|
173
|
-
|
|
174
|
-
**Why subscriptions are individual, never pooled.** Anthropic's terms separate "individual experimentation and automation" (sanctioned, including third-party apps through the Agent SDK, per seat and non-transferable) from "teams running shared production automation" (use the metered API). So a subscription agent belongs to one named person, a job on it must say `on_behalf_of: "<owner>"` or it's refused, and nothing ever load-balances across subscriptions. xAI subscriptions are out of scope until its terms are clear; an xAI API key is fine.
|
|
175
|
-
|
|
176
|
-
**One credential per provider id.** OpenAI, Meta and xAI keep a subscription and an API key under the same OpenClaw provider id, so `agents.yml` refuses an api agent and a subscription agent on the same one. Claude never collides: its subscription is `claude-cli`, its API key `anthropic`. A ChatGPT plan runs as `openai/<model>` through the Codex login.
|
|
177
|
-
|
|
178
|
-
**Your plan decides which models run.** A model can be listed and still refused: on a ChatGPT plan, the Codex route runs gpt-6-astra and the gpt-5.6 models but refuses gpt-6-sol and gpt-6-luna. `army assign` and `agents update --probe` test the exact route a job takes, so they catch this before a job does.
|
|
179
|
-
|
|
180
|
-
**Vendor terms and platform risk.** Every model call goes through [OpenClaw](https://github.com/openclaw/openclaw), and subscriptions are reached through each vendor's own CLI or login. We've read the terms that apply (see above), but using a personal subscription through a harness is exactly the kind of use vendors tighten, and a change in a vendor's terms or in OpenClaw can stop a subscription agent from working. Local models and API keys don't carry that risk. Plan on subscriptions as a convenience, not the only way your roles can run.
|
|
181
|
-
|
|
182
|
-
**Picking an agent.** Build work goes to a sandboxed agent: `local`, an api key, Codex or Muse. `local` for a bounded change against a written spec with a test; your code never leaves your machine. An api or subscription agent when the work needs more than the local model, knowing it sends code to that vendor. That's a decision about where your source travels, separate from the trust boundary, which is the same for every agent. The General itself when the answer isn't known yet.
|
|
183
|
-
|
|
184
|
-
## The army: who does what
|
|
185
|
-
|
|
186
|
-
The **General** is your coordinator session. Its charter is fixed by nomArmy: it plans and decomposes, makes architecture and security decisions, briefs and dispatches each role, reviews every result against nomArmy's verified record, owns git and integration, and gives final acceptance. It runs outside every sandbox and is never dispatched to. What you define is which agent it is:
|
|
187
|
-
|
|
188
|
-
```bash
|
|
189
|
-
nomarmy army general claude # the agent for your own Claude seat
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
That lets nomArmy flag a role that runs on the General's own agent (a review that isn't independent) or on the same subscription (the same usage limit).
|
|
193
|
-
|
|
194
|
-
Every other role is yours: a name, when the General calls it, a phase, and the agent it runs on.
|
|
195
|
-
|
|
196
|
-
```bash
|
|
197
|
-
nomarmy army init # the default roster
|
|
198
|
-
nomarmy army assign sr-dev codex gpt-6-astra # an agent and a model
|
|
199
|
-
nomarmy army assign pm codex auto # the General picks the model per job
|
|
200
|
-
nomarmy army assign ui-ux codex gpt-6-astra --project # this repo, committed
|
|
201
|
-
nomarmy army assign security-analyst grok grok-4.7 --local # just you, just this repo
|
|
202
|
-
nomarmy army show # the General, the roster, and who set what
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
`army assign` makes a real test call on the job's route before it saves, and refuses a model that doesn't run.
|
|
206
|
-
|
|
207
|
-
The default roster follows a normal delivery cycle. The **Sr Dev** does the first cut and keeps the harder implementation, handing simple, well-specified work to **Jr Devs**; **UI/UX** gets UI work. Once the build is done, the specialists who apply review it (**data architect** for star schema and medallion design, **security analyst**), the **PM** reviews against the plan, and the **PO** and **stakeholders** test end to end. Not every role runs every time. Every role starts on `local`.
|
|
208
|
-
|
|
209
|
-
A job dispatches with `army_role: "security-analyst"`: nomArmy runs it on that role's agent and opens the brief with the role's description. The General reads the whole roster through the read-only `army` MCP tool.
|
|
210
|
-
|
|
211
|
-
**Config layers**, merged like Claude Code's settings (later wins, field by field):
|
|
212
|
-
|
|
213
|
-
| Layer | File | Committed | Holds |
|
|
214
|
-
|---|---|---|---|
|
|
215
|
-
| global | `~/.config/nomarmy/config.yml` | no | your default army, your General, your run limits |
|
|
216
|
-
| project | `<repo>/.nomarmy.yml` (`army:`, beside `verification:`) | yes | the team's roles for this repo (never the General) |
|
|
217
|
-
| local | `<repo>/.nomarmy.local.yml` | no; a tracked copy is refused | your overrides for this repo |
|
|
218
|
-
|
|
219
|
-
An army section can only **name agents**. It has no field for a credential, endpoint, owner or provider, so a hostile `.nomarmy.yml` in a cloned repo can at worst route a job to one of your own agents. It's also why a project file uses generic agent names (`codex`, not `jason-codex`): each teammate defines an agent by that name on their own login.
|
|
220
|
-
|
|
221
|
-
**Shared machines** (a team DGX Spark): give each person their own OS account. Subscription logins live in that account's home directory and keychain, never in a nomArmy file, so each person's coordinator only reaches their own subscriptions, and nomArmy refuses an `agents.yml` another account owns or can write. One OS account shared by several people is the pooling this design exists to prevent, and `on_behalf_of` can't detect it.
|
|
222
|
-
|
|
223
|
-
## `/feature`: a feature, end to end
|
|
224
|
-
|
|
225
|
-
```
|
|
226
|
-
/feature add join partners to the schema context
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
The General runs the army's whole workflow on its own and comes back when it's done: a plan, the build (Sr Dev, Jr Dev, UI/UX), the reviews that apply (data architect, security analyst, then the PM against the plan) and acceptance (PO, stakeholder), sending fixes back to the builders along the way. It ends with **a branch for you to review and merge**. nomArmy never merges or pushes, and never deploys or touches cloud credentials; those are hard stops. Any other decision it would normally ask you about, it makes conservatively, records, and keeps going, and every such decision is in the final report.
|
|
230
|
-
|
|
231
|
-
`nomarmy connect` installs it: `/feature` in Claude Code, a `nomarmy-feature` skill in Codex, and `/feature` in Cursor (Cursor's path follows its documentation and hasn't been tested against a real install). A command of your own with the same name is never overwritten.
|
|
232
|
-
|
|
233
|
-
**Limits.** Each feature is a *run* (`run_start`), and its jobs join it automatically. Admission enforces the run's limits and warns at 80%:
|
|
234
|
-
|
|
235
|
-
```yaml
|
|
236
|
-
# ~/.config/nomarmy/config.yml (or .nomarmy.local.yml; never the committed .nomarmy.yml)
|
|
237
|
-
army:
|
|
238
|
-
run_limits:
|
|
239
|
-
max_jobs: 40 # the defaults
|
|
240
|
-
max_api_usd: 10 # api agents only; a subscription isn't billed per call
|
|
241
|
-
max_hours: 6
|
|
242
|
-
warn_at: 0.8
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
The General can lower these for one run, never raise them. When a vendor answers with a usage-limit error, that agent is paused for the rest of the run and the General stops and tells you; it never moves the role to another vendor to get around it. The one limit no tool can see is your coordinator's own seat. If that runs out mid-feature, the run log (kept current after every phase) lets `/feature resume <run-id>` in a fresh session carry on.
|
|
246
|
-
|
|
247
|
-
## Watching what nomArmy is doing
|
|
248
|
-
|
|
249
|
-
- **Claude Code's status line** shows what's running in this repo, a count for other repos, the open run, and the most serious health warning: `Opus 5.5 · rayson-senti │ 🍪 2: sr-dev codex 9m 10f · scout grok 1m │ run 3/14 $0.41`. `nomarmy connect claude` installs it unless you have your own; then `nomarmy statusline` prints nomArmy's part for you to add.
|
|
250
|
-
- **Desktop notifications** when a job finishes, a run crosses a limit or pauses an agent, or a health check finds a new problem. They come from nomArmy itself, so they work with any coordinator; on macOS they carry nomArmy's icon. `NOMARMY_NOTIFY=0` turns them off.
|
|
251
|
-
- **`nomarmy jobs --watch`** is a live table; **`nomarmy jobs --events`** prints one line per job start, phase change and finish, which the General watches in the background instead of polling.
|
|
252
|
-
- **`run_status`** lists a run's running and finished jobs, with each one's phase, last tool call and files changed so far.
|
|
253
|
-
- **Health checks** run a minute after each server starts and every 6 hours after that: logins about to expire, OpenClaw and plugin versions, roles that can't run, providers missing from OpenClaw's config, models refused on a real job, and storage. `nomarmy health` runs them now.
|
|
254
|
-
|
|
255
|
-
**Storage** looks after itself. OpenClaw's scratch files (about 1.2 GB for a Codex job) go when each call ends, and each health check removes finished jobs' remaining runtime data after a day (`NOMARMY_AUTO_PRUNE_HOURS`, `0` to turn it off), keeping every job's record and report. `nomarmy jobs --prune --older-than 0` does it for every finished job now.
|
|
256
|
-
|
|
257
|
-
## Your repository
|
|
258
|
-
|
|
259
|
-
### `.nomarmy.yml`
|
|
260
|
-
|
|
261
|
-
A repo's execution contract: its verification profiles and, optionally, its army and dependency settings. `nomarmy init` proposes one from what it finds (compose files, CI steps, requirements files, test commands) and writes it only after you confirm. nomArmy reads it from your checkout, never from a job's worktree, so a worker can't weaken its own checks.
|
|
262
|
-
|
|
263
|
-
```yaml
|
|
264
|
-
verification:
|
|
265
|
-
quick:
|
|
266
|
-
environment: none
|
|
267
|
-
commands:
|
|
268
|
-
- npm test
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
`nomarmy validate` checks the file against the schema; `nomarmy scan --check` diffs it against what the repo actually contains.
|
|
272
|
-
|
|
273
|
-
**Policy: what no job can skip.**
|
|
274
|
-
|
|
275
|
-
```yaml
|
|
276
|
-
policy:
|
|
277
|
-
require_verification: true # every implement job needs a verification profile; only passing work commits
|
|
278
|
-
require_regression_check: true # verify_regression can't be switched off per job
|
|
279
|
-
```
|
|
280
|
-
|
|
281
|
-
`nomarmy init` proposes both for new repos. Without them, a job with no verification profile still commits (flagged for review, not blocked), and the General decides per job whether to run the revert check. With them, those are the repo's rules, not the General's judgment calls, and since nomArmy reads this file only from your checkout, neither the General nor a worker can relax it.
|
|
282
|
-
|
|
283
|
-
**Refactors.** Reverting a behavior-preserving change restores code that works, so the revert check can't prove anything about it. A job can declare `refactor: true` instead: nomArmy then commits it only if verification passes **and no test file was added, changed or deleted**. The existing tests passing unchanged is the evidence. A change that alters behavior has to alter tests to show it, so it can't pass as a refactor.
|
|
284
|
-
|
|
285
|
-
**Add a check for what unit tests can't see.** A module left out of a deploy bundle passes every unit test and crashes at deploy. When `nomarmy init` sees a bundle or packaging step (Lambda asset scripts, SAM, Serverless, CDK), it suggests a profile that runs it and then imports each entry point from the built bundle.
|
|
286
|
-
|
|
287
|
-
### Languages and dependencies
|
|
288
|
-
|
|
289
|
-
The sandbox has no network, so dependencies are installed when its image is built, on your machine, and the image is cached by a hash of the dependency files.
|
|
290
|
-
|
|
291
|
-
| Repo | Detected by | Sandbox |
|
|
292
|
-
|---|---|---|
|
|
293
|
-
| Node | every package with its own `package-lock.json` or `npm-shrinkwrap.json`: the root, and any others (a `ui/`, a `lambda/api/`) | `npm ci` for each at build time, under `/deps` at the same path. The root's packages are at `/node_modules`; each other package gets a `node_modules` link into the image, which nomArmy never commits |
|
|
294
|
-
| Python | `requirements.txt`, or `environment.python.requirements` | `pip install` at build time |
|
|
295
|
-
| Both | both of the above | one image with both |
|
|
296
|
-
| Go, Rust | `go.mod`, `Cargo.toml` | the toolchain, built once and cached |
|
|
297
|
-
| anything else | | the base image: Node, Python 3, git, ripgrep |
|
|
298
|
-
|
|
299
|
-
The worker's own tool calls and nomArmy's verification use the same image. `NOMARMY_AGENT_IMAGE` overrides detection, and `environment.node.install: false` turns the Node install off.
|
|
300
|
-
|
|
301
|
-
```yaml
|
|
302
|
-
environment:
|
|
303
|
-
python:
|
|
304
|
-
requirements:
|
|
305
|
-
- requirements-dev.txt
|
|
306
|
-
- lambda/requirements.txt
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
A package whose install fails (a private registry, say) is marked and skipped; the rest still install. npm workspaces, yarn, pnpm and bun aren't installed yet. For those repos, verification borrows your own checkout's `node_modules` read-only, which works for plain JavaScript packages but not for ones with native binaries built for your host.
|
|
310
|
-
|
|
311
|
-
### Scoping verification to the diff
|
|
312
|
-
|
|
313
|
-
A command scoped by a hand-maintained filter (`pytest -k`) can silently skip the file a worker changed. Every verification command gets two variables to scope by instead:
|
|
314
|
-
|
|
315
|
-
| Variable | Contents |
|
|
316
|
-
|---|---|
|
|
317
|
-
| `NOMARMY_CHANGED_TEST_FILES` | New and modified test files, space-separated |
|
|
318
|
-
| `NOMARMY_CHANGED_PRODUCTION_FILES` | Non-test files touched, space-separated |
|
|
319
|
-
|
|
320
|
-
```yaml
|
|
321
|
-
verification:
|
|
322
|
-
python:
|
|
323
|
-
commands:
|
|
324
|
-
- 'if [ -n "$NOMARMY_CHANGED_TEST_FILES" ]; then python3 -m pytest $NOMARMY_CHANGED_TEST_FILES -q; fi'
|
|
325
|
-
- 'if [ -n "$NOMARMY_CHANGED_PRODUCTION_FILES" ]; then python3 -m pytest lambda/tests/ -q; fi'
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
Run the narrow pass on the touched files for a fast, sharp signal, *and* the broad pass whenever production code changed: a shared module can have far more dependents than the files a diff happens to touch. Running the changed tests on their own also catches a test that only passes inside the full suite.
|
|
329
|
-
|
|
330
|
-
### What else nomArmy checks
|
|
331
|
-
|
|
332
|
-
- **Tests that prove nothing.** With `verify_regression` (on whenever a job has a verification profile), nomArmy reverts the production change and re-runs the tests: a test that still passes is flagged.
|
|
333
|
-
- **Tests made to pass.** New skip markers, stubbed imports, fake modules named like a dependency, and stray backup files are flagged for review.
|
|
334
|
-
- **Code wired to nothing.** A new function or class that nothing outside its own test calls is flagged (heuristic and review-only).
|
|
335
|
-
- **Secrets.** Every diff and report is scanned for known secret shapes (secretlint's recommended preset) before a commit is allowed; a match blocks it.
|
|
336
|
-
|
|
337
|
-
## Configuration
|
|
338
|
-
|
|
339
|
-
Local inference is configured in two files, and a shell-exported variable overrides both. Every variable is documented where it's set.
|
|
340
|
-
|
|
341
|
-
- **`config/common.env`**: defaults shared by every profile.
|
|
342
|
-
- **`config/profiles/<name>.env`**: per-machine overrides (context size, GPU layers, threads, workers).
|
|
343
|
-
|
|
344
|
-
| Variable | Lives in | Default | Controls |
|
|
345
|
-
|---|---|---|---|
|
|
346
|
-
| `NOMARMY_WORKER_MODEL` | common.env | `gpt-oss-20b` | Which local model runs jobs |
|
|
347
|
-
| `NOMARMY_MODEL_REPO` / `_QUANT` | common.env | `ggml-org/gpt-oss-20b-GGUF` / `MXFP4` | Which GGUF to download |
|
|
348
|
-
| `NOMARMY_LLAMA_CONTEXT` | profile | `65536` | **Total** context across all slots |
|
|
349
|
-
| `NOMARMY_LLAMA_PARALLEL` | profile | `1` | Inference slots (the context is divided across them) |
|
|
350
|
-
| `NOMARMY_MAX_WORKERS` | profile | `1` | How many local jobs run at once |
|
|
351
|
-
| `NOMARMY_MAX_POOL_WORKERS` | environment | `4` | How many api and subscription jobs run at once |
|
|
352
|
-
| `NOMARMY_EXECUTION` | common.env | `local` | `local` or `bedrock` |
|
|
353
|
-
| `NOMARMY_ORCHESTRATOR_TRUST` | common.env | `frontier` | `frontier` or `degraded`: see `policies/reviewer.md` |
|
|
354
|
-
|
|
355
|
-
**The coupling that trips people up**: `NOMARMY_LLAMA_CONTEXT` is divided by `NOMARMY_LLAMA_PARALLEL`, not given to each slot whole. `65536` across 2 slots is `32768` per nom.
|
|
356
|
-
|
|
357
|
-
A change needs an inference restart: `nomarmy stop && nomarmy start` (logs go to `~/.local/share/nomarmy-local-agents/logs/`). `nomarmy config paths` shows where every config file lives.
|
|
358
|
-
|
|
359
|
-
### Swapping the local model
|
|
360
|
-
|
|
361
|
-
```bash
|
|
362
|
-
nomarmy model
|
|
363
|
-
```
|
|
364
|
-
|
|
365
|
-
It offers three measured choices (gpt-oss-20b, Qwen3-Coder-Next and Qwen3.6-27B: see the [model bake-off](docs/experiments/2026-09-20-model-bakeoff-and-economics.md)) or a Hugging Face search. It also offers to update the MCP registration and restart inference, since the config, the registration and the running model all need to agree.
|
|
366
|
-
|
|
367
|
-
### Sizing
|
|
368
|
-
|
|
369
|
-
Three coupled settings: `NOMARMY_LLAMA_CONTEXT` (total context), `NOMARMY_LLAMA_PARALLEL` (slots) and `NOMARMY_MAX_WORKERS` (concurrent local jobs). `nomarmy sizing` reads your hardware and the model's GGUF metadata, checks live memory pressure, and recommends a combination.
|
|
370
|
-
|
|
371
|
-
- **Aim for 64K context per nom.** An autonomous explore, implement, test and repair loop needs more room than a one-shot edit.
|
|
372
|
-
- **More noms isn't automatically faster.** On one Apple Silicon machine, 4 parallel local workers produced no more accepted work than 1. Measure before raising it.
|
|
373
|
-
- **Speed matters more than fit.** CPU-only inference measured about 3.8 tokens per second on a 20-core i7 (an 11.5-minute job for two turns). Use a GPU or a hosted agent for interactive work; CPU-only is a correctness testbed.
|
|
374
|
-
|
|
375
|
-
Advanced llama-server tuning (`NOMARMY_LLAMA_CACHE_TYPE_K/V`, `_FLASH_ATTN`, `_REASONING_BUDGET`, `_REASONING_PRESERVE`, `_EXTRA_ARGS`) is documented in `config/profiles/*.env`; all unset by default.
|
|
376
|
-
|
|
377
|
-
### Admission and budgets
|
|
378
|
-
|
|
379
|
-
A job is admitted only when there's context and memory for it, and briefs and reports are sized to the agent. The local model keeps caps calibrated on a 20B model, where longer briefs made it thrash: a 3,000-character brief, 6,000 characters of evidence, a 512-token implement report. An api or subscription agent gets ceilings that scale with its model's context, up to a 16,000-character brief and 24,000 characters of evidence. A job's `report` (`brief`, `standard`, `full`) sets how much comes back, up to about 2k tokens for an implement job and 4k for a scout. The report lands in the General's own context, so that's its call per job.
|
|
24
|
+
`nomarmy setup` is a playbook. It shows a checklist and runs the next step each time you say yes:
|
|
25
|
+
```text
|
|
26
|
+
✓ Where models run: hosted
|
|
27
|
+
✓ Installed: OpenClaw 2026.9.6
|
|
28
|
+
→ Agents: add a hosted agent
|
|
29
|
+
Roles: add an agent first
|
|
30
|
+
This repo: configure this project
|
|
31
|
+
Check: verify the installation
|
|
32
|
+
Run `nomarmy agents add` now? [Y/n]
|
|
33
|
+
```
|
|
34
|
+
Stop anytime; `nomarmy setup` picks up where you left off. **Want every step spelled out?** [Example setup: Claude Code, Codex and an API key](https://github.com/rayson-tech/nomarmy/blob/main/docs/setup/example.md) goes command by command.
|
|
35
|
+
3. **Use it:** restart Claude Code in the project and ask it to use nomArmy for one small bug that has a test. When that works, try `/feature <what you want built>`.
|
|
380
36
|
|
|
381
|
-
|
|
37
|
+
Stuck? `nomarmy doctor` checks the machine and `nomarmy health` checks everything nomArmy runs on. Upgrading later? `nomarmy update`.
|
|
382
38
|
|
|
383
|
-
|
|
39
|
+
## How every byte gets verified
|
|
384
40
|
|
|
385
|
-
|
|
41
|
+
1. Your coding assistant, the **General**, briefs a job: a task, acceptance criteria, and the tests that prove it.
|
|
42
|
+
2. nomArmy creates a git worktree from your branch and runs the nom in a Podman sandbox with no network and no host credentials. (One exception, the Claude subscription: see [Security posture](https://github.com/rayson-tech/nomarmy/blob/main/docs/security.md#security-posture).)
|
|
43
|
+
3. The nom edits, runs tests, and ends with a four-line report: `STATUS`, `TESTS`, `NOT_DONE`, `NOTE`.
|
|
44
|
+
4. nomArmy treats that report as a claim and checks the evidence itself:
|
|
45
|
+
- reads the real diff from git, not the nom's description of it
|
|
46
|
+
- runs your verification profile in a fresh sandbox
|
|
47
|
+
- reverts the production change and reruns the tests: a test that still passes proves nothing, so the job goes to review instead of being committed
|
|
48
|
+
- blocks on secrets, and flags tests made to pass (new skips, stubbed imports) and code nothing calls
|
|
49
|
+
5. Only then does it commit, on the nom's own branch. It never merges into yours: reviewing and integrating stay with the General, and with you.
|
|
386
50
|
|
|
387
|
-
|
|
388
|
-
|---|---|
|
|
389
|
-
| `nomarmy doctor` | Checks this machine is ready, with a fix for anything missing. Start here. |
|
|
390
|
-
| `nomarmy setup` | Detects the machine, recommends a profile, picks a model, writes config. Prints (never runs) `install.sh`. |
|
|
391
|
-
| `nomarmy connect [claude] [codex] [cursor]` | Registers nomArmy with each coordinator and installs `/feature`, the status line and the notifier. No target: pick interactively. |
|
|
392
|
-
| `nomarmy init` | Proposes a `.nomarmy.yml` from what the repo contains. |
|
|
393
|
-
| `nomarmy agents list\|add\|update\|remove` | Where jobs can run. See [Agents](#agents-where-a-job-can-run). |
|
|
394
|
-
| `nomarmy army show\|init\|assign\|general` | The General and the roster. See [The army](#the-army-who-does-what). |
|
|
395
|
-
| `nomarmy jobs [--watch\|--events\|--prune]` | What's running across every session, and what just finished. |
|
|
396
|
-
| `nomarmy health` | Runs the health checks now. |
|
|
397
|
-
| `nomarmy statusline` | nomArmy's part of Claude Code's status line. |
|
|
398
|
-
| `nomarmy config paths` | Where each config file lives. |
|
|
399
|
-
| `nomarmy model` | Changes the local model. |
|
|
400
|
-
| `nomarmy sizing` | Recommends context, slots and workers. `--check` evaluates the loaded profile; `--noms N` sizes for a count. |
|
|
401
|
-
| `nomarmy start` / `stop` | Starts or stops local inference. |
|
|
402
|
-
| `nomarmy scan` | Reports the repo's execution environment. `--check` diffs it against `.nomarmy.yml`. |
|
|
403
|
-
| `nomarmy validate` | Validates `.nomarmy.yml`. |
|
|
404
|
-
| `nomarmy update` | From a clone: pulls (fast-forward only) and resyncs what each coordinator runs. From npm: tells you the npm command. |
|
|
405
|
-
| `nomarmy uninstall` | Removes the MCP registration and install. `--clear-agents`, `--clear-models` or `--all` go further. |
|
|
51
|
+
Failing verification stays failed, unconditionally. A malformed report isn't automatically a failure: if the repository changed, nomArmy verifies independently and may recover the work. And the checks aren't the General's to waive: a repo's `.nomarmy.yml` policy (on by default for new repos) makes verification and the revert check mandatory for every job.
|
|
406
52
|
|
|
407
|
-
|
|
53
|
+
**Checking without building** costs nothing: `mode: verify` runs a verification profile against any branch, with no worker and no model tokens.
|
|
408
54
|
|
|
409
|
-
|
|
55
|
+
## Where the work runs
|
|
410
56
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
| `local_workers` | Runs a batch of independent jobs in parallel. `auto_union: true` merges them into one integration branch for review. |
|
|
416
|
-
| `repo_evidence` | Deterministic answers (definitions, references, outlines, grep, files) with `[path:line]` on every hit, no model. |
|
|
417
|
-
| `army` | The General's charter and agent, then this repo's roles and who runs each. |
|
|
418
|
-
| `run_start` / `run_status` / `run_finish` | A `/feature` run: its limits, usage per agent, warnings, paused agents and log. |
|
|
419
|
-
| `local_worker_capacity` | Context, budgets, memory pressure and what's running. |
|
|
420
|
-
| `local_worker_jobs` | Recent job records; `full: true` for the complete manifest. |
|
|
421
|
-
| `local_worker_config` | This repo's verification profiles. |
|
|
422
|
-
| `local_worker_cleanup` | Removes one worktree and branch. Recognizes a cherry-picked branch as integrated by content. |
|
|
423
|
-
| `local_worker_sweep` | Removes worktrees that are provably empty. `dry_run` previews. |
|
|
57
|
+
- **Agents** say where a job can run: an API key, your own ChatGPT or Muse Code subscription, or a local model on llama.cpp.
|
|
58
|
+
- **The army** says which role runs on which agent: Sr and Jr devs build, a security analyst and a data architect review, a PM checks the plan, a PO accepts.
|
|
59
|
+
- **`/feature`** runs a whole feature end to end, from plan through build, review and acceptance, and hands you a branch to merge.
|
|
60
|
+
- **Harnesses** give each repo the right sandbox: Go, Rust, Python and Node (mixed repos too), Playwright browser tests, and fake services like a mock login server, all offline. [Adding one](https://github.com/rayson-tech/nomarmy/blob/main/CONTRIBUTING.md#adding-a-harness) never touches core code.
|
|
424
61
|
|
|
425
|
-
|
|
62
|
+
**What you get is work you don't have to take on faith**, not cheaper work. Delegating costs the General tokens too, for briefing and review: on small, already-diagnosed tickets we measured 4 to 8 times more of the General's tokens than fixing the bug directly, with break-even around 150 lines of context a fix needs to read ([the measurements](https://github.com/rayson-tech/nomarmy/blob/main/docs/experiments/2026-09-20-model-bakeoff-and-economics.md)). It pays off on bigger tickets, parallel work, and anywhere you'd otherwise trust an agent's say-so.
|
|
426
63
|
|
|
427
|
-
|
|
64
|
+
**Have a GPU or a Mac with plenty of memory?** Choose "a local model" in `nomarmy setup`: no per-token bill and your code stays home, but you pay in hardware, power and speed. `nomarmy sizing` tells you what fits. A [shared model server](https://github.com/rayson-tech/nomarmy/blob/main/docs/install.md#a-shared-model-server) works too.
|
|
428
65
|
|
|
429
|
-
|
|
66
|
+
Developed and maintained by Rayson Technologies. This is an alpha (`0.1.0-alpha`).
|
|
430
67
|
|
|
431
|
-
|
|
68
|
+
## Docs
|
|
432
69
|
|
|
433
|
-
|
|
|
70
|
+
| | |
|
|
434
71
|
|---|---|
|
|
435
|
-
|
|
|
436
|
-
|
|
|
72
|
+
| [Install](https://github.com/rayson-tech/nomarmy/blob/main/docs/install.md) | Every setup: hosted (API keys and subscriptions), a local model on macOS, Linux, Windows or DGX Spark, a shared model server, Bedrock |
|
|
73
|
+
| [Example setup](https://github.com/rayson-tech/nomarmy/blob/main/docs/setup/example.md) | Claude Code, Codex and an API key, command by command |
|
|
74
|
+
| [Agents and the army](https://github.com/rayson-tech/nomarmy/blob/main/docs/agents-and-army.md) | Where a job can run, who does what, usage limits, picking an agent |
|
|
75
|
+
| [`/feature` runs](https://github.com/rayson-tech/nomarmy/blob/main/docs/feature-runs.md) | A feature end to end, and watching what nomArmy is doing |
|
|
76
|
+
| [Your repository](https://github.com/rayson-tech/nomarmy/blob/main/docs/your-repo.md) | `.nomarmy.yml`, verification, dependencies, private registries, what nomArmy checks |
|
|
77
|
+
| [Harnesses](https://github.com/rayson-tech/nomarmy/blob/main/docs/harnesses.md) | Ecosystem registry, detection, network levels, and requirements |
|
|
78
|
+
| [Configuration](https://github.com/rayson-tech/nomarmy/blob/main/docs/configuration.md) | Settings, swapping the local model, sizing, admission |
|
|
79
|
+
| [Reference](https://github.com/rayson-tech/nomarmy/blob/main/docs/reference.md) | Every CLI command and MCP tool |
|
|
80
|
+
| [Security posture](https://github.com/rayson-tech/nomarmy/blob/main/docs/security.md) | What the sandbox holds back, and the one exception |
|
|
81
|
+
| [Troubleshooting](https://github.com/rayson-tech/nomarmy/blob/main/docs/troubleshooting.md) | Symptoms and fixes |
|
|
437
82
|
|
|
438
|
-
|
|
83
|
+
## Security
|
|
439
84
|
|
|
440
|
-
**Never hand a
|
|
441
|
-
|
|
442
|
-
Every model call, local, api or subscription, is made by OpenClaw on the host, never from inside the sandbox. A subscription is reached through the vendor's own logged-in session; nomArmy never reads or stores the token. What changes with a hosted agent or a Bedrock profile is where your code goes (to that vendor), not what the sandbox can reach.
|
|
443
|
-
|
|
444
|
-
`on_behalf_of` is a self-reported attestation, not a verified identity: nomArmy has no caller-identity boundary. The secret scan catches known secret shapes, not steered content with no recognizable shape. Both are covered in [SECURITY.md](SECURITY.md), which is also where to report a vulnerability.
|
|
85
|
+
A nom gets a writable git worktree inside a Podman sandbox and nothing else: no network, no host credentials, no Podman socket. Every model call is made by OpenClaw on your machine, never from inside the sandbox. Verification can climb a network ladder one rung at a time (fake services on a private network, then an allowlist you approve for a test tenant), but noms never leave `network none`. **The exception is a Claude subscription**, whose tools run on your machine, so nomArmy refuses build jobs on it unless you allow it. Never hand a nom production credentials, deployment access or SSH keys. Details: [Security posture](https://github.com/rayson-tech/nomarmy/blob/main/docs/security.md); to report a vulnerability, [SECURITY.md](https://github.com/rayson-tech/nomarmy/blob/main/SECURITY.md).
|
|
445
86
|
|
|
446
87
|
## Status
|
|
447
88
|
|
|
448
89
|
| Capability | Status |
|
|
449
90
|
|---|---|
|
|
450
|
-
|
|
|
451
|
-
|
|
|
452
|
-
| Scout and decompose modes | Unit and live tested |
|
|
453
|
-
|
|
|
454
|
-
| Secret scanning (secretlint, hard block) | Unit tested against the real dependency |
|
|
455
|
-
| Agents: api keys | Live-verified with xAI; other providers built to OpenClaw's documented interface |
|
|
91
|
+
| Verification core: worktrees, nomArmy-owned git, independent verification, the revert check, kept failed worktrees | Working, end-to-end tested |
|
|
92
|
+
| `mode: verify`, secret scanning (secretlint, hard block), test-workaround and unwired-code checks | Unit and live tested; the heuristics are review flags |
|
|
93
|
+
| Scout and decompose modes, `auto_union` | Unit and live tested |
|
|
94
|
+
| Agents: API keys | Live-verified with xAI; other providers built to OpenClaw's documented interface |
|
|
456
95
|
| Agents: subscriptions | ChatGPT (Codex) and Muse Code sandboxed and live-verified; Claude live-verified, but its tools run on the host (scout and review by default) |
|
|
96
|
+
| Local (llama.cpp) and Bedrock profiles | Working |
|
|
457
97
|
| The army and `/feature` | Driven by a real Claude Code General across three runs, about 18 implement jobs |
|
|
458
|
-
| Go, Rust, Python
|
|
459
|
-
|
|
|
460
|
-
| Browser/E2E testing inside a nom | Not built |
|
|
98
|
+
| Harnesses: Go, Rust, Python, Node and mixed repos; Playwright; fake services | Live-verified offline |
|
|
99
|
+
| Private registries and a verification-only network allowlist | Live-verified; each passed an independent security review |
|
|
461
100
|
|
|
462
|
-
What we've learned from real runs, including where delegating pays and where it doesn't, is in [docs/findings.md](docs/findings.md).
|
|
101
|
+
What we've learned from real runs, including where delegating pays and where it doesn't, is in [docs/findings.md](https://github.com/rayson-tech/nomarmy/blob/main/docs/findings.md).
|
|
463
102
|
|
|
464
103
|
### Known limitations
|
|
465
104
|
|
|
466
|
-
- **A Claude subscription isn't sandboxed.** Its tools run on your machine, so implement jobs on it are refused unless you set `allow_host_tools: true`. See [Security posture](#security-posture).
|
|
467
|
-
- **
|
|
468
|
-
- **
|
|
105
|
+
- **A Claude subscription isn't sandboxed.** Its tools run on your machine, so implement jobs on it are refused unless you set `allow_host_tools: true`. See [Security posture](https://github.com/rayson-tech/nomarmy/blob/main/docs/security.md#security-posture).
|
|
106
|
+
- **Your own compose services aren't started yet.** A verification profile that needs a real database from your compose file (`environment: basic` or higher) reports `not_run` rather than running without it (and the compose parser doesn't resolve YAML anchors). Fake services from harnesses, like the mock login server, do run.
|
|
107
|
+
- **Private registries don't cover Poetry or Yarn Berry** yet: Poetry can't guarantee a credentialed install runs no package code, and Yarn Berry doesn't read `.npmrc`. uv, pip wheels, npm, pnpm, Yarn Classic and bun work. See [Private registries](https://github.com/rayson-tech/nomarmy/blob/main/docs/your-repo.md#private-registries).
|
|
108
|
+
- **A model a vendor lists but refuses is caught at dispatch, with a test call.** The first job on a model that has never worked for its agent waits a few seconds for a one-token test call; a refusal (gpt-6-sol on a ChatGPT plan) is reported and remembered instead of costing the job. An inconclusive test call (a timeout) lets the job through.
|
|
109
|
+
- **Claude subscription token counts** come from the Claude CLI's own session log, since OpenClaw sees only the final reply; totals include cache reads and writes.
|
|
469
110
|
- **Test-workaround detection is a flag, not a verdict**: a legitimate new skip still gets flagged.
|
|
470
|
-
- **Deploy-time failures need your own check.** See [Add a check for what unit tests can't see](#nomarmyyml).
|
|
471
|
-
- **
|
|
472
|
-
- **Verification needing services** (a database, a mock server) reports `not_run` instead of running without them. The compose parser doesn't resolve YAML anchors.
|
|
473
|
-
- **Same-host only**: the MCP server and OpenClaw run on the machine with the coordinator. There's no remote-worker mode yet.
|
|
474
|
-
|
|
475
|
-
## Troubleshooting
|
|
476
|
-
|
|
477
|
-
| Symptom | Fix |
|
|
478
|
-
|---|---|
|
|
479
|
-
| Anything unclear about the machine | `nomarmy doctor`, then `nomarmy health` |
|
|
480
|
-
| `No API key found for provider "llama-cpp"` during `e2e.sh` | `./scripts/configure-openclaw.sh <profile>`, then rerun |
|
|
481
|
-
| A job fails with `model_not_found` | Your plan or OpenClaw can't run that model. `nomarmy agents list` shows which roles use it; `nomarmy army assign <role> <agent> <model>` moves the role and tests the new model |
|
|
482
|
-
| Verification fails on a missing package | Node: commit each package's `package-lock.json` (yarn, pnpm and workspaces aren't installed yet). Python: list your requirements files under `environment.python.requirements` |
|
|
483
|
-
| A config change didn't take effect | `nomarmy stop && nomarmy start` for inference; restart your coordinator after `nomarmy connect` or an update |
|
|
484
|
-
| `git worktree add` fails with `Filename too long` (Windows/WSL2) | `git config --global core.longpaths true` |
|
|
485
|
-
| Not sure a setting fits your hardware | `nomarmy sizing`, or `nomarmy sizing --check` |
|
|
111
|
+
- **Deploy-time failures need your own check.** See [Add a check for what unit tests can't see](https://github.com/rayson-tech/nomarmy/blob/main/docs/your-repo.md#nomarmyyml).
|
|
112
|
+
- **Same-host sandboxes**: the MCP server, OpenClaw and every job's sandbox run on the machine with the coordinator. Only the model can be elsewhere.
|
|
486
113
|
|
|
487
114
|
## More
|
|
488
115
|
|
|
489
|
-
- [docs/findings.md](docs/findings.md): what real runs taught us.
|
|
490
|
-
- [docs/experiments](docs/experiments): the measured write-ups behind them.
|
|
491
|
-
- [policies](policies): how scouts and reviewers are held to account.
|
|
492
|
-
- [CONTRIBUTING.md](CONTRIBUTING.md), [SECURITY.md](SECURITY.md), [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
|
|
116
|
+
- [docs/findings.md](https://github.com/rayson-tech/nomarmy/blob/main/docs/findings.md): what real runs taught us.
|
|
117
|
+
- [docs/experiments](https://github.com/rayson-tech/nomarmy/tree/main/docs/experiments): the measured write-ups behind them.
|
|
118
|
+
- [policies](https://github.com/rayson-tech/nomarmy/tree/main/policies): how scouts and reviewers are held to account.
|
|
119
|
+
- [CONTRIBUTING.md](https://github.com/rayson-tech/nomarmy/blob/main/CONTRIBUTING.md), [SECURITY.md](https://github.com/rayson-tech/nomarmy/blob/main/SECURITY.md), [CODE_OF_CONDUCT.md](https://github.com/rayson-tech/nomarmy/blob/main/CODE_OF_CONDUCT.md).
|
|
493
120
|
|
|
494
121
|
Configuration variables are `NOMARMY_*`; a legacy `RAYSON_*` variable is translated once at load, with a deprecation warning.
|
|
495
122
|
|
|
496
|
-
Licensed under [Apache 2.0](LICENSE).
|
|
123
|
+
Licensed under [Apache 2.0](https://github.com/rayson-tech/nomarmy/blob/main/LICENSE).
|