verify-console
Skill4 starsChanged 11 days agoMITView on GitHub
Verify the thirdshift Console and its HTTP API against isolated faux Command records on an ephemeral port. Use when changing src/console.rs, src/console/, src/config/console.rs, src/config/console/, or console/.
- Reads credentials
- Deletes or force-pushes
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- site/llms.txtllms.txt
- ask-mattSkill
- chief-of-staffSkill
- claude-handoffSkill
- codebase-designSkill
- code-reviewSkill
- create-formal-verification-skillSkill
- create-verification-skillSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- explainer-videoSkill
- fleet-stewardSkill
- git-guardrails-claude-codeSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- loop-meSkill
- maintain-formal-verification-skillSkill
- maintain-verification-skillSkill
- migrate-to-shoehornSkill
- prototypeSkill
- prSkill
- researchSkill
- retroSkill
- scaffold-exercisesSkill
- security-auditSkill
- setup-matt-pocock-skillsSkill
- setup-pre-commitSkill
- setup-ts-deep-modulesSkill
- tddSkill
- teachSkill
- to-questionnaireSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- verify-pickupSkill
- verify-siteSkill
- verify-uiSkill
- wait-whatSkill
- wayfinderSkill
- wizardSkill
- writing-beatsSkill
- writing-for-agentsSkill
- writing-fragmentsSkill
- writing-shapeSkill
- thirdshift-codebase-designSkill
- thirdshift-code-reviewSkill
- thirdshift-diagnosing-bugsSkill
- thirdshift-implementSkill
- thirdshift-improve-codebase-architectureSkill
- thirdshift-prSkill
- thirdshift-resolving-merge-conflictsSkill
- thirdshift-security-auditSkill
- thirdshift-tddSkill
- thirdshift-to-questionnaireSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Run verification inside one ( ...
- Distinctive: line 65
Run this read-only health check before the first drive and after any failure:
- Very specific: line 87
Follow verify-ui (Factory: thirdshift-verify-ui) for the two-phase verification workflow against features/README.md.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Verify Console
Drive the live thirdshift console server against isolated faux Command records and a local stub gh. Every command runs inside one ( ... ) subshell that binds an OS-assigned ephemeral loopback port, owns its temporary HOME, and tears down the server and browser before exiting while keeping proof captures intact.
Launch
- Build the binary when
target/debug/thirdshift(or$THIRDSHIFT_BINARY) is missing or stale, and ensureconsole/node_modulesis installed:
cargo build --locked
test -d console/node_modules || npm ci --prefix console- Run verification inside one
( ... )subshell withtrap cleanup EXITregistered before starting the server or any browser daemon:
(
set -eu
state_dir=$(mktemp -d "${TMPDIR:-/tmp}/verify-console-state.XXXXXX")
server_pid=''
cleanup() {
if [ -n "$server_pid" ] && kill -0 "$server_pid" 2>/dev/null; then
kill "$server_pid" 2>/dev/null || true
wait "$server_pid" 2>/dev/null || true
fi
rm -rf "$state_dir"
}
trap cleanup EXIT
node .agents/skills/verify-console/scripts/seed-home.cjs "$state_dir"
# No host verify-env file is sourced: seed-home.cjs stubs gh and seeds faux local data
# under HOME="$state_dir" (leave Launch-directory .env files untouched).
HOME="$state_dir" PATH="$state_dir/bin:$PATH" \
"${THIRDSHIFT_BINARY:-./target/debug/thirdshift}" console --no-sign-in \
>"$state_dir/console.out" 2>"$state_dir/console.err" &
server_pid=$!
origin=''
for _ in $(seq 1 100); do
kill -0 "$server_pid" 2>/dev/null || { cat "$state_dir/console.err" >&2; exit 1; }
origin=$(head -n 1 "$state_dir/console.out" 2>/dev/null || true)
case "$origin" in
http://127.0.0.1:[0-9]*) break ;;
esac
sleep 0.1
done
case "$origin" in
http://127.0.0.1:[0-9]*) ;;
*) echo "Console failed to report ephemeral origin" >&2; cat "$state_dir/console.err" >&2; exit 1 ;;
esac
# Pass --sign-in to seed-home.cjs and omit --no-sign-in when verifying sign-in.
)Set THIRDSHIFT_CONSOLE_ASSETS=src/console/assets in the server command only when verifying uncompiled CSS/JS asset edits in debug builds.
Doctor
Run this read-only health check before the first drive and after any failure:
kill -0 "$server_pid"
# --no-sign-in mode:
whoami_json=$(curl -fsS "$origin/api/v1/whoami")
printf '%s' "$whoami_json" | grep -q '"api_version":"v1"'
inbox_html=$(curl -fsS "$origin/")
printf '%s' "$inbox_html" | grep -q 'acme/widgets'In --sign-in mode, replace the --no-sign-in HTTP checks above with:
test "$(curl -sS -o /dev/null -w '%{http_code}' "$origin/")" = 303
test "$(curl -sS -o /dev/null -w '%{http_code}' "$origin/api/v1/whoami")" = 401
sign_in_html=$(curl -fsS "$origin/sign-in")
printf '%s' "$sign_in_html" | grep -q 'Sign in'Drive
Follow verify-ui (Factory: thirdshift-verify-ui) for the two-phase verification workflow against features/README.md. Console-specific rules:
- Interactive exploration: resolve Playwright from
$(pwd)/console/node_modules/playwright(or drive with@playwright/cli/agent-browserand stop any daemon incleanup). Keep default CSP enabled during exploration so real CSP regressions surface; on/waterfall, clickingZoom timeline around this call/Zoom out to whole CommandrunsIdiomorph.morphon inline-styled bars (src/console/assets/spans.js), emitting expectedstyle-src 'self'console errors — filter those/waterfallinline-style zoom messages only when zooming while keeping strict zero-error checks across all other Console routes. - Clean walkthrough pass: inspect
console/package.jsonto followverify-ui/thirdshift-verify-uifor recording annotations (showActionsvs init-script fallback), and passbypassCSP: trueon the Phase 2 recording context only so the Console'sstyle-src 'self'CSP does not block Playwright'sshowActionsoverlay.
Evidence
Create proof paths outside $state_dir via mktemp (for example "${TMPDIR:-/tmp}/after-desktop.XXXXXX.png" and "${TMPDIR:-/tmp}/after-desktop.XXXXXX.mp4") so Cleanup preserves them. Record only faux seed-home.cjs state (never capture real ~/.thirdshift/console-accounts.json or live host data), then defer transcoding, capture pairing, and gh --attach PR publishing (ADR 0034) to verify-ui (Factory: thirdshift-verify-ui) and pr (Factory: thirdshift-pr).
Cleanup
The single trap cleanup EXIT handler stops and waits for $server_pid (and any CLI browser daemon), closes Playwright contexts/browser in finally, removes $state_dir (and any temporary scripts), leaves $shot and $video intact at their mktemp paths, and verifies zero server or browser child processes remain after exit (kill -0 "$server_pid" fails).
Helpers
node .agents/skills/verify-console/scripts/seed-home.cjs <mktemp-home-dir> [--sign-in]— executable helper that seeds.thirdshift/config.toml(port = 0), faux Command records/logs/traces/spans (acme/widgets#7,#8,#9andacme/gadgets#10), a local stubgh, and (with--sign-in) fauxconsole-accounts.json(owner@example.test/browser test password).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

