@amaster.ai/employee-runtime-connector 0.1.1-beta.2 → 0.1.1-beta.20

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,33 @@ 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
+
54
+ Pi JSON mode can also repeat a cumulative `message` snapshot beside each
55
+ incremental `message_update`. The daemon compacts only that redundant snapshot
56
+ from its retained parse/result buffer while preserving the delta, terminal
57
+ events, live logs, and tool-argument guard input. Output telemetry reports both
58
+ `rawOutputBytes` and `retainedOutputBytes` plus `retentionCompactedBytes`; flood
59
+ limits continue to use raw bytes, so retention compaction never hides transport
60
+ pressure or weakens the 50 MiB safety boundary.
61
+
35
62
  ## Pi terminal cleanup outcome
36
63
 
37
64
  Pi execution uses three separate evidence layers: