Changeset rule-source verification
State: open/verified · Kind: module · Audience: user
Summary
Section titled “Summary”- Verifies a changeset against every instruction file (CLAUDE.md/AGENTS.md) and pluggable rule-source provider whose scope encloses the changed files, dispatching one headless judgement per source.
- Selection is set intersection over declared path scopes, not a tree walk: a source proven irrelevant to the changeset costs nothing.
Statement
Section titled “Statement”A repository’s rules live scattered across nested CLAUDE.md/AGENTS.md files and a standards corpus,
read while code is written and forgotten by commit time. This capability finds every rule source
whose declared scope encloses a changed file and runs one isolated, headless judgement per source
over exactly the files it governs, then merges the results into one ordered findings list. It runs
as a library (verify()) or as the dfv CLI, judging uncommitted work, a diff range, or a whole
branch.
What it provides
Section titled “What it provides”verify()library API plus adfvCLI (judge uncommitted work,--base <rev>,--dry-runcost preview,--blockingexit code,--jsonoutput).- Pluggable
RuleSourceProviderdiscovery; ships one provider (instruction files) by design, so other corpora (e.g. an SDLC standards provider) register externally without this package knowing they exist. - Scope intersection via
@sksizer/intersectdecides which sources a changeset touches; wide sources are sharded (maxFilesPerJob) into smaller per-slice jobs re-merged to one row per source. - Findings are schema-validated and rejected if they cite a file outside the judging source’s own scope.
Underlying implementation
Section titled “Underlying implementation”- packages/ts/agent-dev/ (TypeScript package
@sksizer/agent-dev, shipsdfvbin) - Dispatch via @sksizer/agent-call (engine-swappable: claude/codex/gemini/opencode)
- Scope intersection via @sksizer/intersect; git diffing via @sksizer/easy-git
Locations
Section titled “Locations”packages/ts/agent-dev/packages/ts/agent-dev/src/index.tspackages/ts/agent-dev/src/run.ts#verifypackages/ts/agent-dev/src/cli.tspackages/ts/agent-dev/src/plan.ts#planJobspackages/ts/agent-dev/src/providers/instruction-files.ts