@brainervirus/workit-pi 8.9.0 → 8.10.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-pi",
3
- "version": "8.9.0",
3
+ "version": "8.10.0",
4
4
  "description": "Workit native extension for Pi — tools, method skills, and session continuity",
5
5
  "keywords": [
6
6
  "agentic-coding",
@@ -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
- export WORKIT_SESSION_ID=<lead>-w<n> (set by the lead; a verifier brief gets <lead>-v<n>)
28
+ export WORKIT_SESSION_ID=<lead>-w<n> (set by the lead for a worker's commits; a verifier brief sets none: the host derives it)
29
29
  ```
30
30
 
31
31
  ## Worked example
@@ -72,12 +72,22 @@ Which session id a verdict carries, per host:
72
72
 
73
73
  - Claude Code: subagents inherit your `WORKIT_SESSION_ID`, so the
74
74
  SubagentStart hook names each `verifier` and `reviewer` its own session
75
- (`<lead>:<agent id>`), passed as `--session`; that one wins over any
76
- `<lead>-v<n>` in a brief. An `implementer` uses the session its brief
77
- exports for its workit commands.
78
- - Other hosts: the session the brief sets wins: `export
79
- WORKIT_SESSION_ID=<lead>-w-<slice>` from `workit fanout brief` for a
80
- worker, `<lead>-v<n>` (or `--as verifier`) for a verifier you start.
75
+ (`<lead>:<agent id>`), passed exactly as `--session`: the hook records the
76
+ ids it issues, and only those are accepted. An `implementer` uses the
77
+ session its brief exports for its workit commands.
78
+ - Codex: the `workit-verifier` and `workit-reviewer` agents get the same
79
+ issued `--session` from SubagentStart; any other verifier passes
80
+ `--as verifier`.
81
+ - OpenCode: a child session's shell already has
82
+ `WORKIT_SESSION_ID=<lead>:<child>`; Pi: a supervised worker's shell has
83
+ `<lead>:<worker session>`. Set nothing for a verifier there.
84
+ - Cursor (no session id in the shell): the brief sets the verifier's
85
+ `WORKIT_SESSION_ID=<lead>:verifier-<random hex>`, a fresh suffix per
86
+ verifier. Cursor cannot check it: it is declared, not derived.
87
+ - A worker's commits use `export WORKIT_SESSION_ID=<lead>-w-<slice>` from
88
+ `workit fanout brief`. A verdict under an id you made up (`<lead>-v1`,
89
+ `<lead>:v1`) is refused as `forged_session` on Claude Code, Codex,
90
+ OpenCode and Pi.
81
91
 
82
92
  A batch verifier takes several slices on one surface in one session: for
83
93
  each branch it checks out the head, runs that slice's VERIFY, and records its
@@ -33,8 +33,9 @@ description: Build a requested change in small verified steps - follow local pat
33
33
  `workit ledger verdict tests-verified --self --how "<what you ran>"`; it
34
34
  reads self-reviewed, never verified. High risk, a workspace with
35
35
  `verification: independent` (`workit grant show`) or a verified merge needs
36
- a fresh verifier with its own session (`WORKIT_SESSION_ID=<yours>-v1`;
37
- Claude Code: the `verifier` agent). Before saying done, reconcile
36
+ a fresh verifier with its own host-derived session (Claude Code and Codex:
37
+ the `verifier` agent; OpenCode: a child session; Pi: a supervised worker),
38
+ never a hand-minted id. Before saying done, reconcile
38
39
  every named deliverable against the target checkout and observe it (for a push:
39
40
  `workit verify-delivery push`).
40
41
 
@@ -7,8 +7,10 @@ description: Independent review of a diff, branch or PR - intent fidelity and st
7
7
 
8
8
  Review the candidate, never the author's summary of it. A session that wrote a
9
9
  commit on the branch cannot record a passing verdict: if that is you, hand the
10
- review to a fresh agent with its own session (`WORKIT_SESSION_ID=<lead>-v<n>`;
11
- Claude Code: the `reviewer` or `verifier` agent).
10
+ review to a fresh agent with its own host-derived session: Claude Code and
11
+ Codex, the `reviewer` or `verifier` agent (`--session` from SubagentStart);
12
+ OpenCode, a child session; Pi, a supervised worker. Never hand-mint one such
13
+ as `<lead>-v1`: it is refused as `forged_session`.
12
14
  An author's `--self` verdict reads self-reviewed and never counts as
13
15
  independent; `type-check-only` never proves a behavior change.
14
16