Skip to content

Cowork diagnostic polish — hide experimental key and fix verbose log #923

Closed

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 value with cowork flag OFF does not mention cowork-skills-dir in the valid-keys list; with flag ON it does.
  • apm install --target cowork --global --verbose prints the actual resolved OneDrive directory.
  • Unit tests for both branches of the config-key gating.

/cc panel review: #913

Activity

  1. added
    enhancement
    area/multi-target
    on Apr 24, 2026
  2. changed the title [-]Cowork diagnostic polish — hide experimental key and fix verbose log[/-] [+]VOID[/+] on Apr 24, 2026
  3. removed
    enhancement
    area/multi-target
    on Apr 24, 2026
  4. changed the title [-]VOID[/-] [+]Cowork diagnostic polish — hide experimental key and fix verbose log[/+] on Apr 25, 2026
  5. added
    enhancement
    area/multi-target
    on Apr 25, 2026
  6. 4 remaining items

  7. added
    status/accepted
    enhancement
    and removed
    type/feature
    status/accepted
    on Apr 25, 2026
  8. github-actions commented on Apr 27, 2026

    @github-actions

    Triage decision

    accept

    Proposed labels

    area/multi-target
    area/cli
    type/bug
    status/accepted
    

    Milestone

    null

    Suggested next action

    Fix both items in one PR: gate cowork-skills-dir in _valid_config_keys() on experimental.is_enabled("cowork"), and prefer target.deploy_path() result over target.root_dir in the cowork verbose log line.

    Suggested issue comment

    Thanks for the precise diagnosis on both items -- file-line references and acceptance criteria make this immediately actionable.
    
    Triage summary:
    
    - **Item 1** (config-key leak): surfacing `cowork-skills-dir` in error suggestions when the flag is off is a DX bug -- users see a key they cannot use. The display-side gating already exists in `apm config list`; mirroring it in `_valid_config_keys()` is a low-risk, well-precedented fix.
    - **Item 2** (verbose log placeholder): `--verbose` showing `~/cowork/` instead of the resolved OneDrive path makes debugging output actively misleading. Prefer `target.deploy_path()` (or `target.resolved_deploy_root`) over `target.root_dir` in that log line.
    - **Security**: no risk surface touched.
    - **Architecture**: no cross-cutting design needed. Two isolated, one-line-each fixes.
    
    Decision: **accept**. Both are `type/bug` under the cowork experimental flag.
    
    Next step: ship a single PR with both fixes and unit tests for the two branches of the config-key gating (flag ON: key appears; flag OFF: key absent).

    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 list already does the right thing; the error-suggestion path is an oversight. Item 2 is a diagnostic accuracy bug: --verbose is 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.


    Triage status: agentic proposal pending human ratification.
    Silence is approval. Maintainers can:

    • Override any label or milestone above by editing it directly --
      human edits are authoritative and will not be reverted on
      subsequent runs.
    • Re-trigger triage by applying the status/needs-triage label, or
      by removing status/triaged to enroll the issue in the next
      daily sweep.

    Posted by the Triage Panel workflow. See .apm/skills/apm-triage-panel for the panel skill.

    Generated by Triage Panel · ● 1.8M · ◷

  9. added
    area/cli
    status/accepted
    status/triaged
    type/bug
    on Apr 27, 2026
  10. moved this from Done to In Progress in APM Roadmapon May 10, 2026
  11. added 2 commits that reference this issue on May 10, 2026
    dcd210a
    d21baf0
  12. moved this from In Progress to Done in APM Roadmapon May 10, 2026
  13. added a commit that references this issue on May 19, 2026
    a1f1826
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/cliarea/multi-targetenhancementexperimentalstatus/acceptedstatus/triagedtype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions