@brainervirus/workit-core 1.0.5 → 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.
package/package.json
CHANGED
package/src/core/methods.ts
CHANGED
|
@@ -98,6 +98,9 @@ revisions, policy.assess {assessment: {facts, signals, consequences,
|
|
|
98
98
|
verification}} where facts are inferred or observed with file refs,
|
|
99
99
|
writer.acquire {taskId} before product writes, evidence.record {evidence} where
|
|
100
100
|
check and review kinds auto-bind the current tree and need no digests. Record
|
|
101
|
+
self-review requirements with kind review and reviewContext matching your own
|
|
102
|
+
host session; the lead may also record checks. Fresh-context review requires a
|
|
103
|
+
session distinct from the task creator and every other evidence recorder. Record
|
|
101
104
|
verification evidence last: later evidence or commits can reopen fixed findings
|
|
102
105
|
for re-verification, so verify, resolve, then close with nothing in between.
|
|
103
106
|
decision.record {binding with taskId/workspaceId from inspect plus presented and
|
|
@@ -459,8 +459,7 @@ export function evaluateRequirements(
|
|
|
459
459
|
return false;
|
|
460
460
|
if (requirement.dimension !== "review") return true;
|
|
461
461
|
const reviewSession = sessionFromRef(entry.data.reviewContext);
|
|
462
|
-
const
|
|
463
|
-
const sameImplementation = sameSession(reviewSession, implementationSession);
|
|
462
|
+
const sameImplementation = sameSession(reviewSession, task.intent.provenance.session);
|
|
464
463
|
const sameEvidenceSession = task.evidence.some(
|
|
465
464
|
(other) => other.id !== entry.id && sameSession(reviewSession, other.provenance.session),
|
|
466
465
|
);
|
|
@@ -468,8 +467,7 @@ export function evaluateRequirements(
|
|
|
468
467
|
entry.data.kind === "review" &&
|
|
469
468
|
reviewSession !== null &&
|
|
470
469
|
sameSession(reviewSession, entry.provenance.session) &&
|
|
471
|
-
!sameImplementation &&
|
|
472
|
-
!sameEvidenceSession
|
|
470
|
+
(requirement.ruleId === "self-review" || (!sameImplementation && !sameEvidenceSession))
|
|
473
471
|
);
|
|
474
472
|
});
|
|
475
473
|
if (passed.length) {
|