Repository navigation
Description
Follow-up to #913. Surfaced by the APM Expert Review Panel (CLI Logging specialist). MEDIUM severity, cosmetic / discoverability. CEO arbitration: acceptable as follow-ups.
1. _valid_config_keys() leaks cowork-skills-dir when flag is off
File: src/apm_cli/commands/config.py:56 (approx)
cowork-skills-dir always appears in the valid-keys list used for error messages. A user with the cowork flag disabled sees this key in "unknown config key" suggestions — leaks experimental surface awareness.
Display-side gating is already correct in apm config list (the row is hidden when the flag is off). Mirror that pattern here.
Fix: gate cowork-skills-dir in _valid_config_keys() on experimental.is_enabled("cowork"). unset path stays ungated (safety valve).
2. Verbose target log prints placeholder root_dir instead of resolved OneDrive path
File: src/apm_cli/install/phases/targets.py:70-71
The --verbose target listing prints cowork (~/cowork/) — the placeholder root_dir from the TargetProfile constructor — instead of the real resolved OneDrive path. Debugging output becomes actively misleading.
Fix: when logging cowork, prefer target.resolved_deploy_root (or target.deploy_path() result) over target.root_dir.
Acceptance criteria
-
apm config set unknown-key valuewithcoworkflag OFF does not mentioncowork-skills-dirin the valid-keys list; with flag ON it does. -
apm install --target cowork --global --verboseprints the actual resolved OneDrive directory. - Unit tests for both branches of the config-key gating.
/cc panel review: #913
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]Cowork diagnostic polish — hide experimental key and fix verbose log[/-][+]VOID[/+][-]VOID[/-][+]Cowork diagnostic polish — hide experimental key and fix verbose log[/+]4 remaining items
github-actions commentedon Apr 27, 2026
Triage decision
accept
Proposed labels
Milestone
null
Suggested next action
Fix both items in one PR: gate
cowork-skills-dirin_valid_config_keys()onexperimental.is_enabled("cowork"), and prefertarget.deploy_path()result overtarget.root_dirin the cowork verbose log line.Suggested issue comment
Per-lens notes (collapsed)
DevX UX Expert -- User-Need Reviewer
Item 1 maps directly to the "failure mode is the product" principle: surfacing config keys the user cannot set produces confusing errors. The display-side gating in
apm config listalready does the right thing; the error-suggestion path is an oversight. Item 2 is a diagnostic accuracy bug:--verboseis a debugging tool and printing a placeholder path instead of the real one is actively misleading. Both are real DX regressions under the cowork experimental flag.Supply Chain Security Expert -- Risk-Surface Reviewer
No risk-surface implication. Item 1 is a display-side information-hygiene improvement (not leaking unknown feature keys). Item 2 is a logging accuracy fix. Neither touches auth, lockfile integrity, path security, or MCP trust boundaries.
OSS Growth Hacker -- Contributor-Tone Reviewer
Not activated -- sergio-sisternes-epam is a known collaborator; no first-time-contributor tone adjustment needed.
Python Architect -- Architecture Reviewer
Not activated -- both fixes are single-line changes at known file:line locations with no cross-cutting design implication. Item 1 adds one conditional gate mirroring an existing pattern. Item 2 swaps one variable reference. No new abstractions, no interface changes, no module boundaries crossed.
Doc Writer -- Documentation Reviewer
Not activated -- these are bug fixes with no new CLI surface or config key. The experimental-flags reference doc does not need updating for a gate-and-log-fix at this level.
APM CEO -- Triage Arbiter
Clean accept. Both items are well-diagnosed bugs with known fixes and test acceptance criteria. They improve the cowork DX without touching any security or interface boundary. Non-blocking, no milestone pressure. Land alongside #922 if convenient.
fix: gate cowork-skills-dir in valid-keys and use resolved path in ve…
fix: gate cowork-skills-dir in valid-keys and use resolved path in ve…
fix: hide experimental cowork config key and fix verbose target log (#…