Skip to content

feat: deslop advisory probe + PR-by-default workflow#35

Merged
arzafran merged 2 commits into
mainfrom
feat/deslop-probe-pr-defaults
Jun 2, 2026
Merged

feat: deslop advisory probe + PR-by-default workflow#35
arzafran merged 2 commits into
mainfrom
feat/deslop-probe-pr-defaults

Conversation

@arzafran
Copy link
Copy Markdown
Member

@arzafran arzafran commented Jun 2, 2026

What this does

Two things. First, bun run proof (the gate that decides whether a diff is "review-ready") can now run deslop — a cross-file dead-code scanner — and report how many findings it sees, the same way it already runs react-doctor for React projects. It is advisory: the number is shown but never blocks the verdict, and it only runs if the project actually depends on deslop-cli, so it stays out of the way everywhere else.

Second, it makes opening a PR the default for our work instead of pushing straight to main. Most Darkroom client projects review through PRs, so the guidance and a new repo PR template now reflect that — and this PR is the first one to use them.

Summary

  • src/lib/proof-of-work.tsdetectDeslop / runDeslop / pure sumDeslopFindings (sums deslop's --json finding-category arrays). Advisory GateResult; allGreen ignores it.
  • src/scripts/proof.ts — appends the deslop pass when deslop-cli is in deps.
  • config/30-permissions.json + regenerated docs/settings-reference.md — narrow Bash(npx deslop:*).
  • rules/typescript.md, skills/proof-of-work/SKILL.md — document the probe.
  • rules/git.md — "Open a PR by default"; .github/PULL_REQUEST_TEMPLATE.md added.

Test Plan

  • bun run typecheck clean
  • bun test — 449 pass (added detectDeslop, sumDeslopFindings, deslop-advisory tests)
  • bun run lint + bun run lint:skills clean
  • bun run proof self-run stays green — cc-settings has no deslop-cli dep, so the probe stays silent

arzafran added 2 commits June 2, 2026 10:52
Adds a deslop advisory probe to the proof-of-work gate (the framework-agnostic
sibling to react-doctor) and makes opening a PR the default workflow.

- proof-of-work: detectDeslop / runDeslop / pure sumDeslopFindings; bun run proof
  appends a deslop pass when deslop-cli is a dependency. Advisory, opt-in, pinned.
- permissions: narrow Bash(npx deslop:*) allow (+ regenerated docs).
- rules/typescript.md + proof-of-work skill: document the probe.
- rules/git.md: 'Open a PR by default' note.
- .github/PULL_REQUEST_TEMPLATE.md: dogfoods the plain-English standard.

typecheck + 449 tests + lint + lint:skills clean.
Resolves CHANGELOG + setup.ts version conflicts: keeps VERSION 11.16.0 (deslop
is the newer feature) and orders changelog entries 11.16.0 → 11.15.2 → 11.15.1.
Merged tree green: 449 tests, typecheck, lint, lint:skills.
@arzafran arzafran merged commit 935b452 into main Jun 2, 2026
13 checks passed
@arzafran arzafran deleted the feat/deslop-probe-pr-defaults branch June 2, 2026 15:45
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.

1 participant