Skip to content

docs: say the package manager fallback is npm - #3855

Merged
haelyra merged 1 commit into
affaan-m:mainfrom
NotAFlightRisk:docs/pm-fallback-npm
Nov 16, 2026
Merged

haelyra merged 1 commit into
affaan-m:mainfrom
NotAFlightRisk:docs/pm-fallback-npm

Conversation

@NotAFlightRisk

@NotAFlightRisk NotAFlightRisk commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What Changed

The last step of the package manager detection order, in the README and /setup-pm, now says npm.

Why This Change

With no env var, config or lockfile to go on, ECC picks npm, even if you've got pnpm or bun installed. That's been the case since the fix for #162 stopped it checking what's installed, and the detector's own test ("defaults to npm when no config found") expects it. Both lists still say it falls back to the first one installed though, and /setup-pm even gives the order as pnpm > bun > yarn > npm.

Testing Done

  • Manual testing completed - nothing to run, it's two lines of docs. I checked them against the detection code and that test
  • Automated tests pass locally (node tests/run-all.js) - didn't run them, nothing they cover has changed
  • Edge cases considered and tested - n/a

Type of Change

  • fix: Bug fix
  • feat: New feature
  • refactor: Code refactoring
  • docs: Documentation (about as small as they come)
  • test: Tests
  • chore: Maintenance/tooling
  • ci: CI/CD changes

Security & Quality Checklist

  • No secrets or API keys committed (ghp_, sk-, AKIA, xoxb, xoxp patterns checked)
  • JSON files validate cleanly (no JSON in this one)
  • Shell scripts pass shellcheck (if applicable) (no shell either)
  • Pre-commit hooks pass locally (if configured) (none set up here)
  • No sensitive data exposed in logs or output
  • Follows conventional commits format

If you changed dependencies or package.json (bin / files / deps)

  • Ran yarn install --mode=update-lockfile and committed the yarn.lock change. CI runs Yarn in hardened mode on public PRs and fails if the lockfile would be modified, so an out of date yarn.lock breaks the build even when nothing else is wrong.

If you added a skill, command, agent, hook, or CLI tool

  • Registered in package.json (bin and files), manifests/install-components.json, manifests/install-modules.json, and agent.yaml
  • Regenerated the catalog (npm run catalog:sync) and command registry (npm run command-registry:write)
  • Updated the docs tables it belongs in (README.md, COMMANDS-QUICK-REF.md, docs/COMMAND-AGENT-MAP.md)
  • If it ships a new script path, added it to the publish surface allowlist (tests/scripts/npm-publish-surface.test.js)
  • Cross-harness surfaces updated if applicable (for Codex, .agents/skills/<name>/ plus agents/openai.yaml; the Codex frontmatter validator allows only name, description, metadata, license, allowed-tools, so drop keys like version from that copy)
  • Full gauntlet passes locally (npm test)

Documentation

  • Updated relevant documentation - the es, pt-BR and tr copies of setup-pm.md have the same line, I've left those alone
  • Added comments for complex logic (n/a)
  • README updated (if needed)

@ecc-tools

ecc-tools Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Security Evidence

Commit: f408fb12d40274b6adce5370407fc936e3e86efb

Security evidence gate passed (success)

No security-sensitive scanner-evidence gap detected.

Mode: enforce

Scanned 2 changed file(s). No missing scanner-evidence signal was detected.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Risk Taxonomy

Commit: f408fb12d40274b6adce5370407fc936e3e86efb

PR taxonomy review recommended (neutral)

Detected 6 PR taxonomy bucket(s): Harness Drift, Install Manifest Integrity, CI/CD Recommendation, Reference Set Validation, Skill Quality, Agent Config Review.

Scanned 2 changed file(s).

Roadmap taxonomy buckets:

Harness Drift

Harness-facing changes can drift across Claude Code, Codex, OpenCode, and shared adapter surfaces.

Signals:

  • Harness config changes may ship without compatibility evidence
  • 1 harness-facing path(s) changed

