Repository navigation
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·423 lines (398 loc) · 17.7 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·423 lines (398 loc) · 17.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
#!/usr/bin/env bash
set -euo pipefail
SOURCE_ROOT=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)
INSTANCE_ROOT=$(pwd -P)
SETUP_RUNTIME_HOST=true
RUN_VERIFICATION=true
RELEASE_VERSION=${THE8020_RELEASE_VERSION:-}
for argument in "$@"; do
case "$argument" in
--instance-root=*) INSTANCE_ROOT=${argument#--instance-root=} ;;
--skip-runtime-host) SETUP_RUNTIME_HOST=false ;;
--skip-verification) RUN_VERIFICATION=false ;;
--help)
echo "usage: ./install.sh [--instance-root=<path>] [--skip-runtime-host] [--skip-verification]"
exit 0
;;
*) echo "unknown install option: $argument" >&2; exit 2 ;;
esac
done
if [[ ! -f "$SOURCE_ROOT/AGENTS.md" || ! -f "$SOURCE_ROOT/go.mod" || ! -d "$SOURCE_ROOT/kernel/cbus/gen" ]]; then
echo "80|20 installation source is incomplete: $SOURCE_ROOT" >&2
exit 1
fi
if [[ -n "$RELEASE_VERSION" && ! "$RELEASE_VERSION" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then
echo "THE8020_RELEASE_VERSION must contain exactly major.minor without leading zeroes" >&2
exit 1
fi
if [[ -n "$RELEASE_VERSION" && -n "${THE8020_BOOTSTRAP_SOURCE_ROOT:-}" ]]; then
echo "THE8020_RELEASE_VERSION cannot be combined with THE8020_BOOTSTRAP_SOURCE_ROOT" >&2
exit 1
fi
if ! command -v git >/dev/null 2>&1; then
echo "git is required to inspect and synchronize 80|20 packages" >&2
exit 1
fi
if ! git --version >/dev/null 2>&1; then
echo "git is installed but cannot be executed" >&2
exit 1
fi
# A Docker build runs on the build host; the container entrypoint checks the
# host that runs the image.
if [[ ${THE8020_OUTER_CONTAINER_BUILD:-false} != true ]]; then
"$BASH" "$SOURCE_ROOT/docker/rootfs/usr/local/bin/the8020-check-cpu" || exit 1
fi
if [[ ! -d "$INSTANCE_ROOT" ]]; then
echo "instance root does not exist: $INSTANCE_ROOT" >&2
exit 1
fi
INSTANCE_ROOT=$(cd -- "$INSTANCE_ROOT" && pwd -P)
if [[ -L "$INSTANCE_ROOT/node/kernel/current" ]]; then
echo "this instance uses kernel releases; update it with node/kernel/scripts/update.sh" >&2
exit 1
fi
cd "$SOURCE_ROOT"
if [[ $(uname -s) == Linux ]] && ! command -v bzip2 >/dev/null 2>&1; then
if [[ $EUID != 0 ]] || ! command -v apt-get >/dev/null 2>&1; then
echo "bzip2 is required to unpack the portable gVisor runtime; install it and retry" >&2
exit 1
fi
apt-get update
apt-get install --yes --no-install-recommends bzip2
fi
DEVELOPMENT_DIR="$SOURCE_ROOT/.development"
TOOLCHAIN_DIR="$DEVELOPMENT_DIR/toolchains/go"
TEMP_DIR="$DEVELOPMENT_DIR/tmp"
RUNTIME_SOURCE="$SOURCE_ROOT/defaults/config/runtime"
mkdir -p \
"$DEVELOPMENT_DIR/cache/go-build" \
"$DEVELOPMENT_DIR/cache/go-mod" \
"$DEVELOPMENT_DIR/bin" \
"$DEVELOPMENT_DIR/generated" \
"$TEMP_DIR"
GO_VERSION=$(tr -d '[:space:]' < "$SOURCE_ROOT/.go-version")
if [[ ! "$GO_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo ".go-version must contain a full Go version" >&2
exit 1
fi
go_is_compatible() {
local candidate=${1#go}
local required=$2
local candidate_major candidate_minor candidate_patch
local required_major required_minor required_patch
IFS=. read -r candidate_major candidate_minor candidate_patch <<< "$candidate"
IFS=. read -r required_major required_minor required_patch <<< "$required"
[[ "$candidate_major" =~ ^[0-9]+$ && "$candidate_minor" =~ ^[0-9]+$ && "$candidate_patch" =~ ^[0-9]+$ ]] || return 1
(( candidate_major > required_major )) ||
(( candidate_major == required_major && candidate_minor > required_minor )) ||
(( candidate_major == required_major && candidate_minor == required_minor && candidate_patch >= required_patch ))
}
GO_CMD=""
if command -v go >/dev/null 2>&1 && go_is_compatible "$(go env GOVERSION 2>/dev/null || true)" "$GO_VERSION"; then
GO_CMD=$(command -v go)
elif [[ -x "$TOOLCHAIN_DIR/bin/go" && "$($TOOLCHAIN_DIR/bin/go env GOVERSION 2>/dev/null || true)" == "go$GO_VERSION" ]]; then
GO_CMD="$TOOLCHAIN_DIR/bin/go"
else
case "$(uname -s)-$(uname -m)" in
Linux-x86_64)
PLATFORM="linux-amd64"
CHECKSUM="5c2c3b16caefa1d968a94c1daca04a7ca301a496d9b086e17ad77bb81393f053"
;;
Linux-aarch64|Linux-arm64)
PLATFORM="linux-arm64"
CHECKSUM="fe4789e92b1f33358680864bbe8704289e7bb5fc207d80623c308935bd696d49"
;;
Darwin-x86_64)
PLATFORM="darwin-amd64"
CHECKSUM="6231d8d3b8f5552ec6cbf6d685bdd5482e1e703214b120e89b3bf0d7bf725"
;;
Darwin-arm64)
PLATFORM="darwin-arm64"
CHECKSUM="efb87ff28af9a188d0536ef5d42e63dd52ba8263cd7344a993cc48dd11dedb6a"
;;
*)
echo "no local Go toolchain download is defined for $(uname -s)-$(uname -m)" >&2
exit 1
;;
esac
ARCHIVE="$TEMP_DIR/go$GO_VERSION.$PLATFORM.tar.gz"
URL="https://go.dev/dl/go$GO_VERSION.$PLATFORM.tar.gz"
if command -v curl >/dev/null 2>&1; then
curl --fail --location --retry 3 --output "$ARCHIVE" "$URL"
elif command -v wget >/dev/null 2>&1; then
wget --output-document="$ARCHIVE" "$URL"
else
echo "curl or wget is required to download the local Go toolchain" >&2
exit 1
fi
if command -v sha256sum >/dev/null 2>&1; then
printf '%s %s\n' "$CHECKSUM" "$ARCHIVE" | sha256sum --check --status
else
[[ "$(shasum -a 256 "$ARCHIVE" | awk '{print $1}')" == "$CHECKSUM" ]]
fi
if [[ -e "$TOOLCHAIN_DIR" ]]; then
rm -rf -- "$TOOLCHAIN_DIR"
fi
mkdir -p "$(dirname "$TOOLCHAIN_DIR")"
tar -xzf "$ARCHIVE" -C "$(dirname "$TOOLCHAIN_DIR")"
rm -f -- "$ARCHIVE"
GO_CMD="$TOOLCHAIN_DIR/bin/go"
fi
export GOCACHE="$DEVELOPMENT_DIR/cache/go-build"
export GOMODCACHE="$DEVELOPMENT_DIR/cache/go-mod"
export GOWORK=off
echo "platform build [1/5]: generating protocols and building Go binaries" >&2
"$GO_CMD" mod download
"$GO_CMD" mod verify
THE8020_BUILD_GO="$GO_CMD" "$SOURCE_ROOT/build.sh"
KERNEL="$DEVELOPMENT_DIR/bin/kernel"
KERNEL_CONFIG="$INSTANCE_ROOT/kernel.toml"
NEW_LAYOUT=false
if [[ ! -f "$KERNEL_CONFIG" ]]; then
NEW_LAYOUT=true
echo "platform build [2/5]: initializing instance layout" >&2
"$KERNEL" --root "$INSTANCE_ROOT" --init-defaults --init-only
else
echo "platform build [2/5]: using initialized instance layout" >&2
fi
if [[ ! -f "$KERNEL_CONFIG" ]]; then
echo "kernel initialization did not create $KERNEL_CONFIG" >&2
exit 1
fi
PACKAGES_ROOT="$INSTANCE_ROOT/packages"
if [[ ! -d "$PACKAGES_ROOT" || ! -d "$INSTANCE_ROOT/users" ]]; then
echo "initialized layout is missing its package or user root" >&2
exit 1
fi
NODE_KERNEL="$INSTANCE_ROOT/node/kernel"
NODE_RUNTIME="$NODE_KERNEL/runtime"
RUNTIME_DEFINITIONS="$NODE_RUNTIME/definitions"
mkdir -p "$NODE_RUNTIME/images/rootless" "$NODE_RUNTIME/images/full" "$NODE_RUNTIME/images/development" "$NODE_KERNEL/bin"
for binary in kernel admin logd; do
install -m 0555 "$DEVELOPMENT_DIR/bin/$binary" "$NODE_KERNEL/bin/$binary.new"
mv -f -- "$NODE_KERNEL/bin/$binary.new" "$NODE_KERNEL/bin/$binary"
done
mkdir -p "$NODE_KERNEL/scripts/update"
for script in update.sh update.ts launch.sh refresh-development-scripts.sh; do
install -m 0555 "$SOURCE_ROOT/defaults/kernel-scripts/$script" "$NODE_KERNEL/scripts/$script"
done
cp -a "$SOURCE_ROOT/defaults/kernel-scripts/update/." "$NODE_KERNEL/scripts/update/"
install -m 0444 "$SOURCE_ROOT/defaults/bootstrap-packages.toml" "$NODE_KERNEL/scripts/bootstrap-packages.toml"
# Refresh the platform-owned development helpers.
bash "$SOURCE_ROOT/install-development-assets.sh" "$INSTANCE_ROOT"
# A fresh node stages the immutable bootstrap package set once. The database
# records desired and active packages during first boot and is authoritative
# thereafter. Local source roots are a development/test input only.
if [[ "$NEW_LAYOUT" == true ]]; then
BOOTSTRAP_SOURCE_ROOT=${THE8020_BOOTSTRAP_SOURCE_ROOT:-"$(dirname "$SOURCE_ROOT")"}
while IFS=$'\t' read -r package_id package_source package_version; do
[[ -n "$package_id" && -n "$package_source" ]] || continue
if [[ ! "$package_id" =~ ^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$ ]]; then
echo "invalid bootstrap package ID: $package_id" >&2
exit 1
fi
namespace=${package_id%%/*}
repository=${package_id#*/}
namespace_root="$PACKAGES_ROOT/$namespace"
destination="$namespace_root/$repository"
[[ ! -e "$destination" ]] || continue
install -d -m 0755 "$namespace_root"
package_stage=$(mktemp -d "$namespace_root/.${repository}.install.XXXXXX")
local_source=""
if [[ -z "$RELEASE_VERSION" ]]; then
local_source="$BOOTSTRAP_SOURCE_ROOT/$repository"
if [[ ! -f "$local_source/package.toml" ]]; then
local_source="$BOOTSTRAP_SOURCE_ROOT/$namespace/$repository"
fi
fi
if [[ -n "$local_source" && -f "$local_source/package.toml" ]]; then
cp -a "$local_source/." "$package_stage/"
rm -rf -- "$package_stage/.git" "$package_stage/.development" "$package_stage/node_modules"
elif [[ -n "$RELEASE_VERSION" || -n "$package_version" ]]; then
if [[ -n "$package_version" ]]; then
[[ "$package_version" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]] || {
echo "invalid bootstrap package version: $package_id@$package_version" >&2
exit 1
}
resolution=$(git ls-remote --tags "$package_source" "refs/tags/$package_version" "refs/tags/$package_version^{}")
package_tag=$package_version
package_commit=$(awk '{value=$1} END {print value}' <<< "$resolution")
[[ "$package_commit" =~ ^[0-9a-f]{40,64}$ ]] || { echo "missing bootstrap package tag: $package_id@$package_tag" >&2; exit 1; }
else
resolution=$("$SOURCE_ROOT/release-tag.sh" package "$RELEASE_VERSION" "$package_source")
IFS=$'\t' read -r package_tag package_commit <<< "$resolution"
fi
git clone --quiet --no-checkout -- "$package_source" "$package_stage"
git -C "$package_stage" reset --quiet --hard "$package_tag^{commit}"
installed_commit=$(git -C "$package_stage" rev-parse --verify 'HEAD^{commit}')
if [[ "$installed_commit" != "$package_commit" ]]; then
rm -rf -- "$package_stage"
echo "bootstrap package tag changed while cloning: $package_id@$package_tag" >&2
exit 1
fi
git -C "$package_stage" config --local the8020.requestedTag "$package_tag"
else
git clone --quiet -- "$package_source" "$package_stage"
fi
if [[ ! -f "$package_stage/package.toml" ]]; then
rm -rf -- "$package_stage"
echo "bootstrap package is missing package.toml: $package_id" >&2
exit 1
fi
# Local workspace snapshots include current uncommitted development source.
# Give that exact snapshot a real commit so the database never needs a
# second, filesystem-only package identity and later activation works
# through the same Git path as remote packages.
if [[ ! -d "$package_stage/.git" ]]; then
git -C "$package_stage" init --quiet --initial-branch=main
git -C "$package_stage" add --all
GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' \
GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' \
git -C "$package_stage" \
-c user.name='80|20 Installer' \
-c user.email='installer@the8020.local' \
-c commit.gpgsign=false \
commit --quiet --message='Bootstrap package snapshot'
fi
mv -- "$package_stage" "$destination"
done < <(awk -F '"' '
/^\[\[packages\]\]$/ { if (id != "") print id "\t" source "\t" version; id=""; source=""; version=""; next }
/^id[[:space:]]*=/ { id=$2; next }
/^source[[:space:]]*=/ { source=$2; next }
/^version[[:space:]]*=/ { version=$2; next }
END { if (id != "") print id "\t" source "\t" version }
' "$SOURCE_ROOT/defaults/bootstrap-packages.toml")
fi
# Runtime definitions and source are one platform-owned build-input tree.
# Replace it atomically so removed tracked files cannot survive indefinitely in
# an existing instance.
RUNTIME_DEFINITIONS_STAGE=$(mktemp -d "$NODE_RUNTIME/.definitions-install.XXXXXX")
RUNTIME_DEFINITIONS_PREVIOUS=""
cleanup_runtime_refresh() {
if [[ -n "$RUNTIME_DEFINITIONS_STAGE" && -e "$RUNTIME_DEFINITIONS_STAGE" ]]; then
rm -rf -- "$RUNTIME_DEFINITIONS_STAGE"
fi
if [[ -n "$RUNTIME_DEFINITIONS_PREVIOUS" && -e "$RUNTIME_DEFINITIONS_PREVIOUS" && ! -e "$RUNTIME_DEFINITIONS" ]]; then
mv -- "$RUNTIME_DEFINITIONS_PREVIOUS" "$RUNTIME_DEFINITIONS"
fi
}
trap cleanup_runtime_refresh EXIT
chmod 0755 "$RUNTIME_DEFINITIONS_STAGE"
while IFS= read -r -d '' directory; do
relative=${directory#"$RUNTIME_SOURCE"/}
[[ "$directory" == "$RUNTIME_SOURCE" ]] && relative=""
install -d -m 0755 "$RUNTIME_DEFINITIONS_STAGE/$relative"
done < <(find "$RUNTIME_SOURCE" -name node_modules -prune -o -type d -print0)
while IFS= read -r -d '' source; do
relative=${source#"$RUNTIME_SOURCE"/}
install -m 0644 "$source" "$RUNTIME_DEFINITIONS_STAGE/$relative"
done < <(find "$RUNTIME_SOURCE" -name node_modules -prune -o -type f -print0)
if [[ -e "$RUNTIME_DEFINITIONS" ]]; then
RUNTIME_DEFINITIONS_PREVIOUS="$NODE_RUNTIME/.definitions-previous.$$"
if [[ -e "$RUNTIME_DEFINITIONS_PREVIOUS" ]]; then
echo "runtime definition backup path already exists: $RUNTIME_DEFINITIONS_PREVIOUS" >&2
exit 1
fi
mv -- "$RUNTIME_DEFINITIONS" "$RUNTIME_DEFINITIONS_PREVIOUS"
fi
if ! mv -- "$RUNTIME_DEFINITIONS_STAGE" "$RUNTIME_DEFINITIONS"; then
exit 1
fi
RUNTIME_DEFINITIONS_STAGE=""
if [[ -n "$RUNTIME_DEFINITIONS_PREVIOUS" ]]; then
rm -rf -- "$RUNTIME_DEFINITIONS_PREVIOUS"
RUNTIME_DEFINITIONS_PREVIOUS=""
fi
trap - EXIT
if [[ ! -f "$RUNTIME_DEFINITIONS/versions.toml" || ! -f "$RUNTIME_DEFINITIONS/image/Containerfile" || ! -f "$RUNTIME_DEFINITIONS/image/deno.json" ]]; then
echo "instance runtime definitions are incomplete: $RUNTIME_DEFINITIONS" >&2
exit 1
fi
echo "platform build [3/5]: refreshing portable generic runtime image" >&2
bash "$RUNTIME_SOURCE/install-portable.sh" \
"$SOURCE_ROOT" \
"$NODE_RUNTIME/images/rootless" \
"$RUNTIME_DEFINITIONS/versions.toml" \
"$RUNTIME_DEFINITIONS/image/Containerfile" \
"$RUNTIME_DEFINITIONS/image/deno.json" \
"$NODE_RUNTIME" \
"$NODE_KERNEL/bin/runsc"
echo "platform build [4/5]: refreshing portable development image" >&2
bash "$RUNTIME_SOURCE/development/install-portable.sh" \
"$SOURCE_ROOT" \
"$RUNTIME_DEFINITIONS/development" \
"$NODE_RUNTIME/images/development" \
"$RUNTIME_DEFINITIONS/versions.toml" \
"$NODE_RUNTIME"
has_effective_capability() {
local bit=$1 hex nibble_index nibble mask
hex=$(awk '$1 == "CapEff:" { print $2; exit }' /proc/self/status 2>/dev/null || true)
[[ "$hex" =~ ^[0-9a-fA-F]+$ ]] || return 1
nibble_index=$(( ${#hex} - 1 - bit / 4 ))
(( nibble_index >= 0 )) || return 1
nibble=$((16#${hex:nibble_index:1}))
mask=$((1 << (bit % 4)))
(( (nibble & mask) != 0 ))
}
full_runtime_host_available() {
[[ $(uname -s) == Linux && ${EUID:-$(id -u)} -eq 0 ]] || return 1
[[ -f /sys/fs/cgroup/cgroup.controllers ]] || return 1
awk '$2 == "/sys/fs/cgroup" && $4 ~ /(^|,)rw(,|$)/ { found=1 } END { exit !found }' /proc/mounts || return 1
has_effective_capability 21 || return 1
has_effective_capability 12 || return 1
}
FULL_RUNTIME_HOST=false
REQUESTED_RUNTIME_MODE=${THE8020_SANDBOX_RUNTIME_MODE:-auto}
if [[ "$SETUP_RUNTIME_HOST" == true && "$REQUESTED_RUNTIME_MODE" != rootless ]] && full_runtime_host_available; then
bash "$RUNTIME_SOURCE/install-host.sh" "$SOURCE_ROOT" "$RUNTIME_DEFINITIONS/versions.toml" "$NODE_RUNTIME"
FULL_RUNTIME_HOST=true
elif [[ "$REQUESTED_RUNTIME_MODE" == full ]]; then
echo "full sandbox mode was requested but SYS_ADMIN, NET_ADMIN, and writable cgroup v2 authority are unavailable" >&2
exit 1
else
echo "sandbox install mode: rootless gVisor (full host authority unavailable or skipped)" >&2
fi
if [[ "$FULL_RUNTIME_HOST" == true ]]; then
INSTANCE_UUID=$(sed -nE 's/^id[[:space:]]*=[[:space:]]*"([^"]+)"$/\1/p' "$KERNEL_CONFIG" | head -n 1)
if [[ -z "$INSTANCE_UUID" ]]; then
echo "node identity is missing" >&2
exit 1
fi
bash "$RUNTIME_SOURCE/build-image.sh" \
"$SOURCE_ROOT" "$RUNTIME_DEFINITIONS/image" "$NODE_RUNTIME/images/full" \
"$RUNTIME_DEFINITIONS/versions.toml" "$NODE_RUNTIME" "$INSTANCE_UUID"
bash "$RUNTIME_SOURCE/development/build-image.sh" \
"$SOURCE_ROOT" "$RUNTIME_DEFINITIONS/development" "$NODE_RUNTIME/images/development" \
"$RUNTIME_DEFINITIONS/versions.toml" "$NODE_RUNTIME"
fi
echo "platform build [5/5]: verifying platform artifacts" >&2
if [[ "$RUN_VERIFICATION" == true ]]; then
"$GO_CMD" test ./kernel/...
"$GO_CMD" -C "$DEVELOPMENT_DIR/generated" test -mod=readonly ./...
DENO_CMD="$NODE_RUNTIME/images/rootless/rootfs/usr/bin/deno"
if [[ ! -x "$DENO_CMD" ]]; then
echo "verified portable runtime does not contain Deno" >&2
exit 1
fi
export DENO_DIR="$NODE_RUNTIME/verification-deno-cache"
(cd "$RUNTIME_SOURCE/deno" && "$DENO_CMD" task check && "$DENO_CMD" task test)
sh -n "$SOURCE_ROOT/defaults/scripts/activate"
bash -n "$SOURCE_ROOT/defaults/scripts/install-codex.sh"
bash -n "$SOURCE_ROOT/defaults/scripts/install-claude.sh"
bash -n "$SOURCE_ROOT/defaults/scripts/development-init.sh"
bash -n "$SOURCE_ROOT/defaults/scripts/setup-agent-skills.sh"
bash -n "$SOURCE_ROOT/install-development-assets.sh"
bash -n "$SOURCE_ROOT/release-tag.sh"
bash -n "$SOURCE_ROOT/release-tag_test.sh"
"$SOURCE_ROOT/release-tag_test.sh"
"$DENO_CMD" fmt --check "$SOURCE_ROOT/defaults/scripts/activate.ts"
"$DENO_CMD" lint "$SOURCE_ROOT/defaults/scripts/activate.ts"
"$DENO_CMD" check "$SOURCE_ROOT/defaults/scripts/activate.ts"
bash -n "$SOURCE_ROOT/defaults/kernel-scripts/update.sh" "$SOURCE_ROOT/defaults/kernel-scripts/launch.sh"
"$DENO_CMD" fmt --check "$SOURCE_ROOT/defaults/kernel-scripts"
"$DENO_CMD" lint --no-config "$SOURCE_ROOT/defaults/kernel-scripts"
"$DENO_CMD" check --no-config "$SOURCE_ROOT/defaults/kernel-scripts/update.ts"
"$DENO_CMD" test --no-config -A "$SOURCE_ROOT/defaults/kernel-scripts/update_test.ts"
else
echo "platform verification gates skipped; required binaries and images are current" >&2
fi