@brainervirus/workit-pi 1.0.5 → 1.0.7
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/dist/workit.js +7 -5
- 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
|
|
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
|
|
@@ -11098,7 +11100,7 @@ async function runAuthorizedExternalAction(input, effect) {
|
|
|
11098
11100
|
const preflight = typeof contract.details === "object" && contract.details !== null && contract.details.outcome === "not_started";
|
|
11099
11101
|
const outcome = input.failureOutcome ?? (preflight ? "not_started" : "unknown");
|
|
11100
11102
|
const settled = settleWithRefresh(outcome, settle(outcome));
|
|
11101
|
-
if (!settled.ok
|
|
11103
|
+
if (!settled.ok)
|
|
11102
11104
|
return settled;
|
|
11103
11105
|
return contract;
|
|
11104
11106
|
}
|
|
@@ -16888,7 +16890,7 @@ var resolveExternalActionRequest = (root, request, preservedDateMs) => {
|
|
|
16888
16890
|
if (preview.error)
|
|
16889
16891
|
return failure("invalid_input", preview.error);
|
|
16890
16892
|
const target = String(preview.path);
|
|
16891
|
-
const relative = path16.relative(
|
|
16893
|
+
const relative = path16.relative(fs12.realpathSync(root), target).replaceAll(path16.sep, "/") || "CHANGELOG.md";
|
|
16892
16894
|
const normalized = {
|
|
16893
16895
|
operation: request.operation,
|
|
16894
16896
|
payload: {
|