Paths:

  • commands/setup-pm.md

Install Manifest Integrity

Install manifests, plugin metadata, and shipped skills should stay synchronized with user-facing setup guidance.

Signals:

  • 1 install or manifest path(s) changed

Paths:

  • commands/setup-pm.md

CI/CD Recommendation

CI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work.

Signals:

  • CLI changes may ship without shell or end-to-end coverage
  • 0 CI or workflow path(s) changed

Paths:

  • README.md
  • commands/setup-pm.md

Reference Set Validation

AI, analyzer, skill, agent, command, and harness guidance changes should be compared against a maintained eval, golden trace, benchmark, or reference set.

Signals:

  • AI or harness analysis changes may ship without reference-set validation
  • 1 reference-sensitive path(s) changed

Paths:

  • commands/setup-pm.md

Skill Quality

Skill, agent, command, and rule guidance should carry examples, triggers, validation, or reference evidence.

Signals:

  • Skill or agent guidance may ship without quality evidence
  • 1 skill-quality path(s) changed

Paths:

  • commands/setup-pm.md

Agent Config Review

Agent, command, skill, MCP, and local instruction changes should be reviewed as executable agent configuration.

Signals:

  • 1 agent-config path(s) changed

Paths:

  • commands/setup-pm.md

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Reference Set Readiness

Commit: f408fb12d40274b6adce5370407fc936e3e86efb

Reference set readiness gaps detected (neutral)

Reference evidence present for 0/7 areas (0%) across 2 changed file(s).

This check is based on files changed in this PR. Repository-level readiness is still reported by /ecc-tools analyze comments and generated manifests.

Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Hosted Promotion Readiness

Commit: f408fb12d40274b6adce5370407fc936e3e86efb

Hosted promotion readiness passed (success)

No hosted promotion evidence gaps detected across 2 changed file(s); 0 corpus scenarios had matching evidence.

This check compares PR file changes against the evaluator/RAG promotion corpus in src/analyzers/fixtures/evaluator-rag-corpus.ts.
Hosted output scoring inspected 0 completed cached hosted job results.

No evaluator corpus scenarios matched this PR.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Config Audit

Commit: f408fb12d40274b6adce5370407fc936e3e86efb

No changed-config issues detected (success)

Scanned 1 config file(s) present at this commit across 1 changed config path(s) and found no issues in the supported security rules.

Changed config files:

  • commands/setup-pm.md

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Harness Audit

Commit: f408fb12d40274b6adce5370407fc936e3e86efb

No harness issues detected (success)

Scanned 1 changed config file(s) and found no harness issues.

Changed config files:

  • commands/setup-pm.md

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Documentation
    • Clarified that package-manager detection falls back to npm when no project settings or lockfiles determine the manager.

The README and package-manager setup guide now state that detection falls back to npm when no environment variable, project setting, package.json setting, or lockfile determines the package manager.

Changes: Fallback documentation

Layer / File(s) Summary
Document the npm fallback
commands/setup-pm.md, README.md
Both documents now state that npm is the fallback package manager instead of using the first available manager. The setup guide previously listed the order as pnpm, bun, yarn, then npm.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

  • affaan-m/ECC#3820: Treats npm-shrinkwrap.json as an npm lockfile in package-manager detection.

Suggested reviewers: affaan-m

Merge Risk: Minimal · up to f408f

The documentation-only update accurately reflects the package-manager fallback and introduces no merge-blocking risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title clearly and concisely states the main documentation change: the package-manager fallback is npm.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The PR updates the package-manager detection fallback in README.md and commands/setup-pm.md to npm. The description states the change is the final step of the detection order in those same files, expl…
Full details: Description check

Explanation

