Skip to content

docs(perl-security): drop nonexistent perlcritic policies - #3571

Closed
jwcastillo wants to merge 1 commit into
affaan-m:mainfrom
jwcastillo:docs/perl-security-perlcritic
Closed

jwcastillo wants to merge 1 commit into
affaan-m:mainfrom
jwcastillo:docs/perl-security-perlcritic

Conversation

@jwcastillo

Copy link
Copy Markdown
Contributor

What Changed

  • skills/perl-security/SKILL.md, "perlcritic Security Policies": removed the [InputOutput::RequireThreeArgOpen] and [Modules::RequireTaintChecking] stanzas from the sample .perlcriticrc.
  • pi/core/skills/perl-security/SKILL.md: regenerated with node scripts/build-pi-core.js.
  • manifests/context-packs/skill-triggers@1.json: registryDigest refreshed (the digest covers skill content).

Why This Change

Perl::Critic has no policy with either name:

With the default -profile-strictness (warn), perlcritic only warns that a profile names a policy that is not installed, and the stanza does nothing (https://metacpan.org/pod/Perl::Critic, -profile-strictness). So the sample suggests two checks that never run. With --profile-strictness fatal it would stop.

Two-arg open is already enforced by [InputOutput::ProhibitTwoArgOpen] in the same profile (https://metacpan.org/pod/Perl::Critic::Policy::InputOutput::ProhibitTwoArgOpen). I found no taint-mode policy in core Perl::Critic (no file in its source tree has "taint" in the path), so I removed that stanza without a replacement. The other policies in the sample (RequireCheckedSyscalls, ProhibitStringyEval, ProhibitBacktickOperators, ProhibitBarewordFileHandles) exist.

Translations: docs/ja-JP/skills/perl-security and docs/zh-CN/skills/perl-security have the same two stanzas. I did not edit the translations; they need the same deletion.

Testing Done

  • Manual testing completed
  • Automated tests pass locally (node tests/run-all.js). Not fully: see the full-suite note below.
  • Edge cases considered and tested

Run on this branch (Node 24.15.0):

  • npm run test:validators: pass. This includes validate-skills, validate-context-profiles, catalog:check and command-registry:check.
  • node scripts/build-pi-core.js --check: pass ("pi/core is up to date").
  • npx markdownlint on the changed .md files: pass.
  • Targeted tests, all pass:
    • tests/scripts/build-pi-core.test.js
    • tests/pi/pi-package-manifest.test.js
    • tests/docs/kiro-steering-inclusion.test.js
    • tests/ci/agent-instruction-safety.test.js
    • tests/ci/secret-curl-flags.test.js
    • tests/lib/context-selection.test.js
    • tests/skills/desk-pattern-skills.test.js
    • tests/scripts/npm-publish-surface.test.js
    • tests/ci/context-profiles.test.js
  • Full npm test: I ran it once on unmodified main (b92f181) and once with all six of my doc PRs applied together. I did not run it on each branch separately.
    • main: 11 test files fail in this environment.
    • With my changes: 9 test files fail. They are a subset of the 11 that fail on main; two of the main failures passed in the second run.
    • The failing files are gateguard/hook tests, integration/hooks, lib/dry-run and similar. I did not diagnose them.
    • No new failures.
  • perlcritic is not installed here, so I did not run the sample profile. The policy names were checked against the Perl::Critic source tree linked above.

Type of Change

  • fix: Bug fix
  • feat: New feature
  • refactor: Code refactoring
  • docs: Documentation
  • 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
  • Shell scripts pass shellcheck (if applicable) (no shell scripts changed)
  • Pre-commit hooks pass locally (if configured) (none configured)
  • No sensitive data exposed in logs or output
  • Follows conventional commits format

Documentation

  • Updated relevant documentation
  • Added comments for complex logic
  • README updated (if needed)

Prepared with Claude Code; I reviewed and tested the change.

Perl::Critic has no InputOutput::RequireThreeArgOpen or
Modules::RequireTaintChecking policy. perlcritic warns that they are
not installed and ignores them. Two-arg open is already covered by
InputOutput::ProhibitTwoArgOpen in the same profile. Regenerated pi/core.

Signed-off-by: Wen <jwcastillo@gmail.com>
@jwcastillo
jwcastillo requested a review from affaan-m as a code owner October 14, 2026 19:06
@ecc-tools

ecc-tools Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Security Evidence

Commit: d70726d79c5b4fd6d4a5f3cedb5fa2d0af2f1850

Security evidence gate passed (success)

No security-sensitive scanner-evidence gap detected.

Mode: enforce

Scanned 3 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 14, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Risk Taxonomy

Commit: d70726d79c5b4fd6d4a5f3cedb5fa2d0af2f1850

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 3 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/perl-security/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/perl-security/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/perl-security/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/perl-security/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/perl-security/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 14, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Reference Set Readiness

Commit: d70726d79c5b4fd6d4a5f3cedb5fa2d0af2f1850

Reference set readiness gaps detected (neutral)

Reference evidence present for 0/7 areas (0%) across 3 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 14, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Hosted Promotion Readiness

Commit: d70726d79c5b4fd6d4a5f3cedb5fa2d0af2f1850

Hosted promotion readiness passed (success)

No hosted promotion evidence gaps detected across 3 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 14, 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: 3de4062b-82e9-40f7-b465-a3c725d05152
📥 Commits

Reviewing files that changed from the base of the PR and between b92f181 and d70726d.

📒 Files selected for processing: 3
  • manifests/context-packs/skill-triggers@1.json
  • pi/core/skills/perl-security/SKILL.md
  • skills/perl-security/SKILL.md
💤 Files with no reviewable changes: 2
  • skills/perl-security/SKILL.md
  • pi/core/skills/perl-security/SKILL.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 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: 2
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:

  • manifests/context-packs/skill-triggers@1.json
Source excerpt: **console.log audit**: Check all modified files for `console.log` before session ends

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

Files:

  • manifests/context-packs/skill-triggers@1.json
🔇 Additional comments: 1
manifests/context-packs/skill-triggers@1.json: 1

13-13: LGTM!

📝 Summary

Summary by CodeRabbit

  • Updates
    • The Perl security guidance no longer requires checks for three-argument open calls or taint checking in CGI. Other listed security policies are unchanged.
    • Updated the associated skill registry entry to reflect the current content.

The Perl security skill configuration removes two perlcritic policies. The context-pack manifest’s registryDigest value also changes.

Changes: Perl security skill configuration

Layer / File(s) Summary
Update perlcritic policies
pi/core/skills/perl-security/SKILL.md, skills/perl-security/SKILL.md, manifests/context-packs/skill-triggers@1.json
Both skill documents remove InputOutput::RequireThreeArgOpen and Modules::RequireTaintChecking, including their severity settings. The manifest’s registryDigest value changes.

Priority: ⬇️ Low

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

Change: Other

Merge Risk: ⚪ Minimal · up to d7072

The policy cleanup and generated manifest are internally consistent, with no material merge risk identified.

### Architecture Summary

Architecture risk: 🔵 Low · up to d7072

The change affects 3 systems.

Changed systems: manifests, pi, skills

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — manifests (service) was modified; 1 changed file maps to changed impact.
  • 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 manifests/context-packs/skill-triggers@1.json: Updated the registryDigest value from 498caee2… to d5891762….
  • observed — Modified behavior in pi/core/skills/perl-security/SKILL.md: Removed the InputOutput::RequireThreeArgOpen policy and its severity setting.
  • observed — Modified behavior in pi/core/skills/perl-security/SKILL.md: Removed the Modules::RequireTaintChecking policy and its severity setting.
  • observed — Modified behavior in skills/perl-security/SKILL.md: The InputOutput::RequireThreeArgOpen policy and its severity setting were removed from the perlcritic configuration.
Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main documentation change: removing nonexistent Perl::Critic policies.
Description check Passed The description directly explains the removed policies, regenerated files, rationale, affected translations, and validation results. It is clearly related to the changeset.
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…
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.
✨ 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 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] Safe to merge. No issues requiring changes were found.

Summary

Removes two nonexistent policy names from the sample .perlcriticrc, applies the same deletion to the Pi Core copy, and refreshes registryDigest. The remaining two-argument open policy and taint-mode guidance are preserved.

Generated-package and context-profile checks passed at both base and head. The source and generated Perl security skills are identical, and the computed registry digest matches the manifest. No actionable issues were found; this change is safe to merge.

jwcastillo explicitly deferred the same correction in the Japanese and Chinese translations, stating that they need the same deletion.

T-Rex validation blocked

Evidence upload was unavailable because the environment provides no artifact-upload mechanism. The checks completed successfully, but their script and output logs could only be retained locally.

  • The Perl security guides drop two unavailable policy entries.

Reviews (1) · Last reviewed commit: "docs(perl-security): drop nonexistent pe..." · Reviewed by Greptile

@haelyra

haelyra commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

Thank you for removing nonexistent perlcritic policies from Perl guidance. We carried your contribution into #3654 with attribution and the related follow-up fixes. That integration merged as e494799, and the resulting main passed CI, CodeQL, and Supply-Chain Watch. I’m closing this source PR as delivered. We appreciate your work and hope you’ll keep contributing.

@haelyra haelyra closed this Oct 25, 2026
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