Skip to content

fix(outdated): report published registry versions beyond pins - #2874

Merged
Daniel Meppiel (danielmeppiel) merged 4 commits into
mainfrom
danielmeppiel-registry-outdated-reporting
Sep 7, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 4 commits into
mainfrom
danielmeppiel-registry-outdated-reporting

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator

fix(outdated): report published registry versions beyond pins

TL;DR

Registry apm outdated now distinguishes installed Current, constraint-bound Wanted, and highest published Latest. A satisfied exact pin no longer hides a newer release. apm update remains writable and constraint-respecting; outdated reads legacy lockfiles without migrating them.

Closes #2871.

Important

Reporting an outside-constraint release does not authorize installing it. No save-prefix/default-pin, required-selector, policy, install-default, or --force changes; no upgrade or pin-bypass flag. The broader workflow remains #1962.

Problem (WHY)

  • With 1.7.0 locked and pinned, a registry publishing 1.8.0 previously produced All dependencies are up-to-date: the checker used its constraint-bound candidate as latest.
  • The reporting command renamed legacy apm.lock despite its read-only description.

The approved decision states: "An exact pin should constrain installation, not hide available versions."
The implementation follows the Agent Skills validation loop: "do the work, run a validator (a script, a reference checklist, or a self-check), fix any issues, and repeat until validation passes." Fail-before and mutation results below demonstrate the distinction.

Approach (WHAT)

Change Boundary preserved
Published Latest independent of Wanted Install/update still use the manifest constraint
Wanted column only when registry comparison rows exist Git-only columns and existing status strings unchanged
Source adds (outside constraint) No implicit rewrite or upgrade flag
Existing read-only lockfile owner handles the read Canonical and legacy file bytes/names unchanged

With 1.7.0, 1.8.0, and 2.0.0 published:

Selector Current Wanted Latest
1.7.0 or =1.7.0 1.7.0 1.7.0 2.0.0
^1.7.0 1.7.0 1.8.0 2.0.0
>=1.7.0 <1.8.0 1.7.0 1.7.0 2.0.0

All identify Latest as outside the constraint.

Implementation (HOW)

File Change
src/apm_cli/deps/registry/outdated.py Single-pass _highest_semver supplies Latest, preserving the last equal-precedence entry; existing pick_best and match_version supply Wanted and the outside-constraint fact
src/apm_cli/deps/outdated_row.py Append wanted and outside_constraint; preserve existing positional fields
src/apm_cli/commands/outdated.py Rich/plain table and explicit-selection guidance; retain outside-constraint rows when Current equals Latest; source-neutral unknown summary, header-sized divider, read-only lockfile resolution
scripts/architecture_linter/checks/contracts_test_taxonomy.py Extend registered contracts-tooling-lockfile-read to require outdated to use read_only=True
tests/unit/registry/test_outdated.py Exact/equal/bounded selectors, prerelease/build ties, no-newer/no-match regressions
tests/unit/registry/test_outdated_reporting.py Real CLI/manifest/lock boundary, Rich/plain output, unknown summary, canonical/legacy files, filtering, unchanged project bytes
tests/unit/registry/test_resolver.py Reporting followed by actual download/verify/extract resolver; selected archive remains constraint-bound
tests/integration/test_architecture_pack_lockfile_read.py Owner-bypass and migration mutation assertions
tests/spec_conformance/test_resolution_reqs.py Bind real constrained archive selection after discovery to existing req-rs-011; assert extracted manifest version
CONFORMANCE.json, CONFORMANCE.md Regenerate the statement for three additional requirement-bound cases; no new normative requirement
docs/src/content/docs/reference/cli/outdated.md, update.md Explain columns, outside-constraint selection, explicit non-modification and writable constrained update
packages/apm-guide/.apm/skills/apm-usage/commands.md Synchronize command summary, including lockfile-only verbose behavior
docs/src/content/docs/guides/operating-installed-context.md, enterprise/drift-detection.md Include published registry releases beyond exact pins

Registry reporting owner: no new resolver or semver grammar.
Architecture: owner-extension, with behavioral and registered static guards for routing through the canonical read-only lockfile owner. The deterministic detector reports no directly touched owner implementation selectors; this does not exempt the changed consumer route from its guards.
No CHANGELOG, README, specification prose/version, requirement-manifest, or waiver changes.

Diagram

Dashed nodes show changed reporting; install/update independently consume the manifest constraint.

flowchart LR
    subgraph Input[Read only]
        L["Lockfile Current"]
        V["Registry list_versions"]
        M["Manifest constraint"]
    end
    subgraph Report[Registry outdated]
        W["pick_best: Wanted"]
        P["_highest_semver: Latest"]
        R["OutdatedRow"]
    end
    subgraph Consumers[Consumers]
        T["Current / Wanted / Latest table"]
        U["RegistryPackageResolver: constraint-bound install and update"]
    end
    M --> W
    V --> W
    V --> P
    L --> R
    W --> R
    P --> R
    R --> T
    M --> U
    V --> U
    classDef new stroke-dasharray: 5 5;
    class P,R,T new;
Loading

Trade-offs

  • Registry latest intentionally changes meaning; wanted retains the prior constraint-bound value. No top-level outdated --json or package-filter interface exists to change.
  • Existing semver precedence, including prereleases, remains. Literal labels stay unknown; unavailable Wanted never becomes false success.
  • Lockfile-only Wanted is -. Verbose rows list matching versions when a constraint is known, or newer published versions for lockfile-only dependencies.
  • HTTP is mocked. Real archive verification/extraction and CLI file reads are exercised, but no live-registry or fully networked update E2E run is claimed. The three req-rs-011 cases cover its constraint-selection clause, not the entire update operation.

Benefits

  1. Exact/equal pins expose new releases without changing their install constraint.
  2. Current, Wanted, and Latest can differ without weakening policy.
  3. Both legacy and canonical lockfiles remain unchanged during reporting.

Validation

Final head: 9988006d73d6d735bac96e54aa79b58b9f98e833; base: 8c2e0d9c352e2ed0e8c56b40063a63e1dd4a1937.
origin/main fetched/merged before each push. These are executed local results; the live GitHub checks are authoritative for CI status.

Executed evidence

Targeted registry, outdated, update, ownership and lockfile suites:

717 passed, 2 xfailed in 10.51s

Full spec conformance, after binding existing req-rs-011 to the real resolver contract:

[+] orphan_check OK: 121 requirements aligned across anchors / manifest / Appendix C / pytest markers
[+] mode_b: spec-concurrent edit detected; orphan_check owns this PR
200 passed, 2 skipped in 17.10s

Regenerated CONFORMANCE.json and CONFORMANCE.md match the committed files. No waiver was used.

Full canonical Ruff check/format (including architecture scripts), pylint R0801, auth and architecture boundaries, YAML I/O, portable-path and 2100-line guards passed. Assertion-quality and exact-duplicate ratchets passed (1209 files, no allowed duplicate groups). The unchanged diagram was validated with mmdc.

Regression stage Executed result
Original fail-before 14 failed, 13 passed
Constraint-only Latest mutation 4 failed, 1 passed
Restored legacy migration mutation 6 behavioral failures; architecture entrypoint also rejected the bypass
Review output fail-before / pass-after 20 failed, 40 passed / 60 passed
Output and equal-precedence mutation 23 failed, 37 passed
Resolver pin-bypass mutation in conformance All 3 exact/equal/caret cases failed

Every mutation was restored before final-head validation. Docs-sync reports in_place_resolved; the earlier advisory remains the single documentation comment.

Scenario Evidence

# Scenario (user promise) Principle(s) Test(s) Type
1 Exact/equal pins do not hide new releases DevX tests/unit/registry/test_outdated.py::TestCheckRegistryLockedDep::test_published_latest_is_independent_of_wanted unit
2 Wanted respects my constraint; checking changes no project files Governed by policy, DevX tests/unit/registry/test_outdated_reporting.py::test_exact_registry_pin_reports_latest_without_writes integration (in-process CLI)
3 Refresh selects and extracts the pinned/highest permitted archive Governed by policy tests/spec_conformance/test_resolution_reqs.py::test_registry_refresh_preserves_constraint_after_outdated, reusing the real resolver regression integration (fake HTTP, real resolver)
4 Missing matching versions remain unknown without a misleading Git-only explanation DevX test_no_matching_wanted_remains_unknown and the CLI reporting matrix above unit + in-process CLI
5 Checking a legacy lockfile does not rename it Governed by policy Reporting matrix above; tests/integration/test_architecture_pack_lockfile_read.py::test_outdated_cannot_bypass_read_only_lockfile_owner integration
6 Equal semver precedence keeps the existing build-metadata tie behavior DevX tests/unit/registry/test_outdated.py::test_highest_semver_preserves_last_equal_precedence unit

