What problem does it solve?
iCPG prevents accidental regressions by forcing every code change to be grounded in an explicit intent and its formal contract, then detecting when behavior drifts from that original purpose.
Core Features & Use Cases
- Intent-Augmented Reason Graph: Represent goals, constraints, ownership, and lifecycle status as ReasonNodes linked to code symbols.
- Contract-Driven Guardrails (DbC): Express preconditions, postconditions, and invariants so intent fulfillment can be validated against the codebase.
- 6-Dimension Drift Detection: Detect spec, decision, ownership, test, usage, and dependency drift with a single scan before and after edits.
- Canonical Pre-Task Queries: Require three standardized queries (prior work, constraints, risk) to reduce duplication and limit scope damage.
Quick Start
Create a new intent-driven change by running icpg init and then answering the three canonical pre-task queries (prior work, constraints, and risk) before you edit the target files.