Skip to content

[FEATURE] Feature request: sync/check/status/doctor workflow for installed context #1537

@yogurtearl

Description

@yogurtearl

Feature request: sync/check/status/doctor workflow for installed context

At a glance

  • Problem: after install, the operational questions are scattered across multiple commands and manual inspection.
  • Why it matters: CI and day-to-day maintenance need a simple, repeatable workflow.
  • Example syntax:
apm sync
apm sync --update
apm check
apm status
apm doctor

Is your feature request related to a problem? Please describe.

Yes. After APM installs context, teams still need to answer a few basic questions quickly:

  • what is installed here?
  • does the working tree still match the lockfile?
  • why did refresh fail on this machine or in CI?

Today those answers are spread across apm install, apm compile, lockfile inspection, and generic git diff.

Describe the solution you'd like

Add a first-class lifecycle for installed context.

Example syntax:

apm sync            # materialize from the lockfile
apm sync --update   # refresh refs and rewrite the lockfile
apm check           # fail on drift between generated output and lock state
apm status          # show packages, refs, and output locations
apm doctor          # surface auth, cache, config, and environment problems

Even if these start as thin wrappers around existing behavior, the value is having one obvious workflow for both humans and CI.

Describe alternatives you've considered

  • apm install + apm compile
  • inspect apm.lock.yaml directly
  • use git diff to detect drift
  • piece together troubleshooting from multiple commands

That works, but it is harder to teach, harder to automate, and slower to debug.

Additional context

This would make APM easier to operate at scale. Repos that rely on generated agent context usually need deterministic installs, a CI-safe drift check, a quick status view, and a fast way to diagnose environment issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliCLI command surface, flags, help text (cross-cutting).area/docs-sitedocs/src/content (Starlight), README, doc generation.status/needs-designDirection approved, design discussion required before code.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).theme/portabilityOne manifest, every target. Multi-target deploy, marketplace, packaging, install.type/featureNew capability, new flag, new primitive.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions