@pareto4/pp-core 1.5.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/.claude-plugin/plugin.json +23 -0
- package/GEMINI.md +53 -0
- package/LICENSE +22 -0
- package/README.md +100 -0
- package/agents/pp-advisor-researcher.md +108 -0
- package/agents/pp-ai-researcher.md +114 -0
- package/agents/pp-assumptions-analyzer.md +105 -0
- package/agents/pp-code-fixer.md +669 -0
- package/agents/pp-code-reviewer.md +387 -0
- package/agents/pp-codebase-mapper.md +853 -0
- package/agents/pp-debug-session-manager.md +315 -0
- package/agents/pp-debugger.md +1453 -0
- package/agents/pp-doc-classifier.md +168 -0
- package/agents/pp-doc-synthesizer.md +204 -0
- package/agents/pp-doc-verifier.md +217 -0
- package/agents/pp-doc-writer.md +616 -0
- package/agents/pp-domain-researcher.md +147 -0
- package/agents/pp-eval-auditor.md +191 -0
- package/agents/pp-eval-planner.md +154 -0
- package/agents/pp-executor.md +808 -0
- package/agents/pp-framework-selector.md +160 -0
- package/agents/pp-integration-checker.md +470 -0
- package/agents/pp-intel-updater.md +339 -0
- package/agents/pp-mempalace-curator.md +47 -0
- package/agents/pp-nyquist-auditor.md +204 -0
- package/agents/pp-pattern-mapper.md +335 -0
- package/agents/pp-phase-researcher.md +867 -0
- package/agents/pp-plan-checker.md +988 -0
- package/agents/pp-planner.md +1052 -0
- package/agents/pp-project-researcher.md +612 -0
- package/agents/pp-research-synthesizer.md +260 -0
- package/agents/pp-roadmapper.md +741 -0
- package/agents/pp-security-auditor.md +156 -0
- package/agents/pp-ui-auditor.md +495 -0
- package/agents/pp-ui-checker.md +309 -0
- package/agents/pp-ui-researcher.md +375 -0
- package/agents/pp-user-profiler.md +171 -0
- package/agents/pp-verifier.md +967 -0
- package/assets/gsd-logo-2000-transparent.png +0 -0
- package/assets/gsd-logo-2000-transparent.svg +17 -0
- package/assets/gsd-logo-2000.png +0 -0
- package/assets/gsd-logo-2000.svg +21 -0
- package/assets/terminal.svg +68 -0
- package/bin/install.js +12370 -0
- package/bin/lib/ui-safety-gate.cjs +107 -0
- package/commands/pp-add-tests.md +42 -0
- package/commands/pp-ai-integration-phase.md +37 -0
- package/commands/pp-audit-fix.md +34 -0
- package/commands/pp-audit-milestone.md +37 -0
- package/commands/pp-audit-uat.md +24 -0
- package/commands/pp-autonomous.md +51 -0
- package/commands/pp-capture.md +62 -0
- package/commands/pp-cleanup.md +24 -0
- package/commands/pp-code-review.md +59 -0
- package/commands/pp-complete-milestone.md +143 -0
- package/commands/pp-config.md +56 -0
- package/commands/pp-debug.md +52 -0
- package/commands/pp-discovery.md +34 -0
- package/commands/pp-discuss-phase.md +77 -0
- package/commands/pp-docs-update.md +49 -0
- package/commands/pp-eval-review.md +33 -0
- package/commands/pp-execute-phase.md +65 -0
- package/commands/pp-explore.md +27 -0
- package/commands/pp-extract-learnings.md +23 -0
- package/commands/pp-fast.md +31 -0
- package/commands/pp-forensics.md +57 -0
- package/commands/pp-graphify.md +204 -0
- package/commands/pp-health.md +31 -0
- package/commands/pp-help.md +28 -0
- package/commands/pp-import.md +45 -0
- package/commands/pp-inbox.md +39 -0
- package/commands/pp-ingest-docs.md +42 -0
- package/commands/pp-manager.md +45 -0
- package/commands/pp-map-codebase.md +83 -0
- package/commands/pp-mempalace-capture.md +71 -0
- package/commands/pp-mempalace-recall.md +102 -0
- package/commands/pp-milestone-summary.md +51 -0
- package/commands/pp-mvp-phase.md +45 -0
- package/commands/pp-new-milestone.md +45 -0
- package/commands/pp-new-project.md +47 -0
- package/commands/pp-ns-context.md +25 -0
- package/commands/pp-ns-ideate.md +24 -0
- package/commands/pp-ns-manage.md +36 -0
- package/commands/pp-ns-project.md +27 -0
- package/commands/pp-ns-review.md +29 -0
- package/commands/pp-ns-workflow.md +35 -0
- package/commands/pp-pause-work.md +43 -0
- package/commands/pp-phase.md +56 -0
- package/commands/pp-plan-phase.md +63 -0
- package/commands/pp-plan-review-convergence.md +60 -0
- package/commands/pp-pr-branch.md +26 -0
- package/commands/pp-profile-user.md +46 -0
- package/commands/pp-progress.md +49 -0
- package/commands/pp-quick.md +174 -0
- package/commands/pp-resume-work.md +30 -0
- package/commands/pp-review-backlog.md +63 -0
- package/commands/pp-review.md +42 -0
- package/commands/pp-secure-phase.md +36 -0
- package/commands/pp-settings.md +29 -0
- package/commands/pp-ship.md +24 -0
- package/commands/pp-sketch.md +60 -0
- package/commands/pp-spec-phase.md +63 -0
- package/commands/pp-spike.md +57 -0
- package/commands/pp-stats.md +20 -0
- package/commands/pp-surface.md +162 -0
- package/commands/pp-thread.md +24 -0
- package/commands/pp-ui-phase.md +35 -0
- package/commands/pp-ui-review.md +33 -0
- package/commands/pp-ultraplan-phase.md +34 -0
- package/commands/pp-undo.md +35 -0
- package/commands/pp-update.md +49 -0
- package/commands/pp-validate-phase.md +36 -0
- package/commands/pp-verify-work.md +39 -0
- package/commands/pp-workspace.md +52 -0
- package/commands/pp-workstreams.md +70 -0
- package/gemini-extension.json +6 -0
- package/hooks/dist/lib/git-cmd.js +150 -0
- package/hooks/dist/lib/pp-graphify-rebuild.sh +65 -0
- package/hooks/dist/managed-hooks-registry.cjs +39 -0
- package/hooks/dist/pp-check-update-worker.js +108 -0
- package/hooks/dist/pp-check-update.js +66 -0
- package/hooks/dist/pp-config-reload.js +133 -0
- package/hooks/dist/pp-context-monitor.js +196 -0
- package/hooks/dist/pp-cursor-post-tool.js +75 -0
- package/hooks/dist/pp-cursor-session-start.js +52 -0
- package/hooks/dist/pp-ensure-canonical-path.js +305 -0
- package/hooks/dist/pp-graphify-update.sh +158 -0
- package/hooks/dist/pp-phase-boundary.sh +47 -0
- package/hooks/dist/pp-prompt-guard.js +97 -0
- package/hooks/dist/pp-read-guard.js +101 -0
- package/hooks/dist/pp-read-injection-scanner.js +203 -0
- package/hooks/dist/pp-session-state.sh +59 -0
- package/hooks/dist/pp-statusline.js +566 -0
- package/hooks/dist/pp-update-banner.js +138 -0
- package/hooks/dist/pp-validate-commit.sh +57 -0
- package/hooks/dist/pp-workflow-guard.js +167 -0
- package/hooks/dist/pp-worktree-path-guard.js +185 -0
- package/hooks/hooks.json +70 -0
- package/hooks/lib/git-cmd.js +150 -0
- package/hooks/lib/pp-graphify-rebuild.sh +65 -0
- package/hooks/managed-hooks-registry.cjs +39 -0
- package/hooks/pp-check-update-worker.js +108 -0
- package/hooks/pp-check-update.js +66 -0
- package/hooks/pp-config-reload.js +133 -0
- package/hooks/pp-context-monitor.js +196 -0
- package/hooks/pp-cursor-post-tool.js +75 -0
- package/hooks/pp-cursor-session-start.js +52 -0
- package/hooks/pp-ensure-canonical-path.js +305 -0
- package/hooks/pp-graphify-update.sh +158 -0
- package/hooks/pp-phase-boundary.sh +47 -0
- package/hooks/pp-prompt-guard.js +97 -0
- package/hooks/pp-read-guard.js +101 -0
- package/hooks/pp-read-injection-scanner.js +203 -0
- package/hooks/pp-session-state.sh +59 -0
- package/hooks/pp-statusline.js +566 -0
- package/hooks/pp-update-banner.js +138 -0
- package/hooks/pp-validate-commit.sh +57 -0
- package/hooks/pp-workflow-guard.js +167 -0
- package/hooks/pp-worktree-path-guard.js +185 -0
- package/package.json +125 -0
- package/pp-core/bin/check-latest-version.cjs +161 -0
- package/pp-core/bin/lib/active-workstream-store.cjs +297 -0
- package/pp-core/bin/lib/adr-parser.cjs +399 -0
- package/pp-core/bin/lib/agent-command-router.cjs +68 -0
- package/pp-core/bin/lib/agent-install-check.cjs +143 -0
- package/pp-core/bin/lib/artifacts.cjs +51 -0
- package/pp-core/bin/lib/audit-command-router.cjs +61 -0
- package/pp-core/bin/lib/audit.cjs +743 -0
- package/pp-core/bin/lib/capability-activation.cjs +113 -0
- package/pp-core/bin/lib/capability-registry.cjs +3727 -0
- package/pp-core/bin/lib/capability-state.cjs +497 -0
- package/pp-core/bin/lib/capability-writer.cjs +355 -0
- package/pp-core/bin/lib/check-command-router.cjs +800 -0
- package/pp-core/bin/lib/cjs-command-router-adapter.cjs +81 -0
- package/pp-core/bin/lib/cli-exit.cjs +61 -0
- package/pp-core/bin/lib/clock.cjs +95 -0
- package/pp-core/bin/lib/clusters.cjs +131 -0
- package/pp-core/bin/lib/code-review-flags.cjs +59 -0
- package/pp-core/bin/lib/command-aliases.cjs +809 -0
- package/pp-core/bin/lib/command-arg-projection.cjs +55 -0
- package/pp-core/bin/lib/command-roster.cjs +19 -0
- package/pp-core/bin/lib/command-routing-hub.cjs +300 -0
- package/pp-core/bin/lib/commands.cjs +1244 -0
- package/pp-core/bin/lib/config-loader.cjs +714 -0
- package/pp-core/bin/lib/config-schema.cjs +58 -0
- package/pp-core/bin/lib/config-types.cjs +20 -0
- package/pp-core/bin/lib/config.cjs +796 -0
- package/pp-core/bin/lib/configuration.cjs +209 -0
- package/pp-core/bin/lib/context-utilization.cjs +48 -0
- package/pp-core/bin/lib/core-utils.cjs +198 -0
- package/pp-core/bin/lib/decisions.cjs +136 -0
- package/pp-core/bin/lib/docs.cjs +264 -0
- package/pp-core/bin/lib/drift.cjs +364 -0
- package/pp-core/bin/lib/edge-probe.cjs +196 -0
- package/pp-core/bin/lib/fallow-runner.cjs +153 -0
- package/pp-core/bin/lib/federated-config.cjs +182 -0
- package/pp-core/bin/lib/frontmatter.cjs +494 -0
- package/pp-core/bin/lib/gap-checker.cjs +260 -0
- package/pp-core/bin/lib/git-base-branch.cjs +220 -0
- package/pp-core/bin/lib/graphify-command-router.cjs +72 -0
- package/pp-core/bin/lib/graphify.cjs +472 -0
- package/pp-core/bin/lib/gsd2-import.cjs +456 -0
- package/pp-core/bin/lib/init-command-router.cjs +62 -0
- package/pp-core/bin/lib/init.cjs +1912 -0
- package/pp-core/bin/lib/install-profiles.cjs +814 -0
- package/pp-core/bin/lib/installer-migration-authoring.cjs +122 -0
- package/pp-core/bin/lib/installer-migration-report.cjs +351 -0
- package/pp-core/bin/lib/installer-migrations/000-first-time-baseline.cjs +225 -0
- package/pp-core/bin/lib/installer-migrations/001-legacy-orphan-files.cjs +48 -0
- package/pp-core/bin/lib/installer-migrations/002-codex-legacy-hooks-json.cjs +94 -0
- package/pp-core/bin/lib/installer-migrations/003-rename-get-shit-done-to-gsd-core.cjs +108 -0
- package/pp-core/bin/lib/installer-migrations/004-prune-stale-pristine-snapshots.cjs +123 -0
- package/pp-core/bin/lib/installer-migrations/005-rename-gsd-core-to-pp-core.cjs +109 -0
- package/pp-core/bin/lib/installer-migrations/006-rename-gsd-command-namespace.cjs +135 -0
- package/pp-core/bin/lib/installer-migrations.cjs +823 -0
- package/pp-core/bin/lib/intel-command-router.cjs +119 -0
- package/pp-core/bin/lib/intel.cjs +584 -0
- package/pp-core/bin/lib/io.cjs +220 -0
- package/pp-core/bin/lib/learnings.cjs +270 -0
- package/pp-core/bin/lib/legacy-cleanup.cjs +253 -0
- package/pp-core/bin/lib/loop-host-contract.cjs +105 -0
- package/pp-core/bin/lib/loop-resolver.cjs +479 -0
- package/pp-core/bin/lib/milestone.cjs +381 -0
- package/pp-core/bin/lib/model-catalog.cjs +154 -0
- package/pp-core/bin/lib/model-profiles.cjs +24 -0
- package/pp-core/bin/lib/model-resolver.cjs +467 -0
- package/pp-core/bin/lib/observability/event.cjs +51 -0
- package/pp-core/bin/lib/observability/logger.cjs +146 -0
- package/pp-core/bin/lib/observability/redaction.cjs +48 -0
- package/pp-core/bin/lib/package-identity.cjs +35 -0
- package/pp-core/bin/lib/package-legitimacy.cjs +368 -0
- package/pp-core/bin/lib/phase-command-router.cjs +209 -0
- package/pp-core/bin/lib/phase-id.cjs +213 -0
- package/pp-core/bin/lib/phase-lifecycle.cjs +74 -0
- package/pp-core/bin/lib/phase-locator.cjs +145 -0
- package/pp-core/bin/lib/phase.cjs +1446 -0
- package/pp-core/bin/lib/phases-command-router.cjs +43 -0
- package/pp-core/bin/lib/plan-drift-guard.cjs +117 -0
- package/pp-core/bin/lib/plan-scan.cjs +91 -0
- package/pp-core/bin/lib/planning-workspace.cjs +245 -0
- package/pp-core/bin/lib/probe-core.cjs +402 -0
- package/pp-core/bin/lib/profile-output.cjs +1164 -0
- package/pp-core/bin/lib/profile-pipeline-command-router.cjs +138 -0
- package/pp-core/bin/lib/profile-pipeline.cjs +519 -0
- package/pp-core/bin/lib/prohibition-enforcement.cjs +660 -0
- package/pp-core/bin/lib/project-root.cjs +119 -0
- package/pp-core/bin/lib/prompt-budget.cjs +305 -0
- package/pp-core/bin/lib/research-provider.cjs +137 -0
- package/pp-core/bin/lib/research-store.cjs +167 -0
- package/pp-core/bin/lib/review-reviewer-selection.cjs +121 -0
- package/pp-core/bin/lib/roadmap-command-router.cjs +166 -0
- package/pp-core/bin/lib/roadmap-parser.cjs +456 -0
- package/pp-core/bin/lib/roadmap-upgrade.cjs +476 -0
- package/pp-core/bin/lib/roadmap.cjs +738 -0
- package/pp-core/bin/lib/runtime-artifact-conversion.cjs +1966 -0
- package/pp-core/bin/lib/runtime-artifact-layout.cjs +342 -0
- package/pp-core/bin/lib/runtime-config-adapter-registry.cjs +103 -0
- package/pp-core/bin/lib/runtime-homes.cjs +272 -0
- package/pp-core/bin/lib/runtime-hooks-surface.cjs +1460 -0
- package/pp-core/bin/lib/runtime-name-policy.cjs +97 -0
- package/pp-core/bin/lib/runtime-slash.cjs +137 -0
- package/pp-core/bin/lib/schema-detect.cjs +159 -0
- package/pp-core/bin/lib/secrets.cjs +34 -0
- package/pp-core/bin/lib/security.cjs +480 -0
- package/pp-core/bin/lib/semver-compare.cjs +42 -0
- package/pp-core/bin/lib/shell-command-projection.cjs +550 -0
- package/pp-core/bin/lib/state-command-router.cjs +172 -0
- package/pp-core/bin/lib/state-document.cjs +312 -0
- package/pp-core/bin/lib/state.cjs +2587 -0
- package/pp-core/bin/lib/surface.cjs +505 -0
- package/pp-core/bin/lib/task-command-router.cjs +85 -0
- package/pp-core/bin/lib/teams-status.cjs +74 -0
- package/pp-core/bin/lib/template.cjs +246 -0
- package/pp-core/bin/lib/uat-predicate.cjs +329 -0
- package/pp-core/bin/lib/uat.cjs +359 -0
- package/pp-core/bin/lib/ui-safety-gate.cjs +98 -0
- package/pp-core/bin/lib/update-context.cjs +221 -0
- package/pp-core/bin/lib/validate-command-router.cjs +91 -0
- package/pp-core/bin/lib/validate.cjs +122 -0
- package/pp-core/bin/lib/verification-command-router.cjs +31 -0
- package/pp-core/bin/lib/verification.cjs +196 -0
- package/pp-core/bin/lib/verify-command-router.cjs +44 -0
- package/pp-core/bin/lib/verify.cjs +1932 -0
- package/pp-core/bin/lib/workstream-inventory-builder.cjs +81 -0
- package/pp-core/bin/lib/workstream-inventory.cjs +147 -0
- package/pp-core/bin/lib/workstream-name-policy.cjs +91 -0
- package/pp-core/bin/lib/workstream.cjs +386 -0
- package/pp-core/bin/lib/worktree-base-ref.cjs +350 -0
- package/pp-core/bin/lib/worktree-safety.cjs +985 -0
- package/pp-core/bin/pp-tools.cjs +2239 -0
- package/pp-core/bin/pp_run +20 -0
- package/pp-core/bin/shared/config-defaults.manifest.json +97 -0
- package/pp-core/bin/shared/config-schema.manifest.json +176 -0
- package/pp-core/bin/shared/model-catalog.json +160 -0
- package/pp-core/bin/shared/runtime-aliases.manifest.json +79 -0
- package/pp-core/bin/verify-reapply-patches.cjs +400 -0
- package/pp-core/contexts/dev.md +21 -0
- package/pp-core/contexts/research.md +22 -0
- package/pp-core/contexts/review.md +23 -0
- package/pp-core/references/agent-contracts.md +79 -0
- package/pp-core/references/ai-evals.md +156 -0
- package/pp-core/references/ai-frameworks.md +186 -0
- package/pp-core/references/artifact-types.md +131 -0
- package/pp-core/references/autonomous-smart-discuss.md +277 -0
- package/pp-core/references/checkpoints.md +814 -0
- package/pp-core/references/common-bug-patterns.md +114 -0
- package/pp-core/references/context-budget.md +85 -0
- package/pp-core/references/continuation-format.md +253 -0
- package/pp-core/references/debugger-philosophy.md +76 -0
- package/pp-core/references/decimal-phase-calculation.md +64 -0
- package/pp-core/references/doc-conflict-engine.md +91 -0
- package/pp-core/references/domain-probes.md +125 -0
- package/pp-core/references/edge-probe-fixtures/01-round-half-even/expected-coverage.json +7 -0
- package/pp-core/references/edge-probe-fixtures/01-round-half-even/requirements.json +1 -0
- package/pp-core/references/edge-probe-fixtures/02-merge-intervals/expected-coverage.json +8 -0
- package/pp-core/references/edge-probe-fixtures/02-merge-intervals/requirements.json +1 -0
- package/pp-core/references/edge-probe-fixtures/03-truncate-graphemes/expected-coverage.json +7 -0
- package/pp-core/references/edge-probe-fixtures/03-truncate-graphemes/requirements.json +1 -0
- package/pp-core/references/edge-probe-fixtures/04-money-rounding/expected-coverage.json +7 -0
- package/pp-core/references/edge-probe-fixtures/04-money-rounding/requirements.json +1 -0
- package/pp-core/references/edge-probe-fixtures/05-list-dedupe/expected-coverage.json +8 -0
- package/pp-core/references/edge-probe-fixtures/05-list-dedupe/requirements.json +1 -0
- package/pp-core/references/edge-probe-fixtures/06-resolved-mixed/expected-coverage.json +8 -0
- package/pp-core/references/edge-probe-fixtures/06-resolved-mixed/requirements.json +1 -0
- package/pp-core/references/edge-probe-fixtures/06-resolved-mixed/resolutions.json +4 -0
- package/pp-core/references/edge-probe.md +272 -0
- package/pp-core/references/execute-mvp-tdd.md +81 -0
- package/pp-core/references/executor-examples.md +110 -0
- package/pp-core/references/few-shot-examples/plan-checker.md +73 -0
- package/pp-core/references/few-shot-examples/verifier.md +109 -0
- package/pp-core/references/gate-prompts.md +100 -0
- package/pp-core/references/gates.md +70 -0
- package/pp-core/references/git-integration.md +298 -0
- package/pp-core/references/git-planning-commit.md +40 -0
- package/pp-core/references/ios-scaffold.md +123 -0
- package/pp-core/references/loop-hook-dispatch.md +61 -0
- package/pp-core/references/mandatory-initial-read.md +2 -0
- package/pp-core/references/model-profile-resolution.md +38 -0
- package/pp-core/references/model-profiles.md +245 -0
- package/pp-core/references/mvp-concepts.md +49 -0
- package/pp-core/references/phase-argument-parsing.md +61 -0
- package/pp-core/references/planner-antipatterns.md +176 -0
- package/pp-core/references/planner-chunked.md +49 -0
- package/pp-core/references/planner-gap-closure.md +62 -0
- package/pp-core/references/planner-graphify-auto-update.md +67 -0
- package/pp-core/references/planner-guidance.md +186 -0
- package/pp-core/references/planner-human-verify-mode.md +57 -0
- package/pp-core/references/planner-interface-context.md +62 -0
- package/pp-core/references/planner-load-graph-context.md +36 -0
- package/pp-core/references/planner-mvp-mode.md +53 -0
- package/pp-core/references/planner-reviews.md +42 -0
- package/pp-core/references/planner-revision.md +87 -0
- package/pp-core/references/planner-source-audit.md +73 -0
- package/pp-core/references/planning-config.md +477 -0
- package/pp-core/references/prohibition-probe-fixtures/01-streak-reminder/expected.json +14 -0
- package/pp-core/references/prohibition-probe-fixtures/02-clean-utility/expected.json +4 -0
- package/pp-core/references/prohibition-probe-fixtures/03-multi-prohibition/expected.json +32 -0
- package/pp-core/references/prohibition-probe.md +326 -0
- package/pp-core/references/project-skills-discovery.md +19 -0
- package/pp-core/references/questioning.md +162 -0
- package/pp-core/references/research-documentation-lookup.md +29 -0
- package/pp-core/references/research-philosophy.md +29 -0
- package/pp-core/references/research-verification-protocol.md +27 -0
- package/pp-core/references/revision-loop.md +97 -0
- package/pp-core/references/scout-codebase.md +51 -0
- package/pp-core/references/skeleton-template.md +48 -0
- package/pp-core/references/sketch-interactivity.md +41 -0
- package/pp-core/references/sketch-theme-system.md +94 -0
- package/pp-core/references/sketch-tooling.md +45 -0
- package/pp-core/references/sketch-variant-patterns.md +81 -0
- package/pp-core/references/spidr-splitting.md +69 -0
- package/pp-core/references/tdd.md +330 -0
- package/pp-core/references/thinking-models-debug.md +44 -0
- package/pp-core/references/thinking-models-execution.md +50 -0
- package/pp-core/references/thinking-models-planning.md +62 -0
- package/pp-core/references/thinking-models-research.md +50 -0
- package/pp-core/references/thinking-models-verification.md +55 -0
- package/pp-core/references/thinking-partner.md +96 -0
- package/pp-core/references/ui-brand.md +162 -0
- package/pp-core/references/universal-anti-patterns.md +63 -0
- package/pp-core/references/user-profiling.md +681 -0
- package/pp-core/references/user-story-template.md +58 -0
- package/pp-core/references/verification-overrides.md +227 -0
- package/pp-core/references/verification-patterns.md +612 -0
- package/pp-core/references/verify-mvp-mode.md +85 -0
- package/pp-core/references/workstream-flag.md +111 -0
- package/pp-core/references/worktree-branch-check.md +44 -0
- package/pp-core/references/worktree-path-safety.md +67 -0
- package/pp-core/templates/AI-SPEC.md +246 -0
- package/pp-core/templates/DEBUG.md +169 -0
- package/pp-core/templates/README.md +77 -0
- package/pp-core/templates/SECURITY.md +61 -0
- package/pp-core/templates/UAT.md +265 -0
- package/pp-core/templates/UI-SPEC.md +100 -0
- package/pp-core/templates/VALIDATION.md +76 -0
- package/pp-core/templates/claude-md.md +145 -0
- package/pp-core/templates/codebase/architecture.md +255 -0
- package/pp-core/templates/codebase/concerns.md +310 -0
- package/pp-core/templates/codebase/conventions.md +307 -0
- package/pp-core/templates/codebase/integrations.md +280 -0
- package/pp-core/templates/codebase/stack.md +186 -0
- package/pp-core/templates/codebase/structure.md +285 -0
- package/pp-core/templates/codebase/testing.md +480 -0
- package/pp-core/templates/config.json +62 -0
- package/pp-core/templates/context.md +352 -0
- package/pp-core/templates/continue-here.md +78 -0
- package/pp-core/templates/copilot-instructions.md +7 -0
- package/pp-core/templates/debug-subagent-prompt.md +91 -0
- package/pp-core/templates/dev-preferences.md +21 -0
- package/pp-core/templates/discovery.md +146 -0
- package/pp-core/templates/discussion-log.md +63 -0
- package/pp-core/templates/milestone-archive.md +123 -0
- package/pp-core/templates/milestone.md +115 -0
- package/pp-core/templates/phase-prompt.md +610 -0
- package/pp-core/templates/planner-subagent-prompt.md +117 -0
- package/pp-core/templates/project.md +203 -0
- package/pp-core/templates/requirements.md +231 -0
- package/pp-core/templates/research-project/ARCHITECTURE.md +204 -0
- package/pp-core/templates/research-project/FEATURES.md +147 -0
- package/pp-core/templates/research-project/PITFALLS.md +200 -0
- package/pp-core/templates/research-project/STACK.md +120 -0
- package/pp-core/templates/research-project/SUMMARY.md +170 -0
- package/pp-core/templates/research.md +592 -0
- package/pp-core/templates/retrospective.md +54 -0
- package/pp-core/templates/roadmap.md +202 -0
- package/pp-core/templates/spec.md +333 -0
- package/pp-core/templates/state.md +195 -0
- package/pp-core/templates/summary-complex.md +60 -0
- package/pp-core/templates/summary-minimal.md +42 -0
- package/pp-core/templates/summary-standard.md +49 -0
- package/pp-core/templates/summary.md +249 -0
- package/pp-core/templates/user-profile.md +146 -0
- package/pp-core/templates/user-setup.md +311 -0
- package/pp-core/templates/verification-report.md +335 -0
- package/pp-core/workflows/_runtime-launcher.snippet.sh +1 -0
- package/pp-core/workflows/add-backlog.md +91 -0
- package/pp-core/workflows/add-phase.md +113 -0
- package/pp-core/workflows/add-tests.md +355 -0
- package/pp-core/workflows/add-todo.md +161 -0
- package/pp-core/workflows/ai-integration-phase.md +295 -0
- package/pp-core/workflows/analyze-dependencies.md +96 -0
- package/pp-core/workflows/audit-fix.md +178 -0
- package/pp-core/workflows/audit-milestone.md +362 -0
- package/pp-core/workflows/audit-uat.md +110 -0
- package/pp-core/workflows/autonomous.md +886 -0
- package/pp-core/workflows/check-todos.md +180 -0
- package/pp-core/workflows/cleanup.md +195 -0
- package/pp-core/workflows/code-review-fix.md +506 -0
- package/pp-core/workflows/code-review.md +696 -0
- package/pp-core/workflows/complete-milestone.md +857 -0
- package/pp-core/workflows/debug.md +237 -0
- package/pp-core/workflows/diagnose-issues.md +245 -0
- package/pp-core/workflows/discovery-phase.md +291 -0
- package/pp-core/workflows/discovery-sprint.md +1546 -0
- package/pp-core/workflows/discuss-phase/modes/advisor.md +176 -0
- package/pp-core/workflows/discuss-phase/modes/all.md +28 -0
- package/pp-core/workflows/discuss-phase/modes/analyze.md +44 -0
- package/pp-core/workflows/discuss-phase/modes/auto.md +57 -0
- package/pp-core/workflows/discuss-phase/modes/batch.md +52 -0
- package/pp-core/workflows/discuss-phase/modes/chain.md +98 -0
- package/pp-core/workflows/discuss-phase/modes/default.md +141 -0
- package/pp-core/workflows/discuss-phase/modes/power.md +44 -0
- package/pp-core/workflows/discuss-phase/modes/text.md +55 -0
- package/pp-core/workflows/discuss-phase/templates/checkpoint.json +18 -0
- package/pp-core/workflows/discuss-phase/templates/context.md +136 -0
- package/pp-core/workflows/discuss-phase/templates/discussion-log.md +50 -0
- package/pp-core/workflows/discuss-phase-assumptions.md +675 -0
- package/pp-core/workflows/discuss-phase-power.md +291 -0
- package/pp-core/workflows/discuss-phase.md +520 -0
- package/pp-core/workflows/do.md +111 -0
- package/pp-core/workflows/docs-update.md +1168 -0
- package/pp-core/workflows/edit-phase.md +295 -0
- package/pp-core/workflows/eval-review.md +159 -0
- package/pp-core/workflows/execute-phase/steps/codebase-drift-gate.md +95 -0
- package/pp-core/workflows/execute-phase/steps/per-plan-worktree-gate.md +94 -0
- package/pp-core/workflows/execute-phase/steps/post-merge-gate.md +117 -0
- package/pp-core/workflows/execute-phase/steps/worktree-recovery-policy.md +9 -0
- package/pp-core/workflows/execute-phase.md +1707 -0
- package/pp-core/workflows/execute-plan.md +541 -0
- package/pp-core/workflows/explore.md +146 -0
- package/pp-core/workflows/extract-learnings.md +243 -0
- package/pp-core/workflows/fast.md +124 -0
- package/pp-core/workflows/forensics.md +279 -0
- package/pp-core/workflows/graduation.md +196 -0
- package/pp-core/workflows/health.md +224 -0
- package/pp-core/workflows/help/modes/brief.md +22 -0
- package/pp-core/workflows/help/modes/default.md +50 -0
- package/pp-core/workflows/help/modes/full.md +791 -0
- package/pp-core/workflows/help/modes/topic.md +74 -0
- package/pp-core/workflows/help.md +24 -0
- package/pp-core/workflows/import.md +256 -0
- package/pp-core/workflows/inbox.md +387 -0
- package/pp-core/workflows/ingest-docs.md +340 -0
- package/pp-core/workflows/insert-phase.md +152 -0
- package/pp-core/workflows/list-phase-assumptions.md +178 -0
- package/pp-core/workflows/list-workspaces.md +57 -0
- package/pp-core/workflows/manager.md +435 -0
- package/pp-core/workflows/map-codebase.md +444 -0
- package/pp-core/workflows/milestone-summary.md +224 -0
- package/pp-core/workflows/mvp-phase.md +222 -0
- package/pp-core/workflows/new-milestone.md +643 -0
- package/pp-core/workflows/new-project.md +1563 -0
- package/pp-core/workflows/new-workspace.md +240 -0
- package/pp-core/workflows/next.md +347 -0
- package/pp-core/workflows/node-repair.md +92 -0
- package/pp-core/workflows/note.md +158 -0
- package/pp-core/workflows/pause-work.md +250 -0
- package/pp-core/workflows/plan-milestone-gaps.md +281 -0
- package/pp-core/workflows/plan-phase.md +1755 -0
- package/pp-core/workflows/plan-review-convergence.md +369 -0
- package/pp-core/workflows/plant-seed.md +230 -0
- package/pp-core/workflows/pr-branch.md +159 -0
- package/pp-core/workflows/profile-user.md +455 -0
- package/pp-core/workflows/progress.md +756 -0
- package/pp-core/workflows/quick.md +1045 -0
- package/pp-core/workflows/reapply-patches.md +443 -0
- package/pp-core/workflows/remove-phase.md +156 -0
- package/pp-core/workflows/remove-workspace.md +108 -0
- package/pp-core/workflows/resume-project.md +348 -0
- package/pp-core/workflows/review.md +765 -0
- package/pp-core/workflows/scan.md +107 -0
- package/pp-core/workflows/secure-phase.md +184 -0
- package/pp-core/workflows/session-report.md +146 -0
- package/pp-core/workflows/settings-advanced.md +816 -0
- package/pp-core/workflows/settings-integrations.md +312 -0
- package/pp-core/workflows/settings.md +592 -0
- package/pp-core/workflows/ship.md +465 -0
- package/pp-core/workflows/sketch-wrap-up.md +286 -0
- package/pp-core/workflows/sketch.md +361 -0
- package/pp-core/workflows/spec-phase.md +495 -0
- package/pp-core/workflows/spike-wrap-up.md +307 -0
- package/pp-core/workflows/spike.md +453 -0
- package/pp-core/workflows/stats.md +80 -0
- package/pp-core/workflows/sync-skills.md +182 -0
- package/pp-core/workflows/thread.md +222 -0
- package/pp-core/workflows/transition.md +694 -0
- package/pp-core/workflows/ui-phase.md +328 -0
- package/pp-core/workflows/ui-review.md +193 -0
- package/pp-core/workflows/ultraplan-phase.md +199 -0
- package/pp-core/workflows/undo.md +314 -0
- package/pp-core/workflows/update.md +501 -0
- package/pp-core/workflows/validate-phase.md +183 -0
- package/pp-core/workflows/verify-phase.md +569 -0
- package/pp-core/workflows/verify-work.md +804 -0
- package/scripts/affected-tests-lib.cjs +554 -0
- package/scripts/audit-workflow-script-paths.cjs +73 -0
- package/scripts/base64-scan.sh +351 -0
- package/scripts/build-hooks.js +254 -0
- package/scripts/changeset/README.md +129 -0
- package/scripts/changeset/cli.cjs +597 -0
- package/scripts/changeset/github-release-notes.cjs +199 -0
- package/scripts/changeset/lint.cjs +147 -0
- package/scripts/changeset/new.cjs +151 -0
- package/scripts/changeset/parse.cjs +114 -0
- package/scripts/changeset/render.cjs +34 -0
- package/scripts/changeset/serialize.cjs +130 -0
- package/scripts/check-alias-drift.cjs +114 -0
- package/scripts/check-env.cjs +312 -0
- package/scripts/check-npm-integrity.cjs +215 -0
- package/scripts/ci-guard-runner.cjs +22 -0
- package/scripts/ci-prepare-test-scope.cjs +93 -0
- package/scripts/ci-rebase-check.cjs +86 -0
- package/scripts/ci-test-scope.cjs +441 -0
- package/scripts/command-contract-helpers.cjs +64 -0
- package/scripts/diff-touches-shipped-paths.cjs +149 -0
- package/scripts/fix-slash-commands.cjs +161 -0
- package/scripts/gen-capability-registry.cjs +2646 -0
- package/scripts/gen-commands-reference.cjs +139 -0
- package/scripts/gen-inventory-manifest.cjs +114 -0
- package/scripts/gen-loop-host-contract.cjs +526 -0
- package/scripts/gen-research-agents.cjs +276 -0
- package/scripts/generate-package-identity.cjs +134 -0
- package/scripts/issue-dedupe.cjs +278 -0
- package/scripts/issue-version-gate.cjs +140 -0
- package/scripts/lib/allowlist-ratchet.cjs +236 -0
- package/scripts/lib/cli-exit.cjs +56 -0
- package/scripts/lint-allow-test-rule-refs.allowlist.json +328 -0
- package/scripts/lint-allow-test-rule-refs.cjs +162 -0
- package/scripts/lint-command-contract.cjs +118 -0
- package/scripts/lint-descriptions.cjs +87 -0
- package/scripts/lint-docs-required.cjs +222 -0
- package/scripts/lint-legacy-dir-name.cjs +166 -0
- package/scripts/lint-package-identity-drift.cjs +141 -0
- package/scripts/lint-pr-check-project-dir.cjs +99 -0
- package/scripts/lint-regression-test-names.allowlist.json +269 -0
- package/scripts/lint-regression-test-names.cjs +117 -0
- package/scripts/lint-shell-command-projection-drift.cjs +62 -0
- package/scripts/lint-skill-deps.cjs +185 -0
- package/scripts/lint-test-file-count.allowlist.json +181 -0
- package/scripts/lint-test-file-count.cjs +246 -0
- package/scripts/lint-windows-test-portability.cjs +178 -0
- package/scripts/mutation-matrix.cjs +323 -0
- package/scripts/pr-target-policy.cjs +63 -0
- package/scripts/pr-template-policy.cjs +268 -0
- package/scripts/prompt-injection-scan.sh +207 -0
- package/scripts/registry-smoke.cjs +337 -0
- package/scripts/release-notes/discord-release-summary.cjs +373 -0
- package/scripts/release-notes/format-github-release-notes.cjs +261 -0
- package/scripts/release-tarball-smoke.cjs +763 -0
- package/scripts/research-profiles.cjs +149 -0
- package/scripts/run-affected-tests.cjs +7 -0
- package/scripts/run-tests.cjs +589 -0
- package/scripts/secret-scan-lint.sh +231 -0
- package/scripts/secret-scan.sh +358 -0
- package/scripts/setup-branch-protection.sh +234 -0
- package/scripts/strip-prose-atrefs.cjs +106 -0
- package/scripts/sync-manifest-versions.cjs +119 -0
- package/scripts/sync-next-version.cjs +133 -0
- package/scripts/sync-rulesets.sh +34 -0
- package/scripts/sync-runtime-launcher.cjs +425 -0
- package/scripts/test-failure-reasons.cjs +34 -0
- package/scripts/update-size-baseline.cjs +68 -0
- package/scripts/verify-npm-publish.cjs +240 -0
- package/scripts/verify-opengsd-sweep.cjs +288 -0
- package/scripts/verify-phase-02-rename.sh +258 -0
- package/scripts/verify-phase-03-rename.sh +376 -0
- package/scripts/workflow-policy.cjs +483 -0
- package/scripts/workflow-size.cjs +90 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
[
|
|
2
|
+
"tests/agent-classification-parity.test.cjs :: runtime-contract-is-the-product — docs/AGENTS.md section layout + docs/INVENTORY.md table ARE the classification surface being validated",
|
|
3
|
+
"tests/agent-frontmatter.test.cjs :: source-text-is-the-product",
|
|
4
|
+
"tests/agent-required-reading-consistency.test.cjs :: source-text-is-the-product",
|
|
5
|
+
"tests/agent-size-budget.test.cjs :: source-text-is-the-product",
|
|
6
|
+
"tests/agent-skills-awareness.test.cjs :: source-text-is-the-product",
|
|
7
|
+
"tests/ai-evals.test.cjs :: source-text-is-the-product",
|
|
8
|
+
"tests/analyze-dependencies.test.cjs :: source-text-is-the-product",
|
|
9
|
+
"tests/anti-pattern-enforcement.test.cjs :: source-text-is-the-product",
|
|
10
|
+
"tests/ask-user-questions-fallback.test.cjs :: source-text-is-the-product",
|
|
11
|
+
"tests/audit-fix-command.test.cjs :: source-text-is-the-product",
|
|
12
|
+
"tests/autonomous-allowed-tools.test.cjs :: source-text-is-the-product",
|
|
13
|
+
"tests/autonomous-converge.test.cjs :: source-text-is-the-product",
|
|
14
|
+
"tests/autonomous-decomposition.test.cjs :: source-text-is-the-product",
|
|
15
|
+
"tests/autonomous-interactive.test.cjs :: source-text-is-the-product",
|
|
16
|
+
"tests/autonomous-to-flag.test.cjs :: source-text-is-the-product",
|
|
17
|
+
"tests/bug-131-release-tarball-smoke-explicit-home.test.cjs :: integration-test-input",
|
|
18
|
+
"tests/bug-14-progress-auto-flag-dropped.test.cjs :: source-text-is-the-product",
|
|
19
|
+
"tests/bug-17-askuserquestion-option-cap.test.cjs :: source-text-is-the-product",
|
|
20
|
+
"tests/bug-170-workflow-fallback-install-hint.test.cjs :: workflow markdown is shipped product text; this test validates fallback hint literals across all workflow files",
|
|
21
|
+
"tests/bug-1891-file-resolution.test.cjs :: structural-implementation-guard",
|
|
22
|
+
"tests/bug-1924-preserve-user-artifacts.test.cjs :: source-text-is-the-product",
|
|
23
|
+
"tests/bug-1967-cache-invalidation.test.cjs :: source-text-is-the-product",
|
|
24
|
+
"tests/bug-211-launcher-home-fallback.test.cjs :: structural/behavioral regression for the ~/.claude fallback arm in",
|
|
25
|
+
"tests/bug-2136-sh-hook-version.test.cjs :: structural-regression-guard",
|
|
26
|
+
"tests/bug-214-phase-researcher-write-truncation-contract.test.cjs :: source-text-is-the-product",
|
|
27
|
+
"tests/bug-214-writer-agents-write-truncation-contract.test.cjs :: source-text-is-the-product",
|
|
28
|
+
"tests/bug-222-research-synthesizer-write-contract.test.cjs :: source-text-is-the-product",
|
|
29
|
+
"tests/bug-224-pick-stdout-capture.test.cjs :: structural-implementation-guard",
|
|
30
|
+
"tests/bug-2346-agent-read-loop-guards.test.cjs :: source-text-is-the-product",
|
|
31
|
+
"tests/bug-2388-plan-phase-no-branch-rename.test.cjs :: source-text-is-the-product",
|
|
32
|
+
"tests/bug-2396-makefile-test-priority.test.cjs :: source-text-is-the-product",
|
|
33
|
+
"tests/bug-2399-commit-docs-plan-phase.test.cjs :: source-text-is-the-product",
|
|
34
|
+
"tests/bug-2410-stream-checkpoint-heartbeats.test.cjs :: source-text-is-the-product",
|
|
35
|
+
"tests/bug-2419-project-researcher-agent.test.cjs :: source-text-is-the-product",
|
|
36
|
+
"tests/bug-2421-planner-grep-gate-hygiene.test.cjs :: source-text-is-the-product",
|
|
37
|
+
"tests/bug-2424-reapply-patches-baseline-detection.test.cjs :: source-text-is-the-product",
|
|
38
|
+
"tests/bug-2470-update-md-claude-path.test.cjs :: source-text-is-the-product",
|
|
39
|
+
"tests/bug-2492-context-coverage-gate.test.cjs :: source-text-is-the-product",
|
|
40
|
+
"tests/bug-2502-insert-phase-state-update.test.cjs :: source-text-is-the-product",
|
|
41
|
+
"tests/bug-2516-inherit-model-execute-phase.test.cjs :: source-text-is-the-product",
|
|
42
|
+
"tests/bug-2543-gsd-slash-namespace.test.cjs :: structural-regression-guard",
|
|
43
|
+
"tests/bug-2549-2550-2552-discuss-phase-context.test.cjs :: source-text-is-the-product",
|
|
44
|
+
"tests/bug-2559-stale-search-year.test.cjs :: source-text-is-the-product",
|
|
45
|
+
"tests/bug-2661-roadmap-sync-parallel.test.cjs :: source-text-is-the-product",
|
|
46
|
+
"tests/bug-2686-review-fix-worktree.test.cjs :: source-text-is-the-product",
|
|
47
|
+
"tests/bug-2698-crlf-install.test.cjs :: source-text-is-the-product",
|
|
48
|
+
"tests/bug-2770-annotate-deps-int-coerce.test.cjs :: source-text-is-the-product",
|
|
49
|
+
"tests/bug-2772-gitmodules-path-intersection.test.cjs :: source-text-is-the-product",
|
|
50
|
+
"tests/bug-2784-update-cache-clear-path.test.cjs :: structural-regression-guard",
|
|
51
|
+
"tests/bug-279-codex-agent-mapping.test.cjs :: source-text-is-the-product [adapter header contract in bin/install.js]",
|
|
52
|
+
"tests/bug-2808-skill-hyphen-name.test.cjs :: source-text-is-the-product",
|
|
53
|
+
"tests/bug-2831-opencode-home-path-prefix.test.cjs :: source-text-is-the-product",
|
|
54
|
+
"tests/bug-2839-review-fix-transactional-cleanup.test.cjs :: source-text-is-the-product",
|
|
55
|
+
"tests/bug-2948-spike-wrap-up-dispatch.test.cjs :: source-text-is-the-product",
|
|
56
|
+
"tests/bug-2949-sketch-wrap-up-dispatch.test.cjs :: source-text-is-the-product",
|
|
57
|
+
"tests/bug-2954-help-md-slash-command-stubs.test.cjs :: source-text-is-the-product",
|
|
58
|
+
"tests/bug-2973-profile-user-skills-path.test.cjs :: source-text-is-the-product. profile-user.md IS the",
|
|
59
|
+
"tests/bug-2990-code-fixer-worktree-branch.test.cjs :: source-text-is-the-product",
|
|
60
|
+
"tests/bug-3086-git-create-tag-config-gate.test.cjs :: workflow-markdown-is-the-runtime-contract",
|
|
61
|
+
"tests/bug-3096-ai-integration-phase-parallel-race.test.cjs :: reads product workflow markdown (ai-integration-phase.md) to verify structural ordering contract — not a source-grep test",
|
|
62
|
+
"tests/bug-3097-3099-executor-worktree-path-safety.test.cjs :: reads markdown product files (pp-executor.md, worktree-path-safety.md) to verify structural protocol — not source-grep",
|
|
63
|
+
"tests/bug-3120-secure-phase-empty-register.test.cjs :: reads product workflow markdown (secure-phase.md) to verify structural guard contract — not a source-grep test",
|
|
64
|
+
"tests/bug-3126-global-skills-base-runtime-path.test.cjs :: last three tests read init.cjs source to verify delegation contract to runtime-homes.cjs — structural guard, no behavioral IR exposed",
|
|
65
|
+
"tests/bug-3127-state-begin-phase-idempotent.test.cjs :: reads runtime STATE.md written to temp dir — behavioral output test, not source-grep",
|
|
66
|
+
"tests/bug-3128-roadmap-plan-count-slug-layout.test.cjs :: reads roadmap.cjs source to verify isPlanFile pattern was adopted — structural contract prevents silent regression to old filter",
|
|
67
|
+
"tests/bug-3129-validate-commit-git-bypass.test.cjs :: reads hook shell script to verify delegation pattern — structural contract test, not source-grep",
|
|
68
|
+
"tests/bug-3130-update-npx-robust-invocation.test.cjs :: reads product workflow markdown (update.md) to verify structural invocation contract — not a source-grep test",
|
|
69
|
+
"tests/bug-3135-capture-backlog-workflow.test.cjs :: source-text-is-the-product — workflow and command .md files",
|
|
70
|
+
"tests/bug-3156-plan-phase-opencode-dispatch.test.cjs :: source-text-is-the-product",
|
|
71
|
+
"tests/bug-3168-task-to-agent-rename.test.cjs :: source-text-is-the-product",
|
|
72
|
+
"tests/bug-3236-capture-seed-one-shot.test.cjs :: source-text-is-the-product — workflow and command .md files",
|
|
73
|
+
"tests/bug-3258-no-stale-gsd-intel-references.test.cjs :: source-text-is-the-product — workflow, reference, and docs .md files",
|
|
74
|
+
"tests/bug-3290-intel-updater-layout-block.test.cjs :: source-text-is-the-product — agents/pp-intel-updater.md IS",
|
|
75
|
+
"tests/bug-33-settings-model-profile-adaptive.test.cjs :: source-text-is-the-product",
|
|
76
|
+
"tests/bug-3381-verify-work-workstream.test.cjs :: source-text-is-the-product — verify-work.md is a runtime workflow contract.",
|
|
77
|
+
"tests/bug-3384-secondary-defects.test.cjs :: source-text-is-the-product",
|
|
78
|
+
"tests/bug-3418-progress-flag-routing.test.cjs :: source-text-is-the-product",
|
|
79
|
+
"tests/bug-3430-planner-phase-contract.test.cjs :: source-text-is-the-product",
|
|
80
|
+
"tests/bug-3431-debug-command-yaml.test.cjs :: source-text-is-the-product",
|
|
81
|
+
"tests/bug-3446-resume-continue-here-discovery.test.cjs :: source-text-is-the-product",
|
|
82
|
+
"tests/bug-3489-complete-phase-idempotent.test.cjs :: source-text-is-the-product",
|
|
83
|
+
"tests/bug-3491-nested-git-worktree.test.cjs :: source-text-is-the-product",
|
|
84
|
+
"tests/bug-3516-reapply-patches-gsd-update-filter.test.cjs :: source-text-is-the-product",
|
|
85
|
+
"tests/bug-3521-quick-cleanup-cwd-pin.test.cjs :: source-text-is-the-product",
|
|
86
|
+
"tests/bug-3523-cjs-loadconfig-branching-strategy-warning.test.cjs :: validates runtime CLI stdout/stderr warning behavior, not source grep",
|
|
87
|
+
"tests/bug-3542-executor-git-stash-prohibition.test.cjs :: source-text-is-the-product",
|
|
88
|
+
"tests/bug-3582-codex-skills-materialized.test.cjs :: source-text-is-the-product",
|
|
89
|
+
"tests/bug-3605-stale-research-insert-phase-agent-refs.test.cjs :: source-text-is-the-product",
|
|
90
|
+
"tests/bug-3628-bundled-hook-classifier-whitelist.test.cjs :: architectural-invariant",
|
|
91
|
+
"tests/bug-3657-verify-reapply-patches-pristine-drift.test.cjs :: source-text-is-the-product.",
|
|
92
|
+
"tests/bug-3657-verify-reapply-patches-pristine-drift.test.cjs :: source-text-is-the-product — Finding 2 reads reapply-patches.md to",
|
|
93
|
+
"tests/bug-3677-agent-colon-namespace-leak.test.cjs :: source-text-is-the-product",
|
|
94
|
+
"tests/bug-3678-executor-commit-docs-respect.test.cjs :: source-text-is-the-product",
|
|
95
|
+
"tests/bug-3683-command-colon-namespace-leak.test.cjs :: source-text-is-the-product",
|
|
96
|
+
"tests/bug-3683-command-cross-reference-invariant.test.cjs :: source-text-is-the-product",
|
|
97
|
+
"tests/bug-3683-workflow-colon-namespace-leak.test.cjs :: source-text-is-the-product",
|
|
98
|
+
"tests/bug-3689-resume-glob-nomatch.test.cjs :: source-text-is-the-product",
|
|
99
|
+
"tests/bug-3691-annotate-deps-plans-block-variants.test.cjs :: source-text-is-the-product",
|
|
100
|
+
"tests/bug-3706-ui-safety-gate-false-positives.test.cjs :: source-text-is-the-product",
|
|
101
|
+
"tests/bug-3707-locked-worktree-cleanup.test.cjs :: source-text-is-the-product",
|
|
102
|
+
"tests/bug-3727-code-review-fix-flag-dispatch.test.cjs :: source-text-is-the-product",
|
|
103
|
+
"tests/bug-378-update-check-scoped-name.test.cjs :: structural assertion on hook delegation; the behavior being",
|
|
104
|
+
"tests/bug-3784-gsd-settings-model-profile-ui-omits-adaptive.test.cjs :: source-text-is-the-product",
|
|
105
|
+
"tests/bug-3805-fast-md-log-to-state-schema.test.cjs :: source-text-is-the-product",
|
|
106
|
+
"tests/bug-3810-no-gsd-sdk-runtime-refs.test.cjs :: source-text-is-the-product",
|
|
107
|
+
"tests/bug-397-state-preserve-executor-authored.test.cjs :: reads runtime STATE.md written to temp dir — behavioral output test, not source-grep",
|
|
108
|
+
"tests/bug-444-resolver-local-claude-install.test.cjs :: structural/behavioral regression for the repo-local .claude/ install",
|
|
109
|
+
"tests/bug-474-clock-seam-date-determinism.test.cjs :: source-text-is-the-product",
|
|
110
|
+
"tests/bug-503-update-agent-antigravity-detection.test.cjs :: source-text-is-the-product",
|
|
111
|
+
"tests/bug-570-codex-leak-scanner.test.cjs :: source-text-is-the-product",
|
|
112
|
+
"tests/bug-571-doc-writer-fix-mode-edit-only.test.cjs :: source-text-is-the-product",
|
|
113
|
+
"tests/bug-619-codebase-drift-gate-shim.test.cjs :: source-text-is-the-product",
|
|
114
|
+
"tests/bug-621-plan-phase-gap-analysis-gsd-run.test.cjs :: source-text-is-the-product",
|
|
115
|
+
"tests/bug-622-graphify-optional-graph-html.test.cjs :: source-text-is-the-product",
|
|
116
|
+
"tests/bug-630-wave-cleanup-orchestrator-root.test.cjs :: source-text-is-the-product",
|
|
117
|
+
"tests/bug-637-workflow-no-hardcoded-home-tool.test.cjs :: source-text-is-the-product",
|
|
118
|
+
"tests/bug-685-windowshide-spawn.test.cjs :: source-text-is-the-product",
|
|
119
|
+
"tests/bug-687-agy-timeout.test.cjs :: source-text-is-the-product",
|
|
120
|
+
"tests/bug-704-codex-launcher-path-corruption.test.cjs :: source-text-is-the-product",
|
|
121
|
+
"tests/bug-851-codex-quick-adapter-agent-type-fallback.test.cjs :: source-text-is-the-product",
|
|
122
|
+
"tests/bug-891-non-claude-runtime-home-fallback.test.cjs :: structural/behavioral regression for non-Claude runtime-home",
|
|
123
|
+
"tests/bug-924-claude-flat-skill-layout.test.cjs :: source-text-is-the-product",
|
|
124
|
+
"tests/bug-936-no-nested-spawner-wrap.test.cjs :: source-text-is-the-product",
|
|
125
|
+
"tests/bug-947-hermes-gsd-prefix.test.cjs :: source-text-is-the-product",
|
|
126
|
+
"tests/bug-950-quick-summary-status-complete.test.cjs :: source-text-is-the-product",
|
|
127
|
+
"tests/bug-967-verify-key-links-strict-paths.test.cjs :: <runtime-contract-is-the-product> the plan-md.md reference",
|
|
128
|
+
"tests/bug-967-verify-key-links-strict-paths.test.cjs :: <runtime-contract-is-the-product> the plan-md.md reference example IS the documented authoring surface for key_links; asserting it uses a file path (not an endpoint) directly tests the documented contract.",
|
|
129
|
+
"tests/bug-983-trae-windsurf-claude-path-leak.test.cjs :: source-text-is-the-product",
|
|
130
|
+
"tests/bug-patterns-reference.test.cjs :: source-text-is-the-product",
|
|
131
|
+
"tests/chain-flag-plan-phase.test.cjs :: source-text-is-the-product",
|
|
132
|
+
"tests/changeset-cli.test.cjs :: reads a product workflow .md file (not CJS source) to verify",
|
|
133
|
+
"tests/check-update-config-dir.test.cjs :: structural-regression-guard",
|
|
134
|
+
"tests/ci-test-scope.test.cjs :: CLI usage banner presence is a user-facing contract.",
|
|
135
|
+
"tests/ci-test-scope.test.cjs :: CLI usage failure text is user-facing contract for this parser guard.",
|
|
136
|
+
"tests/claude-md.test.cjs :: source-text-is-the-product",
|
|
137
|
+
"tests/claude-skills-migration.test.cjs :: source-text-is-the-product",
|
|
138
|
+
"tests/cleanup-branch-pruning.test.cjs :: source-text-is-the-product",
|
|
139
|
+
"tests/cline-install.test.cjs :: source-text-is-the-product",
|
|
140
|
+
"tests/cline-support.test.cjs :: source-text-is-the-product",
|
|
141
|
+
"tests/clock-seam.test.cjs :: line 159 reads the STATE.md temp file written by readModifyWriteStateMd — this is a runtime output file assertion, not a source-grep; the API returns void so a file read-back is the only way to verify the transform was applied",
|
|
142
|
+
"tests/code-review-agent-skills.test.cjs :: source-text-is-the-product",
|
|
143
|
+
"tests/code-review-command.test.cjs :: source-text-is-the-product",
|
|
144
|
+
"tests/code-review-pipeline-regression.test.cjs :: source-text-is-the-product",
|
|
145
|
+
"tests/code-review.test.cjs :: source-text-is-the-product",
|
|
146
|
+
"tests/codebuddy-install.test.cjs :: source-text-is-the-product",
|
|
147
|
+
"tests/codex-config.test.cjs :: source-text-is-the-product",
|
|
148
|
+
"tests/command-contract.test.cjs :: source-text-is-the-product — commands/gsd/*.md files ARE the",
|
|
149
|
+
"tests/commands.test.cjs :: source-text-is-the-product",
|
|
150
|
+
"tests/concurrency-safety.test.cjs :: source-text-is-the-product",
|
|
151
|
+
"tests/config-field-docs.test.cjs :: docs-parity",
|
|
152
|
+
"tests/context-enrichment.test.cjs :: source-text-is-the-product",
|
|
153
|
+
"tests/contributor-standards.test.cjs :: source-text-is-the-product",
|
|
154
|
+
"tests/copilot-install.test.cjs :: integration-test-input",
|
|
155
|
+
"tests/cursor-hooks.test.cjs :: source-text-is-the-product",
|
|
156
|
+
"tests/cursor-reviewer.test.cjs :: source-text-is-the-product",
|
|
157
|
+
"tests/debug-session-management.test.cjs :: source-text-is-the-product",
|
|
158
|
+
"tests/discovery-artifacts.test.cjs :: source-text-is-the-product",
|
|
159
|
+
"tests/discovery-command.test.cjs :: source-text-is-the-product",
|
|
160
|
+
"tests/discovery-sessions.test.cjs :: source-text-is-the-product",
|
|
161
|
+
"tests/discuss-all-flag.test.cjs :: source-text-is-the-product",
|
|
162
|
+
"tests/discuss-checkpoint.test.cjs :: source-text-is-the-product",
|
|
163
|
+
"tests/discuss-mode.test.cjs :: structural-implementation-guard",
|
|
164
|
+
"tests/discuss-phase-power.test.cjs :: source-text-is-the-product",
|
|
165
|
+
"tests/docs-parity-live-registry.test.cjs :: source-text-is-the-product",
|
|
166
|
+
"tests/drift-detection.test.cjs :: source-text-is-the-product",
|
|
167
|
+
"tests/edge-probe-docs-fixtures.test.cjs :: runtime-contract-is-the-product — the rendered reference/SPEC/ADR vocab surfaces are the runtime contract; this pins their bijection to the code (docs-parity)",
|
|
168
|
+
"tests/edge-probe-planner-contract.test.cjs :: runtime-contract-is-the-product — plan-phase.md's planner prompt is the deployed runtime contract under assertion",
|
|
169
|
+
"tests/edge-probe-spec-phase-contract.test.cjs :: runtime-contract-is-the-product — spec-phase.md Step 5.5 is the deployed workflow runtime contract under assertion",
|
|
170
|
+
"tests/edit-phase.test.cjs :: source-text-is-the-product",
|
|
171
|
+
"tests/enh-2310-chunked-plan-phase.test.cjs :: source-text-is-the-product",
|
|
172
|
+
"tests/enh-2380-sync-skills.test.cjs :: source-text-is-the-product",
|
|
173
|
+
"tests/enh-2415-claude-md-link-mode.test.cjs :: source-text-is-the-product",
|
|
174
|
+
"tests/enh-2430-learnings-consumption.test.cjs :: source-text-is-the-product",
|
|
175
|
+
"tests/enh-2433-todo-phase-linking.test.cjs :: source-text-is-the-product",
|
|
176
|
+
"tests/enh-2446-milestones-drift.test.cjs :: source-text-is-the-product",
|
|
177
|
+
"tests/enh-2447-roadmap-wave-deps.test.cjs :: source-text-is-the-product",
|
|
178
|
+
"tests/enh-2448-artifact-registry.test.cjs :: source-text-is-the-product",
|
|
179
|
+
"tests/enh-2500-codebase-mapper-arch-rich-format.test.cjs :: source-text-is-the-product",
|
|
180
|
+
"tests/enh-2789-description-budget.test.cjs :: source-text-is-the-product",
|
|
181
|
+
"tests/enh-2790-skill-consolidation.test.cjs :: source-text-is-the-product",
|
|
182
|
+
"tests/enh-2792-namespace-skills.test.cjs :: source-text-is-the-product",
|
|
183
|
+
"tests/enh-3209-plan-phase-ingest-adr.test.cjs :: source-text-is-the-product",
|
|
184
|
+
"tests/enh-48-cwd-drift-guard-e2e.test.cjs :: integration-test-input",
|
|
185
|
+
"tests/enh-72-business-context.test.cjs :: source-text-is-the-product",
|
|
186
|
+
"tests/enh-769-context-fork-effort.install.test.cjs :: integration-test-input",
|
|
187
|
+
"tests/enh-770-claude-hook-events.test.cjs :: runtime-contract-is-the-product — hooks.json IS the",
|
|
188
|
+
"tests/enh-770-claude-hook-events.test.cjs :: runtime-contract-is-the-product — the hookEventName is",
|
|
189
|
+
"tests/enh-770-claude-hook-events.test.cjs :: runtime-contract-is-the-product — the stamp template token",
|
|
190
|
+
"tests/enh-770-claude-hook-events.test.cjs :: runtime-contract-is-the-product — the stdin-read and",
|
|
191
|
+
"tests/enh-773-codex-exec-automation-flags.test.cjs :: source-text-is-the-product",
|
|
192
|
+
"tests/enh-778-cross-runtime-command-enrichment.test.cjs :: source-text-is-the-product",
|
|
193
|
+
"tests/enh-789-codebuddy-commands.test.cjs :: source-text-is-the-product",
|
|
194
|
+
"tests/eslint-rules.test.cjs :: <source-grep reason> must still error",
|
|
195
|
+
"tests/eslint-rules.test.cjs :: pending migration",
|
|
196
|
+
"tests/eslint-rules.test.cjs :: source-text-is-the-product",
|
|
197
|
+
"tests/execute-phase-active-flags.test.cjs :: source-text-is-the-product",
|
|
198
|
+
"tests/execute-phase-step-5-5-deviation-doc.test.cjs :: source-text-is-the-product",
|
|
199
|
+
"tests/execute-phase-wave.test.cjs :: behavioral — calls gsd-tools and asserts structured output",
|
|
200
|
+
"tests/execute-phase-wave.test.cjs :: behavioral — exercises config-set validation, not source text",
|
|
201
|
+
"tests/execute-phase-wave.test.cjs :: behavioral — exercises gsd-tools wave-defaulting logic",
|
|
202
|
+
"tests/execute-phase-wave.test.cjs :: source-text-is-the-product",
|
|
203
|
+
"tests/execute-phase-worktree-artifacts.test.cjs :: source-text-is-the-product",
|
|
204
|
+
"tests/explore-command.test.cjs :: source-text-is-the-product",
|
|
205
|
+
"tests/extract-learnings.test.cjs :: source-text-is-the-product",
|
|
206
|
+
"tests/feat-22-surfacing-docs.test.cjs :: docs-parity",
|
|
207
|
+
"tests/feat-2840-issue-driven-orchestration-guide.test.cjs :: structural-IR parser for a docs guide. The .includes()",
|
|
208
|
+
"tests/feat-3039-help-tiered.test.cjs :: source-text-is-the-product",
|
|
209
|
+
"tests/feat-3167-ship-pr-body-sections.test.cjs :: source-text-is-the-product",
|
|
210
|
+
"tests/feat-3210-fallow-integration.test.cjs :: source-text-is-the-product",
|
|
211
|
+
"tests/feat-3210-fallow-integration.test.cjs :: source-text-is-the-product — code-review.md IS the workflow the orchestrator",
|
|
212
|
+
"tests/feat-3309-human-verify-mode.test.cjs :: source-text-is-the-product",
|
|
213
|
+
"tests/feat-443-effort-install-wiring.install.test.cjs :: integration-test-input",
|
|
214
|
+
"tests/feat-488-effort-sync.test.cjs :: structural-regression-guard — readFileSync asserts on installed agent .md files (the product under mutation) to verify dry-run safety and apply correctness; stderr.includes guards the CLI argument-rejection contract.",
|
|
215
|
+
"tests/fix-3722-execute-phase-human-needed-checkpoint.test.cjs :: source-text-is-the-product",
|
|
216
|
+
"tests/forensics.test.cjs :: source-text-is-the-product",
|
|
217
|
+
"tests/frontmatter-cli.test.cjs :: source-text-is-the-product",
|
|
218
|
+
"tests/gates-taxonomy.test.cjs :: source-text-is-the-product",
|
|
219
|
+
"tests/git-base-branch.test.cjs :: runtime-contract-is-the-product",
|
|
220
|
+
"tests/git-base-branch.test.cjs :: runtime-contract-is-the-product — the workflow .md content IS",
|
|
221
|
+
"tests/gsd-check-update-worker-platform-gate.test.cjs :: structural assertion on spawn-options shape; the behavior",
|
|
222
|
+
"tests/gsd-researcher-app-aware.test.cjs :: source-text-is-the-product",
|
|
223
|
+
"tests/gsd-researcher-flow-diagram.test.cjs :: source-text-is-the-product",
|
|
224
|
+
"tests/gsd-settings-advanced.test.cjs :: source-text-is-the-product",
|
|
225
|
+
"tests/gsd2-import.test.cjs :: source-text-is-the-product",
|
|
226
|
+
"tests/hermes-skills-migration.test.cjs :: source-text-is-the-product",
|
|
227
|
+
"tests/import-command.test.cjs :: source-text-is-the-product",
|
|
228
|
+
"tests/ingest-docs.test.cjs :: source-text-is-the-product",
|
|
229
|
+
"tests/inline-plan-threshold.test.cjs :: source-text-is-the-product",
|
|
230
|
+
"tests/install-minimal-hooks.test.cjs :: source-text-is-the-product",
|
|
231
|
+
"tests/install-nested-layout.test.cjs :: source-text-is-the-product",
|
|
232
|
+
"tests/install-runtime-artifacts.test.cjs :: source-text-is-the-product",
|
|
233
|
+
"tests/install.test.cjs :: runtime-contract-is-the-product",
|
|
234
|
+
"tests/install.test.cjs :: source-text-is-the-product",
|
|
235
|
+
"tests/intel.test.cjs :: source-text-is-the-product — agents/pp-intel-updater.md IS the",
|
|
236
|
+
"tests/intel.test.cjs :: source-text-is-the-product — readFileSync assertions target API-SURFACE.md, which is the generated product of intelApiSurface; asserting on its text content is the only way to verify correct generation.",
|
|
237
|
+
"tests/inventory-headings-countfree.test.cjs :: runtime-contract-is-the-product — INVENTORY.md heading format is the shipped doc surface being locked",
|
|
238
|
+
"tests/ios-scaffold-safety.test.cjs :: source-text-is-the-product",
|
|
239
|
+
"tests/issue-2639-codex-toml-neutralization.test.cjs :: source-text-is-the-product",
|
|
240
|
+
"tests/issue-429-comment-text-gate.test.cjs :: source-text-is-the-product",
|
|
241
|
+
"tests/issue-498-package-identity.test.cjs :: architectural-invariant",
|
|
242
|
+
"tests/issue-498-update-backup-runtime-dir.test.cjs :: structural assertion on the deployed update.md backup bash;",
|
|
243
|
+
"tests/issue-57-runtime-install-no-drift.test.cjs :: delegation-presence guard. Catches wholesale removal of the registry",
|
|
244
|
+
"tests/issue-57-runtime-install-no-drift.test.cjs :: structural guard over bin/install.js source. Behavioral assertions",
|
|
245
|
+
"tests/issue-607-installer-dry-run.install.test.cjs :: integration-test-input",
|
|
246
|
+
"tests/issue-607-legacy-cleanup.test.cjs :: integration-test-input",
|
|
247
|
+
"tests/issue-787-cline-hooks-agents.test.cjs :: source-text-is-the-product",
|
|
248
|
+
"tests/issue-815-update-next-channel.test.cjs :: reads product workflow/command markdown to verify the --next RC channel contract — not a source-grep test",
|
|
249
|
+
"tests/locking-bugs-1909-1916-1925-1927.test.cjs :: architectural-invariant",
|
|
250
|
+
"tests/mcp-tool-inheritance.test.cjs :: source-text-is-the-product",
|
|
251
|
+
"tests/milestone-summary.test.cjs :: source-text-is-the-product",
|
|
252
|
+
"tests/milestone.test.cjs :: source-text-is-the-product",
|
|
253
|
+
"tests/milestone.test.cjs :: structural-regression-guard",
|
|
254
|
+
"tests/model-catalog-runtime-defaults.test.cjs :: source-text-is-the-product",
|
|
255
|
+
"tests/next-safety-gates.test.cjs :: source-text-is-the-product",
|
|
256
|
+
"tests/next-up-clear-order.test.cjs :: source-text-is-the-product",
|
|
257
|
+
"tests/no-hardcoded-home-gsd-tools.test.cjs :: source-text-is-the-product",
|
|
258
|
+
"tests/opencode-permissions.test.cjs :: architectural-invariant",
|
|
259
|
+
"tests/orphan-worktree-detection.test.cjs :: architectural-invariant",
|
|
260
|
+
"tests/orphaned-hooks.test.cjs :: structural-regression-guard",
|
|
261
|
+
"tests/package-legitimacy-gate.test.cjs :: source-text-is-the-product",
|
|
262
|
+
"tests/parallel-dependent-plans.test.cjs :: source-text-is-the-product",
|
|
263
|
+
"tests/path-replacement.test.cjs :: source-text-is-the-product",
|
|
264
|
+
"tests/phase-dependency-levels.test.cjs :: source-text-is-the-product",
|
|
265
|
+
"tests/phase.test.cjs :: source-text-is-the-product",
|
|
266
|
+
"tests/phase.test.cjs :: state-md-is-the-runtime-contract — regression tests for",
|
|
267
|
+
"tests/phase6-capability-docs.test.cjs :: source-text-is-the-product",
|
|
268
|
+
"tests/phase6-capstone-conformance.test.cjs :: source-text-is-the-product",
|
|
269
|
+
"tests/phase6-planning-capabilities.test.cjs :: source-text-is-the-product",
|
|
270
|
+
"tests/plan-bounce.test.cjs :: source-text-is-the-product",
|
|
271
|
+
"tests/plan-phase-drift-guard.test.cjs :: source-text-is-the-product",
|
|
272
|
+
"tests/plan-phase-ui-redirect.test.cjs :: source-text-is-the-product",
|
|
273
|
+
"tests/plan-review-convergence.test.cjs :: source-text-is-the-product",
|
|
274
|
+
"tests/planner-decomposition.test.cjs :: source-text-is-the-product",
|
|
275
|
+
"tests/planner-language-regression.test.cjs :: source-text-is-the-product",
|
|
276
|
+
"tests/playwright-ui-verify.test.cjs :: source-text-is-the-product",
|
|
277
|
+
"tests/policy-160-route0-resume.test.cjs :: source-text-is-the-product",
|
|
278
|
+
"tests/policy-release-no-npm-self-upgrade.test.cjs :: source-text-is-the-product",
|
|
279
|
+
"tests/product-name-purity.test.cjs :: source-text-is-the-product",
|
|
280
|
+
"tests/profile-output.test.cjs :: source-text-is-the-product",
|
|
281
|
+
"tests/progress-forensic.test.cjs :: source-text-is-the-product",
|
|
282
|
+
"tests/prompt-budget-cli.test.cjs :: prompt-content-is-the-product",
|
|
283
|
+
"tests/prompt-thinning.test.cjs :: source-text-is-the-product",
|
|
284
|
+
"tests/quick-session-management.test.cjs :: source-text-is-the-product",
|
|
285
|
+
"tests/qwen-skills-migration.test.cjs :: source-text-is-the-product",
|
|
286
|
+
"tests/read-guard.test.cjs :: source-text-is-the-product",
|
|
287
|
+
"tests/reapply-patches.test.cjs :: source-text-is-the-product",
|
|
288
|
+
"tests/reapply-verify-hunks.test.cjs :: source-text-is-the-product",
|
|
289
|
+
"tests/release-coverage-scope.test.cjs :: source-text-is-the-product",
|
|
290
|
+
"tests/release-tarball-smoke-workflow.test.cjs :: source-text-is-the-product",
|
|
291
|
+
"tests/release-tarball-smoke.install.test.cjs :: integration-test-input",
|
|
292
|
+
"tests/research-agent-profiles.test.cjs :: <runtime-contract-is-the-product> research agent .md content is the governed surface",
|
|
293
|
+
"tests/review-default-reviewers-workflow.test.cjs :: source-text-is-the-product",
|
|
294
|
+
"tests/roadmap.test.cjs :: source-text-is-the-product",
|
|
295
|
+
"tests/run-tests-harness.test.cjs :: run-tests.cjs is a CLI test harness whose only IR is its",
|
|
296
|
+
"tests/runtime-launcher-parity.test.cjs :: structural parity/drift guard — asserts literal presence/absence of the canonical pp_run launcher and the retired $GSD_SDK / `/pp-tools` tokens across workflow markdown; there is no typed IR for \"this source file does not contain substring X\".",
|
|
297
|
+
"tests/runtime-name-policy.test.cjs :: runtime-contract-is-the-product — FALLBACK_ALIASES source text IS the",
|
|
298
|
+
"tests/scan-command.test.cjs :: source-text-is-the-product",
|
|
299
|
+
"tests/secret-scan-lint.security.test.cjs :: source-text-is-the-product",
|
|
300
|
+
"tests/secure-phase.test.cjs :: source-text-is-the-product",
|
|
301
|
+
"tests/security-prompt-injection.security.test.cjs :: structural-regression-guard",
|
|
302
|
+
"tests/security-scan.security.test.cjs :: source-text-is-the-product",
|
|
303
|
+
"tests/seed-scan-new-milestone.test.cjs :: source-text-is-the-product",
|
|
304
|
+
"tests/settings-integrations.test.cjs :: source-text-is-the-product",
|
|
305
|
+
"tests/settings-jsonc.test.cjs :: structural-regression-guard",
|
|
306
|
+
"tests/skill-frontmatter-contract.test.cjs :: source-text-is-the-product",
|
|
307
|
+
"tests/spawn-liveness-banner.test.cjs :: source-text-is-the-product",
|
|
308
|
+
"tests/state-acquirestatelock-non-eexist.test.cjs :: architectural-invariant",
|
|
309
|
+
"tests/state.test.cjs :: source-text-is-the-product",
|
|
310
|
+
"tests/subagent-timeout.test.cjs :: source-text-is-the-product",
|
|
311
|
+
"tests/template.test.cjs :: source-text-is-the-product",
|
|
312
|
+
"tests/thinking-partner.test.cjs :: source-text-is-the-product",
|
|
313
|
+
"tests/thread-session-management.test.cjs :: source-text-is-the-product",
|
|
314
|
+
"tests/ultraplan-phase.test.cjs :: source-text-is-the-product",
|
|
315
|
+
"tests/verify-health.test.cjs :: source-text-is-the-product",
|
|
316
|
+
"tests/verify-test-quality.test.cjs :: source-text-is-the-product",
|
|
317
|
+
"tests/verify-work-auto-transition.test.cjs :: source-text-is-the-product",
|
|
318
|
+
"tests/windows-robustness.test.cjs :: source-text-is-the-product",
|
|
319
|
+
"tests/windows-test-parity-guard.test.cjs :: structural-regression-guard",
|
|
320
|
+
"tests/workflow-compat.test.cjs :: source-text-is-the-product",
|
|
321
|
+
"tests/workflow-guard-registration.test.cjs :: structural-regression-guard",
|
|
322
|
+
"tests/workflow-maintainer-skip.test.cjs :: source-text-is-the-product",
|
|
323
|
+
"tests/workflow-shell-pinning.test.cjs :: file-scope prefilter, not a test assertion — we need to",
|
|
324
|
+
"tests/workflow-size-budget.test.cjs :: source-text-is-the-product",
|
|
325
|
+
"tests/workspace.test.cjs :: source-text-is-the-product",
|
|
326
|
+
"tests/worktree-cleanup.test.cjs :: source-text-is-the-product",
|
|
327
|
+
"tests/worktree.test.cjs :: source-text-is-the-product"
|
|
328
|
+
]
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* lint-allow-test-rule-refs.cjs — enforce that NEW `allow-test-rule:` exemption
|
|
6
|
+
* comments carry a tracking-issue reference.
|
|
7
|
+
*
|
|
8
|
+
* ## Why
|
|
9
|
+
*
|
|
10
|
+
* `allow-test-rule:` is an inline comment that disables the `no-source-grep`
|
|
11
|
+
* ESLint rule for a whole test file. Today many such comments exist with no
|
|
12
|
+
* issue reference, making it impossible to audit or revisit them. Per ADR-456
|
|
13
|
+
* (docs/adr/456-test-rigor-architecture.md) every NEW exemption must carry a
|
|
14
|
+
* `#NNN` issue reference or an https:// URL so the decision is traceable.
|
|
15
|
+
*
|
|
16
|
+
* ## What "compliant" means
|
|
17
|
+
*
|
|
18
|
+
* A compliant `allow-test-rule:` comment is one whose reason text (everything
|
|
19
|
+
* after the colon) contains either:
|
|
20
|
+
* - a `#\d+` token (e.g. `// allow-test-rule: see #1234`)
|
|
21
|
+
* - an https?:// URL
|
|
22
|
+
*
|
|
23
|
+
* Any other comment is an OFFENDER.
|
|
24
|
+
*
|
|
25
|
+
* ## Grandfathering
|
|
26
|
+
*
|
|
27
|
+
* All pre-existing untracked exemptions are recorded in
|
|
28
|
+
* scripts/lint-allow-test-rule-refs.allowlist.json (seeded at gate introduction
|
|
29
|
+
* time). The identity ratchet (scripts/lib/allowlist-ratchet.cjs) means:
|
|
30
|
+
* - A NEW non-compliant comment not in the allowlist → gate fails.
|
|
31
|
+
* - A previously-offending comment that is now compliant → allowlist entry is
|
|
32
|
+
* STALE and must be pruned (ratchet-down; the baseline only ever shrinks).
|
|
33
|
+
*
|
|
34
|
+
* ## Offender identifiers
|
|
35
|
+
*
|
|
36
|
+
* Identifiers are stable cross-rename-safe strings of the form:
|
|
37
|
+
* `<repo-relative-path> :: <trimmed-reason>`
|
|
38
|
+
*
|
|
39
|
+
* e.g. `tests/foo.test.cjs :: source-text-is-the-product`
|
|
40
|
+
*
|
|
41
|
+
* If a file has multiple non-compliant comments with the SAME reason text, only
|
|
42
|
+
* one identifier is recorded (deduped via Set).
|
|
43
|
+
*
|
|
44
|
+
* See docs/adr/456-test-rigor-architecture.md for the full policy.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
const fs = require('fs');
|
|
48
|
+
const path = require('path');
|
|
49
|
+
const { assertWithinAllowlist } = require('./lib/allowlist-ratchet.cjs');
|
|
50
|
+
const { ExitError, runMain } = require('./lib/cli-exit.cjs');
|
|
51
|
+
|
|
52
|
+
const ROOT = path.join(__dirname, '..');
|
|
53
|
+
const TESTS_DIR = process.env.GSD_LINT_ALLOW_TEST_RULE_TESTS_DIR || path.join(ROOT, 'tests');
|
|
54
|
+
const ALLOWLIST_PATH =
|
|
55
|
+
process.env.GSD_LINT_ALLOW_TEST_RULE_ALLOWLIST ||
|
|
56
|
+
path.join(__dirname, 'lint-allow-test-rule-refs.allowlist.json');
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Extracts the reason text after `allow-test-rule:` from a single line of source
|
|
60
|
+
* text in any comment form that the no-source-grep ESLint rule honours.
|
|
61
|
+
*
|
|
62
|
+
* The ESLint rule tests `c.value` (AST comment node value, delimiters stripped)
|
|
63
|
+
* with /allow-test-rule:\s*\S/, which fires on BOTH:
|
|
64
|
+
* // allow-test-rule: <reason> (line comment)
|
|
65
|
+
* /* allow-test-rule: <reason> * / (block comment, single-line)
|
|
66
|
+
*
|
|
67
|
+
* By scanning line-by-line and extracting everything after `allow-test-rule:` on
|
|
68
|
+
* each line, we cover both forms without a cross-line regex (which was previously
|
|
69
|
+
* matching arbitrary `/* ... * /` pairs spanning hundreds of lines, causing false
|
|
70
|
+
* positives).
|
|
71
|
+
*
|
|
72
|
+
* The trailing `*\/` and whitespace are stripped so block-comment closers don't
|
|
73
|
+
* bleed into the extracted reason.
|
|
74
|
+
*/
|
|
75
|
+
const ALLOW_TEST_RULE_LINE_RE = /allow-test-rule:\s*(.+)/;
|
|
76
|
+
/** Matches a compliant issue reference or URL */
|
|
77
|
+
const ISSUE_REF_RE = /#\d+|https?:\/\//;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Recursively collect offender identifiers from all *.test.cjs files under dir.
|
|
81
|
+
*
|
|
82
|
+
* @param {string} dir absolute path to scan
|
|
83
|
+
* @returns {string[]} sorted, deduped list of `<relpath> :: <reason>` strings
|
|
84
|
+
*/
|
|
85
|
+
function collectOffenders(dir) {
|
|
86
|
+
const offenders = new Set();
|
|
87
|
+
|
|
88
|
+
function scan(current) {
|
|
89
|
+
for (const entry of fs.readdirSync(current, { withFileTypes: true })) {
|
|
90
|
+
const full = path.join(current, entry.name);
|
|
91
|
+
if (entry.isDirectory()) {
|
|
92
|
+
scan(full);
|
|
93
|
+
} else if (entry.isFile() && entry.name.endsWith('.test.cjs')) {
|
|
94
|
+
const relpath = path.relative(ROOT, full).split(path.sep).join('/');
|
|
95
|
+
let content;
|
|
96
|
+
try {
|
|
97
|
+
content = fs.readFileSync(full, 'utf8');
|
|
98
|
+
} catch {
|
|
99
|
+
// skip unreadable files (e.g. binary)
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
// Scan line-by-line. By testing each line for `allow-test-rule:` we
|
|
103
|
+
// cover BOTH comment forms without a cross-line regex:
|
|
104
|
+
// // allow-test-rule: <reason> ← line comment
|
|
105
|
+
// /* allow-test-rule: <reason> */ ← single-line block comment
|
|
106
|
+
//
|
|
107
|
+
// For each matching line we extract the reason (everything after the
|
|
108
|
+
// colon), then strip any trailing block-comment closer `*/` and
|
|
109
|
+
// whitespace so the identifier stays clean.
|
|
110
|
+
for (const line of content.split('\n')) {
|
|
111
|
+
const m = ALLOW_TEST_RULE_LINE_RE.exec(line);
|
|
112
|
+
if (!m) continue;
|
|
113
|
+
// Strip trailing block-comment closer and whitespace if present
|
|
114
|
+
const reason = m[1].replace(/\s*\*\/\s*$/, '').trim();
|
|
115
|
+
if (!reason) continue;
|
|
116
|
+
if (ISSUE_REF_RE.test(reason)) continue; // compliant — skip
|
|
117
|
+
offenders.add(`${relpath} :: ${reason}`);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
scan(dir);
|
|
124
|
+
return [...offenders].sort();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function main() {
|
|
128
|
+
const args = process.argv.slice(2);
|
|
129
|
+
const unknown = args.filter((a) => a !== '--help');
|
|
130
|
+
if (unknown.length > 0) {
|
|
131
|
+
throw new ExitError(2, `lint-allow-test-rule-refs: unknown argument(s): ${unknown.join(', ')}`);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const current = collectOffenders(TESTS_DIR);
|
|
135
|
+
const known = JSON.parse(fs.readFileSync(ALLOWLIST_PATH, 'utf8'));
|
|
136
|
+
|
|
137
|
+
const failures = [];
|
|
138
|
+
const { novel } = assertWithinAllowlist({
|
|
139
|
+
label: 'allow-test-rule-refs',
|
|
140
|
+
current,
|
|
141
|
+
known,
|
|
142
|
+
fail: (msg) => failures.push(msg),
|
|
143
|
+
pruneHint: 'edit scripts/lint-allow-test-rule-refs.allowlist.json',
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
if (failures.length > 0) {
|
|
147
|
+
for (const msg of failures) process.stderr.write(`${msg}\n`);
|
|
148
|
+
if (novel.length > 0) {
|
|
149
|
+
process.stderr.write(
|
|
150
|
+
'\nNew allow-test-rule exemption without an issue ref — add `see #NNN` per ADR-456' +
|
|
151
|
+
' (docs/adr/456-test-rigor-architecture.md).\n'
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
throw new ExitError(1);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
console.log(
|
|
158
|
+
`ok lint-allow-test-rule-refs: ${current.length} grandfathered exemption(s) tracked, no novel untracked offenders`
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
runMain(main);
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* lint-command-contract.cjs (ADR-0002)
|
|
4
|
+
*
|
|
5
|
+
* Enforces the commands/pp-*.md contract across all command files:
|
|
6
|
+
*
|
|
7
|
+
* 1. name: present, non-empty, matches pp: or pp- prefix
|
|
8
|
+
* 2. description: present, non-empty
|
|
9
|
+
* 3. allowed-tools: block present, non-empty, all entries from CANONICAL_TOOLS
|
|
10
|
+
* 4. execution_context @-refs: every @-reference resolves to an existing file on disk
|
|
11
|
+
* 5. execution_context @-refs: each appears on its own line (no trailing prose)
|
|
12
|
+
*
|
|
13
|
+
* Exit 0 = clean. Exit 1 = violations (with diagnostics).
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
'use strict';
|
|
17
|
+
|
|
18
|
+
const fs = require('fs');
|
|
19
|
+
const path = require('path');
|
|
20
|
+
|
|
21
|
+
const ROOT = path.join(__dirname, '..');
|
|
22
|
+
// D-12 flat-hyphen rename (05-04): command files live flat at commands/pp-<cmd>.md,
|
|
23
|
+
// no longer under a commands/gsd/ subdir.
|
|
24
|
+
const COMMANDS_DIR = path.join(ROOT, 'commands');
|
|
25
|
+
// Framework files (workflows/references/templates) live under pp-core/ after the
|
|
26
|
+
// gsd-core → pp-core rename; resolve execution_context @-refs against that root.
|
|
27
|
+
const GSD_ROOT = path.join(ROOT, 'pp-core');
|
|
28
|
+
|
|
29
|
+
const {
|
|
30
|
+
CANONICAL_TOOLS,
|
|
31
|
+
parseFrontmatter,
|
|
32
|
+
executionContextRefs: extractExecutionContextRefs,
|
|
33
|
+
} = require('./command-contract-helpers.cjs');
|
|
34
|
+
|
|
35
|
+
const { runMain } = require('./lib/cli-exit.cjs');
|
|
36
|
+
|
|
37
|
+
// ─── check one file ───────────────────────────────────────────────────────────
|
|
38
|
+
|
|
39
|
+
function check(filePath) {
|
|
40
|
+
const content = fs.readFileSync(filePath, 'utf-8');
|
|
41
|
+
const rel = path.relative(ROOT, filePath);
|
|
42
|
+
const fm = parseFrontmatter(content);
|
|
43
|
+
const violations = [];
|
|
44
|
+
|
|
45
|
+
// 1. name: present + pp: / pp- prefix
|
|
46
|
+
if (!fm.name || !fm.name.trim()) {
|
|
47
|
+
violations.push('name: field missing or empty');
|
|
48
|
+
} else if (!/^pp[:-]/.test(fm.name.trim())) {
|
|
49
|
+
violations.push(`name: must start with "pp:" or "pp-", got "${fm.name.trim()}"`);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// 2. description: present + non-empty
|
|
53
|
+
if (!fm.description || !fm.description.trim()) {
|
|
54
|
+
violations.push('description: field missing or empty');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// 3. allowed-tools: present + non-empty + all entries canonical
|
|
58
|
+
if (!fm['allowed-tools'] || !fm['allowed-tools'].trim()) {
|
|
59
|
+
violations.push('allowed-tools: block missing or empty');
|
|
60
|
+
} else {
|
|
61
|
+
const tools = fm['allowed-tools'].split('\n').map(t => t.trim()).filter(Boolean);
|
|
62
|
+
for (const tool of tools) {
|
|
63
|
+
const valid =
|
|
64
|
+
CANONICAL_TOOLS.has(tool) ||
|
|
65
|
+
(tool.startsWith('mcp__context7__') && CANONICAL_TOOLS.has('mcp__context7__*'));
|
|
66
|
+
if (!valid) violations.push(`allowed-tools: unknown tool "${tool}"`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// 4+5. execution_context @-refs resolve + no trailing prose
|
|
71
|
+
const refs = extractExecutionContextRefs(content);
|
|
72
|
+
for (const { token, normalized, trailingProse } of refs) {
|
|
73
|
+
const absPath = path.join(GSD_ROOT, normalized);
|
|
74
|
+
if (!fs.existsSync(absPath)) {
|
|
75
|
+
violations.push(`execution_context: @-ref "${normalized}" does not exist on disk`);
|
|
76
|
+
}
|
|
77
|
+
if (trailingProse) {
|
|
78
|
+
violations.push(`execution_context: @-ref "${token}" has trailing prose on the same line`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (violations.length === 0) return null;
|
|
83
|
+
return { file: rel, violations };
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// ─── run ─────────────────────────────────────────────────────────────────────
|
|
87
|
+
|
|
88
|
+
function main() {
|
|
89
|
+
const commandFiles = fs
|
|
90
|
+
.readdirSync(COMMANDS_DIR)
|
|
91
|
+
.filter(f => f.startsWith('pp-') && f.endsWith('.md'))
|
|
92
|
+
.map(f => path.join(COMMANDS_DIR, f));
|
|
93
|
+
|
|
94
|
+
const results = commandFiles.map(check).filter(Boolean);
|
|
95
|
+
|
|
96
|
+
if (results.length === 0) {
|
|
97
|
+
console.log(
|
|
98
|
+
`ok lint-command-contract: ${commandFiles.length} command files checked, 0 violations`,
|
|
99
|
+
);
|
|
100
|
+
return 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const total = results.reduce((n, r) => n + r.violations.length, 0);
|
|
104
|
+
process.stderr.write(
|
|
105
|
+
`\nERROR lint-command-contract: ${total} violation(s) across ${results.length} file(s)\n\n`,
|
|
106
|
+
);
|
|
107
|
+
for (const r of results) {
|
|
108
|
+
process.stderr.write(` ${r.file}\n`);
|
|
109
|
+
for (const v of r.violations) {
|
|
110
|
+
process.stderr.write(` - ${v}\n`);
|
|
111
|
+
}
|
|
112
|
+
process.stderr.write('\n');
|
|
113
|
+
}
|
|
114
|
+
process.stderr.write('See docs/adr/0002-command-contract-validation-module.md for the contract spec.\n\n');
|
|
115
|
+
return 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
runMain(main);
|