Skip to content

[ghcp-handoff] G15: Enforce forbidden-deps via pre-commit hook (paired with G14) #14

@bminier

Description

@bminier

Problem

Same retrospective-only problem as G14 but for `forbidden_deps`. Copilot can add Prisma in the first 30 seconds, spend 9 minutes building around it, ship a PR that verify rejects.

Why it matters

Forbidden deps are structural choices — catching them early saves the most time.

Approach

Part of the G14 pre-commit hook — reuse the dep parsers from `ghcp-verify-boundaries.ts` (package.json/pyproject.toml/Cargo.toml/go.mod/Gemfile). If staged manifest changes add a forbidden dep, abort the commit.

Review reference

Adversarial review G15

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestghcp-handoffRelates to /ghcp-handoff skill

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions