checkwright 0.0.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +260 -4
- package/bin/checkwright.sh +53 -0
- package/lib/common/lock.sh +28 -0
- package/lib/common/profile.sh +58 -0
- package/lib/common/recipe.sh +93 -0
- package/lib/doctor.sh +90 -0
- package/lib/init.sh +289 -0
- package/package.json +15 -3
- package/payload/canon-kit/README.md +78 -0
- package/payload/canon-kit/SPEC.md +1264 -0
- package/payload/canon-kit/checks/check-amendment-queue.sh +115 -0
- package/payload/canon-kit/checks/check-comment-tier.sh +211 -0
- package/payload/canon-kit/checks/check-deprecation-task.sh +90 -0
- package/payload/canon-kit/checks/check-docs-cmd.sh +153 -0
- package/payload/canon-kit/checks/check-docs-link-convention.sh +71 -0
- package/payload/canon-kit/checks/check-knob-citation.sh +117 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +239 -0
- package/payload/canon-kit/checks/check-manifest-count.sh +46 -0
- package/payload/canon-kit/checks/check-manifest-temporal.sh +83 -0
- package/payload/canon-kit/checks/check-md-refs.sh +115 -0
- package/payload/canon-kit/checks/check-prose-enum.sh +115 -0
- package/payload/canon-kit/checks/check-prose-tells.sh +207 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.sh +69 -0
- package/payload/canon-kit/checks/check-spec-dod-singleton.sh +45 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +133 -0
- package/payload/canon-kit/checks/check-spec-fence-balance.sh +42 -0
- package/payload/canon-kit/checks/check-spec-pointer.sh +176 -0
- package/payload/canon-kit/checks/check-surface-duplication.sh +105 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.sh +80 -0
- package/payload/canon-kit/checks/check-tracking-claim.sh +136 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +5 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +25 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +32 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +146 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +19 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.sh +6 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +21 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +98 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/doc.md +9 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/bin/tool.sh +3 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +18 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/args +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/demokit/index.md +5 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/index.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/args +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/demokit/index.md +6 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/index.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/methodology.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/bad/SPEC.md +10 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/good/SPEC.md +19 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +71 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/gate-sdk-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/lib/widget-cli.sh +3 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/lib/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/SPEC.md +7 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/lib/widget-cli.sh +3 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/lib/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +73 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +15 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +37 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +104 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/bad/SPEC.md +6 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/doc.md +3 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/doc.md +3 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/target.md +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +82 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/SPEC.md +16 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +127 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +15 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +21 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/SPEC.md +20 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/good/SPEC.md +13 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/bad/SPEC.md +15 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/good/SPEC.md +13 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +63 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC.md +16 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.sh +9 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +19 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.sh +9 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/doc.md +8 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/doc.md +9 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-target.md +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/cand-tmpl.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-target.md +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/cand-tmpl.md +7 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/widget.sh +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/GLOSSARY.md +11 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/VISION.md +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/GLOSSARY.md +11 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/VISION.md +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +19 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +23 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.sh +5 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/kept.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/README.md +7 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/kept.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/roster.list +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +86 -0
- package/payload/canon-kit/lib/spec.sh +475 -0
- package/payload/canon-kit/smoke/install.sh +36 -0
- package/payload/canon-kit/smoke/violation.sh +22 -0
- package/payload/canon-kit/templates/SPEC-amendment.md +55 -0
- package/payload/canon-kit/templates/canon-config.sh +2 -0
- package/payload/context-kit/README.md +82 -0
- package/payload/context-kit/SPEC.md +785 -0
- package/payload/context-kit/bin/always-loaded.sh +86 -0
- package/payload/context-kit/bin/env-probe.sh +144 -0
- package/payload/context-kit/bin/footprint.sh +144 -0
- package/payload/context-kit/bin/md-index.sh +80 -0
- package/payload/context-kit/bin/md-section.sh +63 -0
- package/payload/context-kit/bin/pub-index.sh +90 -0
- package/payload/context-kit/bin/run-index-tests.sh +91 -0
- package/payload/context-kit/checks/check-brevity.sh +123 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +38 -0
- package/payload/context-kit/checks/check-memory-off.sh +112 -0
- package/payload/context-kit/checks/check-settings-pins.sh +110 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +14 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/args +2 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +20 -0
- package/payload/context-kit/gate-tests/check-brevity/good/args +2 -0
- package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-brevity.test.sh +89 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/args +4 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/emit.txt +12 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/projection.txt +11 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +4 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +12 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +12 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/memory/example-fact.md +6 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/args +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/memory/.gitkeep +0 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +54 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/settings-pins.conf +3 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/settings.json +6 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/settings-pins.conf +3 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/settings.json +6 -0
- package/payload/context-kit/index-tests/corpus/baseline.txt +2 -0
- package/payload/context-kit/index-tests/corpus/hook-sample.txt +4 -0
- package/payload/context-kit/index-tests/corpus/sample.md +23 -0
- package/payload/context-kit/index-tests/corpus/sample.rs +24 -0
- package/payload/context-kit/index-tests/corpus/sample.ts +34 -0
- package/payload/context-kit/index-tests/corpus/surface.md +6 -0
- package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -0
- package/payload/context-kit/index-tests/expected/md-index.txt +6 -0
- package/payload/context-kit/index-tests/expected/md-section.txt +6 -0
- package/payload/context-kit/index-tests/expected/pub-index-shadow.txt +2 -0
- package/payload/context-kit/index-tests/expected/pub-index-ts.txt +12 -0
- package/payload/context-kit/index-tests/expected/pub-index.txt +10 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +14 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +29 -0
- package/payload/context-kit/lib/pub-lang/rust.sh +26 -0
- package/payload/context-kit/lib/pub-lang/ts.sh +32 -0
- package/payload/context-kit/lib/toolfloor.sh +47 -0
- package/payload/context-kit/smoke/agents-md.sh +116 -0
- package/payload/context-kit/smoke/install.sh +60 -0
- package/payload/context-kit/smoke/violation.sh +21 -0
- package/payload/context-kit/templates/close-brevity.md +30 -0
- package/payload/context-kit/templates/context-config.sh +2 -0
- package/payload/context-kit/templates/session-context.sh +133 -0
- package/payload/context-kit/templates/settings-sessionstart.json +12 -0
- package/payload/delegation-kit/README.md +87 -0
- package/payload/delegation-kit/SPEC.md +780 -0
- package/payload/delegation-kit/bin/run-budget-guard-tests.sh +88 -0
- package/payload/delegation-kit/bin/run-trend-tests.sh +63 -0
- package/payload/delegation-kit/bin/run-usage-tests.sh +226 -0
- package/payload/delegation-kit/bin/usage-trend.sh +120 -0
- package/payload/delegation-kit/bin/usage-verdict.sh +144 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +139 -0
- package/payload/delegation-kit/checks/check-rule-citation.sh +76 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/args +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/staged-files +5 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/added-exemptions +2 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/args +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/staged-files +5 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/args +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/spec.md +9 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/tmpl.md +4 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/args +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/spec.md +20 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/tmpl.md +5 -0
- package/payload/delegation-kit/lib/delegation.sh +81 -0
- package/payload/delegation-kit/smoke/install.sh +61 -0
- package/payload/delegation-kit/smoke/violation.sh +16 -0
- package/payload/delegation-kit/templates/agent-budget-guard.sh +18 -0
- package/payload/delegation-kit/templates/agent-execution.md +136 -0
- package/payload/delegation-kit/templates/delegation-config.sh +2 -0
- package/payload/delegation-kit/templates/dispatch-checklists.md +60 -0
- package/payload/delegation-kit/templates/statusline-usage.sh +79 -0
- package/payload/delegation-kit/templates/usage-poller.sh +67 -0
- package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +20 -0
- package/payload/delegation-kit/usage-tests/cases.tsv +44 -0
- package/payload/delegation-kit/usage-tests/trend-history.log +20 -0
- package/payload/doctrine-kit/DOCTRINE.md +386 -0
- package/payload/doctrine-kit/README.md +70 -0
- package/payload/doctrine-kit/SPEC.md +233 -0
- package/payload/doctrine-kit/bin/install-doctrine.sh +44 -0
- package/payload/doctrine-kit/bin/stage-rules.sh +51 -0
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +216 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/AGENT.md +14 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +12 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/args +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/expect.txt +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/AGENT.md +15 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +12 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/args +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/expect.txt +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +208 -0
- package/payload/doctrine-kit/lib/doctrine.sh +29 -0
- package/payload/doctrine-kit/smoke/install.sh +24 -0
- package/payload/doctrine-kit/smoke/violation.sh +13 -0
- package/payload/drift-kit/README.md +115 -0
- package/payload/drift-kit/SPEC.md +828 -0
- package/payload/drift-kit/bin/drift-report.sh +152 -0
- package/payload/drift-kit/bin/kfric.sh +42 -0
- package/payload/drift-kit/bin/overhead-meter.sh +106 -0
- package/payload/drift-kit/bin/stage-economics.sh +311 -0
- package/payload/drift-kit/bin/trajectory.sh +242 -0
- package/payload/drift-kit/kpis/kpi-always-loaded.sh +39 -0
- package/payload/drift-kit/kpis/kpi-amendment-age.sh +33 -0
- package/payload/drift-kit/kpis/kpi-deferred-age.sh +44 -0
- package/payload/drift-kit/kpis/kpi-gate-backlog.sh +52 -0
- package/payload/drift-kit/kpis/kpi-gate-runtime.sh +31 -0
- package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +21 -0
- package/payload/drift-kit/kpis/kpi-overhead.sh +44 -0
- package/payload/drift-kit/kpis/kpi-price-table-age.sh +68 -0
- package/payload/drift-kit/kpis/kpi-prompt-friction.sh +38 -0
- package/payload/drift-kit/kpis/kpi-settings-local.sh +21 -0
- package/payload/drift-kit/kpis/kpi-task-split.sh +43 -0
- package/payload/drift-kit/smoke/install.sh +348 -0
- package/payload/drift-kit/smoke/overhead-fixture.jsonl +4 -0
- package/payload/drift-kit/templates/close-knowledge.md +24 -0
- package/payload/drift-kit/templates/drift-config.sh +2 -0
- package/payload/drift-kit/templates/economics.md +45 -0
- package/payload/drift-kit/templates/kpi-deprecated-surface.sh +32 -0
- package/payload/drift-kit/templates/kpis.list +22 -0
- package/payload/drift-kit/templates/price-table.tsv +21 -0
- package/payload/evidence-kit/README.md +59 -0
- package/payload/evidence-kit/SPEC.md +261 -0
- package/payload/evidence-kit/bin/diff-baseline.sh +34 -0
- package/payload/evidence-kit/bin/run-validate.sh +82 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +103 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +104 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/validate-baseline.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +84 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/TASK-QUEUE.md +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/validate-evidence.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/TASK-QUEUE.md +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/validate-evidence.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +107 -0
- package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +82 -0
- package/payload/evidence-kit/lib/evidence.sh +173 -0
- package/payload/evidence-kit/smoke/install.sh +45 -0
- package/payload/evidence-kit/smoke/violation.sh +8 -0
- package/payload/evidence-kit/templates/evidence-config.sh +2 -0
- package/payload/gate-sdk/README.md +124 -0
- package/payload/gate-sdk/SPEC.md +1861 -0
- package/payload/gate-sdk/bin/enforcement-map.sh +272 -0
- package/payload/gate-sdk/bin/gen-pre-commit.sh +267 -0
- package/payload/gate-sdk/bin/install-hooks.sh +48 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +112 -0
- package/payload/gate-sdk/bin/run-gate-tests.sh +128 -0
- package/payload/gate-sdk/bin/run-gates.sh +147 -0
- package/payload/gate-sdk/bin/upgrade-smoke.sh +163 -0
- package/payload/gate-sdk/checks/check-action-pinning.sh +55 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +219 -0
- package/payload/gate-sdk/checks/check-assertion-strength.sh +134 -0
- package/payload/gate-sdk/checks/check-commit-msg.sh +50 -0
- package/payload/gate-sdk/checks/check-commit-subject.sh +43 -0
- package/payload/gate-sdk/checks/check-core-files.sh +52 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +37 -0
- package/payload/gate-sdk/checks/check-exec-bit.sh +76 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +123 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +106 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +84 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +92 -0
- package/payload/gate-sdk/checks/check-gate-output.sh +65 -0
- package/payload/gate-sdk/checks/check-graph.sh +632 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +45 -0
- package/payload/gate-sdk/checks/check-identity.sh +134 -0
- package/payload/gate-sdk/checks/check-kit-enum.sh +94 -0
- package/payload/gate-sdk/checks/check-kit-registration.sh +68 -0
- package/payload/gate-sdk/checks/check-readme-roster.sh +102 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +148 -0
- package/payload/gate-sdk/checks/check-root-tiering.sh +66 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +55 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +53 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +126 -0
- package/payload/gate-sdk/checks/check-test-hermetic.sh +119 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +61 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +84 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/tree/mutable.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/tree/nested/pinned.yml +5 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/nested/deep.yml +5 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/no-refs.yaml +8 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/pinned.yml +10 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/ci.yml +15 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/action.yml +14 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/not-actions.yml +16 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/ci.yml +106 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +88 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/bin/verdict.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/bin/verdict.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/msg.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +73 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/core-files.list +3 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/core-files.list +5 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/nested/also-present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/emit.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/projection.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +4 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +46 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-baz.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-foo.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +20 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-baz.sh +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-foo.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/gates/check-sample.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/gates/check-sample.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/gates/check-sample.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/gates/check-sample.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/check-gamma.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gate-tests/check-alpha/bad/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gate-tests/check-alpha/good/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/check-beta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gate-tests/check-alpha/bad/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gate-tests/check-alpha/good/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gates.list +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-sample.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-sample.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +12 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +20 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +51 -0
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +55 -0
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +63 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/hooks/pre-commit +2 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/hooks/pre-commit +2 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/git-config-email +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/git-remotes +2 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/git-config-email +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/git-remotes +3 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-sample.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-sample.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +20 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +75 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/checks/check-alpha-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/checks/check-alpha-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/gamma-kit/README.md +5 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/gamma-kit/checks/check-gamma-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/README.md +16 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/checks/check-alpha-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/checks/check-alpha-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/beta-kit/smoke/install.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/corpus/sub/deep.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/corpus/top.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/corpus/sub/deep.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/corpus/top.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/allow.list +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/root/README.md +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/root/stray.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/allow.list +3 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/LICENSE +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/README.md +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/somedir/keep.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/warn.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/ok.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/violation.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/args +9 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/delegation-kit/templates/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/scripts/agent-budget-guard.sh +17 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +8 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/delegation-config.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/usage-poller.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/delegation-config.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/leaky.test.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/exempt.test.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/sourced.test.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +84 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/leak.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/clean.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/.workflow/payload.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/.workflow/projection.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/.workflow/projection.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/.workflow/wire.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +87 -0
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +78 -0
- package/payload/gate-sdk/gate-tests/run-for-path.test.sh +77 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +32 -0
- package/payload/gate-sdk/lib/gate.sh +216 -0
- package/payload/gate-sdk/lib/inject.sh +35 -0
- package/payload/gate-sdk/lib/test-hermetic.sh +11 -0
- package/payload/gate-sdk/smoke/install.sh +84 -0
- package/payload/gate-sdk/smoke/violation.sh +13 -0
- package/payload/gate-sdk/templates/check-skeleton.sh +23 -0
- package/payload/gate-sdk/templates/gates-workflow.yml +55 -0
- package/payload/gate-sdk/templates/msg-patterns.list +21 -0
- package/payload/guard-kit/README.md +65 -0
- package/payload/guard-kit/SPEC.md +590 -0
- package/payload/guard-kit/bin/compare-settings-allow.sh +58 -0
- package/payload/guard-kit/bin/run-guard-tests.sh +86 -0
- package/payload/guard-kit/bin/scan-prompts.sh +166 -0
- package/payload/guard-kit/bin/scratch-run.sh +34 -0
- package/payload/guard-kit/gate-tests/scan-prompts.test.sh +70 -0
- package/payload/guard-kit/gate-tests/scratch-run.test.sh +62 -0
- package/payload/guard-kit/guard-tests/cases.tsv +117 -0
- package/payload/guard-kit/guard-tests/escalation-cases.tsv +13 -0
- package/payload/guard-kit/lib/guard.sh +448 -0
- package/payload/guard-kit/smoke/install.sh +26 -0
- package/payload/guard-kit/templates/bash-guard.sh +18 -0
- package/payload/guard-kit/templates/close-triage.md +31 -0
- package/payload/guard-kit/templates/escalation-guard.sh +27 -0
- package/payload/guard-kit/templates/guard-config.sh +2 -0
- package/payload/guard-kit/templates/settings-hooks.json +19 -0
- package/payload/guard-kit/templates/wakeup-guard.sh +20 -0
- package/payload/lifecycle-kit/README.md +106 -0
- package/payload/lifecycle-kit/SPEC.md +1469 -0
- package/payload/lifecycle-kit/bin/close-surfaces.sh +94 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +215 -0
- package/payload/lifecycle-kit/bin/file-gap.sh +43 -0
- package/payload/lifecycle-kit/bin/install-lifecycle.sh +36 -0
- package/payload/lifecycle-kit/bin/session-id.sh +75 -0
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +63 -0
- package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +98 -0
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +54 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +69 -0
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +97 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +59 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +197 -0
- package/payload/lifecycle-kit/checks/check-stage-evidence.sh +81 -0
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +47 -0
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +96 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/owners/inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +66 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/evidence.txt +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/queue-head.md +8 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/queue-work.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/evidence.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/queue-head.md +8 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/queue-work.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +56 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +11 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +11 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +59 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +6 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +5 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +113 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/commands/build.md +6 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/corpus.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/commands/build.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/corpus.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +80 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/commands/build.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/templates/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/commands/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/templates/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +84 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +7 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +7 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +251 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +115 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/expect.txt +1 -0
- package/payload/lifecycle-kit/lib/stages.sh +179 -0
- package/payload/lifecycle-kit/smoke/install.sh +341 -0
- package/payload/lifecycle-kit/smoke/violation.sh +8 -0
- package/payload/lifecycle-kit/templates/lead.md +271 -0
- package/payload/lifecycle-kit/templates/lifecycle-config.sh +2 -0
- package/payload/lifecycle-kit/templates/skills/align.md +65 -0
- package/payload/lifecycle-kit/templates/skills/build.md +78 -0
- package/payload/lifecycle-kit/templates/skills/close.md +122 -0
- package/payload/lifecycle-kit/templates/skills/release-sweep.md +39 -0
- package/payload/lifecycle-kit/templates/skills/scope.md +112 -0
- package/payload/lifecycle-kit/templates/skills/spec.md +91 -0
- package/payload/lifecycle-kit/templates/skills/upgrade.md +41 -0
- package/payload/lifecycle-kit/templates/skills/validate.md +54 -0
- package/payload/queue-kit/README.md +62 -0
- package/payload/queue-kit/SPEC.md +366 -0
- package/payload/queue-kit/bin/lesson-sink.sh +28 -0
- package/payload/queue-kit/bin/queue-index.sh +131 -0
- package/payload/queue-kit/checks/check-queue-hygiene.sh +81 -0
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +63 -0
- package/payload/queue-kit/checks/check-queue-sections.sh +44 -0
- package/payload/queue-kit/checks/check-queue-slug-liveness.sh +63 -0
- package/payload/queue-kit/checks/check-queue-wrap.sh +56 -0
- package/payload/queue-kit/checks/check-tag-lead-line.sh +66 -0
- package/payload/queue-kit/checks/check-task-conservation.sh +50 -0
- package/payload/queue-kit/checks/check-task-names.sh +128 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +17 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/bad/TASK-QUEUE.md +13 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/good/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +17 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +4 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +3 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +19 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +5 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +3 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +22 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +29 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -0
- package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/queue-index.test.sh +118 -0
- package/payload/queue-kit/lib/queue.sh +107 -0
- package/payload/queue-kit/smoke/install.sh +21 -0
- package/payload/queue-kit/smoke/violation.sh +8 -0
- package/payload/queue-kit/templates/TASK-QUEUE.md +43 -0
- package/payload/queue-kit/templates/queue-config.sh +2 -0
- package/payload/site-kit/README.md +61 -0
- package/payload/site-kit/SPEC.md +263 -0
- package/payload/site-kit/checks/check-docs-cname-parity.sh +80 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +167 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/site-config.sh +7 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/tree/CNAME +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/tree/README.md +5 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +5 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/site-config.sh +7 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/CNAME +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/docs/posts/2026-01-01-legacy.md +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/index.md +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/pkg/gate-tests/fixture.md +5 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/args +8 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/tree/docs/install.md +38 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/args +6 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/tree/docs/install.md +35 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +87 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +80 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +90 -0
- package/payload/site-kit/lib/site.sh +29 -0
- package/payload/site-kit/smoke/install.sh +26 -0
- package/payload/site-kit/smoke/violation.sh +20 -0
- package/payload/site-kit/templates/site-health.yml +164 -0
- package/profiles.list +53 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: drift-kit/SPEC.md §Bundled KPIs — kpi-task-split: feature↔debt split of the queue's Done slugs
|
|
3
|
+
set -uo pipefail
|
|
4
|
+
|
|
5
|
+
QUEUE="${DRIFT_KIT_QUEUE_FILE:-TASK-QUEUE.md}"
|
|
6
|
+
SECTION="${DRIFT_KIT_DONE_SECTION:-Done}"
|
|
7
|
+
|
|
8
|
+
[[ -f "$QUEUE" ]] || { [[ "${1:-}" == "--trend" ]] || printf 'lead\ttask split (feat/debt)\tn/a (no queue file)\n'; exit 0; }
|
|
9
|
+
|
|
10
|
+
mapfile -t slugs < <(
|
|
11
|
+
awk -v sec="$SECTION" '
|
|
12
|
+
$0 ~ "^## "sec"[[:space:]]*$" { inx=1; next }
|
|
13
|
+
/^## / { inx=0 }
|
|
14
|
+
inx && /^-[[:space:]]+[a-z0-9][a-z0-9-]*[[:space:]]*$/ { print $2 }
|
|
15
|
+
' "$QUEUE" 2>/dev/null | sort -u
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
total=${#slugs[@]}
|
|
19
|
+
if [[ "$total" -eq 0 ]]; then
|
|
20
|
+
[[ "${1:-}" == "--trend" ]] && exit 0
|
|
21
|
+
printf 'lead\ttask split (feat/debt)\tn/a (nothing Done this iteration)\n'
|
|
22
|
+
exit 0
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
feat=0; debt=0
|
|
26
|
+
for s in "${slugs[@]}"; do
|
|
27
|
+
subj="$(git log -1 --format=%s --grep="$s" 2>/dev/null)" || true
|
|
28
|
+
case "$subj" in
|
|
29
|
+
feat*) feat=$((feat + 1)) ;;
|
|
30
|
+
fix* | refactor*) debt=$((debt + 1)) ;;
|
|
31
|
+
esac
|
|
32
|
+
done
|
|
33
|
+
|
|
34
|
+
if [[ "${1:-}" == "--trend" ]]; then
|
|
35
|
+
printf 'split %df/%dd\n' "$feat" "$debt"
|
|
36
|
+
exit 0
|
|
37
|
+
fi
|
|
38
|
+
|
|
39
|
+
unclassified=$((total - feat - debt))
|
|
40
|
+
value="${feat}f / ${debt}d of ${total} done"
|
|
41
|
+
[[ "$unclassified" -gt 0 ]] && value="$value ($unclassified unclassified)"
|
|
42
|
+
printf 'lead\ttask split (feat/debt)\t%s\n' "$value"
|
|
43
|
+
exit 0
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: drift-kit/SPEC.md §Testing — advisory report smoke; drift-kit ships no gate, so the
|
|
3
|
+
# installer proves the report itself inline (guard-kit's precedent). Also gate-sdk/SPEC.md §Consumer smoke.
|
|
4
|
+
# cwd = scratch-consumer root; SMOKE_KIT_ROOT = the vendored drift-kit copy.
|
|
5
|
+
set -euo pipefail
|
|
6
|
+
: "${SMOKE_KIT_ROOT:?run via run-consumer-smoke.sh}"
|
|
7
|
+
|
|
8
|
+
mkdir -p scripts
|
|
9
|
+
cp "$SMOKE_KIT_ROOT/templates/drift-config.sh" scripts/drift-config.sh
|
|
10
|
+
cp "$SMOKE_KIT_ROOT/templates/kpis.list" scripts/kpis.list
|
|
11
|
+
|
|
12
|
+
work="$(mktemp -d "${TMPDIR:-/tmp}/drift-smoke.XXXXXX")"
|
|
13
|
+
trepo="$(mktemp -d "${TMPDIR:-/tmp}/traj-smoke.XXXXXX")"
|
|
14
|
+
trap 'rm -rf "$work" "$trepo"' EXIT
|
|
15
|
+
|
|
16
|
+
cp "$SMOKE_KIT_ROOT/templates/kpis.list" "$work/kpis.list"
|
|
17
|
+
echo 'kpi-does-not-exist' >> "$work/kpis.list" # a registry naming a missing plugin
|
|
18
|
+
|
|
19
|
+
cat > "$work/TASK-QUEUE.md" <<'EOF'
|
|
20
|
+
# TASK-QUEUE.md
|
|
21
|
+
## Iteration: smoke
|
|
22
|
+
## Deferred
|
|
23
|
+
- **foo** [needs-spec] — a thing. Surfaced 2025-01-01.
|
|
24
|
+
## Done
|
|
25
|
+
EOF
|
|
26
|
+
|
|
27
|
+
registered="$(grep -cEv '^[[:space:]]*(#|$)' "$work/kpis.list")"
|
|
28
|
+
|
|
29
|
+
report() {
|
|
30
|
+
DRIFT_KIT_KPIS_FILE="$work/kpis.list" \
|
|
31
|
+
DRIFT_KIT_QUEUE_FILE="$work/TASK-QUEUE.md" \
|
|
32
|
+
DRIFT_KIT_TMP_DIR="$work" \
|
|
33
|
+
DRIFT_KIT_TIMINGS_FILE="$work/no-such-timings.txt" \
|
|
34
|
+
bash "$SMOKE_KIT_ROOT/bin/drift-report.sh" "$@"
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
fail() { echo "drift-kit/smoke/install.sh: $1" >&2; exit 1; }
|
|
38
|
+
|
|
39
|
+
set +e
|
|
40
|
+
out="$(report)"; rc=$?
|
|
41
|
+
set -e
|
|
42
|
+
[[ "$rc" -eq 0 ]] || fail "full report exited $rc (advisory report must exit 0)"
|
|
43
|
+
grep -q '^=== Drift KPIs' <<<"$out" || fail "missing report header"
|
|
44
|
+
grep -q '^--- Lead' <<<"$out" || fail "missing Lead section header"
|
|
45
|
+
grep -q '^--- Lag' <<<"$out" || fail "missing Lag section header"
|
|
46
|
+
grep -q 'Read trend across sessions' <<<"$out" || fail "missing footer"
|
|
47
|
+
|
|
48
|
+
total_rows="$(awk '/^--- Lead/{f=1} /^Read trend/{f=0} f && /^ [^ ]/{c++} END{print c+0}' <<<"$out")"
|
|
49
|
+
[[ "$total_rows" -eq "$registered" ]] || fail "expected one row per registered KPI ($registered), got $total_rows"
|
|
50
|
+
|
|
51
|
+
grep -q 'kpi-does-not-exist.*n/a' <<<"$out" || fail "missing plugin did not yield a visible n/a row"
|
|
52
|
+
|
|
53
|
+
awk '/^--- Lag/{f=1;next} /^Read trend/{f=0} f' <<<"$out" | grep -q 'knowledge friction.*n/a' \
|
|
54
|
+
|| fail "kpi-knowledge-friction did not render an n/a row under the Lag section (log absent in the throwaway consumer)"
|
|
55
|
+
|
|
56
|
+
set +e
|
|
57
|
+
trend="$(report --trend)"; trc=$?
|
|
58
|
+
set -e
|
|
59
|
+
[[ "$trc" -eq 0 ]] || fail "--trend exited $trc"
|
|
60
|
+
trend_lines="$(printf '%s' "$trend" | grep -c '')"
|
|
61
|
+
[[ "$trend_lines" -eq 1 ]] || fail "--trend must emit exactly one line, got $trend_lines"
|
|
62
|
+
|
|
63
|
+
# spec: drift-kit/SPEC.md §The published-evidence extractor — a hermetic fake-history
|
|
64
|
+
# repo with one closed, range-bounded iteration must emit exactly that iteration's row.
|
|
65
|
+
git -C "$trepo" init -q
|
|
66
|
+
mkdir -p "$trepo/.workflow"
|
|
67
|
+
tcommit() {
|
|
68
|
+
git -C "$trepo" add -A
|
|
69
|
+
git -C "$trepo" -c user.email=smoke@example.invalid -c user.name=smoke commit -q -m "$1"
|
|
70
|
+
}
|
|
71
|
+
printf 'alpha scope s1 2025-01-01\n' > "$trepo/.workflow/WORKFLOW-STATE.txt"; tcommit "feat: alpha scope"
|
|
72
|
+
printf 'alpha build s2 2025-01-01\n' >> "$trepo/.workflow/WORKFLOW-STATE.txt"; tcommit "feat: alpha build"
|
|
73
|
+
printf 'alpha close s3 2025-01-02\n' >> "$trepo/.workflow/WORKFLOW-STATE.txt"; tcommit "fix: alpha close"
|
|
74
|
+
printf 'beta scope s4 2025-01-03\n' > "$trepo/.workflow/WORKFLOW-STATE.txt"; tcommit "feat: beta scope"
|
|
75
|
+
|
|
76
|
+
set +e
|
|
77
|
+
traj="$( cd "$trepo" && bash "$SMOKE_KIT_ROOT/bin/trajectory.sh" --emit )"; jrc=$?
|
|
78
|
+
set -e
|
|
79
|
+
[[ "$jrc" -eq 0 ]] || fail "trajectory --emit exited $jrc (advisory tool must exit 0)"
|
|
80
|
+
grep -q '^| iteration |' <<<"$traj" || fail "trajectory missing table header"
|
|
81
|
+
[[ "$(grep -c '^| alpha ' <<<"$traj")" -ge 1 ]] || fail "trajectory emitted no closed-iteration row (expected alpha)"
|
|
82
|
+
if grep -q '^| beta ' <<<"$traj"; then fail "trajectory emitted the in-flight (unclosed) beta row"; fi
|
|
83
|
+
|
|
84
|
+
# spec: drift-kit/SPEC.md §Testing — the synthetic-transcript classifier smoke:
|
|
85
|
+
# known category bytes in (smoke/overhead-fixture.jsonl), known percentages out.
|
|
86
|
+
fixture="$SMOKE_KIT_ROOT/smoke/overhead-fixture.jsonl"
|
|
87
|
+
ovlog="$work/ovh-log.txt"
|
|
88
|
+
meter() { DRIFT_KIT_TMP_DIR="$work" DRIFT_KIT_OVERHEAD_LOG="$ovlog" bash "$SMOKE_KIT_ROOT/bin/overhead-meter.sh" "$fixture"; }
|
|
89
|
+
|
|
90
|
+
set +e
|
|
91
|
+
mout="$(meter)"; mrc=$?
|
|
92
|
+
set -e
|
|
93
|
+
[[ "$mrc" -eq 0 ]] || fail "overhead-meter exited $mrc (advisory tool must exit 0)"
|
|
94
|
+
grep -q 'byte-proxy' <<<"$mout" || fail "meter stdout missing the byte-proxy caveat"
|
|
95
|
+
[[ -s "$ovlog" ]] || fail "meter wrote no log line"
|
|
96
|
+
[[ "$(grep -c '' "$ovlog")" -eq 1 ]] || fail "meter log has more than one line for one session"
|
|
97
|
+
|
|
98
|
+
logln="$(cat "$ovlog")"
|
|
99
|
+
grep -qE '^[0-9-]+ [0-9A-Za-z]+ total=[0-9]+ gov=[0-9]+ gate=[0-9]+ pct=[0-9]+$' <<<"$logln" \
|
|
100
|
+
|| fail "log line does not match the documented grammar: $logln"
|
|
101
|
+
|
|
102
|
+
tot=$(LC_ALL=C awk '{t+=length($0)} END{print t+0}' "$fixture")
|
|
103
|
+
taskb=$(LC_ALL=C awk '/ordinary task work/{t+=length($0)} END{print t+0}' "$fixture")
|
|
104
|
+
gtotal=$(sed -E 's/.* total=([0-9]+) .*/\1/' <<<"$logln")
|
|
105
|
+
ggov=$(sed -E 's/.* gov=([0-9]+) .*/\1/' <<<"$logln")
|
|
106
|
+
ggate=$(sed -E 's/.* gate=([0-9]+) .*/\1/' <<<"$logln")
|
|
107
|
+
gpct=$(sed -E 's/.* pct=([0-9]+)$/\1/' <<<"$logln")
|
|
108
|
+
[[ "$gtotal" -eq "$tot" ]] || fail "meter total ($gtotal) != fixture bytes ($tot)"
|
|
109
|
+
[[ "$ggov" -eq $(( tot - taskb )) ]] || fail "gov ($ggov) != total-taskline ($(( tot - taskb ))): task line miscounted"
|
|
110
|
+
(( ggate > 0 && ggate < ggov )) || fail "gate ($ggate) is not a positive proper subset of gov ($ggov)"
|
|
111
|
+
[[ "$gpct" -eq $(( (ggov * 100 + gtotal / 2) / gtotal )) ]] || fail "pct ($gpct) != round(100*gov/total)"
|
|
112
|
+
|
|
113
|
+
meter >/dev/null # re-measure replaces the session's line, never doubles it
|
|
114
|
+
[[ "$(grep -c '' "$ovlog")" -eq 1 ]] || fail "re-measure double-counted the session (dedup broken)"
|
|
115
|
+
|
|
116
|
+
set +e
|
|
117
|
+
kout="$(DRIFT_KIT_OVERHEAD_LOG="$ovlog" bash "$SMOKE_KIT_ROOT/kpis/kpi-overhead.sh")"; krc=$?
|
|
118
|
+
set -e
|
|
119
|
+
[[ "$krc" -eq 0 ]] || fail "kpi-overhead exited $krc"
|
|
120
|
+
[[ "$(grep -c '^lead' <<<"$kout")" -eq 2 ]] || fail "kpi-overhead did not emit its two lead rows over a live log"
|
|
121
|
+
grep -q 'byte-proxy' <<<"$kout" || fail "kpi-overhead rows missing the byte-proxy caveat"
|
|
122
|
+
ktrend="$(DRIFT_KIT_OVERHEAD_LOG="$ovlog" bash "$SMOKE_KIT_ROOT/kpis/kpi-overhead.sh" --trend)"
|
|
123
|
+
grep -qE '^ovh [0-9]+%$' <<<"$ktrend" || fail "kpi-overhead --trend not 'ovh <n>%': $ktrend"
|
|
124
|
+
|
|
125
|
+
set +e
|
|
126
|
+
kna="$(DRIFT_KIT_OVERHEAD_LOG="$work/no-such-overhead.txt" bash "$SMOKE_KIT_ROOT/kpis/kpi-overhead.sh")"; knrc=$?
|
|
127
|
+
set -e
|
|
128
|
+
[[ "$knrc" -eq 0 ]] || fail "kpi-overhead (log absent) exited $knrc"
|
|
129
|
+
grep -q 'n/a' <<<"$kna" || fail "kpi-overhead did not degrade to a visible n/a row without a log"
|
|
130
|
+
|
|
131
|
+
# spec: drift-kit/SPEC.md §Testing — the writer/reader-divergence assertion: under one
|
|
132
|
+
# DRIFT_KIT_METRIC_DIR override (no explicit OVERHEAD_LOG), writer and reader must
|
|
133
|
+
# compute the same default log path, or a default drift splits them silently.
|
|
134
|
+
mdir="$work/metric"
|
|
135
|
+
DRIFT_KIT_METRIC_DIR="$mdir" bash "$SMOKE_KIT_ROOT/bin/overhead-meter.sh" "$fixture" >/dev/null \
|
|
136
|
+
|| fail "overhead-meter failed under a DRIFT_KIT_METRIC_DIR-only override"
|
|
137
|
+
[[ -s "$mdir/overhead-log.txt" ]] || fail "writer did not resolve DRIFT_KIT_METRIC_DIR into its default log path"
|
|
138
|
+
set +e
|
|
139
|
+
kmd="$(DRIFT_KIT_METRIC_DIR="$mdir" bash "$SMOKE_KIT_ROOT/kpis/kpi-overhead.sh")"; kmrc=$?
|
|
140
|
+
set -e
|
|
141
|
+
[[ "$kmrc" -eq 0 ]] || fail "kpi-overhead exited $kmrc under the shared DRIFT_KIT_METRIC_DIR override"
|
|
142
|
+
if grep -q 'n/a' <<<"$kmd"; then fail "writer/reader default divergence: reader missed the log the writer wrote under one DRIFT_KIT_METRIC_DIR override"; fi
|
|
143
|
+
[[ "$(grep -c '^lead' <<<"$kmd")" -eq 2 ]] || fail "kpi-overhead did not read the metric-dir log the meter wrote"
|
|
144
|
+
|
|
145
|
+
# spec: drift-kit/SPEC.md §Testing — kpi-price-table-age over purpose-built tables: the
|
|
146
|
+
# dated-header reads, each row's independent degradation, and the inversion the KPI
|
|
147
|
+
# exists for (fresh age, expired prices, in one report).
|
|
148
|
+
ptkpi() { DRIFT_KIT_PRICE_TABLE="$1" bash "$SMOKE_KIT_ROOT/kpis/kpi-price-table-age.sh" "${2:-}"; }
|
|
149
|
+
|
|
150
|
+
pt_both="$work/pt-both.tsv"
|
|
151
|
+
cat > "$pt_both" <<EOF
|
|
152
|
+
# priced-as-of: $(date -d '3 days ago' +%F) — trailing prose the reader must ignore
|
|
153
|
+
# prices-valid-through: $(date -d '10 days' +%F)
|
|
154
|
+
# model input output cache_read cache_creation
|
|
155
|
+
test-model 0.000001 0.000002 0.0000001 0.000002
|
|
156
|
+
EOF
|
|
157
|
+
set +e
|
|
158
|
+
ptout="$(ptkpi "$pt_both")"; ptrc=$?
|
|
159
|
+
set -e
|
|
160
|
+
[[ "$ptrc" -eq 0 ]] || fail "kpi-price-table-age exited $ptrc (advisory plugins always exit 0)"
|
|
161
|
+
[[ "$(grep -c '^lead' <<<"$ptout")" -eq 2 ]] || fail "kpi-price-table-age did not emit its two lead rows over a fully dated table"
|
|
162
|
+
grep -q 'priced 3d ago (as-of' <<<"$ptout" || fail "age row did not read the priced-as-of: header: $ptout"
|
|
163
|
+
grep -q 'expires in 10d (through' <<<"$ptout" || fail "expiry row did not read the prices-valid-through: header: $ptout"
|
|
164
|
+
pttrend="$(ptkpi "$pt_both" --trend)"
|
|
165
|
+
[[ "$pttrend" == 'price 3d' ]] || fail "kpi-price-table-age --trend not 'price 3d': $pttrend"
|
|
166
|
+
|
|
167
|
+
pt_inv="$work/pt-inverted.tsv"
|
|
168
|
+
cat > "$pt_inv" <<EOF
|
|
169
|
+
# priced-as-of: $(date +%F)
|
|
170
|
+
# prices-valid-through: $(date -d 'yesterday' +%F)
|
|
171
|
+
# model input output cache_read cache_creation
|
|
172
|
+
test-model 0.000001 0.000002 0.0000001 0.000002
|
|
173
|
+
EOF
|
|
174
|
+
ptinv="$(ptkpi "$pt_inv")"
|
|
175
|
+
grep -q 'priced 0d ago' <<<"$ptinv" || fail "inversion fixture: age row should read fresh (0d), got: $ptinv"
|
|
176
|
+
grep -q 'EXPIRED 1d ago — re-verify (through' <<<"$ptinv" \
|
|
177
|
+
|| fail "inversion fixture: a lapsed prices-valid-through: must read EXPIRED even beside a fresh age row: $ptinv"
|
|
178
|
+
[[ "$(ptkpi "$pt_inv" --trend)" == 'price 0d' ]] \
|
|
179
|
+
|| fail "inversion fixture: the trend fragment tracks age only, and must still emit"
|
|
180
|
+
|
|
181
|
+
pt_noexp="$work/pt-noexpiry.tsv"
|
|
182
|
+
printf '# priced-as-of: %s\ntest-model\t0.000001\t0.000002\t0.0000001\t0.000002\n' "$(date -d '1 day ago' +%F)" > "$pt_noexp"
|
|
183
|
+
ptne="$(ptkpi "$pt_noexp")"
|
|
184
|
+
grep -q 'priced 1d ago' <<<"$ptne" || fail "age row must still report when the optional expiry header is absent: $ptne"
|
|
185
|
+
grep -q 'n/a (no prices-valid-through: header)' <<<"$ptne" \
|
|
186
|
+
|| fail "absent optional expiry header must degrade its own row visibly, not the age row: $ptne"
|
|
187
|
+
|
|
188
|
+
pt_noage="$work/pt-noage.tsv"
|
|
189
|
+
printf '# prices-valid-through: %s\ntest-model\t0.000001\t0.000002\t0.0000001\t0.000002\n' "$(date -d '5 days' +%F)" > "$pt_noage"
|
|
190
|
+
ptna="$(ptkpi "$pt_noage")"
|
|
191
|
+
grep -q 'n/a (no priced-as-of: header)' <<<"$ptna" || fail "absent priced-as-of: must degrade the age row visibly: $ptna"
|
|
192
|
+
grep -q 'expires in 5d' <<<"$ptna" || fail "the expiry row degrades independently of the age row: $ptna"
|
|
193
|
+
[[ -z "$(ptkpi "$pt_noage" --trend)" ]] || fail "--trend must emit nothing when the age value is n/a"
|
|
194
|
+
|
|
195
|
+
pt_bad="$work/pt-bad.tsv"
|
|
196
|
+
printf '# priced-as-of: not-a-date\n# prices-valid-through: 2026-13-45\ntest-model\t0.000001\t0.000002\t0.0000001\t0.000002\n' > "$pt_bad"
|
|
197
|
+
ptbad="$(ptkpi "$pt_bad")"
|
|
198
|
+
grep -q 'n/a (unparseable priced-as-of date)' <<<"$ptbad" || fail "malformed priced-as-of must read as unparseable, not as absent: $ptbad"
|
|
199
|
+
grep -q 'n/a (unparseable prices-valid-through date)' <<<"$ptbad" || fail "malformed prices-valid-through must read as unparseable, not as absent: $ptbad"
|
|
200
|
+
|
|
201
|
+
ptmiss="$(ptkpi "$work/no-such-price-table.tsv")"
|
|
202
|
+
[[ "$(grep -c '^lead' <<<"$ptmiss")" -eq 1 ]] || fail "with no table the KPI emits one row, not an expiry row for a table that is not there: $ptmiss"
|
|
203
|
+
grep -q 'n/a (no price table)' <<<"$ptmiss" || fail "absent price table must degrade fail-visibly: $ptmiss"
|
|
204
|
+
|
|
205
|
+
# spec: drift-kit/SPEC.md §Testing — the stage-economics join over a synthetic fixture set:
|
|
206
|
+
# a WORKFLOW-STATE stamp file, a transcript whose basename normalizes to the stamped
|
|
207
|
+
# session8, and a placeholder price table. Known tokens in, known trend line out.
|
|
208
|
+
sedir="$work/sessions"; mkdir -p "$sedir"
|
|
209
|
+
cat > "$sedir/agent-sess1234deadbeef.jsonl" <<'EOF'
|
|
210
|
+
{"type":"assistant","message":{"id":"m1","model":"test-model","usage":{"input_tokens":10,"output_tokens":5,"cache_read_input_tokens":100,"cache_creation_input_tokens":20}}}
|
|
211
|
+
{"type":"assistant","message":{"id":"m1","model":"test-model","usage":{"input_tokens":10,"output_tokens":8,"cache_read_input_tokens":100,"cache_creation_input_tokens":20}}}
|
|
212
|
+
{"type":"assistant","message":{"id":"m2","model":"test-model","usage":{"input_tokens":4,"output_tokens":3,"cache_read_input_tokens":50,"cache_creation_input_tokens":10}}}
|
|
213
|
+
EOF
|
|
214
|
+
printf 'smoke build sess1234 2025-01-01\n' > "$work/se-state.txt"
|
|
215
|
+
printf 'model\tinput\toutput\tcache_read\tcache_creation\ntest-model\t1\t2\t3\t4\n' > "$work/se-prices.tsv"
|
|
216
|
+
selog="$work/se-log.txt"
|
|
217
|
+
|
|
218
|
+
econ() { # $1 = price-table path (a missing path exercises the degradation)
|
|
219
|
+
DRIFT_KIT_STATE_FILE="$work/se-state.txt" \
|
|
220
|
+
DRIFT_KIT_SESSIONS_DIR="$sedir" \
|
|
221
|
+
DRIFT_KIT_PRICE_TABLE="$1" \
|
|
222
|
+
DRIFT_KIT_STAGE_ECONOMICS_LOG="$selog" \
|
|
223
|
+
bash "$SMOKE_KIT_ROOT/bin/stage-economics.sh"
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
set +e
|
|
227
|
+
eout="$(econ "$work/se-prices.tsv" 2>&1)"; erc=$?
|
|
228
|
+
set -e
|
|
229
|
+
[[ "$erc" -eq 0 ]] || fail "stage-economics exited $erc (advisory tool must exit 0)"
|
|
230
|
+
|
|
231
|
+
if command -v jq >/dev/null 2>&1; then
|
|
232
|
+
[[ -s "$selog" ]] || fail "stage-economics wrote no trend line"
|
|
233
|
+
[[ "$(grep -c '' "$selog")" -eq 1 ]] || fail "stage-economics log has more than one line for one (iteration,stage,model) triple"
|
|
234
|
+
seln="$(cat "$selog")"
|
|
235
|
+
grep -qE '^[0-9-]+ smoke build test-model in=14 out=11 cr=150 cw=30 cost=606\.[0-9]+$' <<<"$seln" \
|
|
236
|
+
|| fail "trend line does not match the documented grammar/values: $seln"
|
|
237
|
+
|
|
238
|
+
econ "$work/se-prices.tsv" >/dev/null # re-measure replaces the triple's line, never doubles it
|
|
239
|
+
[[ "$(grep -c '' "$selog")" -eq 1 ]] || fail "re-measure double-counted the triple (dedup broken)"
|
|
240
|
+
|
|
241
|
+
: > "$selog"
|
|
242
|
+
set +e
|
|
243
|
+
dout="$(econ "$work/no-such-price-table.tsv")"; drc=$?
|
|
244
|
+
set -e
|
|
245
|
+
[[ "$drc" -eq 0 ]] || fail "stage-economics (price table absent) exited $drc"
|
|
246
|
+
grep -q 'cost=n/a' "$selog" || fail "absent price table did not degrade the cost cell to n/a"
|
|
247
|
+
grep -q 'incomplete' <<<"$dout" || fail "degraded run did not carry the incomplete-pricing caveat"
|
|
248
|
+
else
|
|
249
|
+
grep -q 'jq not found' <<<"$eout" || fail "stage-economics without jq must emit its degradation notice"
|
|
250
|
+
fi
|
|
251
|
+
|
|
252
|
+
# spec: drift-kit/SPEC.md §Testing — history ∪ live over the trajectory extractor's
|
|
253
|
+
# fake-history repo, whose live state file already carries only beta's stamp.
|
|
254
|
+
if command -v jq >/dev/null 2>&1; then
|
|
255
|
+
hdir="$work/hist-sessions"; mkdir -p "$hdir"
|
|
256
|
+
for sid in s2 s4; do
|
|
257
|
+
cat > "$hdir/$sid.jsonl" <<'EOF'
|
|
258
|
+
{"type":"assistant","message":{"id":"m1","model":"test-model","usage":{"input_tokens":1,"output_tokens":1,"cache_read_input_tokens":1,"cache_creation_input_tokens":1}}}
|
|
259
|
+
EOF
|
|
260
|
+
done
|
|
261
|
+
hlog="$work/hist-log.txt"
|
|
262
|
+
set +e
|
|
263
|
+
hout="$( cd "$trepo" && DRIFT_KIT_STATE_FILE=".workflow/WORKFLOW-STATE.txt" \
|
|
264
|
+
DRIFT_KIT_SESSIONS_DIR="$hdir" \
|
|
265
|
+
DRIFT_KIT_PRICE_TABLE="$work/se-prices.tsv" \
|
|
266
|
+
DRIFT_KIT_STAGE_ECONOMICS_LOG="$hlog" \
|
|
267
|
+
bash "$SMOKE_KIT_ROOT/bin/stage-economics.sh" 2>&1 )"; hrc=$?
|
|
268
|
+
set -e
|
|
269
|
+
[[ "$hrc" -eq 0 ]] || fail "stage-economics over fake history exited $hrc (advisory tool must exit 0)"
|
|
270
|
+
grep -q '^alpha build s2 ' "$trepo/.workflow/WORKFLOW-STATE.txt" \
|
|
271
|
+
&& fail "fake-history premise broken: alpha's stamp is still in the live state file"
|
|
272
|
+
grep -q ' alpha build test-model ' "$hlog" \
|
|
273
|
+
|| fail "a stamp surviving only in committed history did not price (truncation immunity lost)"
|
|
274
|
+
grep -q ' beta scope test-model ' "$hlog" \
|
|
275
|
+
|| fail "the live file's stamp did not price (the union dropped its live arm)"
|
|
276
|
+
fi
|
|
277
|
+
|
|
278
|
+
# spec: drift-kit/SPEC.md §The stage-economics meter — the attribution invariant over its own fixture
|
|
279
|
+
# set: one session bearing two stamps bills once (its last), and a transcript matching no stamp is
|
|
280
|
+
# counted as the under-count bound. Its own sessions dir, state file, and log — the flat fixture set's
|
|
281
|
+
# log is asserted to hold exactly one line, so a second row there would red that assertion, not this one.
|
|
282
|
+
if command -v jq >/dev/null 2>&1; then
|
|
283
|
+
dbldir="$work/dbl-sessions"; mkdir -p "$dbldir"
|
|
284
|
+
cp "$sedir/agent-sess1234deadbeef.jsonl" "$dbldir/agent-sess1234deadbeef.jsonl"
|
|
285
|
+
cp "$sedir/agent-sess1234deadbeef.jsonl" "$dbldir/orphan9876.jsonl"
|
|
286
|
+
printf 'smoke scope sess1234 2025-01-01\nsmoke build sess1234 2025-01-01\n' > "$work/dbl-state.txt"
|
|
287
|
+
dbllog="$work/dbl-log.txt"
|
|
288
|
+
set +e
|
|
289
|
+
dblout="$( DRIFT_KIT_STATE_FILE="$work/dbl-state.txt" \
|
|
290
|
+
DRIFT_KIT_SESSIONS_DIR="$dbldir" \
|
|
291
|
+
DRIFT_KIT_PRICE_TABLE="$work/se-prices.tsv" \
|
|
292
|
+
DRIFT_KIT_STAGE_ECONOMICS_LOG="$dbllog" \
|
|
293
|
+
bash "$SMOKE_KIT_ROOT/bin/stage-economics.sh" 2>&1 )"; dblrc=$?
|
|
294
|
+
set -e
|
|
295
|
+
[[ "$dblrc" -eq 0 ]] || fail "stage-economics over the two-stamp fixture exited $dblrc"
|
|
296
|
+
[[ "$(grep -c '' "$dbllog")" -eq 1 ]] \
|
|
297
|
+
|| fail "one session with two stamps billed more than one row (the over-count defect is back)"
|
|
298
|
+
grep -q ' smoke build test-model ' "$dbllog" \
|
|
299
|
+
|| fail "the two-stamp session was not attributed to its last stamp"
|
|
300
|
+
grep -q 'yielded (no row): smoke scope' <<<"$dblout" \
|
|
301
|
+
|| fail "the collapsed stamp was not named in the caveat (a silent collapse is not an honest one)"
|
|
302
|
+
grep -q '1 transcript(s) in the sessions dir match no stamp' <<<"$dblout" \
|
|
303
|
+
|| fail "the unstamped-transcript bound did not report the orphan transcript"
|
|
304
|
+
|
|
305
|
+
# spec: drift-kit/SPEC.md §The stage-economics meter — the supervision row, derived from the nested transcript
|
|
306
|
+
# tier: a dispatched stage session sits under <lead>/subagents/ while its lead sits flat beside it,
|
|
307
|
+
# so the lead is named by the path and needs no stamp. Its own dir/state/log, same reason as above.
|
|
308
|
+
supdir="$work/sup-sessions"; mkdir -p "$supdir/lead0001dead/subagents"
|
|
309
|
+
cp "$sedir/agent-sess1234deadbeef.jsonl" "$supdir/lead0001dead/subagents/agent-supa1234feed.jsonl"
|
|
310
|
+
cat > "$supdir/lead0001dead.jsonl" <<'EOF'
|
|
311
|
+
{"type":"assistant","message":{"id":"L1","model":"test-model","usage":{"input_tokens":2,"output_tokens":3,"cache_read_input_tokens":4,"cache_creation_input_tokens":5}}}
|
|
312
|
+
EOF
|
|
313
|
+
printf 'supiter build supa1234 2025-01-01\n' > "$work/sup-state.txt"
|
|
314
|
+
suplog="$work/sup-log.txt"
|
|
315
|
+
sup() { # $1 = supervision label
|
|
316
|
+
DRIFT_KIT_STATE_FILE="$work/sup-state.txt" \
|
|
317
|
+
DRIFT_KIT_SESSIONS_DIR="$supdir" \
|
|
318
|
+
DRIFT_KIT_PRICE_TABLE="$work/se-prices.tsv" \
|
|
319
|
+
DRIFT_KIT_STAGE_ECONOMICS_LOG="$suplog" \
|
|
320
|
+
DRIFT_KIT_SUPERVISION_LABEL="$1" \
|
|
321
|
+
bash "$SMOKE_KIT_ROOT/bin/stage-economics.sh" 2>&1
|
|
322
|
+
}
|
|
323
|
+
set +e
|
|
324
|
+
supout="$(sup supervision)"; suprc=$?
|
|
325
|
+
set -e
|
|
326
|
+
[[ "$suprc" -eq 0 ]] || fail "stage-economics over the nested-tier fixture exited $suprc"
|
|
327
|
+
[[ "$(grep -c ' supiter supervision test-model ' "$suplog")" -eq 1 ]] \
|
|
328
|
+
|| fail "the nested-tier fixture did not yield exactly one supervision row: $supout"
|
|
329
|
+
grep -qE ' supiter supervision test-model in=2 out=3 cr=4 cw=5 cost=40\.[0-9]+$' "$suplog" \
|
|
330
|
+
|| fail "the supervision row does not carry the lead transcript's own usage"
|
|
331
|
+
grep -q ' supiter build test-model ' "$suplog" \
|
|
332
|
+
|| fail "the dispatched stage session lost its own row to the supervision derivation"
|
|
333
|
+
|
|
334
|
+
: > "$suplog"
|
|
335
|
+
sup lead-burn >/dev/null
|
|
336
|
+
grep -q ' supiter lead-burn test-model ' "$suplog" \
|
|
337
|
+
|| fail "DRIFT_KIT_SUPERVISION_LABEL did not name the row (the label is not a literal)"
|
|
338
|
+
|
|
339
|
+
: > "$suplog"
|
|
340
|
+
printf 'supiter build supa1234 2025-01-01\nsupiter supervision nolead12 2025-01-01\n' > "$work/sup-state.txt"
|
|
341
|
+
set +e
|
|
342
|
+
colout="$(sup supervision)"
|
|
343
|
+
set -e
|
|
344
|
+
grep -q 'colliding with DRIFT_KIT_SUPERVISION_LABEL' <<<"$colout" \
|
|
345
|
+
|| fail "a stamp naming the label did not raise the collision notice"
|
|
346
|
+
[[ "$(grep -c ' supiter supervision ' "$suplog")" -eq 0 ]] \
|
|
347
|
+
|| fail "the collision did not suppress the supervision row"
|
|
348
|
+
fi
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{"role":"assistant","text":"PASS: check-graph clean (58 gates; manifests well-formed)"}
|
|
2
|
+
{"role":"user","text":"<system-reminder>SessionStart hook payload with the session context block</system-reminder>"}
|
|
3
|
+
{"role":"assistant","text":"reading drift-kit/SPEC.md and CLAUDE.md governed docs before the edit"}
|
|
4
|
+
{"role":"assistant","text":"ordinary task work implementing a feature body with no governance markers at all"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
**Knowledge-friction triage** — the recurring close-stage step that turns each
|
|
2
|
+
captured re-derivation into a doc-owner fix, so the next session reads the fact
|
|
3
|
+
instead of re-deriving it. Splice this into your close skill beside the
|
|
4
|
+
tooling-friction triage (guard-kit's close-triage pattern).
|
|
5
|
+
|
|
6
|
+
1. **Walk the log.** Read `.workflow/knowledge-friction.log` — each line is
|
|
7
|
+
`<date> <fact re-derived> ← <surface it was read from>`, one session's
|
|
8
|
+
moment of re-derivation.
|
|
9
|
+
2. **Remediate each entry as a doc-owner edit** — never a standing session-start
|
|
10
|
+
instruction (that converts one re-derivation into a permanent per-session
|
|
11
|
+
tax, exactly what context-kit's brevity machinery rejects). Two shapes:
|
|
12
|
+
- **Give the fact a home** under your tier contract (canon-kit's star
|
|
13
|
+
topology: one owner per fact) — the SPEC, README, or manifest that already
|
|
14
|
+
owns that surface gains the sentence.
|
|
15
|
+
- **Point from where the session looked to where the owner is** when the fact
|
|
16
|
+
is already owned but was read off the wrong surface (an implementation, a
|
|
17
|
+
gate's source, a commit message, or a prior/sibling deliverable consulted
|
|
18
|
+
to shape a new one).
|
|
19
|
+
3. **Clear the log** — its named reclaim path:
|
|
20
|
+
`: > .workflow/knowledge-friction.log`.
|
|
21
|
+
|
|
22
|
+
Goal: the tier contract's holes fill over iterations, and `kpi-knowledge-friction`
|
|
23
|
+
(drift-kit/SPEC.md §Bundled KPIs) trends toward zero as they do — detection is
|
|
24
|
+
the loop, elimination is the tiering edit.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
CONSUMER BINDING — create `.claude/commands/economics.md` as a binding shim
|
|
2
|
+
naming this template (a header `Execute the template at <path>, applying the
|
|
3
|
+
bindings below.` then a `## Bindings` section) and bind its one slot — the model
|
|
4
|
+
posture the report weighs. `/economics` is a post-iteration reporting ritual,
|
|
5
|
+
not a lifecycle stage: it moves no cursor and stamps nothing (drift-kit/SPEC.md
|
|
6
|
+
§The `/economics` skill), so it is outside the stage roster and never a gate.
|
|
7
|
+
|
|
8
|
+
Run it at close (the close skill may invoke it) or ad hoc. It answers, for the
|
|
9
|
+
iteration just run: what did it cost, where did the cost land, and was the model
|
|
10
|
+
posture worth it. Chain the two reporting tools in order, then read their
|
|
11
|
+
output into one narrative — do not paste the raw tool dumps:
|
|
12
|
+
|
|
13
|
+
1. **Governance overhead** — `bash drift-kit/bin/overhead-meter.sh` on the
|
|
14
|
+
closing session (drift-kit/SPEC.md §The overhead meter): the governance-versus-task
|
|
15
|
+
byte proxy for this session.
|
|
16
|
+
2. **Stage economics** — `bash drift-kit/bin/stage-economics.sh` (drift-kit/SPEC.md
|
|
17
|
+
§The stage-economics meter): real spend by stage × model × iteration, priced
|
|
18
|
+
through the consumer price table. `cr` (cache-read) is the headline burn field —
|
|
19
|
+
accumulated-context cache-read, not model choice, is the dominant draw, so lead
|
|
20
|
+
the cost story with it. A missing price table degrades cost to `n/a` and the
|
|
21
|
+
tokens still report.
|
|
22
|
+
|
|
23
|
+
Compose the narrative from those two surfaces:
|
|
24
|
+
|
|
25
|
+
- **Cost by stage.** From the stage-economics rows, name the priciest stages and
|
|
26
|
+
their token shape; call out `cr` explicitly as the lever, since it dominates.
|
|
27
|
+
- **Supervision.** Under a split-lead posture the lead's dispatch, verification,
|
|
28
|
+
and battery burn carries no stage stamp, so it lands in its own row rather than
|
|
29
|
+
inside any stage's total (drift-kit/SPEC.md §The stage-economics meter, the reserved
|
|
30
|
+
`supervision` value). Report it as a named line item beside the per-stage
|
|
31
|
+
bullets — never folded into them — and say plainly that per-stage figures
|
|
32
|
+
exclude it. If the run's caveat named an apportionment key (one lead spanning
|
|
33
|
+
several iterations), repeat the key so the reader can discount the row.
|
|
34
|
+
- **Overhead share.** From the overhead meter, state what fraction of the
|
|
35
|
+
closing session was governance versus task work — the methodology's own cost.
|
|
36
|
+
- **Posture verdict.** Weigh *<posture: the model posture this iteration ran —
|
|
37
|
+
which model class rode which stages, and where the consumer's ruling records it
|
|
38
|
+
— so the report can judge whether that posture earned its per-stage cost against
|
|
39
|
+
the stage-economics rows.>* against the priced rows: did the stages that rode
|
|
40
|
+
the expensive class earn it, or would a cheaper class have served? State the
|
|
41
|
+
finding; the numbers, not a prior, settle it.
|
|
42
|
+
|
|
43
|
+
Every emitting surface is advisory (exit 0, no gate): a missing input is a
|
|
44
|
+
notice, never a failure. The tools write only under the gitignored metric dir and
|
|
45
|
+
emit no account identifiers, so the report carries none either.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: drift-kit/SPEC.md §Out of scope — kpi-deprecated-surface (example template): live deprecation-marker count over the canon-kit roster, trending the between-major backlog
|
|
3
|
+
set -uo pipefail
|
|
4
|
+
|
|
5
|
+
CFG="${CANON_KIT_CONFIG_FILE:-${GATE_SDK_GATES_DIR:-scripts}/canon-config.sh}"
|
|
6
|
+
# shellcheck source=/dev/null # consumer config, path is config
|
|
7
|
+
[[ -f "$CFG" ]] && source "$CFG"
|
|
8
|
+
|
|
9
|
+
if ! declare -p CANON_KIT_DEPRECATION_MARKERS &>/dev/null || [[ ${#CANON_KIT_DEPRECATION_MARKERS[@]} -eq 0 ]]; then
|
|
10
|
+
[[ "${1:-}" == "--trend" ]] || printf 'lead\tdeprecated surface\tn/a (no CANON_KIT_DEPRECATION_MARKERS roster)\n'
|
|
11
|
+
exit 0
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
marker_re="$(printf '%s|' "${CANON_KIT_DEPRECATION_MARKERS[@]}")"; marker_re="${marker_re%|}"
|
|
15
|
+
|
|
16
|
+
files=()
|
|
17
|
+
shopt -s nullglob globstar
|
|
18
|
+
for g in "${CANON_KIT_COMMENT_SURFACE[@]:-**/*.sh}"; do
|
|
19
|
+
# shellcheck disable=SC2086 # $g is a surface glob, expansion intended
|
|
20
|
+
for f in $g; do [[ -f "$f" ]] && files+=("$f"); done
|
|
21
|
+
done
|
|
22
|
+
shopt -u nullglob globstar
|
|
23
|
+
|
|
24
|
+
count=0
|
|
25
|
+
[[ ${#files[@]} -gt 0 ]] && count="$(grep -hE -- "$marker_re" "${files[@]}" 2>/dev/null | awk 'END { print NR }')"
|
|
26
|
+
|
|
27
|
+
if [[ "${1:-}" == "--trend" ]]; then
|
|
28
|
+
[[ "$count" -gt 0 ]] && printf 'deprecated-surface %d\n' "$count"
|
|
29
|
+
exit 0
|
|
30
|
+
fi
|
|
31
|
+
printf 'lead\tdeprecated surface\t%d live marker(s) — decommission or re-justify at the next major\n' "$count"
|
|
32
|
+
exit 0
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# drift-kit KPI registry — one plugin name per line, # comments (the gates.list
|
|
2
|
+
# grammar). Names resolve against DRIFT_KIT_KPI_DIRS first (default: your gates
|
|
3
|
+
# dir), then each vendored kit's kpis/. Drop a same-named file in your gates dir
|
|
4
|
+
# to shadow a bundled KPI; delete a line to opt out. Copy this file to your
|
|
5
|
+
# gates dir as kpis.list and prune to the surfaces you actually run.
|
|
6
|
+
|
|
7
|
+
# Lead — weighted high; act before drift compounds.
|
|
8
|
+
kpi-task-split
|
|
9
|
+
kpi-gate-backlog
|
|
10
|
+
kpi-amendment-age
|
|
11
|
+
kpi-deferred-age
|
|
12
|
+
kpi-prompt-friction
|
|
13
|
+
kpi-always-loaded
|
|
14
|
+
kpi-settings-local
|
|
15
|
+
kpi-gate-runtime
|
|
16
|
+
kpi-overhead
|
|
17
|
+
kpi-price-table-age
|
|
18
|
+
|
|
19
|
+
# Lag — weighted low; undercounts by construction. kpi-knowledge-friction reads
|
|
20
|
+
# drift-kit's knowledge-friction loop (its capture convention + close triage); it
|
|
21
|
+
# shows n/a until the log exists. A consumer with a structured lag source adds its own.
|
|
22
|
+
kpi-knowledge-friction
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# price-table.tsv — consumer config for bin/stage-economics.sh (drift-kit/SPEC.md §The stage-economics meter).
|
|
2
|
+
# Copy this beside your gates dir (default scripts/price-table.tsv, DRIFT_KIT_PRICE_TABLE) and
|
|
3
|
+
# replace the placeholder rows with YOUR model roster. The per-token prices are public facts, but
|
|
4
|
+
# the roster of models you run is yours — a kit literal enumerating it would publish it (the
|
|
5
|
+
# provenance seam / graph-vocab pattern), so this template ships the schema and placeholders only.
|
|
6
|
+
#
|
|
7
|
+
# priced-as-of: 2000-01-01 — replace with the date you last transcribed these numbers.
|
|
8
|
+
# prices-valid-through: 2000-01-01 — optional; the last date every row is still true.
|
|
9
|
+
# Drop this line if no row is time-boxed. Where one is (introductory pricing, a
|
|
10
|
+
# scheduled change), this header owns that date and the prose below cites it rather
|
|
11
|
+
# than restating it. Both headers are read by kpi-price-table-age (drift-kit/SPEC.md
|
|
12
|
+
# §Bundled KPIs): age alone cannot see a cliff, since a freshly retyped table reads
|
|
13
|
+
# freshest on the morning its prices stop being true.
|
|
14
|
+
#
|
|
15
|
+
# Tab-separated. One row per model id (the id as it appears in the transcript's message.model).
|
|
16
|
+
# Columns are USD per single token (a $/MTok price ÷ 1,000,000). A model with no row here
|
|
17
|
+
# degrades its cost cell to n/a — token counts still report; pricing is advisory, never required.
|
|
18
|
+
#
|
|
19
|
+
# model input output cache_read cache_creation
|
|
20
|
+
example-model-large 0.000015 0.000075 0.0000015 0.00001875
|
|
21
|
+
example-model-small 0.0000008 0.000004 0.00000008 0.000001
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# evidence-kit
|
|
2
|
+
|
|
3
|
+
A held-constant test baseline and a committed per-run evidence manifest for the
|
|
4
|
+
validate stage: a stage stamp proves a stage was *invoked*, evidence-kit proves
|
|
5
|
+
it produced its green result. The manifest is a versioned, hashable wire
|
|
6
|
+
contract (`# contract: evidence-manifest v1`) an external verifier can consume,
|
|
7
|
+
so the kit is adoptable with or without an iteration lifecycle.
|
|
8
|
+
|
|
9
|
+
The gates: `check-evidence-baseline` (baseline grammar, blocking-slug liveness,
|
|
10
|
+
scenario coverage) and `check-evidence-manifest` (manifest grammar and, where
|
|
11
|
+
lifecycle drives the tree, close-entry green block + validate-stamp coupling).
|
|
12
|
+
The `bin/` tools that drive it: `run-validate.sh` (the codified spine that runs
|
|
13
|
+
the suites and records evidence) and `diff-baseline.sh` (the situational runtime
|
|
14
|
+
diff). See [SPEC.md](SPEC.md) for the full contracts.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
|
|
19
|
+
|
|
20
|
+
1. Register the gates — add to your `gates.list`:
|
|
21
|
+
|
|
22
|
+
<!-- gate-roster:begin -->
|
|
23
|
+
```
|
|
24
|
+
check-evidence-baseline
|
|
25
|
+
check-evidence-manifest
|
|
26
|
+
```
|
|
27
|
+
<!-- gate-roster:end -->
|
|
28
|
+
|
|
29
|
+
Regenerate the hook + graph artifacts: `bash gate-sdk/bin/gen-pre-commit.sh --write`.
|
|
30
|
+
|
|
31
|
+
2. Seed the two surfaces — `.workflow/validate-baseline.txt`:
|
|
32
|
+
|
|
33
|
+
# contract: evidence-kit/SPEC.md §Baseline manifest — held-constant validate baseline: <suite> <scenario> <status> [<slug>]
|
|
34
|
+
|
|
35
|
+
and `.workflow/validate-evidence.txt`:
|
|
36
|
+
|
|
37
|
+
# contract: evidence-manifest v1
|
|
38
|
+
|
|
39
|
+
(override the paths with `EVIDENCE_KIT_BASELINE_FILE` /
|
|
40
|
+
`EVIDENCE_KIT_MANIFEST_FILE`).
|
|
41
|
+
|
|
42
|
+
3. Configure the suites — copy `templates/evidence-config.sh` into your gates
|
|
43
|
+
dir as `evidence-config.sh`, naming `EVIDENCE_KIT_SUITES`, an
|
|
44
|
+
`EVIDENCE_KIT_RUN_<suite>` command per suite,
|
|
45
|
+
and the `EVIDENCE_KIT_PARSER` adapter (`exit-code` for a whole-suite pass/fail,
|
|
46
|
+
`libtest` for per-test result logs, or your own log-parsing command).
|
|
47
|
+
|
|
48
|
+
4. Record evidence at validate — run `bash evidence-kit/bin/run-validate.sh`; it
|
|
49
|
+
runs each suite, diffs the baseline, and appends one evidence line per suite.
|
|
50
|
+
|
|
51
|
+
5. Optional lifecycle integration — set `LIFECYCLE_KIT_BOUNDARY_TRUNCATE` to the
|
|
52
|
+
evidence manifest so a new iteration starts from the contract header, and the
|
|
53
|
+
manifest gate's close-entry and stamp-coupling assertions arm automatically.
|
|
54
|
+
|
|
55
|
+
## Test
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
bash gate-sdk/bin/run-gate-tests.sh evidence-kit/gate-tests evidence-kit/checks
|
|
59
|
+
```
|