checkwright 0.20.0 → 0.22.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 +385 -19
- package/lib/common/digest.sh +18 -0
- package/lib/common/lock.sh +11 -0
- package/lib/common/recipe.sh +8 -11
- package/lib/doctor.sh +49 -0
- package/lib/init.sh +152 -29
- package/package.json +2 -2
- package/payload/artifact/targets.list +30 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -0
- package/payload/canon-kit/README.md +1 -0
- package/payload/canon-kit/SPEC.md +281 -26
- package/payload/canon-kit/checks/check-comment-tier.sh +7 -2
- package/payload/canon-kit/checks/check-docs-link-convention.sh +11 -4
- package/payload/canon-kit/checks/check-md-refs.sh +22 -9
- package/payload/canon-kit/checks/check-payload-claim.sh +133 -0
- package/payload/canon-kit/checks/check-prose-enum.sh +1 -1
- package/payload/canon-kit/checks/check-spec-pointer.sh +15 -4
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +26 -3
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/OUTSIDE.md +4 -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/good/OUTSIDE.md +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/methodology.md +8 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +94 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +5 -3
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/README.md +15 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/install.md +19 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/posts/note.md +6 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/payload-claims.sh +7 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/README.md +15 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/install.md +20 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/posts/note.md +6 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/payload-claims.sh +7 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +24 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/widget.sh +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/widget.sh +1 -0
- package/payload/canon-kit/lib/spec.sh +22 -12
- package/payload/canon-kit/smoke/install.sh +20 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +5 -1
- package/payload/context-kit/SPEC.md +38 -7
- package/payload/context-kit/lib/toolfloor.sh +1 -1
- package/payload/context-kit/smoke/install.sh +3 -1
- package/payload/delegation-kit/README.md +2 -1
- package/payload/delegation-kit/SPEC.md +590 -48
- package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +97 -0
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +61 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +1 -1
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/silent.md +7 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/args +1 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-cheap.md +7 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-inherit.md +8 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/args +1 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/expect.txt +1 -0
- package/payload/delegation-kit/lib/delegation.sh +3 -0
- package/payload/delegation-kit/smoke/install.sh +3 -1
- package/payload/delegation-kit/templates/agent-dispatch-guard.sh +61 -0
- package/payload/delegation-kit/templates/agent-execution.md +171 -15
- package/payload/delegation-kit/templates/delegation-config.sh +4 -0
- package/payload/delegation-kit/templates/dispatch-checklists.md +1 -1
- package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +30 -0
- package/payload/doctrine-kit/DOCTRINE.md +27 -0
- package/payload/doctrine-kit/README.md +5 -0
- package/payload/doctrine-kit/SPEC.md +62 -3
- package/payload/doctrine-kit/bin/install-doctrine.sh +84 -4
- package/payload/doctrine-kit/smoke/install.sh +77 -1
- package/payload/drift-kit/README.md +3 -2
- package/payload/drift-kit/SPEC.md +253 -20
- package/payload/drift-kit/bin/stage-economics.sh +157 -3
- package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +42 -0
- package/payload/drift-kit/smoke/install.sh +155 -1
- package/payload/drift-kit/templates/economics.md +9 -0
- package/payload/drift-kit/templates/kpis.list +6 -1
- package/payload/evidence-kit/README.md +20 -6
- package/payload/evidence-kit/SPEC.md +355 -17
- package/payload/evidence-kit/bin/run-validate.sh +51 -9
- package/payload/evidence-kit/checks/check-battery-roster.sh +86 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +34 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/args +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/runner.md +14 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +7 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/args +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/runner.md +14 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +7 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +68 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/args +1 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/run-validate.lock +1 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/good/args +1 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/good/expect.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/good/run-validate.lock +1 -0
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +109 -0
- package/payload/evidence-kit/lib/evidence.sh +18 -0
- package/payload/evidence-kit/smoke/install.sh +17 -3
- package/payload/gate-sdk/README.md +4 -1
- package/payload/gate-sdk/SPEC.md +1955 -79
- package/payload/gate-sdk/bin/gen-pre-commit.sh +13 -3
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +121 -1
- package/payload/gate-sdk/bin/run-gate-tests.sh +40 -9
- package/payload/gate-sdk/bin/run-gates.sh +32 -3
- package/payload/gate-sdk/bin/upgrade-smoke.sh +3 -3
- package/payload/gate-sdk/checks/check-action-gh-repo.gate +2 -0
- package/payload/gate-sdk/checks/check-action-pinning.gate +2 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +3 -1
- package/payload/gate-sdk/checks/check-core-files.sh +27 -4
- package/payload/gate-sdk/checks/check-exec-bit.sh +20 -1
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +106 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +6 -7
- package/payload/gate-sdk/checks/check-gate-output.sh +9 -1
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +302 -0
- package/payload/gate-sdk/checks/check-graph.sh +7 -8
- package/payload/gate-sdk/checks/check-readme-roster.sh +5 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +73 -22
- package/payload/gate-sdk/checks/check-template-registry-parity.sh +81 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +11 -7
- package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +16 -1
- package/payload/gate-sdk/gate-tests/check-core-files.test.sh +64 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/kitroot/checks/check-vendored.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/check-ported.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stamp.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stub-bin +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/kitroot/checks/check-vendored.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/check-ported.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stamp.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stub-bin +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +81 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +3 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +3 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/gates/check-sample.sh +3 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-sample.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-sample.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/conservation.md +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/impl/gate.rs +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/check-orphan.rs +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/publish.yml +15 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-dup.gate +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-dup.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/targets.list +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/conservation.md +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/impl/gate.rs +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kitroot/check-other.rs +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/publish.yml +15 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-ported.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/targets.list +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +123 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +139 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/templates/widgets.list +4 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/widgets/widget-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/widgets/widget-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/templates/widgets.list +4 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/widgets/widget-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/widgets/widget-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +8 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/beta-kit/templates/rules.list +5 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/beta-kit/templates/table.tsv +4 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +4 -4
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +41 -1
- package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +144 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +26 -1
- package/payload/gate-sdk/lib/gate.sh +104 -13
- package/payload/gate-sdk/lib/inject.sh +21 -1
- package/payload/gate-sdk/smoke/install.sh +19 -1
- package/payload/guard-kit/README.md +4 -3
- package/payload/guard-kit/SPEC.md +88 -10
- package/payload/guard-kit/bin/compare-settings-allow.sh +40 -7
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +64 -0
- package/payload/guard-kit/lib/guard.sh +1 -0
- package/payload/guard-kit/templates/close-triage.md +35 -7
- package/payload/guard-kit/templates/guard-config.sh +3 -0
- package/payload/lifecycle-kit/README.md +1 -0
- package/payload/lifecycle-kit/SPEC.md +589 -33
- package/payload/lifecycle-kit/bin/enter-stage.sh +13 -3
- package/payload/lifecycle-kit/bin/file-gap.sh +42 -1
- package/payload/lifecycle-kit/bin/file-survey.sh +50 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +1 -1
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +1 -1
- package/payload/lifecycle-kit/checks/check-survey-record.sh +102 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +1 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +4 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +18 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +84 -0
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +94 -0
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +102 -0
- package/payload/lifecycle-kit/lib/stages.sh +8 -2
- package/payload/lifecycle-kit/smoke/install.sh +17 -1
- package/payload/lifecycle-kit/templates/consult.md +73 -0
- package/payload/lifecycle-kit/templates/lead.md +141 -10
- package/payload/lifecycle-kit/templates/stages/align.md +12 -0
- package/payload/lifecycle-kit/templates/stages/build.md +8 -0
- package/payload/lifecycle-kit/templates/stages/close.md +25 -4
- package/payload/lifecycle-kit/templates/stages/scope.md +34 -0
- package/payload/lifecycle-kit/templates/stages/spec.md +8 -0
- package/payload/lifecycle-kit/templates/stages/validate.md +8 -0
- package/payload/queue-kit/README.md +4 -1
- package/payload/queue-kit/SPEC.md +230 -6
- package/payload/queue-kit/bin/queue-edges.sh +78 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.sh +5 -3
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +5 -0
- package/payload/queue-kit/gate-tests/queue-edges.test.sh +130 -0
- package/payload/queue-kit/smoke/install.sh +4 -1
- package/payload/queue-kit/templates/TASK-QUEUE.md +3 -0
- package/payload/site-kit/SPEC.md +135 -29
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +100 -27
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-batch.test.sh +158 -0
- package/payload/site-kit/lib/site.sh +16 -2
- package/payload/site-kit/smoke/install.sh +9 -1
- package/payload/gate-sdk/checks/check-action-gh-repo.sh +0 -321
- package/payload/gate-sdk/checks/check-action-pinning.sh +0 -55
|
@@ -97,6 +97,9 @@ declare -p CANON_KIT_COUNT_ALLOWED_PHRASES &>/dev/null || CANON_KIT_COUNT_ALLOWE
|
|
|
97
97
|
[[ -v CANON_KIT_INSTALL_SECTION_RE ]] || CANON_KIT_INSTALL_SECTION_RE=""
|
|
98
98
|
declare -p CANON_KIT_INSTALL_CLAIM_EXCLUDE &>/dev/null || CANON_KIT_INSTALL_CLAIM_EXCLUDE=()
|
|
99
99
|
|
|
100
|
+
[[ -v CANON_KIT_PAYLOAD_CLAIMS_CMD ]] || CANON_KIT_PAYLOAD_CLAIMS_CMD=""
|
|
101
|
+
declare -p CANON_KIT_PAYLOAD_CLAIM_EXCLUDE &>/dev/null || CANON_KIT_PAYLOAD_CLAIM_EXCLUDE=()
|
|
102
|
+
|
|
100
103
|
declare -p CANON_KIT_COMMENT_MACHINE &>/dev/null || CANON_KIT_COMMENT_MACHINE=()
|
|
101
104
|
declare -p CANON_KIT_COMMENT_REASON &>/dev/null || CANON_KIT_COMMENT_REASON=()
|
|
102
105
|
declare -p CANON_KIT_COMMENT_SURFACE &>/dev/null || CANON_KIT_COMMENT_SURFACE=()
|
|
@@ -236,10 +239,12 @@ _spec_comment_surface() { # $1=root $2=1 keeps templates/ shell sources, else
|
|
|
236
239
|
done
|
|
237
240
|
shopt -u nullglob globstar
|
|
238
241
|
else
|
|
242
|
+
# spec: canon-kit/SPEC.md §lib/spec.sh — the governed-source corpus spans
|
|
243
|
+
# both gate declaration spellings and the ported implementation
|
|
239
244
|
if [[ "$incl" == "1" ]]; then
|
|
240
|
-
gate_find "$root" -name '*.sh' -type f 2>/dev/null | _spec_prune_kit_roots "$root" | sort
|
|
245
|
+
gate_find "$root" \( -name '*.sh' -o -name '*.gate' -o -name '*.rs' \) -type f 2>/dev/null | _spec_prune_kit_roots "$root" | sort
|
|
241
246
|
else
|
|
242
|
-
gate_find "$root" -name '*.sh' -type f 2>/dev/null | grep -v '/templates/' | _spec_prune_kit_roots "$root" | sort
|
|
247
|
+
gate_find "$root" \( -name '*.sh' -o -name '*.gate' -o -name '*.rs' \) -type f 2>/dev/null | grep -v '/templates/' | _spec_prune_kit_roots "$root" | sort
|
|
243
248
|
fi
|
|
244
249
|
# spec: canon-kit/SPEC.md §check-spec-pointer — the workflow directory's
|
|
245
250
|
# tracked tier, whatever the extension: the capture tier is gitignored
|
|
@@ -451,25 +456,30 @@ spec_enum_sets() {
|
|
|
451
456
|
return 0
|
|
452
457
|
}
|
|
453
458
|
|
|
454
|
-
# spec: canon-kit/SPEC.md §
|
|
455
|
-
|
|
456
|
-
local out st line id ere seen=""
|
|
457
|
-
out="$(bash -c "$
|
|
458
|
-
[[ $st -eq 0 ]] || { echo "
|
|
459
|
+
# spec: canon-kit/SPEC.md §lib/spec.sh — run a consumer's claim-vocabulary command and echo its validated <id><TAB><ERE> lines; a command that fails, a line that does not parse, an id that is not slug-shaped, or a repeated id returns 2 (fail-closed), the same contract spec_enum_sets carries. $2 labels the vocabulary in every message, so a fail-closed exit says which one failed. An empty command is the caller's clean-skip signal, handled before this is called.
|
|
460
|
+
spec_claim_vocabulary() { # $1=command $2=label naming the vocabulary in messages
|
|
461
|
+
local cmd="$1" label="$2" out st line id ere seen=""
|
|
462
|
+
out="$(bash -c "$cmd")"; st=$?
|
|
463
|
+
[[ $st -eq 0 ]] || { echo "spec_claim_vocabulary: $label exited $st" >&2; return 2; }
|
|
459
464
|
while IFS= read -r line; do
|
|
460
465
|
[[ -n "$line" ]] || continue
|
|
461
|
-
[[ "$line" == *$'\t'* ]] || { echo "
|
|
466
|
+
[[ "$line" == *$'\t'* ]] || { echo "spec_claim_vocabulary: $label: line has no tab: '$line'" >&2; return 2; }
|
|
462
467
|
id="${line%%$'\t'*}"; ere="${line#*$'\t'}"
|
|
463
|
-
[[ -n "$id" && -n "$ere" ]] || { echo "
|
|
464
|
-
[[ "$ere" == *$'\t'* ]] && { echo "
|
|
465
|
-
[[ "$id" =~ ^[a-z0-9][a-z0-9-]*$ ]] || { echo "
|
|
466
|
-
[[ " $seen " == *" $id "* ]] && { echo "
|
|
468
|
+
[[ -n "$id" && -n "$ere" ]] || { echo "spec_claim_vocabulary: $label: empty id or pattern: '$line'" >&2; return 2; }
|
|
469
|
+
[[ "$ere" == *$'\t'* ]] && { echo "spec_claim_vocabulary: $label: extra tab in line: '$line'" >&2; return 2; }
|
|
470
|
+
[[ "$id" =~ ^[a-z0-9][a-z0-9-]*$ ]] || { echo "spec_claim_vocabulary: $label: id is not slug-shaped: '$id'" >&2; return 2; }
|
|
471
|
+
[[ " $seen " == *" $id "* ]] && { echo "spec_claim_vocabulary: $label: duplicate id: '$id'" >&2; return 2; }
|
|
467
472
|
seen="$seen $id"
|
|
468
473
|
printf '%s\t%s\n' "$id" "$ere"
|
|
469
474
|
done <<< "$out"
|
|
470
475
|
return 0
|
|
471
476
|
}
|
|
472
477
|
|
|
478
|
+
# spec: canon-kit/SPEC.md §check-install-claim — the install-transport vocabulary, one caller of the general loader above; the fail-closed contract is that function's and is not restated here.
|
|
479
|
+
spec_install_transports() {
|
|
480
|
+
spec_claim_vocabulary "$CANON_KIT_INSTALL_TRANSPORTS_CMD" CANON_KIT_INSTALL_TRANSPORTS_CMD
|
|
481
|
+
}
|
|
482
|
+
|
|
473
483
|
_sk_errs=()
|
|
474
484
|
[[ -n "$CANON_KIT_SPEC_NAME" ]] || _sk_errs+=("CANON_KIT_SPEC_NAME is empty")
|
|
475
485
|
[[ -n "$CANON_KIT_AMENDMENT_GLOB" ]] || _sk_errs+=("CANON_KIT_AMENDMENT_GLOB is empty")
|
|
@@ -11,8 +11,27 @@ check-amendment-queue
|
|
|
11
11
|
check-spec-dod-singleton
|
|
12
12
|
check-spec-derivable-section
|
|
13
13
|
check-spec-embedded-source
|
|
14
|
+
check-comment-tier
|
|
15
|
+
check-deprecation-task
|
|
16
|
+
check-docs-cmd
|
|
17
|
+
check-docs-link-convention
|
|
18
|
+
check-install-claim
|
|
19
|
+
check-knob-citation
|
|
20
|
+
check-knob-default-coupling
|
|
21
|
+
check-manifest-count
|
|
22
|
+
check-manifest-temporal
|
|
23
|
+
check-md-refs
|
|
24
|
+
check-payload-claim
|
|
25
|
+
check-prose-enum
|
|
26
|
+
check-prose-tells
|
|
27
|
+
check-spec-fence-balance
|
|
28
|
+
check-spec-pointer
|
|
29
|
+
check-todo-task-liveness
|
|
30
|
+
check-tracking-claim
|
|
14
31
|
EOF
|
|
15
32
|
|
|
33
|
+
# smoke-unregistered: check-surface-duplication — the glossary topology it reads (CANON_KIT_GLOSSARY_FILE, default GLOSSARY.md) is optional and this tree ships none, so its exit 2 is uncorroborated only because the invoking repo lacks the same optional surface, not because the gate is broken
|
|
34
|
+
|
|
16
35
|
# spec: gate-sdk/SPEC.md §Consumer smoke — seed check-amendment-queue's surface (guarded; carries lifecycle-kit's inert header so the seed composes with the stage gates)
|
|
17
36
|
if [[ ! -f TASK-QUEUE.md ]]; then
|
|
18
37
|
cat > TASK-QUEUE.md <<'EOF'
|
|
@@ -33,4 +52,4 @@ EOF
|
|
|
33
52
|
fi
|
|
34
53
|
|
|
35
54
|
bash "$SDK/bin/gen-pre-commit.sh" --write >/dev/null
|
|
36
|
-
bash "$SDK/checks/check-graph.sh" --emit >
|
|
55
|
+
bash "$SDK/checks/check-graph.sh" --emit > scripts/CHECK-GRAPH.html
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
change. Name it after the feature (SPEC-<feature>.md, e.g. SPEC-sqlite.md —
|
|
6
6
|
never SPEC-PHASE3-SQLITE.md), place it in the owning component's directory
|
|
7
7
|
(a governance/workflow ruling with no owning component lives at the repo
|
|
8
|
-
root), and pair it with a queue entry tagged [spec: SPEC-<feature>.md].
|
|
8
|
+
root), and pair it with a queue entry tagged [spec: SPEC-<feature>.md]. The
|
|
9
|
+
basename need not match that entry's slug: the ref resolves as a bare
|
|
10
|
+
basename tree-wide, and swapping a long slug into the tag can push the
|
|
11
|
+
entry's lead line past the queue's wrap budget — so a shorter basename than
|
|
12
|
+
the slug is the fix, not a mismatch to avoid. It
|
|
9
13
|
describes ONLY what is added or changed — do not restate the canonical spec.
|
|
10
14
|
It is a transition artifact: merged into the canonical spec and deleted when
|
|
11
15
|
the work completes (an amendment never outlives its implementation).
|
|
@@ -258,10 +258,17 @@ is provable).
|
|
|
258
258
|
|
|
259
259
|
The constrained members and what forces each:
|
|
260
260
|
|
|
261
|
-
- `bash:4.
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
261
|
+
- `bash:4.3` — the floor is set by the **highest** construct the battery runs,
|
|
262
|
+
not the most numerous. Three bash-4.0 constructs are widespread — `declare -A`
|
|
263
|
+
(gate-sdk, guard-kit, delegation-kit, evidence-kit checks), `mapfile` (across
|
|
264
|
+
the kits), the `${x,,}` case expansion (canon-kit's `lib/spec.sh` and checks, a
|
|
265
|
+
delegation-kit template) — but the **nameref** (`local -n`, bash 4.3) outranks
|
|
266
|
+
them: `gate-sdk/lib/gate.sh`'s couples expander, which every gate sources, and
|
|
267
|
+
`canon-kit/checks/check-comment-tier.sh`. The nameref in the shared gate
|
|
268
|
+
library makes 4.3 universal rather than one leaf gate's requirement, so a
|
|
269
|
+
consumer below it cannot run the battery at all. Recorded here because the
|
|
270
|
+
earlier `4.0` was a fail-open: `env-probe` reported `ok` on a 4.2 box the
|
|
271
|
+
battery would fail with an obscure syntax error.
|
|
265
272
|
- `awk::GNU` — no version floor, one implementation constraint: the 3-arg
|
|
266
273
|
`match()` in `check-gate-assertions`, whose dependency gate-sdk/SPEC.md
|
|
267
274
|
§check-gate-assertions already owns.
|
|
@@ -275,6 +282,24 @@ The constrained members and what forces each:
|
|
|
275
282
|
the battery at all rather than failing one gate. The representative member is
|
|
276
283
|
the binary carrying a forcing construct, which is also the floor predicate's
|
|
277
284
|
own comparison tool.
|
|
285
|
+
- `cargo:1.56` — a **contributor-side** floor, never a runtime one, and it carries
|
|
286
|
+
two tiers because two kinds of tree read it. Where a `.gate` descriptor is live
|
|
287
|
+
it is a **commit-time** floor — `gate_command` puts the binary on the pre-commit
|
|
288
|
+
path and is fail-closed on an absent one, so the battery will not run without a
|
|
289
|
+
built crate (gate-sdk/SPEC.md §What the dispatch seam does not settle); that is
|
|
290
|
+
this repo, once its first cohort lands. Everywhere else it stays the weaker
|
|
291
|
+
**contributor/build** floor: a consumer tree receives a prebuilt binary and never
|
|
292
|
+
a crate, so nothing there compiles at commit time. Both tiers rest on the same
|
|
293
|
+
forcing fact —
|
|
294
|
+
the `native/` crate's `edition = "2021"`, the first edition rustc accepts at
|
|
295
|
+
1.56. `cargo` is the member rather than `rustc` because `cargo build` is what the
|
|
296
|
+
contributor routine and the `gates` workflow actually invoke, and the two ship as
|
|
297
|
+
one toolchain sharing a version banner — the representative-member rule the
|
|
298
|
+
`sort::coreutils` entry above states. The floor tracks the edition the crate
|
|
299
|
+
declares, not whatever rustc a given box happens to carry; pinning the latter
|
|
300
|
+
would be exactly the aspiration this section's rule forbids. Runtime is
|
|
301
|
+
unaffected: git remains the sole runtime dependency of a ported gate, shelled out
|
|
302
|
+
rather than embedded (TRAJECTORY.md §The closed rulings owns that constraint).
|
|
278
303
|
Every other member is a bare name — no construct in the battery forces a version
|
|
279
304
|
on it (the `jq` usage is 1.5-era throughout), so none is pinned.
|
|
280
305
|
|
|
@@ -297,8 +322,8 @@ gate-sdk/SPEC.md §The gate model requires of a gate, applied to a probe that is
|
|
|
297
322
|
not one.
|
|
298
323
|
|
|
299
324
|
**The rendered verdict.** Each toolchain bullet carries the probed banner and,
|
|
300
|
-
for a constrained member, the constraint and its verdict — `` (floor 4.
|
|
301
|
-
`` (requires GNU — below contract) ``, `` (floor 4.
|
|
325
|
+
for a constrained member, the constraint and its verdict — `` (floor 4.3, ok) ``,
|
|
326
|
+
`` (requires GNU — below contract) ``, `` (floor 4.3 — unverified) ``; an
|
|
302
327
|
unconstrained member carries no parenthetical. A `**Below contract:**` line joins
|
|
303
328
|
the existing `**Absent:**` line, reading `none` when clean and otherwise naming
|
|
304
329
|
each failing member through the verdict's own fields: `below` and `wrong-impl`
|
|
@@ -621,6 +646,7 @@ context-kit/
|
|
|
621
646
|
gate-tests/check-settings-pins/{good,bad}/
|
|
622
647
|
gate-tests/check-memory-off/{good,bad}/
|
|
623
648
|
gate-tests/check-footprint-fresh/{good,bad}/
|
|
649
|
+
gate-tests/check-brevity.test.sh # the unmatched-section axis the pair cannot hold
|
|
624
650
|
gate-tests/check-memory-off.test.sh # the local-override axis the pair cannot hold
|
|
625
651
|
index-tests/ # fixture corpus + expected outputs
|
|
626
652
|
templates/session-context.sh # consumer copy: marked consumer sections
|
|
@@ -739,7 +765,12 @@ fixture pair; the footprint pair drives the hermetic two-argument mode
|
|
|
739
765
|
memory-off gates take a `--fixture <dir>` injection (the check-identity
|
|
740
766
|
precedent): the settings-pins pair reads `<dir>/settings.json` against
|
|
741
767
|
`<dir>/settings-pins.conf`; the memory-off pair scans `<dir>/memory` for
|
|
742
|
-
content.
|
|
768
|
+
content. Two direct unit tests hold the axes the pairs fix and so cannot
|
|
769
|
+
express: `check-brevity.test.sh` holds the unmatched-section resolution (the
|
|
770
|
+
pair fixes `CONTEXT_KIT_BREVITY_SECTION` at the stock default and always
|
|
771
|
+
supplies a file carrying it, so neither case can express a section that
|
|
772
|
+
resolves to nothing — an unmatched section is exit 2, a broken machine rather
|
|
773
|
+
than a clean tree). The memory-off local-override axis — an untracked
|
|
743
774
|
`settings.local.json` that re-enables a pinned key past an empty dir — cannot
|
|
744
775
|
be a good/bad pair (the pair fixes the dir axis), so `check-memory-off.test.sh`
|
|
745
776
|
holds it.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# spec: context-kit/SPEC.md §bin/env-probe — the roster, `<name>[:<min-version>[:<impl-token>]]`; a member gains a floor only where a construct the battery runs forces one, and the SPEC records that construct beside the token
|
|
5
5
|
# shellcheck disable=SC2034 # read by whoever sources this file (bin/env-probe.sh), never here
|
|
6
|
-
PROBE_SET=(bash:4.
|
|
6
|
+
PROBE_SET=(bash:4.3 git jq awk::GNU sort::coreutils shellcheck cargo:1.56)
|
|
7
7
|
|
|
8
8
|
# spec: context-kit/SPEC.md §bin/env-probe — positional fields, an empty field meaning unconstrained on that axis exactly as an omitted trailing one does, so `awk`, `awk:` and `awk::` parse to one member
|
|
9
9
|
tool_floor_parse() { # $1 = roster element -> TOOL_FLOOR_NAME / _MIN / _IMPL
|
|
@@ -8,6 +8,8 @@ SDK="$SMOKE_KIT_ROOT/../gate-sdk" # the vendored gate-sdk beside this kit
|
|
|
8
8
|
cat >> scripts/gates.list <<'EOF'
|
|
9
9
|
# context-kit
|
|
10
10
|
check-brevity
|
|
11
|
+
check-memory-off
|
|
12
|
+
check-settings-pins
|
|
11
13
|
EOF
|
|
12
14
|
|
|
13
15
|
cp "$SMOKE_KIT_ROOT/templates/context-config.sh" scripts/context-config.sh
|
|
@@ -35,7 +37,7 @@ qtpl="$SMOKE_KIT_ROOT/../queue-kit/templates/TASK-QUEUE.md"
|
|
|
35
37
|
[[ -f TASK-QUEUE.md || ! -f "$qtpl" ]] || cp "$qtpl" TASK-QUEUE.md
|
|
36
38
|
|
|
37
39
|
bash "$SDK/bin/gen-pre-commit.sh" --write >/dev/null
|
|
38
|
-
bash "$SDK/checks/check-graph.sh" --emit >
|
|
40
|
+
bash "$SDK/checks/check-graph.sh" --emit > scripts/CHECK-GRAPH.html
|
|
39
41
|
|
|
40
42
|
hook_out="$(bash scripts/session-context.sh 2>/dev/null)"; rc=$?
|
|
41
43
|
if [[ "$rc" -ne 0 ]]; then
|
|
@@ -26,6 +26,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
|
|
|
26
26
|
```
|
|
27
27
|
check-gate-tamper
|
|
28
28
|
check-rule-citation # holds SPEC §The delegation model's rule citations to the template
|
|
29
|
+
check-agent-tier-explicit # every tracked agent definition states a model: tier
|
|
29
30
|
```
|
|
30
31
|
<!-- gate-roster:end -->
|
|
31
32
|
|
|
@@ -80,7 +81,7 @@ directly with `--fixture <dir>` only for testing.
|
|
|
80
81
|
## Test
|
|
81
82
|
|
|
82
83
|
```bash
|
|
83
|
-
bash gate-sdk/bin/run-gate-tests.sh delegation-kit/gate-tests delegation-kit/checks #
|
|
84
|
+
bash gate-sdk/bin/run-gate-tests.sh delegation-kit/gate-tests delegation-kit/checks # every gate's fixture pair
|
|
84
85
|
bash delegation-kit/bin/run-usage-tests.sh # usage-verdict verdict table
|
|
85
86
|
bash delegation-kit/bin/run-budget-guard-tests.sh # budget-guard action table
|
|
86
87
|
bash delegation-kit/bin/run-trend-tests.sh # usage-trend segmentation assertions
|