@lannguyensi/harness 0.51.0 → 0.53.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/CHANGELOG.md +182 -0
- package/dist/cli/approve/understanding.d.ts +46 -0
- package/dist/cli/approve/understanding.js +50 -22
- package/dist/cli/approve/understanding.js.map +1 -1
- package/dist/cli/audit.d.ts +29 -0
- package/dist/cli/audit.js +130 -17
- package/dist/cli/audit.js.map +1 -1
- package/dist/cli/delegate/index.d.ts +63 -0
- package/dist/cli/delegate/index.js +313 -0
- package/dist/cli/delegate/index.js.map +1 -0
- package/dist/cli/doctor/auto-approve-mode.d.ts +37 -0
- package/dist/cli/doctor/auto-approve-mode.js +80 -0
- package/dist/cli/doctor/auto-approve-mode.js.map +1 -0
- package/dist/cli/doctor/bypass-without-auto-approve.d.ts +38 -0
- package/dist/cli/doctor/bypass-without-auto-approve.js +89 -0
- package/dist/cli/doctor/bypass-without-auto-approve.js.map +1 -0
- package/dist/cli/doctor/codex-config-drift.d.ts +28 -0
- package/dist/cli/doctor/codex-config-drift.js +240 -0
- package/dist/cli/doctor/codex-config-drift.js.map +1 -0
- package/dist/cli/doctor/format.js +39 -1
- package/dist/cli/doctor/format.js.map +1 -1
- package/dist/cli/doctor/index.js +68 -7
- package/dist/cli/doctor/index.js.map +1 -1
- package/dist/cli/doctor/settings-drift.d.ts +6 -0
- package/dist/cli/doctor/settings-drift.js +20 -6
- package/dist/cli/doctor/settings-drift.js.map +1 -1
- package/dist/cli/doctor/types.d.ts +54 -0
- package/dist/cli/doctor/types.js.map +1 -1
- package/dist/cli/doctor/ug-auto-approvals.js +18 -43
- package/dist/cli/doctor/ug-auto-approvals.js.map +1 -1
- package/dist/cli/doctor/ug-delegations.d.ts +26 -0
- package/dist/cli/doctor/ug-delegations.js +112 -0
- package/dist/cli/doctor/ug-delegations.js.map +1 -0
- package/dist/cli/doctor/understanding-mode-env.d.ts +2 -0
- package/dist/cli/doctor/understanding-mode-env.js +5 -2
- package/dist/cli/doctor/understanding-mode-env.js.map +1 -1
- package/dist/cli/gc/index.d.ts +13 -2
- package/dist/cli/gc/index.js +203 -1
- package/dist/cli/gc/index.js.map +1 -1
- package/dist/cli/index.js +133 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init/composer.js +9 -0
- package/dist/cli/init/composer.js.map +1 -1
- package/dist/cli/init/profiles.d.ts +2 -2
- package/dist/cli/init/profiles.js +11 -0
- package/dist/cli/init/profiles.js.map +1 -1
- package/dist/cli/init/templates.d.ts +1 -1
- package/dist/cli/init/templates.js +11 -0
- package/dist/cli/init/templates.js.map +1 -1
- package/dist/cli/pack/approve-escape.js +16 -7
- package/dist/cli/pack/approve-escape.js.map +1 -1
- package/dist/cli/pack/auto-approve-path.d.ts +17 -0
- package/dist/cli/pack/auto-approve-path.js +56 -3
- package/dist/cli/pack/auto-approve-path.js.map +1 -1
- package/dist/cli/pack/hook-pre-tool-use.d.ts +25 -0
- package/dist/cli/pack/hook-pre-tool-use.js +335 -3
- package/dist/cli/pack/hook-pre-tool-use.js.map +1 -1
- package/dist/cli/pack/index.d.ts +1 -0
- package/dist/cli/pack/index.js +1 -0
- package/dist/cli/pack/index.js.map +1 -1
- package/dist/cli/pack/transcript-report-scan.d.ts +71 -0
- package/dist/cli/pack/transcript-report-scan.js +359 -0
- package/dist/cli/pack/transcript-report-scan.js.map +1 -0
- package/dist/cli/pack/upgrade.d.ts +32 -0
- package/dist/cli/pack/upgrade.js +273 -0
- package/dist/cli/pack/upgrade.js.map +1 -0
- package/dist/cli/smoke/index.d.ts +18 -1
- package/dist/cli/smoke/index.js +54 -0
- package/dist/cli/smoke/index.js.map +1 -1
- package/dist/io/read-json-dir-entries.d.ts +36 -0
- package/dist/io/read-json-dir-entries.js +38 -0
- package/dist/io/read-json-dir-entries.js.map +1 -0
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve-default.d.ts +35 -0
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve-default.js +86 -0
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve-default.js.map +1 -0
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve.d.ts +76 -2
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve.js +139 -2
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve.js.map +1 -1
- package/dist/policy-packs/builtin/understanding-before-execution/delegation-markers.d.ts +237 -0
- package/dist/policy-packs/builtin/understanding-before-execution/delegation-markers.js +647 -0
- package/dist/policy-packs/builtin/understanding-before-execution/delegation-markers.js.map +1 -0
- package/dist/policy-packs/builtin/understanding-before-execution/index.d.ts +4 -1
- package/dist/policy-packs/builtin/understanding-before-execution/index.js +26 -1
- package/dist/policy-packs/builtin/understanding-before-execution/index.js.map +1 -1
- package/dist/policy-packs/builtin/understanding-before-execution/permission-mode-observations.d.ts +71 -0
- package/dist/policy-packs/builtin/understanding-before-execution/permission-mode-observations.js +169 -0
- package/dist/policy-packs/builtin/understanding-before-execution/permission-mode-observations.js.map +1 -0
- package/dist/policy-packs/builtin/understanding-before-execution.d.ts +19 -0
- package/dist/policy-packs/builtin/understanding-before-execution.js +29 -0
- package/dist/policy-packs/builtin/understanding-before-execution.js.map +1 -1
- package/dist/runtime/approval-signing.js +28 -0
- package/dist/runtime/approval-signing.js.map +1 -1
- package/dist/runtime/git-context.js +7 -1
- package/dist/runtime/git-context.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,188 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.53.0] - 2026-08-30
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **`harness gc` sweeps expired delegation markers and their orphaned adoption ledgers** (task `3ece079d`, follow-up from UG auto-mode slice 3, agent-tasks `37ad0b05`). `harness gc` grew a new `delegation` category alongside `report` / `parse-error` / `approval-marker`: a `harness.generated/.delegations/<sid>` marker is a candidate once its own signed `expires` binding (read via `parseDelegationApprovedBy`, no signature check needed for a retention decision) is older than the same retention window every other category uses, and its `harness.generated/.delegation-adoptions/<sid>` once-per-session adoption ledger is a candidate once that session's delegation has expired, or once the ledger itself (by its own mtime) is older than the retention window with no marker at all for its session; the ledger age gate came out of the pre-merge review (a brand-new orphan ledger had been listed under "older than 30d") and also closes the window between the two directory reads; a marker gc cannot parse is reported in `GcResult.unparseable` and never deleted, dry-run or `--apply`, and its ledger sibling is kept alongside it. `ADOPTION_LEDGER_DIRNAME` moved from `hook-pre-tool-use.ts` (its only prior writer) to `delegation-markers.ts`, next to `DELEGATION_MARKER_DIRNAME`, so the new sweep reads it without a cli-to-cli import; re-exported through the same `understanding-before-execution` shim every other delegation symbol already travels through. Docs: `docs/CLI.md`'s `gc` row and a new "Cleanup" paragraph in `docs/policy-packs/understanding-before-execution.md`'s delegation section.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- **`git-context.ts`: resolve branch refs from the common dir in a linked worktree**
|
|
19
|
+
(agent-tasks `498e86d3`). `resolveGitContext` read `<gitDir>/refs/heads/<branch>`
|
|
20
|
+
and `<gitDir>/packed-refs` straight from the per-worktree gitdir it found via
|
|
21
|
+
`findGitEntry`, but a `git worktree add` checkout's per-worktree gitdir does
|
|
22
|
+
not store `refs/heads/*` or `packed-refs` at all (its `refs/` tree is empty
|
|
23
|
+
apart from the per-worktree `refs/bisect` and `refs/worktree` namespaces);
|
|
24
|
+
the branch refs live in the shared common dir (named by that gitdir's own
|
|
25
|
+
`commondir` file). Every gate that shells out to the solution-acceptance push
|
|
26
|
+
or finish/merge check from a linked worktree with an attached branch therefore
|
|
27
|
+
reported "cannot resolve the current git HEAD" (a detached HEAD, whose sha
|
|
28
|
+
sits directly in `HEAD`, was unaffected). `resolveGitContext` now routes the
|
|
29
|
+
branch-ref lookup through the existing `resolveCommonDir` helper (already used
|
|
30
|
+
by `resolveOriginHeadBase`'s callers for the same reason), a no-op for the
|
|
31
|
+
main checkout since `resolveCommonDir` returns the gitdir unchanged when no
|
|
32
|
+
`commondir` file exists. `resolveOriginHeadBase` (the default-branch resolver)
|
|
33
|
+
already routed through `resolveCommonDir` at every call site; that path is
|
|
34
|
+
pinned with a new linked-worktree test rather than changed. Two other
|
|
35
|
+
consumers of the same unresolved branch/sha were equally broken in a linked
|
|
36
|
+
worktree and now work there too: the `head:<sha>` preflight token
|
|
37
|
+
(`src/cli/session-start/index.ts`) and the `at_head:true` requires-flag
|
|
38
|
+
(`src/runtime/intercept.ts`).
|
|
39
|
+
|
|
40
|
+
- **Understanding gate: `auto_approve` now ships active in every `harness init` template, and existing installs get an upgrade path and a doctor warning** (task `8f637efd`, D-004, `docs/decisions/2026-08-27-ug-auto-mode-approval.md`, "Amendment: install default"). Origin: observed 2026-08-29 on the Mac mini install (harness 0.51.0 global, `understanding-before-execution` pack active, session running under `bypassPermissions`): after the 4h `approval_lifecycle` expired, the gate required a fresh Understanding Report, `harness approve understanding` resolved via the manual `permissionDecision: ask` path, and the operator had to confirm a prompt by hand; `harness doctor` reported "auto approvals in the last 20 sessions: 0". Root cause: `~/.harness/harness.yaml` had never carried an `auto_approve` block, because no init template shipped one (`grep -rn auto_approve src/cli/init` returned nothing before this change), and there was no upgrade path for an install that predated the block.
|
|
41
|
+
- `FULL_TEMPLATE`, `SOLO_TEMPLATE`, and `TEAM_TEMPLATE` (`minimal` carries no `policy_packs` at all) now ship `auto_approve: { when: [bypassPermissions], harnesses: [claude-code], require_report: true }` active, rendered from one canonical source (`src/policy-packs/builtin/understanding-before-execution/auto-approve-default.ts`) so `harness init`, the new upgrade verb, and the new doctor finding cannot drift on the snippet.
|
|
42
|
+
- New verb `harness pack upgrade understanding-before-execution [--dry-run]` (`src/cli/pack/upgrade.ts`) inserts the same block into an existing manifest's `config:` mapping by text-level line insertion (never a full YAML parse-and-reserialize), so hand edits elsewhere in the file are untouched. Idempotent (a no-op, byte-identical, when `auto_approve:` already exists), and refuses rather than guesses when the pack block or its `config:` key cannot be located unambiguously.
|
|
43
|
+
- New `harness doctor` advisory (`src/cli/doctor/bypass-without-auto-approve.ts`): warns when `bypassPermissions` was observed for a session and `auto_approve` does not cover it. The observation is written by the hook process from the PreToolUse payload, not from a ledger row or report field the agent writes through its own API, under `harness.generated/.permission-mode-observations/` (`src/policy-packs/builtin/understanding-before-execution/permission-mode-observations.ts`), independent of whether `auto_approve` is configured. It is NOT signed (review round 3, F2): it is evidence the hook was invoked with a given payload, not proof a session actually ran under that mode, so an already-approved session (or anything else able to invoke the hook binary directly) can write, or forge, one; the finding stays advisory-only for exactly that reason and never gates or mints an approval.
|
|
44
|
+
- `docs/policy-packs/understanding-before-execution.md` and `docs/CLI.md` document the new default, verb, and finding as rules; this entry is the evidence record for the change.
|
|
45
|
+
- **Review round 2 fixes.** A shared `readJsonDirEntriesRejectingSymlinks` helper (`src/io/read-json-dir-entries.ts`) replaces the verbatim readdir-classify-parse loop `ug-auto-approvals.ts` and `permission-mode-observations.ts` had each grown independently. `harness init --interactive`'s Custom composer now also ships `auto_approve` (it had been the one template-shaped surface this default missed, since it builds a config object rather than YAML text). `harness pack upgrade understanding-before-execution` now accepts a double- or single-quoted `- name: "understanding-before-execution"` pack entry and preserves a CRLF manifest's line endings end to end instead of inserting bare-LF lines. The doctor finding's `harnesses` coverage leg (previously untested) now has a discriminating test. `harness gc` grew a fourth mtime-aged category, `permission-mode-observation`, sweeping `harness.generated/.permission-mode-observations/` the same way it already sweeps `.approvals/`.
|
|
46
|
+
- **Review round 3 fixes.** F1 (HIGH): `permissionModeObservationPathFor` had joined `session_id` into the write path unvalidated (trusting the caller's own empty-string check), so a crafted `session_id` reaching `harness pack hook pre-tool-use` on stdin (e.g. `../../escape-target/victim`) could write a file outside `harness.generated/.permission-mode-observations/`; it now calls the same `rejectMalformedSessionId` the approval marker path uses, and a rejected id is treated as another best-effort write failure (one stderr warning, fail-open, never a throw out of the hook). The read side (`listPermissionModeObservations`) now runs every returned `sessionId` through a `sanitizeForDisplay` step (mirrors `persisted-reports.ts`'s `sanitizeDetailValue`: strips C0/DEL control characters including ESC, caps length) before it can reach `harness doctor`'s finding `message`, since a hostile on-disk entry name or JSON `sessionId` field is not otherwise constrained to be display-safe. Mutation probe M1: dropping the `rejectMalformedSessionId` call from `permissionModeObservationPathFor` turns 5 tests red (`tests/policy-packs/understanding-before-execution-permission-mode-observations.test.ts`, `tests/cli/pack-hook-pre-tool-use-permission-mode-observation.test.ts`); restored, all green.
|
|
47
|
+
- **Review round 4 (verification) fixes.** The ADR amendment's one remaining "non-agent-writable" phrase was aligned with the unsigned/advisory wording used everywhere else; `observedAt` is display-sanitised alongside `sessionId` (in the reader and again at the finding's render boundary, mirroring `persisted-reports.ts`), because V8's date parser accepts parenthesised trailing text so a crafted timestamp passed validation and reached `harness doctor` raw; the hook's own stderr warning sanitises the echoed session id; the hook-level traversal test now pins the concrete verdict (`blocked === true`) instead of a type check; the duplication pin follows the measured 112; and the broadened `auto_approve:` presence match documents its block-scalar limit (fail-safe no-op).
|
|
48
|
+
- F2 (MEDIUM): corrected the "hook-written, not agent-writable" framing above and in `permission-mode-observations.ts`'s and `bypass-without-auto-approve.ts`'s module headers and `docs/policy-packs/understanding-before-execution.md`: the observation is unsigned, so it proves the hook was invoked with a payload, not that a session ran under a given mode; the finding stays advisory-only and never gates. Not signing the observation in this task was an orchestrator decision (D-013): a second signed artifact would widen the marker-signing surface the ADR already lists as a residue, and the finding is advisory. A future hardening (signing the observation like an approval marker) is named as a possible follow-up, not undertaken here.
|
|
49
|
+
- F3 (MEDIUM): `harness pack upgrade`'s `auto_approve:` presence check used strict line equality, so a hand-applied flow-style value (`auto_approve: {when: [...], ...}`) or a bare key with a trailing comment was not recognized as present; the verb inserted a second key and `parseYaml` threw "Map keys must be unique" uncaught (exit 70, a raw YAML message). The check now matches any line whose trimmed form starts with `auto_approve:`, and both `parseYaml` call sites (pre-lock and under the lock) are wrapped so a still-unparseable proposal surfaces as this verb's own `HarnessExitError` at `EX_FAIL` naming the pack, instead of an uncaught exception. Mutation probe M3: reverting the presence check to strict equality turns the two new flow-style/trailing-comment tests in `tests/cli/pack-upgrade.test.ts` red; restored, all green (22/22).
|
|
50
|
+
- F4 (LOW): `packUpgrade` reported `applied: true` unconditionally after the locked callback ran, even when the callback found the block already present (a concurrent writer had raced it) and returned without writing. The callback now sets a `wroteUnderLock` flag only when it actually calls `atomicWriteFile`, and the result reports `applied: false, alreadyPresent: true` on the raced path. Covered by a real (unmocked) concurrency test in `tests/cli/pack-upgrade.test.ts`: two `packUpgrade` calls on the same fresh manifest via `Promise.all`, asserting exactly one reports `applied: true` and the manifest ends up with exactly one `auto_approve:` key.
|
|
51
|
+
- F5 (LOW): dropped "task 8f637efd" from the `harness pack upgrade --description` help string and the pack doc's section heading; kept in source comments and here.
|
|
52
|
+
|
|
53
|
+
## [0.52.0] - 2026-08-28
|
|
54
|
+
|
|
55
|
+
### Added
|
|
56
|
+
|
|
57
|
+
- **Understanding gate: `harness delegate`, a signed pre-authorization for headless `claude -p` children, slice 3 of the auto-mode-approval ADR**
|
|
58
|
+
(agent-tasks `37ad0b05`, `docs/decisions/2026-08-27-ug-auto-mode-approval.md`,
|
|
59
|
+
"`claude -p` delegation"). `harness delegate --child-session <uuid>
|
|
60
|
+
(--cwd <path> | --task <id>) [--ttl <duration>] [--report <path>]
|
|
61
|
+
[--session-id <parent>]` issues a signed delegation for a `-p` child,
|
|
62
|
+
bound to an already-approved PARENT session, refusing when the parent
|
|
63
|
+
carries no valid marker or when the delegation binds neither a cwd nor
|
|
64
|
+
a task. The delegation is written to its own directory,
|
|
65
|
+
`harness.generated/.delegations/<child-sid>`, never `.approvals/`,
|
|
66
|
+
signed under markerId `delegation-<child-sid>` with every binding
|
|
67
|
+
(parent session, hashed cwd, task, expiry, and, in the fallback shape,
|
|
68
|
+
the launcher-supplied report's path and content hash) packed into the
|
|
69
|
+
signed `approvedBy` string; a dedicated verifier checks the signature,
|
|
70
|
+
the parsed bindings, expiry, and cwd/task match before the child's own
|
|
71
|
+
PreToolUse hook will mint anything, and every refusal is a distinct
|
|
72
|
+
diagnostic, never a fall-through to allow. The audit-only ledger fact
|
|
73
|
+
`understanding-delegated:<child-sid>:<parent-sid>` is written
|
|
74
|
+
alongside it.
|
|
75
|
+
- **Child report capture under `-p`.** A report the child emits before
|
|
76
|
+
its first tool call is not yet in the session transcript at the
|
|
77
|
+
instant the hook fires; the new `auto_approve.report_scan.max_wait`
|
|
78
|
+
config key bounds a fail-closed poll for it (default `2s`, a
|
|
79
|
+
measured value derived from the observed `-p` latency distribution;
|
|
80
|
+
see `docs/okf/understanding-gate-auto-mode-signals.md` for the
|
|
81
|
+
derivation), with block-and-retry as the behaviour past the bound
|
|
82
|
+
rather than an alternative to it. The default was retuned from an
|
|
83
|
+
initial 500ms after end-to-end dogfood runs against a real
|
|
84
|
+
full-length report (see the evidence doc's "Chosen
|
|
85
|
+
`report_scan.max_wait` default" section for why). The child's own
|
|
86
|
+
PreToolUse hook,
|
|
87
|
+
on a valid delegation, runs this scan, persists the report bound to
|
|
88
|
+
the child's session id, and only then mints the child's own
|
|
89
|
+
auto-marker with `approvedBy` carrying the parent linkage.
|
|
90
|
+
- **Once-per-session report adoption.** The scan accepts the report
|
|
91
|
+
under any heading level (`#` through `######`), matching the schema
|
|
92
|
+
hint the child is given rather than pinning one, and each transcript
|
|
93
|
+
entry a report is captured from is spent at most once per session:
|
|
94
|
+
its id is recorded, one per line, in its own directory
|
|
95
|
+
`harness.generated/.delegation-adoptions/<child-sid>`, a sibling of
|
|
96
|
+
`.delegations/` rather than nested inside it, so `harness doctor`'s
|
|
97
|
+
delegations-on-disk metric (which counts every regular file directly
|
|
98
|
+
under `.delegations/`) never miscounts it. Without this rule an
|
|
99
|
+
expired auto-marker would re-mint itself from the same transcript
|
|
100
|
+
entry, silently handing the delegation's longer TTL to the approval.
|
|
101
|
+
The minted marker's `approvedBy` on this path always carries the
|
|
102
|
+
neutral `delegated` mode literal, never the payload's raw
|
|
103
|
+
`permission_mode`, so a doctor listing never buckets it under a mode
|
|
104
|
+
that played no part in the decision.
|
|
105
|
+
- **The harness smoke runner is the first consumer.** `harness smoke`
|
|
106
|
+
now issues a delegation for the session id it already chooses,
|
|
107
|
+
bound to the cwd the child actually spawns into, before every run;
|
|
108
|
+
a refusal prints one line and the run proceeds exactly as before
|
|
109
|
+
slice 3, and `--no-delegate` opts a launcher back into the
|
|
110
|
+
pre-slice-3 shape entirely.
|
|
111
|
+
- **`harness doctor`** gains a `delegations on disk: <count> (<count>
|
|
112
|
+
expired, <count> unreadable)` line in the understanding-gate
|
|
113
|
+
section, counted from `.delegations/` only (never `.approvals/`),
|
|
114
|
+
informational unless it finds an unreadable file.
|
|
115
|
+
- **The `--report` fallback shape is issued and signature-verifiable
|
|
116
|
+
but not yet consumed by the child hook**: a delegation that binds a
|
|
117
|
+
launcher-supplied report is refused (`report_path_mismatch`) rather
|
|
118
|
+
than checked against it, since the hook never passes
|
|
119
|
+
`launcherReportPath` to the verifier; wiring it in is a named
|
|
120
|
+
follow-up, and the transcript-scan channel above is what this
|
|
121
|
+
release actually acts on.
|
|
122
|
+
- **`harness doctor`: warn when `auto_approve` is configured without
|
|
123
|
+
`mode: grill_me`** (agent-tasks `abfad738`, follow-up of the ADR
|
|
124
|
+
`docs/decisions/2026-08-27-ug-auto-mode-approval.md` slice 1). The
|
|
125
|
+
auto-approval path's report precondition reuses
|
|
126
|
+
`validatePersistedReport`, which only enforces the report's `mode`
|
|
127
|
+
field when it is `grill_me`. Outside that mode, report validation is
|
|
128
|
+
structural only. `harness doctor` now prints one advisory `⚠` line,
|
|
129
|
+
in `harness doctor`'s `Environment` section, when the
|
|
130
|
+
`understanding-before-execution` pack is declared and enabled, its
|
|
131
|
+
`config.auto_approve` parses as a valid opt-in block, and the
|
|
132
|
+
RESOLVED effective mode (`resolveModeFromConfig`, same GENERATION-path
|
|
133
|
+
resolver `checkUnderstandingModeEnvDivergence` uses) is not
|
|
134
|
+
`grill_me`. A missing or unrecognised `config.mode` resolves to the
|
|
135
|
+
`grill_me` default and never fires this warning, since that is the
|
|
136
|
+
mode the generated Stop-hook command actually passes at runtime. A
|
|
137
|
+
session-level `UNDERSTANDING_GATE_MODE` env override is a separate gap
|
|
138
|
+
covered by the existing mode/env divergence advisory, not by this
|
|
139
|
+
check. Always advisory (rolls into `warningCount`, never
|
|
140
|
+
`errorCount`); surfaced in `--json` as `ugAutoApproveMode`. New module
|
|
141
|
+
`src/cli/doctor/auto-approve-mode.ts`.
|
|
142
|
+
- **`harness audit` now shows understanding-gate approval facts** (agent-tasks
|
|
143
|
+
`5ad63b01`, follow-up of slice 1 of the ADR
|
|
144
|
+
`docs/decisions/2026-08-27-ug-auto-mode-approval.md`, "Audit and doctor").
|
|
145
|
+
A new `approvals` section, alongside the unchanged `policy_decision` table,
|
|
146
|
+
lists the raw ledger facts `understanding-approved:<sid>` (plain or
|
|
147
|
+
`:forced:<field>`-suffixed) and `understanding-auto-approved:<sid>` within
|
|
148
|
+
the audited `--since` window, each with timestamp, tag and source (tag
|
|
149
|
+
and source are flattened and length-capped before rendering, so an
|
|
150
|
+
embedded newline in untrusted ledger content can't split one row into
|
|
151
|
+
two). A second server-side ledger fetch narrows by `contentPrefix:
|
|
152
|
+
"understanding-"` when the connected grounding-mcp supports it; matching
|
|
153
|
+
is by exact tag (built from the same `approvedLedgerTagFor` /
|
|
154
|
+
`autoApprovedLedgerTagFor` helpers the two writers use), so an unrelated
|
|
155
|
+
ledger row that merely contains one of these strings (for example a
|
|
156
|
+
`review:<n>:approved` fact) cannot slip in. Filtered by `--since` and
|
|
157
|
+
`--session` only; `--policy` / `--outcome` stay policy-decision-only.
|
|
158
|
+
Empty section is omitted in text output; `--json` always carries an
|
|
159
|
+
`approvals` array plus the resolved `sessionId`. A degraded approvals-only
|
|
160
|
+
fetch degrades softly rather than discarding the already-fetched decisions
|
|
161
|
+
table: text gets one `approvals unavailable: <reason>` line, `--json` gets
|
|
162
|
+
`approvalsUnavailable` (with `approvals: []`), and the audit-only posture
|
|
163
|
+
gets one stderr line; exit code stays tied to the policy-decision fetch.
|
|
164
|
+
`src/cli/audit.ts`, `src/cli/index.ts`, `tests/cli/audit.test.ts`.
|
|
165
|
+
- **`harness doctor` warns on a live Codex `approval_policy = "never"` or
|
|
166
|
+
full-access `default_permissions` selection** (agent-tasks `f59ea0eb`,
|
|
167
|
+
follow-up of slice 2 of the ADR
|
|
168
|
+
`docs/decisions/2026-08-27-ug-auto-mode-approval.md`). Either config
|
|
169
|
+
key in `$CODEX_HOME/config.toml` or `<repo>/.codex/config.toml`
|
|
170
|
+
pre-sets the trusted `permission_mode` signal the Codex `auto_approve`
|
|
171
|
+
path consumes. `approval_policy = "never"` is the measured signal
|
|
172
|
+
(`dogfood/ug-auto-mode-signals/README.md`, section (l)); the
|
|
173
|
+
full-access `default_permissions` check is a threat-model heuristic on
|
|
174
|
+
a key the operator can set, not a measured signal (section (k) shows
|
|
175
|
+
it does not move `permission_mode` under `codex exec`). Codex
|
|
176
|
+
counterpart of the existing `permissions.defaultMode` settings-drift
|
|
177
|
+
warning for Claude Code. Gated on `auto_approve.harnesses` listing
|
|
178
|
+
`codex`, so a repo that never opted Codex into the auto path sees no
|
|
179
|
+
line. Warning only, never an enforcement; new module
|
|
180
|
+
`src/cli/doctor/codex-config-drift.ts`.
|
|
181
|
+
|
|
182
|
+
### Security
|
|
183
|
+
|
|
184
|
+
- **The honest trust model in `src/runtime/approval-signing.ts` names the delegation as a third signed artifact kind and `harness delegate` as a second CLI writer**
|
|
185
|
+
(agent-tasks `37ad0b05`), beside the approval / branch-protection
|
|
186
|
+
markers and the `harness approve` verbs: same key, same HMAC
|
|
187
|
+
primitive, its own markerId namespace (`delegation-<child-sid>`), and
|
|
188
|
+
a different meaning for `reportContentHash` on that artifact kind (the
|
|
189
|
+
launcher-supplied report file, not a persisted one) that a reader must
|
|
190
|
+
branch on.
|
|
191
|
+
|
|
10
192
|
## [0.51.0] - 2026-08-27
|
|
11
193
|
|
|
12
194
|
### Added
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ModeConfigSource } from "../../policy-packs/builtin/understanding-before-execution.js";
|
|
1
2
|
import type { Manifest } from "../../schema/index.js";
|
|
2
3
|
import { type LoaderOptions } from "../loader.js";
|
|
3
4
|
import { type StdinReportOutcome } from "./stdin-report.js";
|
|
@@ -203,6 +204,51 @@ export interface ApproveUnderstandingResult {
|
|
|
203
204
|
skipped: true;
|
|
204
205
|
};
|
|
205
206
|
}
|
|
207
|
+
/** Best-effort manifest load plus the resolved `understanding-before-execution` pack config entry it feeds. */
|
|
208
|
+
export interface DeclaredUnderstandingPack {
|
|
209
|
+
/** `null` when the manifest could not be loaded; the caller degrades gracefully rather than treating this as fatal. */
|
|
210
|
+
manifest: Manifest | null;
|
|
211
|
+
/** The load failure's message, when `manifest` is `null`. `null` on a clean load. */
|
|
212
|
+
manifestLoadError: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* The pack's own declared entry when present and not explicitly
|
|
215
|
+
* `enabled: false`; otherwise a synthesized empty entry (`config: {}`)
|
|
216
|
+
* so a caller's `resolveMode` / `approval_lifecycle` read still resolves
|
|
217
|
+
* via Env > default instead of needing a null check.
|
|
218
|
+
*/
|
|
219
|
+
declaredPack: ModeConfigSource;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Load the manifest (best-effort, never throws) and resolve the
|
|
223
|
+
* `understanding-before-execution` pack's declared config entry from it.
|
|
224
|
+
* Extracted (agent-tasks 37ad0b05) so
|
|
225
|
+
* `approveUnderstanding` and `issueDelegation` (`src/cli/delegate/index.ts`)
|
|
226
|
+
* share one copy of this manifest-load-plus-pack-lookup shape instead of
|
|
227
|
+
* each carrying its own byte-identical block
|
|
228
|
+
* (`npm run check:duplication` was flagging the pair as a clone). Pure
|
|
229
|
+
* extraction: the try/catch and the `declaredPack` fallback are unchanged
|
|
230
|
+
* from what each call site did inline before this change.
|
|
231
|
+
*/
|
|
232
|
+
export declare function loadDeclaredUnderstandingPack(opts: LoaderOptions & {
|
|
233
|
+
manifest?: Manifest;
|
|
234
|
+
}): DeclaredUnderstandingPack;
|
|
235
|
+
/**
|
|
236
|
+
* Exported (agent-tasks 37ad0b05, Slice 3 of the auto-mode-approval ADR)
|
|
237
|
+
* with an additive `source` parameter so `harness delegate` can reuse
|
|
238
|
+
* this writer verbatim instead of re-implementing the same
|
|
239
|
+
* findGroundingMcp + addLedgerFact shape a third time in this codebase
|
|
240
|
+
* (branch-protection.ts already carries its own independent copy for
|
|
241
|
+
* its own `harness-approve-branch-protection` source). `source` defaults
|
|
242
|
+
* to this file's own literal, so `approveUnderstanding`'s own call below
|
|
243
|
+
* (which does not pass it) is byte-identical to before this change: pure
|
|
244
|
+
* additive parameterization, not a behaviour change for that caller.
|
|
245
|
+
*/
|
|
246
|
+
export declare function writeLedgerTag(manifest: Manifest, sessionId: string, content: string, opts: ApproveUnderstandingOptions, source?: string): Promise<{
|
|
247
|
+
ok: true;
|
|
248
|
+
} | {
|
|
249
|
+
ok: false;
|
|
250
|
+
reason: string;
|
|
251
|
+
}>;
|
|
206
252
|
export interface ParseErrorSummary {
|
|
207
253
|
filePath: string;
|
|
208
254
|
/** One-line human-readable summary suitable for inlining in the CLI reason. */
|
|
@@ -52,7 +52,41 @@ function expandHomePath(p) {
|
|
|
52
52
|
return path.join(process.env.HOME ?? os.homedir(), p.slice(2));
|
|
53
53
|
return p;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Load the manifest (best-effort, never throws) and resolve the
|
|
57
|
+
* `understanding-before-execution` pack's declared config entry from it.
|
|
58
|
+
* Extracted (agent-tasks 37ad0b05) so
|
|
59
|
+
* `approveUnderstanding` and `issueDelegation` (`src/cli/delegate/index.ts`)
|
|
60
|
+
* share one copy of this manifest-load-plus-pack-lookup shape instead of
|
|
61
|
+
* each carrying its own byte-identical block
|
|
62
|
+
* (`npm run check:duplication` was flagging the pair as a clone). Pure
|
|
63
|
+
* extraction: the try/catch and the `declaredPack` fallback are unchanged
|
|
64
|
+
* from what each call site did inline before this change.
|
|
65
|
+
*/
|
|
66
|
+
export function loadDeclaredUnderstandingPack(opts) {
|
|
67
|
+
let manifest = null;
|
|
68
|
+
let manifestLoadError = null;
|
|
69
|
+
try {
|
|
70
|
+
manifest = opts.manifest ?? loadManifest(opts).manifest;
|
|
71
|
+
}
|
|
72
|
+
catch (err) {
|
|
73
|
+
manifestLoadError = err instanceof Error ? err.message : String(err);
|
|
74
|
+
}
|
|
75
|
+
const declaredPack = manifest?.policy_packs.find((p) => p.name === UNDERSTANDING_PACK_NAME && p.enabled !== false) ?? { name: UNDERSTANDING_PACK_NAME, config: {} };
|
|
76
|
+
return { manifest, manifestLoadError, declaredPack };
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Exported (agent-tasks 37ad0b05, Slice 3 of the auto-mode-approval ADR)
|
|
80
|
+
* with an additive `source` parameter so `harness delegate` can reuse
|
|
81
|
+
* this writer verbatim instead of re-implementing the same
|
|
82
|
+
* findGroundingMcp + addLedgerFact shape a third time in this codebase
|
|
83
|
+
* (branch-protection.ts already carries its own independent copy for
|
|
84
|
+
* its own `harness-approve-branch-protection` source). `source` defaults
|
|
85
|
+
* to this file's own literal, so `approveUnderstanding`'s own call below
|
|
86
|
+
* (which does not pass it) is byte-identical to before this change: pure
|
|
87
|
+
* additive parameterization, not a behaviour change for that caller.
|
|
88
|
+
*/
|
|
89
|
+
export async function writeLedgerTag(manifest, sessionId, content, opts, source = "harness-approve-understanding") {
|
|
56
90
|
if (opts.ledgerAdd)
|
|
57
91
|
return opts.ledgerAdd(sessionId, content);
|
|
58
92
|
const server = findGroundingMcp(manifest);
|
|
@@ -68,7 +102,7 @@ async function writeLedgerTag(manifest, sessionId, content, opts) {
|
|
|
68
102
|
timeoutMs: server.health?.timeout_ms ?? 5_000,
|
|
69
103
|
sessionId,
|
|
70
104
|
content,
|
|
71
|
-
source
|
|
105
|
+
source,
|
|
72
106
|
});
|
|
73
107
|
}
|
|
74
108
|
/**
|
|
@@ -429,29 +463,23 @@ export async function approveUnderstanding(opts = {}) {
|
|
|
429
463
|
}
|
|
430
464
|
// Manifest is required for the ledger write path; if it can't load,
|
|
431
465
|
// we still try to flip the persisted report so a solo user benefits.
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
catch (err) {
|
|
438
|
-
// Not blocking: a solo user still benefits from the report flip below
|
|
439
|
-
// even with no manifest. But capture the cause so the degraded-ok
|
|
440
|
-
// ledger result names WHY the write was skipped instead of leaving the
|
|
441
|
-
// operator with a bare `ledger: ok false` (no-silent-errors, M8).
|
|
442
|
-
manifestLoadError = err instanceof Error ? err.message : String(err);
|
|
443
|
-
}
|
|
466
|
+
// Not blocking: a solo user still benefits from the report flip below
|
|
467
|
+
// even with no manifest. `manifestLoadError` captures the cause so the
|
|
468
|
+
// degraded-ok ledger result names WHY the write was skipped instead of
|
|
469
|
+
// leaving the operator with a bare `ledger: ok false` (no-silent-errors,
|
|
470
|
+
// M8).
|
|
444
471
|
// Gap-fill mode for a stdin report that declares none of its own
|
|
445
472
|
// (harness task 5d73d78d): resolve via `resolveMode` (Env >
|
|
446
473
|
// config.mode > DEFAULT_MODE — this IS a live runtime consumer, unlike
|
|
447
474
|
// `resolve()`/`buildHooks`'s generation path; see `MODE_ENV`'s doc
|
|
448
475
|
// comment in understanding-before-execution.ts for why the two differ),
|
|
449
|
-
// from whatever manifest is available
|
|
450
|
-
// path is validated against the
|
|
451
|
-
// instead of a hardcoded
|
|
452
|
-
// missing manifest, or a
|
|
453
|
-
//
|
|
454
|
-
// Env > DEFAULT_MODE in
|
|
476
|
+
// from whatever manifest is available (`loadDeclaredUnderstandingPack`
|
|
477
|
+
// above), so a report captured via this path is validated against the
|
|
478
|
+
// operator's actually-configured mode instead of a hardcoded
|
|
479
|
+
// "fast_confirm" regardless of harness.yaml. A missing manifest, or a
|
|
480
|
+
// manifest without the pack declared, resolves the same as an empty
|
|
481
|
+
// `config:` block, resolveMode still applies Env > DEFAULT_MODE in
|
|
482
|
+
// that case.
|
|
455
483
|
//
|
|
456
484
|
// A pack entry that IS declared but `enabled: false` is treated the
|
|
457
485
|
// SAME as undeclared (task 5d73d78d review LOW-10): a disabled pack's
|
|
@@ -460,8 +488,8 @@ export async function approveUnderstanding(opts = {}) {
|
|
|
460
488
|
// fallback only needs `name` + `config` (resolveMode's minimal
|
|
461
489
|
// `ModeConfigSource` shape) — `source`/`enabled` would otherwise have
|
|
462
490
|
// to be invented for a pack entry that, by construction, was never
|
|
463
|
-
// matched.
|
|
464
|
-
const
|
|
491
|
+
// matched. `loadDeclaredUnderstandingPack` applies that same rule.
|
|
492
|
+
const { manifest, manifestLoadError, declaredPack } = loadDeclaredUnderstandingPack(opts);
|
|
465
493
|
// Task 5d73d78d review LOW (fix-round-3): `resolveMode`'s own warning
|
|
466
494
|
// (an invalid `config.mode` or `UNDERSTANDING_GATE_MODE` value) used to
|
|
467
495
|
// be dropped on the floor here — only `.mode` was read. The Codex
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"understanding.js","sourceRoot":"","sources":["../../../src/cli/approve/understanding.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,EAAE;AACF,4CAA4C;AAC5C,yCAAyC;AACzC,EAAE;AACF,6EAA6E;AAC7E,wEAAwE;AACxE,mDAAmD;AACnD,uEAAuE;AACvE,oEAAoE;AACpE,EAAE;AACF,uEAAuE;AACvE,uEAAuE;AACvE,qEAAqE;AACrE,oEAAoE;AAEpE,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,eAAe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AC;QAC5D,oBAAoB,CAAC,YAAY,CAAC,CAAC;IACrC,CAAC;IAED,OAAO;QACL,SAAS;QACT,aAAa;QACb,GAAG,CAAC,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/D,GAAG,CAAC,cAAc,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnF,MAAM,EAAE,YAAY;QACpB,WAAW;QACX,GAAG,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACrD,MAAM,EAAE,YAAY,CAAC,EAAE;YACrB,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;YACnB,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,MAAM,EAAE;QACnD,eAAe;QACf,UAAU;KACX,CAAC;AACJ,CAAC"}
|
package/dist/cli/audit.d.ts
CHANGED
|
@@ -27,6 +27,14 @@ export interface AuditOptions extends LoaderOptions {
|
|
|
27
27
|
}) => Promise<LedgerQueryResult>;
|
|
28
28
|
/** Override "now" (tests). */
|
|
29
29
|
now?: Date;
|
|
30
|
+
/**
|
|
31
|
+
* Sink for the audit-only "approvals unavailable" notice (M4: a degraded
|
|
32
|
+
* second fetch degrades softly rather than discarding the already-fetched
|
|
33
|
+
* decisions table). Defaults to `process.stderr.write`, matching the
|
|
34
|
+
* one-stderr-line posture `src/cli/pack/auto-approve-path.ts` uses for its
|
|
35
|
+
* own audit-only ledger writes.
|
|
36
|
+
*/
|
|
37
|
+
stderr?: (s: string) => void;
|
|
30
38
|
}
|
|
31
39
|
export interface AuditDecisionRow {
|
|
32
40
|
timestamp: string;
|
|
@@ -44,8 +52,29 @@ export interface AuditDecisionRow {
|
|
|
44
52
|
*/
|
|
45
53
|
whenUnclassifiedFallback?: boolean;
|
|
46
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* One raw understanding-gate ledger fact in the audit window: a
|
|
57
|
+
* `understanding-approved:<sid>` (human approval, plain or
|
|
58
|
+
* `:forced:<field>`-suffixed) or `understanding-auto-approved:<sid>`
|
|
59
|
+
* (auto-mode) row, exactly as the two writers stamp it
|
|
60
|
+
* (`src/cli/approve/understanding.ts`, `src/cli/pack/auto-approve-path.ts`).
|
|
61
|
+
* Read-only reporting: this section carries no gate authority, mirroring
|
|
62
|
+
* the ledger's audit-only status for both tag families.
|
|
63
|
+
*/
|
|
64
|
+
export interface AuditApprovalRow {
|
|
65
|
+
timestamp: string;
|
|
66
|
+
tag: string;
|
|
67
|
+
source: string;
|
|
68
|
+
}
|
|
47
69
|
export interface AuditResult {
|
|
48
70
|
output: string;
|
|
49
71
|
decisions: AuditDecisionRow[];
|
|
72
|
+
approvals: AuditApprovalRow[];
|
|
73
|
+
/**
|
|
74
|
+
* M4: set when the approvals fetch (only) came back degraded. The
|
|
75
|
+
* decisions table still renders; this carries the reason so `--json`
|
|
76
|
+
* consumers can tell "no approval facts" apart from "couldn't check".
|
|
77
|
+
*/
|
|
78
|
+
approvalsUnavailable?: string;
|
|
50
79
|
}
|
|
51
80
|
export declare function audit(opts?: AuditOptions): Promise<AuditResult>;
|