@miller-tech/uap 1.42.6 → 1.43.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miller-tech/uap",
3
- "version": "1.42.6",
3
+ "version": "1.43.0",
4
4
  "description": "Autonomous AI agent memory system with CLAUDE.md protocol enforcement",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -6,8 +6,9 @@ non-trivial coding work goes through the `uap deliver` convergence loop (which
6
6
  drives a model to verified completion against the real gates) rather than
7
7
  ad-hoc hand edits.
8
8
 
9
- SAFETY — default mode is ADVISORY (always allows, logs a nudge), so installing
10
- this policy never breaks editing. Strict enforcement is opt-in:
9
+ DEFAULT mode is BLOCK: substantive source edits must route through `uap deliver`
10
+ (set UAP_ENFORCE_DELIVERY=advisory to relax to a logged nudge). Escape hatches
11
+ (UAP_DELIVER_ACTIVE / UAP_DELIVER_BYPASS) are always honored:
11
12
 
12
13
  UAP_ENFORCE_DELIVERY=block # direct source edits outside a deliver context
13
14
  # are blocked (exit 2)
@@ -84,13 +85,13 @@ def main() -> None:
84
85
  "manual edit."
85
86
  )
86
87
 
87
- mode = os.environ.get("UAP_ENFORCE_DELIVERY", "advisory").lower()
88
+ mode = os.environ.get("UAP_ENFORCE_DELIVERY", "block").lower()
88
89
  if mode == "block":
89
90
  emit(False, msg)
90
91
 
91
- # Advisory (default): never blocks. Surface the nudge, then allow.
92
+ # Advisory (opt-out): never blocks. Surface the nudge, then allow.
92
93
  print(f"[delivery-enforcement advisory] {msg}", file=sys.stderr)
93
- emit(True, "advisory: nudge logged (set UAP_ENFORCE_DELIVERY=block to enforce)")
94
+ emit(True, "advisory: nudge logged (block is the default; UAP_ENFORCE_DELIVERY=advisory relaxes)")
94
95
 
95
96
 
96
97
  if __name__ == "__main__":
@@ -32,13 +32,13 @@ the expectation explicit and, when a team opts in, enforces it.
32
32
 
33
33
  Python enforcer `delivery_enforcement.py`.
34
34
 
35
- **Default mode is ADVISORY** — it always allows the edit and logs a one-line
36
- nudge toward `uap deliver`. Installing the policy therefore never breaks normal
37
- editing.
35
+ **Default mode is BLOCK** — a direct source edit outside a deliver context is
36
+ blocked (exit 2) until the work is routed through `uap deliver` (or
37
+ `UAP_DELIVER_ACTIVE`/`UAP_DELIVER_BYPASS` is set).
38
38
 
39
- **Strict mode is opt-in** via `UAP_ENFORCE_DELIVERY=block`: a direct source
40
- edit outside a deliver context is then blocked (exit 2) until the work is routed
41
- through `uap deliver` or `UAP_DELIVER_BYPASS=1` is set.
39
+ **Advisory mode is opt-out** via `UAP_ENFORCE_DELIVERY=advisory` it then
40
+ always allows the edit and logs a one-line nudge toward `uap deliver` instead
41
+ of blocking.
42
42
 
43
43
  Exempt by construction: non-source files; `docs/`, `scripts/`, `policies/`,
44
44
  `src/policies/`, test files (deliver protects those itself); and tooling