Repository navigation
Description
Describe the bug
apm fails at core functionality.
To Reproduce
Steps to reproduce the behavior:
-
Make an apm.yml with 1 dependency:
name: x version: 0.1.0 description: APM project for x author: Peter Mounce dependencies: apm: - JuliusBrussee/caveman#84cc3c14 mcp: [] scripts: {} target: opencode,claude,copilot,agents
-
Run
apm install -
Command completes.
apm_modules/is created with the dependency within. -
No content is "deployed" to the filesystem of the repository.
.claude/skills,.github/skills,.opencode/skills,.agents/skillsare all empty. -
Run
apm compile -
No content is "deployed" to the filesystem of the repository.
.claude/skills,.github/skills,.opencode/skills,.agents/skillsare all empty.
Expected behavior
I expect the caveman skills to be deployed into the places where the agents will load them, based on reading the documentation's quick-start.
Instead, I get successful exit codes and log messages - but no actions appear to have been actually taken.
Environment (please complete the following information):
- OS: macOs
- Python Version: 3.14.3
- APM Version: 0.8.12
- VSCode Version (if relevant): n/a
Logs
apm install --verbose
[>] Installing dependencies from apm.yml...
Parsed apm.yml: 1 APM deps, 0 MCP deps
Using apm.lock.yaml (1 locked dependencies)
JuliusBrussee/caveman: locked at 84cc3c14
Resolved 1 direct dependencies (no transitive)
[+] JuliusBrussee/caveman #84cc3c14 @84cc3c14 (cached)
No MCP dependencies found in apm.yml
[*] Installed 1 APM dependency.apm compile --clean
[*] Starting context compilation...
[i] Compiling for AGENTS.md + CLAUDE.md + .github/ + .claude/ + .cursor/ + .opencode/ + .codex/ + .agents/ - detected .github/ and .claude/ and .opencode/ folders
[+] Compilation completed successfully!ls -al .opencode .claude .github
.claude:
total 16
drwxr-xr-x@ 4 pmounce staff 128 21 Apr 17:32 .
drwxr-xr-x@ 45 pmounce staff 1440 21 Apr 18:12 ..
-rw-r--r--@ 1 pmounce staff 32 16 Apr 11:46 .gitignore
-rw-r--r-- 1 pmounce staff 18 21 Apr 17:36 settings.json
.github:
total 24
drwxr-xr-x@ 9 pmounce staff 288 21 Apr 17:32 .
drwxr-xr-x@ 45 pmounce staff 1440 21 Apr 18:12 ..
drwxr-xr-x@ 7 pmounce staff 224 16 Apr 11:46 actions
-rw-r--r--@ 1 pmounce staff 1365 16 Apr 11:46 CODEOWNERS
-rw-r--r--@ 1 pmounce staff 2006 16 Apr 11:46 dependabot.yml
drwxr-xr-x 3 pmounce staff 96 21 Apr 17:32 hooks
-rw-r--r--@ 1 pmounce staff 0 16 Apr 11:46 pull_request_template.md
drwxr-xr-x@ 5 pmounce staff 160 16 Apr 11:46 workflows
-rw-r--r--@ 1 pmounce staff 54 16 Apr 11:46 zizmor.yml
.opencode:
total 0
drwxr-xr-x 2 pmounce staff 64 21 Apr 18:03 .
drwxr-xr-x@ 45 pmounce staff 1440 21 Apr 18:12 ..tree apm_modules/JuliusBrussee/caveman
apm_modules/JuliusBrussee/caveman
├── AGENTS.md
├── benchmarks
│ ├── prompts.json
│ ├── requirements.txt
│ ├── results
│ └── run.py
├── caveman
│ └── SKILL.md
├── caveman-compress
│ ├── README.md
│ ├── scripts
│ │ ├── __init__.py
│ │ ├── __main__.py
│ │ ├── benchmark.py
│ │ ├── cli.py
│ │ ├── compress.py
│ │ ├── detect.py
│ │ └── validate.py
│ ├── SECURITY.md
│ └── SKILL.md
├── caveman.skill
├── CLAUDE.md
├── CLAUDE.original.md
├── commands
│ ├── caveman-commit.toml
│ ├── caveman-review.toml
│ └── caveman.toml
├── CONTRIBUTING.md
├── docs
│ └── index.html
├── evals
│ ├── llm_run.py
│ ├── measure.py
│ ├── plot.py
│ ├── prompts
│ │ └── en.txt
│ ├── README.md
│ └── snapshots
│ └── results.json
├── gemini-extension.json
├── GEMINI.md
├── hooks
│ ├── caveman-activate.js
│ ├── caveman-config.js
│ ├── caveman-mode-tracker.js
│ ├── caveman-statusline.ps1
│ ├── caveman-statusline.sh
│ ├── install.ps1
│ ├── install.sh
│ ├── package.json
│ ├── README.md
│ ├── uninstall.ps1
│ └── uninstall.sh
├── LICENSE
├── plugins
│ └── caveman
│ ├── assets
│ │ ├── caveman-small.svg
│ │ └── caveman.svg
│ └── skills
│ ├── caveman
│ │ ├── agents
│ │ │ └── openai.yaml
│ │ ├── assets
│ │ │ ├── caveman-small.svg
│ │ │ └── caveman.svg
│ │ └── SKILL.md
│ └── compress
│ ├── scripts
│ │ ├── __init__.py
│ │ ├── __main__.py
│ │ ├── benchmark.py
│ │ ├── cli.py
│ │ ├── compress.py
│ │ ├── detect.py
│ │ └── validate.py
│ └── SKILL.md
├── README.md
├── rules
│ └── caveman-activate.md
├── skills
│ ├── caveman
│ │ └── SKILL.md
│ ├── caveman-commit
│ │ └── SKILL.md
│ ├── caveman-help
│ │ └── SKILL.md
│ ├── caveman-review
│ │ └── SKILL.md
│ └── compress
│ ├── scripts
│ │ ├── __init__.py
│ │ ├── __main__.py
│ │ ├── benchmark.py
│ │ ├── cli.py
│ │ ├── compress.py
│ │ ├── detect.py
│ │ └── validate.py
│ └── SKILL.md
└── tests
├── caveman-compress
│ ├── claude-md-preferences.md
│ ├── claude-md-preferences.original.md
│ ├── claude-md-project.md
│ ├── claude-md-project.original.md
│ ├── mixed-with-code.md
│ ├── mixed-with-code.original.md
│ ├── project-notes.md
│ ├── project-notes.original.md
│ ├── todo-list.md
│ └── todo-list.original.md
├── test_hooks.py
└── verify_repo.py
31 directories, 83 filesAdditional context
I have experimented with adding path: skills/caveman to the dep; that changes the log output such that a skill is recognised - but still no content is placed into my git working tree.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
danielmeppiel commentedon Apr 21, 2026
Peter Mounce (@petemounce) the target logic in the manifest has been updated and the docs reflect stuff in HEAD instead of v0.8.12. I'll ship v0.9.0 and we will work on fixing the docs issue. As a workaround, ensure you create the
.githuband related folders and they should be populated. If they do not exist, v0.8.12 won't create them.danielmeppiel commentedon Apr 21, 2026
Peter Mounce (@petemounce) can you try with v0.9.0 that was just released?
petemounce commentedon Apr 22, 2026
Daniel Meppiel (@danielmeppiel) No change in behaviour with v0.9.0. I ran without, and with, my script creating the directories I expect content to be deployed into.
Without creating directories first, v0.9.0):
Creating directories first, v0.9.0):
Is my expectation incorrect? It is:
apm_modules"staging" areatargetcontents, for each targetcreate the target's directory tree (and log that, if verbose)
note: this is my own expectation on UX; it means on a fresh clone that might not have directory trees for the targets, there are no precursor steps for a potentially-unfamiliar newcomer to get tripped up by not having done
write the content into the target's directory tree (and log that, if verbose)
My observations are unchanged 0.8.12 to 0.9.0:
Is there anything potentially weird about my use-case - a github hosted skill repo that have several skills within, that I am yanking out 1 via the
skills/cavemanpath?petemounce commentedon Apr 22, 2026
I just changed from
target: opencode,claude,copilot,agentstotarget: [opencode,claude,copilot,agents]and the output changed:The skill has been installed into each target.
I haven't read the apm codebase; this observed behaviour (when
targetwas CSV - and presumably invalid in 0.9.0 vs 0.8.12 - it seems that apm silently failed to install the content rather than log a warning or fail-hard) suggests to me that some input-validation is called for to fail-hard on invalid input.edenfunf commentedon Apr 25, 2026
Dug into this and found the root cause spans three layers. Wanted to surface the findings plus a design question before opening a PR, since there are a couple of existing constraints that pull in opposite directions.
Root cause
With
target: opencode,claude,copilot,agentsin apm.yml (CSV string), here's the exact chain:APMPackage.from_apm_yml(src/apm_cli/models/apm_package.py:209) stores the value as-is:target=data.get('target'). No type check or normalization — theUnion[str, List[str]]hint is purely advisory.active_targets(src/apm_cli/integration/targets.py:426-433) takes the single-string branch:Note this is asymmetric with the list branch at line 424, which falls back to copilot on all-unknown:
return profiles if profiles else [KNOWN_TARGETS["copilot"]].Log gate (
src/apm_cli/install/phases/targets.py:52):if ctx.logger and _targets:— when_targets == []the "Active project targets:" line never prints. That's why the verbose output in the CSV run had no target line at all, but the list run showedActive project targets: opencode, claude, copilot.The deeper asymmetry
CLI
--targetand apm.ymltarget:both flow intoactive_targets, but only the CLI path is normalized:TargetParamType(src/apm_cli/core/target_detection.py:296-366) already handles CSV splits, whitespace, case, and rejects unknown values with a clear error. apm.yml bypasses it entirely — which is why the same string behaves differently depending on which entry point you use.Downstream readers of
apm_package.targetthat inherit this:src/apm_cli/install/phases/targets.py:36src/apm_cli/commands/compile/cli.py:383(also silently swallows parse errors viaexcept Exception: pass)src/apm_cli/bundle/packer.py:87src/apm_cli/commands/uninstall/engine.py:242Two existing constraints that push the other way
Both make a simple "fail hard on invalid target" fix non-obvious:
Existing test (
tests/unit/integration/test_targets.py:97-99) locks in the current behavior:So today's
return []looks intentional, not accidental.Spec (
docs/src/content/docs/reference/manifest-schema.md:115):The request for fail-hard validation is in direct tension with this line.
Three fix directions
APMPackage.from_apm_ymlvalidatestarget; CSV / typo / unknown →ValueErrorpointing at apm.ymltest_explicit_unknown_returns_emptynormalize_target()used by bothTargetParamType.convertandfrom_apm_ymlMy read is A gives the best UX given the report, but it's not a clean drop-in — spec line 115 and the existing test both need updating, and that's a product call, not a technical one.
Could you weigh in on which direction fits the current design intent? Happy to put up a PR once you've picked one.
github-actions commentedon Apr 26, 2026
Triage decision
accept
Proposed labels
Milestone
0.9.4
Suggested next action
Reproduce with
tree apm_modules/JuliusBrussee/cavemanto confirm the package structure, then trace the skill integration path fromdetect_package_type()through the skill integrator to determine why no files are deployed despite a successful install and compile.Suggested issue comment
Per-lens notes (collapsed)
DevX UX Expert -- User-Need Reviewer
This is a critical DX failure: the quickstart guide promises that
apm install+apm compiledeploys skills to the agent directories. The user followed the guide and got exit 0, success messages, and nothing deployed. Silent success with no effect is the worst possible DX outcome for a package manager. The root cause may be package type detection (thecavemanpackage appears to use an AGENTS.md-at-root format that may not be recognized by the skill integrator) or an integration step that silently skips.Supply Chain Security Expert -- Risk-Surface Reviewer
No risk-surface implication. The bug is about deployment failure, not about incorrect deployment. No supply-chain, auth, or lockfile surface is touched.
OSS Growth Hacker -- Contributor-Tone Reviewer
petemounce has
author_association: NONE-- this is their first or one of very few interactions with microsoft/apm. The bug report is excellent: clear reproduction steps, exact logs, environment info. The response should warmly acknowledge the quality of the report, be honest that we do not yet know the root cause, ask targeted diagnostic questions, and commit to investigating independently. Avoid making them feel like they did something wrong -- this is a genuine bug.Python Architect -- Architecture Reviewer
Not activated -- this is a defect investigation in existing detection/integration code, not a design question. The likely root cause is in
detect_package_type()(package classified as non-skill type) or the skill integrator's file-discovery logic (no files found in expected subdirectories). Both are existing code paths; no cross-cutting design decision is needed before investigation begins.Doc Writer -- Documentation Reviewer
Not activated -- this is a bug fix with no new user-facing documentation needed. If the root cause turns out to be a documentation gap (e.g., packages must have a specific directory layout to have skills deployed), a quickstart clarification may be warranted, but that decision belongs in the PR.
APM CEO -- Triage Arbiter
Silent success with zero deployment is a critical DX regression against the quickstart promise. Accept at priority/high for 0.9.4. The Python 3.14 pre-release environment is a possible confound but should not be the first hypothesis -- reproduce on 3.12 first. The Growth Hacker tone recommendation is important: petemounce filed a high-quality first report and deserves a warm, honest, and investigative response.
{ "decision": "accept", "decision_detail": "", "theme": null, "areas": ["area/cli"], "type": "type/bug", "status": "status/accepted", "priority": "priority/high", "preserved_labels": [], "milestone": "0.9.4", "next_action": "Reproduce with tree apm_modules/JuliusBrussee/caveman output and trace the skill integration path to find why no files deploy despite exit 0.", "comment_markdown": "Thanks for the detailed report -- this is a critical failure: `apm install` and `apm compile` both exit 0 with success messages but deploy nothing. That is the worst-case DX failure (silent success with no effect) and we want to get to the bottom of it.\n\nA couple of diagnostic questions to help narrow down the root cause:\n\n1. Can you share the full output of `tree apm_modules/JuliusBrussee/caveman`? The truncated output shows `AGENTS.md` and `ben` at the root -- if the package does not have a `.github/skills/` or `.apm/skills/` subdirectory with `.md` files, APM may be classifying it as a non-skill package type and skipping integration silently.\n\n2. What does `apm compile --verbose` show for the skill integration step? (The current log shows target detection but no skill-count or integration-result lines.)\n\n3. Your Python version is 3.14.3, which is a pre-release/beta version. While APM targets 3.12+, we have not tested on 3.14 specifically. If possible, can you try with Python 3.12 to rule out a runtime regression?\n\nIf `JuliusBrussee/caveman` uses `AGENTS.md` as its skill definition (a top-level instructions format) rather than a `.github/skills/*.md` layout, the integration path may not be detecting it as a deployable skill package. We will reproduce independently and update this issue." }15 remaining items
chore(release): cut 0.11.0
chore(changelog): de-dupe within 0.11.0 (combine #722 Removed bullets…
chore(release): cut 0.11.0
chore(changelog): de-dupe within 0.11.0 (combine #722 Removed bullets…
chore(release): cut 0.11.0 (#1049)
danielmeppiel commentedon May 15, 2026
Fixed in v0.11.0 via #987 and verified against v0.13.0 (build 9216516).
apm installnow validatestarget:in apm.yml at parse time using the same normalization as--target, so the CSV-string form (target: opencode,claude,copilot,agents) no longer silently succeeds while deploying nothing — it fails fast with[x] Unknown target 'agents', lists valid targets, and points you attargets:(list form) plusapm install --target copilotas the fix. Reproduced your original apm.yml end-to-end and confirmed the new error path. Closing as fixed. Thanks for the detailed report (and to Eden (@edenfunf) for the root-cause writeup).fix(targets): validate apm.yml target: at parse time, share normaliza…
chore(release): cut 0.11.0 (#1049)