How to test

  • Run uv run --frozen --extra dev pytest tests/unit/registry/test_outdated.py tests/unit/registry/test_outdated_reporting.py tests/unit/registry/test_resolver.py tests/integration/test_architecture_pack_lockfile_read.py tests/spec_conformance/test_resolution_reqs.py; expect all pass.
  • With registries enabled and a default registry publishing 1.7.0 and 1.8.0, install org/pkg#1.7.0, then run apm outdated; expect Current/Wanted 1.7.0, Latest 1.8.0, (outside constraint).
  • Run apm update --yes; exact pin remains 1.7.0. Repeat with =1.7.0.
  • Select org/pkg#^1.7.0; Wanted tracks highest matching 1.x while Latest can show published 2.x.
  • Compare manifest, lockfile, modules and deployment files before/after apm outdated; expect no changes, including no legacy apm.lock rename.

Co-authored-by: Copilot App [email protected]

Separate constraint-bound Wanted from published Latest without changing registry update resolution. Read legacy lockfiles through the canonical read-only owner and protect the route with behavioral and static regressions. Fixes #2871.

Co-authored-by: Copilot App <[email protected]>
Fold the two remaining docs-sync findings for #2871 without changing update semantics.

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

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.

Copilot review overview

🟢 Approval recommended

The change is well-scoped to reporting semantics, includes architecture enforcement plus targeted unit/component/integration regressions, and only leaves minor output/doc clarity nits.

Review tier: Lite
Findings: 4 Low severity

