@amaster.ai/employee-runtime-connector 0.1.1-beta.30 → 0.1.1-beta.31
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.
|
@@ -4556,6 +4556,11 @@ var RECOVERY_WAKE_REASONS = /* @__PURE__ */ new Set([
|
|
|
4556
4556
|
"finish_successful_run_handoff",
|
|
4557
4557
|
"source_scoped_recovery_action"
|
|
4558
4558
|
]);
|
|
4559
|
+
var EVIDENCE_AUTO_VALIDATOR_IDS = /* @__PURE__ */ new Set([
|
|
4560
|
+
"current_delivery_manifest",
|
|
4561
|
+
"terminal_run_and_command",
|
|
4562
|
+
"durable_effect_evidence"
|
|
4563
|
+
]);
|
|
4559
4564
|
function isRecoveryWakeReason(wakeReason) {
|
|
4560
4565
|
return RECOVERY_WAKE_REASONS.has(wakeReason);
|
|
4561
4566
|
}
|
|
@@ -5242,6 +5247,9 @@ function runtimeAuthorizationText(context, mode, { suppressOrdinaryCompletionCon
|
|
|
5242
5247
|
const completion = asRecord(requirements.completion);
|
|
5243
5248
|
const delivery = asRecord(requirements.delivery);
|
|
5244
5249
|
const businessOutcome = asRecord(requirements.businessOutcome);
|
|
5250
|
+
const acceptancePolicy = asRecord(businessOutcome.acceptancePolicy);
|
|
5251
|
+
const acceptanceValidatorIds = Array.isArray(acceptancePolicy.validatorIds) ? acceptancePolicy.validatorIds.filter((value) => typeof value === "string") : [];
|
|
5252
|
+
const evidenceAutoAcceptance = acceptancePolicy.mode === "evidence_auto" && acceptancePolicy.verdictAuthority === "none" && acceptancePolicy.acceptanceAuthority === null && acceptanceValidatorIds.length === EVIDENCE_AUTO_VALIDATOR_IDS.size && acceptanceValidatorIds.every((value) => EVIDENCE_AUTO_VALIDATOR_IDS.has(value));
|
|
5245
5253
|
const completionRole = readString(completion.role);
|
|
5246
5254
|
const completionDeliverable = readString(completion.deliverable);
|
|
5247
5255
|
const manifestRefreshOnly = legacyManifestRefreshOnly(context);
|
|
@@ -5251,13 +5259,16 @@ function runtimeAuthorizationText(context, mode, { suppressOrdinaryCompletionCon
|
|
|
5251
5259
|
firstDocumentCheckpoint,
|
|
5252
5260
|
"If work remains in an ordinary productive run, call update_parent with status: in_progress and a concrete next action so bounded continuation recovery can preserve a live path. Status: todo does not queue a normal continuation from an ordinary productive run. Only a server-issued successful-run handoff recovery may use status: todo, and only according to its exact Recovery Instruction. Otherwise use a supported terminal or waiting disposition."
|
|
5253
5261
|
].filter(Boolean).join(" ") : "";
|
|
5254
|
-
const businessOutcomeOwnershipContract = businessOutcome.mode === "required" ? [
|
|
5262
|
+
const businessOutcomeOwnershipContract = businessOutcome.mode === "required" ? evidenceAutoAcceptance ? [
|
|
5263
|
+
"Evidence-auto Business Outcome closure is owned by the Server terminal reconciler.",
|
|
5264
|
+
"Do not create a generic review-mode request_confirmation or claim a Board handoff for final completion, and do not mark the issue done yourself. This does not prohibit an explicit intermediate review of an exact document revision before execution continues."
|
|
5265
|
+
].join(" ") : [
|
|
5255
5266
|
"Business Outcome review is owned by the Server terminal reconciler.",
|
|
5256
5267
|
"Do not create a generic review-mode request_confirmation to ask the Board to accept final completion or the Outcome, and do not mark the issue done yourself. This does not prohibit an explicit intermediate review of an exact document revision before execution continues."
|
|
5257
5268
|
].join(" ") : "";
|
|
5258
5269
|
const businessOutcomeTerminalContract = !suppressOrdinaryCompletionContract && businessOutcome.mode === "required" ? [
|
|
5259
5270
|
delivery.mode === "required" ? "When every acceptance criterion is satisfied and the exact current Delivery Manifest is ready, record the final execution disposition with update_parent status in_progress and a concise evidence summary, then end the run successfully without creating a final review interaction." : "When every acceptance criterion is satisfied, record the final execution disposition with update_parent status in_progress and a concise evidence summary, then end the run successfully without creating a final review interaction.",
|
|
5260
|
-
delivery.mode === "required" ? "Only after the run and command succeed does the Server bind the exact current Delivery Manifest and terminal Outcome evidence, create the formal Board review before generic continuation handoff is evaluated, and move the issue to in_review. Board acceptance then finalizes the issue as done atomically." : "Only after the run and command succeed does the Server bind the terminal Outcome evidence, create the formal Board review before generic continuation handoff is evaluated, and move the issue to in_review. Board acceptance then finalizes the issue as done atomically."
|
|
5271
|
+
evidenceAutoAcceptance ? delivery.mode === "required" ? "Only after the run and command succeed does the Server validate the exact current Delivery Manifest and terminal Outcome evidence, auto-accept the Outcome, and finalize the issue as done atomically. This evidence-auto path does not create a Board review; report the actual Server-owned terminal disposition without implying a handoff." : "Only after the run and command succeed does the Server validate the terminal Outcome evidence, auto-accept the Outcome, and finalize the issue as done atomically. This evidence-auto path does not create a Board review; report the actual Server-owned terminal disposition without implying a handoff." : delivery.mode === "required" ? "Only after the run and command succeed does the Server bind the exact current Delivery Manifest and terminal Outcome evidence, create the formal Board review before generic continuation handoff is evaluated, and move the issue to in_review. Board acceptance then finalizes the issue as done atomically." : "Only after the run and command succeed does the Server bind the terminal Outcome evidence, create the formal Board review before generic continuation handoff is evaluated, and move the issue to in_review. Board acceptance then finalizes the issue as done atomically."
|
|
5261
5272
|
].join(" ") : "";
|
|
5262
5273
|
const authorizationContract = missing.length > 0 ? [
|
|
5263
5274
|
`Current allowed action classes: ${[...allowed].join(", ") || "task_governance"}.`,
|
|
@@ -9414,7 +9425,7 @@ function assertSourceAcquisitionRuntimeAuthority({
|
|
|
9414
9425
|
}
|
|
9415
9426
|
|
|
9416
9427
|
// src/amaster-runtime-daemon.mjs
|
|
9417
|
-
var CONNECTOR_VERSION = "0.1.1-beta.
|
|
9428
|
+
var CONNECTOR_VERSION = "0.1.1-beta.31";
|
|
9418
9429
|
var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
|
|
9419
9430
|
var SOURCE_ACQUISITION_CAPABILITY = "source_acquisition_v1";
|
|
9420
9431
|
var SOURCE_ACQUISITION_PROFILE_VERSION = "source_acquisition_v1";
|
package/dist/amaster-runtime.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { basename, dirname, join, resolve } from "node:path";
|
|
|
6
6
|
import { homedir, hostname } from "node:os";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
|
|
9
|
-
const CONNECTOR_VERSION = "0.1.1-beta.
|
|
9
|
+
const CONNECTOR_VERSION = "0.1.1-beta.31";
|
|
10
10
|
|
|
11
11
|
const CAPABILITIES = [
|
|
12
12
|
"remote_registration",
|