Repository navigation
fix: trust and integrity consistency hardening, part 2 - #4061
Merged
Merged
Conversation
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-4027-part2
branch
from
November 20, 2026 03:43
b087fce to
dad5cb5
Compare
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
Bump pyproject.toml and uv.lock to 0.37.0 and move [Unreleased] to [0.37.0] in CHANGELOG.md, re-sanitized to one line per change in one section, with 4 Highlights. README: apm-guide pin to v0.37.0 and Codex .codex-plugin/plugin.json in the Build plugins line. Lint mirror green locally (ruff check + format, pylint R0801, auth-signals). Built on main merged with the final 0.37 stack heads (#3996 ... #4051, without #4061). Post-merge: tag v0.37.0. Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
Bump pyproject.toml and uv.lock to 0.37.0 and move [Unreleased] to [0.37.0] in CHANGELOG.md, re-sanitized to one line per change in one section, with 4 Highlights. README: apm-guide pin to v0.37.0 and Codex .codex-plugin/plugin.json in the Build plugins line. Lint mirror green locally (ruff check + format, pylint R0801, auth-signals). Built on main merged with the final 0.37 stack heads (#3996 ... #4051, without #4061). Post-merge: tag v0.37.0. Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-4027-part2
branch
from
November 20, 2026 04:33
dad5cb5 to
dc5ad2e
Compare
Daniel Meppiel (danielmeppiel)
marked this pull request as ready for review
November 20, 2026 04:33
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 04:33
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-4027-part2
branch
from
November 20, 2026 05:00
dc5ad2e to
92c592e
Compare
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…part 2 Co-authored-by: copilot-swe-agent[bot] <[email protected]>
… targets) Co-authored-by: copilot-swe-agent[bot] <[email protected]>
… single ledger read) Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-4027-part2
branch
from
November 20, 2026 05:07
92c592e to
1f0d658
Compare
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
…ain step 25c945c) Co-authored-by: Copilot App <[email protected]>
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Trust and integrity consistency hardening, part 2.
Local-bundle hooks now record the exact approval key that admitted them, alongside their hook ownership marker.
apm install(including--frozen),apm updateandapm prunere-check that key against current approvals and org policy. Hooks whose approval no longer holds are retired through the hook integrator's local-bundle retirement owner, andapm audit --cireports them first.Coverage:
apm-hooks.jsonsidecar..github/apm-hooks.json; under-g, the user-scope Copilot root). That is outside the hooks directory the harness loads. Retirement deletes<root>/hooks/<slug>-hooks.jsonand drops its lockfile rows.apm install,apm install --frozen,apm update,apm pruneandapm audit --ci, and prints a hint to rerunapm install <bundle>.After a retirement:
Merged targets: only the hook registration is removed. The inert script files stay recorded in the lockfile, and
apm audit --cistays clean.Copilot: the hook file is removed with its lockfile rows. Under
--frozen, lockfile writes are suppressed, so the row stays until the next writable install, andapm audit --cireports the missing file until then.Single reader/writer of the approval record:
integration/hook_ownership.py(local_bundle_hook_source_marker,parse_local_bundle_hook_source).Re-check owner:
install/local_bundle_hook_trust.py.New guard
install-deployment-local-bundle-hook-trust, registered in the owner registry, with mutation cases.Stacked on #4051.
Issue and approved scope
Issue: Refs #4027
Human scope-approval comment: #4027 (comment) (item 5)
Does this PR complete the issue, or what remains? Together with #4051 it covers the approved scope.
Type of change
Testing
Tested locally
All existing tests pass (CI pending)
Added tests for new functionality (if applicable)
tests/integration/test_trust_integrity_consistency_lifecycle.py(installed CLI) covers:install/install --frozen/update/prune, on both claude and copilot targets: hooks retired;executables.deny_all: hooks retired;--asalias: approved hooks stay, revoked ones go;audit --ciflags the hook before retirement.tests/unit/install/test_local_bundle_hook_trust.py.Owner mutation matrix cases for the new guard. Behavioural mutation-breaks: disabling the key re-check fails 6 lifecycle cases, and disabling per-file retirement fails the 6 Copilot cases.
ruff check/ruff format --check/ pylint R0801 /lint-architecture-boundaries.sh: clean.Changelog
## [Unreleased]inCHANGELOG.md.Spec conformance (OpenAPM v0.1)
No
req-XXXbehaviour changes.