Skip to content

docs: clarify package manager detection for Pi profile - #3627

Merged
haelyra merged 2 commits into
affaan-m:mainfrom
mangod12:fix/pi-core-tdd-package-manager-detection
Nov 16, 2026
Merged

haelyra merged 2 commits into
affaan-m:mainfrom
mangod12:fix/pi-core-tdd-package-manager-detection

Conversation

@mangod12

Copy link
Copy Markdown
Contributor

Summary

  • Clarify that the package-manager detector script is available only from a full ECC checkout, not the standalone pi/core profile.
  • Document the same manager-resolution precedence for standalone profile users.
  • Regenerate the checked-in Pi profile from its canonical source.

Closes #3545.

Testing

  • node scripts/build-pi-core.js --check
  • node --test tests/scripts/build-pi-core.test.js
  • git diff --check

AI assistance: OpenAI Codex helped prepare this change.

@mangod12
mangod12 requested a review from affaan-m as a code owner October 18, 2026 09:18
@ecc-tools

ecc-tools Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Security Evidence

Commit: e1ff9776a81a38290e34b6d2214be99ab0ca4f73

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 Oct 18, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Risk Taxonomy

Commit: e1ff9776a81a38290e34b6d2214be99ab0ca4f73

PR taxonomy review recommended (neutral)

Detected 5 PR taxonomy bucket(s): Harness Drift, Install Manifest Integrity, 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:

  • 1 harness-facing path(s) changed

Paths:

  • skills/tdd-workflow/SKILL.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:

  • skills/tdd-workflow/SKILL.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:

  • skills/tdd-workflow/SKILL.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:

  • skills/tdd-workflow/SKILL.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:

  • skills/tdd-workflow/SKILL.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 Oct 18, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Reference Set Readiness

Commit: e1ff9776a81a38290e34b6d2214be99ab0ca4f73

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 Oct 18, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Hosted Promotion Readiness

Commit: e1ff9776a81a38290e34b6d2214be99ab0ca4f73

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.

@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: affaan-m/ECC/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 79fc6a79-03e6-41e1-9988-02e4b36422eb
📥 Commits

Reviewing files that changed from the base of the PR and between e1ff977 and 49b8e48.

📒 Files selected for processing: 2
  • pi/core/skills/tdd-workflow/SKILL.md
  • skills/tdd-workflow/SKILL.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: 1
  • GitHub Check: Greptile Review
🧰 Additional context used
📚 Code guidelines: 2
.cursor/rules/common-hooks.md — auto-discovered
.cursor/rules/typescript-hooks.md — auto-discovered
📓 Path-based instructions: 3
Focus on prompt-injection resilience, tool-permission scope, destructive action guards, and secret exfiltration risks.

⚙️ CodeRabbit configuration file

Files:

  • skills/tdd-workflow/SKILL.md
Source excerpt: Use with caution: Source excerpt: Use with caution: Enable for trusted, well-defined plans Source excerpt: Use with caution: Disable for exploratory work Source excerpt: Use with caution: Never use dangerously-skip-permissio...

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

Files:

  • pi/core/skills/tdd-workflow/SKILL.md
  • skills/tdd-workflow/SKILL.md
Source excerpt: **console.log audit**: Check all modified files for `console.log` before session ends

📄 CodeRabbit inference engine (.cursor/rules/typescript-hooks.md)

Files:

  • pi/core/skills/tdd-workflow/SKILL.md
  • skills/tdd-workflow/SKILL.md
🪛 SkillSpector (2.12.0)
pi/core/skills/tdd-workflow/SKILL.md

[error] 35: [SC2] External Script Fetching: Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Remediation: Avoid downloading and executing remote scripts. Use trusted packages from PyPI/npm. If remote fetch is required, verify checksums and use HTTPS.

(Supply Chain (SC2))

[warning] 44: [RA2] Session Persistence: Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Remediation: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.

(Rogue Agent (RA2))

skills/tdd-workflow/SKILL.md

[error] 35: [SC2] External Script Fetching: Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Remediation: Avoid downloading and executing remote scripts. Use trusted packages from PyPI/npm. If remote fetch is required, verify checksums and use HTTPS.

(Supply Chain (SC2))

[warning] 44: [RA2] Session Persistence: Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Remediation: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.

(Rogue Agent (RA2))

🔇 Additional comments: 2
pi/core/skills/tdd-workflow/SKILL.md: 1

92-92: LGTM!

Also applies to: 95-95, 98-98

skills/tdd-workflow/SKILL.md: 1

92-92: LGTM!

Also applies to: 95-95, 98-98

📝 Summary

Summary by CodeRabbit

  • Documentation
    • Clarified that the full repository’s package-manager detector should run by absolute path from the project root when the repository is separate from the project under test.
    • Documented standalone mode’s selection order: configured preferences, project metadata, lockfiles, then the user-level setting, defaulting to npm. Supported options remain npm, pnpm, yarn, and bun.

Step 0 now distinguishes package-manager resolution for a separate ECC checkout and standalone pi/core. It directs the former to run the detector by absolute path from the project root. Standalone mode uses an ordered list of settings sources and defaults to npm.

