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
package/lib/init.sh
CHANGED
|
@@ -13,6 +13,8 @@ source "$INSTALLER/lib/common/lock.sh"
|
|
|
13
13
|
source "$INSTALLER/lib/common/profile.sh"
|
|
14
14
|
# shellcheck source=./common/recipe.sh
|
|
15
15
|
source "$INSTALLER/lib/common/recipe.sh"
|
|
16
|
+
# shellcheck source=./common/digest.sh
|
|
17
|
+
source "$INSTALLER/lib/common/digest.sh"
|
|
16
18
|
|
|
17
19
|
# spec: installer/README.md §What init seeds — the consumer-layout names init writes against; they are gate-sdk's and canon-kit's own defaults, so a tree init made is the zero-config tree those kits expect
|
|
18
20
|
GATES_DIR="scripts"
|
|
@@ -61,6 +63,8 @@ COMMIT="$(jq -r '.checkwright.commit // ""' "$PKG" 2>/dev/null)"
|
|
|
61
63
|
|
|
62
64
|
LOCK="$(lock_path "$ROOT")"
|
|
63
65
|
PRIOR_FILES=""
|
|
66
|
+
PRIOR_ARTIFACT_TARGET=""
|
|
67
|
+
PRIOR_ARTIFACT_DIGEST=""
|
|
64
68
|
if [[ -f "$LOCK" ]]; then
|
|
65
69
|
lock_schema_ok "$LOCK" || die "$CHECKWRIGHT_LOCK_FILE carries a schema this build does not know" \
|
|
66
70
|
"this manifest was written by a different Checkwright release. Upgrade the installer rather than letting it guess at a shape it was not built for."
|
|
@@ -75,6 +79,8 @@ if [[ -f "$LOCK" ]]; then
|
|
|
75
79
|
fi
|
|
76
80
|
[[ -n "$PROFILE" ]] || PROFILE="$(lock_field "$LOCK" profile)"
|
|
77
81
|
PRIOR_FILES="$(jq -r 'if (.files | type) == "object" then (.files | to_entries[] | "\(.key)\t\(.value)") else empty end' "$LOCK" 2>/dev/null)"
|
|
82
|
+
PRIOR_ARTIFACT_TARGET="$(jq -r '.artifact.target // ""' "$LOCK" 2>/dev/null)"
|
|
83
|
+
PRIOR_ARTIFACT_DIGEST="$(jq -r '.artifact.digest // ""' "$LOCK" 2>/dev/null)"
|
|
78
84
|
fi
|
|
79
85
|
|
|
80
86
|
PROFILE="${PROFILE:-starter}"
|
|
@@ -94,6 +100,60 @@ while IFS= read -r k; do [[ -n "$k" ]] && KITS+=("$k"); done < <(profile_kits "$
|
|
|
94
100
|
[[ ${#KITS[@]} -gt 0 ]] || die "profile '$PROFILE' resolves to no kit in this payload" \
|
|
95
101
|
"every kit a profile names must exist in the package payload; this one names none that do."
|
|
96
102
|
|
|
103
|
+
# spec: installer/README.md §The gate binary — the host answers what platform this is, so the answer stays a local and is never persisted: a stored copy is stale the first time a vendored tree moves between machines, which is the case that matters most. Two fields rather than `uname -a` because that is the smallest input answering the question and the one a PowerShell half can answer without parsing prose
|
|
104
|
+
target_of_host() { # -> the Rust target triple this host is, empty when it maps to none
|
|
105
|
+
case "$(uname -s 2>/dev/null)/$(uname -m 2>/dev/null)" in
|
|
106
|
+
Linux/x86_64) printf 'x86_64-unknown-linux-gnu' ;;
|
|
107
|
+
Linux/aarch64|Linux/arm64) printf 'aarch64-unknown-linux-gnu' ;;
|
|
108
|
+
Darwin/x86_64) printf 'x86_64-apple-darwin' ;;
|
|
109
|
+
Darwin/arm64) printf 'aarch64-apple-darwin' ;;
|
|
110
|
+
*) : ;;
|
|
111
|
+
esac
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
ARTIFACT_SRC=""; ARTIFACT_PATH=""; ARTIFACT_TARGET=""; ARTIFACT_DIGEST=""; OMIT_REASON=""
|
|
115
|
+
|
|
116
|
+
# spec: installer/README.md §The gate binary — selection has three outcomes and collapsing any two is the defect, which is why the payload's roster copy is read rather than a directory's presence inferred from: without it a platform that was never committed to and one whose artifact went missing look identical, and reading the second as the first turns a broken payload into a silently smaller green battery
|
|
117
|
+
select_artifact() {
|
|
118
|
+
local roster target src want got names
|
|
119
|
+
if [[ ! -d "$PAYLOAD/artifact" ]]; then
|
|
120
|
+
OMIT_REASON="substrate-unavailable"
|
|
121
|
+
return 0
|
|
122
|
+
fi
|
|
123
|
+
roster="$PAYLOAD/artifact/targets.list"
|
|
124
|
+
[[ -f "$roster" ]] || die "this payload carries prebuilt gate binaries but no target roster" \
|
|
125
|
+
"the roster is copied verbatim beside them at pack time; artifacts without one cannot be selected from and the payload is broken, not narrower."
|
|
126
|
+
target="$(target_of_host)"
|
|
127
|
+
if [[ -z "$target" ]] || ! grep -Ev '^[[:space:]]*(#|$)' "$roster" | grep -qxF "$target"; then
|
|
128
|
+
OMIT_REASON="substrate-unavailable"
|
|
129
|
+
return 0
|
|
130
|
+
fi
|
|
131
|
+
src="$PAYLOAD/artifact/$target"
|
|
132
|
+
mapfile -t names < <(find "$src" -maxdepth 1 -type f ! -name '*.sha256' -printf '%P\n' 2>/dev/null | sort)
|
|
133
|
+
[[ ${#names[@]} -eq 1 && -f "$src/${names[0]}.sha256" ]] \
|
|
134
|
+
|| die "the payload declares $target but carries no complete artifact for it" \
|
|
135
|
+
"a declared target whose binary or .sha256 sidecar is missing is a publisher defect you cannot act on — refusing rather than installing a battery that silently shrank." 1
|
|
136
|
+
if [[ -z "$(digest_hasher)" ]]; then
|
|
137
|
+
OMIT_REASON="digest-unverifiable"
|
|
138
|
+
return 0
|
|
139
|
+
fi
|
|
140
|
+
want="$(awk 'NR==1{print $1}' "$src/${names[0]}.sha256")"
|
|
141
|
+
got="$(digest_of "$src/${names[0]}")"
|
|
142
|
+
[[ -n "$want" && "$want" == "$got" ]] \
|
|
143
|
+
|| die "the prebuilt gate binary for $target does not match its published digest" \
|
|
144
|
+
"nothing unverified is ever written, so this refuses rather than warning. Re-download the package; a persistent mismatch means the artifact was altered after it was built." 1
|
|
145
|
+
ARTIFACT_SRC="$src/${names[0]}"
|
|
146
|
+
ARTIFACT_PATH="$GATES_DIR/${names[0]}"
|
|
147
|
+
ARTIFACT_TARGET="$target"
|
|
148
|
+
ARTIFACT_DIGEST="$got"
|
|
149
|
+
}
|
|
150
|
+
select_artifact
|
|
151
|
+
|
|
152
|
+
# spec: installer/README.md §What init seeds — a starting-roster member whose implementation is a binary subcommand is what an omission omits; the payload's own declaration decides, so nothing here maintains a second roster of which gates are ported
|
|
153
|
+
dispatches_to_binary() { # $1 = kit, $2 = gate name -> 0 iff the payload declares it as a binary subcommand
|
|
154
|
+
[[ -f "$PAYLOAD/$1/checks/$2.gate" && ! -f "$PAYLOAD/$1/checks/$2.sh" ]]
|
|
155
|
+
}
|
|
156
|
+
|
|
97
157
|
prior_hash() { # $1 = repo-relative path -> the hash the manifest recorded for it, empty when unrecorded
|
|
98
158
|
[[ -n "$PRIOR_FILES" ]] || return 0
|
|
99
159
|
while IFS=$'\t' read -r p h; do
|
|
@@ -101,6 +161,15 @@ prior_hash() { # $1 = repo-relative path -> the hash the manifest recorded for
|
|
|
101
161
|
done <<<"$PRIOR_FILES"
|
|
102
162
|
}
|
|
103
163
|
|
|
164
|
+
WRITTEN=()
|
|
165
|
+
declare -A CARRIED=()
|
|
166
|
+
# spec: installer/README.md §The manifest — a recorded hash is what init last wrote at that path, so an entry init did not write this run — because it refused the write, or because this payload no longer ships the path — carries its hash forward verbatim instead of letting manifest() hash the tree at emit time: hashing the tree there would file the adopter's own content as init's, and the next run would find cur == want, claim the path and overwrite it silently
|
|
167
|
+
record() { # $1 = repo-relative path, $2 = the hash to emit for it; omitted, the tree is hashed at emit time
|
|
168
|
+
WRITTEN+=("$1")
|
|
169
|
+
[[ -n "${2:-}" ]] && CARRIED["$1"]="$2"
|
|
170
|
+
return 0
|
|
171
|
+
}
|
|
172
|
+
|
|
104
173
|
# spec: installer/README.md §init — the non-destructive re-run: a file whose recorded hash still matches is init's to rewrite, one that has changed since is the adopter's and is reported rather than overwritten
|
|
105
174
|
CHANGED=()
|
|
106
175
|
claim() { # $1 = repo-relative path -> 0 iff init may write it
|
|
@@ -112,12 +181,11 @@ claim() { # $1 = repo-relative path -> 0 iff init may write it
|
|
|
112
181
|
[[ "$cur" == "$want" ]] && return 0
|
|
113
182
|
(( FORCE )) && return 0
|
|
114
183
|
CHANGED+=("$1")
|
|
184
|
+
# spec: installer/README.md §The manifest — the carry-forward belongs to the refusal itself rather than to each caller, because this is the single point where the roster would otherwise lose the path and every call site refuses through it: absence of a key reads as "never installed" on the next run, which is the one reading that lets init overwrite the adopter with no report at all. Recording on the refusal is also what makes the exit condition below a strict subset — a live path is in WRITTEN either way, so only relinquished ones reach the carry-forward loop
|
|
185
|
+
record "$1" "$want"
|
|
115
186
|
return 1
|
|
116
187
|
}
|
|
117
188
|
|
|
118
|
-
WRITTEN=()
|
|
119
|
-
record() { WRITTEN+=("$1"); }
|
|
120
|
-
|
|
121
189
|
copy_in() { # $1 = source file, $2 = repo-relative destination
|
|
122
190
|
claim "$2" || return 0
|
|
123
191
|
(( DRY )) || { mkdir -p "$ROOT/$(dirname "$2")" && cp "$1" "$ROOT/$2"; } || die "could not write $2"
|
|
@@ -135,14 +203,22 @@ done
|
|
|
135
203
|
mkdir -p "$ROOT/$GATES_DIR" "$ROOT/.workflow" 2>/dev/null
|
|
136
204
|
GATES_LIST="$GATES_DIR/gates.list"
|
|
137
205
|
if claim "$GATES_LIST"; then
|
|
206
|
+
# spec: installer/README.md §The gate binary — an omitted member rides the registry rather than a new file: `# omitted: <name> <reason>` is a comment line the runner already strips from the live set, so the record sits in the consumer's tracked history where a reviewer reads it, and a re-run on a machine that has since gained a hasher converts it back into a live member with no hand edit
|
|
138
207
|
plan_gates() {
|
|
208
|
+
local m
|
|
139
209
|
printf '%s\n' "# Checkwright gate registry — written by 'checkwright init' (profile: $PROFILE)." \
|
|
140
210
|
"# Each kit's starting subset; its README names the full roster to grow into."
|
|
141
211
|
for kit in "${KITS[@]}"; do
|
|
142
212
|
mapfile -t g < <(recipe_gates "$kit")
|
|
143
213
|
[[ ${#g[@]} -gt 0 ]] || continue
|
|
144
214
|
printf '# %s\n' "$kit"
|
|
145
|
-
|
|
215
|
+
for m in "${g[@]}"; do
|
|
216
|
+
if [[ -n "$OMIT_REASON" ]] && dispatches_to_binary "$kit" "$m"; then
|
|
217
|
+
printf '# omitted: %s %s\n' "$m" "$OMIT_REASON"
|
|
218
|
+
else
|
|
219
|
+
printf '%s\n' "$m"
|
|
220
|
+
fi
|
|
221
|
+
done
|
|
146
222
|
done
|
|
147
223
|
}
|
|
148
224
|
(( DRY )) || plan_gates > "$ROOT/$GATES_LIST" || die "could not write $GATES_LIST"
|
|
@@ -150,19 +226,19 @@ if claim "$GATES_LIST"; then
|
|
|
150
226
|
fi
|
|
151
227
|
|
|
152
228
|
for kit in "${KITS[@]}"; do
|
|
229
|
+
# spec: installer/README.md §What init seeds — the recipe's plan channel is performed here, in the parent shell, and that is load-bearing rather than stylistic: the producer sits inside a process substitution, where every record() and CHANGED append would be discarded, so the plan may be produced in a subshell and the writes may not
|
|
153
230
|
while IFS= read -r p; do
|
|
154
231
|
[[ -n "$p" ]] || continue
|
|
155
|
-
|
|
232
|
+
if [[ "$p" == *$'\t'* ]]; then
|
|
233
|
+
IFS=$'\t' read -r seam_src seam_dest <<<"$p"
|
|
234
|
+
copy_in "$seam_src" "$seam_dest"
|
|
235
|
+
else
|
|
236
|
+
claim "$p" && record "$p"
|
|
237
|
+
fi
|
|
156
238
|
done < <(
|
|
239
|
+
# spec: installer/README.md §init — --dry-run resolves the same seam plan the real run would, out of the same enumerator rather than a second spelling of the glob: copy_in already writes nothing under --dry-run, so the plan needs no dry variant and cannot drift from the run it predicts
|
|
240
|
+
recipe_config_seam_plan "$PAYLOAD/$kit" "$GATES_DIR"
|
|
157
241
|
if (( DRY )); then
|
|
158
|
-
# spec: installer/README.md §init — --dry-run resolves the same seam plan the real run would, by listing what each recipe would touch without letting it write
|
|
159
|
-
recipe_config_seam_names() {
|
|
160
|
-
local t
|
|
161
|
-
shopt -s nullglob
|
|
162
|
-
for t in "$PAYLOAD/$kit"/templates/*-config.sh; do printf '%s/%s\n' "$GATES_DIR" "${t##*/}"; done
|
|
163
|
-
shopt -u nullglob
|
|
164
|
-
}
|
|
165
|
-
recipe_config_seam_names
|
|
166
242
|
recipe_needs_queue "$kit" && [[ ! -f "$ROOT/$QUEUE_FILE" ]] && printf '%s\n' "$QUEUE_FILE"
|
|
167
243
|
case "$kit" in
|
|
168
244
|
gate-sdk) printf '%s/msg-patterns.list\n' "$GATES_DIR" ;;
|
|
@@ -171,7 +247,6 @@ for kit in "${KITS[@]}"; do
|
|
|
171
247
|
doctrine-kit) printf '%s\n' "$AGENT_FILE" ;;
|
|
172
248
|
esac
|
|
173
249
|
else
|
|
174
|
-
recipe_config_seam "$PAYLOAD/$kit" "$ROOT" "$GATES_DIR" || die "could not seed $kit's config seam"
|
|
175
250
|
if recipe_needs_agent_file "$kit" && [[ ! -f "$ROOT/$AGENT_FILE" ]]; then
|
|
176
251
|
# spec: installer/README.md §What init seeds — the seeded agent file carries the section heading context-kit's brevity gate reads by default, so the gate init registers has the surface it was pointed at from the first commit
|
|
177
252
|
printf '%s\n' "# $AGENT_FILE" "" \
|
|
@@ -186,29 +261,55 @@ for kit in "${KITS[@]}"; do
|
|
|
186
261
|
)
|
|
187
262
|
done
|
|
188
263
|
|
|
189
|
-
# spec: installer/README.md §
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
264
|
+
# spec: installer/README.md §The gate binary — the write comes after every config seam is in place and before the hook is generated, because the generator resolves each member's invocation argv and a `.gate` member resolves to this binary: the knob must name it and the file must be there, or the generator reports a dispatch it cannot make
|
|
265
|
+
SEAM="$GATES_DIR/gate-sdk-config.sh"
|
|
266
|
+
if [[ -n "$ARTIFACT_TARGET" ]]; then
|
|
267
|
+
if claim "$ARTIFACT_PATH"; then
|
|
268
|
+
if (( ! DRY )); then
|
|
269
|
+
# spec: installer/README.md §The manifest — an on-disk artifact that still verifies against the recorded digest is not rewritten, which is what makes a bare re-run leave the tree byte-identical
|
|
270
|
+
if [[ "$PRIOR_ARTIFACT_TARGET" != "$ARTIFACT_TARGET" \
|
|
271
|
+
|| "$PRIOR_ARTIFACT_DIGEST" != "$ARTIFACT_DIGEST" \
|
|
272
|
+
|| ! -f "$ROOT/$ARTIFACT_PATH" \
|
|
273
|
+
|| "$(digest_of "$ROOT/$ARTIFACT_PATH")" != "$ARTIFACT_DIGEST" ]]; then
|
|
274
|
+
cp "$ARTIFACT_SRC" "$ROOT/$ARTIFACT_PATH" && chmod +x "$ROOT/$ARTIFACT_PATH" \
|
|
275
|
+
|| die "could not write $ARTIFACT_PATH"
|
|
276
|
+
fi
|
|
277
|
+
fi
|
|
278
|
+
record "$ARTIFACT_PATH"
|
|
279
|
+
fi
|
|
280
|
+
# spec: gate-sdk/SPEC.md §Layout and configuration — the install location has one owner and it is this knob, which is why the lock records no path: a consumer's binary sits in their gates directory while the knob's default names the crate's build output, and only the seam can say so without relocating it for every existing reader
|
|
281
|
+
if claim "$SEAM"; then
|
|
282
|
+
if (( ! DRY )); then
|
|
283
|
+
{
|
|
284
|
+
# spec: gate-sdk/SPEC.md §Layout and configuration — the seam is a sourced shell file, so it carries the same two directives every kit's shipped config template carries: without them the consumer's own check-shellcheck reds on the file init just wrote them
|
|
285
|
+
[[ -f "$ROOT/$SEAM" ]] || printf '%s\n' \
|
|
286
|
+
"# shellcheck shell=bash" \
|
|
287
|
+
"# shellcheck disable=SC2034 # consumed by gate-sdk/lib/gate.sh after sourcing"
|
|
288
|
+
[[ -f "$ROOT/$SEAM" ]] && grep -v '^GATE_SDK_NATIVE_BIN=' "$ROOT/$SEAM"
|
|
289
|
+
printf 'GATE_SDK_NATIVE_BIN=%s\n' "$ARTIFACT_PATH"
|
|
290
|
+
} > "$ROOT/$SEAM.tmp" \
|
|
291
|
+
&& mv "$ROOT/$SEAM.tmp" "$ROOT/$SEAM" || die "could not write $SEAM"
|
|
292
|
+
fi
|
|
293
|
+
printf '%s\n' "${WRITTEN[@]}" | grep -qxF "$SEAM" || record "$SEAM"
|
|
294
|
+
fi
|
|
295
|
+
fi
|
|
296
|
+
|
|
297
|
+
# spec: installer/README.md §The manifest — the roster's exit condition, and it is the whole rule: init owns a path because it wrote the file there, so ownership ends when the file leaves the tree and at no other moment. Dropping an entry would disown a file init created, and an uninstall reading this roster would then leave it behind. A payload that stops shipping a path is not that moment either — the file is still on disk, it may carry the adopter's edits, and disowning it is precisely what lets a later payload re-adding the same path write straight through them. So membership and existence are the only tests: every path this payload still ships has already reached claim(), which records it on the write and on the refusal alike, leaving exactly the paths no copy_in visited this run to reach here
|
|
195
298
|
if [[ -n "$PRIOR_FILES" ]]; then
|
|
196
299
|
while IFS=$'\t' read -r p h; do
|
|
197
300
|
[[ -n "$p" ]] || continue
|
|
198
|
-
under_kit "$p" && continue
|
|
199
301
|
printf '%s\n' "${WRITTEN[@]}" | grep -qxF "$p" && continue
|
|
200
302
|
[[ -f "$ROOT/$p" ]] || continue
|
|
201
|
-
|
|
202
|
-
record "$p"
|
|
303
|
+
record "$p" "$h"
|
|
203
304
|
done <<<"$PRIOR_FILES"
|
|
204
305
|
fi
|
|
205
306
|
|
|
206
307
|
# spec: installer/README.md §init — the generated projections are produced by the vendored tools themselves, never restated by the installer: the hook generator and the graph emitter are gate-sdk's, so a consumer's artifacts are the ones their own gate-sdk makes
|
|
207
|
-
GENERATED=("$GATES_DIR/git-hooks/pre-commit" "
|
|
308
|
+
GENERATED=("$GATES_DIR/git-hooks/pre-commit" "$GATES_DIR/CHECK-GRAPH.html")
|
|
208
309
|
if (( ! DRY )); then
|
|
209
310
|
( cd "$ROOT" && bash "$ROOT/gate-sdk/bin/gen-pre-commit.sh" --write ) >/dev/null \
|
|
210
311
|
|| die "gate-sdk's hook generator failed"
|
|
211
|
-
( cd "$ROOT" && bash "$ROOT/gate-sdk/checks/check-graph.sh" --emit ) > "$ROOT
|
|
312
|
+
( cd "$ROOT" && bash "$ROOT/gate-sdk/checks/check-graph.sh" --emit ) > "$ROOT/$GATES_DIR/CHECK-GRAPH.html" \
|
|
212
313
|
|| die "gate-sdk's graph emitter failed"
|
|
213
314
|
fi
|
|
214
315
|
[[ -f "$ROOT/$GATES_DIR/git-hooks/commit-msg" ]] && GENERATED+=("$GATES_DIR/git-hooks/commit-msg")
|
|
@@ -217,6 +318,16 @@ for g in "${GENERATED[@]}"; do
|
|
|
217
318
|
record "$g"
|
|
218
319
|
done
|
|
219
320
|
|
|
321
|
+
# spec: installer/README.md §The manifest — what init wrote this run is a subset of the roster it records, because a path left alone for the adopter and a path this payload no longer ships are both carried forward rather than written; the two part company here so every reader downstream takes the one it means, and staging takes the written set: folding an adopter's file into the vendoring commit is what the clean-worktree precondition exists to prevent
|
|
322
|
+
STAGE=()
|
|
323
|
+
for f in "${WRITTEN[@]}"; do [[ -n "${CARRIED[$f]:-}" ]] || STAGE+=("$f"); done
|
|
324
|
+
|
|
325
|
+
files_hash() { # $1 = repo-relative path -> the hash its files[] entry carries
|
|
326
|
+
[[ -n "${CARRIED[$1]:-}" ]] && { printf '%s' "${CARRIED[$1]}"; return 0; }
|
|
327
|
+
(( DRY )) && [[ ! -f "$ROOT/$1" ]] && { printf '(pending)'; return 0; }
|
|
328
|
+
lock_hash "$ROOT/$1"
|
|
329
|
+
}
|
|
330
|
+
|
|
220
331
|
manifest() {
|
|
221
332
|
local f
|
|
222
333
|
{
|
|
@@ -232,18 +343,29 @@ manifest() {
|
|
|
232
343
|
(( first )) || printf ','
|
|
233
344
|
first=0
|
|
234
345
|
printf '%s:%s' "$(jq -Rn --arg v "$f" '$v')" \
|
|
235
|
-
"$(jq -Rn --arg v "$(
|
|
346
|
+
"$(jq -Rn --arg v "$(files_hash "$f")" '$v')"
|
|
236
347
|
done
|
|
237
|
-
printf '}
|
|
348
|
+
printf '}'
|
|
349
|
+
# spec: installer/README.md §The manifest — the binary is neither vendored nor generated, so it joins as its own key rather than a files[] row: a files[] entry means hashed with git hash-object and rewritten when unmodified, and this one is hashed with SHA-256 against a published value and rewritten on a different rule. Its absence on a run that omitted the artifact is the omission's machine-readable form
|
|
350
|
+
[[ -n "$ARTIFACT_TARGET" ]] && printf ',"artifact":{"target":%s,"digest":%s}' \
|
|
351
|
+
"$(jq -Rn --arg v "$ARTIFACT_TARGET" '$v')" \
|
|
352
|
+
"$(jq -Rn --arg v "$ARTIFACT_DIGEST" '$v')"
|
|
353
|
+
printf '}'
|
|
238
354
|
} | jq -S .
|
|
239
355
|
}
|
|
240
356
|
|
|
241
357
|
if (( DRY )); then
|
|
242
358
|
printf 'checkwright init --dry-run (profile: %s, version: %s)\n\n' "$PROFILE" "$VERSION"
|
|
243
359
|
printf 'would vendor %d kit(s): %s\n' "${#KITS[@]}" "${KITS[*]}"
|
|
244
|
-
printf 'would write %d file(s), including:\n' "$(( ${#
|
|
360
|
+
printf 'would write %d file(s), including:\n' "$(( ${#STAGE[@]} + 1 ))"
|
|
245
361
|
printf ' %s\n' "$GATES_LIST" "$CHECKWRIGHT_LOCK_FILE"
|
|
246
362
|
for kit in "${KITS[@]}"; do printf ' %s/ (%d files)\n' "$kit" "$(find "$PAYLOAD/$kit" -type f | wc -l)"; done
|
|
363
|
+
if [[ -n "$ARTIFACT_TARGET" ]]; then
|
|
364
|
+
printf '\nwould place the %s gate binary at %s (digest verified against the payload sidecar)\n' \
|
|
365
|
+
"$ARTIFACT_TARGET" "$ARTIFACT_PATH"
|
|
366
|
+
else
|
|
367
|
+
printf '\nwould omit the prebuilt gate binary (%s) and declare it in %s\n' "$OMIT_REASON" "$GATES_LIST"
|
|
368
|
+
fi
|
|
247
369
|
if [[ ${#CHANGED[@]} -gt 0 ]]; then
|
|
248
370
|
printf '\nwould leave %d changed file(s) alone (--force to overwrite):\n' "${#CHANGED[@]}"
|
|
249
371
|
printf ' %s\n' "${CHANGED[@]}"
|
|
@@ -256,6 +378,7 @@ fi
|
|
|
256
378
|
|
|
257
379
|
manifest > "$LOCK" || die "could not write $CHECKWRIGHT_LOCK_FILE"
|
|
258
380
|
WRITTEN+=("$CHECKWRIGHT_LOCK_FILE")
|
|
381
|
+
STAGE+=("$CHECKWRIGHT_LOCK_FILE")
|
|
259
382
|
|
|
260
383
|
if [[ ${#CHANGED[@]} -gt 0 ]]; then
|
|
261
384
|
printf '\n%d file(s) have changed since init wrote them and were left alone:\n' "${#CHANGED[@]}"
|
|
@@ -263,7 +386,7 @@ if [[ ${#CHANGED[@]} -gt 0 ]]; then
|
|
|
263
386
|
printf ' help: review the differences; re-run with --force to take the packaged version.\n\n'
|
|
264
387
|
fi
|
|
265
388
|
|
|
266
|
-
git -C "$ROOT" add -- "${
|
|
389
|
+
git -C "$ROOT" add -- "${STAGE[@]}" || die "could not stage the vendored files"
|
|
267
390
|
|
|
268
391
|
# spec: installer/README.md §init — idempotence is a property of the tree, so a re-run that changed nothing reports and exits clean rather than failing on an empty commit: "nothing to do" is the success case, not an error
|
|
269
392
|
if git -C "$ROOT" diff --cached --quiet; then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "checkwright",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Vendors pinned Checkwright kit source into your repository and commits it — a coding-agent-assisted delivery methodology (gate SDK, evidence-stamped lifecycle, agent context economics).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"README.md"
|
|
20
20
|
],
|
|
21
21
|
"checkwright": {
|
|
22
|
-
"commit": "
|
|
22
|
+
"commit": "fe7f425c5f7f37fac130a86310cd6e3854976b2e"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Checkwright's gate-binary target roster — gate-sdk/SPEC.md §Consumer payload.
|
|
2
|
+
# One Rust target triple per line; `#`-comments and blank lines are stripped,
|
|
3
|
+
# the same line grammar scripts/gates.list uses. This file is the single surface
|
|
4
|
+
# asserting which platforms a released gate binary is built for: the publish
|
|
5
|
+
# workflow derives its build matrix from it, and the installer reads the payload
|
|
6
|
+
# copy of it to tell "this platform was never committed to" (omit and declare)
|
|
7
|
+
# from "committed to, artifact missing" (a broken payload).
|
|
8
|
+
#
|
|
9
|
+
# It ships one target, and the grounds are measured rather than cautious:
|
|
10
|
+
# - x86_64-unknown-linux-gnu is the only platform .github/workflows/ has a
|
|
11
|
+
# runner for — every job is ubuntu-latest and no other runner is declared.
|
|
12
|
+
# - It is the only platform this repo has green evidence for at all: every
|
|
13
|
+
# gate run, fixture suite, consumer smoke and CI leg is Linux.
|
|
14
|
+
# - WSL is Linux and resolves to this same target, so docs/install.md
|
|
15
|
+
# §Requirements' Windows-through-WSL claim is served exactly as far as that
|
|
16
|
+
# page already claims and no further; native Windows waits on
|
|
17
|
+
# `powershell-installer-surface`.
|
|
18
|
+
# - A macOS target would be built on a runner no workflow has, and
|
|
19
|
+
# cross-compiling one from ubuntu-latest is worse than omitting it: it would
|
|
20
|
+
# publish an artifact no run has ever executed.
|
|
21
|
+
#
|
|
22
|
+
# This is not a narrowing of the trajectory — the objectives are the direction
|
|
23
|
+
# and this roster is the tree. A one-target roster makes the omit-and-declare
|
|
24
|
+
# path the normal path for a macOS adopter on day one, which ships that path
|
|
25
|
+
# exercised rather than as the dead code the vacuous-green class exists to
|
|
26
|
+
# refuse. A target joins only when a green run has produced and exercised its
|
|
27
|
+
# artifact, and never beyond what docs/install.md §Requirements already states;
|
|
28
|
+
# the widening trigger is `platform-support-ci-matrix` landing a CI leg, after
|
|
29
|
+
# which widening is one line here plus one runner mapping.
|
|
30
|
+
x86_64-unknown-linux-gnu
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
abd7d4e0bdbd1b24a73eb86f3deb3a4203b381df4928043ac1d16ff9dc53eaff checkwright-gates
|
|
@@ -42,6 +42,7 @@ reads the tag syntax [queue-kit](../queue-kit/) defines.
|
|
|
42
42
|
check-prose-enum # partial enumeration of a governed set
|
|
43
43
|
check-md-refs # internal markdown links resolve
|
|
44
44
|
check-install-claim # one declared primary install transport, led with everywhere
|
|
45
|
+
check-payload-claim # one declared payload-disclosure class, asserted nowhere else
|
|
45
46
|
check-spec-fence-balance # even fence counts, parsers never desync
|
|
46
47
|
check-docs-link-convention # needs a docs site (cite-downward links)
|
|
47
48
|
check-prose-tells # needs prose surfaces (mechanical AI-prose tells)
|