Skip to content

fix(audit): name merged hook config entries matching a withheld package's hook - #4798

Merged
Daniel Meppiel (danielmeppiel) merged 15 commits into
mainfrom
danielmeppiel-p1-merged-hook-detection
Nov 22, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 15 commits into
mainfrom
danielmeppiel-p1-merged-hook-detection

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Description

TL;DR. This extends #4767 to targets that merge hooks into one shared config file: .claude/settings.json, .cursor/hooks.json, .codex/hooks.json and the other merge targets. When the executables gate withholds a package's hooks (denied or unapproved), an entry in that file that renders exactly as the package's own hook, and that no ownership record attributes to another source, is now named. apm install keeps it and warns; apm audit --ci fails hook-approval-pins naming the file and the event. Nothing is removed.

Note

Dependency order: none. Builds on #4767 (merged); main is merged in.

Fixes #4821: apm audit --ci reports a blocking org policy outcome once again. The withheld-hook scan defers to the policy-outcome route on PolicyViolationError instead of failing hook-approval-pins (and drift) with the same cause. P|audit-ci|empty/block is now a lifecycle_smoke row that forbids the repeated cause; it fails without the fix (output lacks /(policy.fetch_failure_default=block)/, output has /hook-approval-pins\W+Blocked by org policy/).

Approach and implementation

File Change
install/withheld_merged_hooks.py (new) withheld_merged_hook_entries() renders the package's entries per merge target through the integrator's own read-only steps (shared source selector, _rewrite_hooks_data, the per-target native converters and legacy shapes). It re-applies sidecar ownership, then names entries that match and are unattributed or attributed to that package (canonical marker or an unambiguous legacy alias). A config reached through a symlink, an unreadable or malformed config, or an unreadable hook source fails closed as unchecked.
install/withheld_hooks.py Audit and install fold the merged rows in; an unreadable decision counts as unchecked for any scanned target.
policy/ci_checks.py Entry rows get their own message and remedy, separate from file rows and unchecked rows.
core/remediation.py withheld-hook-entry-unrecorded: remove each named hook entry you did not add yourself, then run apm audit --ci.
Docs reference/baseline-checks.md, apm-usage/governance.md.

Trade-offs

  • Equal content is reported, never removed. A user may hold an identical entry; naming it is safe, removing it is not.
  • Reuses the integrator's renderers read-only rather than duplicating per-target shapes, so the comparison tracks what install writes.

Issue and approved scope

Issue: none; scope set by the maintainers. Follow-up to #4767.

Human scope-approval comment: approved by the maintainers.

Does this PR complete the issue? Yes for merged-config targets.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass (targeted neighbours)
  • Added tests for new functionality

tests/unit/install/test_withheld_merged_hooks.py deploys with the real HookIntegrator and covers:

  • Claude + Codex and Cursor, with and without the ownership sidecar: the matching entry is named and no bytes change.
  • A user's own different entry, or one owned by another source, is not named.
  • An unreadable or malformed merged config, or one reached through a symlink, fails closed.
  • An entry carrying the older legacy marker is still named.
  • The audit scan (locked_withheld_hook_files) names the entry.

Red-first: with detection disabled, 6 failed and 1 passed; with it, all pass.

Validation commands and results
host_guard.sh --lane landing ... pytest tests/unit/install/test_withheld_merged_hooks.py -n 0   (detection disabled) -> 6 failed, 1 passed
host_guard.sh --lane landing ... pytest tests/unit/install/test_withheld_merged_hooks.py tests/unit/install/test_withheld_hooks.py tests/unit/policy/test_ci_checks.py tests/unit/core/test_remediation_block_proofs.py tests/unit/core/test_remediation_w4_frozen_policy_catalog.py tests/unit/core/test_remediation_catalog_commands.py tests/unit/install/test_architecture_invariants.py tests/unit/integration/test_hook_integrator.py tests/unit/install/test_services_hook_scope.py -n 0
  -> 1379 passed