Changes: TDD workflow package-manager guidance

Layer / File(s) Summary
Separate package-manager resolution by profile
pi/core/skills/tdd-workflow/SKILL.md, skills/tdd-workflow/SKILL.md
Step 0 directs users with a separate ECC checkout to run its detector by absolute path from the project root. Standalone pi/core checks CLAUDE_PACKAGE_MANAGER, .claude/package-manager.json, package.json’s packageManager, a lockfile, then ~/.claude/package-manager.json, and defaults to npm. Supported managers remain npm, pnpm, yarn, and bun.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other · Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to 49b8e

The guides clarify how to select a package manager for each profile, with no material merge risk identified.

### Architecture Summary

Architecture risk: 🔵 Low · up to 49b8e

The change affects 2 systems.

Changed systems: pi, skills

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — pi (service) was modified; 1 changed file maps to changed impact.
  • observed — skills (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in pi/core/skills/tdd-workflow/SKILL.md: Step 0 replaces the instruction to run scripts/setup-package-manager.js from the current checkout with using the ECC detector by absolute path when ECC is separate from the project, from the project root. It adds a warning that running it from ECC may resolve ECC’s manager, and specifies standalone pi/core resolution order and npm default when its detector script is unavailable.
  • observed — Modified behavior in skills/tdd-workflow/SKILL.md: The instructions replace a single detector invocation and its stated resolution order with profile-specific guidance. For a separate ECC checkout, run its detector by absolute path from the project root; standalone pi/core, which lacks that script, resolves settings from the listed sources in order and defaults to npm.
Pre-merge checks: Passed 5
Check name Status Explanation
Description check Passed The description clearly explains the package-manager detection changes, standalone Pi profile behavior, regenerated profile, and testing performed.
Title check Passed The title concisely and accurately describes the main documentation change: clarifying package-manager detection for the Pi profile.
Linked Issues check Passed Issue #3545 requires the standalone pi/core workflow to avoid an unavailable detector, explicitly use the full ECC repository, or provide self-contained resolution. The diff updates both `skills/tdd…
Out of Scope Changes check Passed The whole-PR diff changes only the canonical TDD workflow and its regenerated pi/core profile. Both changes directly implement Issue #3545. No unrelated source, dependency, or configuration changes …
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Full details: Linked Issues check

Explanation

Issue #3545 requires the standalone pi/core workflow to avoid an unavailable detector, explicitly use the full ECC repository, or provide self-contained resolution. The diff updates both skills/tdd-workflow/SKILL.md and the regenerated pi/core copy. It uses an absolute ECC detector path for separate checkouts and documents standalone precedence, supported managers, and the npm default. The reported build check, focused test, and whitespace check validate the generated profile.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff changes only the canonical TDD workflow and its regenerated pi/core profile. Both changes directly implement Issue #3545. No unrelated source, dependency, or configuration changes are present.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

✨ 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

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] Safe to merge. Both skill copies now keep the working directory at the target project's root, addressing the previously reported package-manager selection problem.

Summary

Clarifies package-manager detection for full ECC checkouts and standalone pi/core users.

  • TDD instructions now explain how to choose the project's package manager.

The previous finding is fixed in both skill copies. No new actionable issues were found. This documentation-only change is safe to merge.

Reviews (2) · Last reviewed commit: "docs: run package manager detector from ..." · Reviewed by Greptile

Comment thread skills/tdd-workflow/SKILL.md Resolved
@ecc-tools

ecc-tools Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Security Evidence

Commit: 49b8e48f4cbc447d872332902df8b5fda12c73d2

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 Oct 18, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Risk Taxonomy

Commit: 49b8e48f4cbc447d872332902df8b5fda12c73d2

PR taxonomy review recommended (neutral)

Detected 5 PR taxonomy bucket(s): Harness Drift, Install Manifest Integrity, 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:

  • 1 harness-facing path(s) changed

Paths:

  • skills/tdd-workflow/SKILL.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:

  • skills/tdd-workflow/SKILL.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:

  • skills/tdd-workflow/SKILL.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:

  • skills/tdd-workflow/SKILL.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:

  • skills/tdd-workflow/SKILL.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 Oct 18, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Reference Set Readiness

Commit: 49b8e48f4cbc447d872332902df8b5fda12c73d2

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 Oct 18, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Hosted Promotion Readiness

Commit: 49b8e48f4cbc447d872332902df8b5fda12c73d2

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.

Copy link
Copy Markdown
Contributor Author

@affaan-m The PR’s workflow is still action_required, so the checks have not run. Could you approve the run and review the detector-path documentation change when you have a chance? The old Greptile note is marked resolved.

@haelyra
haelyra merged commit 998f25d into affaan-m:main Nov 16, 2026
3 checks passed
@haelyra

haelyra commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Thank you for contributing docs: clarify package manager detection for Pi profile. 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.

@mangod12

Copy link
Copy Markdown
Contributor Author

Thank you for contributing docs: clarify package manager detection for Pi profile. 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.

Love it when maintainers leave a comment thanks a lot

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.

pi/core tdd-workflow references detector outside standalone profile

2 participants