New issues introduced by this change (4)
Severity Finding
Low severity docs/​src/​content/​docs/​reference/​cli/​outdated.md — The phrase "no manifest ... writes" is a bit ambiguous (it can read like the command doesn't read…
Low severity packages/​apm-guide/​.apm/​skills/​apm-usage/​commands.md — The description "no manifest ... writes" is ambiguous (it can be read as "doesn't read the…
Low severity src/​apm_cli/​commands/​outdated.py — In the plain-text fallback, the separator line is hard-coded to 82 dashes, but the header can be…
Low severity src/​apm_cli/​commands/​outdated.py — The summary message for unknown rows says "(branch/commit refs)", but Unknown can also come from…
What changed in this PR

This PR fixes apm outdated for registry-backed deps so that reporting distinguishes Current (installed), constraint-bound Wanted, and highest published Latest, ensuring exact/equal pins don’t hide newer releases while keeping install/update constraint-respecting and making lockfile reads truly read-only (including legacy apm.lock).

Changes:

  • Registry outdated: compute published Latest independently of constraint-bound Wanted, and surface an outside_constraint signal when Latest does not satisfy the manifest selector.
  • CLI output: render an optional Wanted column and keep meaningful rows visible even when Current equals Latest but a newer published version exists outside the constraint; read legacy lockfiles in place without migration.
  • Guard + tests + docs: extend the architecture linter to enforce the read-only lockfile owner route, add unit/component/integration regression tests, and update command reference docs.
File Description
src/​apm_cli/​deps/​registry/​outdated.py Separates published Latest from constraint-bound Wanted and computes outside_constraint.
src/​apm_cli/​deps/​outdated_row.py Extends OutdatedRow with optional wanted and outside_constraint fields.
src/​apm_cli/​commands/​outdated.py Uses read-only lockfile resolution; renders optional Wanted column and outside-constraint messaging.
scripts/​architecture_linter/​checks/​contracts_test_taxonomy.py Enforces that outdated routes lockfile reads through resolve_lockfile_path_for_read(..., read_only=True).
tests/​unit/​registry/​test_outdated.py Adds unit regressions for Latest vs Wanted independence and semver precedence.
tests/​unit/​registry/​test_outdated_reporting.py Adds CLI-level reporting test ensuring no project writes and legacy lockfile read-in-place.
tests/​unit/​registry/​test_resolver.py Ensures resolver/download stays constraint-bound even when reporting shows a newer outside-constraint Latest.
tests/​integration/​test_architecture_pack_lockfile_read.py Adds architecture mutation test preventing read-only owner bypass in outdated.
docs/​src/​content/​docs/​reference/​cli/​outdated.md Updates the reference to define Current/Wanted/Latest and legacy lockfile read-in-place behavior.
docs/​src/​content/​docs/​reference/​cli/​update.md Clarifies that update remains constraint-respecting even when outdated reports newer Latest.
packages/​apm-guide/​.apm/​skills/​apm-usage/​commands.md Updates the agent-facing command reference for the new outdated reporting semantics.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/apm_cli/commands/outdated.py Resolved
Comment thread src/apm_cli/commands/outdated.py Resolved
@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

Docs sync advisory

Verdict: in_place * Pages affected: 2 * LLM calls: 8/15

The CLI reference and agent usage resource already cover Current, Wanted,
published Latest, and read-only legacy lockfile handling. The bounded
index/symbol pass found two remaining descriptions that were narrower than the
new reporting behavior:

  • guides/operating-installed-context.md: replace "latest matching upstream"
    with a read-only upstream check and registry Current/Wanted/Latest distinction.
  • enterprise/drift-detection.md: include newer registry releases for exact
    pins, preserving the explicit-selection requirement outside constraints.

These surgical corrections were folded under the approved issue scope. No
README, new page, TOC, installation default, policy, or upgrade flag changed.

S7 evidence: actual apm outdated --help, registry reporting/resolver source
inspection, a hermetic exact-pin probe (wanted=1.2.3, latest=1.3.0,
outside_constraint=True), and three resolver regression cases passed.
Editorial and cold-reader concerns about registry-only Wanted and automatic
upgrades were incorporated. CDO synthesis: agree.

The orchestrator corrected a malformed classifier response and an erroneous
already-resolved classification against the actual changed-page set before
proceeding. No refuted verification claims remain.

Address Copilot and panel follow-ups with a source-neutral unknown summary, a header-sized plain divider, explicit read-only docs and truthful verbose notes. Select Latest in one pass while preserving the last equal-precedence release. Defend output and semver tie behavior with regression and mutation-break evidence.

Co-authored-by: Copilot App <[email protected]>
Address the Mode B CI finding with executed req-rs-011 coverage, not a waiver. Reuse the real resolver-after-discovery contract for exact/equal/caret selectors and assert the extracted archive version. A pin-bypass mutation fails all three cases. Regenerate conformance evidence without changing normative requirements.

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

Copy link
Copy Markdown
Collaborator Author

APM Review Panel: ship_now

PR #2874 sharpens registry drift reporting by showing Current, Wanted, and Latest without changing write behavior: apm outdated stays read-only and apm update stays constraint-bound.

cc Sergio Sisternes (@sergio-sisternes-epam) -- a fresh advisory pass is ready for your review.

Final head 9988006d73d6d735bac96e54aa79b58b9f98e833. All code, documentation and conformance follow-ups are folded; live CI is now green. No deferred product work; maintainer review remains required.

Panel signal is converged and the last actionable docs concern is folded in the live PR body at HEAD 9988006d73d6d735bac96e54aa79b58b9f98e833. The strongest evidence is load-bearing and passes on this commit: tests/unit/registry/test_outdated_reporting.py::test_exact_registry_pin_reports_latest_without_writes defends the read-only reporting promise, tests/unit/registry/test_outdated.py::TestCheckRegistryLockedDep::test_published_latest_is_independent_of_wanted defends the Current/Wanted/Latest split, and tests/spec_conformance/test_resolution_reqs.py::test_registry_refresh_preserves_constraint_after_outdated reuses the real resolver regression to prove the req-rs-011 constraint-selection clause still holds. The docs body now matches the final head, 717 passed / 2 xfailed, and 200 passed / 2 skipped for spec, with the conformance note correctly scoped to the constrained-selection clause rather than the whole update operation.

The four parent reservations remain the right ship rails and are preserved as written: 1. apm outdated must remain strictly read-only: report drift only, install/write nothing. 2. apm update may install/write as before; it stays constraint-respecting but is NOT made read-only. 3. Preserve outdated output format/compatibility; no changes to defaults, policy, force, or upgrade semantics. 4. Land with tests covering outdated read-only behavior plus docs updated to match. On that basis, this is ready to ship on code and docs merits. I am not calling CI green here; live GitHub checks are still the authoritative signal for final merge timing.

Dissent. No material dissent remains. The prior doc-writer reservation about stale PR-body metadata is resolved in the verified live body, and the python note is informational only.

Aligned with: Published registry drift is surfaced without changing install or update resolution, so the manifest remains the governing contract. apm outdated remains read-only for apm.yml, lockfile state, modules, and deployment state; this PR adds visibility, not side effects. Constraint-respecting update behavior still holds, and this PR does not widen defaults, policy, force, or pin-bypass semantics. The change stays tightly scoped, fully tested, and clearly documented, which protects contributor trust and reviewability. Current, Wanted, and Latest now read the way users expect from a package manager while preserving existing command semantics.

Panel summary

Persona B R N Takeaway
python-architect 0 0 1 Final head keeps a single reporting owner: outdated stays on the canonical read-only lockfile route, and req-rs-011 now reuses the existing resolver contract instead of adding a second path.
cli-logging-expert 0 0 0 Prior CLI logging findings are folded; no remaining output-UX concerns in the final diff.
devx-ux-expert 0 0 0 Prior DevX UX findings are fixed; outdated remains read-only and update remains constraint-bound across CLI, docs, and tests.
supply-chain-security-expert 0 0 0 No in-scope supply-chain regression: outdated stays read-only, Latest stays advisory, and req-rs-011 plus no-write guards passed on final head.
oss-growth-hacker 0 0 0 Final diff keeps the adoption story coherent: outdated is explicitly read-only, update stays constraint-respecting, and no README or growth surface was widened.
doc-writer 0 1 0 Final docs and PR-body evidence now match the exact head; stale-metadata finding folded.
test-coverage-expert 0 0 0 Executed registry/outdated scenario tests cover the Latest/Wanted split, read-only reporting path, and req-rs-011 archive-selection boundary.
performance-expert 0 0 0 Previous O(p log p) latest-selection nit is fixed; final diff keeps last-equal precedence in O(p)/O(1) and introduces no new performance concerns.

Counts reflect final panel signals: the documentation recommendation was folded in PR metadata; the architecture nit is informational. No actionable findings remain.

Architecture

classDiagram
    direction LR
    class commands_outdated_py {
      <<Module>>
      +outdated(global_, verbose, parallel_checks)
      +_check_deps_with_progress(...)
      +_check_one_dep(...)
    }
    class registry_outdated_py {
      <<Module>>
      +load_registry_outdated_context(project_root, lockfile)
      +check_registry_locked_dep(locked, ctx, client_factory, verbose)
      +_highest_semver(version_strings)
    }
    class RegistryOutdatedContext {
      <<ValueObject>>
      +manifest_index dict[str, DependencyReference]
      +registries dict[str, str]
      +default_registry str | None
    }
    class OutdatedRow {
      <<ValueObject>>
      +package str
      +current str
      +wanted str | None
      +latest str
      +outside_constraint bool
      +source str
      +status str
    }
    class RegistryPackageResolver {
      +download_package(dep, target)
    }
    class DependencyReference {
      <<ValueObject>>
      +reference str
      +source str
      +registry_name str | None
      +get_unique_key()
    }
    class TestHappyPath {
      <<TestHarness>>
      +test_refresh_keeps_constraint_even_when_outdated_reports_newer(...)
    }
    class test_resolution_reqs_py {
      <<Module>>
      +test_registry_refresh_preserves_constraint_after_outdated(...)
    }
    commands_outdated_py ..> registry_outdated_py : delegates registry rows
    registry_outdated_py --> RegistryOutdatedContext : builds
    registry_outdated_py --> OutdatedRow : returns
    registry_outdated_py ..> DependencyReference : reads selector
    TestHappyPath ..> registry_outdated_py : asserts Wanted vs Latest split
    TestHappyPath ..> RegistryPackageResolver : proves install stays constraint bound
    test_resolution_reqs_py ..> TestHappyPath : reuses contract
    note for registry_outdated_py "Single report owner:
Wanted via pick_best,
Latest via _highest_semver"
    note for test_resolution_reqs_py "Conformance binds the existing resolver contract,
not a second implementation path"
    class commands_outdated_py:::touched
    class registry_outdated_py:::touched
    class RegistryOutdatedContext:::touched
    class OutdatedRow:::touched
    class TestHappyPath:::touched
    class test_resolution_reqs_py:::touched
    classDef touched fill:#fff3b0,stroke:#d47600
Loading
flowchart TD
    cli["CLI entry: apm outdated"] --> cmd["src/apm_cli/commands/outdated.py::outdated()"]
    cmd --> lockpath["[I/O] resolve_lockfile_path_for_read(project_root, read_only=True)"]
    lockpath --> lockread["[I/O] LockFile.read(lockfile_path)"]
    lockread -->|no lockfile| exit1["exit 1 after CommandLogger.error(No lockfile found ...)"]
    lockread -->|deps loaded| ctx["src/apm_cli/deps/registry/outdated.py::load_registry_outdated_context()"]
    ctx --> rows["src/apm_cli/commands/outdated.py::_check_deps_with_progress()"]
    rows --> one["src/apm_cli/commands/outdated.py::_check_one_dep()"]
    one -->|dep.source == registry| reg["src/apm_cli/deps/registry/outdated.py::check_registry_locked_dep()"]
    reg --> versions["[NET] RegistryClient.list_versions(owner, repo)"]
    versions --> latest["_highest_semver(version_strings) -> Latest"]
    versions --> wanted["pick_best(manifest_range, version_strings) -> Wanted"]
    latest --> outside["match_version(manifest_range, Latest) -> outside_constraint"]
    wanted --> row["OutdatedRow(current, wanted, latest, outside_constraint)"]
    outside --> row
    row --> render["render Current / Wanted / Latest in outdated()"]
    render --> exit0["exit 0 with CommandLogger.warning(...) or CommandLogger.progress(...)"]
    spec["pytest tests/spec_conformance/test_resolution_reqs.py::test_registry_refresh_preserves_constraint_after_outdated"] --> bind["tests/spec_conformance/test_resolution_reqs.py::test_registry_refresh_preserves_constraint_after_outdated()"]
    bind --> reuse["tests/unit/registry/test_resolver.py::TestHappyPath.test_refresh_keeps_constraint_even_when_outdated_reports_newer()"]
    reuse --> reg
    reuse --> dl["[NET] RegistryPackageResolver.download_package(dep, target)"]
    dl --> archive["[NET] RegistryClient.download_archive(owner, repo, expected)"]
    archive --> manifest["[I/O] load_yaml(tmp_path / package / apm.yml)"]
    manifest --> assertv["assert installed_manifest version == expected"]
Loading

Recommendation

Ship for maintainer review. The final CEO stance is ship_now; all observed checks are green. No automatic merge is performed.

Reservations carried from strategic-alignment

  • apm outdated must remain strictly read-only: report drift only, install/write nothing.
  • apm update may install/write as before; it stays constraint-respecting but is NOT made read-only.
  • Preserve outdated output format/compatibility; no changes to defaults, policy, force, or upgrade semantics.
  • Land with tests covering outdated read-only behavior plus docs updated to match.

Folded in this run

  • (copilot) Explicit read-only non-modification guarantee in CLI reference. -- f733d77d7.
  • (copilot) Mirror non-modification guarantee in agent command resource. -- f733d77d7.
  • (copilot) Derive plain divider from header and assert the rendered width. -- f733d77d7.
  • (copilot) Source-neutral unknown summary defended by no-matching-constraint CLI cases. -- f733d77d7.
  • (panel) Clarify that verbose lockfile-only registry rows list newer published versions. -- f733d77d7.
  • (panel) Select Latest in O(n) time/O(1) extra space, preserving last equal-precedence entry. -- f733d77d7.
  • (panel) Refresh live PR body with final head, current evidence and narrowly scoped conformance claim; metadata-only fold at the cited head. -- 9988006d7.

Copilot signals reviewed

  • docs/src/content/docs/reference/cli/outdated.md:8 -- LEGIT: Explicit non-modification wording makes the approved read-only contract unambiguous. Resolved in f733d77d7; inline thread answered and resolved.
  • packages/apm-guide/.apm/skills/apm-usage/commands.md:32 -- LEGIT: Mirror the explicit read-only guarantee in the agent command resource. Resolved in f733d77d7; inline thread answered and resolved.
  • src/apm_cli/commands/outdated.py:610 -- LEGIT: The optional Wanted column changes header width; derive the fallback divider from the rendered header. Resolved in f733d77d7; inline thread answered and resolved.
  • src/apm_cli/commands/outdated.py:628 -- LEGIT: Unknown registry rows are not branch/commit failures; use the source-neutral summary. Resolved in f733d77d7; inline thread answered and resolved.

No deferred findings. Copilot round 2 returned zero new comments.

Regression-trap evidence

  • TestCheckRegistryLockedDep::test_published_latest_is_independent_of_wanted -- Published Latest replaced by constraint-bound Wanted: 4 failures; mutation-latest.log.
  • test_exact_registry_pin_reports_latest_without_writes and contracts-tooling-lockfile-read -- read_only=True changed to False: 6 legacy behavioral failures plus architecture boundary rejection; mutation-readonly.log and mutation-static.log.
  • test_exact_registry_pin_reports_latest_without_writes -- Header-sized divider and source-neutral summary reverted: 20 failures; driver-mutation.log.
  • test_highest_semver_preserves_last_equal_precedence -- Last-tie replacement changed to strictly-greater selection: 2 new tests plus existing precedence case failed; driver-mutation.log.
  • tests/spec_conformance/test_resolution_reqs.py::test_registry_refresh_preserves_constraint_after_outdated -- Resolver pick_best(spec, versions) changed to pick_best('*', versions): all 3 cases failed; restored before final validation; driver-conformance-mutation.log.

Lint contract

Full canonical mirror exit 0 at 9988006, including Ruff check/format with no diagnostics, pylint R0801, YAML I/O, 2100-line, portable-path, auth and architecture boundaries; driver-final-lint.log.

Functional suites at the exact head: 717 passed, 2 xfailed; spec conformance: 200 passed, 2 skipped. Orphan check aligns 121 requirements, Mode B passes without waiver, regenerated statements are clean.

CI

18 checks successful/neutral/skipped at 9988006. CI: https://github.com/microsoft/apm/actions/runs/34110673609 ; Spec: https://github.com/microsoft/apm/actions/runs/34110673706 . One recovery: Mode B on f733d77 resolved by real existing req-rs-011 coverage in 9988006 plus regenerated CONFORMANCE artifacts; no waiver or normative spec change.

Mergeability status

PR head SHA CEO stance iters folds defers Copilot rounds CI mergeable mergeStateStatus notes
#2874 9988006 ship_now 2 7 0 2 green MERGEABLE BLOCKED pending required review

Convergence

2 outer iterations; 2 Copilot rounds; 1 CI recovery. Ready for maintainer review.

Full per-persona findings

python-architect

Informational nit: no remaining architectural issue; canonical owner routing and conformance reuse are preserved. The data carriers are value objects; OutdatedRow is not claimed frozen.

cli-logging-expert

No findings.

devx-ux-expert

No findings.

supply-chain-security-expert

No findings.

oss-growth-hacker

No findings.

auth-expert

Touched files are outdated reporting, lockfile-read routing, docs, and tests only (src/apm_cli/commands/outdated.py, src/apm_cli/deps/outdated_row.py, src/apm_cli/deps/registry/outdated.py, docs/src/content/docs/reference/cli/outdated.md, docs/src/content/docs/reference/cli/update.md, docs/src/content/docs/enterprise/drift-detection.md, docs/src/content/docs/guides/operating-installed-context.md, packages/apm-guide/.apm/skills/apm-usage/commands.md, scripts/architecture_linter/checks/contracts_test_taxonomy.py, and the registry/lockfile/spec coverage tests); the only auth-adjacent hunk is a test-only patch of make_auth_context/AuthResolver in tests/unit/registry/test_outdated_reporting.py, so no AuthResolver logic, token selection, credential fallback, or host auth behavior changed.

doc-writer

  • [recommended] The PR body validation metadata still points at a pre-final head and older test totals.
    The actual PR head is 9988006, but the live PR body still says Final fix head: 963c657ab46650e9672b6cb543b7d83c6c8a9c6c and keeps the earlier 704 passed, 2 xfailed validation snapshot. After the final conformance and docs fold, that block no longer matches the artifact set the reviewer is being asked to approve, so the body stops being a trustworthy summary of the final diff.

Resolved after this return: live PR body now names the exact final head and current executed totals.

test-coverage-expert

No findings.

performance-expert

No findings.

This panel is advisory. The maintainer decides whether and when to merge.

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit e740d6e into main Sep 7, 2026
18 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-registry-outdated-reporting branch September 7, 2026 10:44
Ron Izraeli (chkp-roniz) added a commit to chkp-roniz/apm that referenced this pull request Sep 7, 2026
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.

[BUG] Exact version pins from apm install pkg#X.Y.Z make apm outdated always report up-to-date

2 participants