Skip to content

Owner moves: console construction, remediation advice and module ownership - #4143

Merged
Daniel Meppiel (danielmeppiel) merged 114 commits into
mainfrom
danielmeppiel-bookish-train
Nov 20, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 114 commits into
mainfrom
danielmeppiel-bookish-train

Conversation

@danielmeppiel

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

Copy link
Copy Markdown
Collaborator

Description

TL;DR — The H3 integration PR (output, remediation and ownership). Install and init output now prints each event once, through one owner. Rich tables and consoles come only from utils/console.py, so they stay ASCII. MCP client adapters and the safe installer emit through CommandLogger. Every experimental flag must have a reader. Closed-world guards with isolating mutation cases lock all of this in.

Problem (WHY)

On main 1b96706, the installed CLI showed these defects (red snapshots below):

  • DX1: apm install --frozen resolved MCP targets twice, so it printed Targeting declared target from apm.yml: copilot twice.
  • DX2: a skills/ bundle printed both Skill integrated -> X and 2 skill(s) integrated -> X for one package.
  • DX3: the Codex, Gemini and Kiro adapters printed their own [*] Configured MCP server 'fetch' for ... line next to the install tree. Adapters also used raw print(), click.echo and _rich_* calls, and no guard covered adapters/.
  • DX7 / DX9: default apm init printed an agentrc tip, and install --mcp printed apm.yml: /tmp/.../apm.yml (an absolute path).
  • DX4 / H6: 32 ad hoc Table() calls had no owner. An experimental flag could be registered with no reader. The fixes from fix(0.37): product fixes found while rebuilding the docs [PR D of #3994] #4004 (DX8 inactive-resolver notice, H8 audit help) had no static guard.

The repo rule this enforces is single canonical owner: "one authority per durable decision, guarded by a regression test + a static boundary check".

Approach (WHAT)

Decision Owner (registry entry) Guard
Rich Console/Table construction utils/console.py — new_console, new new_table (new console-construction) registry_delegation.console_construction (moved Console sub-check + Table + rich.box)
Library output (adapters, safe installer) core/command_logger.py — library_output() binds, library_logger() reads, NullCommandLogger default (user-facing-output-diagnostics, extended) new sub-check in registry_delegation.output_diagnostics over adapters/** + core/safe_installer.py
Experimental flags core/experimental.py (new experimental-flag-registry) registry_delegation.experimental_flags: H6 reader forms, DX8 verbose gate, H8 closed [experimental] list
MCP targets once per run resolve_mcp_targets() → ResolvedMcpTargets, reused by run_mcp_install installed-CLI test
Skill count per package skill_support.skills_integrated() installed-CLI test

The steward approved all three registry entries, with conditions. Those conditions are folded in here (see Trade-offs).

Implementation (HOW)

Area Change
utils/console.py new_table() defaults to box.ASCII. It accepts only box=None or an ASCII box and raises on any other box. Output is unchanged, because our consoles already degraded every box to box.ASCII.
14 command modules, output/formatters.py Table( → new_table(; box=SIMPLE* dropped (it already rendered as ASCII).
core/command_logger.py, core/null_logger.py ContextVar-bound library logger. MCPIntegrator.install binds the command's logger. Unbound callers get NullCommandLogger, which prints through the console helpers, never print(). NullCommandLogger.blank_line added.
adapters/client/*, adapters/package_manager/default_manager.py, core/safe_installer.py Output goes through library_logger() or the passed logger. Adapter success echoes are removed, because the install tree reports success once. The safe installer drops its embedded [+]/[!]/[x] prefixes. Message wording is unchanged (H-I owns remediation text).
install/service_integration.py, install/mcp/integration.py, integration/mcp_integrator*.py The frozen pre-check's ResolvedMcpTargets is threaded into run_mcp_install, which skips re-resolution.
install/services.py, integration/skill_support.py One tree line per package: Skill integrated or N skill(s) integrated.
commands/init.py The agentrc step appears only when agentrc is installed. There is no tip on the default path.
install/mcp/command.py manifest_label(): cwd-relative, else ~/-relative. Used by the tree line (manifest: apm.yml), the dry-run line and the Created line.
commands/experimental.py Unknown or retired flags in config are ignored, with one verbose note that names them.
scripts/architecture_linter/checks/registry_output_guards.py New module for the two new rules and the adapter sub-check. registry_owner_guards.py shrinks, because it was near the 2100-line cap.

Diagrams

Library output: the command binds its logger once, and every adapter line renders through it.

sequenceDiagram
    participant C as apm install (InstallLogger)
    participant I as MCPIntegrator.install
    participant R as run_mcp_install
    participant A as Client adapter
    participant L as library_logger()
    C->>I: install(..., logger)
    I->>I: with library_output(logger)
    I->>R: run_mcp_install(resolved_targets?)
    R->>A: configure_mcp_server()
    A->>L: warning / error
    L-->>C: rendered by the bound logger
    Note over L: unbound callers get NullCommandLogger, never print()
Loading

Trade-offs

  • Contextvar vs threading a logger into about 30 ClientFactory.create_client sites. I chose a scoped binding (library_output) so the adapter constructors stay unchanged. The guard keeps raw output out of adapters/**.
  • The frozen path announces targets before the +- MCP Servers header. The non-frozen order is unchanged. This keeps exactly one resolution per run.
  • Steward conditions: themed_console already used new_console, and test(smoke): assert the ASCII deps table in the binary smoke test #4076 had already flipped the smoke anti-oracle, so neither needed a change. Default is NullCommandLogger. No JSON-mode command reaches adapter writes, so the nearest check is audit --ci --format json after a Codex adapter install. Its stdout stays valid JSON, because JSON mode routes the console to stderr. I confirmed the H8 closed list: --external calls require_external_scanners_enabled, and --external-sarif, --external-llm and --external-args exit 2 without --external.
  • Ledger: the ledger is keyed one row per issue (sorted, unique), so Owner moves: one owner each for console construction and command output #4089 gets one row. It uses the existing properties outcome.status_matches_state and portability.byte_deterministic.
  • Out of scope: the em dash in apm mcp list comes from external registry data, and the lead marked it out of scope.

Benefits

  1. One Targeting ... line on install --frozen (was 2).
  2. One skill line per package (was 2), and one success line per MCP server for Codex, Gemini and Kiro (was 2).
  3. 0 raw print/click.echo/_rich_* calls left under adapters/** and core/safe_installer.py, enforced by a guard.
  4. Every Rich table is built by one factory and is ASCII on any console. The 32 call sites route through it.
  5. A new experimental flag with no reader fails the lint.

Validation

Red before (installed CLI, main 1b96706): APM_BINARY_PATH=.venv/bin/apm uv run --extra dev pytest tests/integration/test_command_output_owner_e2e.py → 7 failed.

Green after (same command, this branch): 9 passed (7 original + retired-flag + JSON-stdout checks).

Lint chain (CI mirror, on the merge with main f371fcb)
ruff check / ruff format --check (src tests scripts/lint_architecture_boundaries.py scripts/architecture_linter/ scripts/windows_native_symlink_probe_entry.py): clean
check_complexity_ratchet.py --base-ref origin/main: [+] complexity ratchet clean: 199 grandfathered violation(s)
pylint R0801: Your code has been rated at 10.00/10
YAML / file-length 2100 / relative_to guards: no output
lint-auth-signals.sh: [+] auth-signal lint clean
lint-architecture-boundaries.sh: rc=0
Guards and mutation cases
  • tests/integration/test_architecture_owner_rule_mutations.py — matrix cases registry-delegation-console-construction and registry-delegation-experimental-flags (sorted), plus test_output_owner_guards_catch_bypasses with 11 isolating mutations. Each mutation asserts that only its own rule fires: rich Console/Table/box imports, adapter print, adapter _rich_* import, safe-installer click.echo, flag without reader, DX8 verbose gate removed, [experimental] on --policy, audit help losing a mode.
  • tests/unit/scripts/test_architecture_runner.py — _EXPECTED_RULE_ID_TEXT gains both rule ids.
  • tests/quality/test_lifecycle_bug_ledger.py — 2 passed.

Scenario evidence

Scenario Test Principle
Frozen install announces MCP targets once test_command_output_owner_e2e.py::test_frozen_install_announces_mcp_targets_once Truthful output
One line per skill package ::test_skill_bundle_reports_one_line_per_package Truthful output
Adapter success reported once (codex, gemini, kiro) ::test_mcp_adapter_success_is_reported_once Truthful output
Default init names only APM steps ::test_default_init_prints_no_third_party_tip Neutral defaults
install --mcp names the manifest relatively ::test_install_mcp_names_the_manifest_relatively Portable output
Retired flag in config ignored, one verbose note ::test_retired_experimental_flag_in_config_is_ignored Safe upgrade
JSON-mode stdout stays JSON ::test_json_audit_after_adapter_install_keeps_stdout_json Machine-readable output

How to test

  • APM_BINARY_PATH=.venv/bin/apm uv run --extra dev pytest tests/integration/test_command_output_owner_e2e.py
  • uv run --extra dev pytest tests/integration/test_architecture_owner_rule_mutations.py -k "output_owner or matrix"
  • In a project with targets: [codex] and a .codex/ dir, run apm install --mcp fetch -- echo ready: you should see one fetch -> Codex CLI (configured) line and manifest: apm.yml.

Remediation advice (#4090)

Item Owner / guard Proof
DX11: one owner for "run 'apm ...' to ..." advice core/remediation.py catalog (Remediation(command, fixes_promise, before, then)), owner entry remediation-advice; closed-world AST detector contracts-tooling-remediation-advice with a shrink-only per-file baseline (.apm/architecture/remediation-advice-baseline.json) test_remediation_advice_lifecycle.py (executed audit proofs and W1 text proofs); W1 component proofs tests/unit/core/test_remediation_commands_catalog.py
H7: every drift kind has one remediation contracts-tooling-remediation-drift-kinds (emitted DriftFinding(kind=...) literals == DRIFT_KIND_REMEDIATION keys) mutations contracts-tooling-remediation-drift-kinds, drift-kind-orphaned-loses-its-row
DX5 / DX6 landed fixes install --frozen help names the hash refusal; init --apply implies --discover mutations frozen-help-drops-hash-refusal, init-apply-stops-implying-discover
RA-009: local-edit advice true per kind install/local_edits.py (install_keeps_edit, edited_file_remediations, overwrite_notice); catalog drift-restore-edited-overwrite / drift-restore-edited-skill keep delete-then-install and state that a plain install overwrites instructions, agents, prompts, commands and rules and refuses edited skills; the pre-install notice is [!] and names the files; docs enterprise/drift-detection.md, enterprise/enforce-in-ci.mdx test_local_edit_advice_lifecycle.py (6 kinds, red 6/6 before, executes the printed remedy)
Audit JSON remediation CheckResult.remediations serialized as remediation / remediations; documented on the apm audit reference page H-I audit proofs
CLI-surface truth tests/quality/test_cli_command_literals.py: every printed apm <cmd> [flags] literal resolves through tests/utils/click_tree.py, no baseline. It fixed two init hints that named the nonexistent apm targets set the test itself
H6 (steward add): reads never write config get_config()/is_enabled() are pure reads; only update_config writes config.json (closed-world sub-check of registry_delegation.experimental_flags) tests/unit/core/test_experimental.py::test_flag_read_is_a_pure_read; mutation flag-read-creates-config

Note

Residual remediation baseline: see the landing packet. Per Daniel's 10:11 gate, the worker sweep continues in follow-up PRs until it reaches zero.

Module ownership (#4091, from H-J)

  • registry_delegation.module_ownership: every src/apm_cli module has one owner or a shrink-only entry in .apm/architecture/unowned-modules.json (ceiling = list length).
  • install-deployment-lifecycle-serialization-closed-world: every CLI command is serialized, delegated, exempt or pending (unpack is pending the shared bundle admission owner). lifecycle trust/untrust, runtime setup/remove, marketplace migrate and self-update route through install/locking.py.
  • Per-selector justifications (append-only selectors):
    • core/script_trust.py → lifecycle-script-firing-gate: project script trust.
    • install/exec_gate.py → executable-item-admission: allowExecutables admission.
    • install/phases/cleanup.py → file-level-deploy-sync-cleanup: orphan and stale-file removal.
    • install/phases/targets.py → effective-install-target-selection: install target selection phase.
    • cache/git_cache.py → git-cache-key-normalization: cache keyed by normalized URL.
    • bundle/packer.py → pack-plugin-manifests: pack-time bundle assembly.
    • commands/_helpers.py → orphan-package-selection (restored after a merge dropped it).

Issue and approved scope

Squash commit message (for the merge)

Owner consolidation: console construction, command output, remediation advice and module ownership (#4143)

- Console construction: every Rich Console and Table comes from utils/console.py; ASCII boxes; piped output is not hard-wrapped.
- Command output: adapters and install services emit through CommandLogger, one line per event; error lines go to stderr.
- Remediation advice: every printed next step renders from the core/remediation.py catalog, with a closed-world guard and an empty baseline.
- Install outcome: installed counts come from the deployment owner; a converged run reports that the state is up to date.
- Module ownership: every module under src/apm_cli has one canonical owner; lifecycle-state commands run under the serialization owner.
- Experimental flags: every registered flag has a reader; config reads are pure.
- Conformance: requirement markers anywhere under tests/ bind to the conformance map; test kinds separate behavioral from text-shape coverage.

Fixes #4089
Fixes #4090
Fixes #4091
Fixes #4092
Fixes #4179
Fixes #4181
Fixes #4182
Fixes #4183
Fixes #4184
Fixes #4196
Fixes #4327

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

Fixes #4089 — scope record: #4089 (comment)
Fixes #4090 — scope record: #4090 (comment)
Fixes #4091 — scope record: #4091 (comment)
Fixes #4092 — scope record: #4092 (comment)
Fixes #4179
Fixes #4181
Fixes #4182
Fixes #4183
Fixes #4184
Fixes #4196 (scope record: #4196 (comment))
Fixes #4327 (scope record: #4327 (comment))

This is the H3 integration PR ("output, remediation and ownership"). It absorbs #4128 and the lane branches for #4090, #4091 and #4092. The sections above describe #4089. The remediation, module-ownership and conformance sections are added as each lane lands.

apm-spec-waiver: output wording, remediation advice and ownership guards only; no OpenAPM-normative behaviour change

Type of change

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

Testing

  • Tested locally
  • All existing tests pass (14 integrator tests fail identically on main; see notes)
  • Added tests for new functionality (if applicable)

Changelog

  • One line in one section under ## [Unreleased] in CHANGELOG.md:
    user-visible effect first, 25 words or fewer, ending with (#PR);
    breaking changes only under upgrade notes; no Highlights; see
    .github/instructions/changelog.instructions.md.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

  • Spec edit
  • Manifest edit
  • Test edit
  • CONFORMANCE.{md,json} regenerated
  • N/A -- this PR does not change OpenAPM-observable behaviour.

Co-authored-by: Copilot [email protected]

…ut (#4089)

- console-construction: utils/console.new_table() builds every Rich table
  (ASCII box); all command and formatter Table() calls route through it.
- user-facing-output-diagnostics: MCP client adapters and the safe
  installer emit through CommandLogger (library_output/library_logger);
  adapters no longer echo their own success line.
- install --frozen resolves and announces MCP targets once.
- A skills/ bundle reports one tree line per package.
- Default init names no third-party tool; install --mcp names the
  manifest relative to cwd (or ~).
- experimental-flag-registry: every flag has a reader; retired flags in
  config are ignored with one verbose note.
- Guards: registry_delegation.console_construction,
  registry_delegation.experimental_flags (H6, DX8, H8) and the adapter
  sub-check of registry_delegation.output_diagnostics, with mutation cases.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Adds P-INV-I1..I9 and P-LAW-<id> for every lifecycle law, renames
owner:<id> to P-OWN-<id>, rejects unknown prefixes and undeclared
families, and fails when a lifecycle law has no P-LAW id. Pre-seeds
an in-flight allowance for #4143.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@danielmeppiel Daniel Meppiel (danielmeppiel) changed the title fix(output): one owner each for console construction and command output Owner moves: console construction, remediation advice and module ownership Nov 20, 2026
…ecycle-state commands (#4091)

- lifecycle trust/untrust, runtime setup/remove, marketplace migrate and
  self-update route through install/locking.py serialization.
- Closed-world rule install-deployment-lifecycle-serialization-closed-world:
  every CLI command is serialized, delegated, exempt or pending (unpack is
  pending the shared bundle admission owner).
- Closed-world rule registry_delegation.module_ownership: every src/apm_cli
  module has one owner or a shrink-only unowned allowlist entry.
- Append-only selectors: core/script_trust.py (lifecycle-script-firing-gate:
  project script trust), install/exec_gate.py (executable-item-admission:
  allowExecutables admission), install/phases/cleanup.py
  (file-level-deploy-sync-cleanup: orphan and stale-file removal),
  install/phases/targets.py (effective-install-target-selection: install
  target selection phase), cache/git_cache.py (git-cache-key-normalization:
  cache keyed by normalized URL), bundle/packer.py (pack-plugin-manifests:
  pack-time bundle assembly).

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
… and drift-kind guard (#4090)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
… lifecycle validate/test are read-only (#4090)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Restore the commands/_helpers.py orphan-selection selector; core/experimental.py now owned (unowned ceiling 309).

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
…itive kind (RA-009, #4090)

audit --ci, audit and install --frozen no longer claim a plain install keeps local edits. Catalog entries drift-restore-edited-overwrite and drift-restore-edited-skill keep the delete-then-install remedy and state per kind that install overwrites instructions, agents, prompts, commands and rules and refuses edited skills. The pre-install notice is now a warning naming the overwritten files. CheckResult carries structured remediations serialized by audit --format json.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…tured remediation; DX5/DX6 guards (#4089, #4090)

- get_config() and is_enabled() never create or write config.json; only update_config writes it (closed-world sub-check of registry_delegation.experimental_flags, mutation flag-read-creates-config).
- lockfile-exists, deployed-files-present and no-orphaned-packages carry catalog remediations; documented on the audit reference page.
- contracts-tooling-remediation-advice also guards the landed --frozen help (DX5) and init --apply implying --discover (DX6), with isolating mutations.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…nd flags (#4090)

tests/quality/test_cli_command_literals.py walks every printed string literal under src/apm_cli through tests/utils/click_tree.py; no baseline. Fixes the init hints that named the nonexistent 'apm targets set'. Ledger rows reference the H6 pure-read proof, the audit remediation proofs and the truth test.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
… via check_cli_output (AQ003)

Matches the 80-column predicate agreed in #4143: a longer row is unwrapped output, never a wrap.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Goldens J01/03,04,06, J02/02, J03/02,04, P01/02 re-recorded; key lines follow catalog wording (#4090), relative manifest labels (#4089 DX9) and #4184 counts; strict cells that now pass are removed (#4181, #4182, #4183, #4184, #4190, #4196, #4199, #4207). J08 step 1 gains the #4193 O6 cell J04 and J08 step 3 already carry: #4184 dropped the stray 'integrated' line that masked it. Obligations regenerated.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
_logical_lines keeps the wrap rule agreed with Stream P: a row wraps when it breaks at a space or fills the 79-80 column width; a longer row is unwrapped output (RA-010); #4366 fold-tail and #4368 plain-wrap cases pass.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…citations

Tests follow #4143's output owners: error lines and failed-check details assert on stderr (RA-004), #4184 adopt/local counts and converged reruns, catalog wording, a pure config read. MCP runtime failures name the runtime, so one server failing on several targets prints distinct lines. Oracle cells #4243/#4267 accept the adopted phrasing and the stderr error summary; generator citations follow line drift; the text-shape conformance case is derived from the statement. With H-A2 and H-N.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Main's scope-aware approve_command/explain_command (#4154, #4275) and _install_command now feed the catalog remediations through Remediation.with_command, so the advice keeps catalog wording and gains the -g form. Generator anchors follow main; obligations regenerated.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
… follow #4143 owners

test_install_services_phase3w5 gets the same created-root-skill fixture as its orchestration twin; the native cache audit detail is asserted on stderr with its failed-check header (RA-004).

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Full collection (pytest tests --collect-only -p no:xdist), then gen_statement: req-sc-007 moves from xfail to active.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
This was referenced Nov 20, 2026
Skill lines keep #4184's changed-bytes count and gain #4217's adoption of identical unowned copies (counted once, labelled adopted). Stale cleanup lists each removed path (#4193 via #4217) under a header naming the portable dependency label. J08 takes main's cells (#4193 fixed). Generator anchors follow line drift; obligations regenerated.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
…ation

The restored catalog digest is staged provisionally: it commits with a
completed update, or with the state change of an update that fails later,
and an update that fails before changing state leaves apm.lock.yaml
byte-identical. The commit site cites #4430 for routing it through the
commit owner. Drop the #4196 ledger row whose test #4217 handed to #4143.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…stall.py within budget

The module #4217 added joins the host-credential-resolution owner; its uninstall step renders repository-not-found; the --frozen verified-line check is inlined.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…4143)

Take #4395's hook-summary dedupe and drop the #4243 cell widening it supersedes; generator anchors follow line drift; obligations regenerated.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…, S6, S13, S8)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
install --frozen resolves MCP targets once; regression test_frozen_install_announces_mcp_targets_once.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
The S12 test now passes on a deny-with-reason verdict from a local HTTPS
policy fixture instead of on outcome=absent from the network. A second
hermetic case keeps the fetch_failure_default=block refusal covered
without asserting a --no-policy bypass hint.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
- policy/outcome_routing.py: a fetch_failure_default=block refusal now
  names a non-bypass next step: "Check that the org policy source is
  reachable (apm policy status) and retry, or ask your org admin."
  Steward ruling: an org-enforced block never advertises --no-policy.
- test_mcp_policy_block_reason_lifecycle: the hermetic unfetchable-policy
  case asserts that remedy on the [x] stderr line and no --no-policy.
- vscode adapter tests assert adapter errors on captured.err (thread
  PRRT_kwDOPyZEpc65-GW9: library_logger().error renders on stderr).
- test_marketplace_errors parses the emitted URL with urllib.parse and
  compares scheme, hostname and path (thread PRRT_kwDOPyZEpc65-GYN,
  tests.instructions.md URL rule).

Co-authored-by: Copilot App <[email protected]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 11340de into main Nov 20, 2026
67 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-bookish-train branch November 20, 2026 18:45
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Resolves CHANGELOG (both sides kept) and regenerates
tests/quality/lifecycle_obligations.json and CONFORMANCE after #4143.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Resolutions: take the train's removal of the #4196 cells (fixed by #4143 on
the train) and its E04 key line; keep the J14 removals and J10 key line.
From verification run 44807302102: remove E03 #4172 (now passes) and the
E03 #4196 cell; restore E04 step 4 O8 #4174 (still fails, issue reopened).

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
…s, refusals on stderr

Steward ruling A (#4360): a plain install keeps a managed file it cannot
prove APM wrote, names it and exits 1. These tests now assert that contract
through the shared template (unproven_overwrite_message), check the kept
bytes, then EXECUTE the printed remedy and keep every original convergence
assertion:
- test_multitarget_edit_audit_chain_lifecycle step 5 (move aside, install);
- test_hermetic_lifecycle_foundation [deployed-file] (delete the edited file
  as the audit remedy says, install, clean audit);
- test_mixed_case_materialization_lifecycle (move the stale link aside,
  install, links resolve);
- test_export_patch_e2e: the hint is local_edit_hint(1, overwritten=0); no
  overwrite claim.

Product: with #4184, a managed file already holding the final render is
adopted without a rewrite, so a fresh clone's install recorded no deployment
receipt and later uninstall/overwrite had no evidence
(test_cleanup_deployment_evidence: receipts dir never created).
_check_adopt_or_skip now records the receipt the skipped rewrite would have,
for MANAGED files only; unmanaged adoptions stay receipt-less (#3701).

test_kiro_prompt_lifecycle / test_cursor_rules_lifecycle: "Uninstall
refused" is an error line on stderr since #4143 (RA-004); read both streams.

test_target_manifest_upgrade_lifecycle[v0.35.1] stays red by ruling: #4398
part 2 (ebcd9e57).

Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-integration Run the full integration suite (ci-integration.yml) on this PR before merge

Projects

None yet

2 participants