@brainervirus/workit-pi 1.0.4 → 1.0.6

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.
Files changed (2) hide show
  1. package/dist/workit.js +5 -3
  2. package/package.json +1 -1
package/dist/workit.js CHANGED
@@ -10535,10 +10535,9 @@ function evaluateRequirements(task, workspace, capabilities, candidate, checkout
10535
10535
  if (requirement.dimension !== "review")
10536
10536
  return true;
10537
10537
  const reviewSession = sessionFromRef(entry.data.reviewContext);
10538
- const implementationSession = sessionFromRef(task.intent.provenance.session);
10539
- const sameImplementation = sameSession(reviewSession, implementationSession);
10538
+ const sameImplementation = sameSession(reviewSession, task.intent.provenance.session);
10540
10539
  const sameEvidenceSession = task.evidence.some((other) => other.id !== entry.id && sameSession(reviewSession, other.provenance.session));
10541
- return entry.data.kind === "review" && reviewSession !== null && sameSession(reviewSession, entry.provenance.session) && !sameImplementation && !sameEvidenceSession;
10540
+ return entry.data.kind === "review" && reviewSession !== null && sameSession(reviewSession, entry.provenance.session) && (requirement.ruleId === "self-review" || !sameImplementation && !sameEvidenceSession);
10542
10541
  });
10543
10542
  if (passed.length) {
10544
10543
  const withRed = requirement.dimension === "testing" ? passed.filter(({ entry }) => related.some((other) => other.entry.data.kind === "check" && other.evaluation.status === "failed" && other.entry.data.requirementIds.includes(requirement.id) && other.entry.recordedAt <= entry.recordedAt)) : passed;
@@ -10809,6 +10808,9 @@ revisions, policy.assess {assessment: {facts, signals, consequences,
10809
10808
  verification}} where facts are inferred or observed with file refs,
10810
10809
  writer.acquire {taskId} before product writes, evidence.record {evidence} where
10811
10810
  check and review kinds auto-bind the current tree and need no digests. Record
10811
+ self-review requirements with kind review and reviewContext matching your own
10812
+ host session; the lead may also record checks. Fresh-context review requires a
10813
+ session distinct from the task creator and every other evidence recorder. Record
10812
10814
  verification evidence last: later evidence or commits can reopen fixed findings
10813
10815
  for re-verification, so verify, resolve, then close with nothing in between.
10814
10816
  decision.record {binding with taskId/workspaceId from inspect plus presented and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-pi",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Workit native extension for Pi — tools, method skills, and session continuity",
5
5
  "keywords": [
6
6
  "agentic-coding",