@workit-dev/codex 2.21.2 → 2.21.4

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workit",
3
- "version": "2.21.2",
3
+ "version": "2.21.4",
4
4
  "description": "Adaptive engineering workflow rails for Codex",
5
5
  "author": {
6
6
  "name": "BrainerVirus"
package/README.md CHANGED
@@ -19,12 +19,10 @@ CLI because MCP is read-only for unattested callers. Invoke skills as
19
19
  `$workit-<name>` or from `/skills`. Codex permissions and sandbox stay
20
20
  authoritative.
21
21
 
22
- The plugin ships the `workit-verifier`, `workit-reviewer` and
23
- `workit-implementer` custom agents. Codex plugins cannot register agents, so
24
- the MCP server copies them into `~/.codex/agents/` when it starts, and Codex
25
- offers them from the next session. Trust the plugin hooks with `/hooks`;
26
- `workit doctor` warns when hooks are untrusted or the agents are missing, and
27
- prints the command that fixes it. Codex PreToolUse does not see `apply_patch` edits, so the
28
- [before-write gate](https://github.com/BrainerVirus/workit/blob/main/docs/guides/verification.md) is advisory here (the session
29
- context says so). Delivery limits come from the workspace
22
+ The plugin ships the `workit-implementer`, `workit-verifier`,
23
+ `workit-reviewer`, `workit-decider` and `workit-babysitter` custom agents,
24
+ which the MCP server copies into `~/.codex/agents/`; trust the plugin hooks
25
+ with `/hooks`. Agents, hooks, the before-write gate on `apply_patch` and the
26
+ doctor rows are in
27
+ [the hosts guide](https://github.com/BrainerVirus/workit/blob/main/docs/guides/hosts.md#codex-cli--desktop). Delivery limits come from the workspace
30
28
  [grants](https://github.com/BrainerVirus/workit/blob/main/docs/guides/grants.md).
@@ -15550,7 +15550,9 @@ var workspaceConfigSchema = object({
15550
15550
  feedback: unknown().optional().describe('`workit feedback` for this workspace: `off` hides its contract line and makes the verb refuse; `{ "account": "<login>" }` names the GitHub login it posts with; workspaces inside this one inherit it.'),
15551
15551
  liveSessionGuard: boolean2().optional().describe("Whether the live-session guard denies edits in a checkout another live agent session owns (default true)."),
15552
15552
  fanout: object({
15553
- tierModels: unknown().optional().describe("The model per slice TIER (mundane, standard, hard), as one name or per host.")
15553
+ tierModels: unknown().optional().describe("The model per slice TIER (mundane, standard, hard), as one name or per host."),
15554
+ deps: unknown().optional().describe("How `workit fanout worktree create` gives a slice worktree node_modules: `install` (default: its own frozen install of its lockfile) or `link` (links into the main checkout's installed packages, for a repo too slow to install per slice). `--deps` overrides it."),
15555
+ installTimeout: unknown().optional().describe("How long the own install may run before its process tree is killed and the worktree is linked instead: a duration such as `90s` or `10m` (default `5m`). `--install-timeout` overrides it.")
15554
15556
  }).passthrough().optional().describe("Fanout settings."),
15555
15557
  models: object({ roles: modelRoles }).passthrough().optional().describe("Model and effort per role and host (roles), the lead's own advisory model (lead), how a role model applies (enforce: advise, the default, or strict) and, under strict, whether a model the lead names on a spawn wins (allowLeadOverride, default false); the same key at the top of workspaces.json is the global default."),
15556
15558
  resources: unknown().optional().describe("Heavy-check limits on this machine: slots, scope, heavy, light, memoryMax, cpuQuota, wait."),
@@ -7397,7 +7397,9 @@ var workspaceConfigSchema = object({
7397
7397
  feedback: unknown().optional().describe('`workit feedback` for this workspace: `off` hides its contract line and makes the verb refuse; `{ "account": "<login>" }` names the GitHub login it posts with; workspaces inside this one inherit it.'),
7398
7398
  liveSessionGuard: boolean2().optional().describe("Whether the live-session guard denies edits in a checkout another live agent session owns (default true)."),
7399
7399
  fanout: object({
7400
- tierModels: unknown().optional().describe("The model per slice TIER (mundane, standard, hard), as one name or per host.")
7400
+ tierModels: unknown().optional().describe("The model per slice TIER (mundane, standard, hard), as one name or per host."),
7401
+ deps: unknown().optional().describe("How `workit fanout worktree create` gives a slice worktree node_modules: `install` (default: its own frozen install of its lockfile) or `link` (links into the main checkout's installed packages, for a repo too slow to install per slice). `--deps` overrides it."),
7402
+ installTimeout: unknown().optional().describe("How long the own install may run before its process tree is killed and the worktree is linked instead: a duration such as `90s` or `10m` (default `5m`). `--install-timeout` overrides it.")
7401
7403
  }).passthrough().optional().describe("Fanout settings."),
7402
7404
  models: object({ roles: modelRoles }).passthrough().optional().describe("Model and effort per role and host (roles), the lead's own advisory model (lead), how a role model applies (enforce: advise, the default, or strict) and, under strict, whether a model the lead names on a spawn wins (allowLeadOverride, default false); the same key at the top of workspaces.json is the global default."),
7403
7405
  resources: unknown().optional().describe("Heavy-check limits on this machine: slots, scope, heavy, light, memoryMax, cpuQuota, wait."),
@@ -101,7 +101,7 @@ if (quiet) {
101
101
  `);
102
102
  } else {
103
103
  try {
104
- const { runCodexHook } = await import("./workit-hook-79mhzf42.js");
104
+ const { runCodexHook } = await import("./workit-hook-qd4j72hf.js");
105
105
  await runCodexHook([payload]);
106
106
  } catch (error) {
107
107
  const { answerRuntimeFailure } = await import("./workit-hook-52cm7mqd.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workit-dev/codex",
3
- "version": "2.21.2",
3
+ "version": "2.21.4",
4
4
  "private": false,
5
5
  "description": "Workit Codex CLI/desktop plugin — shared MCP transport, hooks, method skills, and verifier/reviewer/implementer agents",
6
6
  "keywords": [
@@ -41,8 +41,8 @@
41
41
  "build": "bun scripts/build.ts"
42
42
  },
43
43
  "devDependencies": {
44
- "@workit-dev/core": "^2.21.2",
45
- "@workit-dev/mcp": "^2.21.2"
44
+ "@workit-dev/core": "^2.21.4",
45
+ "@workit-dev/mcp": "^2.21.4"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=24"
@@ -12,16 +12,16 @@ Deslop removes; it never changes behavior. Its depth follows the review lane.
12
12
  `suppression` (a lint or type disable with no reason), `debug` (stray logs,
13
13
  `debugger`, `[DEBUG-` tags) or `allowed`, runs `test-audit` on changed
14
14
  tests, and prints the lane and its passes. A marker or a lint/type
15
- suppression raises `self` to `focused`.
15
+ suppression raises `none` or `self` to `focused`.
16
16
  2. **Run the lane's passes** (each lane adds to the one below):
17
17
  - `none` (docs only): prose. Cut filler and hedging from the PR body and
18
18
  docs; keep real symbol names and before-to-after numbers.
19
19
  - `self`: delete every narration, marker and debug finding, plus dead code
20
20
  from the repo's tools (`knip`, `ts-prune`, `vulture`, unused-lint rules).
21
21
  - `focused`: a fresh-eyes no-comments pass and a test-quality lens. Hand
22
- the diff, never your verdict, to a fresh reviewer: Claude Code and Codex,
23
- the `reviewer` agent; OpenCode, a child session; Cursor, a Task subagent
24
- marked `ROLE: reviewer`; Pi, a supervised worker. It deletes every added
22
+ the diff, never your verdict, to a fresh reviewer: Claude Code, the
23
+ `reviewer` agent; Codex, Cursor and OpenCode, `workit-reviewer`; Pi, a
24
+ supervised worker. It deletes every added
25
25
  comment off the keep list and triages `workit test-audit --diff`
26
26
  (read the `workit-test-audit` skill's SKILL.md and follow it).
27
27
  - `full`: also `workit test-audit --mutate --diff` and one architect
@@ -23,7 +23,8 @@ units of ~100+ lines each. Coupled work stays with one owner. Workit never spawn
23
23
  3. **Make the worktrees**: `workit fanout worktree create <slice>…` (every host; `--name <plan.json>`
24
24
  registers the file) prints per slice its `WORKTREE:` line and the exact spawn, whose prompt points
25
25
  the worker at `workit fanout brief <slice> --name <plan>`. Never hand-edit it; change the plan or
26
- the standing orders. One unplanned slice needs no plan (`--branch <b>` optional).
26
+ the standing orders. One unplanned slice needs no plan (`--branch <b>` optional). `DEPS: LINKED`
27
+ is a shared `node_modules`: rerun a failure on an own install.
27
28
  4. **Spawn in a rolling window**, in the background, each in its own worktree:
28
29
  keep 4-6 in flight and refill from `spawnable` in `workit fanout status`.
29
30
  Assign before spawn (OpenCode: `workit worker assign`); each prompt is the printed one
@@ -97,7 +97,8 @@ is the slice's STUCK threshold in `workit fanout status`. `"fanIn":
97
97
  "goal": "The API guide documents GET /v1/usage",
98
98
  "acceptance": ["Given the guide, When a reader looks up usage, Then the response shape is shown"],
99
99
  "verify": ["workit check docs"],
100
- "forbidden": ["no edits outside SCOPE"]
100
+ "forbidden": ["no edits outside SCOPE"],
101
+ "reason": "parallel"
101
102
  }
102
103
  ]
103
104
  }
@@ -110,9 +111,8 @@ per slice, `WORKTREE: <path>` and the spawn that carries it. Its prompt starts
110
111
  with that WORKTREE line, then `WORKER`, `TIER`, `TIMEBOX` and
111
112
  "Run `workit fanout brief <slice> --name <plan>` and follow it exactly.";
112
113
  Claude Code's `SPAWN:` line names `model` only when the TIER differs from the
113
- `implementer` agent file. `--name` takes the plan's name or its file (`--plan`
114
- is the same flag): a file is registered in that call, and a name no plan has
115
- registers the one file in `workit dir plans` that starts with it. The plan
114
+ `implementer` agent file. `--name` (or `--plan`) takes the plan's name, a
115
+ prefix of one file in `workit dir plans`, or a file to register. The plan
116
116
  check refuses a slice branch the workspace branch policy refuses and names the
117
117
  allowed one.
118
118
 
@@ -130,7 +130,8 @@ deny is two lines ending in that ad-hoc command as `Retry as:`.
130
130
  and 3 for the worker's host: `--host <host>` (claude_code, codex, opencode,
131
131
  cursor, pi), else the lead's (`WORKIT_HOST`, or the host's own session
132
132
  variable). With no known host it warns on stderr and names the valid ones.
133
- RULE 3 carries the host's concrete Co-Authored-By line as a `--trailer`.
133
+ RULE 3 carries the host's concrete Co-Authored-By line as a `--trailer` on
134
+ Claude Code and Cursor; Codex, OpenCode and Pi get none.
134
135
 
135
136
  | Lead's host | Identity line | RULES 1 and 3 |
136
137
  | --- | --- | --- |
@@ -160,3 +161,7 @@ attempt (`--attempt <n>`) follows its host's row with the branch
160
161
  3. Commit with `workit git --cwd <worktree> commit -m "<msg>" --trailer "<host's Co-Authored-By>" -- <paths in SCOPE>`;
161
162
  push only if the brief says so.
162
163
  4. Never record a verdict on your own work.
164
+ 5. Run tests, lint, typecheck and builds only through `workit check`; `--heavy`
165
+ only for full suites, never a hand-made `flock`.
166
+ 6. A failed review gets one fix round and one recheck, then stop and report.
167
+ 7. Wait for or stop every background command before the final report.
@@ -96,7 +96,9 @@ it (`git branch <branch> <winner>`), have the verifier record the verdict on
96
96
  Follow the workspace `verification` setting (`workit grant show`); the
97
97
  worker never records a verdict on its own work.
98
98
 
99
- - `self` (the default): a verifier that wrote none of the slices records the
99
+ - `proportional` (the default): each slice's review lane decides (none: no
100
+ verdict; self: the author's `--self`; focused or full: a verifier).
101
+ - `self`: a verifier that wrote none of the slices records the
100
102
  verdicts. A lead that authored none of the slices may record them in its
101
103
  own session.
102
104
  - `independent`, and any slice at high risk: a separate verifier session
@@ -39,8 +39,8 @@ description: Build a requested change in small verified steps - follow local pat
39
39
  status`). Lane none: no verdict. Lane self: after `workit check test` passes,
40
40
  record `workit ledger verdict tests-verified --self --how "<what you ran>"`;
41
41
  it reads self-reviewed, never verified, and is enough. Focused, full, high
42
- risk or `verification: self|independent` merges: one fresh verifier per PR after the last push, its own host-derived session (Claude Code: the `verifier` agent with the `model` (and `effort`) of `workit models show --role verifier`; Codex:
43
- the `verifier` agent; OpenCode: a child session; Pi: a supervised worker),
42
+ risk or `verification: self|independent` merges: one fresh verifier per PR after the last push, its own host-derived session (Claude Code: the `verifier` agent with the `model` (and `effort`) of `workit models show --role verifier`; Codex,
43
+ Cursor and OpenCode: the `workit-verifier` agent; Pi: a supervised worker),
44
44
  never a hand-minted id. Before saying done, reconcile
45
45
  every named deliverable against the target checkout and observe it (for a push:
46
46
  `workit verify-delivery push`).
@@ -7,7 +7,7 @@ user asks for one, say which trigger fired, and let the user decline.
7
7
  | Record | Trigger | Where |
8
8
  | --- | --- | --- |
9
9
  | Spec | more than one slice, crosses repos, or an open product choice a future reader must know | `docs/<topic>/spec.md` |
10
- | Plan | more than one slice with dependencies, or work that will be resumed by someone else | `docs/<topic>/plan.md`, next to the spec |
10
+ | Plan | more than one slice with dependencies, or work that will be resumed by someone else | `workit dir plans` (per clone, outside the repo tree) |
11
11
  | ADR | the choice is hard to reverse **and** surprising **and** a real trade-off (all three) | `docs/adr/NNNN-<slug>.md` |
12
12
  | Glossary entry | a project term was ambiguous and you resolved it | `GLOSSARY.md` (create lazily) |
13
13
  | Coding standard | a judgment-call rule a reviewer must check, recurring twice, found by workit-retro; a mechanical rule gets a check instead | `CODING_STANDARDS.md` (create lazily) |
@@ -16,8 +16,8 @@ or weaken a test to make it quiet.
16
16
  `workit test-audit --diff --json` or `workit test-audit <paths> --json`.
17
17
  Each finding has file:line, rule, severity, confidence, why and a fix.
18
18
  Prose checks are `info`; add `--min-severity info` to see them.
19
- `mock-call-order` flags a call count or order asserted on a double of the
20
- code's own module; `private-access` flags `_private` reads and test-only
19
+ `mock-call-order` flags a call order asserted on any double, and a call
20
+ count on a double of the code's own module; `private-access` flags `_private` reads and test-only
21
21
  imports. Both pin how the code works, not what it does.
22
22
  2. Triage every finding with "Name the Break": which wrong production change
23
23
  should make this test fail? Then choose one, and say which: