@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
|
Binary file
|
|
@@ -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
|
-
|
|
10
|
-
|
|
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", "
|
|
88
|
+
mode = os.environ.get("UAP_ENFORCE_DELIVERY", "block").lower()
|
|
88
89
|
if mode == "block":
|
|
89
90
|
emit(False, msg)
|
|
90
91
|
|
|
91
|
-
# Advisory (
|
|
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 (
|
|
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
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
**
|
|
40
|
-
|
|
41
|
-
|
|
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
|