@amaster.ai/employee-runtime-connector 0.1.1-beta.0 → 0.1.1-beta.10

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/README.md CHANGED
@@ -32,6 +32,25 @@ The source of truth lives under this package's `src/` directory. The package bui
32
32
 
33
33
  Runtime code belongs in the container image. Persist only connector state, the result outbox, and workspaces under the configured state directory.
34
34
 
35
+ ## Pi tool-argument transport guard
36
+
37
+ `AMASTER_PI_TOOL_ARGUMENT_GUARD_MODE` defaults to `shadow`; supported values are
38
+ `off`, `shadow`, and `enforce`. Shadow records metadata-only matches while the
39
+ single-incident thresholds are calibrated. Promote deliberately to `enforce`
40
+ after reviewing near misses and false positives; use `off` as the emergency
41
+ rollback. The enforce signature
42
+ requires at least 8 MiB transported, at most 512 KiB materialized, and at least
43
+ 16x amplification before `tool_execution_start`. Replay ratio is telemetry,
44
+ not a kill prerequisite. Threshold overrides are available through the
45
+ `AMASTER_PI_TOOL_ARGUMENT_*` environment variables, but production changes
46
+ must be based on shadow telemetry and false-positive review.
47
+
48
+ An enforced stop returns `pi_tool_argument_stream_amplification` with
49
+ `retryable=false` and recommends
50
+ `upsert_document_revision_from_workspace_file`. The command result keeps only
51
+ byte counts, ratios, event/tool identity, thresholds, and near-miss distances;
52
+ it omits the inline argument body.
53
+
35
54
  ## Pi terminal cleanup outcome
36
55
 
37
56
  Pi execution uses three separate evidence layers:
@@ -40,7 +59,7 @@ Pi execution uses three separate evidence layers:
40
59
  2. a durable, inspectable Runtime Action receipt or finalized Runtime Artifact;
41
60
  3. process cleanup disposition.
42
61
 
43
- An exact process-kill `EPERM` error emitted only after the first two layers have completed may be isolated as a failed `cleanupDisposition` warning without changing the command's successful business result. Both accepted shapes require `kill` and `EPERM`; generic filesystem/process permission text such as `EPERM: operation not permitted, unlink ...` is a business error. A `runtime_action.status` readback is evidence only when its call/plan ref matches an earlier submit/commit receipt in the same transcript. The diagnostic and durable evidence reference remain in the result. Text-only or action-only-without-assistant-output streams, standalone governed reads, non-effect Runtime Action tools, rejected or pending effects, pre-terminal errors, provider failures, timeout, cancellation, resource limits, any signal, live residue, and uncertain ownership remain failures.
62
+ An exact process-kill `EPERM` error emitted only after the first two layers have completed may be isolated as a failed `cleanupDisposition` warning without changing the command's successful business result. Both accepted shapes require `kill` and `EPERM`; generic filesystem/process permission text such as `EPERM: operation not permitted, unlink ...` is a business error. Durable evidence is limited to a completed Runtime Action, a finalized Runtime Artifact, or an accepted `company_diagnosis_brief` provider receipt whose invocation and returned Diagnosis/document/work-product identities are exact. A `runtime_action.status` readback is evidence only when its call/plan ref matches an earlier submit/commit receipt in the same transcript. The diagnostic and durable evidence reference remain in the result. Text-only or action-only-without-assistant-output streams, standalone governed reads, non-effect Runtime Action tools, rejected or pending effects, pre-terminal errors, provider failures, timeout, cancellation, resource limits, any signal, live residue, and uncertain ownership remain failures.
44
63
 
45
64
  This isolation does not schedule a retry or a second business continuation. Command result delivery and the result outbox remain the sole idempotency boundary.
46
65