@lannguyensi/harness 0.63.0 → 1.0.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 +90 -0
- package/README.md +46 -42
- package/dist/cli/add/index.js +17 -21
- package/dist/cli/add/index.js.map +1 -1
- package/dist/cli/adopt/derive.d.ts +2 -2
- package/dist/cli/adopt/derive.js +2 -19
- package/dist/cli/adopt/derive.js.map +1 -1
- package/dist/cli/adopt/index.d.ts +1 -1
- package/dist/cli/adopt/index.js +1 -12
- package/dist/cli/adopt/index.js.map +1 -1
- package/dist/cli/apply/apply.d.ts +20 -35
- package/dist/cli/apply/apply.js +61 -136
- package/dist/cli/apply/apply.js.map +1 -1
- package/dist/cli/apply/generate-codex-config.js +10 -58
- package/dist/cli/apply/generate-codex-config.js.map +1 -1
- package/dist/cli/apply/generate-memory-index.js +1 -2
- package/dist/cli/apply/generate-memory-index.js.map +1 -1
- package/dist/cli/apply/generate-opencode-config.d.ts +2 -10
- package/dist/cli/apply/generate-opencode-config.js +74 -113
- package/dist/cli/apply/generate-opencode-config.js.map +1 -1
- package/dist/cli/apply/generate-settings.d.ts +11 -64
- package/dist/cli/apply/generate-settings.js +27 -132
- package/dist/cli/apply/generate-settings.js.map +1 -1
- package/dist/cli/apply/index.d.ts +1 -1
- package/dist/cli/apply/index.js +1 -1
- package/dist/cli/apply/index.js.map +1 -1
- package/dist/cli/apply/install-codex-config.d.ts +153 -1
- package/dist/cli/apply/install-codex-config.js +445 -70
- package/dist/cli/apply/install-codex-config.js.map +1 -1
- package/dist/cli/apply/next-steps.d.ts +7 -0
- package/dist/cli/apply/next-steps.js +13 -1
- package/dist/cli/apply/next-steps.js.map +1 -1
- package/dist/cli/bounded-stdin.d.ts +0 -23
- package/dist/cli/bounded-stdin.js +2 -49
- package/dist/cli/bounded-stdin.js.map +1 -1
- package/dist/cli/describe.d.ts +1 -1
- package/dist/cli/describe.js +0 -3
- package/dist/cli/describe.js.map +1 -1
- package/dist/cli/diff/engine.d.ts +0 -11
- package/dist/cli/diff/engine.js +1 -17
- package/dist/cli/diff/engine.js.map +1 -1
- package/dist/cli/diff/index.js +14 -25
- package/dist/cli/diff/index.js.map +1 -1
- package/dist/cli/doctor/claude-mcp.d.ts +4 -19
- package/dist/cli/doctor/claude-mcp.js +11 -22
- package/dist/cli/doctor/claude-mcp.js.map +1 -1
- package/dist/cli/doctor/codex.d.ts +12 -14
- package/dist/cli/doctor/codex.js +31 -144
- package/dist/cli/doctor/codex.js.map +1 -1
- package/dist/cli/doctor/format.js +23 -338
- package/dist/cli/doctor/format.js.map +1 -1
- package/dist/cli/doctor/hook-liveness.d.ts +56 -0
- package/dist/cli/doctor/hook-liveness.js +455 -0
- package/dist/cli/doctor/hook-liveness.js.map +1 -0
- package/dist/cli/doctor/index.d.ts +13 -87
- package/dist/cli/doctor/index.js +57 -705
- package/dist/cli/doctor/index.js.map +1 -1
- package/dist/cli/doctor/opencode.d.ts +2 -1
- package/dist/cli/doctor/opencode.js.map +1 -1
- package/dist/cli/doctor/types.d.ts +21 -378
- package/dist/cli/doctor/types.js.map +1 -1
- package/dist/cli/drain-stdio.d.ts +31 -0
- package/dist/cli/drain-stdio.js +76 -0
- package/dist/cli/drain-stdio.js.map +1 -0
- package/dist/cli/export.d.ts +3 -1
- package/dist/cli/export.js +7 -16
- package/dist/cli/export.js.map +1 -1
- package/dist/cli/gate/codex-disable.d.ts +29 -0
- package/dist/cli/gate/codex-disable.js +195 -0
- package/dist/cli/gate/codex-disable.js.map +1 -0
- package/dist/cli/gate/codex-enable.d.ts +41 -0
- package/dist/cli/gate/codex-enable.js +127 -0
- package/dist/cli/gate/codex-enable.js.map +1 -0
- package/dist/cli/gate/codex-snapshot.d.ts +208 -0
- package/dist/cli/gate/codex-snapshot.js +402 -0
- package/dist/cli/gate/codex-snapshot.js.map +1 -0
- package/dist/cli/gate/disable.d.ts +9 -0
- package/dist/cli/gate/disable.js +263 -28
- package/dist/cli/gate/disable.js.map +1 -1
- package/dist/cli/gate/enable.d.ts +26 -6
- package/dist/cli/gate/enable.js +152 -80
- package/dist/cli/gate/enable.js.map +1 -1
- package/dist/cli/gate/link-chain.d.ts +53 -0
- package/dist/cli/gate/link-chain.js +122 -0
- package/dist/cli/gate/link-chain.js.map +1 -0
- package/dist/cli/gate/snapshot.d.ts +289 -12
- package/dist/cli/gate/snapshot.js +481 -22
- package/dist/cli/gate/snapshot.js.map +1 -1
- package/dist/cli/index.d.ts +0 -9
- package/dist/cli/index.js +15 -2607
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init/composer.d.ts +3 -6
- package/dist/cli/init/composer.js +6 -370
- package/dist/cli/init/composer.js.map +1 -1
- package/dist/cli/init/dependencies.d.ts +1 -2
- package/dist/cli/init/dependencies.js +4 -80
- package/dist/cli/init/dependencies.js.map +1 -1
- package/dist/cli/init/detect.js +5 -4
- package/dist/cli/init/detect.js.map +1 -1
- package/dist/cli/init/interactive.d.ts +1 -23
- package/dist/cli/init/interactive.js +33 -247
- package/dist/cli/init/interactive.js.map +1 -1
- package/dist/cli/init/profiles.d.ts +2 -2
- package/dist/cli/init/profiles.js +51 -243
- package/dist/cli/init/profiles.js.map +1 -1
- package/dist/cli/init/templates.d.ts +2 -37
- package/dist/cli/init/templates.js +25 -1237
- package/dist/cli/init/templates.js.map +1 -1
- package/dist/cli/list.d.ts +1 -1
- package/dist/cli/list.js +1 -38
- package/dist/cli/list.js.map +1 -1
- package/dist/cli/loader.d.ts +15 -1
- package/dist/cli/loader.js +56 -39
- package/dist/cli/loader.js.map +1 -1
- package/dist/cli/main.js +7 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/migrate-home/index.js +2 -2
- package/dist/cli/migrate-home/index.js.map +1 -1
- package/dist/cli/pack/add.js +1 -1
- package/dist/cli/pack/add.js.map +1 -1
- package/dist/cli/pack/hook-bootstrap.d.ts +5 -164
- package/dist/cli/pack/hook-bootstrap.js +15 -291
- package/dist/cli/pack/hook-bootstrap.js.map +1 -1
- package/dist/cli/pack/hook-branch-protection.d.ts +28 -21
- package/dist/cli/pack/hook-branch-protection.js +365 -340
- package/dist/cli/pack/hook-branch-protection.js.map +1 -1
- package/dist/cli/pack/index.d.ts +0 -1
- package/dist/cli/pack/index.js +0 -1
- package/dist/cli/pack/index.js.map +1 -1
- package/dist/cli/pack/list.js +1 -6
- package/dist/cli/pack/list.js.map +1 -1
- package/dist/cli/pack/mutate.d.ts +7 -9
- package/dist/cli/pack/mutate.js +6 -9
- package/dist/cli/pack/mutate.js.map +1 -1
- package/dist/cli/pack/reseed.d.ts +2 -2
- package/dist/cli/pack/reseed.js +16 -22
- package/dist/cli/pack/reseed.js.map +1 -1
- package/dist/cli/register-gate-group.d.ts +5 -0
- package/dist/cli/register-gate-group.js +348 -0
- package/dist/cli/register-gate-group.js.map +1 -0
- package/dist/cli/register-inspect-group.d.ts +6 -0
- package/dist/cli/register-inspect-group.js +189 -0
- package/dist/cli/register-inspect-group.js.map +1 -0
- package/dist/cli/register-operator-lifecycle.d.ts +5 -0
- package/dist/cli/register-operator-lifecycle.js +20 -0
- package/dist/cli/register-operator-lifecycle.js.map +1 -0
- package/dist/cli/register-pack-group.d.ts +5 -0
- package/dist/cli/register-pack-group.js +134 -0
- package/dist/cli/register-pack-group.js.map +1 -0
- package/dist/cli/register-setup-group.d.ts +5 -0
- package/dist/cli/register-setup-group.js +495 -0
- package/dist/cli/register-setup-group.js.map +1 -0
- package/dist/cli/remove/index.d.ts +0 -14
- package/dist/cli/remove/index.js +2 -115
- package/dist/cli/remove/index.js.map +1 -1
- package/dist/cli/remove/mutate.d.ts +0 -2
- package/dist/cli/remove/mutate.js +1 -19
- package/dist/cli/remove/mutate.js.map +1 -1
- package/dist/cli/remove/register.d.ts +5 -0
- package/dist/cli/remove/register.js +25 -0
- package/dist/cli/remove/register.js.map +1 -0
- package/dist/cli/shell-quote.d.ts +7 -0
- package/dist/cli/shell-quote.js +17 -0
- package/dist/cli/shell-quote.js.map +1 -0
- package/dist/cli/uninstall/index.d.ts +4 -2
- package/dist/cli/uninstall/index.js +15 -7
- package/dist/cli/uninstall/index.js.map +1 -1
- package/dist/cli/uninstall/register.d.ts +5 -0
- package/dist/cli/uninstall/register.js +171 -0
- package/dist/cli/uninstall/register.js.map +1 -0
- package/dist/cli/uninstall/snapshot.d.ts +15 -0
- package/dist/cli/uninstall/snapshot.js +38 -0
- package/dist/cli/uninstall/snapshot.js.map +1 -1
- package/dist/cli/validate/checks.d.ts +0 -77
- package/dist/cli/validate/checks.js +3 -1049
- package/dist/cli/validate/checks.js.map +1 -1
- package/dist/cli/validate/index.js +19 -15
- package/dist/cli/validate/index.js.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/io/claude-mcp.d.ts +1 -1
- package/dist/io/claude-mcp.js +27 -14
- package/dist/io/claude-mcp.js.map +1 -1
- package/dist/io/harness-lock.js +2 -2
- package/dist/io/harness-lock.js.map +1 -1
- package/dist/io/lock.d.ts +0 -26
- package/dist/io/lock.js +10 -27
- package/dist/io/lock.js.map +1 -1
- package/dist/io/merge-settings.js +6 -4
- package/dist/io/merge-settings.js.map +1 -1
- package/dist/io/project-name.d.ts +22 -39
- package/dist/io/project-name.js +25 -42
- package/dist/io/project-name.js.map +1 -1
- package/dist/io/read-regular-file.d.ts +103 -40
- package/dist/io/read-regular-file.js +196 -35
- package/dist/io/read-regular-file.js.map +1 -1
- package/dist/io/restart-hints.js +3 -6
- package/dist/io/restart-hints.js.map +1 -1
- package/dist/io/version-compare.d.ts +1 -3
- package/dist/io/version-compare.js +1 -3
- package/dist/io/version-compare.js.map +1 -1
- package/dist/io/write-regular-file.d.ts +30 -0
- package/dist/io/write-regular-file.js +85 -0
- package/dist/io/write-regular-file.js.map +1 -0
- package/dist/overrides/index.d.ts +1 -0
- package/dist/overrides/index.js +1 -0
- package/dist/overrides/index.js.map +1 -1
- package/dist/overrides/merge-layers.d.ts +43 -0
- package/dist/overrides/merge-layers.js +76 -0
- package/dist/overrides/merge-layers.js.map +1 -0
- package/dist/overrides/merge.d.ts +16 -0
- package/dist/overrides/merge.js +21 -8
- package/dist/overrides/merge.js.map +1 -1
- package/dist/policy-packs/builtin/branch-protection-runtime.d.ts +4 -69
- package/dist/policy-packs/builtin/branch-protection-runtime.js +12 -84
- package/dist/policy-packs/builtin/branch-protection-runtime.js.map +1 -1
- package/dist/policy-packs/builtin/branch-protection.d.ts +7 -30
- package/dist/policy-packs/builtin/branch-protection.js +56 -89
- package/dist/policy-packs/builtin/branch-protection.js.map +1 -1
- package/dist/policy-packs/config-check.d.ts +7 -5
- package/dist/policy-packs/config-check.js +2 -2
- package/dist/policy-packs/config-check.js.map +1 -1
- package/dist/policy-packs/expand.d.ts +1 -3
- package/dist/policy-packs/expand.js +5 -42
- package/dist/policy-packs/expand.js.map +1 -1
- package/dist/policy-packs/index.d.ts +3 -3
- package/dist/policy-packs/index.js +2 -2
- package/dist/policy-packs/index.js.map +1 -1
- package/dist/policy-packs/registry.d.ts +9 -38
- package/dist/policy-packs/registry.js +5 -65
- package/dist/policy-packs/registry.js.map +1 -1
- package/dist/policy-packs/runtime.d.ts +0 -4
- package/dist/policy-packs/runtime.js +9 -22
- package/dist/policy-packs/runtime.js.map +1 -1
- package/dist/policy-packs/types.d.ts +0 -19
- package/dist/policy-packs/ux-compare.d.ts +1 -11
- package/dist/policy-packs/ux-compare.js +6 -42
- package/dist/policy-packs/ux-compare.js.map +1 -1
- package/dist/policy-packs/ux-drift-check.d.ts +5 -5
- package/dist/policy-packs/ux-drift-check.js +17 -22
- package/dist/policy-packs/ux-drift-check.js.map +1 -1
- package/dist/policy-packs/version-check.d.ts +5 -26
- package/dist/policy-packs/version-check.js +19 -74
- package/dist/policy-packs/version-check.js.map +1 -1
- package/dist/probes/memory.d.ts +1 -1
- package/dist/probes/memory.js +1 -1
- package/dist/probes/memory.js.map +1 -1
- package/dist/runtime/agent-facing.d.ts +9 -0
- package/dist/runtime/agent-facing.js +28 -14
- package/dist/runtime/agent-facing.js.map +1 -1
- package/dist/runtime/bounded-text.d.ts +15 -0
- package/dist/runtime/bounded-text.js +27 -0
- package/dist/runtime/bounded-text.js.map +1 -0
- package/dist/runtime/git-branch.d.ts +125 -0
- package/dist/runtime/git-branch.js +381 -0
- package/dist/runtime/git-branch.js.map +1 -0
- package/dist/runtime/hermetic-spawn-guard.d.ts +2 -2
- package/dist/runtime/hermetic-spawn-guard.js +24 -34
- package/dist/runtime/hermetic-spawn-guard.js.map +1 -1
- package/dist/runtime/home-dir.js +3 -2
- package/dist/runtime/home-dir.js.map +1 -1
- package/dist/runtime/tool-name-aliases.d.ts +0 -6
- package/dist/runtime/tool-name-aliases.js +5 -18
- package/dist/runtime/tool-name-aliases.js.map +1 -1
- package/dist/schema/grounding.d.ts +7 -54
- package/dist/schema/grounding.js +10 -12
- package/dist/schema/grounding.js.map +1 -1
- package/dist/schema/hooks.d.ts +39 -136
- package/dist/schema/hooks.js +3 -6
- package/dist/schema/hooks.js.map +1 -1
- package/dist/schema/index.d.ts +114 -3828
- package/dist/schema/index.js +41 -80
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/memory.d.ts +54 -131
- package/dist/schema/memory.js +2 -2
- package/dist/schema/memory.js.map +1 -1
- package/dist/schema/policy-packs.d.ts +3 -45
- package/dist/schema/policy-packs.js +7 -13
- package/dist/schema/policy-packs.js.map +1 -1
- package/dist/schema/policy-ux.d.ts +7 -0
- package/dist/schema/policy-ux.js +18 -0
- package/dist/schema/policy-ux.js.map +1 -0
- package/dist/schema/removed-keys.d.ts +185 -0
- package/dist/schema/removed-keys.js +531 -0
- package/dist/schema/removed-keys.js.map +1 -0
- package/dist/schema/tools.d.ts +30 -268
- package/dist/schema/tools.js +4 -4
- package/dist/schema/tools.js.map +1 -1
- package/package.json +5 -16
- package/dist/cli/approve/branch-protection.d.ts +0 -69
- package/dist/cli/approve/branch-protection.js +0 -144
- package/dist/cli/approve/branch-protection.js.map +0 -1
- package/dist/cli/approve/risk.d.ts +0 -112
- package/dist/cli/approve/risk.js +0 -197
- package/dist/cli/approve/risk.js.map +0 -1
- package/dist/cli/approve/stdin-report.d.ts +0 -57
- package/dist/cli/approve/stdin-report.js +0 -145
- package/dist/cli/approve/stdin-report.js.map +0 -1
- package/dist/cli/approve/understanding.d.ts +0 -410
- package/dist/cli/approve/understanding.js +0 -996
- package/dist/cli/approve/understanding.js.map +0 -1
- package/dist/cli/audit.d.ts +0 -80
- package/dist/cli/audit.js +0 -252
- package/dist/cli/audit.js.map +0 -1
- package/dist/cli/delegate/index.d.ts +0 -76
- package/dist/cli/delegate/index.js +0 -443
- package/dist/cli/delegate/index.js.map +0 -1
- package/dist/cli/doctor/auto-approve-mode.d.ts +0 -37
- package/dist/cli/doctor/auto-approve-mode.js +0 -80
- package/dist/cli/doctor/auto-approve-mode.js.map +0 -1
- package/dist/cli/doctor/bypass-without-auto-approve.d.ts +0 -38
- package/dist/cli/doctor/bypass-without-auto-approve.js +0 -95
- package/dist/cli/doctor/bypass-without-auto-approve.js.map +0 -1
- package/dist/cli/doctor/codex-config-drift.d.ts +0 -28
- package/dist/cli/doctor/codex-config-drift.js +0 -240
- package/dist/cli/doctor/codex-config-drift.js.map +0 -1
- package/dist/cli/doctor/rogue-ledger.d.ts +0 -53
- package/dist/cli/doctor/rogue-ledger.js +0 -153
- package/dist/cli/doctor/rogue-ledger.js.map +0 -1
- package/dist/cli/doctor/session-start-preflight-setup-version.d.ts +0 -83
- package/dist/cli/doctor/session-start-preflight-setup-version.js +0 -114
- package/dist/cli/doctor/session-start-preflight-setup-version.js.map +0 -1
- package/dist/cli/doctor/settings-drift.d.ts +0 -25
- package/dist/cli/doctor/settings-drift.js +0 -213
- package/dist/cli/doctor/settings-drift.js.map +0 -1
- package/dist/cli/doctor/toolchain-parity.d.ts +0 -63
- package/dist/cli/doctor/toolchain-parity.js +0 -154
- package/dist/cli/doctor/toolchain-parity.js.map +0 -1
- package/dist/cli/doctor/ug-auto-approvals.d.ts +0 -40
- package/dist/cli/doctor/ug-auto-approvals.js +0 -91
- package/dist/cli/doctor/ug-auto-approvals.js.map +0 -1
- package/dist/cli/doctor/ug-delegations.d.ts +0 -26
- package/dist/cli/doctor/ug-delegations.js +0 -121
- package/dist/cli/doctor/ug-delegations.js.map +0 -1
- package/dist/cli/doctor/ug-inflight.d.ts +0 -35
- package/dist/cli/doctor/ug-inflight.js +0 -57
- package/dist/cli/doctor/ug-inflight.js.map +0 -1
- package/dist/cli/doctor/understanding-mode-env.d.ts +0 -51
- package/dist/cli/doctor/understanding-mode-env.js +0 -98
- package/dist/cli/doctor/understanding-mode-env.js.map +0 -1
- package/dist/cli/dry-run.d.ts +0 -46
- package/dist/cli/dry-run.js +0 -250
- package/dist/cli/dry-run.js.map +0 -1
- package/dist/cli/event-input.d.ts +0 -28
- package/dist/cli/event-input.js +0 -73
- package/dist/cli/event-input.js.map +0 -1
- package/dist/cli/explain-action.d.ts +0 -20
- package/dist/cli/explain-action.js +0 -27
- package/dist/cli/explain-action.js.map +0 -1
- package/dist/cli/explain-policy.d.ts +0 -135
- package/dist/cli/explain-policy.js +0 -266
- package/dist/cli/explain-policy.js.map +0 -1
- package/dist/cli/explain.d.ts +0 -31
- package/dist/cli/explain.js +0 -159
- package/dist/cli/explain.js.map +0 -1
- package/dist/cli/gc/index.d.ts +0 -63
- package/dist/cli/gc/index.js +0 -566
- package/dist/cli/gc/index.js.map +0 -1
- package/dist/cli/pack/approve-escape.d.ts +0 -19
- package/dist/cli/pack/approve-escape.js +0 -190
- package/dist/cli/pack/approve-escape.js.map +0 -1
- package/dist/cli/pack/auto-approve-path.d.ts +0 -146
- package/dist/cli/pack/auto-approve-path.js +0 -462
- package/dist/cli/pack/auto-approve-path.js.map +0 -1
- package/dist/cli/pack/hook-codex-post-tool-use.d.ts +0 -25
- package/dist/cli/pack/hook-codex-post-tool-use.js +0 -160
- package/dist/cli/pack/hook-codex-post-tool-use.js.map +0 -1
- package/dist/cli/pack/hook-codex-pre-tool-use.d.ts +0 -48
- package/dist/cli/pack/hook-codex-pre-tool-use.js +0 -474
- package/dist/cli/pack/hook-codex-pre-tool-use.js.map +0 -1
- package/dist/cli/pack/hook-codex-stop.d.ts +0 -35
- package/dist/cli/pack/hook-codex-stop.js +0 -329
- package/dist/cli/pack/hook-codex-stop.js.map +0 -1
- package/dist/cli/pack/hook-codex-user-prompt-submit.d.ts +0 -24
- package/dist/cli/pack/hook-codex-user-prompt-submit.js +0 -93
- package/dist/cli/pack/hook-codex-user-prompt-submit.js.map +0 -1
- package/dist/cli/pack/hook-post-merge-gate-record.d.ts +0 -37
- package/dist/cli/pack/hook-post-merge-gate-record.js +0 -190
- package/dist/cli/pack/hook-post-merge-gate-record.js.map +0 -1
- package/dist/cli/pack/hook-post-merge-gate.d.ts +0 -34
- package/dist/cli/pack/hook-post-merge-gate.js +0 -277
- package/dist/cli/pack/hook-post-merge-gate.js.map +0 -1
- package/dist/cli/pack/hook-post-tool-use.d.ts +0 -45
- package/dist/cli/pack/hook-post-tool-use.js +0 -137
- package/dist/cli/pack/hook-post-tool-use.js.map +0 -1
- package/dist/cli/pack/hook-pre-tool-use.d.ts +0 -92
- package/dist/cli/pack/hook-pre-tool-use.js +0 -1328
- package/dist/cli/pack/hook-pre-tool-use.js.map +0 -1
- package/dist/cli/pack/hook-runtime-reality.d.ts +0 -63
- package/dist/cli/pack/hook-runtime-reality.js +0 -210
- package/dist/cli/pack/hook-runtime-reality.js.map +0 -1
- package/dist/cli/pack/hook-solution-acceptance-writeguard.d.ts +0 -32
- package/dist/cli/pack/hook-solution-acceptance-writeguard.js +0 -337
- package/dist/cli/pack/hook-solution-acceptance-writeguard.js.map +0 -1
- package/dist/cli/pack/hook-solution-acceptance.d.ts +0 -157
- package/dist/cli/pack/hook-solution-acceptance.js +0 -530
- package/dist/cli/pack/hook-solution-acceptance.js.map +0 -1
- package/dist/cli/pack/hook-stay-in-scope.d.ts +0 -37
- package/dist/cli/pack/hook-stay-in-scope.js +0 -128
- package/dist/cli/pack/hook-stay-in-scope.js.map +0 -1
- package/dist/cli/pack/hook-subagent-start.d.ts +0 -23
- package/dist/cli/pack/hook-subagent-start.js +0 -88
- package/dist/cli/pack/hook-subagent-start.js.map +0 -1
- package/dist/cli/pack/hook-subagent-stop.d.ts +0 -19
- package/dist/cli/pack/hook-subagent-stop.js +0 -41
- package/dist/cli/pack/hook-subagent-stop.js.map +0 -1
- package/dist/cli/pack/hook-track-active-claim.d.ts +0 -27
- package/dist/cli/pack/hook-track-active-claim.js +0 -275
- package/dist/cli/pack/hook-track-active-claim.js.map +0 -1
- package/dist/cli/pack/transcript-report-scan.d.ts +0 -71
- package/dist/cli/pack/transcript-report-scan.js +0 -359
- package/dist/cli/pack/transcript-report-scan.js.map +0 -1
- package/dist/cli/pack/understanding-report-schema-hint.d.ts +0 -26
- package/dist/cli/pack/understanding-report-schema-hint.js +0 -120
- package/dist/cli/pack/understanding-report-schema-hint.js.map +0 -1
- package/dist/cli/pack/upgrade.d.ts +0 -32
- package/dist/cli/pack/upgrade.js +0 -273
- package/dist/cli/pack/upgrade.js.map +0 -1
- package/dist/cli/pause/index.d.ts +0 -113
- package/dist/cli/pause/index.js +0 -251
- package/dist/cli/pause/index.js.map +0 -1
- package/dist/cli/pause-check.d.ts +0 -22
- package/dist/cli/pause-check.js +0 -54
- package/dist/cli/pause-check.js.map +0 -1
- package/dist/cli/policy/intercept.d.ts +0 -233
- package/dist/cli/policy/intercept.js +0 -1020
- package/dist/cli/policy/intercept.js.map +0 -1
- package/dist/cli/policy/risk-envelope-enrichment.d.ts +0 -40
- package/dist/cli/policy/risk-envelope-enrichment.js +0 -108
- package/dist/cli/policy/risk-envelope-enrichment.js.map +0 -1
- package/dist/cli/record/index.d.ts +0 -81
- package/dist/cli/record/index.js +0 -348
- package/dist/cli/record/index.js.map +0 -1
- package/dist/cli/resolve-env.d.ts +0 -32
- package/dist/cli/resolve-env.js +0 -47
- package/dist/cli/resolve-env.js.map +0 -1
- package/dist/cli/session-export/index.d.ts +0 -46
- package/dist/cli/session-export/index.js +0 -169
- package/dist/cli/session-export/index.js.map +0 -1
- package/dist/cli/session-export/redact.d.ts +0 -22
- package/dist/cli/session-export/redact.js +0 -47
- package/dist/cli/session-export/redact.js.map +0 -1
- package/dist/cli/session-export/transcript.d.ts +0 -24
- package/dist/cli/session-export/transcript.js +0 -164
- package/dist/cli/session-export/transcript.js.map +0 -1
- package/dist/cli/session-start/branch-check.d.ts +0 -18
- package/dist/cli/session-start/branch-check.js +0 -140
- package/dist/cli/session-start/branch-check.js.map +0 -1
- package/dist/cli/session-start/index.d.ts +0 -121
- package/dist/cli/session-start/index.js +0 -591
- package/dist/cli/session-start/index.js.map +0 -1
- package/dist/cli/session-start/shared-options.d.ts +0 -103
- package/dist/cli/session-start/shared-options.js +0 -107
- package/dist/cli/session-start/shared-options.js.map +0 -1
- package/dist/cli/session-start/stale-base-check.d.ts +0 -46
- package/dist/cli/session-start/stale-base-check.js +0 -352
- package/dist/cli/session-start/stale-base-check.js.map +0 -1
- package/dist/cli/session-start/toolchain-parity.d.ts +0 -267
- package/dist/cli/session-start/toolchain-parity.js +0 -797
- package/dist/cli/session-start/toolchain-parity.js.map +0 -1
- package/dist/cli/smoke/assertions.d.ts +0 -46
- package/dist/cli/smoke/assertions.js +0 -170
- package/dist/cli/smoke/assertions.js.map +0 -1
- package/dist/cli/smoke/index.d.ts +0 -76
- package/dist/cli/smoke/index.js +0 -245
- package/dist/cli/smoke/index.js.map +0 -1
- package/dist/cli/smoke/runner.d.ts +0 -55
- package/dist/cli/smoke/runner.js +0 -134
- package/dist/cli/smoke/runner.js.map +0 -1
- package/dist/cli/smoke/stream-parser.d.ts +0 -65
- package/dist/cli/smoke/stream-parser.js +0 -115
- package/dist/cli/smoke/stream-parser.js.map +0 -1
- package/dist/cli/test-risk.d.ts +0 -26
- package/dist/cli/test-risk.js +0 -34
- package/dist/cli/test-risk.js.map +0 -1
- package/dist/io/display-path.d.ts +0 -11
- package/dist/io/display-path.js +0 -29
- package/dist/io/display-path.js.map +0 -1
- package/dist/io/duration.d.ts +0 -5
- package/dist/io/duration.js +0 -50
- package/dist/io/duration.js.map +0 -1
- package/dist/io/extract.d.ts +0 -79
- package/dist/io/extract.js +0 -226
- package/dist/io/extract.js.map +0 -1
- package/dist/io/ledger-record.d.ts +0 -83
- package/dist/io/ledger-record.js +0 -301
- package/dist/io/ledger-record.js.map +0 -1
- package/dist/io/read-json-dir-entries.d.ts +0 -36
- package/dist/io/read-json-dir-entries.js +0 -48
- package/dist/io/read-json-dir-entries.js.map +0 -1
- package/dist/io/safe-json-parse.d.ts +0 -5
- package/dist/io/safe-json-parse.js +0 -21
- package/dist/io/safe-json-parse.js.map +0 -1
- package/dist/policies/index.d.ts +0 -5
- package/dist/policies/index.js +0 -6
- package/dist/policies/index.js.map +0 -1
- package/dist/policies/ledger-client.d.ts +0 -113
- package/dist/policies/ledger-client.js +0 -500
- package/dist/policies/ledger-client.js.map +0 -1
- package/dist/policies/producers.d.ts +0 -12
- package/dist/policies/producers.js +0 -61
- package/dist/policies/producers.js.map +0 -1
- package/dist/policies/requires.d.ts +0 -75
- package/dist/policies/requires.js +0 -240
- package/dist/policies/requires.js.map +0 -1
- package/dist/policies/timestamp.d.ts +0 -14
- package/dist/policies/timestamp.js +0 -36
- package/dist/policies/timestamp.js.map +0 -1
- package/dist/policy-packs/builtin/permission-profiles.d.ts +0 -11
- package/dist/policy-packs/builtin/permission-profiles.js +0 -74
- package/dist/policy-packs/builtin/permission-profiles.js.map +0 -1
- package/dist/policy-packs/builtin/post-merge-gate-runtime.d.ts +0 -286
- package/dist/policy-packs/builtin/post-merge-gate-runtime.js +0 -397
- package/dist/policy-packs/builtin/post-merge-gate-runtime.js.map +0 -1
- package/dist/policy-packs/builtin/post-merge-gate.d.ts +0 -56
- package/dist/policy-packs/builtin/post-merge-gate.js +0 -347
- package/dist/policy-packs/builtin/post-merge-gate.js.map +0 -1
- package/dist/policy-packs/builtin/solution-acceptance-reconnect.d.ts +0 -50
- package/dist/policy-packs/builtin/solution-acceptance-reconnect.js +0 -151
- package/dist/policy-packs/builtin/solution-acceptance-reconnect.js.map +0 -1
- package/dist/policy-packs/builtin/solution-acceptance-runtime.d.ts +0 -323
- package/dist/policy-packs/builtin/solution-acceptance-runtime.js +0 -672
- package/dist/policy-packs/builtin/solution-acceptance-runtime.js.map +0 -1
- package/dist/policy-packs/builtin/solution-acceptance.d.ts +0 -45
- package/dist/policy-packs/builtin/solution-acceptance.js +0 -226
- package/dist/policy-packs/builtin/solution-acceptance.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/active-claim.d.ts +0 -25
- package/dist/policy-packs/builtin/understanding-before-execution/active-claim.js +0 -94
- package/dist/policy-packs/builtin/understanding-before-execution/active-claim.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve-default.d.ts +0 -35
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve-default.js +0 -86
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve-default.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve.d.ts +0 -210
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve.js +0 -361
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/delegation-markers.d.ts +0 -304
- package/dist/policy-packs/builtin/understanding-before-execution/delegation-markers.js +0 -734
- package/dist/policy-packs/builtin/understanding-before-execution/delegation-markers.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/expiry-reason.d.ts +0 -36
- package/dist/policy-packs/builtin/understanding-before-execution/expiry-reason.js +0 -73
- package/dist/policy-packs/builtin/understanding-before-execution/expiry-reason.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/index.d.ts +0 -19
- package/dist/policy-packs/builtin/understanding-before-execution/index.js +0 -83
- package/dist/policy-packs/builtin/understanding-before-execution/index.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/inflight-records.d.ts +0 -135
- package/dist/policy-packs/builtin/understanding-before-execution/inflight-records.js +0 -618
- package/dist/policy-packs/builtin/understanding-before-execution/inflight-records.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/ledger.d.ts +0 -25
- package/dist/policy-packs/builtin/understanding-before-execution/ledger.js +0 -56
- package/dist/policy-packs/builtin/understanding-before-execution/ledger.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/lifecycle.d.ts +0 -20
- package/dist/policy-packs/builtin/understanding-before-execution/lifecycle.js +0 -93
- package/dist/policy-packs/builtin/understanding-before-execution/lifecycle.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/markers.d.ts +0 -126
- package/dist/policy-packs/builtin/understanding-before-execution/markers.js +0 -245
- package/dist/policy-packs/builtin/understanding-before-execution/markers.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/measured-permission-modes.d.ts +0 -29
- package/dist/policy-packs/builtin/understanding-before-execution/measured-permission-modes.js +0 -82
- package/dist/policy-packs/builtin/understanding-before-execution/measured-permission-modes.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/permission-mode-observations.d.ts +0 -71
- package/dist/policy-packs/builtin/understanding-before-execution/permission-mode-observations.js +0 -175
- package/dist/policy-packs/builtin/understanding-before-execution/permission-mode-observations.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/persisted-reports.d.ts +0 -620
- package/dist/policy-packs/builtin/understanding-before-execution/persisted-reports.js +0 -1047
- package/dist/policy-packs/builtin/understanding-before-execution/persisted-reports.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/post-tool-use-boundary.d.ts +0 -128
- package/dist/policy-packs/builtin/understanding-before-execution/post-tool-use-boundary.js +0 -213
- package/dist/policy-packs/builtin/understanding-before-execution/post-tool-use-boundary.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/stay-in-scope-config.d.ts +0 -129
- package/dist/policy-packs/builtin/understanding-before-execution/stay-in-scope-config.js +0 -166
- package/dist/policy-packs/builtin/understanding-before-execution/stay-in-scope-config.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/task-markers.d.ts +0 -164
- package/dist/policy-packs/builtin/understanding-before-execution/task-markers.js +0 -275
- package/dist/policy-packs/builtin/understanding-before-execution/task-markers.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution-runtime.d.ts +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution-runtime.js +0 -10
- package/dist/policy-packs/builtin/understanding-before-execution-runtime.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution.d.ts +0 -526
- package/dist/policy-packs/builtin/understanding-before-execution.js +0 -1074
- package/dist/policy-packs/builtin/understanding-before-execution.js.map +0 -1
- package/dist/policy-packs/permission-translator.d.ts +0 -9
- package/dist/policy-packs/permission-translator.js +0 -76
- package/dist/policy-packs/permission-translator.js.map +0 -1
- package/dist/runtime/action-envelope.d.ts +0 -64
- package/dist/runtime/action-envelope.js +0 -46
- package/dist/runtime/action-envelope.js.map +0 -1
- package/dist/runtime/approval-signing.d.ts +0 -111
- package/dist/runtime/approval-signing.js +0 -384
- package/dist/runtime/approval-signing.js.map +0 -1
- package/dist/runtime/bash-match-facts.d.ts +0 -60
- package/dist/runtime/bash-match-facts.js +0 -196
- package/dist/runtime/bash-match-facts.js.map +0 -1
- package/dist/runtime/bash-match-registry.d.ts +0 -112
- package/dist/runtime/bash-match-registry.js +0 -406
- package/dist/runtime/bash-match-registry.js.map +0 -1
- package/dist/runtime/bash-prefix-parse.d.ts +0 -31
- package/dist/runtime/bash-prefix-parse.js +0 -576
- package/dist/runtime/bash-prefix-parse.js.map +0 -1
- package/dist/runtime/command-normalize.d.ts +0 -658
- package/dist/runtime/command-normalize.js +0 -2410
- package/dist/runtime/command-normalize.js.map +0 -1
- package/dist/runtime/deletion-target-resolve.d.ts +0 -28
- package/dist/runtime/deletion-target-resolve.js +0 -1078
- package/dist/runtime/deletion-target-resolve.js.map +0 -1
- package/dist/runtime/destructive-shell-floor.d.ts +0 -19
- package/dist/runtime/destructive-shell-floor.js +0 -611
- package/dist/runtime/destructive-shell-floor.js.map +0 -1
- package/dist/runtime/environment-resolver.d.ts +0 -36
- package/dist/runtime/environment-resolver.js +0 -138
- package/dist/runtime/environment-resolver.js.map +0 -1
- package/dist/runtime/git-context.d.ts +0 -201
- package/dist/runtime/git-context.js +0 -422
- package/dist/runtime/git-context.js.map +0 -1
- package/dist/runtime/index.d.ts +0 -12
- package/dist/runtime/index.js +0 -13
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/intercept.d.ts +0 -494
- package/dist/runtime/intercept.js +0 -1313
- package/dist/runtime/intercept.js.map +0 -1
- package/dist/runtime/kube-context.d.ts +0 -16
- package/dist/runtime/kube-context.js +0 -63
- package/dist/runtime/kube-context.js.map +0 -1
- package/dist/runtime/kubectl-target-parse.d.ts +0 -31
- package/dist/runtime/kubectl-target-parse.js +0 -249
- package/dist/runtime/kubectl-target-parse.js.map +0 -1
- package/dist/runtime/ledger-add.d.ts +0 -16
- package/dist/runtime/ledger-add.js +0 -150
- package/dist/runtime/ledger-add.js.map +0 -1
- package/dist/runtime/ledger-writer.d.ts +0 -27
- package/dist/runtime/ledger-writer.js +0 -46
- package/dist/runtime/ledger-writer.js.map +0 -1
- package/dist/runtime/pause-sentinel.d.ts +0 -60
- package/dist/runtime/pause-sentinel.js +0 -156
- package/dist/runtime/pause-sentinel.js.map +0 -1
- package/dist/runtime/pending-approval.d.ts +0 -23
- package/dist/runtime/pending-approval.js +0 -67
- package/dist/runtime/pending-approval.js.map +0 -1
- package/dist/runtime/read-only-bash.d.ts +0 -141
- package/dist/runtime/read-only-bash.js +0 -2204
- package/dist/runtime/read-only-bash.js.map +0 -1
- package/dist/runtime/recovery-git-commit.d.ts +0 -22
- package/dist/runtime/recovery-git-commit.js +0 -284
- package/dist/runtime/recovery-git-commit.js.map +0 -1
- package/dist/runtime/reject-malformed-session-id.d.ts +0 -8
- package/dist/runtime/reject-malformed-session-id.js +0 -16
- package/dist/runtime/reject-malformed-session-id.js.map +0 -1
- package/dist/runtime/risk-classifier.d.ts +0 -38
- package/dist/runtime/risk-classifier.js +0 -311
- package/dist/runtime/risk-classifier.js.map +0 -1
- package/dist/runtime/session-id.d.ts +0 -113
- package/dist/runtime/session-id.js +0 -193
- package/dist/runtime/session-id.js.map +0 -1
- package/dist/runtime/shell-word.d.ts +0 -62
- package/dist/runtime/shell-word.js +0 -410
- package/dist/runtime/shell-word.js.map +0 -1
- package/dist/runtime/task-providers/agent-tasks.d.ts +0 -103
- package/dist/runtime/task-providers/agent-tasks.js +0 -245
- package/dist/runtime/task-providers/agent-tasks.js.map +0 -1
- package/dist/runtime/when-eval.d.ts +0 -62
- package/dist/runtime/when-eval.js +0 -212
- package/dist/runtime/when-eval.js.map +0 -1
- package/dist/runtime/workflow-policies.d.ts +0 -207
- package/dist/runtime/workflow-policies.js +0 -596
- package/dist/runtime/workflow-policies.js.map +0 -1
- package/dist/schema/audit.d.ts +0 -71
- package/dist/schema/audit.js +0 -32
- package/dist/schema/audit.js.map +0 -1
- package/dist/schema/doctor.d.ts +0 -25
- package/dist/schema/doctor.js +0 -23
- package/dist/schema/doctor.js.map +0 -1
- package/dist/schema/environments.d.ts +0 -215
- package/dist/schema/environments.js +0 -101
- package/dist/schema/environments.js.map +0 -1
- package/dist/schema/extract.d.ts +0 -9
- package/dist/schema/extract.js +0 -86
- package/dist/schema/extract.js.map +0 -1
- package/dist/schema/permission-profiles.d.ts +0 -2292
- package/dist/schema/permission-profiles.js +0 -60
- package/dist/schema/permission-profiles.js.map +0 -1
- package/dist/schema/policies.d.ts +0 -974
- package/dist/schema/policies.js +0 -298
- package/dist/schema/policies.js.map +0 -1
- package/dist/schema/requires.d.ts +0 -131
- package/dist/schema/requires.js +0 -88
- package/dist/schema/requires.js.map +0 -1
- package/dist/schema/risk.d.ts +0 -144
- package/dist/schema/risk.js +0 -194
- package/dist/schema/risk.js.map +0 -1
- package/dist/schema/session-start-preflight.d.ts +0 -10
- package/dist/schema/session-start-preflight.js +0 -106
- package/dist/schema/session-start-preflight.js.map +0 -1
- package/dist/schema/stale-base-check.d.ts +0 -18
- package/dist/schema/stale-base-check.js +0 -37
- package/dist/schema/stale-base-check.js.map +0 -1
- package/dist/schema/toolchain-parity.d.ts +0 -21
- package/dist/schema/toolchain-parity.js +0 -48
- package/dist/schema/toolchain-parity.js.map +0 -1
- package/dist/schema/workflows.d.ts +0 -519
- package/dist/schema/workflows.js +0 -81
- package/dist/schema/workflows.js.map +0 -1
- package/scripts/runtime-reality-docker-probe.mjs +0 -71
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delegation-markers.js","sourceRoot":"","sources":["../../../../src/policy-packs/builtin/understanding-before-execution/delegation-markers.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yEAAyE;AACzE,0DAA0D;AAC1D,EAAE;AACF,yEAAyE;AACzE,0EAA0E;AAC1E,qEAAqE;AACrE,oEAAoE;AACpE,0EAA0E;AAC1E,EAAE;AACF,gEAAgE;AAChE,qEAAqE;AACrE,wEAAwE;AACxE,0EAA0E;AAC1E,2EAA2E;AAC3E,mEAAmE;AACnE,2EAA2E;AAC3E,qEAAqE;AACrE,wEAAwE;AACxE,6DAA6D;AAC7D,wEAAwE;AACxE,EAAE;AACF,uEAAuE;AACvE,6DAA6D;AAC7D,0EAA0E;AAC1E,uEAAuE;AACvE,0EAA0E;AAC1E,sEAAsE;AACtE,0EAA0E;AAC1E,0EAA0E;AAC1E,SAAS;AACT,EAAE;AACF,sFAAsF;AACtF,EAAE;AACF,0EAA0E;AAC1E,sEAAsE;AACtE,gEAAgE;AAChE,gEAAgE;AAChE,wEAAwE;AACxE,mEAAmE;AACnE,oEAAoE;AACpE,4DAA4D;AAC5D,EAAE;AACF,wEAAwE;AACxE,wEAAwE;AACxE,sEAAsE;AACtE,qEAAqE;AACrE,uDAAuD;AAEvD,OAAO,KAAK,EAAE,MAAM,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,KAAK;gBACT,MAAM,EAAE,yBAAyB;gBACjC,MAAM,EAAE,+BAA+B,IAAI,CAAC,kBAAkB,iDAAiD,gBAAgB,SAAS,iBAAiB,GAAG;aAC7J,CAAC;QACJ,CAAC;QACD,gEAAgE;QAChE,iEAAiE;QACjE,gEAAgE;QAChE,yDAAyD;QACzD,aAAa,GAAG,UAAU,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,OAAO;QACL,EAAE,EAAE,IAAI;QACR,eAAe;QACf,SAAS;QACT,YAAY,EAAE,OAAO;QACrB,WAAW,EAAE,MAAM;QACnB,GAAG,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,aAAa,EAAE,aAAuB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACpG,CAAC;AACJ,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { PostToolUseBoundaryMatch } from "./post-tool-use-boundary.js";
|
|
2
|
-
import { type PersistedReport } from "./persisted-reports.js";
|
|
3
|
-
/**
|
|
4
|
-
* `approval expired because max_age <n>m elapsed (approved at <time>)` when
|
|
5
|
-
* the unmatched marker check reported a max_age expiry (the task-scoped or
|
|
6
|
-
* the session-scoped marker), `undefined` otherwise. The values come out of
|
|
7
|
-
* a marker detail built from a signature-verified marker, and still pass
|
|
8
|
-
* `sanitizeDetailValue`.
|
|
9
|
-
*/
|
|
10
|
-
export declare function describeMarkerTtlExpiry(markers: {
|
|
11
|
-
expired: boolean;
|
|
12
|
-
detail: string;
|
|
13
|
-
taskCheckDetail: string;
|
|
14
|
-
}): string | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* The sentence the PreToolUse hooks append to the AGENT-facing block text
|
|
17
|
-
* (after the `ux:` or legacy envelope, like the malformed-sections notice),
|
|
18
|
-
* so the agent reads why its approval lapsed instead of only the stderr
|
|
19
|
-
* audit line. The max_age sentence wins when the marker check reported a
|
|
20
|
-
* TTL expiry; otherwise a report a PostToolUse boundary expired supplies
|
|
21
|
-
* the event and time. `undefined` when neither applies. Wording only.
|
|
22
|
-
*/
|
|
23
|
-
export declare function approvalExpiryNotice(ttlExpiry: string | undefined, report: PersistedReport | null): string | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* The routine "no approval marker" block reason, with the TTL-expiry
|
|
26
|
-
* sentence ahead of the report and ledger details when one applies.
|
|
27
|
-
* `suffix` is the Claude hook's subagent sentence (empty for Codex).
|
|
28
|
-
*/
|
|
29
|
-
export declare function noApprovalMarkerReason(sessionId: string, ttlExpiry: string | undefined, reportDetail: string, ledgerDetail: string, suffix?: string): string;
|
|
30
|
-
/**
|
|
31
|
-
* The event string a PostToolUse expiry persists as the reason a report
|
|
32
|
-
* expired: `tool:<tool_name>` when the tool name matched
|
|
33
|
-
* `expire_on_tool_match`, else `bash:/<regex>/` for an
|
|
34
|
-
* `expire_on_bash_match` hit.
|
|
35
|
-
*/
|
|
36
|
-
export declare function describePostToolUseTrigger(toolName: string, match: Pick<PostToolUseBoundaryMatch, "toolNameMatched" | "bashRegex">): string;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
// Block-reason text for an approval that lapsed, shared by the Claude and
|
|
2
|
-
// Codex PreToolUse hooks so the two runtimes cannot word it differently.
|
|
3
|
-
//
|
|
4
|
-
// Two ways an approval stops opening the gate, kept textually apart:
|
|
5
|
-
// - boundary expiry: a PostToolUse event (`expire_on_tool_match` /
|
|
6
|
-
// `expire_on_bash_match`) deleted the marker and flipped the persisted
|
|
7
|
-
// report to `expired`. The reason lives in the report and is rendered by
|
|
8
|
-
// `checkPersistedReport` ("approval expired because <event> at <time>").
|
|
9
|
-
// - TTL expiry: `approval_lifecycle.max_age` elapsed while the marker is
|
|
10
|
-
// still on disk. The reason is the marker check's own detail, rendered
|
|
11
|
-
// here ("approval expired because max_age <dur> elapsed (approved at
|
|
12
|
-
// <time>)").
|
|
13
|
-
// Only wording lives here; no gate decision reads any of it.
|
|
14
|
-
import { describeBoundaryExpiry, sanitizeDetailValue, } from "./persisted-reports.js";
|
|
15
|
-
/** Matches the detail `checkApprovalMarker` writes for an aged-out marker. */
|
|
16
|
-
const MARKER_TTL_DETAIL_RE = /expired: age \d+m > max (\d+)m \(approved at ([^)]*)\)/;
|
|
17
|
-
/**
|
|
18
|
-
* `approval expired because max_age <n>m elapsed (approved at <time>)` when
|
|
19
|
-
* the unmatched marker check reported a max_age expiry (the task-scoped or
|
|
20
|
-
* the session-scoped marker), `undefined` otherwise. The values come out of
|
|
21
|
-
* a marker detail built from a signature-verified marker, and still pass
|
|
22
|
-
* `sanitizeDetailValue`.
|
|
23
|
-
*/
|
|
24
|
-
export function describeMarkerTtlExpiry(markers) {
|
|
25
|
-
if (!markers.expired)
|
|
26
|
-
return undefined;
|
|
27
|
-
for (const detail of [markers.detail, markers.taskCheckDetail]) {
|
|
28
|
-
const m = MARKER_TTL_DETAIL_RE.exec(detail);
|
|
29
|
-
if (m !== null) {
|
|
30
|
-
return `approval expired because max_age ${sanitizeDetailValue(m[1])}m elapsed (approved at ${sanitizeDetailValue(m[2])})`;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* The sentence the PreToolUse hooks append to the AGENT-facing block text
|
|
37
|
-
* (after the `ux:` or legacy envelope, like the malformed-sections notice),
|
|
38
|
-
* so the agent reads why its approval lapsed instead of only the stderr
|
|
39
|
-
* audit line. The max_age sentence wins when the marker check reported a
|
|
40
|
-
* TTL expiry; otherwise a report a PostToolUse boundary expired supplies
|
|
41
|
-
* the event and time. `undefined` when neither applies. Wording only.
|
|
42
|
-
*/
|
|
43
|
-
export function approvalExpiryNotice(ttlExpiry, report) {
|
|
44
|
-
if (ttlExpiry !== undefined)
|
|
45
|
-
return `${ttlExpiry}.`;
|
|
46
|
-
if (report === null)
|
|
47
|
-
return undefined;
|
|
48
|
-
const boundaryExpiry = describeBoundaryExpiry(report);
|
|
49
|
-
return boundaryExpiry !== undefined ? `${boundaryExpiry}.` : undefined;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* The routine "no approval marker" block reason, with the TTL-expiry
|
|
53
|
-
* sentence ahead of the report and ledger details when one applies.
|
|
54
|
-
* `suffix` is the Claude hook's subagent sentence (empty for Codex).
|
|
55
|
-
*/
|
|
56
|
-
export function noApprovalMarkerReason(sessionId, ttlExpiry, reportDetail, ledgerDetail, suffix = "") {
|
|
57
|
-
const expiry = ttlExpiry !== undefined ? `${ttlExpiry}; ` : "";
|
|
58
|
-
return `no approval marker for session ${sessionId}; ${expiry}${reportDetail}; ${ledgerDetail}${suffix}`;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* The event string a PostToolUse expiry persists as the reason a report
|
|
62
|
-
* expired: `tool:<tool_name>` when the tool name matched
|
|
63
|
-
* `expire_on_tool_match`, else `bash:/<regex>/` for an
|
|
64
|
-
* `expire_on_bash_match` hit.
|
|
65
|
-
*/
|
|
66
|
-
export function describePostToolUseTrigger(toolName, match) {
|
|
67
|
-
if (match.toolNameMatched)
|
|
68
|
-
return `tool:${toolName}`;
|
|
69
|
-
if (match.bashRegex !== undefined)
|
|
70
|
-
return `bash:/${match.bashRegex.source}/`;
|
|
71
|
-
return "";
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=expiry-reason.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"expiry-reason.js","sourceRoot":"","sources":["../../../../src/policy-packs/builtin/understanding-before-execution/expiry-reason.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,yEAAyE;AACzE,EAAE;AACF,qEAAqE;AACrE,oEAAoE;AACpE,0EAA0E;AAC1E,4EAA4E;AAC5E,4EAA4E;AAC5E,0EAA0E;AAC1E,0EAA0E;AAC1E,wEAAwE;AACxE,gBAAgB;AAChB,6DAA6D;AAG7D,OAAO,EACL,sBAAsB,EAEtB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAEhC,8EAA8E;AA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CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,0BAA0B,CACxC,QAAgB,EAChB,KAAsE;IAEtE,IAAI,KAAK,CAAC,eAAe;QAAE,OAAO,QAAQ,QAAQ,EAAE,CAAC;IACrD,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS;QAAE,OAAO,SAAS,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC;IAC7E,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type ApprovalSource = "marker" | "ledger" | "none" | "recovery-commit" | "inflight";
|
|
2
|
-
export interface ApprovalCheckResult {
|
|
3
|
-
approved: boolean;
|
|
4
|
-
source: ApprovalSource;
|
|
5
|
-
detail: string;
|
|
6
|
-
}
|
|
7
|
-
export { APPROVED_LEDGER_TAG_PREFIX, approvedLedgerTagFor, isPolicyDecisionRow, matchLedgerEntries, } from "./ledger.js";
|
|
8
|
-
export { APPROVAL_MARKER_DIRNAME, approvalMarkerPathFor, type ApprovalMarker, writeApprovalMarker, type MarkerCheck, type CheckApprovalMarkerOptions, checkApprovalMarker, clearApprovalMarker, } from "./markers.js";
|
|
9
|
-
export { type PersistedReport, REPORTS_DIR_ENV, defaultReportsDir, reportsDirForManifest, listPersistedReports, type SkippedReportEntry, listPersistedReportsBoundedWithSkips, TOLERANT_FALLBACK_MAX_AGE_MS, TOLERANT_FALLBACK_FUTURE_SKEW_MS, type FindReportOptions, type FindReportSelection, selectReportForSession, selectNewestStrictSessionReport, findLatestReportForSession, type PersistedReportEvidence, expirePersistedReport, checkPersistedReport, canonicalReportHash, canonicalReportHashOfFile, MAX_HASHED_REPORT_BYTES, MAX_HOOK_LISTING_ENTRIES, type BoundedDirNames, listDirNamesBounded, type ReportFileReadFailure, type BoundedReportRead, type ReadBudget, readReportFileBounded, type UnhashableReportReason, type ReportFileHash, hashReportFile, type ApprovalMarkerKind, type MarkerReportBinding, type ApprovedReportHashVerification, verifyApprovedReportHash, } from "./persisted-reports.js";
|
|
10
|
-
export { type ApprovalLifecycle, parseApprovalLifecycle } from "./lifecycle.js";
|
|
11
|
-
export { AUTO_APPROVED_BY_PREFIX, CLAUDE_CODE_HARNESS, autoApprovedByFor, type ParsedAutoApprovedBy, parseAutoApprovedBy, autoApprovedLedgerTagFor, type AutoApproveConfig, parseAutoApprove, permissionModeAllowed, harnessAllowed, AUTO_APPROVE_HARNESS_VALUES, DEFAULT_AUTO_APPROVE_HARNESSES, DEFAULT_REPORT_SCAN_MAX_WAIT_MS, REPORT_SCAN_MAX_WAIT_CEILING_MS, parseReportScanMaxWait, } from "./auto-approve.js";
|
|
12
|
-
export { type AutoApproveDefaultConfig, defaultAutoApproveConfig, renderAutoApproveSnippet, } from "./auto-approve-default.js";
|
|
13
|
-
export { PERMISSION_MODE_OBSERVATION_DIRNAME, listPermissionModeObservations, permissionModeObservationPathFor, recordPermissionModeObservation, sanitizeForDisplay, type PermissionModeObservation, type PermissionModeObservationsResult, } from "./permission-mode-observations.js";
|
|
14
|
-
export { APPROVAL_MARKER_TASK_PREFIX, taskApprovalMarkerPathFor, writeTaskApprovalMarker, checkActiveClaimApprovalMarker, type SessionMarkerCheck, type CheckSessionApprovalMarkerOptions, checkSessionApprovalMarker, type OperatorMarkerApproval, checkOperatorApprovalMarkers, type MatchedMarkerReportCheck, verifyMatchedMarkerReport, clearTaskApprovalMarker, } from "./task-markers.js";
|
|
15
|
-
export { DEFAULT_BASH_TOOL_NAMES, toolNameMatchesAny, bashCommandMatchesAny, extractBashCommandFromToolInput, extractTaskIdFromToolInput, extractTasksTransitionStatusFromToolInput, type PostToolUseBoundaryMatch, matchPostToolUseBoundary, type ApplyPostToolUseExpiryResult, applyPostToolUseExpiry, describePostToolUseExpiry, } from "./post-tool-use-boundary.js";
|
|
16
|
-
export { ACTIVE_CLAIM_FILENAME, activeClaimPathFor, writeActiveClaim, readActiveClaim, clearActiveClaim, } from "./active-claim.js";
|
|
17
|
-
export { DELEGATION_MARKER_DIRNAME, ADOPTION_LEDGER_DIRNAME, DELEGATION_REPORT_DIRNAME, delegationMarkerIdFor, delegationMarkerPathFor, delegationReportPathFor, hashDelegationCwd, type DelegationApprovedByFields, buildDelegationApprovedBy, type ParsedDelegationApprovedBy, type DelegationApprovedByParse, parseDelegationApprovedBy, type WriteDelegationMarkerOptions, type WriteDelegationMarkerResult, writeDelegationMarker, type DelegationRefusalReason, type DelegationVerification, type VerifyDelegationOptions, verifyDelegation, } from "./delegation-markers.js";
|
|
18
|
-
export { INFLIGHT_RECORD_DIRNAME, DEFAULT_INFLIGHT_STALE_AFTER_MS, rejectMalformedAgentId, inflightMarkerIdFor, inflightRecordPathFor, type InflightParentSource, type WriteInflightRecordOptions, type WriteInflightRecordResult, writeInflightRecord, type VerifyInflightRecordOptions, type InflightRecordVerification, verifyInflightRecord, clearInflightRecord, type InflightRecordsSummary, listInflightRecords, } from "./inflight-records.js";
|
|
19
|
-
export { approvalExpiryNotice, describeMarkerTtlExpiry, describePostToolUseTrigger, noApprovalMarkerReason, } from "./expiry-reason.js";
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
// Phase 6 #4 — runtime helpers for the understanding-before-execution pack.
|
|
2
|
-
//
|
|
3
|
-
// Single-authority approval check that the harness-side PreToolUse
|
|
4
|
-
// blockers (Claude and Codex) consult, plus two evidence-only probes:
|
|
5
|
-
//
|
|
6
|
-
// AUTHORITY. Filesystem marker `<generatedDir>/.approvals/<sessionId>`
|
|
7
|
-
// (or `task-<id>`) written by `harness approve understanding` from
|
|
8
|
-
// the operator's shell and HMAC-signed with the operator-side key
|
|
9
|
-
// (harness/f9485cc7). Replaces the ledger-substring check that
|
|
10
|
-
// shipped through v0.13.0 (agent-tasks/88ca4bb3): the agent has
|
|
11
|
-
// direct MCP access to the same ledger that gate path consulted, so
|
|
12
|
-
// any agent could write `understanding-approved:<sid>` itself and
|
|
13
|
-
// self-approve. Edit / Write / Bash are all gated by this same
|
|
14
|
-
// PreToolUse hook, and the configured MCP servers do not expose
|
|
15
|
-
// filesystem writes, so the marker file is reachable only from a
|
|
16
|
-
// process the operator launched; the signature is what keeps that
|
|
17
|
-
// true even if a future write primitive the blocker matcher does
|
|
18
|
-
// not cover appears. Operator-side: writeApprovalMarker below.
|
|
19
|
-
// EVIDENCE. Persisted JSON report under `.understanding-gate/reports/`
|
|
20
|
-
// (owned by `@lannguyensi/understanding-gate`). Flipped to
|
|
21
|
-
// `approved` by the same `harness approve understanding` call and to
|
|
22
|
-
// `expired` by the post-tool-use boundary hook, so the audit record
|
|
23
|
-
// tracks the marker. Until task 7402301d this was a SECOND, equal
|
|
24
|
-
// approval source, and it was unsigned: under the very threat model
|
|
25
|
-
// that motivated marker signing, one unsigned JSON write into the
|
|
26
|
-
// reports directory forged an approval with less effort than the
|
|
27
|
-
// old marker forgery (no session id, no key read). Gate-time
|
|
28
|
-
// approval authority now flows only through the signed marker; the
|
|
29
|
-
// report is consulted for the block diagnostic only
|
|
30
|
-
// (`checkPersistedReport` returns evidence, never an approval).
|
|
31
|
-
// EVIDENCE. The evidence-ledger row `understanding-approved:<sid>`,
|
|
32
|
-
// still written by `harness approve understanding` for forensics.
|
|
33
|
-
//
|
|
34
|
-
// Consequence for solo `@lannguyensi/understanding-gate` users running
|
|
35
|
-
// under harness: the package's own `understanding-gate approve` flips
|
|
36
|
-
// the report but writes no signed marker, so it no longer opens the
|
|
37
|
-
// harness gate; `harness approve understanding` is the approval path.
|
|
38
|
-
export { APPROVED_LEDGER_TAG_PREFIX, approvedLedgerTagFor, isPolicyDecisionRow, matchLedgerEntries, } from "./ledger.js";
|
|
39
|
-
export { APPROVAL_MARKER_DIRNAME, approvalMarkerPathFor, writeApprovalMarker, checkApprovalMarker, clearApprovalMarker, } from "./markers.js";
|
|
40
|
-
export { REPORTS_DIR_ENV, defaultReportsDir, reportsDirForManifest, listPersistedReports, listPersistedReportsBoundedWithSkips, TOLERANT_FALLBACK_MAX_AGE_MS, TOLERANT_FALLBACK_FUTURE_SKEW_MS, selectReportForSession, selectNewestStrictSessionReport, findLatestReportForSession, expirePersistedReport, checkPersistedReport, canonicalReportHash, canonicalReportHashOfFile, MAX_HASHED_REPORT_BYTES, MAX_HOOK_LISTING_ENTRIES, listDirNamesBounded, readReportFileBounded, hashReportFile, verifyApprovedReportHash, } from "./persisted-reports.js";
|
|
41
|
-
export { parseApprovalLifecycle } from "./lifecycle.js";
|
|
42
|
-
export { AUTO_APPROVED_BY_PREFIX, CLAUDE_CODE_HARNESS, autoApprovedByFor, parseAutoApprovedBy, autoApprovedLedgerTagFor, parseAutoApprove, permissionModeAllowed, harnessAllowed, AUTO_APPROVE_HARNESS_VALUES, DEFAULT_AUTO_APPROVE_HARNESSES, DEFAULT_REPORT_SCAN_MAX_WAIT_MS, REPORT_SCAN_MAX_WAIT_CEILING_MS, parseReportScanMaxWait, } from "./auto-approve.js";
|
|
43
|
-
// D-004 shipped default (task 8f637efd): the one `auto_approve` snippet
|
|
44
|
-
// `harness init`, `harness pack upgrade understanding-before-execution`
|
|
45
|
-
// and `harness doctor`'s missing-auto_approve finding all render from,
|
|
46
|
-
// see auto-approve-default.ts's module header for why.
|
|
47
|
-
//
|
|
48
|
-
// `AUTO_APPROVE_DEFAULT_WHEN`, `AUTO_APPROVE_DEFAULT_HARNESSES`, and
|
|
49
|
-
// `AUTO_APPROVE_COMMENT_LINES` are deliberately NOT re-exported here
|
|
50
|
-
// (review round 2 F7): every caller outside this module wants the
|
|
51
|
-
// already-assembled `defaultAutoApproveConfig()` / `renderAutoApproveSnippet()`,
|
|
52
|
-
// never the three raw pieces; grepped before dropping them (task
|
|
53
|
-
// 8f637efd, review round 2) and confirmed no consumer outside
|
|
54
|
-
// auto-approve-default.ts itself used the bare re-export.
|
|
55
|
-
export { defaultAutoApproveConfig, renderAutoApproveSnippet, } from "./auto-approve-default.js";
|
|
56
|
-
// Hook-side `permission_mode` observation feeding `harness doctor`'s
|
|
57
|
-
// missing-`auto_approve` finding (task 8f637efd), see
|
|
58
|
-
// permission-mode-observations.ts's module header.
|
|
59
|
-
export { PERMISSION_MODE_OBSERVATION_DIRNAME, listPermissionModeObservations, permissionModeObservationPathFor, recordPermissionModeObservation, sanitizeForDisplay, } from "./permission-mode-observations.js";
|
|
60
|
-
export { APPROVAL_MARKER_TASK_PREFIX, taskApprovalMarkerPathFor, writeTaskApprovalMarker, checkActiveClaimApprovalMarker, checkSessionApprovalMarker, checkOperatorApprovalMarkers, verifyMatchedMarkerReport, clearTaskApprovalMarker, } from "./task-markers.js";
|
|
61
|
-
export { DEFAULT_BASH_TOOL_NAMES, toolNameMatchesAny, bashCommandMatchesAny, extractBashCommandFromToolInput, extractTaskIdFromToolInput, extractTasksTransitionStatusFromToolInput, matchPostToolUseBoundary, applyPostToolUseExpiry, describePostToolUseExpiry, } from "./post-tool-use-boundary.js";
|
|
62
|
-
export { ACTIVE_CLAIM_FILENAME, activeClaimPathFor, writeActiveClaim, readActiveClaim, clearActiveClaim, } from "./active-claim.js";
|
|
63
|
-
// Slice 3 of docs/decisions/2026-08-27-ug-auto-mode-approval.md: signed
|
|
64
|
-
// PRE-AUTHORIZATIONS for `claude -p` child sessions. Deliberately a
|
|
65
|
-
// separate artifact kind with its own directory and its own verifier:
|
|
66
|
-
// `checkApprovalMarker` cannot consume one and must not (see
|
|
67
|
-
// delegation-markers.ts for why). Exported through the shim because the
|
|
68
|
-
// slice's later consumers (the `harness delegate` verb and the child's
|
|
69
|
-
// PreToolUse hook) import every sibling gate symbol through it.
|
|
70
|
-
export { DELEGATION_MARKER_DIRNAME, ADOPTION_LEDGER_DIRNAME, DELEGATION_REPORT_DIRNAME, delegationMarkerIdFor, delegationMarkerPathFor, delegationReportPathFor, hashDelegationCwd, buildDelegationApprovedBy, parseDelegationApprovedBy, writeDelegationMarker, verifyDelegation, } from "./delegation-markers.js";
|
|
71
|
-
// Slice 1 of the subagent-gate work: signed records that let an
|
|
72
|
-
// Agent-tool subagent keep the approval its parent held at spawn time,
|
|
73
|
-
// independent of what happens to the parent's own marker afterwards.
|
|
74
|
-
// Own directory, own verifier — same "not consumable by
|
|
75
|
-
// `checkApprovalMarker`" argument as the delegation export above; see
|
|
76
|
-
// inflight-records.ts's module header. Exported through the shim for
|
|
77
|
-
// the same reason: later consumers (SubagentStart/SubagentStop hooks,
|
|
78
|
-
// the PreToolUse blocker) import every sibling gate symbol through it.
|
|
79
|
-
export { INFLIGHT_RECORD_DIRNAME, DEFAULT_INFLIGHT_STALE_AFTER_MS, rejectMalformedAgentId, inflightMarkerIdFor, inflightRecordPathFor, writeInflightRecord, verifyInflightRecord, clearInflightRecord, listInflightRecords, } from "./inflight-records.js";
|
|
80
|
-
// Wording of the approval-expiry reason in the PreToolUse block message and
|
|
81
|
-
// the event a PostToolUse expiry persists (expiry-reason.ts).
|
|
82
|
-
export { approvalExpiryNotice, describeMarkerTtlExpiry, describePostToolUseTrigger, noApprovalMarkerReason, } from "./expiry-reason.js";
|
|
83
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/policy-packs/builtin/understanding-before-execution/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,EAAE;AACF,mEAAmE;AACnE,sEAAsE;AACtE,EAAE;AACF,yEAAyE;AACzE,wEAAwE;AACxE,uEAAuE;AACvE,oEAAoE;AACpE,qEAAqE;AACrE,yEAAyE;AACzE,uEAAuE;AACvE,oEAAoE;AACpE,qEAAqE;AACrE,sEAAsE;AACtE,uEAAuE;AACvE,sEAAsE;AACtE,oEAAoE;AACpE,yEAAyE;AACzE,gEAAgE;AAChE,0EAA0E;AAC1E,yEAAyE;AACzE,uEAAuE;AACvE,yEAAyE;AACzE,uEAAuE;AACvE,sEAAsE;AACtE,kEAAkE;AAClE,wEAAwE;AACxE,yDAAyD;AACzD,qEAAqE;AACrE,sEAAsE;AACtE,uEAAuE;AACvE,EAAE;AACF,uEAAuE;AACvE,sEAAsE;AACtE,oEAAoE;AACpE,sEAAs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Directory holding in-flight records, a sibling of `.approvals/` and `.delegations/` under `generatedDir`. */
|
|
3
|
-
export declare const INFLIGHT_RECORD_DIRNAME = ".inflight";
|
|
4
|
-
/** Default staleness window: a record older than this is treated as dead weight even though nothing ever cleared it. */
|
|
5
|
-
export declare const DEFAULT_INFLIGHT_STALE_AFTER_MS: number;
|
|
6
|
-
/** Rejects an agent id outside the allowlist above. Throws; never returns a value. */
|
|
7
|
-
export declare function rejectMalformedAgentId(agentId: string): void;
|
|
8
|
-
/**
|
|
9
|
-
* The signed markerId for a record: `inflight:<sessionId>:<agentId>`.
|
|
10
|
-
* Binding both ids into the signed payload is what stops a validly
|
|
11
|
-
* signed record from being copied onto another agent id, or another
|
|
12
|
-
* session, and still verifying.
|
|
13
|
-
*/
|
|
14
|
-
export declare function inflightMarkerIdFor(sessionId: string, agentId: string): string;
|
|
15
|
-
/**
|
|
16
|
-
* Filesystem path of a subagent's in-flight record:
|
|
17
|
-
* `<generatedDir>/.inflight/<sessionId>/<agentId>`. Validates both ids
|
|
18
|
-
* before they reach `path.join`, the same defensive posture every
|
|
19
|
-
* other marker path function in this pack takes.
|
|
20
|
-
*/
|
|
21
|
-
export declare function inflightRecordPathFor(generatedDir: string, sessionId: string, agentId: string): string;
|
|
22
|
-
/** The `parentSource` values a record's `approvedBy` can name. */
|
|
23
|
-
export type InflightParentSource = "task" | "session";
|
|
24
|
-
export interface WriteInflightRecordOptions {
|
|
25
|
-
generatedDir: string;
|
|
26
|
-
sessionId: string;
|
|
27
|
-
agentId: string;
|
|
28
|
-
/** Claude Code's `agent_type` for this subagent, e.g. `general-purpose`. */
|
|
29
|
-
agentType: string;
|
|
30
|
-
/** The parent's own marker check; a record is written only when this matched. */
|
|
31
|
-
parent: OperatorMarkerApproval;
|
|
32
|
-
/** Override the issue timestamp for deterministic tests. */
|
|
33
|
-
now?: Date;
|
|
34
|
-
}
|
|
35
|
-
export type WriteInflightRecordResult = {
|
|
36
|
-
ok: true;
|
|
37
|
-
filePath: string;
|
|
38
|
-
} | {
|
|
39
|
-
ok: false;
|
|
40
|
-
reason: "parent_not_approved" | "malformed_agent_type" | "invalid-input" | "write-failed";
|
|
41
|
-
detail: string;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Write a signed in-flight record, but only when `parent` names a
|
|
45
|
-
* MATCHED operator approval — a record is a copy of authority the
|
|
46
|
-
* parent already had, never a new grant, so an unmatched parent
|
|
47
|
-
* refuses outright with nothing written: the guard below is the entire
|
|
48
|
-
* enforcement point, not a redundant belt-and-suspenders check on top
|
|
49
|
-
* of some other gate. Atomic and mode 0600, like every other marker
|
|
50
|
-
* write in this pack.
|
|
51
|
-
*/
|
|
52
|
-
export declare function writeInflightRecord(opts: WriteInflightRecordOptions): WriteInflightRecordResult;
|
|
53
|
-
export interface VerifyInflightRecordOptions {
|
|
54
|
-
/** Override "now" for deterministic tests. */
|
|
55
|
-
now?: Date;
|
|
56
|
-
/**
|
|
57
|
-
* Override the staleness window; defaults to {@link
|
|
58
|
-
* DEFAULT_INFLIGHT_STALE_AFTER_MS}. Test seam only: no production
|
|
59
|
-
* caller overrides this, since the runtime gate always trusts the
|
|
60
|
-
* fixed default (mirroring `harness gc`'s own fixed 24h sweep window
|
|
61
|
-
* in `src/cli/gc/index.ts`, which cannot be `--retention-days`-tuned
|
|
62
|
-
* either).
|
|
63
|
-
*/
|
|
64
|
-
staleAfterMs?: number;
|
|
65
|
-
}
|
|
66
|
-
export interface InflightRecordVerification {
|
|
67
|
-
matched: boolean;
|
|
68
|
-
/** True when a record existed but failed signature verification, or disagreed with its own path. */
|
|
69
|
-
forged: boolean;
|
|
70
|
-
/** True SPECIFICALLY when a validly-signed, path-consistent record aged past the staleness window. */
|
|
71
|
-
stale: boolean;
|
|
72
|
-
detail: string;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Consult the in-flight record for `(sessionId, agentId)`. Checks, in
|
|
76
|
-
* order: the `.inflight/` root and the session directory are real
|
|
77
|
-
* directories, not symlinks (module header, "CONTAINMENT"); the
|
|
78
|
-
* requested `agentId` names an EXACT directory entry, not merely a path
|
|
79
|
-
* that resolves (guards a case-insensitive filesystem); the file is
|
|
80
|
-
* present and JSON-readable; its signature verifies against
|
|
81
|
-
* `inflight:<sessionId>:<agentId>` RECOMPUTED FROM THE REQUESTED ids
|
|
82
|
-
* (never from anything stored in the body); its own `sessionId`/`agentId`
|
|
83
|
-
* fields agree with those requested ids (the check the signature alone
|
|
84
|
-
* cannot make, see the module header); it is not older than the
|
|
85
|
-
* staleness window.
|
|
86
|
-
*
|
|
87
|
-
* Fail-closed shape mirrors `verifyDelegation`: every refusal names a
|
|
88
|
-
* distinct reason, `forged` and `stale` are reachable only from the
|
|
89
|
-
* branches documented above, and there is no branch that turns a
|
|
90
|
-
* missing, malformed, moved, or aged record into `matched: true`.
|
|
91
|
-
*/
|
|
92
|
-
export declare function verifyInflightRecord(generatedDir: string, sessionId: string, agentId: string, opts?: VerifyInflightRecordOptions): InflightRecordVerification;
|
|
93
|
-
/**
|
|
94
|
-
* Remove a subagent's in-flight record, then best-effort remove its
|
|
95
|
-
* now-possibly-empty session directory. Never throws when the record,
|
|
96
|
-
* or the session directory, is already gone — mirrors
|
|
97
|
-
* `clearApprovalMarker` / `clearTaskApprovalMarker`.
|
|
98
|
-
*/
|
|
99
|
-
export declare function clearInflightRecord(generatedDir: string, sessionId: string, agentId: string): void;
|
|
100
|
-
export interface InflightRecordsSummary {
|
|
101
|
-
/** Records found and readable, across every session directory. */
|
|
102
|
-
total: number;
|
|
103
|
-
/**
|
|
104
|
-
* Of `total`, how many have an `approvedAt` older than the staleness
|
|
105
|
-
* window, OR dated implausibly far in the future (beyond the same
|
|
106
|
-
* future-skew tolerance `verifyInflightRecord` applies): both count
|
|
107
|
-
* as stale here, since a record this listing does not verify cannot
|
|
108
|
-
* tell "clock skew" from "tampered" apart, and neither is fresh.
|
|
109
|
-
*/
|
|
110
|
-
stale: number;
|
|
111
|
-
sessions: Array<{
|
|
112
|
-
sessionId: string;
|
|
113
|
-
agentIds: string[];
|
|
114
|
-
}>;
|
|
115
|
-
/** Entries that were not a readable, parseable record: filesystem debris, unreadable files, missing/bad `approvedAt`. */
|
|
116
|
-
skipped: string[];
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Read-only audit listing of every in-flight record on disk, mirroring
|
|
120
|
-
* `buildUgDelegations`'s own shape: no signature check (this is
|
|
121
|
-
* evidence for `harness doctor` and `harness gc`, not a trust
|
|
122
|
-
* decision), tolerant of a missing `.inflight/` directory (empty
|
|
123
|
-
* result rather than an error), and an entry gc/doctor cannot make
|
|
124
|
-
* sense of is `skipped` rather than silently dropped.
|
|
125
|
-
*
|
|
126
|
-
* lstat the root itself first, not a bare `readdirSync`-then-catch: a
|
|
127
|
-
* `readdirSync` on a symlinked `.inflight/` would happily follow it and
|
|
128
|
-
* list whatever real directory it points at, the same trap
|
|
129
|
-
* `sweepInflightRecords` in `src/cli/gc/index.ts` already guards
|
|
130
|
-
* against one level up. A symlinked or non-directory root reads as
|
|
131
|
-
* absent here too, for the same reason `buildUgInflight` already lstats
|
|
132
|
-
* before calling this function: it must not report on records reached
|
|
133
|
-
* only by following a link out of `.inflight/`.
|
|
134
|
-
*/
|
|
135
|
-
export declare function listInflightRecords(generatedDir: string, now?: Date, staleAfterMs?: number): InflightRecordsSummary;
|