@event4u/agent-config 7.4.0 → 8.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/.claude-plugin/marketplace.json +11 -1
- package/AGENTS.md +9 -9
- package/CHANGELOG.md +373 -0
- package/README.md +35 -5
- package/dist/agent-src/commands/analytics/prune.md +1 -1
- package/dist/agent-src/commands/analytics/show.md +1 -1
- package/dist/agent-src/commands/analyze/decision.md +2 -2
- package/dist/agent-src/commands/analyze/incident.md +2 -2
- package/dist/agent-src/commands/analyze/near-miss.md +2 -2
- package/dist/agent-src/commands/analyze/postmortem.md +2 -2
- package/dist/agent-src/commands/analyze/premortem.md +2 -2
- package/dist/agent-src/commands/cost-report.md +25 -0
- package/dist/agent-src/commands/evals/analyze.json +30 -0
- package/dist/agent-src/commands/evals/mission-upgrade.json +30 -0
- package/dist/agent-src/commands/implement-ticket.md +1 -1
- package/dist/agent-src/commands/knowledge/forget.md +1 -1
- package/dist/agent-src/commands/knowledge/ingest.md +1 -1
- package/dist/agent-src/commands/knowledge/list.md +1 -1
- package/dist/agent-src/commands/memory/load.md +12 -11
- package/dist/agent-src/commands/memory/promote.md +30 -0
- package/dist/agent-src/commands/memory/propose.md +16 -2
- package/dist/agent-src/commands/mission/upgrade.md +1 -1
- package/dist/agent-src/commands/module/explore.md +11 -7
- package/dist/agent-src/commands/optimize-project.md +243 -0
- package/dist/agent-src/commands/optimize.md +5 -0
- package/dist/agent-src/commands/pr/create.md +37 -8
- package/dist/agent-src/commands/prediction-pool.md +2 -2
- package/dist/agent-src/commands/profile/activate.md +3 -3
- package/dist/agent-src/commands/profile/deactivate.md +2 -2
- package/dist/agent-src/commands/profile/show.md +3 -3
- package/dist/agent-src/commands/research/deep.md +5 -0
- package/dist/agent-src/commands/research/report.md +2 -1
- package/dist/agent-src/commands/review-changes.md +14 -7
- package/dist/agent-src/commands/roadmap/create.md +88 -10
- package/dist/agent-src/commands/roadmap/materialize.md +1 -1
- package/dist/agent-src/commands/roadmap/process-full.md +15 -2
- package/dist/agent-src/commands/roadmap/process-phase.md +18 -6
- package/dist/agent-src/commands/roadmap/process-step.md +4 -0
- package/dist/agent-src/commands/roadmap.md +1 -1
- package/dist/agent-src/commands/security-audit-config.md +1 -1
- package/dist/agent-src/commands/sync-agent-settings.md +1 -1
- package/dist/agent-src/commands/sync-gitignore/fix.md +42 -6
- package/dist/agent-src/commands/team-knowledge/bootstrap.md +106 -0
- package/dist/agent-src/commands/team-knowledge/consolidate.md +105 -0
- package/dist/agent-src/commands/team-knowledge.md +64 -0
- package/dist/agent-src/contexts/authority/commit-mechanics.md +8 -0
- package/dist/agent-src/contexts/authority/destructive-mechanics.md +11 -0
- package/dist/agent-src/contexts/authority/scope-mechanics.md +25 -0
- package/dist/agent-src/contexts/communication/rules-auto/reply-close-mechanics.md +43 -0
- package/dist/agent-src/contexts/contracts/agents-md-anatomy.md +1 -1
- package/dist/agent-src/contexts/contracts/artifact-engagement-flow.md +2 -2
- package/dist/agent-src/contexts/contracts/frugality-charter.md +1 -0
- package/dist/agent-src/contexts/execution/auto-dispatch-classification.md +14 -4
- package/dist/agent-src/contexts/execution/autonomy-mechanics.md +11 -0
- package/dist/agent-src/contexts/execution/orchestration-telemetry.md +32 -8
- package/dist/agent-src/contexts/execution/roadmap-execution-contract.md +107 -0
- package/dist/agent-src/contexts/execution/roadmap-process-loop.md +71 -15
- package/dist/agent-src/contexts/execution/subagent-steering.md +41 -1
- package/dist/agent-src/contexts/override-system.md +1 -1
- package/dist/agent-src/personas/brand-strategist.md +0 -1
- package/dist/agent-src/personas/data-integrity.md +66 -0
- package/dist/agent-src/personas/design-director.md +0 -1
- package/dist/agent-src/personas/performance-engineer.md +66 -0
- package/dist/agent-src/personas/production-validator.md +73 -0
- package/dist/agent-src/rules/agent-authority.md +3 -4
- package/dist/agent-src/rules/analysis-skill-routing.md +3 -5
- package/dist/agent-src/rules/architecture.md +2 -4
- package/dist/agent-src/rules/artifact-drafting-protocol.md +35 -6
- package/dist/agent-src/rules/artifact-engagement-recording.md +11 -4
- package/dist/agent-src/rules/ask-when-uncertain.md +10 -14
- package/dist/agent-src/rules/augment-edit-discipline.md +3 -5
- package/dist/agent-src/rules/autonomous-execution.md +3 -5
- package/dist/agent-src/rules/brand-consistency.md +3 -5
- package/dist/agent-src/rules/brand-source-of-truth.md +3 -5
- package/dist/agent-src/rules/cli-output-handling.md +4 -6
- package/dist/agent-src/rules/command-suggestion-policy.md +3 -5
- package/dist/agent-src/rules/commit-conventions.md +3 -5
- package/dist/agent-src/rules/commit-policy.md +8 -10
- package/dist/agent-src/rules/content-quoting-floor.md +88 -0
- package/dist/agent-src/rules/context-hygiene.md +3 -5
- package/dist/agent-src/rules/copilot-routing.md +4 -6
- package/dist/agent-src/rules/decision-revisit-gate.md +120 -0
- package/dist/agent-src/rules/delegation-policy.md +10 -6
- package/dist/agent-src/rules/design-fidelity.md +3 -5
- package/dist/agent-src/rules/devcontainer-routing.md +4 -6
- package/dist/agent-src/rules/direct-answers.md +13 -17
- package/dist/agent-src/rules/docker-commands.md +3 -5
- package/dist/agent-src/rules/domain-adoption-policy.md +3 -5
- package/dist/agent-src/rules/domain-safety-disclaimer.md +3 -5
- package/dist/agent-src/rules/domain-safety-pii.md +7 -8
- package/dist/agent-src/rules/domain-safety-retention.md +3 -5
- package/dist/agent-src/rules/downstream-changes.md +3 -4
- package/dist/agent-src/rules/engineering-safety-floor.md +3 -5
- package/dist/agent-src/rules/external-reference-deep-dive.md +3 -5
- package/dist/agent-src/rules/fast-path-marker-visibility.md +3 -5
- package/dist/agent-src/rules/finance-safety-floor.md +3 -6
- package/dist/agent-src/rules/framework-neutrality-in-generic-skills.md +3 -5
- package/dist/agent-src/rules/git-history-discipline.md +3 -5
- package/dist/agent-src/rules/guidelines.md +2 -4
- package/dist/agent-src/rules/icon-consistency.md +4 -5
- package/dist/agent-src/rules/image-likeness-and-rights.md +3 -5
- package/dist/agent-src/rules/improve-before-implement.md +5 -5
- package/dist/agent-src/rules/invite-challenge.md +3 -5
- package/dist/agent-src/rules/language-and-tone.md +13 -15
- package/dist/agent-src/rules/laravel-routing.md +3 -5
- package/dist/agent-src/rules/laravel-translations.md +3 -5
- package/dist/agent-src/rules/legal-safety-floor.md +5 -7
- package/dist/agent-src/rules/lethal-trifecta-guard.md +3 -5
- package/dist/agent-src/rules/linked-projects-onboarding-gate.md +4 -7
- package/dist/agent-src/rules/low-impact-corpus-privacy-floor.md +3 -5
- package/dist/agent-src/rules/markdown-safe-codeblocks.md +2 -4
- package/dist/agent-src/rules/media-governance-routing.md +3 -5
- package/dist/agent-src/rules/media-sync-ground-truth.md +3 -5
- package/dist/agent-src/rules/minimal-safe-diff.md +5 -5
- package/dist/agent-src/rules/missing-tool-handling.md +3 -5
- package/dist/agent-src/rules/model-recommendation.md +4 -6
- package/dist/agent-src/rules/no-attribution-footers.md +3 -5
- package/dist/agent-src/rules/no-cheap-questions.md +5 -8
- package/dist/agent-src/rules/no-decorative-emojis-in-git-surfaces.md +3 -6
- package/dist/agent-src/rules/no-pr-progress-comments.md +3 -6
- package/dist/agent-src/rules/no-roadmap-references.md +3 -5
- package/dist/agent-src/rules/non-destructive-by-default.md +11 -13
- package/dist/agent-src/rules/notes-first-reasoning.md +3 -5
- package/dist/agent-src/rules/onboarding-gate.md +4 -6
- package/dist/agent-src/rules/output-discipline.md +3 -5
- package/dist/agent-src/rules/package-ci-checks.md +3 -5
- package/dist/agent-src/rules/persona-governance.md +2 -4
- package/dist/agent-src/rules/php-coding.md +3 -5
- package/dist/agent-src/rules/preservation-guard.md +2 -4
- package/dist/agent-src/rules/provider-lifecycle-discipline.md +3 -5
- package/dist/agent-src/rules/reviewer-awareness.md +5 -6
- package/dist/agent-src/rules/roadmap-ci-steps-policy.md +3 -5
- package/dist/agent-src/rules/roadmap-progress-sync.md +5 -5
- package/dist/agent-src/rules/role-mode-adherence.md +2 -4
- package/dist/agent-src/rules/rule-type-governance.md +3 -5
- package/dist/agent-src/rules/runtime-safety.md +2 -4
- package/dist/agent-src/rules/scope-control.md +10 -11
- package/dist/agent-src/rules/security-sensitive-stop.md +4 -5
- package/dist/agent-src/rules/size-enforcement.md +2 -4
- package/dist/agent-src/rules/skill-improvement-trigger.md +3 -5
- package/dist/agent-src/rules/skill-quality.md +3 -5
- package/dist/agent-src/rules/slash-command-routing-policy.md +3 -5
- package/dist/agent-src/rules/source-confidentiality.md +3 -5
- package/dist/agent-src/rules/source-discovery-gate.md +3 -5
- package/dist/agent-src/rules/source-of-truth.md +3 -5
- package/dist/agent-src/rules/strategy-safety-floor.md +3 -5
- package/dist/agent-src/rules/symfony-routing.md +4 -6
- package/dist/agent-src/rules/telegraph-speak.md +4 -5
- package/dist/agent-src/rules/think-before-action.md +7 -4
- package/dist/agent-src/rules/token-budget-discipline.md +29 -5
- package/dist/agent-src/rules/token-efficiency.md +3 -5
- package/dist/agent-src/rules/token-optimizer-maintenance.md +3 -5
- package/dist/agent-src/rules/tool-safety.md +2 -4
- package/dist/agent-src/rules/ui-audit-gate.md +3 -6
- package/dist/agent-src/rules/untrusted-input-defense.md +11 -10
- package/dist/agent-src/rules/upstream-proposal.md +4 -6
- package/dist/agent-src/rules/user-interaction.md +7 -5
- package/dist/agent-src/rules/user-interrupt-priority.md +17 -8
- package/dist/agent-src/rules/verify-before-complete.md +12 -22
- package/dist/agent-src/scripts/archive_completed_roadmaps.ts +3 -3
- package/dist/agent-src/scripts/update_roadmap_progress.ts +197 -7
- package/dist/agent-src/skills/adr-create/SKILL.md +52 -42
- package/dist/agent-src/skills/adversarial-review/SKILL.md +1 -1
- package/dist/agent-src/skills/agent-docs-writing/SKILL.md +18 -0
- package/dist/agent-src/skills/agent-security-review/SKILL.md +1 -1
- package/dist/agent-src/skills/ai-council/SKILL.md +14 -1
- package/dist/agent-src/skills/blade-ui/SKILL.md +4 -0
- package/dist/agent-src/skills/blameless-post-mortem/SKILL.md +0 -3
- package/dist/agent-src/skills/brand/SKILL.md +1 -1
- package/dist/agent-src/skills/brand-identity/SKILL.md +3 -3
- package/dist/agent-src/skills/brand-strategy/SKILL.md +1 -1
- package/dist/agent-src/skills/brand-to-tokens/SKILL.md +5 -4
- package/dist/agent-src/skills/canvas-design/SKILL.md +6 -0
- package/dist/agent-src/skills/check-refs/SKILL.md +7 -4
- package/dist/agent-src/skills/code-review/SKILL.md +5 -0
- package/dist/agent-src/skills/complexity-first-planning/SKILL.md +6 -5
- package/dist/agent-src/skills/condense-memory/SKILL.md +11 -11
- package/dist/agent-src/skills/context-authoring/SKILL.md +1 -1
- package/dist/agent-src/skills/context-document/SKILL.md +17 -0
- package/dist/agent-src/skills/corpus-grounding/SKILL.md +3 -3
- package/dist/agent-src/skills/decision-record/SKILL.md +6 -0
- package/dist/agent-src/skills/decision-review/SKILL.md +5 -3
- package/dist/agent-src/skills/deep-reading-analyst/SKILL.md +6 -1
- package/dist/agent-src/skills/design-intelligence/SKILL.md +45 -2
- package/dist/agent-src/skills/design-intelligence/references/design-languages.md +1 -1
- package/dist/agent-src/skills/design-review/SKILL.md +23 -11
- package/dist/agent-src/skills/design-system-capture/SKILL.md +41 -0
- package/dist/agent-src/skills/design-system-capture/reference/design-system-json.md +62 -0
- package/dist/agent-src/skills/design-tokens/SKILL.md +11 -4
- package/dist/agent-src/skills/design-variations/SKILL.md +127 -0
- package/dist/agent-src/skills/design-variations/evals/triggers.json +17 -0
- package/dist/agent-src/skills/emit-tickets/SKILL.md +4 -4
- package/dist/agent-src/skills/existing-ui-audit/SKILL.md +6 -0
- package/dist/agent-src/skills/fe-design/SKILL.md +20 -0
- package/dist/agent-src/skills/flux/SKILL.md +4 -0
- package/dist/agent-src/skills/html-deck/SKILL.md +123 -0
- package/dist/agent-src/skills/html-deck/evals/triggers.json +17 -0
- package/dist/agent-src/skills/html-deck/templates/deck-shell.html +77 -0
- package/dist/agent-src/skills/iconography/SKILL.md +1 -0
- package/dist/agent-src/skills/image-editing/evals/triggers.json +13 -13
- package/dist/agent-src/skills/judge-artifact-completeness/SKILL.md +136 -0
- package/dist/agent-src/skills/judge-artifact-completeness/calibration/fixtures.json +149 -0
- package/dist/agent-src/skills/judge-artifact-completeness/evals/triggers.json +17 -0
- package/dist/agent-src/skills/judge-artifact-completeness/rubrics/architecture-score.json +73 -0
- package/dist/agent-src/skills/judge-artifact-completeness/rubrics/pr-review-score.json +65 -0
- package/dist/agent-src/skills/judge-artifact-completeness/rubrics/roadmap-score.json +73 -0
- package/dist/agent-src/skills/judge-artifact-completeness/rubrics/ticket-quality-score.json +73 -0
- package/dist/agent-src/skills/judge-code-quality/SKILL.md +1 -0
- package/dist/agent-src/skills/judge-injection-defense/SKILL.md +99 -0
- package/dist/agent-src/skills/judge-injection-defense/calibration/fixtures.json +24 -0
- package/dist/agent-src/skills/judge-injection-defense/evals/triggers.json +17 -0
- package/dist/agent-src/skills/judge-injection-defense/fixtures/behavioral-fixtures.json +63 -0
- package/dist/agent-src/skills/judge-injection-defense/fixtures/coverage-report.md +53 -0
- package/dist/agent-src/skills/judge-injection-defense/fixtures/perturbation-taxonomy.json +110 -0
- package/dist/agent-src/skills/judge-synthesis/SKILL.md +134 -0
- package/dist/agent-src/skills/judge-synthesis/evals/triggers.json +17 -0
- package/dist/agent-src/skills/laravel/SKILL.md +0 -1
- package/dist/agent-src/skills/learning-to-rule-or-skill/SKILL.md +46 -0
- package/dist/agent-src/skills/lint-skills/SKILL.md +6 -6
- package/dist/agent-src/skills/logo-generation/SKILL.md +1 -1
- package/dist/agent-src/skills/markitdown/SKILL.md +1 -1
- package/dist/agent-src/skills/md-language-check/SKILL.md +3 -3
- package/dist/agent-src/skills/memory-consolidation/SKILL.md +66 -1
- package/dist/agent-src/skills/migration-architect/SKILL.md +1 -0
- package/dist/agent-src/skills/module-detect-on-the-fly/SKILL.md +2 -2
- package/dist/agent-src/skills/performance-analysis/SKILL.md +2 -0
- package/dist/agent-src/skills/prediction-pool-optimizer/SKILL.md +4 -4
- package/dist/agent-src/skills/premortem/SKILL.md +0 -3
- package/dist/agent-src/skills/project-analysis-core/SKILL.md +16 -0
- package/dist/agent-src/skills/react-shadcn-ui/SKILL.md +18 -0
- package/dist/agent-src/skills/react-shadcn-ui/reference/registry.md +59 -0
- package/dist/agent-src/skills/reasoning-orchestrator/SKILL.md +3 -1
- package/dist/agent-src/skills/refine-ticket/SKILL.md +5 -1
- package/dist/agent-src/skills/release-comms/SKILL.md +47 -46
- package/dist/agent-src/skills/roadmap-management/SKILL.md +25 -0
- package/dist/agent-src/skills/roadmap-writing/SKILL.md +33 -3
- package/dist/agent-src/skills/root-cause-frameworks/SKILL.md +0 -3
- package/dist/agent-src/skills/script-writing/SKILL.md +1 -1
- package/dist/agent-src/skills/security-audit/SKILL.md +1 -0
- package/dist/agent-src/skills/skill-improvement-pipeline/SKILL.md +4 -0
- package/dist/agent-src/skills/source-discovery/SKILL.md +22 -3
- package/dist/agent-src/skills/sql-writing/SKILL.md +1 -1
- package/dist/agent-src/skills/subagent-orchestration/SKILL.md +33 -14
- package/dist/agent-src/skills/subagent-orchestration/prompts/README.md +11 -0
- package/dist/agent-src/skills/subagent-orchestration/prompts/do-in-steps.md +8 -0
- package/dist/agent-src/skills/systematic-debugging/SKILL.md +30 -1
- package/dist/agent-src/skills/tailwind-engineer/SKILL.md +4 -0
- package/dist/agent-src/skills/testing-anti-patterns/SKILL.md +1 -1
- package/dist/agent-src/skills/threat-modeling/SKILL.md +2 -2
- package/dist/agent-src/skills/token-optimizer/SKILL.md +1 -1
- package/dist/agent-src/skills/typography-system/SKILL.md +4 -3
- package/dist/agent-src/skills/verify-completion-evidence/SKILL.md +2 -0
- package/dist/agent-src/skills/wireframe/SKILL.md +118 -0
- package/dist/agent-src/skills/wireframe/evals/triggers.json +17 -0
- package/dist/agent-src/templates/agent-settings.md +22 -1
- package/dist/agent-src/templates/agents/agent-project-settings.example.yml +1 -1
- package/dist/agent-src/templates/command.md +2 -2
- package/dist/agent-src/templates/contexts/knowledge-pages.md +116 -0
- package/dist/agent-src/templates/hooks/pre-commit-frontmatter +1 -1
- package/dist/agent-src/templates/roadmaps.md +70 -2
- package/dist/agent-src/templates/rule.md +1 -1
- package/dist/agent-src/templates/scripts/README.md +3 -3
- package/dist/agent-src/templates/scripts/work_engine/_lib/agent_settings.ts +109 -0
- package/dist/agent-src/templates/tickets.md +8 -8
- package/dist/cli/commands/recordTriggerEval.test.js +1 -1
- package/dist/cli/commands/recordTriggerEval.test.js.map +1 -1
- package/dist/cli/initRouting.js +4 -2
- package/dist/cli/initRouting.js.map +1 -1
- package/dist/cli/registry.js +1 -0
- package/dist/cli/registry.js.map +1 -1
- package/dist/discovery/deprecation-report.md +1 -1
- package/dist/discovery/discovery-manifest.json +802 -258
- package/dist/discovery/discovery-manifest.json.sha256 +1 -1
- package/dist/discovery/discovery-manifest.summary.md +8 -8
- package/dist/discovery/orphan-report.md +1 -1
- package/dist/discovery/packs.json +46 -28
- package/dist/discovery/trust-report.md +12 -11
- package/dist/discovery/workspaces.json +32 -18
- package/dist/install/preflight.js +173 -0
- package/dist/install/preflight.js.map +1 -0
- package/dist/mcp/registry-manifest.json +4 -4
- package/dist/router.json +1 -1
- package/dist/server/routes/settings.js +4 -0
- package/dist/server/routes/settings.js.map +1 -1
- package/dist/server/schemas/settings.js +6 -1
- package/dist/server/schemas/settings.js.map +1 -1
- package/docs/CLAIMS.md +108 -0
- package/docs/MIGRATION.md +3 -3
- package/docs/architecture.md +6 -6
- package/docs/benchmark.md +133 -2
- package/docs/benchmark.pinned.yml +31 -0
- package/docs/capability-matrix.md +1 -0
- package/docs/catalog.md +92 -74
- package/docs/command-flows.md +16 -4
- package/docs/comparison.yaml +35 -0
- package/docs/contracts/agents-layout.md +148 -0
- package/docs/contracts/brand-token-consumption.md +5 -0
- package/docs/contracts/capability-boundary.md +5 -0
- package/docs/contracts/command-category-governance.md +5 -0
- package/docs/contracts/command-clusters.md +1 -0
- package/docs/contracts/command-surface-tiers.md +1 -1
- package/docs/contracts/conformance.md +84 -0
- package/docs/contracts/creative-pack-boundary.md +5 -0
- package/docs/contracts/discovery-manifest.schema.json +5 -4
- package/docs/contracts/file-ownership-matrix.json +4605 -985
- package/docs/contracts/governance-enforcement-projection.md +5 -0
- package/docs/contracts/gui-wizard.md +1 -1
- package/docs/contracts/hook-architecture-v1.md +2 -2
- package/docs/contracts/implement-ticket-flow.md +1 -1
- package/docs/contracts/kernel-membership.md +13 -0
- package/docs/contracts/mcp-tool-inventory.md +23 -23
- package/docs/contracts/no-runtime-boundary.md +6 -1
- package/docs/contracts/review-lens-schema.md +5 -0
- package/docs/contracts/rule-router.md +102 -8
- package/docs/contracts/skill-bundled-assets.md +1 -1
- package/docs/contracts/skill-dry-run.md +1 -1
- package/docs/contracts/subagent-boundary.md +5 -0
- package/docs/contracts/ticket-bundle-format.md +9 -4
- package/docs/contracts/tier-3-contrib-plugin.md +2 -2
- package/docs/contracts/write-engine.md +3 -0
- package/docs/customization.md +87 -15
- package/docs/decisions/ADR-107-legal-domain-pack-adoption.md +1 -1
- package/docs/decisions/ADR-109-subagent-v1-contract.md +246 -0
- package/docs/decisions/ADR-110-discipline-profile-resolution-locus.md +105 -0
- package/docs/decisions/INDEX.md +2 -0
- package/docs/distribution/awesome-list-submission.md +46 -0
- package/docs/distribution/launch-story-draft.md +58 -0
- package/docs/end-to-end-walkthroughs.md +2 -2
- package/docs/getting-started.md +2 -2
- package/docs/guidelines/agent-infra/asking-and-brevity-examples.md +24 -0
- package/docs/guidelines/agent-infra/corpus-grounding-authoring.md +1 -1
- package/docs/guidelines/agent-infra/linked-projects-onboarding-gate.md +2 -2
- package/docs/guidelines/agent-infra/missing-tool-handling.md +3 -3
- package/docs/guidelines/agent-infra/verify-before-complete-demos.md +2 -2
- package/docs/guidelines/augment-portability-patterns.md +1 -1
- package/docs/guidelines/code-clarity.md +19 -0
- package/docs/guidelines/design-antipatterns-triggers.json +2 -1
- package/docs/guidelines/design-antipatterns.md +35 -0
- package/docs/guidelines/design-canon.md +62 -0
- package/docs/guidelines/design-modes.md +6 -0
- package/docs/guidelines/php/general.md +9 -1
- package/docs/guidelines/php/php-coding-patterns.md +7 -0
- package/docs/guides/cross-repo-retrieval.md +1 -1
- package/docs/guides/frontend-design-corpus-refresh.md +2 -2
- package/docs/guides/local-analytics.md +4 -4
- package/docs/guides/skill-discovery.md +1 -1
- package/docs/guides/skill-preview.md +1 -1
- package/docs/hook-payload-capture.md +6 -6
- package/docs/install-friction-report.md +66 -0
- package/docs/installation.md +1 -1
- package/docs/maintainers/optional-media-deps.md +50 -0
- package/docs/mcp-server.md +11 -12
- package/docs/media/proof-demo.cast +14 -0
- package/docs/media/proof-demo.gif +0 -0
- package/docs/migration/consumer-template-consumption-model.md +1 -1
- package/docs/migration/divergences/bench-stats-float-precision.md +1 -1
- package/docs/migration/node-floor.md +1 -1
- package/docs/migration/yaml-roundtrip-spike.md +1 -1
- package/docs/personas.md +16 -5
- package/docs/positioning-evidence.md +86 -0
- package/docs/proof.md +86 -0
- package/docs/skills-catalog.md +1 -1
- package/docs/troubleshooting.md +8 -8
- package/docs/wedge/production-validator/README.md +57 -0
- package/docs/wedge/production-validator/production-validator.md +56 -0
- package/docs/wizard.md +2 -2
- package/package.json +1 -1
- package/src/config/agent-settings.template.yml +71 -4
- package/src/config/agents-paths.yml +254 -0
- package/src/config/budgets.yml +16 -0
- package/src/config/discovery/packs.yml +1 -0
- package/src/config/discovery/unassigned-artefacts.yml +2 -0
- package/src/config/gitignore-block.txt +25 -0
- package/src/config/host-capabilities.yml +31 -0
- package/src/config/profiles/balanced.ini +4 -0
- package/src/config/profiles/full.ini +4 -0
- package/src/config/profiles/minimal.ini +4 -0
- package/src/scripts/_cli/cmd_conformance.ts +716 -0
- package/src/scripts/_cli/cmd_doctor.ts +23 -2
- package/src/scripts/_cli/cmd_fleet.ts +401 -0
- package/src/scripts/_cli/cmd_preflight.ts +159 -0
- package/src/scripts/_dispatch.bash +10 -0
- package/src/scripts/_lib/knowledge_events.ts +193 -0
- package/src/scripts/_lib/subagent_steering.ts +115 -3
- package/src/scripts/_lib/text_similarity.ts +75 -0
- package/src/scripts/ai-video/test-pipeline.sh +1 -1
- package/src/scripts/ai_council/clients.ts +19 -3
- package/src/scripts/append_contested.ts +112 -0
- package/src/scripts/audit_auto_rules.ts +11 -1
- package/src/scripts/audit_mcp_tools.ts +25 -11
- package/src/scripts/bench_ab_v2_run.ts +527 -40
- package/src/scripts/bench_ab_v2_stats.ts +6 -0
- package/src/scripts/bench_matrix.ts +266 -0
- package/src/scripts/bootstrap_knowledge.ts +267 -0
- package/src/scripts/build_discovery_manifest.ts +42 -2
- package/src/scripts/build_proof.ts +214 -0
- package/src/scripts/check_always_budget.ts +3 -0
- package/src/scripts/check_augment_description_cap.ts +2 -2
- package/src/scripts/check_claims.ts +270 -0
- package/src/scripts/check_comparison.ts +79 -0
- package/src/scripts/check_generated_artefact_headers.ts +109 -0
- package/src/scripts/check_generator_output_coverage.ts +142 -0
- package/src/scripts/check_gitignore_freshness.ts +127 -0
- package/src/scripts/check_knowledge_pages.ts +210 -0
- package/src/scripts/check_knowledge_sharing.ts +162 -0
- package/src/scripts/check_media_deps.ts +91 -0
- package/src/scripts/check_memory_contradiction.ts +280 -0
- package/src/scripts/check_memory_similarity.ts +134 -0
- package/src/scripts/check_quality_regression.ts +56 -10
- package/src/scripts/check_references.ts +3 -1
- package/src/scripts/check_release_pr_shape.ts +4 -0
- package/src/scripts/check_site_links.ts +135 -0
- package/src/scripts/check_skill_gaps.ts +99 -0
- package/src/scripts/check_token_quality_golden.ts +197 -11
- package/src/scripts/check_tracked_but_ignored.ts +67 -0
- package/src/scripts/cluster_near_miss_patterns.ts +0 -0
- package/src/scripts/compile_router.ts +30 -3
- package/src/scripts/condense.ts +350 -14
- package/src/scripts/consolidate_knowledge_events.ts +192 -0
- package/src/scripts/degrade_to_pointer.ts +136 -0
- package/src/scripts/design_slop_rules.test.ts +208 -0
- package/src/scripts/design_slop_rules.ts +530 -0
- package/src/scripts/emit_knowledge_event.ts +158 -0
- package/src/scripts/export_replay_corpus.ts +187 -0
- package/src/scripts/external_sources_denylist.json +14 -3
- package/src/scripts/fold_intake.ts +281 -0
- package/src/scripts/generate_capability_matrix.ts +9 -1
- package/src/scripts/generate_knowledge_index.ts +222 -0
- package/src/scripts/hook_manifest.yaml +40 -17
- package/src/scripts/hooks/design_slop_hook.ts +181 -0
- package/src/scripts/hooks/dispatch_hook.ts +18 -0
- package/src/scripts/hot_context_hook.ts +372 -0
- package/src/scripts/install +47 -0
- package/src/scripts/install-hooks.sh +17 -0
- package/src/scripts/inventory_meta_layers.ts +11 -0
- package/src/scripts/janitor.ts +258 -0
- package/src/scripts/lint_agent_security.ts +1 -0
- package/src/scripts/lint_agents_layout.ts +74 -15
- package/src/scripts/lint_bench_ab.ts +4 -1
- package/src/scripts/lint_confusables.ts +197 -0
- package/src/scripts/lint_design_slop.ts +245 -0
- package/src/scripts/lint_featured_skills.ts +0 -0
- package/src/scripts/lint_framework_leakage_allowlist.json +26 -3
- package/src/scripts/lint_knowledge_scale.ts +250 -0
- package/src/scripts/lint_legal_pack.ts +67 -0
- package/src/scripts/lint_persona_governance.ts +8 -3
- package/src/scripts/lint_regression.ts +15 -0
- package/src/scripts/lint_roadmap_blockers.ts +202 -0
- package/src/scripts/lint_roadmap_complexity.ts +81 -2
- package/src/scripts/lint_subagent_determinism.ts +125 -0
- package/src/scripts/measure_augment_budget.ts +46 -6
- package/src/scripts/measure_patterns.ts +4 -3
- package/src/scripts/measure_skill_reduction.ts +6 -6
- package/src/scripts/migration_status.ts +6 -2
- package/src/scripts/mine_missing_guardrails.ts +189 -0
- package/src/scripts/parity/phase_gate.ts +1 -1
- package/src/scripts/parity/replay.ts +21 -0
- package/src/scripts/project_thin_rules.ts +120 -16
- package/src/scripts/release.ts +39 -1
- package/src/scripts/render_benchmark_composite.ts +378 -0
- package/src/scripts/roadmap_progress_hook.ts +101 -43
- package/src/scripts/schemas/skill.schema.json +27 -0
- package/src/scripts/schemas/subagent.schema.json +106 -0
- package/src/scripts/skill_linter.ts +1 -0
- package/src/scripts/smoke/kernel.sh +5 -4
- package/src/scripts/surface-tiers.yml +1 -0
- package/src/scripts/sync_gitignore.ts +4 -0
- package/src/scripts/update_skill_candidates.ts +172 -0
- package/src/scripts/validate_frontmatter.ts +1 -0
package/docs/CLAIMS.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Claims Ledger
|
|
2
|
+
|
|
3
|
+
> Every public-facing claim (README, docs, site, marketplace copy) that carries a
|
|
4
|
+
> `<!-- claim:<id> -->` marker binds here to resolvable evidence. `check_claims`
|
|
5
|
+
> (in `task ci`) fails the build if a markered claim has no `backed` ledger entry
|
|
6
|
+
> with a resolving evidence pointer. This is the package's falsifiability culture
|
|
7
|
+
> turned on its own marketing — **we sell honesty, so the selling is machine-checked.**
|
|
8
|
+
>
|
|
9
|
+
> Enforced by [`src/scripts/check_claims.ts`](../src/scripts/check_claims.ts).
|
|
10
|
+
> Roadmap: `road-to-final-state-and-market-readiness.md` Phase 1 / Track B (B1).
|
|
11
|
+
|
|
12
|
+
## How it works
|
|
13
|
+
|
|
14
|
+
- A public sentence that makes a capability or quantitative claim gets an HTML
|
|
15
|
+
marker: `<!-- claim:my-claim-id -->` (invisible in rendered Markdown).
|
|
16
|
+
- The marker's `id` must match a `### claim: my-claim-id` block below with
|
|
17
|
+
`status: backed` and a resolving `evidence` pointer.
|
|
18
|
+
- **Only markered claims are enforced.** Unmarkered prose is never checked — the
|
|
19
|
+
ledger tightens as claims are bound over time, never retroactively breaking CI.
|
|
20
|
+
- `status: unbacked` entries are **inventory** (documented debt): they record a
|
|
21
|
+
claim that is not yet bound. They do NOT fail the build, but markering their
|
|
22
|
+
claim in prose does (forces the binding first).
|
|
23
|
+
|
|
24
|
+
## Entry schema
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
### claim: <kebab-id>
|
|
28
|
+
- claim: <the sentence, roughly as it appears publicly>
|
|
29
|
+
- kind: quant | qual | comparative
|
|
30
|
+
- evidence: <pointer> # see grammar below
|
|
31
|
+
- status: backed | unbacked
|
|
32
|
+
- last_verified: <YYYY-MM-DD>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Evidence-pointer grammar (v1):**
|
|
36
|
+
|
|
37
|
+
- `path/to/file.md` or `path/to/file.md:42` — the repo file exists (line advisory).
|
|
38
|
+
- `path/to/file.md#substring` — the file exists AND contains `substring`.
|
|
39
|
+
- `https://… (YYYY-MM-DD)` — external cite carrying a dated stamp (not fetched in CI).
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Backed claims
|
|
44
|
+
|
|
45
|
+
### claim: no-runtime-daemon
|
|
46
|
+
- claim: The whole layer is compiled into host agents with zero runtime daemon.
|
|
47
|
+
- kind: qual
|
|
48
|
+
- evidence: docs/contracts/no-runtime-boundary.md#file-first, no-runtime suite
|
|
49
|
+
- status: backed
|
|
50
|
+
- last_verified: 2026-07-04
|
|
51
|
+
|
|
52
|
+
### claim: surgical-uninstall
|
|
53
|
+
- claim: Removes only its own keys from a shared host config (matched by JSON-pointer + SHA-256), never a neighbour tool's entries.
|
|
54
|
+
- kind: qual
|
|
55
|
+
- evidence: docs/contracts/install-layout.md#JSON-pointer
|
|
56
|
+
- status: backed
|
|
57
|
+
- last_verified: 2026-07-04
|
|
58
|
+
|
|
59
|
+
### claim: discipline-lift-weak-host
|
|
60
|
+
- claim: On a weak host (claude-haiku-4-5) the package produces a significant, placebo-controlled discipline lift on scope/downstream traps; on a strong host the same measurement is a published null — the package transplants discipline a weak model lacks, not model intelligence.
|
|
61
|
+
- kind: quant
|
|
62
|
+
- evidence: docs/benchmark.md#weak-host-specific
|
|
63
|
+
- status: backed
|
|
64
|
+
- last_verified: 2026-07-05
|
|
65
|
+
|
|
66
|
+
### claim: essential-tier-cost-factor
|
|
67
|
+
- claim: The lift-carrying essential cut (kernel + downstream-changes) keeps a significant weak-host discipline lift at a fraction of the full load's tokens, and the lift is FAMILY-SCOPED — full-corpus P1 gate (n=90 pairs): scope/downstream family 0.533→1.000 (7/7 discordant favour essential), other families flat at ceiling, corpus-wide 1.71x tokens; the full load's residual over essential is not significant (p=0.37, n=24). Non-claim on the flip side — the balanced router profile (kernel + tier-1 by size) was removed after measuring a NULL lift (p=0.81, n=24, claude-haiku-4-5, 2026-07-07), and no full-tier recommendation exists anywhere until its own evidence gate passes.
|
|
68
|
+
- kind: quant
|
|
69
|
+
- evidence: docs/benchmark.md#Full-corpus P1 gate
|
|
70
|
+
- status: backed
|
|
71
|
+
- last_verified: 2026-07-07
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Unbacked inventory (documented debt — not yet markered in prose)
|
|
76
|
+
|
|
77
|
+
These are real README claims that need a durable binding before they may carry a
|
|
78
|
+
`<!-- claim: -->` marker. Counts are drift-prone: binding them requires a
|
|
79
|
+
count-source mechanism (a generated number the prose must match), which is
|
|
80
|
+
follow-up work (roadmap B1.2). Listed here so the debt is visible, not hidden.
|
|
81
|
+
|
|
82
|
+
### claim: skill-count
|
|
83
|
+
- claim: 258 skills (README hero + feature list).
|
|
84
|
+
- kind: quant
|
|
85
|
+
- evidence: needs a generated count-source binding (discovery manifest) — B1.2
|
|
86
|
+
- status: unbacked
|
|
87
|
+
- last_verified:
|
|
88
|
+
|
|
89
|
+
### claim: command-count
|
|
90
|
+
- claim: 162 commands.
|
|
91
|
+
- kind: quant
|
|
92
|
+
- evidence: needs a generated count-source binding (discovery manifest) — B1.2
|
|
93
|
+
- status: unbacked
|
|
94
|
+
- last_verified:
|
|
95
|
+
|
|
96
|
+
### claim: rule-count
|
|
97
|
+
- claim: 93 governed rules.
|
|
98
|
+
- kind: quant
|
|
99
|
+
- evidence: needs a generated count-source binding (discovery manifest) — B1.2
|
|
100
|
+
- status: unbacked
|
|
101
|
+
- last_verified:
|
|
102
|
+
|
|
103
|
+
### claim: host-agent-count
|
|
104
|
+
- claim: Compiled into 7+ host agents (Claude Code, Cursor, Augment, Cline, Windsurf, Copilot, Gemini).
|
|
105
|
+
- kind: quant
|
|
106
|
+
- evidence: needs binding to the projection targets list — B1.2
|
|
107
|
+
- status: unbacked
|
|
108
|
+
- last_verified:
|
package/docs/MIGRATION.md
CHANGED
|
@@ -35,7 +35,7 @@ recognised on a clear error path.
|
|
|
35
35
|
`.implement-ticket-state.json` file:
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
|
-
|
|
38
|
+
node agent-config-templates/scripts/work_engine/migration/v0_to_v1.js .implement-ticket-state.json
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
This:
|
|
@@ -58,7 +58,7 @@ finds only the legacy file, it stops with:
|
|
|
58
58
|
```
|
|
59
59
|
error: Found legacy state file .implement-ticket-state.json but no
|
|
60
60
|
.work-state.json. The default state file was renamed in 1.15.0. Run
|
|
61
|
-
`
|
|
61
|
+
`node agent-config-templates/scripts/work_engine/migration/v0_to_v1.js .implement-ticket-state.json`
|
|
62
62
|
to migrate, or pass `--state-file .implement-ticket-state.json` to
|
|
63
63
|
keep using the old name. See docs/MIGRATION.md.
|
|
64
64
|
```
|
|
@@ -112,7 +112,7 @@ If your project commits state files (uncommon but supported):
|
|
|
112
112
|
- Stability level: `work_engine` is **beta** — see
|
|
113
113
|
[`docs/contracts/STABILITY.md`](contracts/STABILITY.md).
|
|
114
114
|
- Source of truth for the migrator:
|
|
115
|
-
[`templates/scripts/work_engine/migration/v0_to_v1.
|
|
115
|
+
[`templates/scripts/work_engine/migration/v0_to_v1.ts`](../src/agent-src/templates/scripts/work_engine/migration/v0_to_v1.ts).
|
|
116
116
|
|
|
117
117
|
## Older versions
|
|
118
118
|
|
package/docs/architecture.md
CHANGED
|
@@ -146,10 +146,10 @@ note, package-internal path-swap, description budget, and the
|
|
|
146
146
|
|
|
147
147
|
| Layer | Count | Purpose |
|
|
148
148
|
|---|---|---|
|
|
149
|
-
| **Skills** |
|
|
150
|
-
| **Rules** |
|
|
151
|
-
| **Commands** |
|
|
152
|
-
| **Guidelines** |
|
|
149
|
+
| **Skills** | 264 | On-demand expertise — stack analysis (Laravel · Symfony · Zend / Laminas · Next.js · React · Node), testing, Docker, API design, security, observability, … |
|
|
150
|
+
| **Rules** | 95 | Always-active constraints — coding standards, scope control, verification, language-and-tone, agent-authority |
|
|
151
|
+
| **Commands** | 166 | Slash-command workflows — `/commit`, `/create-pr`, `/fix ci`, `/optimize skills`, `/feature plan`, `/work`, `/implement-ticket`, `/condense`, … |
|
|
152
|
+
| **Guidelines** | 87 | Reference material cited by skills — PHP patterns, Eloquent, Playwright, agent-infra, … |
|
|
153
153
|
| **Templates** | 7 | Scaffolds for features, roadmaps, contexts, skills, overrides |
|
|
154
154
|
| **Contexts** | 5 | Shared knowledge about the system itself |
|
|
155
155
|
|
|
@@ -226,8 +226,8 @@ execution:
|
|
|
226
226
|
type: manual | assisted | automated
|
|
227
227
|
handler: shell | php | node | internal | none
|
|
228
228
|
command: # required for shell/php/node runtime paths
|
|
229
|
-
-
|
|
230
|
-
- scripts/skill_linter
|
|
229
|
+
- ./scripts-run
|
|
230
|
+
- src/scripts/skill_linter
|
|
231
231
|
- "--all"
|
|
232
232
|
timeout_seconds: 120
|
|
233
233
|
allowed_tools: []
|
package/docs/benchmark.md
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
# Discipline-Axis Wrapper-Lift Benchmark (v2)
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> **Curated composite of two pinned reports** — the weak-host result and the
|
|
4
|
+
> strong-host result side by side. It is deliberately NOT auto-generated from the
|
|
5
|
+
> single latest `ab-v2` report: a single-report render would bury one host's
|
|
6
|
+
> finding (a strong-host null would erase the weak-host lift, and vice versa).
|
|
7
|
+
> Regenerate the pinned sections with `task bench:ab:v2:diff` — each
|
|
8
|
+
> `<!-- pinned:<id> -->` region renders from ITS pinned report
|
|
9
|
+
> (`docs/benchmark.pinned.yml`); curated prose outside the markers is
|
|
10
|
+
> never touched (`-- --check` is the drift gate). Pinned sources:
|
|
11
|
+
> weak host = `internal/bench/reports/ab-v2/2026-06-15T03-52-35Z-ab-v2-paired.json`;
|
|
12
|
+
> strong host = `internal/bench/reports/ab-v2/2026-07-05T07-00-31Z-ab-v2-paired.json`;
|
|
13
|
+
> cost-factor sweep = `internal/bench/reports/ab-v2/2026-07-07T05-35-14Z-ab-v2-paired.json`.
|
|
4
14
|
|
|
5
15
|
## Honesty labels (read first)
|
|
6
16
|
|
|
17
|
+
<!-- pinned:honesty -->
|
|
7
18
|
> 1. **Wrapper-lift on a fixed host (`claude-haiku-4-5`), NOT model-vs-model.** Measures what the agent-config package does to ONE host model on a neutral fixture — not a capability ranking.
|
|
8
19
|
> 2. **Discipline axis, not capability.** The headline is the *discipline* delta (did it stay minimal / verify / ask / not destroy / update downstream), not whether the goal was achievable.
|
|
9
20
|
> 3. **PILOT — low statistical power (N=2 tasks × 12 seed(s)).** Directional only.
|
|
10
21
|
> 4. **Paired design**, errored runs excluded; McNemar (capability) + Wilcoxon signed-rank (discipline) + effect sizes.
|
|
11
22
|
> 5. **Not comparable to SWE-bench / GAIA / Fable scores** — a different question entirely.
|
|
23
|
+
<!-- /pinned:honesty -->
|
|
12
24
|
|
|
13
|
-
## Gate verdict: **PASS**
|
|
25
|
+
## Weak host (`claude-haiku-4-5`) — Gate verdict: **PASS**
|
|
14
26
|
|
|
27
|
+
<!-- pinned:weak-stats -->
|
|
15
28
|
- capability lift significant: `False`
|
|
16
29
|
- discipline lift significant: `True`
|
|
17
30
|
- status-bucket better (package vs vanilla): `False`
|
|
@@ -73,6 +86,124 @@
|
|
|
73
86
|
- Arms: vanilla (plugin off) · package (real plugin) · package-rdp (plugin + RDP rules) · placebo (plugin off + equal-length inert prose).
|
|
74
87
|
- Corpus: `internal/bench/corpora/ab-trackb-v2.yaml` (5 trap archetypes). Scoring: `bench_ab_scoring_v2.py` (deterministic, no LLM judge).
|
|
75
88
|
- Roadmap: `agents/roadmaps/road-to-discipline-axis-benchmark.md`.
|
|
89
|
+
<!-- /pinned:weak-stats -->
|
|
90
|
+
|
|
91
|
+
## Cost-factor sweep (`claude-haiku-4-5`) — lift per loaded-context cost
|
|
92
|
+
|
|
93
|
+
> **Question:** the full package buys its weak-host lift at ~12× vanilla tokens.
|
|
94
|
+
> How much of the lift survives in trimmed rule-only configurations at a
|
|
95
|
+
> fraction of that cost? Four arms, same paired design (2 tasks × 12 seeds,
|
|
96
|
+
> n=24 pairs/arm), same host, same deterministic scorer. The trimmed arms run
|
|
97
|
+
> plugin-OFF + ONLY the named rule bodies injected via system prompt
|
|
98
|
+
> (`rules_subset_text()` in `bench_ab_v2_run.ts`, tier membership from
|
|
99
|
+
> `dist/router.json`).
|
|
100
|
+
|
|
101
|
+
<!-- pinned:cost-factor-table -->
|
|
102
|
+
| arm | loaded content | injected chars | mean tokens/run | cost factor | mean discipline | lift vs vanilla |
|
|
103
|
+
|---|---|---|---|---|---|---|
|
|
104
|
+
| `vanilla` | none | 0 | 103,319 | 1.0× | 0.458 | — |
|
|
105
|
+
| `rules-balanced` | kernel + tier 1 (shipped `balanced` profile) | 98,825 | 303,186 | **2.9×** | 0.417 | −0.042 (p=0.8127, **NULL**) |
|
|
106
|
+
| `rules-kernel-dc` | kernel (9 rules) + `downstream-changes` | 30,698 | 344,483 | **3.3×** | 0.917 | **+0.458 (p=0.0135, significant)** |
|
|
107
|
+
| `package` | full plugin | 0 | 1,210,078 | **11.7×** | 1.000 | **+0.542 (p=0.0017, significant)** |
|
|
108
|
+
|
|
109
|
+
(generated from the pinned report — curated labels from `docs/benchmark.pinned.yml`)
|
|
110
|
+
<!-- /pinned:cost-factor-table -->
|
|
111
|
+
|
|
112
|
+
Residual of the full package over `rules-kernel-dc`: Δ=+0.083, Wilcoxon p=0.37
|
|
113
|
+
(only 2 discordant pairs) — **not significant**.
|
|
114
|
+
|
|
115
|
+
Three findings:
|
|
116
|
+
|
|
117
|
+
1. **~95% of the lift survives at ~3× cost.** The kernel + `downstream-changes`
|
|
118
|
+
configuration keeps a significant discipline lift (0.917 vs the full
|
|
119
|
+
package's 1.000; the residual is not significant at this N) at ~28% of the
|
|
120
|
+
full package's tokens. The 12× full load is not required for this trap
|
|
121
|
+
family's lift.
|
|
122
|
+
2. **Content selection beats size — the shipped `balanced` profile is a null.**
|
|
123
|
+
`rules-balanced` injects 3× more chars than `rules-kernel-dc` and costs
|
|
124
|
+
almost the same per run, but delivers ZERO lift: it lacks
|
|
125
|
+
`downstream-changes` (a tier-2 rule), and `scope-control` alone does not
|
|
126
|
+
correct the downstream trap. This is the placebo result again, sharpened:
|
|
127
|
+
not only is length inert, even 33 real rules are inert on a trap their
|
|
128
|
+
lift-carrying rule doesn't cover. Any low-cost weak-host profile must be
|
|
129
|
+
cut by lift-carrying content, not by tier size.
|
|
130
|
+
3. **Cost is behaviour, not just context.** `rules-kernel-dc` injects a third
|
|
131
|
+
of `rules-balanced`'s chars but costs slightly MORE — the discipline
|
|
132
|
+
behaviour itself (verification turns, downstream edits) spends tokens. The
|
|
133
|
+
token factor cannot be dialed by context size alone.
|
|
134
|
+
|
|
135
|
+
**Honest scope:** weak host only; the 2-task scope/downstream family (the family
|
|
136
|
+
with the proven lift), N=24 pairs/arm — the full package covers 4 more trap
|
|
137
|
+
archetypes the trimmed arms were NOT tested on here. Rules-only injection, not a
|
|
138
|
+
full plugin projection (no skills/commands/hooks in the trimmed arms). Before
|
|
139
|
+
shipping any trimmed default, sweep the full corpus (done below).
|
|
140
|
+
|
|
141
|
+
- Report: `internal/bench/reports/ab-v2/2026-07-07T05-35-14Z-ab-v2-paired.json`.
|
|
142
|
+
- Arms: `rules-kernel-dc` / `rules-balanced` in `src/scripts/bench_ab_v2_run.ts` (opt-in, not in the default arm list).
|
|
143
|
+
|
|
144
|
+
### Full-corpus P1 gate (`claude-haiku-4-5`, all 30 tasks) — family-scoped PASS
|
|
145
|
+
|
|
146
|
+
> **The essential lift is real, replicates, and is family-scoped.** Full corpus
|
|
147
|
+
> (all 5 trap archetypes + agentic-debug + the Laravel downstream trap),
|
|
148
|
+
> `vanilla` vs `rules-kernel-dc` × 3 seeds = 180 runs (n=90 pairs, 0 errored),
|
|
149
|
+
> run from a frozen checkout so mid-run edits could not contaminate the
|
|
150
|
+
> per-run rule reads. Corpus-wide the discipline delta is +0.056 (0.872 →
|
|
151
|
+
> 0.928, Wilcoxon p=0.084, rb=0.53) — NOT significant, because vanilla Haiku
|
|
152
|
+
> is already at/near the discipline ceiling on every family except the
|
|
153
|
+
> scope/downstream one. Inside that family the pilot lift replicates exactly:
|
|
154
|
+
> trapE (now 5 tasks incl. Laravel + meso variants) 0.533 → 1.000, Δ=+0.467,
|
|
155
|
+
> ALL 7 discordant pairs favouring the essential cut (sign test p≈0.016); all
|
|
156
|
+
> other families flat at ceiling (largest counter-noise: trapA −0.083 on 2
|
|
157
|
+
> discordant pairs). **Corpus-wide cost factor: 1.71x** (132,036 → 225,956
|
|
158
|
+
> mean tokens/run) — cheaper than the family-only 3.3x, because the
|
|
159
|
+
> discipline behaviour only spends turns where the trap exists.
|
|
160
|
+
|
|
161
|
+
| axis | vanilla | rules-kernel-dc | Δ | test |
|
|
162
|
+
|---|---|---|---|---|
|
|
163
|
+
| capability (pass-rate) | 92% | 92% | 0 | McNemar p=1.0, h=0.0 |
|
|
164
|
+
| discipline, full corpus (0–1) | 0.872 | 0.928 | +0.056 | Wilcoxon p=0.084, rb=0.53 (n≠0=14) |
|
|
165
|
+
| discipline, scope/downstream family (n=15) | 0.533 | 1.000 | +0.467 | 7/7 discordant favour essential (sign p≈0.016) |
|
|
166
|
+
| mean tokens/run | 132,036 | 225,956 | +93,920 (~1.7x) | — |
|
|
167
|
+
|
|
168
|
+
**Verdict for the tiering roadmap's P1 gate:** family-scoped PASS. The
|
|
169
|
+
`essential` tier's claim stays honest-scoped to the scope/downstream family —
|
|
170
|
+
the lift does not extend to families where the host is already at ceiling, and
|
|
171
|
+
it costs ~1.7x on a realistic mixed corpus. The Phase-4 default flip remains
|
|
172
|
+
additionally gated on the P2 non-Claude replication.
|
|
173
|
+
|
|
174
|
+
- Report: `internal/bench/reports/ab-v2/2026-07-07T07-04-39Z-ab-v2-paired.json`.
|
|
175
|
+
|
|
176
|
+
## Strong host (`sonnet`, full 30-task corpus) — Gate verdict: **HONEST-NULL**
|
|
177
|
+
|
|
178
|
+
- capability lift significant: `False`
|
|
179
|
+
- discipline lift significant: `False`
|
|
180
|
+
- status-bucket better (package vs vanilla): `False`
|
|
181
|
+
|
|
182
|
+
> **Honest null on a strong host, across the full corpus.** A re-run of the SAME
|
|
183
|
+
> package on `sonnet` over the entire discipline corpus — all 5 trap archetypes +
|
|
184
|
+
> agentic-debug + a Laravel/PHP downstream trap (`trapE-scope-laravel-01`) — with
|
|
185
|
+
> `vanilla` vs `package` × 3 seeds (180 runs, n=84 paired). The discipline axis
|
|
186
|
+
> does not move (Δ=+0.000, Wilcoxon p=1.0) and capability is flat-to-slightly-lower,
|
|
187
|
+
> because a capable host is *already* at the discipline ceiling on these
|
|
188
|
+
> deterministic traps — exactly what the weak-host section predicts. The package
|
|
189
|
+
> is a redundant no-op here, **at ~5× the tokens.** This is not a failure: it is
|
|
190
|
+
> the empirical bound on the weak-host claim, and it holds in PHP as in TS. **No
|
|
191
|
+
> strong-host lift is claimed.**
|
|
192
|
+
|
|
193
|
+
### Table — `package` vs `vanilla` (n=84 pairs, host `sonnet`)
|
|
194
|
+
|
|
195
|
+
<!-- pinned:strong-table -->
|
|
196
|
+
| axis | vanilla | package | Δ | test |
|
|
197
|
+
|---|---|---|---|---|
|
|
198
|
+
| capability (pass-rate) | 94% | 89% | −5pp | McNemar p=0.125, h=-0.174 |
|
|
199
|
+
| discipline (0–1) | 0.929 | 0.929 | +0.000 | Wilcoxon p=1.0, rb=0.0 (n≠0=5) |
|
|
200
|
+
| mean tokens/run | 185,584 | 929,716 | +744,132 (~5×) | — |
|
|
201
|
+
|
|
202
|
+
(host `sonnet`, n=84 pairs — generated from the pinned report)
|
|
203
|
+
<!-- /pinned:strong-table -->
|
|
204
|
+
|
|
205
|
+
- Report: `internal/bench/reports/ab-v2/2026-07-05T07-00-31Z-ab-v2-paired.json` (A6 of `road-to-final-state-and-market-readiness.md`).
|
|
206
|
+
- Methodology: identical to the weak-host section (pinned host, deterministic scorer, paired design); the only change is the host model and the full-corpus scope.
|
|
76
207
|
|
|
77
208
|
## Recursive self-verification (ADR-106) — HONEST-NULL
|
|
78
209
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Pin manifest for the curated composite `docs/benchmark.md`
|
|
2
|
+
# (road-to-flow-learnings Phase 3).
|
|
3
|
+
#
|
|
4
|
+
# Each section renders INDEPENDENTLY from ITS pinned report via
|
|
5
|
+
# `src/scripts/render_benchmark_composite.ts` — never from the single
|
|
6
|
+
# latest report (the composite's in-file curation rationale stands).
|
|
7
|
+
# Curated prose lives OUTSIDE the `<!-- pinned:<id> -->` markers and is
|
|
8
|
+
# never touched by the renderer. Pinned reports are operator-local
|
|
9
|
+
# (untracked); the renderer skips cleanly where they are absent.
|
|
10
|
+
sections:
|
|
11
|
+
- id: honesty
|
|
12
|
+
mode: honesty-labels
|
|
13
|
+
report: internal/bench/reports/ab-v2/2026-06-15T03-52-35Z-ab-v2-paired.json
|
|
14
|
+
- id: weak-stats
|
|
15
|
+
mode: stats-body
|
|
16
|
+
report: internal/bench/reports/ab-v2/2026-06-15T03-52-35Z-ab-v2-paired.json
|
|
17
|
+
- id: cost-factor-table
|
|
18
|
+
mode: arm-cost-table
|
|
19
|
+
report: internal/bench/reports/ab-v2/2026-07-07T05-35-14Z-ab-v2-paired.json
|
|
20
|
+
arms:
|
|
21
|
+
- id: vanilla
|
|
22
|
+
label: none
|
|
23
|
+
- id: rules-balanced
|
|
24
|
+
label: kernel + tier 1 (shipped `balanced` profile)
|
|
25
|
+
- id: rules-kernel-dc
|
|
26
|
+
label: kernel (9 rules) + `downstream-changes`
|
|
27
|
+
- id: package
|
|
28
|
+
label: full plugin
|
|
29
|
+
- id: strong-table
|
|
30
|
+
mode: compact-table
|
|
31
|
+
report: internal/bench/reports/ab-v2/2026-07-05T07-00-31Z-ab-v2-paired.json
|
|
@@ -15,6 +15,7 @@ transform — `.mdc`, workflow, or an aggregated single file) · **— none**
|
|
|
15
15
|
| `rules` | ✅ native | — none | ✅ native | 🔁 adapter | 🔁 adapter | ✅ native | 🔁 adapter | 🔁 adapter † | — none |
|
|
16
16
|
| `skills` | ✅ native | ✅ native | ✅ native | — none | — none | — none | — none | — none | — none |
|
|
17
17
|
| `commands` | ✅ native | — none | ✅ native | 🔁 adapter | 🔁 adapter | — none | — none | — none | — none |
|
|
18
|
+
| `subagents` | ✅ native | — none | — none | 🔁 adapter | 🔁 adapter | 🔁 adapter | — none | — none | — none |
|
|
18
19
|
| `personas` | ✅ native | — none | ✅ native | ✅ native | — none | — none | — none | — none | — none |
|
|
19
20
|
| `user-types` | ✅ native | — none | ✅ native | ✅ native | — none | — none | — none | — none | — none |
|
|
20
21
|
| `hooks` | — none | ✅ native | — none | — none | — none | — none | — none | — none | — none |
|