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,261 @@
|
|
|
1
|
+
# evidence-kit — a held-constant baseline and a committed per-run evidence manifest for validate
|
|
2
|
+
|
|
3
|
+
lifecycle-kit's stage evidence proves a stage was *invoked*; it cannot prove
|
|
4
|
+
the stage produced its green result. evidence-kit closes that gap with three
|
|
5
|
+
coupled surfaces — a held-constant test baseline, a committed per-run evidence
|
|
6
|
+
manifest, and a codified run contract — so a validate stamp is backed by a
|
|
7
|
+
recorded, hashable verdict rather than a claim.
|
|
8
|
+
|
|
9
|
+
The kit is a **new kit**, not a lifecycle-kit extension, because the evidence
|
|
10
|
+
manifest is a wire contract a future external verifier consumes: its format is
|
|
11
|
+
versioned, stable, and hashable independent of the state machine, and the kit
|
|
12
|
+
is adoptable by a consumer that runs no iteration lifecycle at all.
|
|
13
|
+
lifecycle-kit integration is optional and arrives through one generic knob on
|
|
14
|
+
its side of the seam (§lifecycle-kit integration).
|
|
15
|
+
|
|
16
|
+
## Layout and configuration
|
|
17
|
+
|
|
18
|
+
The kit is vendored beside [gate-sdk](../gate-sdk/) (required); its gates
|
|
19
|
+
register in the consumer's `gates.list` by name and resolve through gate-sdk's
|
|
20
|
+
multi-kit path. Config follows the established kit pattern: copy
|
|
21
|
+
`templates/evidence-config.sh` into the gates dir as `evidence-config.sh` (or
|
|
22
|
+
point `EVIDENCE_KIT_CONFIG_FILE` elsewhere) and override any knob; the loader
|
|
23
|
+
fills every unset knob with a default, then validates and exits 2 on a malformed
|
|
24
|
+
machine (a suite name that is not a valid variable suffix) — a broken config
|
|
25
|
+
gates nothing.
|
|
26
|
+
|
|
27
|
+
Knobs, this repo's surface names as defaults:
|
|
28
|
+
|
|
29
|
+
- `EVIDENCE_KIT_SUITES` — the ordered suite names.
|
|
30
|
+
- `EVIDENCE_KIT_RUN_<suite>` — the command that runs a suite (captured to a log
|
|
31
|
+
under `EVIDENCE_KIT_TMP_DIR`, default gate-sdk's `.tmp`).
|
|
32
|
+
- `EVIDENCE_KIT_PARSER` — a parser adapter name or a consumer command mapping a
|
|
33
|
+
captured log to `<scenario> <pass|fail|ignore>` lines; default `exit-code`.
|
|
34
|
+
- `EVIDENCE_KIT_PARSER_<suite>` — a per-suite parser override with the same
|
|
35
|
+
value grammar; default unset, an unset suite falling through to the global
|
|
36
|
+
knob. The name mirrors the `EVIDENCE_KIT_RUN_<suite>` convention. Suite
|
|
37
|
+
granularity is a floor, not a ceiling: a suite whose runner reports per-case
|
|
38
|
+
results carries a parser that says so, while its siblings keep the global
|
|
39
|
+
adapter. This repo dogfoods it on the `gates` suite —
|
|
40
|
+
`scripts/parse-gates-log.sh` maps the verbose `run-gates` log to one scenario
|
|
41
|
+
per registered gate, so an existing gate turning red diffs as a new failure
|
|
42
|
+
even while a sibling gate is legitimately held red; the whole-battery
|
|
43
|
+
`exit-code` scenario could not tell those apart.
|
|
44
|
+
- `EVIDENCE_KIT_SCENARIO_GLOBS` — optional per-suite globs; configuring one
|
|
45
|
+
arms the manifest↔disk set-equality assertion for that suite.
|
|
46
|
+
- `EVIDENCE_KIT_BASELINE_FILE` (default `.workflow/validate-baseline.txt`),
|
|
47
|
+
`EVIDENCE_KIT_MANIFEST_FILE` (default `.workflow/validate-evidence.txt`),
|
|
48
|
+
`EVIDENCE_KIT_SKIP_FILE` (default `.workflow/validate-skips.txt`).
|
|
49
|
+
- `EVIDENCE_KIT_QUEUE_FILE` / `EVIDENCE_KIT_STATE_FILE` — the lifecycle surfaces
|
|
50
|
+
read for the manifest's optional close-entry and stamp-coupling assertions;
|
|
51
|
+
they default through gate-sdk's `GATE_SDK_QUEUE_FILE` / `GATE_SDK_WORKFLOW_DIR`.
|
|
52
|
+
- `EVIDENCE_KIT_RUN_ID` — the evidence-line key when no lifecycle queue header
|
|
53
|
+
names the iteration.
|
|
54
|
+
- `EVIDENCE_KIT_PRE_HOOK` — an optional per-suite pre-run command (projection
|
|
55
|
+
regen, container teardown) kept on the consumer side of the spine.
|
|
56
|
+
- `EVIDENCE_KIT_PERMANENT_SLUGS` — blocking slugs that satisfy baseline liveness
|
|
57
|
+
without a live queue task.
|
|
58
|
+
|
|
59
|
+
## Per-component contracts
|
|
60
|
+
|
|
61
|
+
### lib/evidence.sh
|
|
62
|
+
|
|
63
|
+
The sourced config loader: consumer config first, kit defaults fill what it
|
|
64
|
+
left unset, then validation. It also owns the shared adapters — `ek_parse` (the
|
|
65
|
+
parser dispatch), `ek_diff` (the per-scenario baseline diff, §bin/diff-baseline.sh),
|
|
66
|
+
`ek_data_lines`, and the self-contained `ek_queue_iteration` / `ek_run_key`
|
|
67
|
+
header readers plus the `ek_state_stage` cursor reader that let the kit read
|
|
68
|
+
lifecycle state without a lifecycle-kit dependency. The two axes come from two
|
|
69
|
+
surfaces: the queue header names the iteration, the state file's **last data
|
|
70
|
+
line** is the stage cursor. `ek_state_stage` returns non-zero on both no-cursor
|
|
71
|
+
shapes — an absent state file, and a file truncated to its preamble with no data
|
|
72
|
+
line yet — so a caller's `|| true` yields an empty stage for either. Values and adapters only, never tool structure. It
|
|
73
|
+
sources gate-sdk's `lib/gate.sh` for `fail_closed`, so evidence-kit requires
|
|
74
|
+
gate-sdk vendored beside it.
|
|
75
|
+
|
|
76
|
+
The parser adapters map a captured log — and, for `exit-code`, the suite's exit
|
|
77
|
+
status — to `<scenario> <pass|fail|ignore>` lines: `libtest` reads per-test
|
|
78
|
+
result lines (a Rust `cargo test` suite), `exit-code` emits one scenario per
|
|
79
|
+
suite keyed off the suite command's exit. Any other value is a consumer command
|
|
80
|
+
run on the log.
|
|
81
|
+
|
|
82
|
+
Which adapter a suite gets is resolved by `ek_parser_for <suite>`
|
|
83
|
+
(`EVIDENCE_KIT_PARSER_<suite>`, else the global `EVIDENCE_KIT_PARSER`), and the
|
|
84
|
+
dispatch lives inside `ek_parse` — so both spine callers, `run-validate` and
|
|
85
|
+
`diff-baseline`, inherit per-suite parsing with no edit of their own. The
|
|
86
|
+
resolution is a named helper rather than private to `ek_parse` because
|
|
87
|
+
`run-validate`'s produced-no-result diagnostic must name the *effective* parser:
|
|
88
|
+
naming the global while an override produced the empty result would misreport
|
|
89
|
+
exactly the guard the per-gate baseline leans on.
|
|
90
|
+
|
|
91
|
+
A consumer parser command receives the log path alone — no suite name, no exit
|
|
92
|
+
status. That is deliberate: passing suite+status to every consumer command would
|
|
93
|
+
add fields most parsers never read (a field with no reader is removed), and a
|
|
94
|
+
consumer needing exit-code semantics for a suite simply leaves that suite on the
|
|
95
|
+
global adapter.
|
|
96
|
+
|
|
97
|
+
Neither adapter is a gate, so the library's branches are covered by
|
|
98
|
+
`gate-tests/evidence-lib.test.sh`: the per-suite dispatch with its global
|
|
99
|
+
fall-through, and `ek_diff`'s absent-from-baseline triple. The triple's `ignore`
|
|
100
|
+
edge carries a test of its own — the narrow side is the half a later session
|
|
101
|
+
widens by accident, so it is pinned by an assertion rather than by prose alone.
|
|
102
|
+
|
|
103
|
+
### Baseline manifest
|
|
104
|
+
|
|
105
|
+
Held-constant, edited by human commit only. It is a tracked checked projection
|
|
106
|
+
of the workflow directory, so its first line is the pointer-form header
|
|
107
|
+
`# contract: evidence-kit/SPEC.md §Baseline manifest — held-constant validate
|
|
108
|
+
baseline: <suite> <scenario> <status> [<slug>]` (the form ruled by
|
|
109
|
+
gate-sdk/SPEC.md §The workflow directory, whose em-dash tail carries the line
|
|
110
|
+
grammar). Below it, one line per known scenario,
|
|
111
|
+
`<suite> <scenario> <status> [<slug>]`. A blocking `<slug>` is required exactly
|
|
112
|
+
when status is `fail` or `ignore` and forbidden when `pass`; each slug resolves
|
|
113
|
+
to a live queue task (the queue-file knob) or a configured permanent marker.
|
|
114
|
+
Tooling never writes it — a promotion (a held-constant red recovering to pass)
|
|
115
|
+
is a human commit, which is what keeps the baseline honest.
|
|
116
|
+
|
|
117
|
+
A scenario absent from the baseline fails closed: the diff treats its failure
|
|
118
|
+
as a new failure, so a missing `pass` row loses no enforcement — its cost is
|
|
119
|
+
classification (a regression reads as a new scenario), not a silent green.
|
|
120
|
+
|
|
121
|
+
The rule keys on `fail`, never on non-pass. For a scenario with no baseline row,
|
|
122
|
+
observed `fail` is a new failure; observed `pass` is the classification cost
|
|
123
|
+
above, no red; observed `ignore` is **silent** — an ignored test is a non-verdict,
|
|
124
|
+
with no assertion here to converge on. Widening to non-pass would redden a
|
|
125
|
+
libtest consumer's newly-added `#[ignore]` test: a fail-closed appetite for
|
|
126
|
+
absent `ignore` is a separate argued change with its own delta to this section,
|
|
127
|
+
never a rider. The skip demotion (§bin/diff-baseline.sh) stays a baseline-row
|
|
128
|
+
concern and does not reach absent scenarios — a skip-demoted observed `pass`
|
|
129
|
+
absent from the baseline falls under the classification-cost rule.
|
|
130
|
+
|
|
131
|
+
### Evidence manifest
|
|
132
|
+
|
|
133
|
+
Committed, append-per-run. The file header is a `# contract: evidence-manifest v1`
|
|
134
|
+
line — the versioned wire format the deferred hosted-attestation service consumes
|
|
135
|
+
as its attestation payload. Each data line is
|
|
136
|
+
`<iteration> <suite> sha256=<log-hash> pass=<n> fail=<n> ignore=<n>
|
|
137
|
+
verdict=<clean|new-failures> <date>`, and a re-run of a suite within the same
|
|
138
|
+
iteration supersedes that iteration's prior line for the suite. The captured log
|
|
139
|
+
stays uncommitted under the tmp dir; its digest pins which run produced the
|
|
140
|
+
counts. The iteration key scopes the line so the boundary-truncate knob can
|
|
141
|
+
clear the manifest at the start of the next iteration.
|
|
142
|
+
|
|
143
|
+
The header is a wire-format version marker, not a doc pointer —
|
|
144
|
+
gate-sdk/SPEC.md §The workflow directory rules that as one of the two payload
|
|
145
|
+
forms a checked projection may carry, and this section is the statement that
|
|
146
|
+
form requires. `check-evidence-manifest` owns it (asserts the first line is
|
|
147
|
+
`# contract: <version>`). A consumer that also runs canon-kit's
|
|
148
|
+
`check-spec-pointer` over its workflow dir whitelists **this** file there
|
|
149
|
+
(`CANON_KIT_COMMENT_WHITELIST`), since a version marker resolves as no path; the
|
|
150
|
+
baseline is pointer-form and needs no whitelist entry.
|
|
151
|
+
|
|
152
|
+
### bin/run-validate.sh
|
|
153
|
+
|
|
154
|
+
The codified spine: the optional per-suite pre-hook, then each suite run
|
|
155
|
+
foreground, parsed, diffed against the baseline's suite slice per-scenario, and
|
|
156
|
+
recorded as one appended evidence line whose verdict is `clean` unless the diff
|
|
157
|
+
finds a new failure. It never edits the baseline, never retries, and surfaces a
|
|
158
|
+
non-zero suite exit verbatim. A log with no parseable result is a run failure,
|
|
159
|
+
not an empty diff. Its own exit is non-zero when any suite records
|
|
160
|
+
`new-failures`. Not a gate — a `bin/` tool exercised end-to-end in `smoke/`.
|
|
161
|
+
|
|
162
|
+
### bin/diff-baseline.sh
|
|
163
|
+
|
|
164
|
+
The situational runtime diff, not a precommit gate: it takes captured logs as
|
|
165
|
+
arguments, parses each, and diffs against the baseline slice per-scenario. A
|
|
166
|
+
baseline `pass` scenario red-or-absent is a new failure; a baseline `fail` or
|
|
167
|
+
`ignore` scenario running green is an unpromoted recovery; an observed `fail`
|
|
168
|
+
with no baseline row at all is a new failure (§Baseline manifest's fail-closed
|
|
169
|
+
rule, which keys on `fail` alone). The split is
|
|
170
|
+
per-scenario, so a regression and a recovery cannot net to zero. It reads the
|
|
171
|
+
skip side-channel (`EVIDENCE_KIT_SKIP_FILE`, truncated per run) to demote a
|
|
172
|
+
self-skipped scenario from pass first, so a self-skip cannot masquerade as a
|
|
173
|
+
pass. The shared diff (`ek_diff`) returns non-zero the moment a new failure
|
|
174
|
+
fires, which is also how run-validate derives its verdict.
|
|
175
|
+
|
|
176
|
+
### check-evidence-baseline
|
|
177
|
+
|
|
178
|
+
Invariant: the held-constant baseline stays grammatical and honest. It asserts
|
|
179
|
+
the `<suite> <scenario> <status> [<slug>]` shape, blocking-slug liveness — every
|
|
180
|
+
`fail`/`ignore` slug resolves to a live queue task or a permanent marker, and a
|
|
181
|
+
slug present only under `## Done` is stale-red — and, for every suite carrying a
|
|
182
|
+
configured scenario glob, manifest↔disk set equality (a baseline scenario with
|
|
183
|
+
no matching file, or a file with no baseline line, reddens). Argument mode
|
|
184
|
+
`$1 $2` (baseline, queue) with configured defaults makes it fixture-capable; the
|
|
185
|
+
liveness and coverage branches beyond the one good/bad pair are covered by
|
|
186
|
+
`gate-tests/check-evidence-baseline.test.sh`.
|
|
187
|
+
|
|
188
|
+
### check-evidence-manifest
|
|
189
|
+
|
|
190
|
+
Invariant: the evidence manifest is well-formed and, where lifecycle drives the
|
|
191
|
+
tree, coupled to the stage machine. It owns three assertions, (A) close-entry —
|
|
192
|
+
a `close` cursor requires the full green block, a `verdict=clean` line
|
|
193
|
+
for every configured suite dated on/after the iteration's earliest validate
|
|
194
|
+
stamp; (B) grammar — every line the eight-field manifest shape with the current
|
|
195
|
+
iteration (a foreign iteration line means the boundary truncation was skipped);
|
|
196
|
+
and (C) stamp-coupling — a validate stamp demands at least one evidence line,
|
|
197
|
+
re-armed only once the cursor has advanced past `validate`, since the
|
|
198
|
+
entry stamp legitimately precedes the suites. Grammar (B) red suppresses A and C.
|
|
199
|
+
An empty cursor disarms A and C entirely, so a consumer running no lifecycle
|
|
200
|
+
keeps only the grammar floor. Both no-cursor shapes disarm at the *declared*
|
|
201
|
+
early-out rather than by an empty stage falling through two live assertions: a
|
|
202
|
+
silent fall-through would read as a green gate in exactly the window where the
|
|
203
|
+
gate has nothing to say, which is the failure mode the cursor migration was
|
|
204
|
+
ordered to avoid.
|
|
205
|
+
Argument mode `$1 $2 $3` (manifest, queue, state) makes it fixture-capable; the
|
|
206
|
+
close-entry and stamp-coupling assertions are covered by
|
|
207
|
+
`gate-tests/check-evidence-manifest.test.sh`.
|
|
208
|
+
|
|
209
|
+
## lifecycle-kit integration
|
|
210
|
+
|
|
211
|
+
Integration is two generic knobs on lifecycle-kit's side of the seam, each
|
|
212
|
+
naming no evidence surface in the kit — the coupling lives entirely in the
|
|
213
|
+
consumer's config and this gate's optional assertions.
|
|
214
|
+
|
|
215
|
+
`LIFECYCLE_KIT_BOUNDARY_TRUNCATE` lists the files `bin/enter-stage.sh` truncates back
|
|
216
|
+
to their `# contract:` header at the iteration boundary, exactly as it already
|
|
217
|
+
resets the state file. A consumer sets it to the evidence manifest, so a new
|
|
218
|
+
iteration starts with a manifest carrying only its contract header — which is
|
|
219
|
+
what makes assertion (B)'s foreign-iteration test able to catch a skipped
|
|
220
|
+
truncation.
|
|
221
|
+
|
|
222
|
+
`LIFECYCLE_KIT_ENTRY_PREFLIGHT` runs this gate as a close-entry pre-flight: a
|
|
223
|
+
consumer sets `close=…/check-evidence-manifest.sh <manifest>`, and
|
|
224
|
+
`bin/enter-stage.sh` runs it against the candidate temp state file (the
|
|
225
|
+
prospective close stamp appended) and the live queue, so assertion (A)'s
|
|
226
|
+
close-entry green-block check fires *before* the stamp is
|
|
227
|
+
written — the missing evidence becomes a refusal at the entry (pointing at
|
|
228
|
+
run-validate) instead of a self-referential deadlock at pre-commit, where the
|
|
229
|
+
`gates` suite that would produce the evidence re-runs this same red gate
|
|
230
|
+
against the already-stamped cursor. Belt-and-braces behind the validate
|
|
231
|
+
skill's run-validate wiring, not a replacement for it; for a consumer that
|
|
232
|
+
wires it, assertion (A)'s enforcement point moves one step earlier, from
|
|
233
|
+
commit to entry.
|
|
234
|
+
|
|
235
|
+
The validate stage records evidence on a commit later than the entry stamp
|
|
236
|
+
(assertion C's re-arm scoping): the stamp proves invocation at entry, the
|
|
237
|
+
evidence line proves the green result once the suites have run.
|
|
238
|
+
|
|
239
|
+
## Producers and consumers
|
|
240
|
+
|
|
241
|
+
- **Evidence line** — produced by `run-validate.sh` per suite verdict; consumed
|
|
242
|
+
by `check-evidence-manifest` (A/B/C), by close-stage entry via that gate, and,
|
|
243
|
+
forward, by the hosted-attestation payload. Every field has a reader there:
|
|
244
|
+
iteration (A/C scoping), suite + verdict + counts (A's green-block test),
|
|
245
|
+
sha256 (audit pinning of the producing log), date (A's stamp-ordering floor).
|
|
246
|
+
- **Baseline line** — produced by human commits (initial seed, promotions);
|
|
247
|
+
consumed by `diff-baseline.sh` (the per-scenario diff) and
|
|
248
|
+
`check-evidence-baseline` (grammar, liveness, coverage).
|
|
249
|
+
- **Skip record** — produced by a consumer harness that self-skips a scenario;
|
|
250
|
+
consumed by `diff-baseline.sh`. An absent file means no skips.
|
|
251
|
+
- **Per-suite parser override** — produced by consumer config
|
|
252
|
+
(`EVIDENCE_KIT_PARSER_<suite>`); read by `ek_parser_for`, and so by the
|
|
253
|
+
`ek_parse` dispatch and `run-validate`'s effective-parser diagnostic, reaching
|
|
254
|
+
both spine tools.
|
|
255
|
+
- **Scenario line** — produced by the resolved parser from the captured log;
|
|
256
|
+
consumed by `ek_diff` (the per-scenario diff) and by the evidence line's
|
|
257
|
+
`pass=`/`fail=`/`ignore=` counts. Per-gate granularity changes the line's
|
|
258
|
+
population, not its shape, so those readers are unchanged.
|
|
259
|
+
- **Truncation** — produced by `enter-stage.sh` at the scope boundary reading
|
|
260
|
+
`LIFECYCLE_KIT_BOUNDARY_TRUNCATE`; consumed by assertion (B)'s foreign-iteration
|
|
261
|
+
test, which is what makes skipping it visible.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: evidence-kit/SPEC.md §bin/diff-baseline.sh — the situational runtime diff (not a precommit gate): parse the captured logs passed as arguments, diff each against the baseline's suite slice per-scenario, print findings. Reads the skip side-channel to demote self-skipped scenarios from pass.
|
|
3
|
+
set -uo pipefail
|
|
4
|
+
|
|
5
|
+
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
6
|
+
# shellcheck source=../lib/evidence.sh
|
|
7
|
+
source "$KIT/lib/evidence.sh"
|
|
8
|
+
|
|
9
|
+
if [[ $# -lt 2 || $(($# % 2)) -ne 0 ]]; then
|
|
10
|
+
echo "usage: diff-baseline.sh <suite> <logfile> [<suite> <logfile>...]" >&2
|
|
11
|
+
exit 2
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
mkdir -p "$EVIDENCE_KIT_TMP_DIR"
|
|
15
|
+
recoveries=0
|
|
16
|
+
rc=0
|
|
17
|
+
while [[ $# -gt 0 ]]; do
|
|
18
|
+
suite="$1"; log="$2"; shift 2
|
|
19
|
+
[[ -f "$log" ]] || { echo "diff-baseline: log not found: $log" >&2; exit 2; }
|
|
20
|
+
parsed="$EVIDENCE_KIT_TMP_DIR/diff-$suite.parsed"
|
|
21
|
+
ek_parse "$suite" "$log" 0 >"$parsed"
|
|
22
|
+
out="$(ek_diff "$EVIDENCE_KIT_BASELINE_FILE" "$suite" "$parsed" "$EVIDENCE_KIT_SKIP_FILE")" || rc=1
|
|
23
|
+
if [[ -n "$out" ]]; then
|
|
24
|
+
printf '%s\n' "$out"
|
|
25
|
+
recoveries=$((recoveries + $(grep -c '^recovery ' <<<"$out" || true)))
|
|
26
|
+
fi
|
|
27
|
+
done
|
|
28
|
+
|
|
29
|
+
if [[ "$rc" -ne 0 ]]; then
|
|
30
|
+
echo "diff-baseline: NEW failures against $EVIDENCE_KIT_BASELINE_FILE (see 'new-failure' lines above)"
|
|
31
|
+
exit 1
|
|
32
|
+
fi
|
|
33
|
+
echo "diff-baseline: clean ($recoveries unpromoted recovery finding(s); no new failure vs $EVIDENCE_KIT_BASELINE_FILE)"
|
|
34
|
+
exit 0
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: evidence-kit/SPEC.md §bin/run-validate.sh — the codified validate spine: optional pre-hook, run each suite foreground, parse, diff the baseline slice per-scenario, append the evidence line. Never edits the baseline, never retries, surfaces a non-zero suite verbatim.
|
|
3
|
+
set -uo pipefail
|
|
4
|
+
|
|
5
|
+
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
6
|
+
# shellcheck source=../lib/evidence.sh
|
|
7
|
+
source "$KIT/lib/evidence.sh"
|
|
8
|
+
|
|
9
|
+
if [[ ${#EVIDENCE_KIT_SUITES[@]} -eq 0 ]]; then
|
|
10
|
+
echo "run-validate: no suites configured (EVIDENCE_KIT_SUITES) — nothing to run" >&2
|
|
11
|
+
exit 2
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
if ! key="$(ek_run_key)"; then
|
|
15
|
+
echo "run-validate: no evidence-line key — name the iteration in $EVIDENCE_KIT_QUEUE_FILE or set EVIDENCE_KIT_RUN_ID" >&2
|
|
16
|
+
exit 2
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
manifest="$EVIDENCE_KIT_MANIFEST_FILE"
|
|
20
|
+
[[ -f "$manifest" ]] || {
|
|
21
|
+
echo "run-validate: manifest not found: $manifest (seed it with a '# contract: $EVIDENCE_MANIFEST_CONTRACT' header)" >&2
|
|
22
|
+
exit 2
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
mkdir -p "$EVIDENCE_KIT_TMP_DIR"
|
|
26
|
+
today="$(date +%F)"
|
|
27
|
+
overall=0
|
|
28
|
+
|
|
29
|
+
for suite in "${EVIDENCE_KIT_SUITES[@]}"; do
|
|
30
|
+
cmd="$(ek_suite_cmd "$suite")"
|
|
31
|
+
if [[ -z "$cmd" ]]; then
|
|
32
|
+
echo "run-validate: suite '$suite' has no EVIDENCE_KIT_RUN_$suite command configured" >&2
|
|
33
|
+
exit 2
|
|
34
|
+
fi
|
|
35
|
+
|
|
36
|
+
if [[ -n "$EVIDENCE_KIT_PRE_HOOK" ]]; then
|
|
37
|
+
# shellcheck disable=SC2086 # a multi-word consumer pre-hook word-splits by design
|
|
38
|
+
if ! $EVIDENCE_KIT_PRE_HOOK "$suite"; then
|
|
39
|
+
echo "run-validate: pre-hook failed for suite '$suite' — aborting (no evidence appended)" >&2
|
|
40
|
+
exit 2
|
|
41
|
+
fi
|
|
42
|
+
fi
|
|
43
|
+
|
|
44
|
+
log="$EVIDENCE_KIT_TMP_DIR/validate-$suite.log"
|
|
45
|
+
# shellcheck disable=SC2086 # the suite command word-splits by design
|
|
46
|
+
$cmd >"$log" 2>&1
|
|
47
|
+
status=$?
|
|
48
|
+
[[ "$status" -ne 0 ]] && echo "run-validate: suite '$suite' exited $status (log: $log)" >&2
|
|
49
|
+
|
|
50
|
+
parsed="$EVIDENCE_KIT_TMP_DIR/validate-$suite.parsed"
|
|
51
|
+
ek_parse "$suite" "$log" "$status" >"$parsed"
|
|
52
|
+
if [[ ! -s "$parsed" ]]; then
|
|
53
|
+
echo "run-validate: parser '$(ek_parser_for "$suite")' produced no result for suite '$suite' (log: $log) — a run failure, not an empty diff" >&2
|
|
54
|
+
exit 1
|
|
55
|
+
fi
|
|
56
|
+
|
|
57
|
+
npass=$(grep -c ' pass$' "$parsed" || true)
|
|
58
|
+
nfail=$(grep -c ' fail$' "$parsed" || true)
|
|
59
|
+
nignore=$(grep -c ' ignore$' "$parsed" || true)
|
|
60
|
+
|
|
61
|
+
if ek_diff "$EVIDENCE_KIT_BASELINE_FILE" "$suite" "$parsed" "$EVIDENCE_KIT_SKIP_FILE" >/dev/null; then
|
|
62
|
+
verdict=clean
|
|
63
|
+
else
|
|
64
|
+
verdict=new-failures
|
|
65
|
+
overall=1
|
|
66
|
+
fi
|
|
67
|
+
|
|
68
|
+
hash="$(sha256sum "$log" | awk '{print $1}')"; hs=$?
|
|
69
|
+
fail_closed "$hs" run-validate sha256sum
|
|
70
|
+
line="$key $suite sha256=$hash pass=$npass fail=$nfail ignore=$nignore verdict=$verdict $today"
|
|
71
|
+
|
|
72
|
+
# spec: evidence-kit/SPEC.md §Evidence manifest — a re-run supersedes this iteration's prior line for the suite, then appends
|
|
73
|
+
tmpm="$EVIDENCE_KIT_TMP_DIR/validate-evidence.$$"
|
|
74
|
+
awk -v k="$key" -v s="$suite" '!($1 == k && $2 == s)' "$manifest" >"$tmpm"; as=$?
|
|
75
|
+
fail_closed "$as" run-validate awk
|
|
76
|
+
printf '%s\n' "$line" >>"$tmpm"
|
|
77
|
+
mv "$tmpm" "$manifest"
|
|
78
|
+
|
|
79
|
+
echo "run-validate: $suite -> $verdict (pass=$npass fail=$nfail ignore=$nignore)"
|
|
80
|
+
done
|
|
81
|
+
|
|
82
|
+
exit "$overall"
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# graph: couples=.workflow/validate-baseline.txt,TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
3
|
+
# spec: evidence-kit/SPEC.md §check-evidence-baseline — held-constant baseline grammar, blocking-slug liveness, and (when scenario globs are configured) manifest↔disk set equality
|
|
4
|
+
set -uo pipefail
|
|
5
|
+
|
|
6
|
+
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
7
|
+
# shellcheck source=../lib/evidence.sh
|
|
8
|
+
source "$KIT/lib/evidence.sh"
|
|
9
|
+
|
|
10
|
+
BASELINE="${1:-$EVIDENCE_KIT_BASELINE_FILE}"
|
|
11
|
+
QUEUE="${2:-$EVIDENCE_KIT_QUEUE_FILE}"
|
|
12
|
+
|
|
13
|
+
[[ -f "$BASELINE" ]] || {
|
|
14
|
+
echo "EVIDENCE-BASELINE: baseline not found: $BASELINE"
|
|
15
|
+
echo " help: create $BASELINE with a comment header and one '<suite> <scenario> <status> [<slug>]' line per known scenario"
|
|
16
|
+
exit 1
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
errors=()
|
|
20
|
+
|
|
21
|
+
declare -A slug_of=()
|
|
22
|
+
while IFS= read -r line; do
|
|
23
|
+
read -r suite scenario status slug rest <<<"$line"
|
|
24
|
+
if [[ -z "$suite" || -z "$scenario" || -z "$status" ]]; then
|
|
25
|
+
errors+=("malformed line (want '<suite> <scenario> <status> [<slug>]'): $line"); continue
|
|
26
|
+
fi
|
|
27
|
+
if [[ -n "$rest" ]]; then
|
|
28
|
+
errors+=("too many fields (a slug is a single token): $line"); continue
|
|
29
|
+
fi
|
|
30
|
+
case "$status" in
|
|
31
|
+
pass)
|
|
32
|
+
[[ -z "$slug" ]] || errors+=("a 'pass' scenario takes no blocking slug: $line")
|
|
33
|
+
;;
|
|
34
|
+
fail|ignore)
|
|
35
|
+
if [[ -z "$slug" ]]; then
|
|
36
|
+
errors+=("a '$status' scenario requires a blocking slug (a live task or permanent marker): $line")
|
|
37
|
+
else
|
|
38
|
+
slug_of["$slug"]=1
|
|
39
|
+
fi
|
|
40
|
+
;;
|
|
41
|
+
*)
|
|
42
|
+
errors+=("bad status '$status' (want pass|fail|ignore): $line")
|
|
43
|
+
;;
|
|
44
|
+
esac
|
|
45
|
+
done < <(ek_data_lines "$BASELINE")
|
|
46
|
+
|
|
47
|
+
if [[ ${#slug_of[@]} -gt 0 ]]; then
|
|
48
|
+
declare -A permanent=()
|
|
49
|
+
for p in ${EVIDENCE_KIT_PERMANENT_SLUGS[@]+"${EVIDENCE_KIT_PERMANENT_SLUGS[@]}"}; do permanent["$p"]=1; done
|
|
50
|
+
declare -A live=() done_only=()
|
|
51
|
+
if [[ -f "$QUEUE" ]]; then
|
|
52
|
+
while read -r qslug qsec; do
|
|
53
|
+
if [[ "$qsec" == "Done" ]]; then
|
|
54
|
+
[[ -n "${live[$qslug]:-}" ]] || done_only["$qslug"]=1
|
|
55
|
+
else
|
|
56
|
+
live["$qslug"]=1
|
|
57
|
+
unset 'done_only[$qslug]'
|
|
58
|
+
fi
|
|
59
|
+
done < <(awk '
|
|
60
|
+
/^##[[:space:]]/ { sec = $0; sub(/^##[[:space:]]*/, "", sec); next }
|
|
61
|
+
/^-[[:space:]]+\*\*[^*]+\*\*/ {
|
|
62
|
+
s = $0; sub(/^-[[:space:]]+\*\*/, "", s); sub(/\*\*.*$/, "", s)
|
|
63
|
+
print s, sec
|
|
64
|
+
}
|
|
65
|
+
' "$QUEUE")
|
|
66
|
+
fi
|
|
67
|
+
for slug in "${!slug_of[@]}"; do
|
|
68
|
+
[[ -n "${permanent[$slug]:-}" ]] && continue
|
|
69
|
+
[[ -n "${live[$slug]:-}" ]] && continue
|
|
70
|
+
if [[ -n "${done_only[$slug]:-}" ]]; then
|
|
71
|
+
errors+=("blocking slug '$slug' is a Done task — stale; promote the scenario or repoint the slug")
|
|
72
|
+
else
|
|
73
|
+
errors+=("blocking slug '$slug' resolves to no live task in $QUEUE and no permanent marker")
|
|
74
|
+
fi
|
|
75
|
+
done
|
|
76
|
+
fi
|
|
77
|
+
|
|
78
|
+
for suite in "${!EVIDENCE_KIT_SCENARIO_GLOBS[@]}"; do
|
|
79
|
+
glob="${EVIDENCE_KIT_SCENARIO_GLOBS[$suite]}"
|
|
80
|
+
declare -A on_disk=() in_base=()
|
|
81
|
+
shopt -s nullglob
|
|
82
|
+
for f in $glob; do on_disk["$(basename "$f")"]=1; done
|
|
83
|
+
shopt -u nullglob
|
|
84
|
+
while read -r bsuite bscen _; do
|
|
85
|
+
[[ "$bsuite" == "$suite" ]] && in_base["$bscen"]=1
|
|
86
|
+
done < <(ek_data_lines "$BASELINE")
|
|
87
|
+
for s in "${!in_base[@]}"; do
|
|
88
|
+
[[ -n "${on_disk[$s]:-}" ]] || errors+=("suite '$suite': baseline scenario '$s' matches no file under glob '$glob'")
|
|
89
|
+
done
|
|
90
|
+
for s in "${!on_disk[@]}"; do
|
|
91
|
+
[[ -n "${in_base[$s]:-}" ]] || errors+=("suite '$suite': on-disk scenario '$s' (glob '$glob') has no baseline line")
|
|
92
|
+
done
|
|
93
|
+
unset on_disk in_base
|
|
94
|
+
done
|
|
95
|
+
|
|
96
|
+
if [[ ${#errors[@]} -gt 0 ]]; then
|
|
97
|
+
echo "EVIDENCE-BASELINE: ${#errors[@]} issue(s) in $BASELINE:"
|
|
98
|
+
printf ' %s\n' "${errors[@]}"
|
|
99
|
+
echo " help: each line is '<suite> <scenario> <status> [<slug>]'; a fail/ignore carries a live blocking slug; the baseline is edited by human commit only"
|
|
100
|
+
exit 1
|
|
101
|
+
fi
|
|
102
|
+
echo "EVIDENCE-BASELINE: clean ($(ek_data_lines "$BASELINE" | grep -c . || true) scenario(s); grammar, slug liveness, and coverage hold in $BASELINE)"
|
|
103
|
+
exit 0
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# graph: couples=.workflow/validate-evidence.txt,TASK-QUEUE.md,.workflow/WORKFLOW-STATE.txt dir=one valve=none tier=precommit
|
|
3
|
+
# spec: evidence-kit/SPEC.md §check-evidence-manifest — (B) manifest grammar + current-iteration scoping; with lifecycle configured also (A) close-entry green block and (C) validate-stamp↔evidence coupling
|
|
4
|
+
set -uo pipefail
|
|
5
|
+
|
|
6
|
+
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
7
|
+
# shellcheck source=../lib/evidence.sh
|
|
8
|
+
source "$KIT/lib/evidence.sh"
|
|
9
|
+
|
|
10
|
+
MANIFEST="${1:-$EVIDENCE_KIT_MANIFEST_FILE}"
|
|
11
|
+
QUEUE="${2:-$EVIDENCE_KIT_QUEUE_FILE}"
|
|
12
|
+
STATE="${3:-$EVIDENCE_KIT_STATE_FILE}"
|
|
13
|
+
|
|
14
|
+
[[ -f "$MANIFEST" ]] || {
|
|
15
|
+
echo "EVIDENCE-MANIFEST: manifest not found: $MANIFEST"
|
|
16
|
+
echo " help: seed it with a '# contract: $EVIDENCE_MANIFEST_CONTRACT' header; run-validate appends one line per suite"
|
|
17
|
+
exit 1
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
want_header="# contract: $EVIDENCE_MANIFEST_CONTRACT"
|
|
21
|
+
if [[ "$(head -n1 "$MANIFEST")" != "$want_header" ]]; then
|
|
22
|
+
echo "EVIDENCE-MANIFEST: first line is not the versioned wire-format header '$want_header' in $MANIFEST"
|
|
23
|
+
echo " help: the manifest's first line declares the wire contract the attestation payload is versioned by; run-validate never rewrites it, and the iteration-boundary truncation preserves it"
|
|
24
|
+
exit 1
|
|
25
|
+
fi
|
|
26
|
+
|
|
27
|
+
iter=""; stage=""
|
|
28
|
+
iter="$(ek_queue_iteration "$QUEUE" 2>/dev/null || true)"
|
|
29
|
+
stage="$(ek_state_stage "$STATE" 2>/dev/null || true)"
|
|
30
|
+
|
|
31
|
+
# assertion B: every manifest line carries the version header, the eight-field shape, and the current iteration
|
|
32
|
+
grammar_errs=()
|
|
33
|
+
declare -A clean_suite_date=()
|
|
34
|
+
have_line_for_iter=0
|
|
35
|
+
while IFS= read -r line; do
|
|
36
|
+
read -r f1 f2 f3 f4 f5 f6 f7 f8 rest <<<"$line"
|
|
37
|
+
if [[ -z "$f8" || -n "$rest" ]]; then
|
|
38
|
+
grammar_errs+=("malformed line (want '<iteration> <suite> sha256=… pass=… fail=… ignore=… verdict=… <date>'): $line"); continue
|
|
39
|
+
fi
|
|
40
|
+
ok=1
|
|
41
|
+
[[ "$f3" =~ ^sha256=[0-9a-f]{64}$ ]] || { grammar_errs+=("bad sha256 field '$f3': $line"); ok=0; }
|
|
42
|
+
[[ "$f4" =~ ^pass=[0-9]+$ ]] || { grammar_errs+=("bad pass field '$f4': $line"); ok=0; }
|
|
43
|
+
[[ "$f5" =~ ^fail=[0-9]+$ ]] || { grammar_errs+=("bad fail field '$f5': $line"); ok=0; }
|
|
44
|
+
[[ "$f6" =~ ^ignore=[0-9]+$ ]] || { grammar_errs+=("bad ignore field '$f6': $line"); ok=0; }
|
|
45
|
+
[[ "$f7" =~ ^verdict=(clean|new-failures)$ ]] || { grammar_errs+=("bad verdict field '$f7' (want verdict=clean|new-failures): $line"); ok=0; }
|
|
46
|
+
[[ "$f8" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] || { grammar_errs+=("bad date '$f8': $line"); ok=0; }
|
|
47
|
+
[[ "$ok" -eq 1 ]] || continue
|
|
48
|
+
if [[ -n "$iter" && "$f1" != "$iter" ]]; then
|
|
49
|
+
grammar_errs+=("foreign iteration '$f1' (current is '$iter') — the iteration-boundary truncation was skipped: $line"); continue
|
|
50
|
+
fi
|
|
51
|
+
have_line_for_iter=1
|
|
52
|
+
if [[ "$f7" == "verdict=clean" ]]; then
|
|
53
|
+
clean_suite_date["$f2"]="$f8"
|
|
54
|
+
fi
|
|
55
|
+
done < <(ek_data_lines "$MANIFEST")
|
|
56
|
+
|
|
57
|
+
if [[ ${#grammar_errs[@]} -gt 0 ]]; then
|
|
58
|
+
echo "EVIDENCE-MANIFEST: ${#grammar_errs[@]} grammar issue(s) in $MANIFEST:"
|
|
59
|
+
printf ' %s\n' "${grammar_errs[@]}"
|
|
60
|
+
echo " help: every line is the eight-field '$EVIDENCE_MANIFEST_CONTRACT' shape and carries the current iteration; a foreign line means the iteration-boundary truncation (LIFECYCLE_KIT_BOUNDARY_TRUNCATE) did not clear the manifest"
|
|
61
|
+
exit 1
|
|
62
|
+
fi
|
|
63
|
+
|
|
64
|
+
# spec: evidence-kit/SPEC.md §check-evidence-manifest — an empty cursor disarms A and C here, at the declared early-out, rather than letting an empty stage slip past two live assertions; the no-cursor window (state file truncated to its preamble at the iteration boundary) is reachable in normal operation
|
|
65
|
+
if [[ -z "$iter" || ! -f "$STATE" || -z "$stage" ]]; then
|
|
66
|
+
echo "EVIDENCE-MANIFEST: clean (grammar holds in $MANIFEST; no lifecycle state — close-entry/stamp-coupling disarmed)"
|
|
67
|
+
exit 0
|
|
68
|
+
fi
|
|
69
|
+
|
|
70
|
+
earliest_validate=""
|
|
71
|
+
have_validate=0
|
|
72
|
+
while read -r s1 s2 _ s4 _; do
|
|
73
|
+
[[ "$s1" == "$iter" && "$s2" == "validate" ]] || continue
|
|
74
|
+
have_validate=1
|
|
75
|
+
if [[ -z "$earliest_validate" || "$s4" < "$earliest_validate" ]]; then earliest_validate="$s4"; fi
|
|
76
|
+
done < <(awk '/^---[[:space:]]*$/{f=1; next} f && NF {print}' "$STATE")
|
|
77
|
+
|
|
78
|
+
errors=()
|
|
79
|
+
|
|
80
|
+
# assertion C: a validate stamp demands ≥1 evidence line, re-armed only once the cursor has advanced past validate (the entry stamp precedes the suites)
|
|
81
|
+
if [[ "$have_validate" -eq 1 && "$stage" != "validate" && "$have_line_for_iter" -eq 0 ]]; then
|
|
82
|
+
errors+=("iteration '$iter' has a validate stamp but no evidence line — validate ran and recorded nothing (run evidence-kit/bin/run-validate.sh)")
|
|
83
|
+
fi
|
|
84
|
+
|
|
85
|
+
# assertion A: a close-entry cursor requires the full green block — every configured suite a clean line dated on/after the earliest validate stamp
|
|
86
|
+
if [[ "$stage" == "close" ]]; then
|
|
87
|
+
for suite in ${EVIDENCE_KIT_SUITES[@]+"${EVIDENCE_KIT_SUITES[@]}"}; do
|
|
88
|
+
d="${clean_suite_date[$suite]:-}"
|
|
89
|
+
if [[ -z "$d" ]]; then
|
|
90
|
+
errors+=("close entry: suite '$suite' has no clean evidence line for '$iter'")
|
|
91
|
+
elif [[ -n "$earliest_validate" && "$d" < "$earliest_validate" ]]; then
|
|
92
|
+
errors+=("close entry: suite '$suite' clean line is dated $d, before the earliest validate stamp $earliest_validate — stale evidence")
|
|
93
|
+
fi
|
|
94
|
+
done
|
|
95
|
+
fi
|
|
96
|
+
|
|
97
|
+
if [[ ${#errors[@]} -gt 0 ]]; then
|
|
98
|
+
echo "EVIDENCE-MANIFEST: ${#errors[@]} issue(s) coupling $MANIFEST to $STATE:"
|
|
99
|
+
printf ' %s\n' "${errors[@]}"
|
|
100
|
+
echo " help: record a run-validate evidence line per suite before the close entry is stamped; the entry stamp proves invocation, the evidence line proves the green result"
|
|
101
|
+
exit 1
|
|
102
|
+
fi
|
|
103
|
+
echo "EVIDENCE-MANIFEST: clean (grammar + close-entry/stamp-coupling hold for '$iter' at stage '$stage' in $MANIFEST)"
|
|
104
|
+
exit 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
requires a blocking slug
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
EVIDENCE-BASELINE: clean
|