You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pm init --agent-guidance emits run-tests.mjs command that often does not exist #529
pm init --agent-guidance add writes an auto-managed AGENTS.md guidance block that includes a linked-test example command:
node scripts/run-tests.mjs test -- ...
In repositories where that script is not present (and pm does not generate it), the guidance is misleading and pushes contributors toward a non-existent command.
Repro
In a repo without scripts/run-tests.mjs, run:
pm init
pm init --agent-guidance add
Open AGENTS.md and inspect the auto-managed pm Workflow (Agent Quickstart) block.
Observe the line:
pm test <id> --add command="node scripts/run-tests.mjs test -- ..."
Verify scripts/run-tests.mjs is absent.
Actual
The generated guidance suggests a command that is not guaranteed to exist.
Expected
Generated guidance should use a command pattern that is always valid (or clearly marked as placeholder), e.g. a repo-agnostic script command that exists in the project, or a generic pm test <id> --add command="<your project test command>" template.
Why this matters
This block is auto-managed and intended as trusted onboarding guidance for both humans and agents. A non-existent command causes avoidable confusion and policy drift in pm-linked test evidence.
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
Create Plan
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
Activity
coderabbitai commentedon Jul 12, 2026
🔗 Related PRs
#142 - Guard pm tracker path targeting for agents [closed]
#199 - MCP workspace tools (pm_schema/pm_config/pm_append), query_summary, MCP contract snapshot, GH-191 two-token test --add, coverage ratchet 82/74/86/82 [closed]
#229 - Improve agent UX, linked-test lifecycle, and coverage ratchet [closed]
#428 - Harden SDK extension runtime packaging [merged]
#491 - Harden init target safety and package install verification [merged]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
unbraind commentedon Jul 13, 2026
pm tracker item: pm-surv
chore(pm): review pass #76 — reconcile PR#531/#536 lanes, file nightl…
unbraind commentedon Aug 18, 2026
Canonical PM item:
pm-surv.unbraind commentedon Aug 19, 2026
Implemented in PR #1063. PM lineage: https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-surv.toon
unbraind commentedon Aug 19, 2026
Resolved by merged PR #1063 at f4cbd5f. Generated agent test guidance now detects project scripts/package-manager intent and uses a safe placeholder when no runnable command exists. Canonical PM item: https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-surv.toon