Repository navigation
docs(registry-proxy): correct the range premise and name the supported routes - #3777
Daniel Meppiel (danielmeppiel) merged 5 commits into
Conversation
Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🟡 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, andoutdatedmessages 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
APM Review Panel:
|
| 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
- [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.
- [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.
- [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.
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]>
APM Review Panel:
|
| 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.mddrops "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_ONLYescape hatch restored; the troubleshooting row now matches -- resolved in 5590e41 / 7241086. - (merge-worker) 111-char docstring line reflowed -- resolved in 5590e41.
- (merge-worker) merged
mainto clear a CONFLICTING merge state sopull_requestCI could run -- resolved in 4a244a0.
Copilot signals reviewed
src/apm_cli/deps/git_semver_resolver.py-- LEGIT: the new hint droppedunset PROXY_REGISTRY_ONLY, whichtests/integration/test_registry_only_enumeration_contract.py::test_install_range_fails_with_remedy_without_contacting_source_hostasserts (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_refsandtests/integration/test_registry_only_enumeration_contract.py::test_install_range_fails_with_remedy_without_contacting_source_host-- deleted theor 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.
4a244a0 to
16f49ba
Compare
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]>
…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]>
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]>
16f49ba to
e3cda9e
Compare


Description
With
PROXY_REGISTRY_ONLY=1, a semver range inapm.ymlfails, 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.RegistryOnlySemverErrorhint (deps/git_semver_resolver.py, the single owner of this refusal) names the same two routes and links the docs section.apm view <pkg> versionsandapm outdatedmessages drop the same false claim (wording only).No resolution behavior changes: same refusal, same exit codes, same
PROXY_REGISTRY_ONLYsemantics. 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
Testing
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_refsfails (1 failed, 30 passed).uvx [email protected] check src/ tests/andformat --check: clean.Spec conformance (OpenAPM v0.1)