brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
tiltupUse when starting tilt, debugging Tiltfile errors, or bootstrapping a dev environment. Starts Tilt in zmx, monitors bootstrap to healthy state, fixes Tiltfile bugs without hard-coding or fallbacks.
Independent GitHub snapshot · Automated classification · Original documentation governs
These apply whenever working with Tiltfiles, Tilt errors, or dev environment bootstrap:
|| true, no try/except passresource_deps() or k8s_resource(deps=)k8s_resource(readiness_probe=) or probe configsresource_deps(), not sequential startup scriptssilo.toml or gen-env output, not inline defaultsimage_deps or deps, not sleep-until-readyAfter editing a Tiltfile, Tilt picks up changes automatically. Never restart tilt up for:
Restart only for: Tilt version upgrades, port/host config changes, crashes, cluster context switches.
Check if tilt is already running:
PROJECT=$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" || basename "$PWD")
zmx list --short 2>/dev/null | grep -q "^${PROJECT}-tiltquot;
If running, check health via tilt get uiresources -o json and skip to Step 3.
Check for required env files (.localnet.env, .env.local, silo.toml):
silo.toml exists, use silo up pathCheck for k3d cluster or Docker prerequisites.
Follow the zmx skill patterns:
PROJECT=$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" || basename "$PWD")
SESSION="${PROJECT}-tilt"
if zmx list --short 2>/dev/null | grep -q "^${SESSION}quot;; then
echo "Tilt session already exists: $SESSION"
else
zmx run "$SESSION" 'tilt up'
echo "Started tilt in zmx session: $SESSION"
fi
For silo projects: silo up instead of tilt up.
Poll for convergence:
composeResourceInfo.healthStatus) — an Up (unhealthy) compose container
keeps runtimeStatus=ok and is otherwise invisible, so bootstrap can look
"done" while canton/splice/postgres are silently failing their HEALTHCHECK:
tilt get uiresources -o json | jq -r '.items[] | select(.status.runtimeStatus == "error" or .status.updateStatus == "error" or .status.updateStatus == "pending" or .status.composeResourceInfo.healthStatus == "unhealthy") | "\(.metadata.name): runtime=\(.status.runtimeStatus) update=\(.status.updateStatus) compose=\(.status.composeResourceInfo.healthStatus // "-")"'
pending -> in_progress -> okruntime=ok, update=ok (or not_applicable)
AND no docker-compose resource is composeResourceInfo.healthStatus == "unhealthy"error, OR a compose resource stays unhealthy,
proceed to Step 4. For an unhealthy compose probe, read the real cause with
docker inspect <compose-project>-<svc> --format '{{json .State.Health}}' —
often the mounted healthcheck script calls a CLI the image lacks (the service
is up; fix the probe script, don't disable the check)For each resource in error state:
tilt logs <resource> --since 2mAfter 3 fix iterations on the same resource without progress:
## Tilt Status: <healthy|degraded|errored>
**Resources**: X/Y ok
**Session**: zmx $SESSION
### Errors (if any)
- <resource>: <root cause> — <what was fixed or what remains>