Repository navigation
train: v0.39.0 night - #5406
train: v0.39.0 night#5406
Conversation
`apm init --discover` now gives root CLAUDE.md, AGENTS.md and GEMINI.md findings a reason that says the file stays in place, is not adopted as an APM package and remains valid for its tool. `apm compile` with no APM content adds that existing root context files are not APM content and are never modified, and points to `apm init --discover`. Report keys, statuses, inventory coverage, apply behavior and the compile exit code are unchanged. The migration, init, compile and apm-usage docs explain the native directory scope, the nonrecursive inventory and the source-of-truth tradeoff of authoring APM copies by hand. Fixes #3228
Discovery walks known target directories such as .claude/ (including their subdirectories), so the root context reason now says only copies outside those directories are not inventoried. The unit test pins that .claude/CLAUDE.md is listed while sub/CLAUDE.md is not, and the init, migration and apm-usage docs and the changelog describe the same scope.
…covery-guidance # Conflicts: # CHANGELOG.md
…covery-guidance # Conflicts: # CHANGELOG.md
Explain exclusion-root selection and document cross-platform troubleshooting with apm doctor. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve the restructured security model, retain Git discovery guidance, and link it from the new troubleshooting landing page. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…apm.yml (#4545) When run from a subdirectory without an apm.yml, project-scope apm install walks parent directories to discover the nearest ancestor apm.yml. Anchors sources, deploy paths, apm_modules, lockfile, and target provenance to that project root, resolving relative CLI paths from the invoking directory and restoring working directory on exit.
…atalog (#5177) When a catalog is resolved through any alias, resolution consults the legacy pins of every alias that names that catalog. If those pins agree, the pin is honoured; if they conflict, resolution refuses with RefPinConflictError naming the conflict and remedy (apm update). A pinned version is never replaced by an unpinned resolution. Signed-off-by: Yshuro <yshuro1080@gmail.com>
Form B answers Path.resolve() with one _getfinalpathname (CPython makes two). Form A walks down from directories held open for the invocation: the project root and package roots registered after activation places them. Volatile paths (staging, .inc., .tmp, .git) always take Path.resolve. APM releases holds before it renames or deletes, before user scripts, and at scope exit. Refs #4939 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Existing installs and direct downloads skip activation, so they were never registered and their paths took form B only. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Containment checks run before the write, so most deploy paths are missing leaves; they fell through to ntpath's non-strict walk. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…anged (#5243) - Include pending legacy ref pin repairs in the update plan commit decision so staged conflict resolutions are committed even when dependency refs remain unchanged. - Fix AQ003 unobserved outcome ratchet violations in test_marketplace_registry.py by asserting on durable persisted pin file state. - Add regression tests for accepting pin repairs without dependency changes. - Rename changelog fragment from 5177.fixed.md to 5243.fixed.md. Signed-off-by: Yshuro <yshuro1080@gmail.com>
Share access ignores opens without read, write or delete access, so a hold with attribute access alone never refused a rename or delete. Adds the windows-latest cells for W3d R12. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…3d R6) Only activation registers held roots; every raw directory rename or delete in the apm_modules-mutating modules releases holds first or is allowlisted with a reason. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…gineer-windows-paths
…cone blobs, in process A sparse (subdirectory) dependency on the git path paid a partial bare clone of every branch's full history (microsoft/apm: 22.5 MB, 114k objects, ~2 s of git CPU) plus clone/sparse-checkout/checkout/lazy-fetch children, for a cone of a few KB. After #4970 admission and B1's transport gate, it is now two protocol-v2 requests: the pinned commit with all its trees (deepen 1, filter blob:none), then exactly the blobs `git sparse-checkout --cone` writes. Every object id is computed in process; a response that is not exactly the wanted set, a link, gitlink or .gitattributes alias in the cone, or an in-cone attribute that could change bytes (evaluated per written file by checkout_verify's engine, case-folded as core.ignorecase) sends the dependency to git. APM_NO_INPROCESS_SPARSE=1 forces git. W3d rulings: lever-s (S1-S12), lever-s6prime (T1-T7), lever-s-t1prime (U1-U7). Real github.com, cold, 6 pairs: Linux 4.74 -> 2.30 s CPU (0.477), spawns 77 -> 11. apm-spec-waiver: transport-internal fetch shape; no OpenAPM requirement changes (same lockfile, bytes and receipts as git). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… oracles In-process cells move to tests/unit (runs on windows-latest); the three that need a second process stay in integration. The receipts root-count oracle also counts the Windows fast form's final-path call. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… under it resolve with one lstat W3d containment-once (K1-K9). Inside one command, a directory whose resolved form is its own exact text has no link anywhere on its path. resolve_path keeps that proof in the command's invocation memo (cleared when a lifecycle script runs, K1), and a path directly under a proven directory resolves with one lstat of its leaf: a link or reparse leaf, a '..', or (Windows) a name not in the directory's exact-case listing takes the full resolution. first_symlink_component checks only the leaf below a proven directory. portable_relpaths resolves through resolve_path again, as portable_relpath does. apm-spec-waiver: containment results are unchanged (same resolved paths); no OpenAPM requirement changes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…d record hit/miss install-noop stays a user's first unchanged re-install (install #2: the engine proves the no-op and writes the verified-state record). The new install-noop-replay journey primes one untimed no-op, so its timed run is a repeat no-op (#3 onward) that replays the record. Both noop journeys set APM_INSTALL_FAST_PATH=verdict (not part of the verdict key), and each sample records the record's outcome ('hit' or 'miss (<reason>)') in a replay field. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…gated caps GET W3d R1: every directory on the way to or inside a cone passes the same name refusals as written files (nested .git and its aliases send the dep to git). W3d R2: a directory that differs from the cone path only in case sends the dep to git, as core.ignorecase cone matching would write it. The capability GET goes through the first-answer gate and breaker, and its per-repository memo is filled under a lock (one request per cold repository). Attribute token names and alias folding no longer strip character sets. The full and sparse in-process landings share one materialization-pin read. apm-spec-waiver: transport-internal fetch shape; no OpenAPM requirement changes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Other platforms run the unchanged function with no dispatch check. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…gineer-windows-paths
…nchanged install skips the proof Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… subjects call install_local_bundle now computes the bundle policy subjects once and passes them to the admission and record stage. The mutation removes that single bundle_policy_subjects call, which the bundle admission guard still requires. Test-only. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The coupled containment-proof caching, Windows directory holds, attested planning bypass, and recovery changes require human review of exact-head cross-platform integration and security evidence not independently verified here.
No open issues 🎉
3 resolved since last review
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
The combined containment caching, Windows directory holds, attested planning bypasses, and recovery changes require human assessment of exact-head cross-platform and security runtime evidence that static review cannot validate.
No open issues 🎉
Review effort: Balanced
9bea766 to
8f56b43
Compare
…e budget Comment wording only; no code change. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
A critical containment bypass remains: replacing a proven ancestor with an external symlink can evade validation and return a stale lexical path, requiring live ancestor checks and a swap regression test without explicit invalidation.
1 open issue
Review effort: Balanced
…in head Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
In CI, a stray subdirectory lockfile causes bare apm install to select frozen mode before project discovery, incorrectly rejecting an ancestor project with dependencies but no lockfile.
1 open issue
1 resolved since last review
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>


Description
Car and issue numbers below are in code spans so the PR eligibility advisory stays under its 25-reference limit (each car carries its own Fixes links).
FAT TRAIN "v0.39.0 night" (CEO GODSPEED 00:27 CET, VP 00:33). Opened on main bb4744f (after
#5376,#5388,#5366); main 1e4a208 (#5390,#5394) merged in at head 3deeec6. Signed rows join as they qualify: W3d ACCEPT + Copilot clean at the row's head (QL H8 where trust-boundary; rule 27 otherwise). Coupled groups ride together; budget rows (tests/perf/count_budgets.json) go LAST with one re-measure (S85). A red member is ejected, never fixed in the train.#5400(docs:#5385changelog fragment bullet)#5397(perf: MCP lockfile read once)#5391(auth: GHE Cloud/GHES TLS inherit; orphan, owner PERF)#4807(docs: Git discovery with global installs; community)#5401(install: recovery restores a skill whose atomic write was killed; Fixes#5395)#5409(P3; fixes#5067)#5381(test: bench repeat no-op install; orphan, owner PERF)#5408(perf: lockfile generator check on libyaml events)#5374(perf: exact Windows path resolution)#5382(perf: prove each directory link-free once per command; stacked on#5374)#5383(perf: a converged install attests its state)#5377(perf: monorepo subdirectory deps as pin trees)#4576(feat: discover project root from subdirectory; community)#5243(fix: marketplace legacy pins across aliases; community)#5410#5403#5413(P2;#4968)#5407(P2;#5236)#5412(C9#5303SIGTERM compile deflake)#3737(fix(init): native root context guidance; community)#5416(frozen skills-only replay)#5419(approve enforces dependency policy; stacked on#5407)#5421(count-budget re-cut on 5c782a2; supersedes#5389)INTERIM: QL v2 train H8 SIGNED at 5c782a2 (landable fallback). FROZEN at 5c782a2 + last car.
OPEN: 2 security threads on realpath.py (
#5382) ruled MUST-FIX by W3d; fold in flight (PERF-BETS).#5382ejects at 04:30 if not signed.Members are added at each new head; this table is updated each time. Last row enters 05:30 CET; frozen head green, clean and H8 by 06:30.
Type of change
Testing
At each new head: full CI + Integration, a Copilot request, and a QL v2 range H8. CI only (no local runs).
Changelog
No new fragment. Each member brings its own changelog.d fragment.