uvx [email protected] check / format --check (CI paths)    -> clean
pylint R0801                                          -> 10.00/10
python scripts/lint_architecture_boundaries.py --root . -> clean
python scripts/check_complexity_ratchet.py            -> clean
python scripts/check_test_assertions.py               -> clean
python -m tests.quality.taxonomy --changed            -> clean
bash scripts/lint-auth-signals.sh                     -> clean
file length guard (2100)                              -> clean

How to test

  • With target claude, install a package with a hook, then deny it; put its entry back into .claude/settings.json with no apm-hooks.json and no lock record.
  • Run apm install: it warns Kept hook entry .claude/settings.json: SessionStart: ....
  • Run apm audit --ci: it exits 1 naming the file and event. Remove the entry and it passes.

Changelog

  • One fragment per section, changelog.d/<pr>.<section>.md, holding
    one line: user-visible effect first, 25 words or fewer, ending with
    (#PR); breaking changes only under upgrade notes; no Highlights; no
    new lines under ## [Unreleased]. See changelog.d/README.md and
    .github/instructions/changelog.instructions.md.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

  • Spec edit
  • Manifest edit
  • Test edit
  • CONFORMANCE.{md,json} regenerated
  • N/A -- audit and install diagnostics only; waiver in the fix commit.

Co-authored-by: Copilot [email protected]

…ge's hook

For targets that merge hooks into one config file (Claude settings.json,
Cursor and Codex hooks.json, and the other merge targets), an entry that
renders exactly as a withheld package's own hook and that no ownership
record attributes to another source is now named: apm install keeps it
and warns, apm audit --ci fails hook-approval-pins naming the file and
event. Nothing is removed. An unreadable merged config fails closed.

apm-spec-waiver: audit and install diagnostics for executable hook entries; no OpenAPM-observable contract changes.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 22, 2026 19:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The scan can miss legacy withheld hooks, abort on null hook configurations, and recommend removing entries from external symlink targets, while duplicated rendering logic risks inconsistent audit results.

4 open issues
What changed in this PR

Extends #4767's withheld-hook detection to shared hook configs such as Claude, Cursor, and Codex. Matching entries are reported without deleting them.

Changes:

  • Adds read-only detection using package hook rendering and ownership metadata.
  • Connects detection to install warnings and audit --ci failures, with entry-specific remediation.
  • Adds regression coverage and updates documentation and the architecture registry.
File Description
tests/​unit/​install/​test_withheld_merged_hooks.py Tests matching entries, ownership exclusions, unreadable configs, and audit detection.
tests/​unit/​core/​test_remediation_w4_frozen_policy_catalog.py Registers coverage for the new remediation entry.
src/​apm_cli/​policy/​ci_checks.py Reports merged entries separately in hook-approval-pins.
src/​apm_cli/​install/​withheld_merged_hooks.py Adds read-only merged-hook matching.
src/​apm_cli/​install/​withheld_hooks.py Includes merged entries in audit scans and install warnings.
src/​apm_cli/​install/​services.py Passes user scope to withheld-hook diagnostics.
src/​apm_cli/​core/​remediation.py Adds guidance for removing unwanted matching entries.
packages/​apm-guide/​.apm/​skills/​apm-usage/​governance.md Documents merged-hook audit behavior.
docs/​src/​content/​docs/​reference/​baseline-checks.md Explains detection criteria and remediation.
.apm/​architecture/​owners/​install-deployment.json Records the merged-hook scanner in the ownership registry.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Malformed hook configurations can incorrectly pass approval checks, and invalid ownership metadata can trigger uncaught TypeErrors instead of unchecked-path diagnostics.

2 open issues
4 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Two critical gaps let malformed null hook containers bypass approval checks and unreadable merged-hook directories leave matching entries without entry or unchecked-path warnings.

No open issues 🎉

2 previously missed issues

In code that hasn't changed since last review

High severity Reject explicitly null hooks containers

src/​apm_cli/​install/​withheld_merged_hooks.py:80

An explicitly null hook container, such as {"hooks": null}, is treated as if the container were absent. The scan consequently returns no entries instead of an unchecked-path row, allowing hook-approval-pins to pass this malformed config. Distinguish a missing key from a present null value so the existing object validation rejects the latter.

High severity Check merged hook directory readability before source selection

src/​apm_cli/​install/​withheld_merged_hooks.py:119

For a merged-only install, an unreadable hooks/ or .apm/hooks/ directory can produce an empty descriptor selection, so an existing matching entry is silently left without either the entry warning or the unchecked-path warning. The audit caller checks directory readability first, but announce_withheld_hook_files() only gets that check for Copilot targets. Run the shared _require_readable_hook_dirs() check before selecting merged sources so this install path also reports the unreadable source as unchecked.

2 resolved since last review

Review effort: Balanced

… bare leaf marker is unchecked

An entry a marker attributes to the withheld package is its receipted
deployment: install retires it and exec-status-current reports it, so
hook-approval-pins no longer fails first and hides that verdict
(test_frozen_stale_exec_status_lifecycle). A bare leaf marker the lock
cannot resolve to this package is reported as ambiguous, never skipped.

Co-authored-by: Copilot App <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A critical finding remains: restoring the merged config and ownership sidecar after the lock records denied leaves this package’s hook unreported while exec-status-current still passes, requiring a reporting fix and regression coverage.

1 open issue

Review effort: Balanced

…records the hook deployment

Co-authored-by: Copilot App <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because empty source markers can leave denied-package hooks unreported, while inaccessible configuration paths can abort scans instead of producing diagnostic warnings.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved hook-scan defects can silently miss denied hooks, let malformed metadata bypass audit checks, and abort scans for supported external user-config roots.

4 open issues

Review effort: Balanced

…l user roots and unreadable sources handled

- A blank _apm_source is treated as unattributed, never as another owner.
- An explicit null hook container is malformed (unchecked), not absent.
- A user-scope config root outside $HOME (CLAUDE_CONFIG_DIR, CODEX_HOME)
  is scanned instead of aborting the scan.
- The install-side render checks hook source readability, as audit does.

Co-authored-by: Copilot App <[email protected]>
…ok-approval-pins (#4821)

The withheld-hook scan resolves the executables trust context for any
package that declares executables. Under fetch_failure_default=block the
resulting PolicyViolationError failed hook-approval-pins, which made the
audit skip its policy-outcome route and repeat the cause under drift. The
scan now defers to that route, which reports the block and fails.

P|audit-ci|empty/block becomes a lifecycle_smoke row that forbids the
repeated cause.

Co-authored-by: Copilot App <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A critical policy-provider mismatch can let an already-denied package escape restored-hook detection when a valid --policy override succeeds despite unavailable auto-discovery.

1 open issue
1 resolved since last review

Review effort: Balanced

Comment thread src/apm_cli/policy/ci_checks.py Resolved
The withheld-hook scan classified its own auto-discovered policy, so an
explicit --policy or a --no-cache split could defer a block the audit's
policy route never reports. hook-approval-pins now takes the audit's
policy_fetch and classifies it exactly as _route_ci_policy_outcome does:
it defers only when that route blocks, and otherwise judges with the
route's policy (trust built by exec_gate.trust_context_for_policy, a
registered trust caller). Without an audit discovery a policy block
fails closed.

Co-authored-by: Copilot App <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed to weigh an unpublished finding that deployed-hook checks can reject valid policy overrides or report blocking causes through the wrong route.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed to weigh omitted findings involving ignored policy overrides, suppressed policy-outcome reporting, and false hook-check failures for packages without applicable hooks.

No open issues 🎉

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The pin scan still auto-discovers policy before using the shared audit provider, potentially rejecting valid --policy overrides or suppressing policy-outcome reporting for deployed-hook packages.

1 open issue

Review effort: Balanced

Comment thread src/apm_cli/policy/ci_checks.py Resolved
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit e1f8b16 into main Nov 22, 2026
74 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-p1-merged-hook-detection branch November 22, 2026 23:03
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 22, 2026
#4768 fixed #4759, so pair|SRC=inline-mcp|DEPLOYED=unowned is required (known 10 -> 9). known_cell_issue_states regenerated.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 22, 2026
…rain 6; regenerate

Takes main's #4768 credit keys for the MCP ownership-sibling rows and keeps W3b's dry-run inline credit. Ledger 2/4/2406 (#4759 fixed).

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 23, 2026
A withheld package's hook entry put back in .claude/settings.json is kept,
announced and fails audit --ci; a blank marker attributes nothing; a
non-string marker or symlinked config fails the audit closed; the user's own
hook is not named.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 23, 2026
…C, v0.38 sweep)

Stacked on corpus train 6 (51e2e65, main f53aa79). Cars:
- policy promise rows in test_policy_promises.py with a control each (scripts
  deny, self_defined, max_depth, require_resolution, source_attribution,
  unmanaged_files, fail_on_drift, pinned constraint, explicit includes,
  transitive MCP trust, content types); the #4826 install refusal is required
  now that #4853 fixed it on main.
- strict known cells for an MCP entry of a runtime no longer targeted (#4784)
  and a codex hook copy that cannot read its plugin's skill (#2824).
- lane C incremental deploy differential (kit from #4849).
- v0.38.0 sweep: compile dependency-policy run and preview (#4734), a converged
  install writes nothing (#4790), hook bundle approval pin (#4688), a registry
  URL on a local host (#4521).
- burndown: a denied local bundle is refused unwritten (#4646), present-
  provenance-unknown x denied-executable (#4767), audit --ci judges locked
  content with apm_modules gone, merged-hook entry detection end to end (#4798).
Ledger regenerated (baseline 3, known-failing 1, required 2419).

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 23, 2026
…C, v0.38 sweep)

Stacked on corpus train 6 (2e8592d, main acb0423). Cars:
- policy promise rows in test_policy_promises.py with a control each (scripts
  deny, self_defined, max_depth, require_resolution, source_attribution,
  unmanaged_files, fail_on_drift, pinned constraint, explicit includes,
  transitive MCP trust, content types); the #4826 install refusal is required
  now that #4853 fixed it on main.
- strict known cells for an MCP entry of a runtime no longer targeted (#4784)
  and a codex hook copy that cannot read its plugin's skill (#2824).
- lane C incremental deploy differential (kit from #4849).
- v0.38.0 sweep: compile dependency-policy run and preview (#4734), a converged
  install writes nothing (#4790), hook bundle approval pin (#4688), a registry
  URL on a local host (#4521).
- burndown: a denied local bundle is refused unwritten (#4646), present-
  provenance-unknown x denied-executable (#4767), audit --ci judges locked
  content with apm_modules gone, merged-hook entry detection end to end (#4798).
Ledger regenerated (baseline 3, known-failing 1, required 2419).

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 23, 2026
…C, v0.38 sweep)

Stacked on corpus train 6 (2e8592d) and merged with main fc1866b. Cars:
- policy promise rows in test_policy_promises.py with a control each (scripts
  deny, self_defined, max_depth, require_resolution, source_attribution,
  unmanaged_files, fail_on_drift, pinned constraint, explicit includes,
  transitive MCP trust, content types); the #4826 install refusal is required
  now that #4853 fixed it on main.
- an MCP entry of a runtime no longer targeted (#4784) takes main's required
  row (its fix landed); a strict known cell for a codex hook copy that cannot read its plugin's skill (#2824).
- lane C incremental deploy differential (kit from #4849).
- v0.38.0 sweep: compile dependency-policy run and preview (#4734), a converged
  install writes nothing (#4790), hook bundle approval pin (#4688), a registry
  URL on a local host (#4521).
- burndown: a denied local bundle is refused unwritten (#4646), present-
  provenance-unknown x denied-executable (#4767), audit --ci judges locked
  content with apm_modules gone, merged-hook entry detection end to end (#4798).
Ledger regenerated (baseline 3, known-failing 1, required 2419).

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 23, 2026
…C, v0.38 sweep)

Stacked on corpus train 6 (699e837) and merged with main fc1866b. Cars:
- policy promise rows in test_policy_promises.py with a control each (scripts
  deny, self_defined, max_depth, require_resolution, source_attribution,
  unmanaged_files, fail_on_drift, pinned constraint, explicit includes,
  transitive MCP trust, content types); the #4826 install refusal is required
  now that #4853 fixed it on main.
- an MCP entry of a runtime no longer targeted (#4784) takes main's required
  row (its fix landed); a strict known cell for a codex hook copy that cannot read its plugin's skill (#2824).
- lane C incremental deploy differential (kit from #4849).
- v0.38.0 sweep: compile dependency-policy run and preview (#4734), a converged
  install writes nothing (#4790), hook bundle approval pin (#4688), a registry
  URL on a local host (#4521).
- burndown: a denied local bundle is refused unwritten (#4646), present-
  provenance-unknown x denied-executable (#4767), audit --ci judges locked
  content with apm_modules gone, merged-hook entry detection end to end (#4798).
Review folds: I5 admits the compile record only as a regular file and its
newly created ancestor directories; run/preview, content-types, plugin-root
hook, lane C fresh twin and source-machine bundle identity oracles tightened.
Ledger regenerated (baseline 3, known-failing 1, required 2419).

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 23, 2026
…C, v0.38 sweep)

Stacked on corpus train 6 (699e837) and merged with main fc1866b. Cars:
- policy promise rows in test_policy_promises.py with a control each (scripts
  deny, self_defined, max_depth, require_resolution, source_attribution,
  unmanaged_files, fail_on_drift, pinned constraint, explicit includes,
  transitive MCP trust, content types); the #4826 install refusal is required
  now that #4853 fixed it on main.
- an MCP entry of a runtime no longer targeted (#4784) takes main's required
  row (its fix landed); a strict known cell for a codex hook copy that cannot read its plugin's skill (#2824).
- lane C incremental deploy differential (kit from #4849).
- v0.38.0 sweep: compile dependency-policy run and preview (#4734), a converged
  install writes nothing (#4790), hook bundle approval pin (#4688), a registry
  URL on a local host (#4521).
- burndown: a denied local bundle is refused unwritten (#4646), present-
  provenance-unknown x denied-executable (#4767), audit --ci judges locked
  content with apm_modules gone, merged-hook entry detection end to end (#4798).
Review folds: I5 admits the compile record only as a regular file and its
newly created ancestor directories; run/preview, content-types, plugin-root
hook, lane C fresh twin, source-machine bundle identity, self_defined warn and
hook bundle update oracles tightened. U-USER-SCOPE-ORG-POLICY removes explicit
user-scope cells only: the four scope-free T1 bin x denied-dependency cells are
required, witnessed by the project matrix refusals.
Ledger regenerated (baseline 3, known-failing 1, required 2423).

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 23, 2026
…C, v0.38 sweep)

Stacked on corpus train 6 (699e837) and merged with main fc1866b. Cars:
- policy promise rows in test_policy_promises.py with a control each (scripts
  deny, self_defined, max_depth, require_resolution, source_attribution,
  unmanaged_files, fail_on_drift, pinned constraint, explicit includes,
  transitive MCP trust, content types); the #4826 install refusal is required
  now that #4853 fixed it on main.
- an MCP entry of a runtime no longer targeted (#4784) takes main's required
  row (its fix landed); a strict known cell for a codex hook copy that cannot read its plugin's skill (#2824).
- lane C incremental deploy differential (kit from #4849).
- v0.38.0 sweep: compile dependency-policy run and preview (#4734), a converged
  install writes nothing (#4790), hook bundle approval pin (#4688), a registry
  URL on a local host (#4521).
- burndown: a denied local bundle is refused unwritten (#4646), present-
  provenance-unknown x denied-executable (#4767), audit --ci judges locked
  content with apm_modules gone, merged-hook entry detection end to end (#4798).
Review folds: I5 admits the compile record only as a regular file and its
newly created ancestor directories; run/preview, content-types, plugin-root
hook, lane C fresh twin, source-machine bundle identity, self_defined warn and
hook bundle update oracles tightened; the self_defined warn row is a real
warn-mode policy now and is strict known on #5070. U-USER-SCOPE-ORG-POLICY removes explicit
user-scope cells only: the four scope-free T1 bin x denied-dependency cells are
required, witnessed by the project matrix refusals.
Ledger regenerated (baseline 3, known-failing 1, required 2423).

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 23, 2026
…C, v0.38 sweep)

Stacked on corpus train 6 (699e837) and merged with main fc1866b. Cars:
- policy promise rows in test_policy_promises.py with a control each (scripts
  deny, self_defined, max_depth, require_resolution, source_attribution,
  unmanaged_files, fail_on_drift, pinned constraint, explicit includes,
  transitive MCP trust, content types); the #4826 install refusal is required
  now that #4853 fixed it on main.
- an MCP entry of a runtime no longer targeted (#4784) takes main's required
  row (its fix landed); a strict known cell for a codex hook copy that cannot read its plugin's skill (#2824).
- lane C incremental deploy differential (kit from #4849).
- v0.38.0 sweep: compile dependency-policy run and preview (#4734), a converged
  install writes nothing (#4790), hook bundle approval pin (#4688), a registry
  URL on a local host (#4521).
- burndown: a denied local bundle is refused unwritten (#4646), present-
  provenance-unknown x denied-executable (#4767), audit --ci judges locked
  content with apm_modules gone, merged-hook entry detection end to end (#4798).
Review folds: I5 admits the compile record only as a regular file and its
newly created ancestor directories; run/preview, content-types, plugin-root
hook, lane C fresh twin, source-machine bundle identity, self_defined warn and
hook bundle update oracles tightened; the self_defined warn row is a real
warn-mode policy now and is strict known on #5070; the #4826 refusal row checks rollback. U-USER-SCOPE-ORG-POLICY removes explicit
user-scope cells only: the four scope-free T1 bin x denied-dependency cells are
required, witnessed by the project matrix refusals.
Ledger regenerated (baseline 3, known-failing 1, required 2423).

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 23, 2026
…C, v0.38 sweep)

Stacked on corpus train 6 (699e837) and merged with main fc1866b. Cars:
- policy promise rows in test_policy_promises.py with a control each (scripts
  deny, self_defined, max_depth, require_resolution, source_attribution,
  unmanaged_files, fail_on_drift, pinned constraint, explicit includes,
  transitive MCP trust, content types); the #4826 install refusal is required
  now that #4853 fixed it on main.
- an MCP entry of a runtime no longer targeted (#4784) takes main's required
  row (its fix landed); a strict known cell for a codex hook copy that cannot read its plugin's skill (#2824).
- lane C incremental deploy differential (kit from #4849).
- v0.38.0 sweep: compile dependency-policy run and preview (#4734), a converged
  install writes nothing (#4790), hook bundle approval pin (#4688), a registry
  URL on a local host (#4521).
- burndown: a denied local bundle is refused unwritten (#4646), present-
  provenance-unknown x denied-executable (#4767), audit --ci judges locked
  content with apm_modules gone, merged-hook entry detection end to end (#4798).
Review folds: I5 admits the compile record only as a regular file and its
newly created ancestor directories; run/preview, content-types, plugin-root
hook, lane C fresh twin, source-machine bundle identity, self_defined warn and
hook bundle update oracles tightened; the self_defined warn row is a real
warn-mode policy now and is strict known on #5070; the #4826 refusal row checks rollback; no-write stamps add the POSIX change time. U-USER-SCOPE-ORG-POLICY removes explicit
user-scope cells only: the four scope-free T1 bin x denied-dependency cells are
required, witnessed by the project matrix refusals.
Ledger regenerated (baseline 3, known-failing 1, required 2423).

Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants