|
1 | | -# AGENTS.md |
| 1 | +# Site contract |
2 | 2 |
|
3 | | -CorpOS harness. Profile: **solo**. |
| 3 | +## Gates |
4 | 4 |
|
5 | | -## Purpose |
| 5 | +| Command | Purpose | |
| 6 | +| ---------------------------------- | ----------------------------------- | |
| 7 | +| `./scripts/harness/verify.sh` | Functional and static acceptance | |
| 8 | +| `./scripts/harness/adversarial.sh` | Authorized local adversarial probes | |
6 | 9 |
|
7 | | -TypeScript multi-agent runtime with policy, approval, and audit control plane. Simulation-first demo; optional live LLM via OpenRouter. |
| 10 | +Record `verification_scripts` as the site directory `scripts/harness` (exactly those |
| 11 | +two scripts). Optional wrappers may remain at `scripts/verify.sh` / |
| 12 | +`scripts/adversarial.sh` for humans; they are outside the digest boundary. |
8 | 13 |
|
9 | | -## Prerequisites |
| 14 | +The corporate handoff fixes scope. The site manager assigns ADRs; site specialists write; |
| 15 | +operations excellence reviews current evidence. Work in isolated roots, never edit |
| 16 | +corporate approval state, and never self-approve. |
10 | 17 |
|
11 | | -- Node.js ≥20 (`package.json` engines) |
12 | | -- `npm install` (builds `better-sqlite3` native module) |
13 | | - |
14 | | -## Commands |
15 | | - |
16 | | -| Command | Purpose | |
17 | | -| --------------------- | ------------------------------- | |
18 | | -| `./scripts/verify.sh` | Definition of Done | |
19 | | -| `npm install` | Install dependencies | |
20 | | -| `npm run dev` | API + dashboard with hot reload | |
21 | | -| `npm run start` | Run without watch | |
22 | | -| `npm run test` | Vitest suite | |
23 | | -| `npm run typecheck` | `tsc --noEmit` | |
24 | | -| `npm run lint` | ESLint | |
25 | | -| `npm run build` | Compile to `dist/` | |
26 | | - |
27 | | -## Layout |
28 | | - |
29 | | -| Path | Role | |
30 | | -| ---------------- | --------------------------------------------------------- | |
31 | | -| `src/core/` | Orchestrator, policy, store (SQLite at `data/company.db`) | |
32 | | -| `src/agents/` | Department agents | |
33 | | -| `src/tools/` | Permissioned tool registry | |
34 | | -| `src/api/` | Express REST + WebSocket | |
35 | | -| `src/dashboard/` | Control-plane UI | |
36 | | - |
37 | | -## Definition of Done |
38 | | - |
39 | | -```bash |
40 | | -npx npm@10.9.2 ci |
41 | | -./scripts/verify.sh |
42 | | -``` |
43 | | - |
44 | | -## Review focus |
45 | | - |
46 | | -Block on P0/P1: policy chokepoint bypass, approval gate skips, secret exposure, broken simulation determinism. |
| 18 | +Site id: `corpos`. Prior Cursor Harness v4 is under `_archives/harness-v4/`. |
0 commit comments