@brainervirus/workit-opencode 8.23.0 → 8.25.0

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.
@@ -40,7 +40,7 @@ units of ~100+ lines each. Coupled work stays with one owner. Workit never spawn
40
40
  chain resumes. A fix round and recheck that both fail: a decider, not a
41
41
  third round; product choices go to the user (`references/orchestration.md`).
42
42
  7. **Verify by the workspace `verification` setting** (`workit grant show`).
43
- A report is a pointer, never evidence. `self`: a verifier that wrote none
43
+ A report is a pointer, never evidence. `proportional` (default): each slice's lane (`workit pr status`) decides; none needs no verdict, self the author's `--self`, focused (cheap model: Claude Code `model: sonnet`) and full a verifier after the last push; one verdict at a stack's top covers its unchanged lower PRs, and a stale one with `reverify: focused` re-checks only the new diff, reusing green CI. `self`: a verifier that wrote none
44
44
  of the slices, or you if you wrote none. `independent` or high risk: a
45
45
  separate verifier session, never yours (doctrine: the ledger only refuses
46
46
  authors). One verifier may take a batch of slices, one verdict per branch
@@ -25,7 +25,7 @@ REPORT: branch, head SHA, files changed, each VERIFY command with its exit code,
25
25
  each ACCEPTANCE line met / not met, rulings you made (`workit ledger ruling`),
26
26
  anything out of scope as a follow-up, not a diff.
27
27
  STANDING: <the standing orders, verbatim: `workit ledger standing add` records each one>
28
- WORKTREE: <the path `workit fanout worktree create <slice>` made; the worker runs `workit --cwd <it> …` there>
28
+ WORKTREE: <the path `workit fanout worktree create <slice>` made; the worker runs `workit <verb> --cwd <it> …` there>
29
29
  <identity line, per the lead's host: see "Identity and git rules per host" below>
30
30
  ```
31
31
 
@@ -114,7 +114,7 @@ lead's host (`WORKIT_HOST`, or the host's own session variable):
114
114
 
115
115
  Once `workit fanout worktree create <slice>` made the worktree, the brief's
116
116
  WORKTREE line names it and RULES 1 and 3 run against it on every host:
117
- `workit --cwd <worktree> git commit …`, `workit --cwd <worktree> check <name>`,
117
+ `workit git --cwd <worktree> commit …`, `workit check --cwd <worktree> <name>`,
118
118
  one verb per call. The worktree is already on the branch (MODE new or resume),
119
119
  so no branch command comes first. Without one, `MODE: resume` is
120
120
  `git switch <branch>` (the branch exists), then continue from its head. A race
@@ -124,13 +124,13 @@ attempt (`--attempt <n>`) follows its host's row with the branch
124
124
  ## Worker rules (`workit fanout brief` appends them as RULES)
125
125
 
126
126
  1. Work only in WORKTREE, already on the branch, one verb per call against it
127
- (`workit --cwd <worktree> …`); Workit's hooks deny an implementer's change
127
+ (`workit <verb> --cwd <worktree> …`); Workit's hooks deny an implementer's change
128
128
  outside it. With no worktree made yet: create the branch (`MODE: new`) or
129
129
  `git switch` to it (`MODE: resume`), as the table above says.
130
130
  2. Decide ambiguities yourself and record them:
131
131
  `workit ledger ruling "<what>" --why "<why>" --cost-if-wrong "<cost>"`.
132
132
  Stop only for an irreversible action, a security-sensitive one, or a side
133
133
  effect outside the worktree.
134
- 3. Commit with `workit --cwd <worktree> git commit -m "<msg>" -- <paths in SCOPE>`;
134
+ 3. Commit with `workit git --cwd <worktree> commit -m "<msg>" -- <paths in SCOPE>`;
135
135
  push only if the brief says so.
136
136
  4. Never record a verdict on your own work.
@@ -36,11 +36,11 @@ description: Build a requested change in small verified steps - follow local pat
36
36
  when that was requested, or the request implies delivery and the effective
37
37
  endpoint in `workit grant show` is `pr`, `green` or `merged`; `green` and
38
38
  `merged` keep babysitting. Otherwise it is `commit`.
39
- 7. Verify, as far as the policy asks. Normal risk: after `workit check test`
40
- passes, record your own `workit ledger verdict tests-verified --self --how
41
- "<what you ran>"`; it reads self-reviewed, never verified, and is enough.
42
- Ask a non-author only for high risk, a workspace with `verification:
43
- independent` (`workit grant show`) or a verified merge: a fresh verifier with its own host-derived session (Claude Code and Codex:
39
+ 7. Verify as far as the review lane asks (`workit policy assess`, `workit pr
40
+ status`). Lane none: no verdict. Lane self: after `workit check test` passes,
41
+ record `workit ledger verdict tests-verified --self --how "<what you ran>"`;
42
+ it reads self-reviewed, never verified, and is enough. Focused, full, high
43
+ 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, `model: sonnet` when focused; Codex:
44
44
  the `verifier` agent; OpenCode: a child session; Pi: a supervised worker),
45
45
  never a hand-minted id. Before saying done, reconcile
46
46
  every named deliverable against the target checkout and observe it (for a push:
@@ -13,6 +13,11 @@ OpenCode, a child session; Pi, a supervised worker. Never hand-mint one such
13
13
  as `<lead>-v1`: it is refused as `forged_session`.
14
14
  An author's `--self` verdict reads self-reviewed and never counts as
15
15
  independent; `type-check-only` never proves a behavior change.
16
+ Depth follows the review lane in `workit pr status`: focused reads the diff and
17
+ runs its tests; full also drives the real surface (verify-<app>). Review once
18
+ per PR after its last push; a second pass on an unchanged head is waste.
19
+ A stale verdict showing `reverify: focused (<files>)` in `workit pr status`: re-check only
20
+ those files since the judged head and reuse green CI there (no fresh install, no full suite).
16
21
 
17
22
  1. Pin the candidate: `git rev-parse HEAD`, the base, `git diff <base>...HEAD`;
18
23
  for a PR, `workit pr status --json` (checks, unresolved threads).
@@ -51,8 +51,7 @@ the same check. Fix round and recheck both failed: a decider (call the skill too
51
51
  allows; no sleep loop. Red: read `logTail`, classify. Flake or infra: one
52
52
  `workit ci rerun --failed --reason flake|infra` per head. Real: reproduce
53
53
  with `workit check`, fix the root cause, batch every fix in one push.
54
- 6. **Verified.** High risk, `verification: independent` or a verified merge: a
55
- non-author verdict (call the skill tool with `workit-review`); else a self verdict stands. Land only when
54
+ 6. **Verified.** The lane in `workit pr status` decides: none, no verdict; self, your `--self` verdict; focused or full (or `verification: self|independent`), one non-author verifier per PR after the last push, never per push (call the skill tool with `workit-review`), on Claude Code `model: sonnet` when focused. A docs-only push (or test-only under a unit verdict) keeps the verdict (`carried`); `reverify: focused` re-checks only the new diff, reusing green CI; one verdict at a stack's top covers its unchanged lower PRs. Land only when
56
55
  granted: `workit stack land` or `workit pr merge`; `--unverified --reason` if user-asked.
57
56
  7. **Observe it landed:** `workit verify-delivery pr` or `merge`. After a failed
58
57
  verdict or a check red 3+ times, at any endpoint: offer `/wk-retro` in one