Skip to content

train: v0.39.0 night - #5406

Merged
Daniel Meppiel (danielmeppiel) merged 216 commits into
mainfrom
cimq/train-night
Nov 25, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 216 commits into
mainfrom
cimq/train-night

Conversation

@danielmeppiel

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

Copy link
Copy Markdown
Collaborator

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.

Order PR Head Gate
1 #5400 (docs: #5385 changelog fragment bullet) 75cbfc2 Docs-only, no H8 (QL v2 ruling 23:07)
2 #5397 (perf: MCP lockfile read once) e941cff QL v2 NO-H8 (trust=false), Copilot at head, 0 threads
3 #5391 (auth: GHE Cloud/GHES TLS inherit; orphan, owner PERF) 366f006 W3d ACCEPT w3d:5391:366f0066, Copilot at head, 0 threads; standalone H8 voided, covered by the train range H8
4 #4807 (docs: Git discovery with global installs; community) ad5c638 QL v2 NO-H8 (docs-only), W3d ACCEPT carries, Copilot at head, 0 threads
5 #5401 (install: recovery restores a skill whose atomic write was killed; Fixes #5395) 61109d3 QL v2 H8 SIGNED, W3d ACCEPT, Integration 45512712613, Copilot at head, 0 threads
6 #5409 (P3; fixes #5067) bb1efde QL v2 H8 SIGNED (train entry), Copilot at head, 0 threads
7 #5381 (test: bench repeat no-op install; orphan, owner PERF) f86a568, then 1ec46b8 (fold) QL v2 NO-H8 (test-only), Copilot at head, 0 threads
8 #5408 (perf: lockfile generator check on libyaml events) 78300c5 QL v2 H8 SIGNED (train entry), Copilot at head, 0 threads
9 #5374 (perf: exact Windows path resolution) 65654f1 QL v2 H8 SIGNED (train entry; paths.py:135 keeps _resolve_instance), Copilot at head, 0 threads
10 #5382 (perf: prove each directory link-free once per command; stacked on #5374) f755bf5, then 9be8e25 (W3d must-fix: generation-guarded proof publish) QL v2 H8 SIGNED (Integration 45518893684), Copilot at head, 0 threads
11 #5383 (perf: a converged install attests its state) ddd81de QL v2 H8 SIGNED (Integration 45518775417), Copilot at head, 0 threads
12 #5377 (perf: monorepo subdirectory deps as pin trees) a81928f QL v2 H8 SIGNED (Integration 45516428136), Copilot at head, 0 threads
13 #4576 (feat: discover project root from subdirectory; community) ceddd4d QL v2 H8 SIGNED (train entry), Copilot at head, 0 threads
14 #5243 (fix: marketplace legacy pins across aliases; community) ea5bdfe QL v2 NO-H8, W3d ACCEPT, Copilot at head, 0 threads
15 #5410 27db4c1 QL v2 H8 SIGNED (train entry), Copilot at head, 0 threads
16 #5403 f068b67 QL v2 H8 SIGNED (train entry), Copilot at head, 0 threads
17 #5413 (P2; #4968) 4941e20, then 2f16500 (comment-only apm_resolver.py trim, 2098/2100) QL v2 H8 SIGNED (Integration 45522025876), Copilot at head, 0 threads
18 #5407 (P2; #5236) c19ce58 QL v2 H8 SIGNED (train entry), Copilot at head, 0 threads
19 #5412 (C9 #5303 SIGTERM compile deflake) 64ab7b9 QL v2 NO-H8, Copilot at head, 0 threads
20 #3737 (fix(init): native root context guidance; community) 8b60972 QL v2 NO-H8, W3d ACCEPT, Copilot at head, 0 threads
21 #5416 (frozen skills-only replay) 12b041e QL v2 H8 SIGNED (full, Integration 45527720056), Copilot at head, 0 threads
22 #5419 (approve enforces dependency policy; stacked on #5407) c1e8181 QL v2 H8 SIGNED (train entry; comment-only LOC trim, local_bundle_handler.py 995/1000), Copilot at head, 0 threads
23 (LAST) #5421 (count-budget re-cut on 5c782a2; supersedes #5389) a410d8a QL v2 NO-H8 (count_budgets.json only), S85 last car

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). #5382 ejects 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

  • Landing train (no new code)

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.

`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.
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>
Gated to Windows: on macOS the swap measured slower (#5354 bisect); Linux
is covered by #5372. Adds a Windows call-count cell and states in the R6
rule doc that no APM subprocess mutates registered packages (W3d N3).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…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>
…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>

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

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

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

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

…e budget

Comment wording only; no code change.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

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 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

Comment thread src/apm_cli/utils/path_security.py Resolved
…in head

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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

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

Comment thread src/apm_cli/commands/install.py Resolved
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.

6 participants