Skip to content

release/0.37-train: combined CI for the 0.37 stack (DO NOT MERGE) - #4002

Closed
Daniel Meppiel (danielmeppiel) wants to merge 311 commits into
mainfrom
release/0.37-train
Closed

Daniel Meppiel (danielmeppiel) wants to merge 311 commits into
mainfrom
release/0.37-train

Conversation

@danielmeppiel

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

Copy link
Copy Markdown
Collaborator

Draft train PR owned by the landing desk (Lane L). DO NOT MERGE.

FINAL KNOWN-GREEN 0.37 stack for the landing runbook.

Current train: 8a50a0a = #3998 head = main 67936cd + #399620080fc + #3989ac5eee6 + #39928a1de96 + #3290ce7f86b + #40083560d7f + #406925117d1 + #4026698d7f1 + #402410740d2 + #4004c75cdb7 + #3997110199a + #40510476692 + #4061c268dd4 + #4072c65b96b + the 0.37.0 cut.

CI on the tip probe #4014 at this exact SHA: https://github.com/microsoft/apm/actions/runs/44685020196 (44 pass, 0 fail; CodeQL and PR eligibility neutral). Merge Gate: https://github.com/microsoft/apm/actions/runs/44685019977. The no-union merge simulation is clean for every layer and the cut.

The merge_group-only integration suite (ci-integration.yml) is not covered here; see the cloud verifier result (INTEGRATION_EVIDENCE in land_stack.sh).

…nt (#3959)

Harvested from #3976; the positional install reads the lock lazily.

Co-authored-by: Copilot App <[email protected]>
…a same-store deny (#3957)

Harvested from #3979.

Co-authored-by: Copilot App <[email protected]>
A partial name could grant or deny execution for another package.

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

exec_trust_context_for_project takes the manifest file instead of deriving
apm.yml from a caller-chosen root; -g resolves APM_HOME/apm.yml through
core.scope.get_manifest_path. A closed-world guard registers every caller.
Supersedes #3969 and keeps its lifecycle test.

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

Same fix as #3986, which lands on main independently: user-scope executable
grants are read from ~/.apm/apm.yml for install and global uninstall, and the
normalization receipt is exempt from unpinned_apm_copy.

Co-authored-by: Copilot App <[email protected]>
Every caller of the shared install entry now runs inside a registered
catalog-freshness envelope; the guard is closed-world.

Co-authored-by: Copilot App <[email protected]>
APM_NO_SCRIPTS, org executables.deny_all and project script trust now apply;
LifecycleScriptRunner is built only by build_runner_from_context, guarded
closed-world by the new lifecycle-script-firing-gate owner.

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

The only opt-out is a dependency's own authored .mcp.json; a closed-world
guard refuses any other.

Co-authored-by: Copilot App <[email protected]>
… the gate was never on (#3958)

Harvested from #3981 (b4cface, cb015e6); the trust read uses the scope manifest.

Co-authored-by: Copilot App <[email protected]>
Reads the manifest restriction through the same owner install uses.

Co-authored-by: Copilot App <[email protected]>
- compile's no-output hint names targets:, not the deprecated target:
- pack's mismatch hint no longer suggests the deprecated pack --target
- skip messages name executables.allow instead of allowExecutables
- origin and freshness errors say marketplace, not catalog
- generated apm.yml headers and unknown-target errors stop listing vscode
- config docs show default_client: copilot

Co-authored-by: Copilot App <[email protected]>
…PM's canonical receipt

Review follow-ups on #3986:
- resolve_project_exec_allow_map gains manifest_dir: grants come from the
  user manifest while org policy is still discovered from the deploy root,
  so an external APM_HOME cannot drop HOME's Git-derived policy in survivor
  rebuilds (uninstall engine, HookIntegrator.reconcile_after_removal).
- The .apm/ receipt exemption now requires the exact canonical receipt that
  normalization writes for a legacy plugin (plugin_parser owns the check) and
  never applies to a live-loaded Agent Plugin root; publisher-controlled or
  extended receipt bytes still park the plugin.

Co-authored-by: Copilot App <[email protected]>
apm-spec-waiver: consistency fixes route callers through existing owners; no new or changed normative requirement

Co-authored-by: Copilot App <[email protected]>
apm-spec-waiver: consistency fixes route callers through existing owners; no new or changed normative requirement

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

Harvested from #3980. Raw apm.yml readers must pass the manifest path to
manifest_target_restriction; only APMPackage-loaded configs may omit it
(closed-world guard).

Co-authored-by: Copilot App <[email protected]>
…idity owner (#3964)

A warm copy that contradicts apm.lock.yaml routes audit to the lock-pinned
scratch replay, as a cold checkout does; replay's own marker check now asks
drift.locked_copy_holds_commit. The copy-validity guard is closed-world.

apm-spec-waiver: consistency fixes route callers through existing owners; no new or changed normative requirement

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

Every requested package resolves and downloads before any is integrated, so
a failed multi-package install leaves no untracked deployed files. Guarded
by the install-outcome rule.

apm-spec-waiver: consistency fixes route callers through existing owners; no new or changed normative requirement

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

The committed plugin pin covers path and bytes; the exec bit stays only in
the per-machine integrity hash, because Windows derives it from file
extensions and an approval made on macOS would park on Windows. The
trust-fingerprint guard requires the mode-less pin and owns it closed-world.

apm-spec-waiver: approval pin binding is implementation-defined; root digest integrity unchanged

Co-authored-by: Copilot App <[email protected]>
…r the marketplace reinstall oracle

A rebuilt but unchanged LockFile (apm_version None) dropped the recorded
stamp on write, so its bytes changed and the generator gate lost its
signal. The no-op path now carries the recorded stamp, like generated_at.

The marketplace reinstall e2e patched only the resolver's registry
lookup; #3959's origin check reads the same registration through
catalog_origin, so it is patched too (the check still runs).

apm-spec-waiver: lockfile no-op write keeps existing stamp; test oracle repair only

Co-authored-by: Copilot App <[email protected]>
- default client is copilot; vscode is its deprecated alias (#3875)
- non-default port is part of the lock identity key (#3932); the roundtrip
  still writes and reads port: 7990
- a partial `apm marketplace update` fails closed with exit 1 and names
  the failed catalog (#3910)
- Claude's skill-command rewrite is an instance method that needs the
  project's .claude/skills copy (#3875)

Co-authored-by: Copilot App <[email protected]>
… asserts the owner route

Fragments in ci_checks.py, audit.py, local_bundle_handler.py and
local_bundle.py drifted; each mutation now targets the current
equivalent line and the guard still trips.

install-deployment-audit-policy-discovery only banned discover_policy(,
so deleting chain discovery from _audit_ci_gate passed silently. The
rule now also requires discover_policy_with_chain( inside _audit_ci_gate.

Co-authored-by: Copilot App <[email protected]>
…r set none

The MCP phase stamps a semantically unchanged lock when it translates
pre-0.37 claims; the earlier no-op fix overwrote that explicit stamp with
the recorded one. Only a lock carrying no stamp (freshly built) inherits
the recorded generator.

apm-spec-waiver: lockfile stamp precedence inside the existing writer owner

Co-authored-by: Copilot App <[email protected]>
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. Post-merge: tag v0.37.0.

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

Copy link
Copy Markdown
Collaborator Author

Closing: superseded by the v0.37.0 release train #4424 (released). No 0.37.x patches are planned, so this combined-CI branch is no longer needed.

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.

1 participant