Skip to content

docs(registry-proxy): correct the range premise and name the supported routes - #3777

Merged
Daniel Meppiel (danielmeppiel) merged 5 commits into
mainfrom
danielmeppiel-3756-registry-proxy-ranges
Nov 18, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 5 commits into
mainfrom
danielmeppiel-3756-registry-proxy-ranges

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

With PROXY_REGISTRY_ONLY=1, a semver range in apm.yml fails, and the docs and error explained that by saying the registry proxy "exposes no listing surface". That premise is wrong: JFrog Artifactory, for example, has (credentialed) listing APIs. The accurate reason is that APM fetches only exact versions through a proxy and does not call vendor listing APIs.

  • enterprise/registry-proxy.md: drops the false claim and names the two supported routes in registry-only mode: exact pins plus lockfile replay, or a server implementing the APM Registry HTTP API (GET /v1/packages/{owner}/{repo}/versions), linked to the reference and the registries guide.
  • RegistryOnlySemverError hint (deps/git_semver_resolver.py, the single owner of this refusal) names the same two routes and links the docs section.
  • apm view <pkg> versions and apm outdated messages drop the same false claim (wording only).

No resolution behavior changes: same refusal, same exit codes, same PROXY_REGISTRY_ONLY semantics. No Artifactory listing backend.

Issue and approved scope

Issue: Fixes #3756

Human scope-approval comment: #3756 (comment)

Does this PR complete the issue, or what remains? Completes the approved scope. An Artifactory-specific listing backend was declined.

Type of change

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

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Validation evidence (local):

  • .venv/bin/python -m pytest tests/unit/deps/test_ref_enumeration_proxy.py -p no:xdist -q: 31 passed. With the old hint restored, test_raises_and_never_lists_refs fails (1 failed, 30 passed).
  • uvx [email protected] check src/ tests/ and format --check: clean.

Spec conformance (OpenAPM v0.1)

  • N/A -- this PR does not change OpenAPM-observable behaviour (wording only).

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

The updated error hint conflicts with an unchanged integration-test assertion, causing the installed-CLI regression to fail until the assertion is updated.

2 open issues
What changed in this PR

This PR clarifies APM's registry-only limitations for #3756: APM does not consume proxy vendor listing APIs. It documents the supported alternatives without changing resolution behavior, exit codes, or upstream-access restrictions.

Changes:

  • Documents exact pins with lockfile replay and the experimental APM Registry HTTP API route.
  • Revises semver, view, and outdated messages to describe APM's behavior rather than proxy capabilities.
  • Updates unit assertions and adds a changelog entry.
File Description
tests/​unit/​deps/​test_ref_enumeration_proxy.py Checks the revised remedies and removes the old listing premise.
src/​apm_cli/​deps/​git_semver_resolver.py Revises the range-refusal hint and docstring.
src/​apm_cli/​commands/​view.py Clarifies why proxy version listing is unavailable.
src/​apm_cli/​commands/​outdated.py Clarifies why proxy-backed Git update checks are unavailable.
docs/​src/​content/​docs/​enterprise/​registry-proxy.md Explains listing limitations and supported alternatives.
CHANGELOG.md Records the documentation and diagnostic corrections.

Review effort: Balanced

Comment thread src/apm_cli/deps/git_semver_resolver.py Resolved
@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

APM Review Panel: ship_with_followups

Wording-only fix corrects the false 'only upstream can list' premise in registry-proxy docs and error hints, naming exact pins and APM Registry HTTP API as the two supported routes.

panel-mode=lean; personas=doc-writer,test-coverage-expert,python-architect,apm-ceo

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

All three panelists converge: the code change is architecturally clean (single error owner, no duplicate authority), the four updated unit assertions trap the new hint wording against mutation, and the doc page plus error message now state APM's design intent accurately. No panelist raised a blocking finding, and no dissent exists on severity or scope.

The doc-writer surfaced two residual instances of the refuted premise that the PR set out to remove. Line 124 of registry-proxy.md still reads 'only the upstream host can provide' a listing, which directly contradicts the maintainer decision and the PR's own done_when criteria. The apm-guide skill resource at authentication.md:324 repeats the same false claim; Repo Rule 4 requires it to track CLI error wording changes, so this is squarely in scope. Both are small wording patches the merge-worker can fold before landing. The third finding (error hint verbosity) is polish that tightens terminal output but is not a correctness gap.

