Skip to content

feat(install): carry the source licence with subdirectory packages - #3646

Merged
Daniel Meppiel (danielmeppiel) merged 7 commits into
mainfrom
danielmeppiel-issue-3556-subdir-licence
Nov 12, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 7 commits into
mainfrom
danielmeppiel-issue-3556-subdir-licence

Conversation

@danielmeppiel

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

Copy link
Copy Markdown
Collaborator

Description

feat(install): carry the source licence with subdirectory packages

TL;DR. A dependency installed from a repository subdirectory now brings the repository's nearest LICENSE / LICENSE.* / COPYING / NOTICE, byte-for-byte, into apm_modules and next to every deployed skill that has none. Whole-repo skills below the root get the root licence too. Each copy is recorded in apm.lock.yaml under carried_licenses. Uninstall removes the copies and apm audit reports a missing or edited one. APM never reads or interprets the file.

Problem (WHY)

  • A path: dependency materializes only its subdirectory, so the repository-root licence never reaches apm_modules, the deployed skill, or the lockfile (repro in [FEATURE] Carry the source licence with packages installed from a repository subdirectory #3556: mattpocock/skills, skills/productivity/grilling).
  • Projects commit the deployed files, so every committed copy of an MIT/BSD/Apache skill drops the notice those licences require.
  • Whole-repo packages have the same gap for skills deployed from skills/<name>/.
  • Adding a file to the materialized package naively changes content_hash. Every existing lockfile would then hit the hard "supply-chain attack" mismatch, and older clients would reject new lockfiles.

Approach (WHAT)

Concern Decision
Which file Nearest of LICENSE, LICENSE.*, COPYING, NOTICE (case-insensitive, that precedence) from the package path up to the repo root; regular files only, symlinks never followed
Where it lands Package root in apm_modules (subdirectory packages), plus every SKILL.md directory lacking a licence; the existing skill copy then deploys it
Lock record carried_licenses: [{path, source, hash}] per entry; omitted when empty
Integrity Copies are excluded from content_hash using exclusions from the download result or lock entry only (never from disk), and verified against their own hash
Uninstall / audit No new code: deployed copies are ordinary deployed_files + ledger rows, so existing uninstall, deployed-files-present, and content-integrity cover them

Implementation (HOW)

File Change
deps/carried_license.py (new) Single owner: name rule, nearest lookup, verbatim copy, CarriedLicense record, lock (de)serialization with strict validation, verify_locked_package
utils/content_hash.py compute_package_hash / verify_package_hash take exclude=
deps/github_downloader.py, deps/artifactory_orchestrator.py Read the repository licence before the clone/archive is discarded (sparse cones keep ancestor files), write it after validation so Claude-plugin normalization cannot duplicate an unrecorded copy; carry after whole-repo materialization; set PackageInfo.carried_licenses
integration/skill_adoption.py Licence-named files are never link-rendered, so LICENSE.md deploys byte-identical and non-UTF-8 licences cannot crash install
install/phases/resolve.py, install/sources.py, install/source_helpers.py Thread records into ctx.package_carried_licenses; hash with exclusions; fail closed when fresh copies differ from the lock record
install/phases/integrate.py, install/phases/_redownload.py, install/native_plugin_admission.py, install/legacy_plugin_compat.py Cached-reuse verification excludes carried copies and requires them intact (else re-download re-carries)
deps/lockfile.py, install/phases/lockfile.py, install/context.py, models/apm_package.py carried_licenses field, attach step, ctx map, PackageInfo field
scripts/architecture_linter/.../marketplace_package_and_registration.py Native-cache guard now pins verify_locked_package(candidate, expected_hash, carried) (which calls verify_package_hash)
Docs consumer/manage-dependencies.md, reference/lockfile-spec.md, packages/apm-guide/.../dependencies.md

Diagram

Legend: where the licence comes from and how each later step treats the copy (new behaviour boxed in green).

flowchart LR
    R["repo @ locked commit<br/>LICENSE at root"] -->|"sparse clone / archive"| D["downloader"]
    D --> C["carry_licenses()"]
    C -->|"verbatim copy"| M["apm_modules/.../grilling/LICENSE"]
    C -->|"records"| L["apm.lock.yaml<br/>carried_licenses"]
    M -->|"normal skill copy"| S[".agents/skills/grilling/LICENSE"]
    S --> A["apm audit<br/>deployed-files + content-integrity"]
    S --> U["apm uninstall removes it"]
    M -.->|"excluded from content_hash"| H["content_hash unchanged"]
    classDef new fill:#e6ffed,stroke:#2da44e
    class C,M,L,S new
Loading

Trade-offs

  • Hash exclusion vs. including copies in content_hash. Including them is simpler but breaks every existing lockfile and makes new lockfiles fail on older clients. Excluding them, with a separate per-copy hash checked fail-closed, keeps both directions compatible.
  • Copy into source skill dirs vs. deploy-time copy in the skill integrator. The integrator (2099/2100 lines) owns ledger/ownership/adoption state. Copying in apm_modules reuses that machinery unchanged. The cost: unselected skills in the cache also get a copy (harmless; not deployed).
  • One file per directory. The record says "the nearest … file". A directory holding both LICENSE and NOTICE carries LICENSE only. Carrying Apache NOTICE alongside would be a follow-up.
  • Warm caches on a pre-feature lockfile are not re-downloaded just to look for a licence. Copies arrive the next time the package is materialized, so the docs say to delete the package directory in apm_modules/ to force it. Otherwise every licence-less subdirectory package would re-download on each install.
  • Licence Markdown is never link-rendered, including a package's own LICENSE.md. Licence text should travel verbatim, and rendering would crash on non-UTF-8 bytes. A non-UTF-8 LICENSE.md still audits as "incomplete coverage" under the existing hidden-Unicode scanner policy for any non-UTF-8 Markdown.
  • Hash form. hash uses the existing line-ending-normalized compute_file_hash, matching deployed_file_hashes, so lockfiles stay portable across autocrlf checkouts. The copy itself is byte-for-byte.

Benefits

  1. The [FEATURE] Carry the source licence with packages installed from a repository subdirectory #3556 reproduction leaves the MIT LICENSE byte-identical in apm_modules and in .agents/skills/grilling/.
  2. Lockfiles written before this change verify unchanged (content_hash keeps its legacy value, asserted in the e2e test).
  3. A tampered carried record or edited/missing deployed copy fails apm install / apm audit closed.
  4. Packages with no licence in range produce byte-identical lockfiles and deployments.

Issue and approved scope

Issue: Fixes #3556

Human scope-approval comment: #3556 (comment) (Daniel Meppiel (@danielmeppiel), apm-scope:v1, Decision: approve).

Completes the issue per the record's Done when. Out of scope honoured: no SPDX detection, no licence policy, no aggregated notices file, no lock export format change.

Overlap: touches the same install/materialization area as #3602 (GitCache sparse retry), #3612 (subdirectory orphans) and #3640 (cache remote), but no shared hunks; download_subdirectory_package gains one call after the copy loop.

Note

Local preflight skipped by maintainer instruction (2026-11-12); CI is the gate.

Type of change

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

Testing

  • Tested locally
  • All existing tests pass (targeted suites below; CI runs the full matrix)
  • Added tests for new functionality

Scenario evidence

# Scenario (user promise) Principle(s) Test(s) proving it Type
1 Installing a subdirectory skill leaves the repo licence byte-identical in apm_modules and next to the deployed skill, recorded in the lock Governed by policy, OSS tests/integration/test_carried_license_lifecycle.py::test_licence_is_carried_recorded_audited_and_uninstalled e2e
2 Whole-repo skills below the root get the root licence; licence-less packages unchanged Governed by policy, DevX same e2e (alpha / beta assertions); tests/unit/deps/test_carried_license.py e2e / unit
3 Pre-feature lockfiles keep verifying; content_hash unchanged Secure by default, DevX same e2e (legacy-lock + compute_package_hash assertions); test_carried_copies_keep_the_legacy_package_content_hash e2e / unit
4 Tampered carried record fails closed; audit flags missing/edited deployed copy; uninstall removes it Secure by default, Governed by policy same e2e (tamper, audit, uninstall blocks) e2e
5 Symlinked licences never followed; unsafe lock paths/hashes ignored Secure by default test_symlinked_license_is_never_followed, test_untrusted_lock_data_is_dropped unit
6 Artifactory subdirectory and whole-repo installs carry the licence Vendor-neutral tests/unit/deps/test_artifactory_orchestrator.py (test_archive_root_licence_is_carried_into_subdirectory_package, test_whole_repo_download_carries_root_licence_next_to_skills) unit
7 Claude plugin subdirectory keeps its pre-feature content_hash; LICENSE.md with a link deploys byte-identical Secure by default, DevX e2e (_pre_feature_hash on the plugin, LICENSE.md bytes) e2e
8 Install-side guards fail closed / re-download on tamper; legacy, update and expected-change paths stay open Secure by default tests/unit/install/test_carried_license_install.py unit

Mutation-break: removing any of these fails a test:

  • the hash exclusion
  • the lock-baseline in integrate.py
  • the carried check in _should_skip_redownload
  • ensure_carried_licenses_match
  • the regular-file licence check
  • the licence render skip
  • post-validation carry ordering
  • the cached intact check
  • the Artifactory whole-repo carry
Commands and results
$ .venv/bin/python -m pytest -q -p no:xdist tests/unit/deps/ tests/unit/install/ tests/unit/integration/test_skill_integrator.py tests/unit/integration/test_content_identical_adopt.py tests/unit/integration/test_skill_materialization_completion.py tests/test_github_downloader.py tests/test_lockfile.py tests/unit/test_content_hash.py
5797 passed, 2 skipped, 3 warnings in 217.15s

$ APM_BINARY_PATH=.venv/bin/apm .venv/bin/python -m pytest -q -p no:xdist tests/integration/test_carried_license_lifecycle.py tests/integration/test_architecture_native_plugin_audit.py
11 passed in 40.15s

CI on 43f57cc (after merging main): 27 pass, 3 skipping, 0 failing; license/cla pass

Lint mirror (ci.yml Lint job): ruff check -> All checks passed!; ruff format --check -> 2164 files already formatted;
YAML / file-length / relative_to guards -> clean; pylint R0801 -> 10.00/10;
scripts/lint-auth-signals.sh -> [+] auth-signal lint clean; scripts/lint-architecture-boundaries.sh -> exit 0

How to test

  • APM_BINARY_PATH=.venv/bin/apm uv run --extra dev pytest -p no:xdist tests/integration/test_carried_license_lifecycle.py
  • Manually: install the [FEATURE] Carry the source licence with packages installed from a repository subdirectory #3556 apm.yml, then cmp .agents/skills/grilling/LICENSE <(curl -s https://raw.githubusercontent.com/mattpocock/skills/4ae2317ddb22b046e26455e4f9c9b3aaaf62212d/LICENSE)
  • Check carried_licenses under the grilling entry in apm.lock.yaml; edit .agents/skills/grilling/LICENSE and run apm audit --ci: content-integrity fails
  • apm uninstall mattpocock/skills/skills/productivity/grilling removes the deployed copy

Spec conformance (OpenAPM v0.1)

  • Spec edit
  • Manifest edit
  • Test edit
  • CONFORMANCE.{md,json} regenerated
  • N/A -- additive optional per-entry lockfile field, allowed by lockfile-v0.1.schema.json (additionalProperties: true) and preserved by older readers. Mode B waived with an apm-spec-waiver: commit trailer; a normative fold can follow via a spec-guardian pass.

Co-authored-by: Copilot [email protected]

…3556)