The PR updates the package-manager detection fallback in README.md and commands/setup-pm.md to npm. The description states the change is the final step of the detection order in those same files, explains why (npm is chosen when no env var, config, or lockfile applies, matching the detector's test), and lists testing and checklist status. It is directly related to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: affaan-m/ECC
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: b38be6a
  • Layers: Repository YAML
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 82389019-4f6c-49fd-a12c-6582c8a1b1d4
Commits

Reviewing files that changed from the base of the PR and between b38be6a and f408fb1.

Files selected for processing: 2

  • README.md
  • commands/setup-pm.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Recent review details

Context from checks skipped due to timeout: 2

  • GitHub Check: CodeRabbit
  • GitHub Check: Greptile Review
Additional context used

Code guidelines: 7
.claude/rules/node.md — auto-discovered
CLAUDE.md — auto-discovered
.cursor/rules/common-patterns.md — auto-discovered
.cursor/rules/kotlin-testing.md — auto-discovered
.cursor/rules/python-coding-style.md — auto-discovered
.cursor/rules/swift-patterns.md — auto-discovered
.cursor/rules/common-testing.md — auto-discovered
Path-based instructions: 9
Focus on prompt-injection resilience, tool-permission scope, destructive action guards, and secret exfiltration risks.

CodeRabbit configuration file

Files:

  • commands/setup-pm.md
Source excerpt: `agents/`, `commands/`, `skills/`, `rules/` — Markdown with YAML frontmatter

CodeRabbit inference engine (.claude/rules/node.md)

Files:

  • commands/setup-pm.md
Source excerpt: Follow the formats in CONTRIBUTING.md: Commands: Markdown with description frontmatter

CodeRabbit inference engine (CLAUDE.md)

Files:

  • commands/setup-pm.md
Source excerpt: Commands: `description:` frontmatter line required

CodeRabbit inference engine (.claude/rules/node.md)

Files:

  • commands/setup-pm.md
Source excerpt: Encapsulate data access behind a consistent interface: Define standard operations: findAll, findById, create, update, delete Concrete implementations handle storage details (database, API, file, etc.) Business logic depends...

CodeRabbit inference engine (.cursor/rules/common-patterns.md)

Files:

  • README.md
  • commands/setup-pm.md
Source excerpt: Use **Kotest** with spec styles (StringSpec, FunSpec, BehaviorSpec) and **MockK** for mocking.

CodeRabbit inference engine (.cursor/rules/kotlin-testing.md)

Files:

  • README.md
  • commands/setup-pm.md
Source excerpt: Follow **PEP 8** conventions Source excerpt: Use **type annotations** on all function signatures Source excerpt: Prefer immutable data structures: Source excerpt: **black** for code formatting Source excerpt: **isort** for i...

CodeRabbit inference engine (.cursor/rules/python-coding-style.md)

Files:

  • README.md
  • commands/setup-pm.md
Source excerpt: Define small, focused protocols.

CodeRabbit inference engine (.cursor/rules/swift-patterns.md)

Files:

  • README.md
  • commands/setup-pm.md
Source excerpt: Test Types (ALL required): **Unit Tests** - Individual functions, utilities, components **Integration Tests** - API endpoints, database operations **E2E Tests** - Critical user flows (framework chosen per language)

CodeRabbit inference engine (.cursor/rules/common-testing.md)

Files:

  • README.md
  • commands/setup-pm.md
Additional comments: 2

commands/setup-pm.md: 1

35-35: LGTM!

README.md: 1

1348-1348: LGTM!

@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This documentation-only PR appears safe to merge.

Summary

Corrects the fallback description in README.md and commands/setup-pm.md.

  • Both package manager guides name npm as the fallback.

Reviews (1) · Last reviewed commit: "docs: say the package manager fallback i..." · Reviewed by Greptile

@haelyra
haelyra merged commit b201845 into affaan-m:main Nov 16, 2026
4 checks passed
@haelyra

haelyra commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Thank you for contributing docs: say the package manager fallback is npm. Your complete reviewed head is preserved with attribution in maintainer integration #3945.

The delivered main commit now passes CI, CodeQL and a fresh Supply-Chain Watch after the focused coverage-report and dependency recovery in #3947. We appreciate your patience and your help improving ECC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants