Skip to content

Harness dogfood (structural)

PlanRun structural dogfood validates bundle artifacts, 16 bundled skills, growth install, and the guard loop (gate-check · plan-check · next-task) against a local deepseek-harness checkout — without interactive dsh web.

For interactive sessions, see quickstart.md §6 (Chinese: zh/quickstart).

Prerequisites

VariableRequiredDescription
DEEPSEEK_HARNESS_HOMEYesPath to a deepseek-harness git checkout (must contain .git)
PLANRUN_HOMENoPlanRun repo root (defaults to parent of scripts/)

Build PlanRun packages first:

sh
cd "$PLANRUN_HOME"
pnpm install
pnpm run build

Run structural dogfood

sh
export DEEPSEEK_HARNESS_HOME=/path/to/deepseek-harness
export PLANRUN_HOME=/path/to/planrun   # optional

pnpm run verify:dogfood
# or: ./scripts/verify-dogfood.sh
OutcomeMeaning
Exit 1 + DEEPSEEK_HARNESS_HOME 未设置Explicit dogfood run without env (expected)
Exit 1 + missing .git / invalid pathFix checkout path
Exit 0 + verify-dogfood: OKStructural loop green

pnpm run verify does not invoke dogfood — CI without a harness checkout stays green.

What is checked

  1. Harness layout — root package.json or AGENTS.md
  2. Plan fixturetemplates/dogfood/plan-fixture.md (HTML meta + TASK table)
  3. Guard loopDSH_GROWTH_PLAN=<fixture>gate-check · plan-check · next-task
  4. Bundle artifactsbundle-planrun · skill-provider · workflow lib/ after pnpm run build
  5. 28 skills — disk inventory + master/routes.md references
  6. Install seedinstall-planrun.sh creates .dsh/growth/ on a temp git root (does not modify harness)

Guard fixture SSOT

templates/dogfood/plan-fixture.md is the single source of truth for automated guard tests. The harness repo may keep its own .dsh/growth/plan.md; dogfood does not require changing upstream harness files.

Interactive dogfood (manual)

When dsh CLI is available:

sh
export PLANRUN_HOME=/path/to/planrun
dsh plugin --profile web add "file:$PLANRUN_HOME/packages/bundle-planrun"
# restart dsh web · use planrun preset · load master / sprint-plan / run

See quickstart.md for full install steps.

MIT License