Packages materialized from a repository subdirectory now carry the
nearest LICENSE, LICENSE.*, COPYING or NOTICE file found from the
package path up to the repository root, verbatim, into the package in
apm_modules. Every skill directory without its own licence file (also
skills below the root of a whole-repo package) gets the nearest one, so
the normal skill copy deploys it next to the skill and records it in
deployed_files and the deployment ledger. Uninstall removes those
copies and apm audit reports a missing or edited one.

apm.lock.yaml records each copy under carried_licenses (path, source,
hash). The copies are excluded from content_hash, using exclusions from
the download result or the lock entry only, so pre-existing lockfiles
keep verifying and older clients keep accepting new ones. Cached reuse
requires the recorded copies to be intact, and a fresh download whose
carried copies differ from the lock record fails closed.

No licence detection or interpretation: APM keeps the declared-license
model of #1777.

apm-spec-waiver: additive optional per-entry lockfile field (carried_licenses) allowed by the lockfile schema additionalProperties and preserved by older readers; normative spec fold deferred to a spec-guardian pass.

Co-authored-by: Copilot App <[email protected]>
…#3556)

Moves the carried-licence hash recording and the fail-closed lock
comparison into install/source_helpers so sources.py and resolve.py
stay within the 1000-line install module budget, and restores the lazy
verify_package_hash lookup that existing tests patch.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 12, 2026 17:54
A local test run left a fixture file in the worktree that was picked up
by the previous commit; it is unrelated to #3556.

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

