paqad-ai 1.43.0 → 1.44.1
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/CHANGELOG.md +19 -0
- package/dist/cli/index.js +3 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/kernel/gate.js +1 -1
- package/dist/kernel/gate.js.map +1 -1
- package/dist/stage-evidence/live-writer.js +1 -1
- package/dist/stage-evidence/live-writer.js.map +1 -1
- package/dist/stage-evidence/marker-parse.js +1 -1
- package/dist/stage-evidence/marker-parse.js.map +1 -1
- package/dist/stage-evidence/narration.js +1 -1
- package/dist/stage-evidence/narration.js.map +1 -1
- package/package.json +1 -1
- package/runtime/hooks/capability-gate.mjs +45 -12
- package/runtime/hooks/lib/loop-guard.mjs +32 -0
- package/runtime/hooks/verification-completion.mjs +11 -1
- package/runtime/scripts/verify-backstop.mjs +15 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# paqad-ai
|
|
2
2
|
|
|
3
|
+
## 1.44.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 91e4798: Fix the Claude Stop hook so it respects the paqad enable/disable flag and can no longer wedge a session in an infinite loop.
|
|
8
|
+
|
|
9
|
+
- **Respects ON/OFF from the real project root.** `verification-completion.mjs` now resolves the project root via `CLAUDE_PROJECT_DIR` / `PAQAD_PROJECT_ROOT` (cwd fallback) like the sibling Stop hooks, instead of raw `process.cwd()`. A project set to `paqad_enable=false` is honored even when the host launched the hook from a subdirectory (previously the disable flag was missed and the OFF project was still blocked).
|
|
10
|
+
- **Bites once, never loops.** Every blocking Stop hook now reads Claude's `stop_hook_active`: the gate still blocks (exit 2) on the first stop so the model gets a turn to fix it, but once it is already inside a Stop-hook continuation it steps aside (surfaces the summary, exits 0). An unresolvable verdict can no longer drive an infinite Stop loop. The git/CI backstop remains the hard, non-bypassable layer.
|
|
11
|
+
|
|
12
|
+
## 1.44.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 92c5d52: Decision Pause: default `decisions_ask_threshold` to `strict` (humans decide; the machine does not auto-resolve mid-confidence packets).
|
|
17
|
+
|
|
18
|
+
Previously the default was `balanced` (0.85), which let the resolver auto-resolve any decision packet whose recommendation cleared 0.85 confidence. The default is now `strict` (0.95): packets in the 0.85–0.94 confidence band surface to a human instead of resolving silently. Projects that never set the key resolve to `strict`, and fresh `paqad-ai onboard` writes `ask_threshold: strict`.
|
|
19
|
+
|
|
20
|
+
This is a behaviour change on update. Teams that prefer auto-resolution can opt back in by setting `decisions_ask_threshold=balanced` (or `permissive`) in `.paqad/configs/.config.policy` / local `.config`, or via the `PAQAD_DECISIONS_ASK_THRESHOLD` env var. Applies uniformly across all providers (core/config, not entry-file behaviour).
|
|
21
|
+
|
|
3
22
|
## 1.43.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/dist/cli/index.js
CHANGED
|
@@ -1431,7 +1431,7 @@ var init_framework_config = __esm({
|
|
|
1431
1431
|
env: "PAQAD_DECISIONS_ASK_THRESHOLD",
|
|
1432
1432
|
type: "enum",
|
|
1433
1433
|
enumValues: ASK_THRESHOLDS,
|
|
1434
|
-
default: "
|
|
1434
|
+
default: "strict",
|
|
1435
1435
|
group: "policy",
|
|
1436
1436
|
section: "Decisions (pause-contract tuning)",
|
|
1437
1437
|
comment: "strict | balanced | permissive \u2014 how eagerly to pause and ask."
|
|
@@ -24070,7 +24070,7 @@ function buildProjectProfile(selections, snapshot, overrides, projectRoot) {
|
|
|
24070
24070
|
verification_plugins: [],
|
|
24071
24071
|
escalation_rules: [],
|
|
24072
24072
|
decisions: {
|
|
24073
|
-
ask_threshold: "
|
|
24073
|
+
ask_threshold: "strict",
|
|
24074
24074
|
max_screens_per_task: 3,
|
|
24075
24075
|
idle_timeout_minutes: 30
|
|
24076
24076
|
}
|
|
@@ -26122,7 +26122,7 @@ init_cancelled_error();
|
|
|
26122
26122
|
init_events();
|
|
26123
26123
|
|
|
26124
26124
|
// src/index.ts
|
|
26125
|
-
var VERSION = "1.
|
|
26125
|
+
var VERSION = "1.44.1";
|
|
26126
26126
|
|
|
26127
26127
|
// src/cli/commands/audit.ts
|
|
26128
26128
|
init_esm_shims();
|