agentic-flow-kit 1.8.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +113 -148
- package/bin/flow-kit.mjs +5 -2
- package/locales/en/installer.json +25 -0
- package/locales/en/overrides/.agents/commands/deploy.md +52 -0
- package/locales/en/overrides/.agents/commands/maintain.md +76 -0
- package/locales/en/overrides/.agents/commands/new-task.md +89 -0
- package/locales/en/overrides/.agents/commands/pipeline-run.md +56 -0
- package/locales/en/overrides/.agents/commands/pr-review.md +30 -0
- package/locales/en/overrides/.agents/commands/review.md +93 -0
- package/locales/en/overrides/.agents/commands/stages.md +256 -0
- package/locales/en/overrides/.agents/notes/pr-review-cost-discipline.md +48 -0
- package/locales/en/overrides/.agents/notes/process-order-rule.md +21 -0
- package/locales/en/overrides/.agents/notes/runtime-env.local.example.md +21 -0
- package/locales/en/overrides/.agents/pipelines/_TEMPLATE.md +75 -0
- package/locales/en/overrides/.agents/pipelines/pipeline-closing.md +28 -0
- package/locales/en/overrides/.agents/roles/implementer.md +28 -0
- package/locales/en/overrides/.agents/roles/independent-reviewer.md +39 -0
- package/locales/en/overrides/.agents/roles/pr-adjudicator.md +27 -0
- package/locales/en/overrides/.agents/roles/pr-finder.md +51 -0
- package/locales/en/overrides/.agents/roles/pr-verifier.md +44 -0
- package/locales/en/overrides/.agents/roles/ui-verifier.md +22 -0
- package/locales/en/overrides/.agents/roles/wiki-compiler.md +47 -0
- package/locales/en/overrides/.agents/skills/arena/SKILL.md +50 -0
- package/locales/en/overrides/.agents/skills/autonomous-run/SKILL.md +45 -0
- package/locales/en/overrides/.agents/skills/blast-radius/SKILL.md +53 -0
- package/locales/en/overrides/.agents/skills/csharp-quality-gates/SKILL.md +109 -0
- package/locales/en/overrides/.agents/skills/dev-tour/SKILL.md +98 -0
- package/locales/en/overrides/.agents/skills/dream/SKILL.md +63 -0
- package/locales/en/overrides/.agents/skills/eval/SKILL.md +42 -0
- package/locales/en/overrides/.agents/skills/interrogate/SKILL.md +49 -0
- package/locales/en/overrides/.agents/skills/number-vetting/SKILL.md +35 -0
- package/locales/en/overrides/.agents/skills/page-refactor/SKILL.md +192 -0
- package/locales/en/overrides/.agents/skills/papercut-fix/SKILL.md +92 -0
- package/locales/en/overrides/.agents/skills/pause-safely/SKILL.md +31 -0
- package/locales/en/overrides/.agents/skills/perf/SKILL.md +42 -0
- package/locales/en/overrides/.agents/skills/review-method/SKILL.md +92 -0
- package/locales/en/overrides/.agents/skills/session-resume/SKILL.md +69 -0
- package/locales/en/overrides/.agents/skills/shipyard-workflow-closeout/SKILL.md +109 -0
- package/locales/en/overrides/.agents/skills/show-me-your-work/SKILL.md +57 -0
- package/locales/en/overrides/.agents/skills/tfs-pr/SKILL.md +95 -0
- package/locales/en/overrides/.agents/skills/verify-ui/SKILL.md +116 -0
- package/locales/en/overrides/.agents/skills/visual-parity/SKILL.md +35 -0
- package/locales/en/overrides/.agents/skills/why/SKILL.md +56 -0
- package/locales/en/overrides/.agents/skills/wiki/SKILL.md +53 -0
- package/locales/en/overrides/.claude/agents/implementer.md +9 -0
- package/locales/en/overrides/.claude/agents/independent-reviewer.md +10 -0
- package/locales/en/overrides/.claude/agents/pr-adjudicator.md +10 -0
- package/locales/en/overrides/.claude/agents/pr-finder.md +10 -0
- package/locales/en/overrides/.claude/agents/pr-verifier.md +10 -0
- package/locales/en/overrides/.claude/agents/ui-verifier.md +10 -0
- package/locales/en/overrides/.claude/agents/wiki-compiler.md +10 -0
- package/locales/en/overrides/.claude/commands/wf-deploy.md +8 -0
- package/locales/en/overrides/.claude/commands/wf-maintain.md +8 -0
- package/locales/en/overrides/.claude/commands/wf-new-task.md +8 -0
- package/locales/en/overrides/.claude/commands/wf-pipeline-run.md +8 -0
- package/locales/en/overrides/.claude/commands/wf-pr-review.md +8 -0
- package/locales/en/overrides/.claude/commands/wf-review.md +8 -0
- package/locales/en/overrides/.claude/commands/wf-stages.md +8 -0
- package/locales/en/overrides/.cline/agents/implementer.yml +13 -0
- package/locales/en/overrides/.cline/agents/independent-reviewer.yml +11 -0
- package/locales/en/overrides/.cline/agents/pr-adjudicator.yml +11 -0
- package/locales/en/overrides/.cline/agents/pr-finder.yml +11 -0
- package/locales/en/overrides/.cline/agents/pr-verifier.yml +11 -0
- package/locales/en/overrides/.cline/agents/ui-verifier.yml +8 -0
- package/locales/en/overrides/.cline/agents/wiki-compiler.yml +14 -0
- package/locales/en/overrides/.cline/workflows/wf-deploy.md +8 -0
- package/locales/en/overrides/.cline/workflows/wf-maintain.md +8 -0
- package/locales/en/overrides/.cline/workflows/wf-new-task.md +8 -0
- package/locales/en/overrides/.cline/workflows/wf-pipeline-run.md +8 -0
- package/locales/en/overrides/.cline/workflows/wf-pr-review.md +8 -0
- package/locales/en/overrides/.cline/workflows/wf-review.md +8 -0
- package/locales/en/overrides/.cline/workflows/wf-stages.md +8 -0
- package/locales/en/overrides/.codebuddy/CODEBUDDY.md +7 -0
- package/locales/en/overrides/.codebuddy/agents/implementer.md +9 -0
- package/locales/en/overrides/.codebuddy/agents/independent-reviewer.md +10 -0
- package/locales/en/overrides/.codebuddy/agents/pr-adjudicator.md +10 -0
- package/locales/en/overrides/.codebuddy/agents/pr-finder.md +10 -0
- package/locales/en/overrides/.codebuddy/agents/pr-verifier.md +10 -0
- package/locales/en/overrides/.codebuddy/agents/ui-verifier.md +11 -0
- package/locales/en/overrides/.codebuddy/agents/wiki-compiler.md +10 -0
- package/locales/en/overrides/.codebuddy/commands/wf-deploy.md +8 -0
- package/locales/en/overrides/.codebuddy/commands/wf-maintain.md +8 -0
- package/locales/en/overrides/.codebuddy/commands/wf-new-task.md +8 -0
- package/locales/en/overrides/.codebuddy/commands/wf-pipeline-run.md +8 -0
- package/locales/en/overrides/.codebuddy/commands/wf-pr-review.md +8 -0
- package/locales/en/overrides/.codebuddy/commands/wf-review.md +8 -0
- package/locales/en/overrides/.codebuddy/commands/wf-stages.md +8 -0
- package/locales/en/overrides/.codebuddy/rules/backend-scope.md +5 -0
- package/locales/en/overrides/.codebuddy/rules/frontend-scope.md +5 -0
- package/locales/en/overrides/.codebuddy/skills/tfs-pr/SKILL.md +6 -0
- package/locales/en/overrides/.commandcode/agents/implementer.md +10 -0
- package/locales/en/overrides/.commandcode/agents/independent-reviewer.md +9 -0
- package/locales/en/overrides/.commandcode/agents/pr-adjudicator.md +9 -0
- package/locales/en/overrides/.commandcode/agents/pr-finder.md +9 -0
- package/locales/en/overrides/.commandcode/agents/pr-verifier.md +9 -0
- package/locales/en/overrides/.commandcode/agents/ui-verifier.md +10 -0
- package/locales/en/overrides/.commandcode/agents/wiki-compiler.md +10 -0
- package/locales/en/overrides/.commandcode/commands/wf-deploy.md +7 -0
- package/locales/en/overrides/.commandcode/commands/wf-maintain.md +7 -0
- package/locales/en/overrides/.commandcode/commands/wf-new-task.md +7 -0
- package/locales/en/overrides/.commandcode/commands/wf-pipeline-run.md +7 -0
- package/locales/en/overrides/.commandcode/commands/wf-pr-review.md +7 -0
- package/locales/en/overrides/.commandcode/commands/wf-review.md +7 -0
- package/locales/en/overrides/.commandcode/commands/wf-stages.md +7 -0
- package/locales/en/overrides/.opencode/agents/implementer.md +51 -0
- package/locales/en/overrides/.opencode/agents/independent-reviewer.md +18 -0
- package/locales/en/overrides/.opencode/agents/pr-adjudicator.md +18 -0
- package/locales/en/overrides/.opencode/agents/pr-finder.md +18 -0
- package/locales/en/overrides/.opencode/agents/pr-verifier.md +18 -0
- package/locales/en/overrides/.opencode/agents/ui-verifier.md +45 -0
- package/locales/en/overrides/.opencode/agents/wiki-compiler.md +51 -0
- package/locales/en/overrides/.opencode/commands/wf-deploy.md +7 -0
- package/locales/en/overrides/.opencode/commands/wf-maintain.md +7 -0
- package/locales/en/overrides/.opencode/commands/wf-new-task.md +7 -0
- package/locales/en/overrides/.opencode/commands/wf-pipeline-run.md +7 -0
- package/locales/en/overrides/.opencode/commands/wf-pr-review.md +7 -0
- package/locales/en/overrides/.opencode/commands/wf-review.md +7 -0
- package/locales/en/overrides/.opencode/commands/wf-stages.md +7 -0
- package/locales/en/overrides/.pi/agents/implementer.md +11 -0
- package/locales/en/overrides/.pi/agents/independent-reviewer.md +12 -0
- package/locales/en/overrides/.pi/agents/pr-adjudicator.md +12 -0
- package/locales/en/overrides/.pi/agents/pr-finder.md +11 -0
- package/locales/en/overrides/.pi/agents/pr-verifier.md +11 -0
- package/locales/en/overrides/.pi/agents/ui-verifier.md +11 -0
- package/locales/en/overrides/.pi/agents/wiki-compiler.md +11 -0
- package/locales/en/overrides/.qoder/agents/implementer.md +9 -0
- package/locales/en/overrides/.qoder/agents/independent-reviewer.md +10 -0
- package/locales/en/overrides/.qoder/agents/pr-adjudicator.md +10 -0
- package/locales/en/overrides/.qoder/agents/pr-finder.md +10 -0
- package/locales/en/overrides/.qoder/agents/pr-verifier.md +10 -0
- package/locales/en/overrides/.qoder/agents/ui-verifier.md +10 -0
- package/locales/en/overrides/.qoder/agents/wiki-compiler.md +10 -0
- package/locales/en/overrides/.qoder/commands/wf-deploy.md +8 -0
- package/locales/en/overrides/.qoder/commands/wf-maintain.md +8 -0
- package/locales/en/overrides/.qoder/commands/wf-new-task.md +8 -0
- package/locales/en/overrides/.qoder/commands/wf-pipeline-run.md +8 -0
- package/locales/en/overrides/.qoder/commands/wf-pr-review.md +8 -0
- package/locales/en/overrides/.qoder/commands/wf-review.md +8 -0
- package/locales/en/overrides/.qoder/commands/wf-stages.md +8 -0
- package/locales/en/overrides/.qwen/agents/implementer.md +10 -0
- package/locales/en/overrides/.qwen/agents/independent-reviewer.md +10 -0
- package/locales/en/overrides/.qwen/agents/pr-adjudicator.md +10 -0
- package/locales/en/overrides/.qwen/agents/pr-finder.md +10 -0
- package/locales/en/overrides/.qwen/agents/pr-verifier.md +10 -0
- package/locales/en/overrides/.qwen/agents/ui-verifier.md +10 -0
- package/locales/en/overrides/.qwen/agents/wiki-compiler.md +13 -0
- package/locales/en/overrides/.qwen/commands/wf-deploy.md +7 -0
- package/locales/en/overrides/.qwen/commands/wf-maintain.md +7 -0
- package/locales/en/overrides/.qwen/commands/wf-new-task.md +7 -0
- package/locales/en/overrides/.qwen/commands/wf-pipeline-run.md +7 -0
- package/locales/en/overrides/.qwen/commands/wf-pr-review.md +7 -0
- package/locales/en/overrides/.qwen/commands/wf-review.md +7 -0
- package/locales/en/overrides/.qwen/commands/wf-stages.md +7 -0
- package/locales/en/overrides/.trae/agents/implementer.md +9 -0
- package/locales/en/overrides/.trae/agents/independent-reviewer.md +10 -0
- package/locales/en/overrides/.trae/agents/pr-adjudicator.md +10 -0
- package/locales/en/overrides/.trae/agents/pr-finder.md +10 -0
- package/locales/en/overrides/.trae/agents/pr-verifier.md +10 -0
- package/locales/en/overrides/.trae/agents/ui-verifier.md +10 -0
- package/locales/en/overrides/.trae/agents/wiki-compiler.md +10 -0
- package/locales/en/overrides/.trae/commands/wf-deploy.md +8 -0
- package/locales/en/overrides/.trae/commands/wf-maintain.md +8 -0
- package/locales/en/overrides/.trae/commands/wf-new-task.md +8 -0
- package/locales/en/overrides/.trae/commands/wf-pipeline-run.md +8 -0
- package/locales/en/overrides/.trae/commands/wf-pr-review.md +8 -0
- package/locales/en/overrides/.trae/commands/wf-review.md +8 -0
- package/locales/en/overrides/.trae/commands/wf-stages.md +8 -0
- package/locales/en/overrides/.trae/rules/backend-scope.md +5 -0
- package/locales/en/overrides/.trae/rules/frontend-scope.md +5 -0
- package/locales/en/overrides/.zcode/agents/implementer.md +8 -0
- package/locales/en/overrides/.zcode/agents/independent-reviewer.md +8 -0
- package/locales/en/overrides/.zcode/agents/ui-verifier.md +8 -0
- package/locales/en/overrides/.zcode/agents/wiki-compiler.md +8 -0
- package/locales/en/overrides/AGENTS.md +52 -0
- package/locales/en/overrides/CLAUDE.md +20 -0
- package/locales/en/overrides/wiki/INDEX.md +33 -0
- package/locales/en/overrides/wiki/drafts-archive/README.md +6 -0
- package/locales/en/overrides/wiki//346/225/260/346/215/256/347/273/264/346/212/244/README.md +22 -0
- package/locales/en/overrides/wiki//347/237/245/350/257/206/346/262/211/346/267/200/346/200/273/350/247/210.html +230 -0
- package/locales/en/overrides/workflow/INDEX.md +13 -0
- package/locales/en/overrides/workflow/README.md +67 -0
- package/locales/en/overrides/workflow/archive/README.md +3 -0
- package/locales/en/overrides/workflow/delegations.md +4 -0
- package/locales/en/overrides/workflow/effective-policy.md +4 -0
- package/locales/en/overrides/workflow/gate-cost.md +4 -0
- package/locales/en/overrides/workflow/incidents/_TEMPLATE.md +49 -0
- package/locales/en/overrides/workflow/intents/_TEMPLATE.md +43 -0
- package/locales/en/overrides/workflow/metrics.md +4 -0
- package/locales/en/overrides/workflow/papercuts.md +3 -0
- package/locales/en/overrides/workflow/plans/_TEMPLATE.md +47 -0
- package/locales/en/overrides/workflow/regression-checklist.md +3 -0
- package/locales/en/overrides/workflow/specs/_TEMPLATE.md +86 -0
- package/locales/en/overrides/workflow/verify-evidence.md +4 -0
- package/locales/zh-CN/installer.json +25 -0
- package/package.json +23 -36
- package/schemas/install-manifest.schema.json +24 -0
- package/schemas/project-profile.schema.json +28 -0
- package/src/cli/args.mjs +41 -0
- package/src/cli/main.mjs +72 -0
- package/src/commands/add-host.mjs +29 -0
- package/src/commands/doctor.mjs +80 -0
- package/src/commands/install.mjs +149 -0
- package/src/commands/upgrade.mjs +30 -0
- package/src/git/config.mjs +61 -0
- package/src/hosts/registry.mjs +26 -0
- package/src/i18n.mjs +32 -0
- package/src/install/apply.mjs +124 -0
- package/src/install/manifest.mjs +40 -0
- package/src/install/plan.mjs +83 -0
- package/src/render/tokens.mjs +58 -0
- package/templates/engine/.agents/board/dev-tour.html +1940 -0
- package/templates/engine/.agents/board/index.html +835 -0
- package/templates/engine/.agents/commands/deploy.md +52 -0
- package/templates/engine/.agents/commands/maintain.md +76 -0
- package/templates/engine/.agents/commands/new-task.md +89 -0
- package/templates/engine/.agents/commands/pipeline-run.md +56 -0
- package/templates/engine/.agents/commands/pr-review.md +30 -0
- package/templates/engine/.agents/commands/review.md +93 -0
- package/templates/engine/.agents/commands/stages.md +256 -0
- package/templates/engine/.agents/config/commit-msg-rules.json +7 -0
- package/templates/engine/.agents/config/engine.json +11 -0
- package/templates/engine/.agents/config/gate-budgets.json +5 -0
- package/templates/engine/.agents/config/mechanism-registry.md +62 -0
- package/templates/engine/.agents/config/model-roles.json +26 -0
- package/templates/engine/.agents/config/model-roles.local.example.json +7 -0
- package/templates/engine/.agents/config/pr-review.json +67 -0
- package/templates/engine/.agents/config/principles.md +32 -0
- package/templates/engine/.agents/config/workflow-enums.txt +25 -0
- package/templates/engine/.agents/hooks/check-architecture.mjs +168 -0
- package/templates/engine/.agents/hooks/check-audit-fields.mjs +56 -0
- package/templates/engine/.agents/hooks/check-commit-plan-ref.mjs +84 -0
- package/templates/engine/.agents/hooks/check-confirm-order.mjs +281 -0
- package/templates/engine/.agents/hooks/check-delete-guard.mjs +63 -0
- package/templates/engine/.agents/hooks/check-notify-guard.mjs +55 -0
- package/templates/engine/.agents/hooks/commit-check.cjs +208 -0
- package/templates/engine/.agents/hooks/gates.json +33 -0
- package/templates/engine/.agents/hooks/local-pre-commit.mjs +27 -0
- package/templates/engine/.agents/hooks/pre-shell-check.cjs +361 -0
- package/templates/engine/.agents/hooks/pre-write-check.cjs +220 -0
- package/templates/engine/.agents/notes/gate-diet.md +75 -0
- package/templates/engine/.agents/notes/pr-review-cost-discipline.md +48 -0
- package/templates/engine/.agents/notes/process-order-rule.md +21 -0
- package/templates/engine/.agents/notes/runtime-env.local.example.md +21 -0
- package/templates/engine/.agents/pipelines/_TEMPLATE.md +75 -0
- package/templates/engine/.agents/pipelines/pipeline-closing.md +28 -0
- package/templates/engine/.agents/pipelines//347/244/272/344/276/213-/345/271/266/350/241/214/345/256/236/347/216/260/350/257/204/345/256/241.md +16 -0
- package/templates/engine/.agents/roles/implementer.md +28 -0
- package/templates/engine/.agents/roles/independent-reviewer.md +39 -0
- package/templates/engine/.agents/roles/pr-adjudicator.md +27 -0
- package/templates/engine/.agents/roles/pr-finder.md +51 -0
- package/templates/engine/.agents/roles/pr-verifier.md +44 -0
- package/templates/engine/.agents/roles/ui-verifier.md +22 -0
- package/templates/engine/.agents/roles/wiki-compiler.md +47 -0
- package/templates/engine/.agents/scripts/agg-delegations.mjs +439 -0
- package/templates/engine/.agents/scripts/agg-judgments.mjs +301 -0
- package/templates/engine/.agents/scripts/agg-kb-usage.mjs +196 -0
- package/templates/engine/.agents/scripts/append-compensation.mjs +109 -0
- package/templates/engine/.agents/scripts/archive-sweep.mjs +229 -0
- package/templates/engine/.agents/scripts/auto-tour.mjs +77 -0
- package/templates/engine/.agents/scripts/board-port.mjs +17 -0
- package/templates/engine/.agents/scripts/check-doc-body-drift.mjs +102 -0
- package/templates/engine/.agents/scripts/check-engine-artifacts.mjs +54 -0
- package/templates/engine/.agents/scripts/check-hook-wiring.mjs +75 -0
- package/templates/engine/.agents/scripts/check-lane-surface.mjs +393 -0
- package/templates/engine/.agents/scripts/check-ledger-doc-presence.mjs +71 -0
- package/templates/engine/.agents/scripts/check-ledger-invariant.mjs +873 -0
- package/templates/engine/.agents/scripts/check-local-gate-config.mjs +95 -0
- package/templates/engine/.agents/scripts/check-local-gates.mjs +248 -0
- package/templates/engine/.agents/scripts/check-loop-kit.mjs +550 -0
- package/templates/engine/.agents/scripts/check-loop-rev-semantics.mjs +59 -0
- package/templates/engine/.agents/scripts/check-loop-sections/s01-pairing.mjs +116 -0
- package/templates/engine/.agents/scripts/check-loop-sections/s03x-regr-evidence.mjs +38 -0
- package/templates/engine/.agents/scripts/check-loop-sections/s08-acceptance.mjs +130 -0
- package/templates/engine/.agents/scripts/check-loop-sections/s15-fingerprint.mjs +152 -0
- package/templates/engine/.agents/scripts/check-loop-sections/s23-convergence-audit.mjs +182 -0
- package/templates/engine/.agents/scripts/check-loop-sections/s29-regr-enforcer.mjs +69 -0
- package/templates/engine/.agents/scripts/check-loop.mjs +131 -0
- package/templates/engine/.agents/scripts/check-regression-consistency.mjs +252 -0
- package/templates/engine/.agents/scripts/check-schema-residue.mjs +144 -0
- package/templates/engine/.agents/scripts/check-scope-range.mjs +156 -0
- package/templates/engine/.agents/scripts/check-scope.mjs +121 -0
- package/templates/engine/.agents/scripts/check-scripts-syntax.mjs +138 -0
- package/templates/engine/.agents/scripts/check-secrets-lite.mjs +239 -0
- package/templates/engine/.agents/scripts/check-secrets.mjs +104 -0
- package/templates/engine/.agents/scripts/check-test-impact-map.mjs +107 -0
- package/templates/engine/.agents/scripts/ci-assert-frontend-deps.mjs +42 -0
- package/templates/engine/.agents/scripts/ci-commit-hygiene.mjs +86 -0
- package/templates/engine/.agents/scripts/ci-install-gitleaks.mjs +75 -0
- package/templates/engine/.agents/scripts/ci-push-before.mjs +49 -0
- package/templates/engine/.agents/scripts/closeout.mjs +127 -0
- package/templates/engine/.agents/scripts/compact-ledgers.mjs +70 -0
- package/templates/engine/.agents/scripts/confirm-doc.mjs +737 -0
- package/templates/engine/.agents/scripts/delegation-presence.mjs +38 -0
- package/templates/engine/.agents/scripts/dev-tour-model.mjs +1398 -0
- package/templates/engine/.agents/scripts/dream-run.mjs +283 -0
- package/templates/engine/.agents/scripts/ensure-board.mjs +187 -0
- package/templates/engine/.agents/scripts/failure-attribution.mjs +11 -0
- package/templates/engine/.agents/scripts/fill-intent.mjs +60 -0
- package/templates/engine/.agents/scripts/fill-plan.mjs +105 -0
- package/templates/engine/.agents/scripts/fill-spec.mjs +72 -0
- package/templates/engine/.agents/scripts/gen-dev-tour.mjs +191 -0
- package/templates/engine/.agents/scripts/gen-effective-policy.mjs +113 -0
- package/templates/engine/.agents/scripts/gen-engine-map.mjs +292 -0
- package/templates/engine/.agents/scripts/gen-narrative-claims.mjs +275 -0
- package/templates/engine/.agents/scripts/gen-verify-evidence.mjs +115 -0
- package/templates/engine/.agents/scripts/gen-wiki-board.mjs +221 -0
- package/templates/engine/.agents/scripts/gen-workflow-index.mjs +201 -0
- package/templates/engine/.agents/scripts/gen-workflow-metrics.mjs +692 -0
- package/templates/engine/.agents/scripts/git-merge-jsonl.mjs +62 -0
- package/templates/engine/.agents/scripts/judgment-ledger.mjs +68 -0
- package/templates/engine/.agents/scripts/kb-cache-evict.mjs +50 -0
- package/templates/engine/.agents/scripts/kb-search.mjs +423 -0
- package/templates/engine/.agents/scripts/lane-surface-audit.mjs +145 -0
- package/templates/engine/.agents/scripts/ledger-loader.mjs +77 -0
- package/templates/engine/.agents/scripts/ledger-shards.mjs +346 -0
- package/templates/engine/.agents/scripts/metrics-core.mjs +131 -0
- package/templates/engine/.agents/scripts/pipeline-run.mjs +964 -0
- package/templates/engine/.agents/scripts/policy.mjs +250 -0
- package/templates/engine/.agents/scripts/pr-create.mjs +54 -0
- package/templates/engine/.agents/scripts/pr-review.mjs +1551 -0
- package/templates/engine/.agents/scripts/quote-grounding.mjs +233 -0
- package/templates/engine/.agents/scripts/regen-ledgers.mjs +59 -0
- package/templates/engine/.agents/scripts/rewrite-file.mjs +135 -0
- package/templates/engine/.agents/scripts/rule-budget.mjs +246 -0
- package/templates/engine/.agents/scripts/stage-gates.mjs +812 -0
- package/templates/engine/.agents/scripts/test-impact-lib.mjs +451 -0
- package/templates/engine/.agents/scripts/test-impact.mjs +105 -0
- package/templates/engine/.agents/scripts/trust-mode.mjs +130 -0
- package/templates/engine/.agents/scripts/verify-scope.mjs +163 -0
- package/templates/engine/.agents/scripts/verify-wiki-consistency.mjs +264 -0
- package/templates/engine/.agents/scripts/verify.mjs +847 -0
- package/templates/engine/.agents/scripts/warn-format.mjs +57 -0
- package/templates/engine/.agents/scripts/wf-journal.mjs +230 -0
- package/templates/engine/.agents/scripts/workflow-board-server.mjs +696 -0
- package/templates/engine/.agents/scripts/workflow-enums.mjs +70 -0
- package/templates/engine/.agents/scripts/workflows-check.mjs +260 -0
- package/templates/engine/.agents/settings.json +33 -0
- package/templates/engine/.agents/skills/arena/SKILL.md +50 -0
- package/templates/engine/.agents/skills/autonomous-run/SKILL.md +45 -0
- package/templates/engine/.agents/skills/blast-radius/SKILL.md +53 -0
- package/templates/engine/.agents/skills/csharp-quality-gates/SKILL.md +109 -0
- package/templates/engine/.agents/skills/csharp-quality-gates/scripts/quality-gates.mjs +430 -0
- package/templates/engine/.agents/skills/dev-tour/SKILL.md +98 -0
- package/templates/engine/.agents/skills/dream/SKILL.md +63 -0
- package/templates/engine/.agents/skills/eval/SKILL.md +42 -0
- package/templates/engine/.agents/skills/eval/scripts/eval-score.mjs +59 -0
- package/templates/engine/.agents/skills/interrogate/SKILL.md +49 -0
- package/templates/engine/.agents/skills/interrogate/scripts/interrogate-plan.mjs +72 -0
- package/templates/engine/.agents/skills/number-vetting/SKILL.md +35 -0
- package/templates/engine/.agents/skills/page-refactor/SKILL.md +192 -0
- package/templates/engine/.agents/skills/page-refactor/references/templates.md +989 -0
- package/templates/engine/.agents/skills/papercut-fix/SKILL.md +92 -0
- package/templates/engine/.agents/skills/papercut-fix/references/response-template.md +81 -0
- package/templates/engine/.agents/skills/pause-safely/SKILL.md +31 -0
- package/templates/engine/.agents/skills/perf/SKILL.md +42 -0
- package/templates/engine/.agents/skills/review-method/SKILL.md +92 -0
- package/templates/engine/.agents/skills/review-method/golden-set.md +61 -0
- package/templates/engine/.agents/skills/session-resume/SKILL.md +69 -0
- package/templates/engine/.agents/skills/session-resume/scripts/worktree-audit.mjs +110 -0
- package/templates/engine/.agents/skills/shipyard-workflow-closeout/SKILL.md +109 -0
- package/templates/engine/.agents/skills/show-me-your-work/SKILL.md +57 -0
- package/templates/engine/.agents/skills/show-me-your-work/references/decision-log-template.tsv +1 -0
- package/templates/engine/.agents/skills/show-me-your-work/scripts/decision-log.mjs +24 -0
- package/templates/engine/.agents/skills/tfs-pr/SKILL.md +95 -0
- package/templates/engine/.agents/skills/tfs-pr/scripts/tfs-pr.mjs +947 -0
- package/templates/engine/.agents/skills/verify-ui/SKILL.md +116 -0
- package/templates/engine/.agents/skills/verify-ui/features/.gitkeep +0 -0
- package/templates/engine/.agents/skills/verify-ui/scripts/gen-verify-feature.mjs +114 -0
- package/templates/engine/.agents/skills/visual-parity/SKILL.md +35 -0
- package/templates/engine/.agents/skills/why/SKILL.md +56 -0
- package/templates/engine/.agents/skills/why/scripts/why-evidence.mjs +74 -0
- package/templates/engine/.agents/skills/wiki/SKILL.md +53 -0
- package/templates/engine/.agents/tests/auto-tour.test.mjs +82 -0
- package/templates/engine/.agents/tests/dev-tour-model.test.mjs +452 -0
- package/templates/engine/.agents/tests/fill-plan-lite.test.mjs +46 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-bare-mid-path.md +14 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-bare-mid-path.model.json +179 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-fake-path-guard.md +21 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-fake-path-guard.model.json +194 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-h3-batches.md +20 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-h3-batches.model.json +207 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-issues.md +24 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-issues.model.json +225 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-l1-single-file.md +15 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-l1-single-file.model.json +160 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-layer-word-unique.md +29 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-layer-word-unique.model.json +266 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-layers-fallback.md +17 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-layers-fallback.model.json +207 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-numbered-steps.md +39 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-numbered-steps.model.json +359 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-path-guess.md +16 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-path-guess.model.json +131 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-table-rows.md +29 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-table-rows.model.json +190 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-task-checkboxes.md +39 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-task-checkboxes.model.json +362 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-union-label.md +24 -0
- package/templates/engine/.agents/tests/fixtures/dev-tour/plan-union-label.model.json +224 -0
- package/templates/engine/.agents/tests/tools/gen-synthetic-plan.mjs +108 -0
- package/templates/git/.gitattributes +22 -0
- package/templates/git/.githooks/commit-msg +72 -0
- package/templates/git/.githooks/post-commit +62 -0
- package/templates/git/.githooks/pre-commit +197 -0
- package/templates/git/.githooks/pre-merge-commit +28 -0
- package/templates/git/.githooks/pre-push +201 -0
- package/templates/git/.gitignore.engine +11 -0
- package/templates/hosts/claude/CLAUDE.md +55 -0
- package/templates/hosts/claude/agents/implementer.md +7 -0
- package/templates/hosts/claude/agents/independent-reviewer.md +8 -0
- package/templates/hosts/claude/agents/pr-adjudicator.md +8 -0
- package/templates/hosts/claude/agents/pr-finder.md +8 -0
- package/templates/hosts/claude/agents/pr-verifier.md +8 -0
- package/templates/hosts/claude/agents/ui-verifier.md +8 -0
- package/templates/hosts/claude/agents/wiki-compiler.md +8 -0
- package/templates/hosts/claude/commands/wf-deploy.md +10 -0
- package/templates/hosts/claude/commands/wf-maintain.md +10 -0
- package/templates/hosts/claude/commands/wf-new-task.md +10 -0
- package/templates/hosts/claude/commands/wf-pipeline-run.md +10 -0
- package/templates/hosts/claude/commands/wf-pr-review.md +10 -0
- package/templates/hosts/claude/commands/wf-review.md +10 -0
- package/templates/hosts/claude/commands/wf-stages.md +10 -0
- package/templates/hosts/claude/settings.json +57 -0
- package/templates/hosts/cline/agents/implementer.yml +15 -0
- package/templates/hosts/cline/agents/independent-reviewer.yml +20 -0
- package/templates/hosts/cline/agents/pr-adjudicator.yml +18 -0
- package/templates/hosts/cline/agents/pr-finder.yml +19 -0
- package/templates/hosts/cline/agents/pr-verifier.yml +18 -0
- package/templates/hosts/cline/agents/ui-verifier.yml +17 -0
- package/templates/hosts/cline/agents/wiki-compiler.yml +20 -0
- package/templates/hosts/cline/hooks/PreToolUse.cjs +260 -0
- package/templates/hosts/cline/workflows/wf-deploy.md +8 -0
- package/templates/hosts/cline/workflows/wf-maintain.md +8 -0
- package/templates/hosts/cline/workflows/wf-new-task.md +8 -0
- package/templates/hosts/cline/workflows/wf-pipeline-run.md +8 -0
- package/templates/hosts/cline/workflows/wf-pr-review.md +8 -0
- package/templates/hosts/cline/workflows/wf-review.md +8 -0
- package/templates/hosts/cline/workflows/wf-stages.md +8 -0
- package/templates/hosts/codebuddy/CODEBUDDY.md +7 -0
- package/templates/hosts/codebuddy/agents/implementer.md +9 -0
- package/templates/hosts/codebuddy/agents/independent-reviewer.md +10 -0
- package/templates/hosts/codebuddy/agents/pr-adjudicator.md +10 -0
- package/templates/hosts/codebuddy/agents/pr-finder.md +10 -0
- package/templates/hosts/codebuddy/agents/pr-verifier.md +10 -0
- package/templates/hosts/codebuddy/agents/ui-verifier.md +11 -0
- package/templates/hosts/codebuddy/agents/wiki-compiler.md +10 -0
- package/templates/hosts/codebuddy/commands/wf-deploy.md +10 -0
- package/templates/hosts/codebuddy/commands/wf-maintain.md +10 -0
- package/templates/hosts/codebuddy/commands/wf-new-task.md +10 -0
- package/templates/hosts/codebuddy/commands/wf-pipeline-run.md +10 -0
- package/templates/hosts/codebuddy/commands/wf-pr-review.md +10 -0
- package/templates/hosts/codebuddy/commands/wf-review.md +10 -0
- package/templates/hosts/codebuddy/commands/wf-stages.md +10 -0
- package/templates/hosts/codebuddy/rules/backend-scope.md +5 -0
- package/templates/hosts/codebuddy/rules/frontend-scope.md +5 -0
- package/templates/hosts/codebuddy/settings.json +31 -0
- package/templates/hosts/codebuddy/skills/tfs-pr/SKILL.md +6 -0
- package/templates/hosts/commandcode/agents/implementer.md +10 -0
- package/templates/hosts/commandcode/agents/independent-reviewer.md +9 -0
- package/templates/hosts/commandcode/agents/pr-adjudicator.md +9 -0
- package/templates/hosts/commandcode/agents/pr-finder.md +9 -0
- package/templates/hosts/commandcode/agents/pr-verifier.md +9 -0
- package/templates/hosts/commandcode/agents/ui-verifier.md +11 -0
- package/templates/hosts/commandcode/agents/wiki-compiler.md +10 -0
- package/templates/hosts/commandcode/commands/wf-deploy.md +9 -0
- package/templates/hosts/commandcode/commands/wf-maintain.md +9 -0
- package/templates/hosts/commandcode/commands/wf-new-task.md +9 -0
- package/templates/hosts/commandcode/commands/wf-pipeline-run.md +9 -0
- package/templates/hosts/commandcode/commands/wf-pr-review.md +9 -0
- package/templates/hosts/commandcode/commands/wf-review.md +9 -0
- package/templates/hosts/commandcode/commands/wf-stages.md +9 -0
- package/templates/hosts/commandcode/settings.json +59 -0
- package/templates/hosts/opencode/agents/implementer.md +51 -0
- package/templates/hosts/opencode/agents/independent-reviewer.md +18 -0
- package/templates/hosts/opencode/agents/pr-adjudicator.md +18 -0
- package/templates/hosts/opencode/agents/pr-finder.md +18 -0
- package/templates/hosts/opencode/agents/pr-verifier.md +18 -0
- package/templates/hosts/opencode/agents/ui-verifier.md +45 -0
- package/templates/hosts/opencode/agents/wiki-compiler.md +51 -0
- package/templates/hosts/opencode/commands/wf-deploy.md +7 -0
- package/templates/hosts/opencode/commands/wf-maintain.md +7 -0
- package/templates/hosts/opencode/commands/wf-new-task.md +7 -0
- package/templates/hosts/opencode/commands/wf-pipeline-run.md +7 -0
- package/templates/hosts/opencode/commands/wf-pr-review.md +7 -0
- package/templates/hosts/opencode/commands/wf-review.md +7 -0
- package/templates/hosts/opencode/commands/wf-stages.md +7 -0
- package/templates/hosts/pi/agents/implementer.md +10 -0
- package/templates/hosts/pi/agents/independent-reviewer.md +11 -0
- package/templates/hosts/pi/agents/pr-adjudicator.md +11 -0
- package/templates/hosts/pi/agents/pr-finder.md +10 -0
- package/templates/hosts/pi/agents/pr-verifier.md +10 -0
- package/templates/hosts/pi/agents/ui-verifier.md +10 -0
- package/templates/hosts/pi/agents/wiki-compiler.md +10 -0
- package/templates/hosts/pi/extensions/lib/gates-core.cjs +196 -0
- package/templates/hosts/pi/extensions/shipyard-gates.ts +95 -0
- package/templates/hosts/pi/settings.json +5 -0
- package/templates/hosts/qoder/agents/implementer.md +9 -0
- package/templates/hosts/qoder/agents/independent-reviewer.md +10 -0
- package/templates/hosts/qoder/agents/pr-adjudicator.md +10 -0
- package/templates/hosts/qoder/agents/pr-finder.md +10 -0
- package/templates/hosts/qoder/agents/pr-verifier.md +10 -0
- package/templates/hosts/qoder/agents/ui-verifier.md +10 -0
- package/templates/hosts/qoder/agents/wiki-compiler.md +10 -0
- package/templates/hosts/qoder/commands/wf-deploy.md +8 -0
- package/templates/hosts/qoder/commands/wf-maintain.md +8 -0
- package/templates/hosts/qoder/commands/wf-new-task.md +8 -0
- package/templates/hosts/qoder/commands/wf-pipeline-run.md +8 -0
- package/templates/hosts/qoder/commands/wf-pr-review.md +8 -0
- package/templates/hosts/qoder/commands/wf-review.md +8 -0
- package/templates/hosts/qoder/commands/wf-stages.md +8 -0
- package/templates/hosts/qoder/settings.json +63 -0
- package/templates/hosts/qwen/agents/implementer.md +8 -0
- package/templates/hosts/qwen/agents/independent-reviewer.md +8 -0
- package/templates/hosts/qwen/agents/pr-adjudicator.md +8 -0
- package/templates/hosts/qwen/agents/pr-finder.md +8 -0
- package/templates/hosts/qwen/agents/pr-verifier.md +8 -0
- package/templates/hosts/qwen/agents/ui-verifier.md +8 -0
- package/templates/hosts/qwen/agents/wiki-compiler.md +11 -0
- package/templates/hosts/qwen/commands/wf-deploy.md +9 -0
- package/templates/hosts/qwen/commands/wf-maintain.md +9 -0
- package/templates/hosts/qwen/commands/wf-new-task.md +9 -0
- package/templates/hosts/qwen/commands/wf-pipeline-run.md +9 -0
- package/templates/hosts/qwen/commands/wf-pr-review.md +9 -0
- package/templates/hosts/qwen/commands/wf-review.md +9 -0
- package/templates/hosts/qwen/commands/wf-stages.md +9 -0
- package/templates/hosts/qwen/settings.json +59 -0
- package/templates/hosts/trae/agents/implementer.md +9 -0
- package/templates/hosts/trae/agents/independent-reviewer.md +10 -0
- package/templates/hosts/trae/agents/pr-adjudicator.md +10 -0
- package/templates/hosts/trae/agents/pr-finder.md +10 -0
- package/templates/hosts/trae/agents/pr-verifier.md +10 -0
- package/templates/hosts/trae/agents/ui-verifier.md +10 -0
- package/templates/hosts/trae/agents/wiki-compiler.md +10 -0
- package/templates/hosts/trae/commands/wf-deploy.md +8 -0
- package/templates/hosts/trae/commands/wf-maintain.md +8 -0
- package/templates/hosts/trae/commands/wf-new-task.md +8 -0
- package/templates/hosts/trae/commands/wf-pipeline-run.md +8 -0
- package/templates/hosts/trae/commands/wf-pr-review.md +8 -0
- package/templates/hosts/trae/commands/wf-review.md +8 -0
- package/templates/hosts/trae/commands/wf-stages.md +8 -0
- package/templates/hosts/trae/hooks.json +17 -0
- package/templates/hosts/trae/rules/backend-scope.md +5 -0
- package/templates/hosts/trae/rules/frontend-scope.md +5 -0
- package/templates/hosts/zcode/agents/implementer.md +8 -0
- package/templates/hosts/zcode/agents/independent-reviewer.md +8 -0
- package/templates/hosts/zcode/agents/ui-verifier.md +8 -0
- package/templates/hosts/zcode/agents/wiki-compiler.md +8 -0
- package/templates/hosts/zcode/config.json +31 -0
- package/templates/hosts/zcode/workflows/code-review.dwf.ts +428 -0
- package/templates/hosts/zcode/workflows/fullchain-flow-test.dwf.ts +898 -0
- package/templates/profiles/dotnet/.agents/config/lane-surfaces.txt +33 -0
- package/templates/profiles/dotnet/.agents/config/rule-budgets.txt +84 -0
- package/templates/profiles/dotnet/.agents/config/test-impact-map.json +590 -0
- package/templates/profiles/dotnet/.agents/config/workflow-modules.txt +18 -0
- package/templates/profiles/dotnet/.agents/hooks/commit-check.config.json +18 -0
- package/templates/profiles/dotnet/.agents/hooks/delete-guard-allowlist.txt +28 -0
- package/templates/profiles/dotnet/.agents/notes/runtime-env.md +178 -0
- package/templates/profiles/dotnet/AGENTS.md +52 -0
- package/templates/profiles/empty/.agents/config/lane-surfaces.txt +12 -0
- package/templates/profiles/empty/.agents/config/rule-budgets.txt +3 -0
- package/templates/profiles/empty/.agents/config/test-impact-map.json +8 -0
- package/templates/profiles/empty/.agents/config/workflow-modules.txt +2 -0
- package/templates/profiles/empty/.agents/hooks/commit-check.config.json +5 -0
- package/templates/profiles/empty/.agents/hooks/delete-guard-allowlist.txt +2 -0
- package/templates/profiles/empty/.agents/notes/runtime-env.md +44 -0
- package/templates/profiles/empty/AGENTS.md +52 -0
- package/templates/profiles/node/.agents/config/lane-surfaces.txt +12 -0
- package/templates/profiles/node/.agents/config/rule-budgets.txt +3 -0
- package/templates/profiles/node/.agents/config/test-impact-map.json +8 -0
- package/templates/profiles/node/.agents/config/workflow-modules.txt +2 -0
- package/templates/profiles/node/.agents/hooks/commit-check.config.json +5 -0
- package/templates/profiles/node/.agents/hooks/delete-guard-allowlist.txt +2 -0
- package/templates/profiles/node/.agents/notes/runtime-env.md +44 -0
- package/templates/profiles/node/AGENTS.md +52 -0
- package/templates/scaffold/wiki/INDEX.md +33 -0
- package/templates/scaffold/wiki/drafts-archive/README.md +7 -0
- package/templates/scaffold/wiki//344/272/247/345/223/201/351/234/200/346/261/202/.gitkeep +0 -0
- package/templates/scaffold/wiki//345/274/200/345/217/221/346/226/271/346/241/210/.gitkeep +0 -0
- package/templates/scaffold/wiki//346/225/260/346/215/256/347/273/264/346/212/244/README.md +22 -0
- package/templates/scaffold/wiki//346/265/213/350/257/225/346/212/245/345/221/212/.gitkeep +0 -0
- package/templates/scaffold/wiki//347/224/250/346/210/267/345/212/237/350/203/275/.gitkeep +0 -0
- package/templates/scaffold/wiki//347/237/245/350/257/206/346/262/211/346/267/200/346/200/273/350/247/210.html +230 -0
- package/templates/scaffold/wiki//351/241/271/347/233/256/350/247/204/350/214/203/.gitkeep +0 -0
- package/templates/scaffold/workflow/INDEX.md +13 -0
- package/templates/scaffold/workflow/README.md +67 -0
- package/templates/scaffold/workflow/archive/README.md +3 -0
- package/templates/scaffold/workflow/delegations.d/.gitkeep +0 -0
- package/templates/scaffold/workflow/delegations.md +4 -0
- package/templates/scaffold/workflow/effective-policy.md +4 -0
- package/templates/scaffold/workflow/evidence/.gitkeep +0 -0
- package/templates/scaffold/workflow/gate-cost.md +4 -0
- package/templates/scaffold/workflow/gate-metrics.d/.gitkeep +0 -0
- package/templates/scaffold/workflow/incidents/_TEMPLATE.md +49 -0
- package/templates/scaffold/workflow/intents/_TEMPLATE.md +43 -0
- package/templates/scaffold/workflow/metrics.md +4 -0
- package/templates/scaffold/workflow/papercuts.d/.gitkeep +0 -0
- package/templates/scaffold/workflow/papercuts.md +3 -0
- package/templates/scaffold/workflow/plans/_TEMPLATE.md +47 -0
- package/templates/scaffold/workflow/regression-checklist.d/.gitkeep +0 -0
- package/templates/scaffold/workflow/regression-checklist.md +3 -0
- package/templates/scaffold/workflow/research/.gitkeep +0 -0
- package/templates/scaffold/workflow/reviews.d/.gitkeep +0 -0
- package/templates/scaffold/workflow/specs/_TEMPLATE.md +87 -0
- package/templates/scaffold/workflow/verify-evidence/.gitkeep +0 -0
- package/templates/scaffold/workflow/verify-evidence.md +4 -0
- package/LICENSE +0 -21
- package/modules/gates/README.md +0 -25
- package/modules/gates/dotnet-ca/README.md +0 -24
- package/modules/gates/dotnet-ca/check-architecture.sh +0 -150
- package/modules/gates/dotnet-ca/local-pre-commit.line +0 -1
- package/modules/gates/generated-readonly/README.md +0 -13
- package/modules/gates/generated-readonly/check-generated.mjs +0 -61
- package/modules/gates/generated-readonly/local-pre-commit.line +0 -1
- package/modules/gates/node-layer/README.md +0 -9
- package/modules/gates/node-layer/check-node-layer.mjs +0 -29
- package/modules/gates/node-layer/local-pre-commit.line +0 -1
- package/modules/gates/py-import/README.md +0 -9
- package/modules/gates/py-import/check-py-import.mjs +0 -30
- package/modules/gates/py-import/local-pre-commit.line +0 -1
- package/modules/gates/test-protect/README.md +0 -23
- package/modules/gates/test-protect/check-test-protect.mjs +0 -64
- package/modules/gates/test-protect/local-pre-commit.line +0 -1
- package/modules/hosts/README.md +0 -57
- package/modules/hosts/claude/agents/implementer.md +0 -51
- package/modules/hosts/claude/agents/independent-reviewer.md +0 -49
- package/modules/hosts/claude/agents/ui-verifier.md +0 -48
- package/modules/hosts/claude/commands/wf-build.md +0 -69
- package/modules/hosts/claude/commands/wf-deploy.md +0 -58
- package/modules/hosts/claude/commands/wf-design.md +0 -49
- package/modules/hosts/claude/commands/wf-gate-checklist.md +0 -77
- package/modules/hosts/claude/commands/wf-maintain.md +0 -76
- package/modules/hosts/claude/commands/wf-new-task.md +0 -102
- package/modules/hosts/claude/commands/wf-pipeline-run.md +0 -35
- package/modules/hosts/claude/commands/wf-plan.md +0 -40
- package/modules/hosts/claude/commands/wf-review.md +0 -49
- package/modules/hosts/claude/commands/wf-sync-hosts.md +0 -64
- package/modules/hosts/claude/commands/wf-test.md +0 -68
- package/modules/hosts/codex/agents/implementer.md +0 -51
- package/modules/hosts/codex/agents/independent-reviewer.md +0 -49
- package/modules/hosts/codex/agents/ui-verifier.md +0 -48
- package/modules/hosts/codex/commands/wf-build.md +0 -69
- package/modules/hosts/codex/commands/wf-deploy.md +0 -58
- package/modules/hosts/codex/commands/wf-design.md +0 -49
- package/modules/hosts/codex/commands/wf-gate-checklist.md +0 -77
- package/modules/hosts/codex/commands/wf-maintain.md +0 -76
- package/modules/hosts/codex/commands/wf-new-task.md +0 -102
- package/modules/hosts/codex/commands/wf-pipeline-run.md +0 -35
- package/modules/hosts/codex/commands/wf-plan.md +0 -40
- package/modules/hosts/codex/commands/wf-review.md +0 -49
- package/modules/hosts/codex/commands/wf-sync-hosts.md +0 -64
- package/modules/hosts/codex/commands/wf-test.md +0 -68
- package/modules/hosts/codex/skills/flow-kit/SKILL.md +0 -14
- package/modules/hosts/cursor/agents/implementer.md +0 -51
- package/modules/hosts/cursor/agents/independent-reviewer.md +0 -49
- package/modules/hosts/cursor/agents/ui-verifier.md +0 -48
- package/modules/hosts/cursor/commands/wf-build.md +0 -69
- package/modules/hosts/cursor/commands/wf-deploy.md +0 -58
- package/modules/hosts/cursor/commands/wf-design.md +0 -49
- package/modules/hosts/cursor/commands/wf-gate-checklist.md +0 -77
- package/modules/hosts/cursor/commands/wf-maintain.md +0 -76
- package/modules/hosts/cursor/commands/wf-new-task.md +0 -102
- package/modules/hosts/cursor/commands/wf-pipeline-run.md +0 -35
- package/modules/hosts/cursor/commands/wf-plan.md +0 -40
- package/modules/hosts/cursor/commands/wf-review.md +0 -49
- package/modules/hosts/cursor/commands/wf-sync-hosts.md +0 -64
- package/modules/hosts/cursor/commands/wf-test.md +0 -68
- package/modules/hosts/omp/agents/implementer.md +0 -52
- package/modules/hosts/omp/agents/independent-reviewer.md +0 -50
- package/modules/hosts/omp/agents/ui-verifier.md +0 -49
- package/modules/hosts/opencode/agents/implementer.md +0 -59
- package/modules/hosts/opencode/agents/independent-reviewer.md +0 -53
- package/modules/hosts/opencode/agents/ui-verifier.md +0 -52
- package/modules/hosts/opencode/commands/wf-build.md +0 -69
- package/modules/hosts/opencode/commands/wf-deploy.md +0 -58
- package/modules/hosts/opencode/commands/wf-design.md +0 -49
- package/modules/hosts/opencode/commands/wf-gate-checklist.md +0 -77
- package/modules/hosts/opencode/commands/wf-maintain.md +0 -76
- package/modules/hosts/opencode/commands/wf-new-task.md +0 -102
- package/modules/hosts/opencode/commands/wf-pipeline-run.md +0 -35
- package/modules/hosts/opencode/commands/wf-plan.md +0 -40
- package/modules/hosts/opencode/commands/wf-review.md +0 -49
- package/modules/hosts/opencode/commands/wf-sync-hosts.md +0 -64
- package/modules/hosts/opencode/commands/wf-test.md +0 -68
- package/modules/hosts/trae/agents/implementer.md +0 -52
- package/modules/hosts/trae/agents/independent-reviewer.md +0 -51
- package/modules/hosts/trae/agents/ui-verifier.md +0 -50
- package/modules/hosts/trae/commands/wf-build.md +0 -70
- package/modules/hosts/trae/commands/wf-deploy.md +0 -59
- package/modules/hosts/trae/commands/wf-design.md +0 -50
- package/modules/hosts/trae/commands/wf-gate-checklist.md +0 -78
- package/modules/hosts/trae/commands/wf-maintain.md +0 -77
- package/modules/hosts/trae/commands/wf-new-task.md +0 -103
- package/modules/hosts/trae/commands/wf-pipeline-run.md +0 -36
- package/modules/hosts/trae/commands/wf-plan.md +0 -41
- package/modules/hosts/trae/commands/wf-review.md +0 -50
- package/modules/hosts/trae/commands/wf-sync-hosts.md +0 -65
- package/modules/hosts/trae/commands/wf-test.md +0 -69
- package/modules/hosts/trae/hooks/post-edit-check.cjs +0 -98
- package/modules/hosts/trae/hooks/pre-shell-check.cjs +0 -192
- package/modules/hosts/trae/hooks/resolve-shell.cjs +0 -30
- package/modules/hosts/trae/hooks.json +0 -29
- package/modules/hosts/trae/rules/beautify-input-chinese.md +0 -6
- package/modules/hosts/trae/rules/git-commit-message.md +0 -10
- package/modules/hosts/trae/rules/project-workflow.md +0 -14
- package/modules/hosts/zcode/agents/implementer.md +0 -51
- package/modules/hosts/zcode/agents/independent-reviewer.md +0 -49
- package/modules/hosts/zcode/agents/ui-verifier.md +0 -48
- package/src/add-gate.mjs +0 -116
- package/src/add-gate.test.mjs +0 -103
- package/src/add-host.mjs +0 -68
- package/src/cli.mjs +0 -169
- package/src/doctor.mjs +0 -629
- package/src/executor.mjs +0 -262
- package/src/executor.test.mjs +0 -295
- package/src/fresh-init.test.mjs +0 -64
- package/src/gate-dotnet-ca.test.mjs +0 -124
- package/src/gates.test.mjs +0 -143
- package/src/init.mjs +0 -382
- package/src/init.test.mjs +0 -163
- package/src/instance-ref.test.mjs +0 -62
- package/src/jscpd-drift.test.mjs +0 -144
- package/src/pack.test.mjs +0 -24
- package/src/profiles.mjs +0 -183
- package/src/render.mjs +0 -132
- package/src/rule-budget.test.mjs +0 -103
- package/src/run-tests.mjs +0 -56
- package/src/stack-profile.test.mjs +0 -95
- package/src/sync-hosts.mjs +0 -257
- package/src/sync-hosts.test.mjs +0 -291
- package/src/sync.mjs +0 -228
- package/src/sync.test.mjs +0 -452
- package/src/trae-hooks.test.mjs +0 -127
- package/src/validate.mjs +0 -77
- package/src/validate.test.mjs +0 -95
- package/templates/.gitattributes +0 -17
- package/templates/AGENTS.md +0 -57
- package/templates/_agents/board/index.html +0 -676
- package/templates/_agents/commands/build.md +0 -84
- package/templates/_agents/commands/deploy.md +0 -66
- package/templates/_agents/commands/design.md +0 -63
- package/templates/_agents/commands/gate-checklist.md +0 -91
- package/templates/_agents/commands/maintain.md +0 -90
- package/templates/_agents/commands/new-task.md +0 -110
- package/templates/_agents/commands/pipeline-run.md +0 -43
- package/templates/_agents/commands/plan.md +0 -48
- package/templates/_agents/commands/review.md +0 -62
- package/templates/_agents/commands/sync-hosts.md +0 -77
- package/templates/_agents/commands/test.md +0 -87
- package/templates/_agents/control-surfaces.txt +0 -53
- package/templates/_agents/engine-lock.json +0 -342
- package/templates/_agents/hooks/check-index-incremental.mjs +0 -48
- package/templates/_agents/hooks/check-pairing-incremental.mjs +0 -66
- package/templates/_agents/hooks/check-wiki-ledger.mjs +0 -30
- package/templates/_agents/hooks/commit-check.cjs +0 -193
- package/templates/_agents/hooks/local-pre-commit +0 -6
- package/templates/_agents/lane-surfaces.txt +0 -17
- package/templates/_agents/level-hints.txt +0 -30
- package/templates/_agents/loop/papercut-debt/DESIGN.md +0 -112
- package/templates/_agents/mechanism-registry.md +0 -27
- package/templates/_agents/metric-claims.txt +0 -81
- package/templates/_agents/notes/engine-internals.md +0 -17
- package/templates/_agents/notes/runtime-env.md +0 -18
- package/templates/_agents/roles/implementer.md +0 -47
- package/templates/_agents/roles/independent-reviewer.md +0 -45
- package/templates/_agents/roles/ui-verifier.md +0 -44
- package/templates/_agents/rule-budgets.txt +0 -18
- package/templates/_agents/scripts/agg-delegations.cjs +0 -302
- package/templates/_agents/scripts/agg-delegations.test.mjs +0 -282
- package/templates/_agents/scripts/agg-gate-stats.mjs +0 -113
- package/templates/_agents/scripts/agg-gate-stats.test.mjs +0 -95
- package/templates/_agents/scripts/agg-judgments.mjs +0 -156
- package/templates/_agents/scripts/agg-judgments.test.mjs +0 -93
- package/templates/_agents/scripts/archive-sweep.mjs +0 -235
- package/templates/_agents/scripts/archive-sweep.test.mjs +0 -129
- package/templates/_agents/scripts/check-attribution.mjs +0 -37
- package/templates/_agents/scripts/check-convergence.mjs +0 -124
- package/templates/_agents/scripts/check-engine-integrity.mjs +0 -220
- package/templates/_agents/scripts/check-engine-integrity.test.mjs +0 -215
- package/templates/_agents/scripts/check-funnel.mjs +0 -56
- package/templates/_agents/scripts/check-hygiene.mjs +0 -167
- package/templates/_agents/scripts/check-hygiene.test.mjs +0 -182
- package/templates/_agents/scripts/check-index-incremental.test.mjs +0 -73
- package/templates/_agents/scripts/check-lane-surface.mjs +0 -238
- package/templates/_agents/scripts/check-lane-surface.test.mjs +0 -302
- package/templates/_agents/scripts/check-ledger-invariant.mjs +0 -527
- package/templates/_agents/scripts/check-ledger-invariant.test.mjs +0 -639
- package/templates/_agents/scripts/check-loop-rev.test.mjs +0 -336
- package/templates/_agents/scripts/check-loop-unit.test.mjs +0 -103
- package/templates/_agents/scripts/check-loop.mjs +0 -1958
- package/templates/_agents/scripts/check-loop.sh +0 -6
- package/templates/_agents/scripts/check-loop.test.mjs +0 -3875
- package/templates/_agents/scripts/check-metric-claims.mjs +0 -277
- package/templates/_agents/scripts/check-prejudgment.mjs +0 -64
- package/templates/_agents/scripts/check-registry.mjs +0 -45
- package/templates/_agents/scripts/check-scope.mjs +0 -96
- package/templates/_agents/scripts/check-scope.test.mjs +0 -96
- package/templates/_agents/scripts/check-scripts-syntax.mjs +0 -61
- package/templates/_agents/scripts/check-scripts-syntax.test.mjs +0 -72
- package/templates/_agents/scripts/check-spec-verif.mjs +0 -47
- package/templates/_agents/scripts/check-stage-index.mjs +0 -40
- package/templates/_agents/scripts/check-stage-index.test.mjs +0 -77
- package/templates/_agents/scripts/closeout-l1.mjs +0 -217
- package/templates/_agents/scripts/closeout-l1.test.mjs +0 -105
- package/templates/_agents/scripts/commit-check-trigger.test.mjs +0 -205
- package/templates/_agents/scripts/compact-ledgers.mjs +0 -97
- package/templates/_agents/scripts/compact-ledgers.test.mjs +0 -162
- package/templates/_agents/scripts/confirm-doc.mjs +0 -603
- package/templates/_agents/scripts/confirm-doc.test.mjs +0 -1103
- package/templates/_agents/scripts/doctor.test.mjs +0 -770
- package/templates/_agents/scripts/draft-sediment.mjs +0 -178
- package/templates/_agents/scripts/draft-sediment.test.mjs +0 -272
- package/templates/_agents/scripts/edit-face-check.mjs +0 -109
- package/templates/_agents/scripts/edit-face-check.test.mjs +0 -99
- package/templates/_agents/scripts/ensure-board.mjs +0 -185
- package/templates/_agents/scripts/fill-intent.mjs +0 -91
- package/templates/_agents/scripts/fill-intent.test.mjs +0 -113
- package/templates/_agents/scripts/fill-plan.mjs +0 -79
- package/templates/_agents/scripts/fill-plan.test.mjs +0 -224
- package/templates/_agents/scripts/fill-spec.mjs +0 -70
- package/templates/_agents/scripts/fill-spec.test.mjs +0 -266
- package/templates/_agents/scripts/fixture-scripts.mjs +0 -153
- package/templates/_agents/scripts/fixture-scripts.test.mjs +0 -112
- package/templates/_agents/scripts/gate-checklist.mjs +0 -209
- package/templates/_agents/scripts/gate-checklist.test.mjs +0 -201
- package/templates/_agents/scripts/gate-seg.mjs +0 -54
- package/templates/_agents/scripts/gate-seg.test.mjs +0 -112
- package/templates/_agents/scripts/gen-effective-policy.mjs +0 -107
- package/templates/_agents/scripts/gen-effective-policy.test.mjs +0 -100
- package/templates/_agents/scripts/gen-verify-evidence.mjs +0 -107
- package/templates/_agents/scripts/gen-verify-evidence.test.mjs +0 -84
- package/templates/_agents/scripts/gen-wiki-board.mjs +0 -276
- package/templates/_agents/scripts/gen-wiki-board.test.mjs +0 -249
- package/templates/_agents/scripts/gen-workflow-dashboard.mjs +0 -251
- package/templates/_agents/scripts/gen-workflow-dashboard.test.mjs +0 -188
- package/templates/_agents/scripts/gen-workflow-index.mjs +0 -201
- package/templates/_agents/scripts/gen-workflow-index.test.mjs +0 -152
- package/templates/_agents/scripts/gen-workflow-metrics.mjs +0 -334
- package/templates/_agents/scripts/gen-workflow-metrics.test.mjs +0 -224
- package/templates/_agents/scripts/git-merge-jsonl.mjs +0 -63
- package/templates/_agents/scripts/git-merge-jsonl.test.mjs +0 -125
- package/templates/_agents/scripts/judgment-ledger.mjs +0 -65
- package/templates/_agents/scripts/judgment-ledger.test.mjs +0 -129
- package/templates/_agents/scripts/kb-cache-evict.mjs +0 -50
- package/templates/_agents/scripts/kb-cache-evict.test.mjs +0 -104
- package/templates/_agents/scripts/kb-search.mjs +0 -413
- package/templates/_agents/scripts/kb-search.test.mjs +0 -299
- package/templates/_agents/scripts/lane-surface-audit.mjs +0 -143
- package/templates/_agents/scripts/lane-surface-audit.test.mjs +0 -93
- package/templates/_agents/scripts/ledger-doc-chain.test.mjs +0 -166
- package/templates/_agents/scripts/ledger-loader.mjs +0 -108
- package/templates/_agents/scripts/ledger-loader.test.mjs +0 -131
- package/templates/_agents/scripts/ledger-prune.mjs +0 -96
- package/templates/_agents/scripts/ledger-prune.test.mjs +0 -120
- package/templates/_agents/scripts/ledger-shards.mjs +0 -344
- package/templates/_agents/scripts/ledger-shards.test.mjs +0 -356
- package/templates/_agents/scripts/ledger-ts-monotonic.test.mjs +0 -135
- package/templates/_agents/scripts/level-criteria.mjs +0 -231
- package/templates/_agents/scripts/level-criteria.test.mjs +0 -281
- package/templates/_agents/scripts/mechanism-retire-watch.mjs +0 -183
- package/templates/_agents/scripts/mechanism-retire-watch.test.mjs +0 -114
- package/templates/_agents/scripts/papercut-debt-controller.mjs +0 -141
- package/templates/_agents/scripts/papercut-debt-controller.test.mjs +0 -127
- package/templates/_agents/scripts/papercut-debt-sensor.mjs +0 -170
- package/templates/_agents/scripts/papercut-debt-sensor.test.mjs +0 -146
- package/templates/_agents/scripts/pipeline-run-docs.mjs +0 -76
- package/templates/_agents/scripts/pipeline-run-run.mjs +0 -63
- package/templates/_agents/scripts/pipeline-run.mjs +0 -867
- package/templates/_agents/scripts/pipeline-run.test.mjs +0 -517
- package/templates/_agents/scripts/policy.mjs +0 -281
- package/templates/_agents/scripts/pre-push.test.mjs +0 -105
- package/templates/_agents/scripts/resolve-merge-conflicts.mjs +0 -110
- package/templates/_agents/scripts/resolve-merge-conflicts.test.mjs +0 -87
- package/templates/_agents/scripts/rewrite-file.mjs +0 -133
- package/templates/_agents/scripts/rewrite-file.test.mjs +0 -148
- package/templates/_agents/scripts/rule-budget.mjs +0 -96
- package/templates/_agents/scripts/rule-budget.test.mjs +0 -118
- package/templates/_agents/scripts/run-tests.mjs +0 -99
- package/templates/_agents/scripts/run-tests.test.mjs +0 -105
- package/templates/_agents/scripts/solidify-task.mjs +0 -107
- package/templates/_agents/scripts/solidify-task.test.mjs +0 -129
- package/templates/_agents/scripts/stage-gates.mjs +0 -343
- package/templates/_agents/scripts/stage-gates.test.mjs +0 -105
- package/templates/_agents/scripts/trust-mode.mjs +0 -67
- package/templates/_agents/scripts/trust-mode.test.mjs +0 -110
- package/templates/_agents/scripts/verify-wiki-consistency.mjs +0 -253
- package/templates/_agents/scripts/verify-wiki-consistency.test.mjs +0 -123
- package/templates/_agents/scripts/verify.mjs +0 -210
- package/templates/_agents/scripts/verify.test.mjs +0 -358
- package/templates/_agents/scripts/wf-journal.mjs +0 -231
- package/templates/_agents/scripts/wf-journal.test.mjs +0 -216
- package/templates/_agents/scripts/wiki-search.mjs +0 -19
- package/templates/_agents/scripts/wiki-search.test.mjs +0 -57
- package/templates/_agents/scripts/workflow-board-server.mjs +0 -393
- package/templates/_agents/scripts/workflow-board-server.test.mjs +0 -201
- package/templates/_agents/scripts/workflow-enums.mjs +0 -70
- package/templates/_agents/scripts/workflow-enums.test.mjs +0 -118
- package/templates/_agents/scripts/workflows-check.mjs +0 -260
- package/templates/_agents/scripts/workflows-check.test.mjs +0 -278
- package/templates/_agents/scripts-test-exempt.txt +0 -16
- package/templates/_agents/skills/papercut-fix/SKILL.md +0 -60
- package/templates/_agents/skills/papercut-fix/references/response-template.md +0 -81
- package/templates/_agents/skills/review-method/SKILL.md +0 -55
- package/templates/_agents/skills/verify-ui/SKILL.md +0 -61
- package/templates/_agents/skills/wiki/SKILL.md +0 -106
- package/templates/_agents/workflow-enums.txt +0 -26
- package/templates/_agents/workflow-modules.txt +0 -11
- package/templates/_agents/workflows/_TEMPLATE.md +0 -75
- package/templates/_agents/workflows/pipeline-closing.md +0 -28
- package/templates/_agents/workflows//347/244/272/344/276/213-/345/271/266/350/241/214/345/256/236/347/216/260/350/257/204/345/256/241.md +0 -16
- package/templates/_githooks/commit-msg +0 -17
- package/templates/_githooks/post-commit +0 -10
- package/templates/_githooks/pre-commit +0 -126
- package/templates/_githooks/pre-merge-commit +0 -29
- package/templates/_githooks/pre-push +0 -136
- package/templates/_github/workflows/kit-ci.yml +0 -49
- package/templates/wiki/INDEX.md +0 -73
- package/templates/wiki/drafts-archive/README.md +0 -3
- package/templates/wiki//344/272/247/345/223/201/351/234/200/346/261/202/README.md +0 -3
- package/templates/wiki//345/274/200/345/217/221/346/226/271/346/241/210/README.md +0 -3
- package/templates/wiki//346/225/260/346/215/256/347/273/264/346/212/244/README.md +0 -3
- package/templates/wiki//346/265/213/350/257/225/346/212/245/345/221/212/README.md +0 -3
- package/templates/wiki//347/224/250/346/210/267/345/212/237/350/203/275/README.md +0 -3
- package/templates/wiki//347/237/245/350/257/206/346/262/211/346/267/200/346/200/273/350/247/210.html +0 -77
- package/templates/wiki//351/241/271/347/233/256/350/247/204/350/214/203/README.md +0 -3
- package/templates/wiki//351/241/271/347/233/256/350/256/241/345/210/222/README.md +0 -3
- package/templates/workflow/README.md +0 -90
- package/templates/workflow/delegations.md +0 -29
- package/templates/workflow/incidents/_TEMPLATE.md +0 -51
- package/templates/workflow/intents/_TEMPLATE.md +0 -46
- package/templates/workflow/papercuts.md +0 -9
- package/templates/workflow/plans/_TEMPLATE.md +0 -47
- package/templates/workflow/regression-checklist.md +0 -23
- package/templates/workflow/specs/_TEMPLATE.md +0 -80
- /package/templates/{_agents → engine/.agents}/board/marked.min.js +0 -0
- /package/templates/{_agents/workflows → engine/.agents/pipelines}/steps//347/244/272/344/276/213-/351/203/250/347/275/262/351/252/214/350/257/201.md" +0 -0
- /package/templates/{_agents → engine/.agents}/scripts/git-core.mjs +0 -0
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// workflows-check.test.mjs — 编排脚本 lint 测试(2026-09-25 workflows-linter)
|
|
3
|
-
// 方法:fixture 临时目录(.agents/workflows/*.md + roles/ + steps/ 词表)调 lintWorkflows() 拿结构化结果,
|
|
4
|
-
// 不依赖真实仓库文件;末两个场景对真实仓库自扫做 baseline 断言。
|
|
5
|
-
// 判据:error 10 类各至少一场景命中;advisory 3 类各一场景;_ 前缀排除;真实仓库 0 error。
|
|
6
|
-
// 用法:node templates/_agents/scripts/workflows-check.test.mjs(npm test 随跑)
|
|
7
|
-
import fs from 'node:fs';
|
|
8
|
-
import os from 'node:os';
|
|
9
|
-
import path from 'node:path';
|
|
10
|
-
import { fileURLToPath } from 'node:url';
|
|
11
|
-
import { lintWorkflows } from './workflows-check.mjs';
|
|
12
|
-
|
|
13
|
-
let pass = 0;
|
|
14
|
-
let fail = 0;
|
|
15
|
-
const check = (desc, cond, detail = '') => {
|
|
16
|
-
if (cond) { pass++; console.log(`PASS ${desc}`); }
|
|
17
|
-
else { fail++; console.log(`FAIL ${desc}${detail ? '\n ' + detail : ''}`); }
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const HEAD = '| id | after | role | step | task / params | files(授权) | accept(验收判据) | gate | retries |';
|
|
21
|
-
const SEP = '|----|-------|------|------|---------------|--------------|-------------------|------|---------|';
|
|
22
|
-
|
|
23
|
-
// mkfix:建临时根 + 词表(roles: implementer/reviewer;steps: deploy)+ 指定编排脚本集合
|
|
24
|
-
const mkfix = (scripts) => {
|
|
25
|
-
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'wf-lint-test-'));
|
|
26
|
-
fs.mkdirSync(path.join(root, '.agents', 'workflows', 'steps'), { recursive: true });
|
|
27
|
-
fs.mkdirSync(path.join(root, '.agents', 'roles'), { recursive: true });
|
|
28
|
-
for (const r of ['implementer', 'independent-reviewer']) {
|
|
29
|
-
fs.writeFileSync(path.join(root, '.agents', 'roles', `${r}.md`), `# ${r}\n`);
|
|
30
|
-
}
|
|
31
|
-
fs.writeFileSync(path.join(root, '.agents', 'workflows', 'steps', 'deploy.md'), '# deploy\n');
|
|
32
|
-
for (const [name, body] of Object.entries(scripts)) {
|
|
33
|
-
fs.writeFileSync(path.join(root, '.agents', 'workflows', name), body);
|
|
34
|
-
}
|
|
35
|
-
return root;
|
|
36
|
-
};
|
|
37
|
-
const fm = (extra = '') => `---\nname: t\ndescription: t\n${extra}---\n\n# w\n\n`;
|
|
38
|
-
|
|
39
|
-
// ---- S1 全绿:双 role 并行 + 汇聚 gate → 0 error 0 warning ----
|
|
40
|
-
{
|
|
41
|
-
const root = mkfix({
|
|
42
|
-
'ok.md': fm() + HEAD + '\n' + SEP + '\n' +
|
|
43
|
-
'| a | — | implementer | — | 做 A | src/a/** | 测试过 | | 1 |\n' +
|
|
44
|
-
'| b | — | implementer | — | 做 B | src/b/** | 构建过 | | 0 |\n' +
|
|
45
|
-
'| g | a,b | — | — | — | — | — | npm test | |\n',
|
|
46
|
-
});
|
|
47
|
-
const r = lintWorkflows({ root });
|
|
48
|
-
check('S1 全绿(并行 role + 汇聚 gate)→ 0 error 0 warning',
|
|
49
|
-
r.errorCount === 0 && r.warningCount === 0 && r.files.length === 1,
|
|
50
|
-
JSON.stringify(r.files[0]));
|
|
51
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// ---- S2 after 悬空引用 → E5 ----
|
|
55
|
-
{
|
|
56
|
-
const root = mkfix({
|
|
57
|
-
'dangling.md': fm() + HEAD + '\n' + SEP + '\n' +
|
|
58
|
-
'| a | ghost | — | — | — | — | — | npm test | |\n',
|
|
59
|
-
});
|
|
60
|
-
const r = lintWorkflows({ root });
|
|
61
|
-
check('S2 after 引用不存在 → E5',
|
|
62
|
-
r.errorCount === 1 && r.files[0].errors[0].startsWith('E5') && r.files[0].errors[0].includes('ghost'),
|
|
63
|
-
JSON.stringify(r.files[0].errors));
|
|
64
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// ---- S3 after 成环 → E6 ----
|
|
68
|
-
{
|
|
69
|
-
const root = mkfix({
|
|
70
|
-
'cycle.md': fm() + HEAD + '\n' + SEP + '\n' +
|
|
71
|
-
'| a | b | — | — | — | — | — | npm test | |\n' +
|
|
72
|
-
'| b | a | — | — | — | — | — | npm test | |\n',
|
|
73
|
-
});
|
|
74
|
-
const r = lintWorkflows({ root });
|
|
75
|
-
check('S3 after 依赖成环 → E6',
|
|
76
|
-
r.errorCount === 1 && r.files[0].errors[0].startsWith('E6'),
|
|
77
|
-
JSON.stringify(r.files[0].errors));
|
|
78
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// ---- S4 未知 role → E7(词表只有 implementer / independent-reviewer)----
|
|
82
|
-
{
|
|
83
|
-
const root = mkfix({
|
|
84
|
-
'role.md': fm() + HEAD + '\n' + SEP + '\n' +
|
|
85
|
-
'| a | — | hacker | — | 做 A | src/** | 过 | | |\n',
|
|
86
|
-
});
|
|
87
|
-
const r = lintWorkflows({ root });
|
|
88
|
-
check('S4 role 不在 .agents/roles/ → E7',
|
|
89
|
-
r.errorCount === 1 && r.files[0].errors[0].startsWith('E7') && r.files[0].errors[0].includes('hacker'),
|
|
90
|
-
JSON.stringify(r.files[0].errors));
|
|
91
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// ---- S5 未知 step → E8(steps/ 只有 deploy)----
|
|
95
|
-
{
|
|
96
|
-
const root = mkfix({
|
|
97
|
-
'step.md': fm() + HEAD + '\n' + SEP + '\n' +
|
|
98
|
-
'| a | — | — | rollback | env=prod | | exit 0 | | 0 |\n',
|
|
99
|
-
});
|
|
100
|
-
const r = lintWorkflows({ root });
|
|
101
|
-
check('S5 step 不在 steps/ → E8',
|
|
102
|
-
r.errorCount === 1 && r.files[0].errors[0].startsWith('E8') && r.files[0].errors[0].includes('rollback'),
|
|
103
|
-
JSON.stringify(r.files[0].errors));
|
|
104
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// ---- S6 三形态全空 / 双填 → E9 ×2 ----
|
|
108
|
-
{
|
|
109
|
-
const root = mkfix({
|
|
110
|
-
'forms.md': fm() + HEAD + '\n' + SEP + '\n' +
|
|
111
|
-
'| nothing | — | — | — | 只有任务没有形态 | src/** | 过 | | |\n' +
|
|
112
|
-
'| both | — | implementer | deploy | 形态双填 | src/** | 过 | npm test | |\n',
|
|
113
|
-
});
|
|
114
|
-
const r = lintWorkflows({ root });
|
|
115
|
-
const e9 = r.files[0].errors.filter((e) => e.startsWith('E9'));
|
|
116
|
-
check('S6 三形态全空与双填 → E9 ×2',
|
|
117
|
-
r.errorCount === 2 && e9.length === 2 && e9[0].includes('nothing') && e9[1].includes('both'),
|
|
118
|
-
JSON.stringify(r.files[0].errors));
|
|
119
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// ---- S7 retries 非法 / concurrency 非法 → E10 + E2 ----
|
|
123
|
-
{
|
|
124
|
-
const root = mkfix({
|
|
125
|
-
'nums.md': fm('concurrency: x\n') + HEAD + '\n' + SEP + '\n' +
|
|
126
|
-
'| a | — | — | — | — | — | — | npm test | 重试 |\n',
|
|
127
|
-
});
|
|
128
|
-
const r = lintWorkflows({ root });
|
|
129
|
-
const codes = r.files[0].errors.map((e) => (e.match(/^E\d+/) || [''])[0]);
|
|
130
|
-
check('S7 retries 非数字 → E10 且 concurrency 非法 → E2',
|
|
131
|
-
r.errorCount === 2 && codes.includes('E10') && codes.includes('E2'),
|
|
132
|
-
JSON.stringify(r.files[0].errors));
|
|
133
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// ---- S8 gate 花括号展开 → W1(0 error,advisory)----
|
|
137
|
-
{
|
|
138
|
-
const root = mkfix({
|
|
139
|
-
'brace.md': fm() + HEAD + '\n' + SEP + '\n' +
|
|
140
|
-
'| g | — | — | — | — | — | — | node scripts/fill-{intent,plan}.test.mjs | |\n',
|
|
141
|
-
});
|
|
142
|
-
const r = lintWorkflows({ root });
|
|
143
|
-
check('S8 gate 含 {a,b} 花括号展开 → W1 且不计 error',
|
|
144
|
-
r.errorCount === 0 && r.warningCount === 1 && r.files[0].warnings[0].startsWith('W1'),
|
|
145
|
-
JSON.stringify({ e: r.files[0].errors, w: r.files[0].warnings }));
|
|
146
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// ---- S9 授权文件交叉:无先序告警 / 有 after 先序不告警 ----
|
|
150
|
-
{
|
|
151
|
-
const root = mkfix({
|
|
152
|
-
'parallel-cross.md': fm() + HEAD + '\n' + SEP + '\n' +
|
|
153
|
-
'| a | — | implementer | — | 做 A | src/shared/** | 过 | | |\n' +
|
|
154
|
-
'| b | — | implementer | — | 做 B | src/shared/** | 过 | | |\n',
|
|
155
|
-
'ordered-ok.md': fm() + HEAD + '\n' + SEP + '\n' +
|
|
156
|
-
'| a | — | implementer | — | 做 A | src/shared/** | 过 | | |\n' +
|
|
157
|
-
'| b | a | implementer | — | 做 B | src/shared/** | 过 | | |\n',
|
|
158
|
-
});
|
|
159
|
-
const r = lintWorkflows({ root });
|
|
160
|
-
const cross = r.files.find((f) => f.file === 'parallel-cross.md');
|
|
161
|
-
const ordered = r.files.find((f) => f.file === 'ordered-ok.md');
|
|
162
|
-
check('S9 授权文件相同且无先序 → W2;有 after 先序 → 不告警',
|
|
163
|
-
r.errorCount === 0 && cross.warnings.length === 1 && cross.warnings[0].startsWith('W2') && ordered.warnings.length === 0,
|
|
164
|
-
JSON.stringify({ cross: cross.warnings, ordered: ordered.warnings }));
|
|
165
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
// ---- S10 _ 前缀机制文档不进扫描面(内含坏表也不报)----
|
|
169
|
-
{
|
|
170
|
-
const root = mkfix({
|
|
171
|
-
'_TEMPLATE.md': fm() + HEAD + '\n' + SEP + '\n' +
|
|
172
|
-
'| bad | ghost | hacker | — | — | — | — | — | 重试 |\n',
|
|
173
|
-
});
|
|
174
|
-
const r = lintWorkflows({ root });
|
|
175
|
-
check('S10 _TEMPLATE.md 排除(机制文档含示例表,不按可执行件校验)',
|
|
176
|
-
r.files.length === 0 && r.errorCount === 0 && r.warningCount === 0,
|
|
177
|
-
JSON.stringify(r.files.map((f) => f.file)));
|
|
178
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
// ---- S11 缺 frontmatter → E1;缺 stages 表 → E3 ----
|
|
182
|
-
{
|
|
183
|
-
const root = mkfix({
|
|
184
|
-
'nofm.md': '# 没有 frontmatter\n\n只有正文\n',
|
|
185
|
-
'notable.md': fm() + '# 有 frontmatter 没有 stages 表\n',
|
|
186
|
-
});
|
|
187
|
-
const r = lintWorkflows({ root });
|
|
188
|
-
const nofm = r.files.find((f) => f.file === 'nofm.md');
|
|
189
|
-
const notable = r.files.find((f) => f.file === 'notable.md');
|
|
190
|
-
check('S11 缺 frontmatter → E1 且缺表 → E3',
|
|
191
|
-
nofm.errors.some((e) => e.startsWith('E1')) && notable.errors.some((e) => e.startsWith('E3')),
|
|
192
|
-
JSON.stringify({ nofm: nofm.errors, notable: notable.errors }));
|
|
193
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
// ---- S12 id 重复 → E4;id 空 → E4 ----
|
|
197
|
-
{
|
|
198
|
-
const root = mkfix({
|
|
199
|
-
'dup.md': fm() + HEAD + '\n' + SEP + '\n' +
|
|
200
|
-
'| a | — | — | — | — | — | — | npm test | |\n' +
|
|
201
|
-
'| a | — | — | — | — | — | — | npm test | |\n' +
|
|
202
|
-
'| — | — | — | — | 缺 id 行 | — | — | — | |\n',
|
|
203
|
-
});
|
|
204
|
-
const r = lintWorkflows({ root });
|
|
205
|
-
const e4 = r.files[0].errors.filter((e) => e.startsWith('E4'));
|
|
206
|
-
check('S12 id 重复与缺 id → E4 ×2',
|
|
207
|
-
e4.length === 2 && e4.some((e) => e.includes('重复')) && e4.some((e) => e.includes('缺 id')),
|
|
208
|
-
JSON.stringify(r.files[0].errors));
|
|
209
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
// ---- S13 step 引用 + gate + 空值规范(— / 空 retries / 空 gate)混排全绿 ----
|
|
213
|
-
{
|
|
214
|
-
const root = mkfix({
|
|
215
|
-
'mixed.md': fm('concurrency: 3\n') + HEAD + '\n' + SEP + '\n' +
|
|
216
|
-
'| build | — | implementer | — | 构建 | src/** | 测试过 | | |\n' +
|
|
217
|
-
'| verify | build | — | deploy | env=staging | | exit 0 | | 2 |\n' +
|
|
218
|
-
'| final | verify | — | — | — | — | — | npm test | |\n',
|
|
219
|
-
});
|
|
220
|
-
const r = lintWorkflows({ root });
|
|
221
|
-
check('S13 step 行 / gate 行 / em-dash 空值 / concurrency=3 / retries=2 混排全绿',
|
|
222
|
-
r.errorCount === 0 && r.warningCount === 0,
|
|
223
|
-
JSON.stringify(r.files[0]));
|
|
224
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
// ---- S14 真实仓库自扫 baseline:0 error(_TEMPLATE 排除后三份可执行件全过)----
|
|
228
|
-
{
|
|
229
|
-
// **本场景是包源仓库的 baseline 断言,装户环境应 SKIP**(2026-09-28 修正):
|
|
230
|
-
// 它上溯三级定位「真实仓库」,从 `templates/_agents/scripts/` 出发正确落在包源根;
|
|
231
|
-
// 但从装户的 `.agents/scripts/` 出发会落到 `<install>/..`,扫不到可执行编排件 →
|
|
232
|
-
// `files.length >= 3` 必假。首版没区分这两种上下文,导致**装户径下该套件恒红**——
|
|
233
|
-
// 实测:CI 新增「shipped 套件」步骤后,`.agents/scripts/workflows-check.test.mjs`
|
|
234
|
-
// 报 `FAIL S14(扫描面:)`(空扫描面),而包源侧同字节跑出 15/0。
|
|
235
|
-
// 判据:扫不到任何可执行件 = 本环境不适用 → SKIP(沿 doctor.test.mjs 同口径)。
|
|
236
|
-
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..', '..');
|
|
237
|
-
const r = lintWorkflows({ root: ROOT });
|
|
238
|
-
const names = r.files.map((f) => f.file).join('、');
|
|
239
|
-
if (r.files.length === 0) {
|
|
240
|
-
check('S14 真实仓库自扫 SKIP(本环境无 .agents/workflows/ 可执行件——装户径,沿 doctor.test 同口径)', true);
|
|
241
|
-
} else {
|
|
242
|
-
check('S14 真实仓库 .agents/workflows/ 自扫 0 error(扫描面:' + names + ')',
|
|
243
|
-
r.errorCount === 0 && r.files.length >= 3,
|
|
244
|
-
JSON.stringify(r.files.filter((f) => f.errors.length).map((f) => ({ f: f.file, e: f.errors }))));
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
// ---- S14 human 确认门(第四形态):单形态全绿 / 双填 E9 / ×retries W4 / 缺列兼容 ----
|
|
249
|
-
{
|
|
250
|
-
const HEAD10 = '| id | after | role | step | task / params | files(授权) | accept(验收判据) | gate | human | retries |';
|
|
251
|
-
const SEP10 = '|----|-------|------|------|---------------|--------------|-------------------|------|-------|---------|';
|
|
252
|
-
const root = mkfix({
|
|
253
|
-
'human-ok.md': fm() + HEAD10 + '\n' + SEP10 + '\n' +
|
|
254
|
-
'| a | — | implementer | — | 做 A | src/a/** | 测试过 | | | 0 |\n' +
|
|
255
|
-
'| ask | a | — | — | 用户确认可继续 | — | 一句「可以」 | | 用户确认 | |\n' +
|
|
256
|
-
'| b | ask | — | — | — | — | — | npm test | | |\n',
|
|
257
|
-
'human-bad.md': fm() + HEAD10 + '\n' + SEP10 + '\n' +
|
|
258
|
-
'| both | — | — | — | 双填 | — | — | npm test | 用户确认 | |\n' +
|
|
259
|
-
'| retry | — | — | — | 确认 | — | 一句可以 | | 用户确认 | 2 |\n',
|
|
260
|
-
'no-human-col.md': fm() + HEAD + '\n' + SEP + '\n' +
|
|
261
|
-
'| a | — | — | — | — | — | — | npm test | |\n',
|
|
262
|
-
});
|
|
263
|
-
const r = lintWorkflows({ root });
|
|
264
|
-
const ok = r.files.find((f) => f.file === 'human-ok.md');
|
|
265
|
-
const bad = r.files.find((f) => f.file === 'human-bad.md');
|
|
266
|
-
const legacy = r.files.find((f) => f.file === 'no-human-col.md');
|
|
267
|
-
check('S14 human 单形态 10 列全绿;human+gate 双填 E9;human×retries W4;9 列无 human 表全过',
|
|
268
|
-
r.errorCount === 1
|
|
269
|
-
&& ok.errors.length === 0 && ok.warnings.length === 0
|
|
270
|
-
&& bad.errors.length === 1 && bad.errors[0].startsWith('E9') && bad.errors[0].includes('gate + human')
|
|
271
|
-
&& bad.warnings.length === 1 && bad.warnings[0].startsWith('W4')
|
|
272
|
-
&& legacy.errors.length === 0 && legacy.warnings.length === 0,
|
|
273
|
-
JSON.stringify(r.files.map((f) => ({ f: f.file, e: f.errors, w: f.warnings }))));
|
|
274
|
-
fs.rmSync(root, { recursive: true, force: true });
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
console.log(`\n合计: PASS ${pass} / FAIL ${fail}`);
|
|
278
|
-
process.exit(fail ? 1 : 0);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# 引擎脚本测试覆盖豁免登记(单源:本文件——check-loop 检查 20 共读,经 sync 下发装副本)
|
|
2
|
-
# 格式:<脚本名> | <豁免理由> | <覆盖证据(套件名;无自动化覆盖如实写「无」)>
|
|
3
|
-
# 语义:登记 ≠ 免责——须写明理由与覆盖证据;无覆盖的登记是「工具/启动器豁免」,后续批次评估补测。
|
|
4
|
-
# 新增引擎脚本默认必须带同名 .test.mjs(README 规范条目);确属库件/工具才登记本文件。
|
|
5
|
-
# 2026-10-09 A2 评估:verify-wiki-consistency 已移出(补测 3 场景);wiki-search 已移出(转发壳,判定单源 kb-search.test 覆盖)。
|
|
6
|
-
check-metric-claims.mjs | 经 check-loop.mjs 消费 | 由 check-loop.test.mjs 间接覆盖其调用路径
|
|
7
|
-
# 2026-10-16 减重手段② 随附:rule-budget.mjs 登记撤除(补同名直测黑盒套件 T1-T8——字节语义不回归 +
|
|
8
|
-
# #count 条目数指令全形态;src/rule-budget.test.mjs 仍是包源预算自检门,职责不同并行保留)。
|
|
9
|
-
ensure-board.mjs | 看板启动器 | 永久工具豁免(需真实端口/进程环境,自动化覆盖无性价比——2026-10-09 engine-quality-round2 A2 评估定性)
|
|
10
|
-
policy.mjs | 库件 | 被 check-loop.test.mjs 直接 import 覆盖
|
|
11
|
-
# 2026-10-12 needs-clarification:stage-gates.mjs 已建同名直测(stage-gates.test.mjs 15 断言),
|
|
12
|
-
# 覆盖待澄清门纯函数族(CLARIFY_RE 形态矩阵 / HTML 注释不计 / clarifyGateFor 三态 / 行号点名)——
|
|
13
|
-
# 这两条判据**没有 check-loop 侧对应检查**,间接覆盖盖不到,故必须直测。登记随之撤除。
|
|
14
|
-
# 2026-10-08 engine-quality-batch:pipeline-run 三层拆分的库件层——纯函数/存储层由 pipeline-run.test.mjs 全量覆盖(断言零改动全过),单建同名测试属形式主义(plan 偏离留痕 ①)
|
|
15
|
-
pipeline-run-docs.mjs | 库件(文档纯函数层,2026-10-08 engine-quality-batch 拆分) | 由 pipeline-run.test.mjs 全量覆盖(断言零改动 29 组全过)
|
|
16
|
-
pipeline-run-run.mjs | 库件(run 存储层,同上拆分) | 由 pipeline-run.test.mjs 全量覆盖(含 PIPELINE_RUN_* 注入契约场景)
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: papercut-fix
|
|
3
|
-
description: 修 workflow/papercuts.md 里指定的未升级 papercut 条目(把存量债降到 0 的回路执行器)。按控制器给的行号定位症状、照「拟修」列改权威文件、回写台账并跑验证门。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# papercut-fix — 单条 papercut 升级执行器
|
|
7
|
-
|
|
8
|
-
## 目标
|
|
9
|
-
将 `workflow/papercuts.md` 中指定的一条 papercut 条目状态更新为「已消债」。
|
|
10
|
-
|
|
11
|
-
## 触发条件
|
|
12
|
-
- 用户指令:`跑一轮 papercut 回路` / `清 papercut 存量` / `修第 N 条 papercut`。
|
|
13
|
-
|
|
14
|
-
## 约束与红线
|
|
15
|
-
- **单一目标**:每轮执行仅处理一条目标,禁止顺手修复相邻条目或夹带其他改动。
|
|
16
|
-
- **范围限制**:改动仅限文档面(`.agents/commands/`, `.agents/roles/`, `.agents/skills/`, `.githooks/`, `.agents/scripts/`, `workflow/`)。
|
|
17
|
-
- **绝对禁区**:禁止修改 `backend/`, `frontend/`, `tests/`, `wiki/`,禁止连接数据库——与控制器 scope gate(`OUT_OF_SCOPE` 正则)同一清单,命中即停。超出范围时必须停止并报告用户。
|
|
18
|
-
- **验证优先**:禁止凭台账描述臆测现状。必须先读权威文件验证症状是否成立。
|
|
19
|
-
- **编辑规范**:修改 `workflow/` 文档必须使用 Edit 工具。禁止使用 `node -e` 或脚本批量替换(CRLF 环境下会静默失败)。
|
|
20
|
-
- **消债判定**:分支 A(修复)与分支 B(暂缓/失效)**均**满足 `debt -1` 不变量。
|
|
21
|
-
|
|
22
|
-
## 工作流
|
|
23
|
-
|
|
24
|
-
### 1. 定位与预检
|
|
25
|
-
- 从控制器输出提取:`行号` (Lxx), `位置` (路径), `症状`, `拟修`。
|
|
26
|
-
- 使用 Read 工具读取该行及其上下文。
|
|
27
|
-
|
|
28
|
-
### 2. 现状验证
|
|
29
|
-
- 读取「位置」列指定的权威文件。
|
|
30
|
-
- **判定结论**:
|
|
31
|
-
- **缺陷仍在** $\rightarrow$ 进入分支 A。
|
|
32
|
-
- **已失效** (已被其他改动修复/文件已删除) $\rightarrow$ 进入分支 B。
|
|
33
|
-
- **方向相反/描述有误** $\rightarrow$ 重新定性后再执行。
|
|
34
|
-
|
|
35
|
-
### 3. 执行修复
|
|
36
|
-
- **分支 A (缺陷仍在)**:
|
|
37
|
-
1. 对权威文件执行最小化修复。
|
|
38
|
-
2. 在 `workflow/papercuts.md`(或承载该条目的 `workflow/papercuts.d/` 分片)该行末尾追加:`✅ 已升级修复(YYYY-MM-DD): <改动描述> <commit>`。
|
|
39
|
-
3. 若原「拟修」描述已不适用,在追加记录中写明实际修法。
|
|
40
|
-
- **分支 B (已失效)**:
|
|
41
|
-
1. 在 `workflow/papercuts.md`(或承载该条目的分片)该行末尾追加:`⏸ 暂缓(YYYY-MM-DD): <失效理由>`。理由必须明确。
|
|
42
|
-
2. **核实纪律**:
|
|
43
|
-
- 检查用户级技能目录(`~/.claude/skills/`、`~/.trae/skills/` 等宿主适配目录)确认文件是否仅是迁移而非删除。
|
|
44
|
-
- 区分「环境约束」与「代码缺陷」。
|
|
45
|
-
- 针对「跨环境」症状,使用 `git worktree` 构建真实检出态实验证伪。
|
|
46
|
-
- 针对「已落地」症状,使用 `git log -S` 追溯引入提交日期。
|
|
47
|
-
- **分支 C (越界)**:停止执行,报告理由并请求授权。
|
|
48
|
-
|
|
49
|
-
### 4. 验证与收尾
|
|
50
|
-
- **备份**:修改台账(主台账或分片)前强制 `cp <台账文件> tmp/papercuts.wip-backup.md`。
|
|
51
|
-
- **运行检查**:
|
|
52
|
-
- `node .agents/scripts/papercut-debt-sensor.mjs` $\rightarrow$ `debt` 必须恰好减少 1。
|
|
53
|
-
- `node .agents/scripts/papercut-debt-controller.mjs` $\rightarrow$ 确认目标推进。
|
|
54
|
-
- 检查台账(主台账 ∪ 分片)的总行数(`total` 不得减少——`debt` 符合预期 ≠ 文件没被压行)、列数分布及是否存在超长行(压行信号)。
|
|
55
|
-
- **体积检查**:若修改了 `.agents/commands/`,跑 `node .agents/scripts/rule-budget.mjs --staged` 对比 `.agents/rule-budgets.txt` 上限(一进一出;禁用工作区 `wc -c` 核对——CRLF 膨胀会误报)。
|
|
56
|
-
|
|
57
|
-
## 回报要求
|
|
58
|
-
- 参照 `references/response-template.md` 输出。
|
|
59
|
-
- 包含:行号、位置、分支结论(A/B/C)、改动文件、验证结果(debt 前后值)、待决策事项。
|
|
60
|
-
- **禁令**:禁止自动 commit 或 push。
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
# papercut-fix 回应模板
|
|
2
|
-
|
|
3
|
-
单轮回路执行器的最终输出格式。给用户看,决定他是否放行这次改动。
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 模板
|
|
8
|
-
|
|
9
|
-
```markdown
|
|
10
|
-
papercut 回路 · 第 N 轮
|
|
11
|
-
|
|
12
|
-
**目标**:L{line} `{location}`({date},第 {hits} 次命中)
|
|
13
|
-
**结论**:{A 缺陷仍在 / B 已失效 / B2 账未销(拟修已由别的改动落地)/ B3 台账方向记反(检出态实验证伪)/ C 越界待授权}
|
|
14
|
-
|
|
15
|
-
### 改动
|
|
16
|
-
|
|
17
|
-
| 文件 | 改了什么 |
|
|
18
|
-
|---|---|
|
|
19
|
-
| `{权威文件路径}` | {一句话} |
|
|
20
|
-
| `workflow/papercuts.md` | 回写行标记:{`✅ 已升级修复(日期)` / `⏸ 暂缓(日期):理由`} |
|
|
21
|
-
|
|
22
|
-
### 验证
|
|
23
|
-
|
|
24
|
-
- `papercut-debt-sensor.mjs`:debt {before} → {after}(预期 -1)
|
|
25
|
-
- {其他检查,如体积预算核对:通过 / 不适用}
|
|
26
|
-
|
|
27
|
-
### 台账依据
|
|
28
|
-
|
|
29
|
-
{若实际修法与「拟修」列描述不一致,在此说明「拟修」列写的什么、实际怎么做的、为什么。
|
|
30
|
-
B2 结论必须写出落地提交:`由 <sha>(<日期>,<标题>)落地`。}
|
|
31
|
-
|
|
32
|
-
### 需你决定
|
|
33
|
-
|
|
34
|
-
{列出需要用户拍板的事项;没有则写「无」。典型场景:
|
|
35
|
-
- 结论为 C(越界)——是否单独授权改源码/连库
|
|
36
|
-
- 「拟修」列描述已过期——是否更新该列文本
|
|
37
|
-
- 控制器列出的「待人工定性」条目——是否本轮顺带定性
|
|
38
|
-
- 改动触及常驻面体积预算——是否接受,或改为下沉/删除被取代条目}
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## 格式要求
|
|
44
|
-
|
|
45
|
-
1. **先给结论,再给细节**。用户扫第一行就要知道"修了哪条、结论是什么"。
|
|
46
|
-
2. **「需你决定」不许空着**。即使本轮无事,也显式写「无」——让"没有待决事项"和"忘了写"可区分。
|
|
47
|
-
3. **验证值给具体数字**,不要只说"验证通过"。debt 的前后值是设定点误差,必须可核。
|
|
48
|
-
4. **不粉饰失败**。验证门红了就写红,附命令与原始报错摘要。回路的价值在于给出可信的账,不是好看的账。
|
|
49
|
-
5. **不写"建议接下来…"式的空话**。要写就写具体动作 + 具体条目编号。
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## 示例(结论 A,示意——占位符形态,非真实条目)
|
|
54
|
-
|
|
55
|
-
```markdown
|
|
56
|
-
papercut 回路 · 第 3 轮
|
|
57
|
-
|
|
58
|
-
**目标**:L34 `.agents/commands/test.md`(静态门清单 §2 缺一条豁免说明)(<日期>)
|
|
59
|
-
**结论**:A 缺陷仍在
|
|
60
|
-
|
|
61
|
-
### 改动
|
|
62
|
-
|
|
63
|
-
| 文件 | 改了什么 |
|
|
64
|
-
|---|---|
|
|
65
|
-
| `.agents/commands/test.md` | §2 补一条:跳过条件的判据以 <权威判据> 为准,不以 <表象> 为准;§常见误判 补对应条目 |
|
|
66
|
-
| `workflow/papercuts.md` | 回写 L34 标记:`✅ 已升级修复(YYYY-MM-DD)` |
|
|
67
|
-
|
|
68
|
-
### 验证
|
|
69
|
-
|
|
70
|
-
- `papercut-debt-sensor.mjs`:debt 16 → 15(预期 -1)
|
|
71
|
-
- 体积预算:`node .agents/scripts/rule-budget.mjs --staged` 通过(未触 `.agents/commands/` 上限)
|
|
72
|
-
|
|
73
|
-
### 台账依据
|
|
74
|
-
|
|
75
|
-
「拟修」列写的是「补一条 <表象> 的判定说明」。实际执行时发现症状描述的是 <相邻机制>,而 §2 真正缺的是**判据本身**(<相邻机制> 只在特定前提后需要,判据该按 <权威判据>)。两者相邻但不同,已按判据写,相邻条目并入同节。
|
|
76
|
-
|
|
77
|
-
### 需你决定
|
|
78
|
-
|
|
79
|
-
- 「拟修」列文本与实际修法有偏差(见上),是否更新该列描述以免下次复发时对不上?
|
|
80
|
-
- 控制器列出的「待人工定性」3 条(位置列路径已不存在)——其中 1 条指向的脚本性能问题已随某次重构解决,本轮修完后建议一并定性。要不要现在处理?
|
|
81
|
-
```
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: review-method
|
|
3
|
-
description: 代码复核走查方法(Standards×Spec 双轴 + 坏味道清单 + 合入标尺)。供 independent-reviewer 或主智能体复核 diff 时使用;是 .agents/commands/review.md 执行流程的方法层单源,不依赖宿主全局技能。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# review-method — 复核走查方法
|
|
7
|
-
|
|
8
|
-
## 定位与分工
|
|
9
|
-
复核三层各自单源,本文件只管「怎么走查」:
|
|
10
|
-
|
|
11
|
-
| 层 | 单源 |
|
|
12
|
-
|---|---|
|
|
13
|
-
| 拦什么(不变量) | `.agents/commands/review.md` P0/P1 表 |
|
|
14
|
-
| 以什么身份查(证据纪律) | `.agents/roles/independent-reviewer.md` Constraints |
|
|
15
|
-
| 怎么走查(本文件) | 双轴框架 + 坏味道清单 + 合入标尺 |
|
|
16
|
-
|
|
17
|
-
宿主有全局 `code-review` / `review-verification-protocol` 技能时可叠加;无则本文件兜底。
|
|
18
|
-
|
|
19
|
-
## 双轴框架(分轴报告,禁合并排序)
|
|
20
|
-
| 轴 | 问的问题 | 依据 |
|
|
21
|
-
|---|---|---|
|
|
22
|
-
| **Standards** | 是否符合本仓成文标准 | 根/目录级 `AGENTS.md` + review.md P0/P1 表 |
|
|
23
|
-
| **Spec** | 是否忠实实现入口文档承诺 | intent/plan「验收标准」+ spec §测试用例 |
|
|
24
|
-
|
|
25
|
-
两轴独立成立:合规范但做错事(Standards 过、Spec 挂)与做对事但破规范(Spec 过、Standards 挂)都存在——分开报告防一轴掩盖另一轴。Spec 轴报三类发现:承诺缺失/部分落地、超范围(scope creep)、实现走样。
|
|
26
|
-
|
|
27
|
-
## 坏味道走查清单(Standards 轴补充)
|
|
28
|
-
P0/P1 表之外的判断项。约束:仓库成文标准优先(成文认可即压制本清单);始终是判断项非硬违规;门禁/tooling 已拦的跳过。每条 = 是什么 $\rightarrow$ 怎么修:
|
|
29
|
-
|
|
30
|
-
| 坏味道 | 是什么 $\rightarrow$ 怎么修 |
|
|
31
|
-
|---|---|
|
|
32
|
-
| Mysterious Name 神秘命名 | 名字不揭示用途 $\rightarrow$ 重命名;起不出诚实名字 = 设计混浊 |
|
|
33
|
-
| Duplicated Code 重复代码 | 同形逻辑在多处出现 $\rightarrow$ 提取共享实现,两处调用 |
|
|
34
|
-
| Feature Envy 依恋情结 | 方法够别家数据多过自己 $\rightarrow$ 把方法移到所依恋的数据上 |
|
|
35
|
-
| Data Clumps 数据泥团 | 几个字段/参数总是结伴出行 $\rightarrow$ 捆成一个类型传递 |
|
|
36
|
-
| Primitive Obsession 基本类型偏执 | 原始值顶替领域概念 $\rightarrow$ 为概念建专属小类型 |
|
|
37
|
-
| Repeated Switches 重复开关 | 对同一类型的 switch/级联 if 反复出现 $\rightarrow$ 多态或共享映射 |
|
|
38
|
-
| Shotgun Surgery 霰弹式修改 | 一个逻辑变更迫使多文件分散编辑 $\rightarrow$ 聚拢到同一模块 |
|
|
39
|
-
| Divergent Change 发散式变化 | 一个模块因多个不相关原因被改 $\rightarrow$ 按单一变化理由拆分 |
|
|
40
|
-
| Speculative Generality 投机泛化 | 为 spec 没有的需求加抽象/参数/钩子 $\rightarrow$ 删掉内联,等真实需求出现 |
|
|
41
|
-
| Message Chains 消息链 | 长 `a.b().c().d()` 导航 $\rightarrow$ 在首对象上藏一个方法 |
|
|
42
|
-
| Middle Man 中间人 | 类/函数几乎只做转发 $\rightarrow$ 删掉,直调真目标 |
|
|
43
|
-
| Refused Bequest 拒绝继承 | 子类忽略/覆盖大部分继承物 $\rightarrow$ 弃继承改组合 |
|
|
44
|
-
|
|
45
|
-
性能三项(P1 分页条款之外):N+1 查询、无界取数/循环、热路径大对象。
|
|
46
|
-
|
|
47
|
-
## 结构化修复动作
|
|
48
|
-
报结构问题时给命名动作,禁只说「这里复杂」让作者猜:消条件链建类型/分发器、折叠重复分支、编排与业务分离、特性逻辑移回所属层、复用权威 helper 禁近亲复制、显式类型边界消下游分支、删无澄清价值的透传包装、抽 helper 或拆大文件。
|
|
49
|
-
|
|
50
|
-
## 合入标尺(防 P2 纠缠)
|
|
51
|
-
确定改善整体代码健康即建议合入,不因「不是我会这么写」而拦——完美不存在,持续改进是目标。样式偏好与假设性风险禁报(证据纪律见角色契约 Constraints)。
|
|
52
|
-
|
|
53
|
-
## 出处
|
|
54
|
-
- 双轴框架与坏味道清单:提炼自宿主全局 `code-review` 技能(Fowler《Refactoring》ch.3 基线)。
|
|
55
|
-
- 结构化修复动作与合入标尺:借自 [addyosmani/agent-skills](https://github.com/addyosmani/agent-skills)(MIT)。
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: verify-ui
|
|
3
|
-
description: 启动本地服务并用浏览器实测 UI 改动(只读验证、不留脏数据);项目无测试基建时靠实测兜底。当用户要求"实测 / UI 验证 / 浏览器验证"时使用。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# verify-ui — UI 实测引导
|
|
7
|
-
|
|
8
|
-
无测试基建时,UI 改动必须浏览器实测。步骤:
|
|
9
|
-
|
|
10
|
-
## 1. 起服务
|
|
11
|
-
|
|
12
|
-
启动命令**不写死在本文件**(本文件是 managed 件,随包升级覆盖——项目特定值写这里会丢):以 `.agents/notes/runtime-env.md`「本地端口与进程」节的记录为准;该节无记录时,先起服务并把命令补记进该文件再继续。
|
|
13
|
-
|
|
14
|
-
进程清单记进 `.agents/notes/runtime-env.md`,实测结束必须关闭。
|
|
15
|
-
|
|
16
|
-
## 2. 浏览器验证
|
|
17
|
-
|
|
18
|
-
- 优先 `browser` 工具;不可用时用 `.agents/scripts/e2e/harness.mjs`(如项目已装;封装 `launch`/`seedSession`/`goto`/`hardGoto`/`clickText`/`pressKey`/`ensureClean`/`screenshot` + 网络/控制台/toast 采集器);自写脚本优先复用其常量与函数。
|
|
19
|
-
- 浏览器首选**较新的 Chromium 内核 headless**(如 Edge `--headless=new`)——旧版 Chrome 会把 antd 图标字体渲染成方框、表格 `waitFor` 超时(见下「浏览器选择」)。
|
|
20
|
-
- 登录态:先调 API 登录拿 token,注入前端约定的 localStorage 键,**并整页重载**让前端状态库重读 token(仅改 hash 的导航不重建文档,会被路由守卫弹回登录页)。
|
|
21
|
-
- 路由为 hash 模式时:`goto` 用 hash;深链接(query 变化)用 `hardGoto`(about:blank 中转强制新文档)。
|
|
22
|
-
|
|
23
|
-
## 3. 实测步骤
|
|
24
|
-
|
|
25
|
-
1. 打开目标页面,按改动点逐项操作:正常路径一条 + 失败路径一条(校验/空态/权限)。
|
|
26
|
-
2. 证据落盘:截图或关键控制台/网络报文,路径写在任务文档「验收标准」勾验项后。
|
|
27
|
-
3. **不留脏数据**:验证产生的临时数据当场删除或还原;清理**只按本次创建的 ID 精确删除**(ID 取自网络捕获的 POST 响应),**禁止按文案/字段模糊匹配**——模糊匹配会误删用户手建数据;清理脚本一律先备份再删;不确定可回滚的操作先停下问用户。
|
|
28
|
-
|
|
29
|
-
## 4. 收尾
|
|
30
|
-
|
|
31
|
-
- 关闭本次起动的全部进程(按 §1 清单逐个停)。
|
|
32
|
-
- 结论按「页面 / 步骤 / 期望 vs 实际 / 证据」回报;发现缺陷只记录定性,不修代码(修复走 build/maintain 流程)。
|
|
33
|
-
|
|
34
|
-
## 关键坑
|
|
35
|
-
|
|
36
|
-
- API 用 **HTTP** 避开自签证书问题(HTTPS 自签证书会让浏览器/脚本报错或需额外信任配置)。
|
|
37
|
-
- MCP 报「browser is already running」是残留实例占 MCP 专用 profile 锁(`~/.cache/chrome-devtools-mcp/`),清掉对应 chrome 进程重试即可,勿误判为 MCP 不可用。
|
|
38
|
-
- 布局类修复用 `getBoundingClientRect` 程序化检测,比截图肉眼更可靠。
|
|
39
|
-
- 后台任务生命周期不可依赖(实测可长可短):长命服务一律独立进程起(如 PowerShell `Start-Process`)。
|
|
40
|
-
- 用 shell 工具起长命服务时**勿在命令末尾接管道**(`| tail` 等)——子进程继承 stdout 句柄会让命令永不返回,直到被工具超时杀掉(并可能连带杀掉服务)。
|
|
41
|
-
|
|
42
|
-
### 浏览器选择
|
|
43
|
-
|
|
44
|
-
- 旧版 Chrome(实测 83)内核太旧 → antd 图标字体全渲染成方框、表格 `waitFor` 超时。**优先较新的 Chromium 内核**(如 Edge `--headless=new`);harness 的 `CHROME` 常量按本机实际安装路径改。
|
|
45
|
-
|
|
46
|
-
### antd 交互(JS `.click()` 不够)
|
|
47
|
-
|
|
48
|
-
- 按钮文本内含空格(`确 定` / `保 存` / `取 消`)→ 匹配须去空白,勿用 `innerText === '确定'`。
|
|
49
|
-
- Select / Picker / Dropdown 的 `.click()` 打不开弹层 → 须 `Input.dispatchMouseEvent`(mousedown+mouseup 序列);普通按钮用 `clickText` 够用,弹层控件须补 `realClick`。
|
|
50
|
-
- `new KeyboardEvent('Escape')` 关不掉弹层 → 须 `Input.dispatchKeyEvent`(rawKeyDown+keyUp)。
|
|
51
|
-
- **关弹层慎用 Esc**:antd Drawer 同样响应 Esc,会连带关闭抽屉并 reset 表单(表现为「保存后列表无新行」,易误判为保存链路故障)——改点遮罩/关闭按钮。
|
|
52
|
-
- 表格行常无 `tr[data-row-key]` 属性 → 用 `.ant-table-tbody > tr.ant-table-row` + textContent 过滤业务键(如单号)定位行。
|
|
53
|
-
- 宽表 `:scroll="{x:N}"` 截图前把 `.ant-table-content` scrollLeft 置底,露出右侧列。
|
|
54
|
-
- 虚拟滚动下拉(a-select)DOM 只渲染约 10 个节点 → **勿按 DOM 节点数断言选项条数**,按接口响应条数断言。
|
|
55
|
-
|
|
56
|
-
### CDP 采集(SPA hash 导航不重建文档)
|
|
57
|
-
|
|
58
|
-
- Log/Console 采集不随导航重置 → 每次导航前重置采集器,防上一页错误泄漏成后续页面的「控制台错误」。
|
|
59
|
-
- toast 观察器须**导航前**安装;导航后装会漏首屏 toast。
|
|
60
|
-
- 首屏无 token 被路由守卫落登录页:写 localStorage 后仅 hash 变化的 `Page.navigate` 不整页重载、前端状态库仍持空 token → 须 `about:blank` 中转强制新文档,或写后 `Page.reload`。
|
|
61
|
-
- 同路由 hash query 变化不重挂载(`#/x?k=A` → `#/x?k=B`)→ 深链接用例走 `about:blank` 中转。
|