Unresolved licence-handling defects can cause lockfile hash mismatches, failed skill installs, and skipped licence copies, while the new MCP configuration is invalid JSON.

3 open issues
What changed in this PR

This PR addresses #3556 by carrying source licence files into installed packages and deployed skills. It integrates licence provenance and integrity checks into APM's existing download, lockfile, cache, audit, and uninstall flows.

Changes:

  • Add nearest-licence discovery, verbatim copying, and carried_licenses lock records.
  • Exclude carried copies from package hashes and verify their integrity separately.
  • Add lifecycle and regression coverage, documentation, and a changelog entry.
File Description
tests/​unit/​install/​test_branch_ref_drift.py Adapt hash-verification mocks for exclusions.
tests/​unit/​deps/​test_lockfile_field_properties.py Include carried licences in property tests.
tests/​unit/​deps/​test_lockfile_consumer_contract.py Extend lockfile field coverage.
tests/​unit/​deps/​test_carried_license.py Test discovery, copying, records, and integrity.
tests/​unit/​deps/​test_artifactory_orchestrator.py Cover archive-root licence carrying.
tests/​integration/​test_carried_license_lifecycle.py Exercise install, replay, audit, and uninstall.
tests/​integration/​test_architecture_native_plugin_audit.py Update the cache-verification guard test.
src/​apm_cli/​utils/​content_hash.py Support explicit package-hash exclusions.
src/​apm_cli/​models/​apm_package.py Add carried records to download results.
src/​apm_cli/​install/​sources.py Record and verify carried licences during acquisition.
src/​apm_cli/​install/​source_helpers.py Coordinate licence records and integrity checks.
src/​apm_cli/​install/​phases/​resolve.py Capture records from resolver downloads.
src/​apm_cli/​install/​phases/​lockfile.py Attach carried records to lock entries.
src/​apm_cli/​install/​phases/​integrate.py Verify carried copies before cache reuse.
src/​apm_cli/​install/​phases/​_redownload.py Include licence integrity in reuse decisions.
src/​apm_cli/​install/​native_plugin_admission.py Verify carried licences during native replay.
src/​apm_cli/​install/​legacy_plugin_compat.py Preserve exclusions in legacy hash checks.
src/​apm_cli/​install/​context.py Store per-install carried-licence records.
src/​apm_cli/​deps/​lockfile.py Serialize and deserialize carried records.
src/​apm_cli/​deps/​github_downloader.py Carry licences during Git materialization.
src/​apm_cli/​deps/​carried_license.py Own licence selection, copying, and verification.
src/​apm_cli/​deps/​artifactory_orchestrator.py Carry licences from archive packages.
scripts/​architecture_linter/​checks/​marketplace_package_and_registration.py Update the required cache-verification call.
packages/​apm-guide/​.apm/​skills/​apm-usage/​dependencies.md Document licence-carrying behavior.
docs/​src/​content/​docs/​reference/​lockfile-spec.md Describe carried records and hash exclusions.
docs/​src/​content/​docs/​consumer/​manage-dependencies.md Explain deployment and cache-refresh behavior.
CHANGELOG.md Announce licence carrying.
.github/​mcp.json Add an unfinished MCP configuration placeholder.