Strategically this is a trust signal: an external contributor (issue #3756) showed real-world Artifactory usage that proved the docs wrong, and the project is fixing it promptly in milestone 0.37.0. Shipping with the two residual false-premise lines still present would undermine that signal.

Aligned with: Governed by policy -- PROXY_REGISTRY_ONLY error path now names the two design-sanctioned routes instead of asserting a false technical limitation. OSS community driven -- external issue reporter proved the premise wrong with real Artifactory evidence; prompt fix in 0.37.0 honors the community trust contract. Pragmatic as npm -- error hint gives the user two concrete next actions (pin exact tag, or use APM Registry HTTP API) instead of a bare refusal.

Panel summary

Persona B R N Takeaway
Python Architect 0 0 0 Refusal single-owned by RegistryOnlySemverError (one def, one raise site); view/outdated messages are distinct operations, not duplicate authority; docs URL consistent with existing hints.
Doc Writer 0 3 0 The new wording and anchor are correct, but the doc page still says only the upstream host can provide a listing, and the apm-guide skill still says the proxy has no tag listing.
Test Coverage Expert 0 0 0 RegistryOnlySemverError hint is mutation-break-trapped by 4 updated unit assertions; view/outdated wording changes pass existing structural tests; no gaps relative to scope.

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Top 3 follow-ups

  1. [Doc Writer] Fix registry-proxy.md line ~124: replace 'only the upstream host can provide' with wording that reflects the design choice and names both supported routes. -- Residual instance of the exact false premise the PR's done_when criteria require removing. In-scope fold.
  2. [Doc Writer] Update apm-guide authentication.md:324 to drop 'The proxy has no tag listing' and name the same two routes the new error hint names. -- Repo Rule 4 requires the apm-guide skill to track CLI error wording changes. Agents loading this skill will repeat the refuted claim and miss the registry route. In-scope fold.
  3. [Doc Writer] Tighten the RegistryOnlySemverError hint to avoid stating the premise twice and reduce terminal wrap at typical widths. -- Polish per Repo Rule 3 (pragmatic, succinct wording). Not a correctness gap but improves terminal readability. Optional fold.

Recommendation

The code and test surfaces are solid; fold the two residual false-premise lines (registry-proxy.md:124, apm-guide authentication.md:324) before landing so the PR fully satisfies its own done_when criteria and the community trust signal is clean. The error-hint verbosity trim is worth folding if convenient but not gating.


Full per-persona findings

Python Architect

No findings.

Doc Writer

  • [recommended] registry-proxy.md still says a version listing is something 'only the upstream host can provide'. at docs/src/content/docs/enterprise/registry-proxy.md:124
    The maintainer decision refuted this premise. The sentence also contradicts the PR's own second route a few lines below, where an APM Registry HTTP API server lists versions. The done_when criteria require the page to stop implying that only upstream can list.
    Suggested: By design APM does not list versions through the proxy or call vendor listing APIs; a range needs a listing from the upstream host or from an APM Registry HTTP API server.
  • [recommended] The apm-guide skill resource still states the refuted premise and leaves out the registry route. at packages/apm-guide/.apm/skills/apm-usage/authentication.md:324
    Repo Rule 4 requires apm-guide to track changes to CLI error wording. Agents that load this skill will repeat the false claim and miss the second supported route that the new error hint names.
    Suggested: APM fetches exact versions only and does not list versions through the proxy; pin the exact upstream tag and commit apm.lock.yaml, or install from a registry that implements the APM Registry HTTP API.
  • [recommended] The RegistryOnlySemverError hint is about 600 chars of terminal text and states the premise twice. at src/apm_cli/deps/git_semver_resolver.py:291
    Repo Rule 3 asks for pragmatic, succinct wording. A tighter rewrite keeps every substring the new unit test asserts and the docs link. The anchor slug matches the TOC in registry-http-api.md.

Test Coverage Expert

No findings.

This panel is advisory. It does not block merge. Re-apply the
panel-review label after addressing feedback to re-run.


Generated by autopilot-pr-review-worker. This comment is AI-generated and may contain errors.

Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 17, 2026
The reworded RegistryOnlySemverError hint dropped "unset
PROXY_REGISTRY_ONLY", which the installed-CLI contract
test_install_range_fails_with_remedy_without_contacting_source_host
asserts. Restore it as the third option, tighten the hint so it no
longer states the premise twice, and reflow the 111-char docstring
line. A unit assertion now traps the escape hatch (mutation-break
verified: removing the clause fails the unit and integration tests).

Addresses panel follow-up 3 (doc-writer, hint verbosity) on #3777.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 17, 2026
registry-proxy.md still said a version listing is something only the
upstream host can provide, contradicting the APM Registry HTTP API
route named a few lines below. The apm-guide authentication resource
still said the proxy has no tag listing. Both now state that APM does
not list through the proxy by design and name the supported routes;
the troubleshooting row matches the error hint.

Addresses panel follow-ups 1 and 2 (doc-writer) on #3777.

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

Copy link
Copy Markdown
Collaborator Author

APM Review Panel: ship_now

Delta fold resolves all three doc follow-ups and the Copilot-flagged hint regression; unit + integration + mutation evidence confirms the escape hatch is intact.

panel-mode=delta; personas=doc-writer,test-coverage-expert,python-architect,apm-ceo

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

All three prior follow-ups (FU-1 through FU-3) and both Copilot inline flags (4602147045, 4602147156) are addressed in 5590e41 and 7241086. The fold restored the unset PROXY_REGISTRY_ONLY escape hatch in the semver-resolver hint, dropped the stale only-upstream-can-list claims from registry-proxy.md and the apm-guide authentication page, and tightened the hint wording. The mutation-break confirms the clause is load-bearing: removing it fails both the unit and the installed-CLI integration contract.

All three delta panelists returned zero findings. Doc-writer confirms the docs, hint, and CHANGELOG agree. Test-coverage-expert confirms the unit (31 passed) and integration tiers trap the escape hatch. Python-architect confirms the raise site stays single-owned with no architectural cost. CI is green (23 pass, 3 skipping). With all open items closed and evidence clean, the advisory upgrades from ship_with_followups to ship_now. Landing timing and the required CODEOWNERS review from Sergio Sisternes (@sergio-sisternes-epam) remain the maintainer's call.

Aligned with: Governed by policy -- PROXY_REGISTRY_ONLY gate and its documented unset escape hatch preserve enterprise policy enforcement without trapping operators. Pragmatic as npm -- the error hint names concrete next actions (pin an exact tag, use an APM Registry HTTP API server, or unset the env var).

Panel summary

Persona B R N Takeaway
Python Architect 0 0 0 Refusal remains single-owned (one class, one raise site, one gate); fold is hint-text-only with a unit regression guard added. No architectural concerns.
Doc Writer 0 0 0 FU-1, FU-2, FU-3 and Copilot 4602147156 are resolved. The docs, hint, apm-guide, troubleshooting row and CHANGELOG agree, and the fold adds no wording issues. Ship.
Test Coverage Expert 0 0 0 Escape hatch trapped at unit (31 passed, S7-run) and integration tier; all hint-substring assertions hold against the rewritten text. Ship.

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Recommendation

All prior follow-ups and Copilot flags are resolved with passing unit, integration, and mutation evidence. No new findings from any panelist. Ready for the pending CODEOWNERS review and the maintainer's post-v0.36.1 landing window.

Folded in this run

  • (doc-writer FU-1, Copilot 4602147156) registry-proxy.md no longer says a listing is something only the upstream host can provide; it names the upstream host or an APM Registry HTTP API server -- resolved in 7241086.
  • (doc-writer FU-2) apm-guide authentication.md drops "The proxy has no tag listing" and names the same routes as the hint (Rule 4 sync) -- resolved in 7241086.
  • (doc-writer FU-3, Copilot 4602147045) RegistryOnlySemverError hint tightened and the unset PROXY_REGISTRY_ONLY escape hatch restored; the troubleshooting row now matches -- resolved in 5590e41 / 7241086.
  • (merge-worker) 111-char docstring line reflowed -- resolved in 5590e41.
  • (merge-worker) merged main to clear a CONFLICTING merge state so pull_request CI could run -- resolved in 4a244a0.

Copilot signals reviewed

  • src/apm_cli/deps/git_semver_resolver.py -- LEGIT: the new hint dropped unset PROXY_REGISTRY_ONLY, which tests/integration/test_registry_only_enumeration_contract.py::test_install_range_fails_with_remedy_without_contacting_source_host asserts (reproduced locally: failed on c46354d). Fixed by keeping the escape hatch in the hint rather than weakening the contract (resolved in 5590e41).
  • docs/src/content/docs/enterprise/registry-proxy.md -- LEGIT: "only the upstream host can provide" kept the refuted premise (resolved in 7241086).

Regression-trap evidence (mutation-break gate)

  • tests/unit/deps/test_ref_enumeration_proxy.py::TestGitSemverResolverRegistryOnly::test_raises_and_never_lists_refs and tests/integration/test_registry_only_enumeration_contract.py::test_install_range_fails_with_remedy_without_contacting_source_host -- deleted the or unset PROXY_REGISTRY_ONLY ... hint clause; both tests FAILED as expected; guard restored (unit class 4 passed, integration 1 passed).

Lint contract

uvx [email protected] check and format --check over src/ tests/ scripts/lint_architecture_boundaries.py scripts/architecture_linter/ scripts/windows_native_symlink_probe_entry.py silent; pylint R0801 10.00/10; bash scripts/lint-auth-signals.sh clean; python scripts/lint_architecture_boundaries.py --root . and bash scripts/lint-architecture-boundaries.sh exit 0 (all on the merged head).

CI

23 checks pass, 3 skipped/neutral on 4a244a0 (after 0 CI fix iteration(s)).

Mergeability status

PR head SHA CEO stance iters folds defers Copilot rounds CI mergeable mergeStateStatus notes
#3777 4a244a0 ship_now 1 5 0 2 green MERGEABLE BLOCKED pending required review

Convergence

1 outer iteration(s); 2 Copilot round(s). Final panel stance: ship_now. Ready for maintainer review; landing is held for after v0.36.1 is tagged (milestone 0.37.0).

This panel is advisory. It does not block merge. Re-apply the
panel-review label after addressing feedback to re-run.


Generated by autopilot-pr-review-worker. This comment is AI-generated and may contain errors.

@danielmeppiel
Daniel Meppiel (danielmeppiel) force-pushed the danielmeppiel-3756-registry-proxy-ranges branch from 4a244a0 to 16f49ba Compare November 18, 2026 06:41
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 18, 2026
The reworded RegistryOnlySemverError hint dropped "unset
PROXY_REGISTRY_ONLY", which the installed-CLI contract
test_install_range_fails_with_remedy_without_contacting_source_host
asserts. Restore it as the third option, tighten the hint so it no
longer states the premise twice, and reflow the 111-char docstring
line. A unit assertion now traps the escape hatch (mutation-break
verified: removing the clause fails the unit and integration tests).

Addresses panel follow-up 3 (doc-writer, hint verbosity) on #3777.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 18, 2026
registry-proxy.md still said a version listing is something only the
upstream host can provide, contradicting the APM Registry HTTP API
route named a few lines below. The apm-guide authentication resource
still said the proxy has no tag listing. Both now state that APM does
not list through the proxy by design and name the supported routes;
the troubleshooting row matches the error hint.

Addresses panel follow-ups 1 and 2 (doc-writer) on #3777.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 18, 2026
The #3775 and #3783 entries landed inside the [0.36.1] block when main
was merged; they ship in 0.37.0. Move them, with #3777, under [Unreleased].

Co-authored-by: Copilot App <[email protected]>
…he supported routes (#3756)

Registry proxies such as Artifactory do have listing APIs; APM simply
fetches exact versions only through a proxy and does not call vendor
listing APIs. registry-proxy.md now says so and names the two supported
routes under PROXY_REGISTRY_ONLY: exact pins plus lockfile replay, or a
server implementing the APM Registry HTTP API
(GET /v1/packages/{owner}/{repo}/versions). The RegistryOnlySemverError
hint names the same two routes; apm view versions and apm outdated drop
the same false claim. No resolution behavior changes.

apm-spec-waiver: message and documentation wording only; no resolver behavior change.

Co-authored-by: Copilot App <[email protected]>
The reworded RegistryOnlySemverError hint dropped "unset
PROXY_REGISTRY_ONLY", which the installed-CLI contract
test_install_range_fails_with_remedy_without_contacting_source_host
asserts. Restore it as the third option, tighten the hint so it no
longer states the premise twice, and reflow the 111-char docstring
line. A unit assertion now traps the escape hatch (mutation-break
verified: removing the clause fails the unit and integration tests).

Addresses panel follow-up 3 (doc-writer, hint verbosity) on #3777.

Co-authored-by: Copilot App <[email protected]>
registry-proxy.md still said a version listing is something only the
upstream host can provide, contradicting the APM Registry HTTP API
route named a few lines below. The apm-guide authentication resource
still said the proxy has no tag listing. Both now state that APM does
not list through the proxy by design and name the supported routes;
the troubleshooting row matches the error hint.

Addresses panel follow-ups 1 and 2 (doc-writer) on #3777.

Co-authored-by: Copilot App <[email protected]>
The #3775 and #3783 entries landed inside the [0.36.1] block when main
was merged; they ship in 0.37.0. Move them, with #3777, under [Unreleased].

Co-authored-by: Copilot App <[email protected]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) force-pushed the danielmeppiel-3756-registry-proxy-ranges branch from 16f49ba to e3cda9e Compare November 18, 2026 06:57
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 73b298b into main Nov 18, 2026
30 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-3756-registry-proxy-ranges branch November 18, 2026 07:13
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.

[FEATURE] Resolve semver ranges through the Artifactory registry proxy when PROXY_REGISTRY_ONLY is on

2 participants