Repository navigation
fix(compile): discover Claude dependency memory at arbitrary installed depth - #2952
Conversation
Claude compile previously walked only apm_modules/owner/package, so Azure DevOps installs at org/project/repo were omitted from the Dependencies @import list. Prefer declared install roots, with a shallow two- and three-level filesystem fallback for fixtures. Fixes microsoft#2951
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved dependency-root handling and fallback-scan issues must be addressed before approval.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Fixes Claude compilation to import dependency CLAUDE.md files from Azure DevOps three-level paths.
Changes:
- Uses manifest and lockfile declaration order for dependency roots.
- Adds two- and three-level filesystem fallback scanning.
- Adds regression tests and a changelog entry.
File summaries
| File | Summary | Review notes |
|---|---|---|
tests/unit/compilation/test_claude_formatter.py |
Covers ADO and mixed dependency layouts. | Add coverage for declared ADO dependencies and redirected-root handling. |
src/apm_cli/compilation/claude_formatter.py |
Collects dependency imports from declarations and filesystem layouts. | Moderate issues remain with redirected-root lockfile paths and ambiguous depth-three fallback scanning; nits request declaration-path tests and compile documentation. |
CHANGELOG.md |
Records the bug fix. | No direct comments. |
Review details
Suppressed comments (3)
src/apm_cli/compilation/claude_formatter.py:256
- When
--rootis paired withapm install --root, the manifest remains undersource_dirbutapm.lock.yamlandapm_modulesare underbase_dir. A manifest with any direct dependency makesdeclarednon-empty, so this condition skips the base-root lookup; consequently transitive lockfile paths are never considered and theirCLAUDE.mdfiles (including three-level ADO packages) are omitted. Merge the deploy-root lockfile paths with the source manifest paths through the canonical declaration-order helper, and add a redirected-root regression test.
declared = get_dependency_declaration_order(str(self.source_dir))
if not declared and self.base_dir.resolve() != self.source_dir.resolve():
declared = get_dependency_declaration_order(str(self.base_dir))
src/apm_cli/compilation/claude_formatter.py:286
- The fallback cannot distinguish an ADO
org/project/repopackage from a GitHubowner/repo/docs/CLAUDE.mdfile when the GitHub package has no rootCLAUDE.md. In that layout, this loop emits@apm_modules/owner/repo/docs/CLAUDE.mdeven though it is not a package root, so the generated context imports arbitrary nested documentation. Keep the depth-3 heuristic behind declaration/materialization metadata (or another package-root marker) rather than treating every third-levelCLAUDE.mdas an ADO package.
for repo_dir in mid_dir.iterdir():
if not repo_dir.is_dir() or repo_dir.name.startswith("."):
continue
ado_claude = repo_dir / "CLAUDE.md"
if ado_claude.is_file():
dependencies.append(
f"@apm_modules/{owner_dir.name}/{mid_dir.name}/{repo_dir.name}/CLAUDE.md"
src/apm_cli/compilation/claude_formatter.py:240
- This changes the user-visible contents of generated
CLAUDE.mdfiles, but the PR updates no Starlight page. Add a concise note to the compile documentation describing that Claude imports declared dependency-rootCLAUDE.mdfiles, including the ADOorg/project/repolayout, so the documented compile behavior stays aligned with the implementation.
Prefers installed package roots from ``apm.yml`` / lockfile declaration
order (GitHub ``owner/repo``, Azure DevOps ``org/project/repo``, and
virtual paths). Falls back to a shallow filesystem scan that understands
both two-level and three-level layouts when no declarations are present
(e.g. unit fixtures).
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
PR triage recommendationneeds-issue Recommendation only, not merge or scope approval. A responsible Linked issue#2951 (open; area/multi-target, type/bug, triage/recommended; not status/accepted) Proposed classificationarea/multi-target, type/bug Suggested next actionWait for a maintainer to review and accept #2951 before treating this Thank you for contributing this pull request. APM starts with an #2951 already describes this bug and has automated issue-triage This PR is labelled status/deferred until that happens. CODEOWNERS Generated by autopilot-pr-triage-worker. This comment is AI-generated and may contain errors. |
…o-three-level-deps
Preserve bounded metadata-free compatibility while supporting declared and locked materializations at arbitrary host and virtual-package depths. Route redirected compile admission and frozen replay through the existing installation-scope helpers, with real CLI lifecycle and containment regressions. Co-authored-by: Copilot App <[email protected]>
APM Review Panel:
|
| Persona | B | R | N | Takeaway |
|---|---|---|---|---|
| Python Architect | 0 | 1 | 0 | Canonical owners are retained; exercise failure propagation through the actual CLI. |
| Test Coverage | 0 | 2 | 0 | Add one rejected frozen transition and publish exact-head scenario/owner evidence. |
| Supply Chain Security | 0 | 1 | 0 | A dangling legacy lock must not activate metadata-free discovery. |
| Doc Writer | 0 | 1 | 0 | Put scoped frozen replay guidance in the install reference. |
| Performance | 0 | 1 | 0 | Validate each unique local-bundle root once, not once per staged file. |
| DevX UX | 0 | 2 | 0 | Recovery hints must preserve source-first selection and installation scope. |
Counts express finding severity, not shipping authority.
Recommended folds
- Add real CLI malformed-selected-lock and escaping-memory tests, asserting failure diagnostics and unchanged output.
- Add a rejected
install --root --frozentransition with a valid decoy source lock and no-write snapshots; publish the final scenario/test/tier and owner mapping. - Recognize dangling legacy lock metadata through the existing read-only resolver, preserve modern precedence, and explicitly reject unreadable selected metadata.
- Make cross-drive and frozen recovery hints actionable under the actual selection policy; make the install reference canonical for frozen replay.
- Deduplicate local-bundle slugs before containment I/O, with an automated bounded-work guard.
Recommendation
Fold the bounded work and obtain a targeted review of the resulting head. The legacy-lock probe demonstrates an unrecorded in-store import edge, not an outside-store escape. The performance probe measured isolated helper work, not end-to-end latency. No finding is being waived.
P5 portability and P6 predictable behavior support the ownership repair; P4 requires useful recovery instructions. Preserve the existing acceptance/deferred labels and requested reviewers danielmeppiel and sergio-sisternes-epam. This advisory is not merge approval; GitHub CI and human review remain separate.
Architecture: reviewed candidate data flow
flowchart TD
C["apm compile --target claude --root DIR"] --> V["[I/O] commands/compile/cli.py: _validate_project(source_root)"]
V --> A{"Source content or core/scope.py get_modules_dir(PROJECT).exists()?"}
A -->|No, live non-clean compile| X["commands/compile/cli.py: sys.exit(1)"]
A -->|Yes| RUN["commands/compile/cli.py: _run_compilation -> AgentsCompiler.compile"]
RUN -. compiler dispatch .-> F["compilation/claude_formatter.py: format_distributed -> _generate_placements"]
F --> P{"Empty placement_map or root placement?"}
P -->|No| CONTENT["_generate_claude_content: non-root placements without dependency imports"]
P -->|Yes| D["[I/O] _collect_dependencies: inspect source_dir/apm_modules"]
D --> SOURCE{"Source modules exists or is_symlink()?"}
SOURCE -->|Yes| SRC["installed_root = source_dir"]
SOURCE -->|No| DEPLOY["installed_root = base_dir"]
SRC --> BOUND["[I/O] ensure_path_within(modules_root, installed_root); modules_root.is_dir"]
DEPLOY --> BOUND
BOUND -->|Not a directory| EMPTY["return empty list; no store substitution"]
BOUND -->|Directory| META{"[I/O] Source apm.yml or selected resolve_lockfile_path_for_read path present?"}
META -->|No| LEGACY["[I/O] owner/package fallback only; ensure_path_within owner"]
META -->|Yes| ORDER["primitives/discovery.py: get_dependency_declaration_order(source_dir, installation_root)"]
ORDER --> MAN["[I/O] APMPackage.from_apm_yml(source apm.yml); non-marketplace dep.get_install_path(modules_root)"]
MAN --> LOCK["[I/O] deps/lockfile.py: resolve_lockfile_path_for_read(installed_root, read_only=True); LockFile.read"]
LOCK --> ROOTS["[I/O] lock.get_installed_paths(modules_root); lock-backed local staging roots; stable dedup"]
ROOTS --> VALID["validate_path_segments(relative)"]
VALID --> FILE["[I/O] ensure_path_within(package_root, modules_root); ensure_path_within(CLAUDE.md, package_root)"]
LEGACY --> FILE
FILE --> EXISTS{"[I/O] claude_path.is_file()?"}
EXISTS -->|No| OMIT["Omit this package; do not scan nested docs"]
EXISTS -->|Yes| REL["portable_link_relpath(claude_path, base_dir)"]
REL --> DRIVE{"Relative link available?"}
DRIVE -->|No| FAIL["format_distributed catches exception: success=False, errors populated, empty content_map"]
DRIVE -->|Yes| IMPORT["sorted unique output-relative @imports"]
BOUND -->|Containment exception| FAIL
ORDER -->|Metadata or materialization exception| FAIL
FILE -->|Containment exception| FAIL
IMPORT --> CONTENT
EMPTY --> CONTENT
CONTENT --> RESULT["ClaudeCompilationResult returned to compiler"]
FAIL --> RESULT
RUN --> AGG{"Returned aggregate result.errors?"}
AGG -->|Yes| X
AGG -->|No errors and no critical findings| OK["_run_compilation returns; normal CLI exit 0"]
RESULT -. "Aggregation internals outside reviewed files; negative CLI guard requested" .-> AGG
subgraph Frozen["install/service.py"]
I["apm install --root DIR --frozen: InstallService.enforce_frozen"] --> SCOPE{"request.scope is not None?"}
SCOPE -->|Yes| SELECT["core/scope.py: get_lockfile_dir(request.scope)"]
SCOPE -->|No| MP["[I/O] choose directory from request.apm_package.package_path"]
SELECT --> LP["[I/O] LockFile.read: selected apm.lock.yaml"]
MP --> LP
LP --> CHECK{"Lock present, readable, and satisfies manifest plus MCP view?"}
CHECK -->|No| ERR["raise FrozenInstallError before pipeline"]
CHECK -->|Yes| PASS["enforce_frozen returns"]
end
Generated by autopilot-pr-review-worker. This comment is AI-generated and may contain errors.
Fold first-panel containment, lifecycle rejection, per-root discovery work and recovery guidance findings. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Fresh main reproduced the untouched mock synthesizing an invalid alias. Declare the real contract's absent alias without changing assertions or production validation. Co-authored-by: Copilot App <[email protected]>
Keep exact diagnostic tokens, rejected status and no-write snapshots while tolerating Rich line wrapping. Co-authored-by: Copilot App <[email protected]>
Docs sync advisoryVerdict: internal tooling error * Pages affected: undetermined * LLM calls: 1/15 The mandatory classifier could not access repository/filesystem tools and returned no schema-valid classification. This docs-sync run stopped rather than reporting that documentation was verified. The PR already includes compile/install reference and bundled usage updates from the implementation review. Their targeted doc-writer delta review is tracked separately; it is not represented as a successful docs-sync classification. No labels, review requests or implementation scope were changed. Generated by docs-sync. This comment is AI-generated and may contain errors. |
APM Review Panel:
|
| Persona | Findings | Delta result |
|---|---|---|
| Python Architect | 0 | Executed negative CLI scenarios close the propagation gap; canonical read-only lock ownership is retained. |
| Test Coverage | 0 | Independently reran redirected lifecycle rejection and update: 1 passed in 65.16s; focused fixtures: 52 passed in 11.79s. Scenario and all three owner mappings are present. |
| Supply Chain Security | 0 | Dangling current/legacy locks fail closed; selected invalid metadata and escaping memory have real CLI no-write evidence. |
| Doc Writer | 0 | Install guidance is canonical, links agree, and arbitrary-depth/source-store claims match code. |
| Performance | 0 | Unique-root containment closes repeated work; 500/5000 entry operation-count guards need no timing threshold or cache. |
| DevX UX | 0 | Cross-drive and frozen recovery respect source precedence and installation scope. |
Evidence and limits
The exact-head implementation run passed 782 tests in 406.17s, with the complete local lint/architecture/quality chain. The independent lifecycle rerun checks exit 1 and unchanged source/deployment/HOME snapshots for rejected selected-store state, then restores fixture state and completes update/compile.
The bundle guard counts work over lockfile entries, not physical staging or elapsed-time improvement. Cross-drive diagnostics are simulated unit evidence, not native Windows proof. Local Git fixtures do not certify live-host authentication. The failed docs-sync classifier is disclosed separately; docs confidence here comes from the actual doc-writer review.
Recommendation
The CEO retires the earlier implementation-level needs_rework: no specialist recommends further code work in this reviewed delta. The genuine current stance is needs_discussion, because Spec conformance run 36692541726 failed before running conformance tests. Its Mode B detector reports substantive critical-path changes without matching spec citation. This must receive a truthful conformance-evidence disposition, not a false no-behavior-change waiver.
CI, CodeQL, Deploy Docs, NOTICE and Merge Gate succeeded on this head, but those successes do not cancel the spec failure. GitHub reports MERGEABLE / BLOCKED. Requested CODEOWNERS review and existing maintainer holds remain separate from this advisory. Contributor history, requested reviewers, and both acceptance/deferred labels are preserved. No merge approval is implied.
Generated by autopilot-pr-review-worker. This comment is AI-generated and may contain errors.
Exercise existing req-lk-006 selected-store rejection and req-lk-022 source-spelled materialization-relative links. Regenerate statements without new normative requirements or a waiver. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
APM Review Panel:
|
| Persona | B | R | N | Takeaway |
|---|---|---|---|---|
| Python Architect | 0 | 0 | 0 | Exact-head applicability, requirement boundaries and generated-file fidelity hold; no parallel authority introduced. |
| Test Coverage | 0 | 0 | 0 | Independently executed all six conformance cases: 6 passed in 1.95s. Current and historical evidence are correctly separated. |
Recommendation
The scoped technical work is ready for the maintainers' decision, with no in-scope technical follow-ups deferred. This advisory is not human approval or merge authorization. GitHub reports MERGEABLE / BLOCKED; requested CODEOWNERS danielmeppiel and sergio-sisternes-epam, and both status/accepted and status/deferred, remain unchanged. No merge, auto-merge, reviewer request or governance-label change was performed.
After the CEO return, the driver passed the completion schema and the deterministic terminal owner verifier: verified=true, terminal_evidence_required=true, three touched owners with executed exact-head functional coverage. This is not the earlier nonterminal shortcut.
Executed evidence, closed findings and limits
Exact b07dad6 evidence
- Local installed-CLI lifecycle, affected consumers, applicable static regressions and complete architecture runner inventory: 416 passed in 404.18s.
- Full conformance: 273 passed, 2 unchanged pre-existing skips; orphan check aligned 123 requirements; Mode B, canonical generation and clean regeneration passed.
- Complete current lint/architecture/test-quality chain passed. All mutants were restored; six new conformance cases failed under the source-decoy/case-folding mutants before passing unmutated.
- All 23 observed remote rollup entries completed with success, neutral or skipped conclusions; actual Linux and Windows execution succeeded, not merely skipped checks. The separately queried required
gatesucceeded. - CI, including Windows and lifecycle, Spec conformance, CodeQL, Docs build, NOTICE, and aggregate gate succeeded.
- Remote spec execution independently reports 273 passed, 2 skipped in 15.49s, with successful orphan, Mode B, generation and clean-diff steps.
Folded in this run
| Finding | Resolution |
|---|---|
| Missing command-level negative compile/frozen evidence | 60c2e30e78: installed-CLI selected-store and escaping-memory rejection with exit 1, diagnostics and unchanged source/deployment/HOME snapshots. |
| Dangling legacy metadata treated as absence | 60c2e30e78: canonical reader/resolver recognize present dangling links while retaining modern-lock precedence. |
| Recovery could target the wrong store | 60c2e30e78: source-aware cross-drive guidance and scope-preserving frozen recovery. |
| Frozen replay documentation lacked one canonical home | 60c2e30e78: install reference owns guidance; compile and bundled usage link to it. |
| Repeated bundle-root containment work | 60c2e30e78: unique-root validation with deterministic 500/5000-entry regression guards. |
| Scenario/owner attribution and stale PR narrative | Final description and version-2 evidence name b07 and distinguish executed tiers and earlier-head results. |
| Missing critical-path conformance citation | e10a3ac2ad: approved req-lk-006/022 real-file evidence and canonical statement updates; no normative expansion. |
Copilot signals reviewed
All four original signals were LEGIT and addressed: real declared ADO/lock tests, redirected transitive roots, exclusion of nested-doc fallback, and compile documentation (90d2720586, with later lifecycle strengthening). The original inline thread was replied to and resolved. Three suppressed signals came from review 5182412895; no new classification round was started.
Limits retained
The 782-test catalog is prior e10a evidence, not the current 416-test run. Local Git origins exercise host-shaped installation behavior, not live ADO authentication. Cross-drive diagnostics are simulated locally; the independent Windows CI is reported separately. Bundle tests count containment operations rather than claim elapsed-time speedups. The two conformance skips are unchanged publisher/path-policy harness limitations.
The prior docs-sync classifier tool-access error remains publicly disclosed; documentation confidence comes from the separate genuine doc-writer review, not a fabricated classifier success. This evidence-only delta changes no user-facing documentation.
Counters remain outer 3/4, Copilot 2/2, CI recovery 1/3. No loop reset or replacement driver.
Generated by autopilot-pr-review-worker. This comment is AI-generated and may contain errors.
dddd86c
into
microsoft:main
Preserve landed Claude discovery and selected-store authority from #2952, OpenCode enabled semantics from #3102, and package-remote marketplace tags from #3044. Union existing dependency-identity selectors with the standalone reader/frozen routes; regenerate combined conformance. No unmerged prerequisite branch is imported. Co-authored-by: Copilot App <[email protected]>
fix(compile): discover Claude dependency memory at arbitrary installed depth
TL;DR
apm compile --target claudenow imports dependency-rootCLAUDE.mdfiles through canonical manifest and lockfile materialization paths, rather than assuming a two- or three-directory layout. This fixes Azure DevOps and deeper generic-host/virtual-package layouts, including transitive dependencies installed with--root. Present invalid metadata fails explicitly instead of enabling filesystem fallback.Fixes #2951.
Continues VyrnSynx (@vyrnsynx)'s original contribution without rewriting contributor history.
Important
This revision replaces the original three-level fallback approach. Arbitrary depth requires manifest/lockfile evidence; only the original two-level compatibility fallback remains when metadata is absent.
Advisory review does not replace CODEOWNERS approval, required CI, or existing maintainer holds. No governance labels were changed.
Problem (WHY)
docs/CLAUDE.mdfor a package root. Root selection belongs to the existing materialization/lockfile owners, not a second host-depth policy: "Design coherent units".Approach (WHAT)
Implementation (HOW)
src/apm_cli/primitives/discovery.pyDependencyReference.get_install_path()andLockFile.get_installed_paths(). Check each unique local-bundle root once.src/apm_cli/compilation/claude_formatter.pysrc/apm_cli/commands/compile/cli.pycore.scope.get_modules_dir(PROJECT). No new command or flag.src/apm_cli/install/service.pycore.scope.get_lockfile_dir(scope); unscoped API calls retain manifest-relative behavior. Missing-lock diagnostics identify the selected path.src/apm_cli/install/errors.py--rootor--global. No suggested update of the wrong store.src/apm_cli/deps/lockfile.py.apm/architecture/owners/contracts-tooling.jsonscripts/architecture_linter/checks/contracts_test_taxonomy.pyscripts/architecture_linter/checks/install_frozen_and_audit.pytests/unit/compilation/test_claude_dependency_roots.pytests/unit/compilation/test_claude_formatter.pytests/unit/primitives/test_discovery_parser.pytests/unit/install/test_frozen_roots.pytests/integration/test_claude_dependency_import_lifecycle.pytests/integration/test_architecture_dependency_reference.pytests/integration/test_architecture_pack_lockfile_read.pytests/integration/test_architecture_owner_rule_mutations.pytests/test_lockfile.pyalias=Nonecompatibility correction after reproducing the untouched test failure on current main; original assertion and production alias validation retained.tests/spec_conformance/test_lockfile_reqs.pyCONFORMANCE.json,CONFORMANCE.mddocs/src/content/docs/reference/cli/compile.mddocs/src/content/docs/reference/cli/install.mdpackages/apm-guide/.apm/skills/apm-usage/commands.mdCHANGELOG.mdData flow
Dashed boxes identify the changed selection/discovery boundary; all path construction still routes through existing owners.
flowchart LR subgraph Sources M["Source manifest"] L["Selected current or legacy lock"] end subgraph Discovery S["Source store first; otherwise output store"] R["Canonical materialization roots at any depth"] V["Metadata validity and containment"] end subgraph Output C["Sorted output-relative CLAUDE imports"] E["Explicit failure; existing files preserved"] end M --> R S --> L L --> R R --> V V -->|"valid package-root memory"| C V -->|"invalid or escaping input"| E classDef new stroke-dasharray: 5 5; class S,R,V new;Trade-offs
CLAUDE.md; deeper roots must be declared or locked.Benefits
Validation
Exact pushed candidate:
b07dad61ab9035836e27a33ebfd0da3eddaaa53a, incorporating maind14fa7df98bd9d82cdd2703a7aa871a721374678.The run used an installed Python 3.12 CLI, isolated HOME/APM/cache/config, and process-local URL rewriting to fixture-owned Git origins. Formatter, discovery, lockfile and install results were not mocked in the lifecycle scenarios.
Note
These are observed local results, not a claim that GitHub CI or human review is complete. Required remote checks are evaluated separately on the pushed head.
Executed functional and architecture consumer suite
With
APM_E2E_TESTS=1andAPM_BINARY_PATH="$PWD/.venv/bin/apm", the isolated wrapper executed:The current canonical lint chain also passed: Ruff check/format, Pylint R0801, YAML I/O, 2100-line limit, portable relative paths, auth boundary, architecture boundary, assertion quality and exact-test duplication.
Selected verbatim output from those commands:
Mutation experiments removed canonical-root delegation, selected-lock routing, containment and registered guard conditions; the corresponding tests failed. Removing dangling-link handling and restoring repeated per-file containment produced
6 failed, 4 passed in 15.80s. All mutants were restored. The full 782-test consumer/owner-mutation catalog passed at prior candidatee10a3ac2; the post-main command above reran the affected owner mutation plus the complete architecture runner inventory, not the whole mutation catalog.One earlier lifecycle attempt timed out during cached frozen replay. Its cause was not established. A bounded post-sync retry passed that step, exposed a line-wrapped diagnostic assertion, and the assertion was corrected without increasing the timeout or weakening exit/no-write checks.
Existing-requirement conformance evidence and CI recovery
The first remote spec run reported missing critical-path requirement citations. The bounded correction adds six real-file cases against existing obligations:
req-lk-006: project/user selected-store absent or missing-pin frozen rejection before writes, despite a valid source lock decoy.req-lk-022: relative Claude links retain repository source spelling and case-sensitive virtual paths at four/six materialization segments.These citations do not establish an arbitrary-depth discovery or import-selection norm. No specification body, version, schema, anchors, requirement manifest, seed, detector or waiver was changed. A source-decoy/lowercased-materialization mutation made all six new cases fail; restored cases pass.
Exact-head orphan checking, Mode B, full conformance, canonical generation and clean generated-file diff all passed:
The two unchanged pre-existing skips cover publisher timestamp and path-policy schema harness limitations. None of the six new cases is skipped.
Scenario Evidence
tests/integration/test_claude_dependency_import_lifecycle.py::test_deep_dependency_memory_install_compile_replay_update(regression-trap for #2951)--root, compiling, replaying frozen state and updating preserve the intended installation.[True]tests/unit/compilation/test_claude_dependency_roots.py::test_source_modules_take_precedence_and_imports_resolve_from_outputtests/unit/compilation/test_claude_dependency_roots.py::test_nested_and_unrecorded_memory_not_imported;test_declared_root_without_memory_does_not_import_nested_docstests/unit/install/test_frozen_roots.py::test_frozen_scoped_lockfile_selection_is_read_onlytests/unit/compilation/test_claude_dependency_roots.py::test_lock_metadata_links_preserve_precedence_and_fail_closedtests/unit/compilation/test_claude_dependency_roots.py::test_local_bundle_containment_work_is_per_unique_roottests/integration/test_claude_dependency_import_lifecycle.py::test_deep_dependency_memory_install_compile_replay_updatetests/spec_conformance/test_lockfile_reqs.py::test_frozen_selected_store_rejects_source_decoy_without_writes(req-lk-006, four cases)tests/spec_conformance/test_lockfile_reqs.py::test_claude_materialization_links_preserve_locked_source_and_virtual_case(req-lk-022, two cases)The deterministic owner report identifies materialization identity, frozen mutation eligibility and read-only lock selection. Each is linked to executed exact-head functional evidence; the existing static guards and their mutation assertions are retained.
How to test
uv sync --extra dev; use the resulting.venv/bin/apmas the installed CLI.uv run --extra dev pytest tests/unit/compilation/test_claude_dependency_roots.py tests/unit/install/test_frozen_roots.py -q. Expect real-file invalid-metadata, selected-store and no-write cases to pass.bash scripts/lint-architecture-boundaries.shand the repository's canonical lint chain. Expect no owner-boundary or style violations.tests/spec_conformancesuite beforepython -m tests.spec_conformance.gen_statement, thengit diff --exit-code CONFORMANCE.json CONFORMANCE.md. Expect unchanged generated statements and only the two existing skips.Co-authored-by: Copilot [email protected]