Review effort: Balanced

Comment thread src/apm_cli/deps/carried_license.py Resolved
Comment thread src/apm_cli/deps/carried_license.py Resolved
Comment thread src/apm_cli/deps/github_downloader.py Resolved
…pies

Addresses Copilot inline review on #3646:
- carried_license.py: only regular licence files satisfy "already has a
  licence"; never write over an existing entry (file, dir or link).
- Subdirectory downloads read the repository licence before the checkout
  is discarded and write it after validation, so Claude plugin
  normalization cannot duplicate an unrecorded copy into .apm/skills
  (which broke pre-#3556 lockfile hashes on cold replay).
- skill_adoption.render_skill_markdown never reads or rewrites licence
  files, so LICENSE.md deploys byte-identical and non-UTF-8 licences
  cannot crash install.

The e2e test now covers a Claude plugin subdirectory and a LICENSE.md
with a relative link, and asserts the locked content_hash equals the
pre-feature hash for subdirectory packages.

Co-authored-by: Copilot <[email protected]>
Addresses the test-coverage-expert panel follow-ups on #3646: direct
unit tests for ensure_carried_licenses_match (fail closed, legacy,
update and expected-change bypasses), record_carried_package_hash
(fresh, cached intact, cached tampered), _should_skip_redownload with
carried copies, and the Artifactory whole-repo carry.

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

Copy link
Copy Markdown
Collaborator Author

APM Review Panel: ship_with_followups

Carried-licence feature copies verbatim licence files into subdirectory packages and locks their path+hash -- panel converges clean on security and architecture; unit regression traps for three install-pipeline glue paths recommended.

panel-mode=lean; personas=supply-chain-security-expert,test-coverage-expert,python-architect,apm-ceo

All three panelists converge: the feature is well-designed, correctly scoped, and introduces no regressions. Supply-chain-security finds zero findings -- content-hash integrity is preserved via hash-neutral exclusions, path containment is enforced, symlinks are never followed, and tamper detection fails closed. Python-architect confirms carried_license.py is a clean single-owner module, the hash-exclusion API is minimal and backward-compatible, and the downloader is the correct integration seam.

The only open surface is from test-coverage-expert, who identifies three install-pipeline glue paths (source_helpers, _redownload, Artifactory whole-repo) where removing the carried-licence integration would fail no unit test today. E2e coverage and mutation-breaks already prove the behaviour; the risk is silent drift under a future refactor. ensure_carried_licenses_match fails closed on tamper, a secure-by-default surface, so that trap ranks first.

Aligned with: Secure by default (fails closed on tampered licence hash, symlinks never followed, exclusions limited to licence-named basenames); Portable by manifest (lock records carried path, source and hash); Governed by policy (apm audit reports missing or edited copies); Pragmatic as npm (old locks verify with the new CLI, old clients accept new locks).

Panel summary

Persona B R N Takeaway
Python Architect 0 0 0 carried_license.py is a clean single owner; hash-exclusion API is minimal and backward-compatible; downloader is the correct seam.
Supply Chain Security Expert 0 0 0 Preserves content-hash integrity, uses sanctioned path guards, fails closed on tamper, constrains exclusions to licence-named basenames.
Test Coverage Expert 0 3 0 Done-whens covered at e2e tier; three install-pipeline glue paths lack unit regression traps.

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Top 3 follow-ups

  1. [Test Coverage Expert] Add unit regression trap for ensure_carried_licenses_match and record_carried_package_hash guard branches in source_helpers.py -- fails closed on tamper, a secure-by-default surface.
  2. [Test Coverage Expert] Extend _should_skip_redownload unit tests with a carried-licence-aware verify_locked_package fixture -- reverting to plain verify_package_hash passes current unit tests.
  3. [Test Coverage Expert] Add unit assertion for carried_licenses in Artifactory whole-repo download_package -- removing the carry there fails no test.

Recommendation

Merge after the three unit regression traps land (fold-by-default: they are inside this PR's scope), prioritizing ensure_carried_licenses_match first. No rework or discussion needed.


Full per-persona findings

Python Architect

No findings.

Supply Chain Security Expert

No findings.

Test Coverage Expert

  • [recommended] ensure_carried_licenses_match and record_carried_package_hash have no unit tests at src/apm_cli/install/source_helpers.py
    Guard branches (update_refs, expected_hash_change_deps, legacy no-records, carried_copies_intact fallback) have no direct regression trap.
    Proof (missing at): tests/unit/install/test_source_helpers_carried.py -- proves: a fresh download whose carried licences differ from the lockfile record fails closed [secure-by-default]
  • [recommended] _should_skip_redownload unit tests do not exercise carried-licence-aware verify_locked_package at src/apm_cli/install/phases/_redownload.py
    TestHashRedownloadGuard uses SimpleNamespace without carried_licenses.
    Proof (missing at): tests/unit/test_install_command.py -- proves: warm reinstall re-downloads when an on-disk carried licence copy is tampered [secure-by-default]
  • [recommended] Artifactory download_package (whole-repo) has no test asserting carried_licenses at src/apm_cli/deps/artifactory_orchestrator.py:256
    Removing carry_licenses from the whole-repo path fails no test.
    Proof (missing at): tests/unit/deps/test_artifactory_orchestrator.py -- proves: Artifactory whole-repo download carries the root licence to skill directories [secure-by-default,portability-by-manifest]

This panel is advisory. It does not block merge. Re-apply the
panel-review label after addressing feedback to re-run.


Generated by autopilot-pr-review-worker. This comment is AI-generated and may contain errors.

@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

APM Review Panel: ship_now

Delta clears all prior follow-ups: carried-licence folds are mutation-trapped, CI green, three panelists unanimous -- PR is ready to ship.

panel-mode=delta; personas=supply-chain-security-expert,test-coverage-expert,python-architect,apm-ceo

Material delta since the last advisory (head 28c1561): the three test-coverage follow-ups landed in 7cf53ac as mutation-checked unit traps (tests/unit/install/test_carried_license_install.py, Artifactory whole-repo carry test). ff5faf3 also folds the three LEGIT Copilot inline items:

  • C1: only regular licence files count as an existing licence, and a copy never writes over an existing entry.
  • C2: licence-named Markdown is never read as UTF-8 or link-rewritten, so it deploys as a byte copy.
  • C3: subdirectory licences are read before checkout cleanup and written after plugin normalization, so no unrecorded copy can change a pre-feature content_hash.

Removing any guarded branch now fails a test. Supply-chain finds no new attack surface. The architect confirms carried_license.py stays the single owner and skill_adoption imports the canonical licence-name rule in the correct dependency direction.

Known, deliberate trade-offs (not regressions):

  • One licence file per directory (LICENSE wins over NOTICE).
  • Warm legacy caches get copies on next materialization.
  • A non-UTF-8 LICENSE.md audits as incomplete coverage, like any non-UTF-8 Markdown (existing scanner policy).
  • Licence-named Markdown is no longer link-rendered.

Aligned with:

  • Secure by default: byte-only copies, no-overwrite, regular-file-only detection.
  • Portable by manifest: carried copies tracked per package in the lockfile.
  • Governed by policy: audit sees the deployed copies.
  • Pragmatic as npm: no new flags or config.

Panel summary

Persona B R N Takeaway
Python Architect 0 0 0 Read/write split keeps carried_license.py the single owner; skill_adoption imports the canonical licence-name rule in the correct direction.
Supply Chain Security Expert 0 0 0 In-memory RepositoryLicense, lexists no-overwrite, regular-file-only detection and render-skip add no new attack surface.
Test Coverage Expert 0 0 0 All three prior findings resolved by 7cf53ac; C1/C2/C3 folds have dedicated unit traps plus lifecycle coverage.

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Recommendation

All three prior follow-ups are resolved with mutation-checked unit traps. The three Copilot inline folds are covered by the same trap suite. CI is green on 43f57cc (27 pass, 0 fail, license/cla pass), and zero review threads remain open. No panelist raised a finding. Recommend merge at maintainer discretion.


Full per-persona findings

Python Architect

No findings.

Supply Chain Security Expert

No findings.

Test Coverage Expert

No findings.

This panel is advisory. It does not block merge. Re-apply the
panel-review label after addressing feedback to re-run.


Generated by autopilot-pr-review-worker. This comment is AI-generated and may contain errors.

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit b73386f into main Nov 12, 2026
31 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-issue-3556-subdir-licence branch November 12, 2026 18:51
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 12, 2026
Clean merge of eight main commits (#3408, #2231, #2602, #3640, #3611,
#3645, #3602, #3646); no lockfile or autopilot package conflicts and
apm audit --ci passes with no drift.

Co-authored-by: sergio-sisternes-epam <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 12, 2026
Resolve docs/src/content/docs/reference/lockfile-spec.md content_hash row:
keep this PR's core.autocrlf/core.eol pin wording (#3270) and main's
carried_licenses exclusion (#3646).

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 17, 2026
* fix(tests): restore release-gate lanes for 0.36.0

Main's tag-gate lanes (build-release push + manual-build-release) were red
on runs 43381609442, 43381682871 and 43394173235. PR CI never runs them.

Product regressions (Windows/real installs), fixed:
- Hook cleanup removed nothing on Windows: remove_stale_deployed_files
  looked up recorded hashes with POSIX keys while callers passed native
  backslash keys, so content proof failed closed (#3672, Refs #3649).
- describe_path_obstruction returned None on Windows, which reports a
  directory-for-file as EACCES and a file-for-parent as ENOENT instead of
  EISDIR/ENOTDIR (#3709, Refs #3678).
- Skill preflight refused claimed members of an unclaimed, populated skill
  directory that materialization leaves alone, failing a local bundle
  install (Refs #3625).

Stale tests (behaviour changed intentionally), updated:
- policy chain mocks now return real PolicyFetchResult (#2933, Refs #2753)
- bare-cache/downloader/anonymous-https fixtures use real Git checkouts
  (#3603, Refs #3457)
- mcp install help, registry error wording, deps why -g help
  (#3633 Refs #3588, #2803 Refs #2478, #3614 Refs #2884)
- downloader stub carries carried_licenses (#3646, Refs #3556)
- frozen-hash lifecycle uses a generic git host so -g URL validation
  uses git ls-remote instead of a live api.github.com 404 (#3672)

New Windows-shaped regression tests are marked windows_compat.

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

* chore: spec waiver for release-gate repair

apm-spec-waiver: restores pre-existing behaviour on Windows and in skill preflight; no OpenAPM-observable change

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

---------

Co-authored-by: danielmeppiel <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Jake Aitchison (milkshakeuk) added a commit to milkshakeuk/dependabot-core that referenced this pull request Nov 18, 2026
0.36.0 includes microsoft/apm#3638, which adopts unchanged committed
skills when the local deployment receipts are missing, but only for
`apm update`. After a manifest edit, `apm install` on a fresh checkout
still refuses every committed file of the changed package ("no
trustworthy local deployment baseline") and fails, so the dependabot#3625
workaround and the edited-file check are still needed. With them, every
end-to-end scenario matches a fresh install of the new version and
passes `apm install --frozen`.

0.36 also copies the source licence into subdirectory packages
(microsoft/apm#3646). The copied LICENSE is recorded in
`deployed_files` and `deployed_file_hashes` like any other deployed
file, so the updater handles it without change. The checksums come from
the release's `.sha256` files and match both downloaded archives.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Carry the source licence with packages installed from a repository subdirectory

2 participants