test-release
Skill24k starsChanged 4 months agoMITView on GitHub
Verify a released archon binary works end-to-end via a specific install path. Use when: cutting a new release, reproducing a user bug report on the released version, or validating that a hotfix binary actually works after a re-tag. Triggers: "test the release", "test 0.3.1 via brew", "verify the curl install", "smoke test the binary", "did the release binary work", "run /test-release", "verify the release". NOT for: testing dev work (use bun link directly), testing unreleased changes (build locally via scripts/build-binaries.sh first), or running the full validate suite (bun run validate is separate).
- Pipes a download into a shell
- Reads credentials
- Deletes or force-pushes
- Installs packages
Trending
Quiet since October.about the whole repository
Who's talking about coleam00/Archon
- @michabbb.bsky.social“runs backend in Docker + frontend locally with hot reload; Makefile with make dev, make test, make lint 📜 …”Bluesky · Apr 11, 2026 · 2 likes
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 coleam00 / Archon ⭐ 14,146 (+138) 🗒 TypeScript The first open-source …”Bluesky · Apr 10, 2026 · 2 likes
- @pythonhub.dev“Archon Archon is an AI agent that is able to create other AI agents using an advanced agentic coding …”Bluesky · Jun 22, 2025 · 2 likes
- A Hacker News story“Open-source harness builder for AI coding”Hacker News · Aug 12, 2026 · 1 points
- @github-trending-js.bsky.social“📦 coleam00 / Archon ⭐ 22,307 (+38) 🗒 TypeScript The first open-source harness builder for AI coding. Make …”Bluesky · Jun 11, 2026 · 1 likes
The biggest 5 of 68 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 68
Talked about on GitHub, Bluesky, the web and Hacker News (68 times).
On GitHub · 50
- May 21, 2026Teardown Request: [Archon] — NeuZhou/awesome-ai-anatomy1 reaction
- Oct 30, 2026agent-skills.github.coleam00.archon: 0.13.0 → 0.13.2 — sudosubin/agents.nix0 reactions
- Oct 28, 2026agent-skills.github.coleam00.archon: 0.12.1 → 0.13.0 — sudosubin/agents.nix0 reactions
- Oct 18, 2026README: cancel の後の run の状態を Archon に合わせる — raiki61/works-factory0 reactions
- Oct 17, 2026agent-skills.github.coleam00.archon: 0.11.1 → 0.12.1 — sudosubin/agents.nix0 reactions
45 more on GitHub
- Oct 13, 2026docs(docs): Phase 4 workflow schema and proposed ADR 0027 — jroquette/agent-hub0 reactions
- Oct 7, 2026What does an Archon run record: its graph, run log, files and project? — seanrobertwright/claude-mods0 reactions · 2 comments
- Oct 7, 2026What does Archon expose for watching runs and answering approvals? — seanrobertwright/claude-mods0 reactions · 1 comment
- Oct 5, 2026Bun.YAML.parse folds multiline quoted scalars differently for CRLF and LF — oven-sh/bun0 reactions
- Oct 4, 2026ai skills — uinstinct/aiskills0 reactions
- Oct 3, 2026agent-skills.github.coleam00.archon: 0.10.1 → 0.11.1 — sudosubin/agents.nix0 reactions
- Sep 29, 2026Docs: per-task domain and workflow detection — jose-compu/trek0 reactions · 1 comment
- Sep 26, 2026agent-skills.github.coleam00.archon: init at 0.10.1 — sudosubin/agents.nix0 reactions
- Sep 25, 2026Pin and verify the classified Archon contract — ArnaudLafosse92100/ai-software-factory0 reactions
- Sep 24, 2026[draft] Core: refuse unreachable managed-path repoint + clean refused registration (cole #3405/#3442) — kevinle128/Archon0 reactions
- Sep 22, 2026[draft] WE: honor loop config + nested loop_group include boundaries (cole #3406/#3248) — kevinle128/Archon0 reactions
- Sep 22, 2026[draft] WE: unify host execution/resume + one-run resume identity (cole #3347/#3407/#3337) — kevinle128/Archon0 reactions
- Sep 19, 2026Replace the AGENTS object literal with a small provider registry (registerAgent/getAgentAdapter) — tbrandenburg/node-red-agents0 reactions
- Sep 11, 2026[draft] WE: packaged scripts share .shared modules across workflows (cole #3252) — kevinle128/Archon0 reactions
- Sep 7, 2026[draft] Observability: active_nodes + project-scoped workflow status (cole #3116/#3121) — kevinle128/Archon0 reactions
- Sep 7, 2026[draft] CLI/WE: workflow wait + transcript follow + exec_output retention (cole #2923/#3096/#2983) — kevinle128/Archon0 reactions
- Sep 7, 2026[draft] WE: run adoption + ADOPTED_RUN_DIR (cole #2792/#3085) — kevinle128/Archon0 reactions
- Sep 7, 2026[draft] WE: run-owned frozen workflow source (cole #2660) — kevinle128/Archon0 reactions
- Sep 7, 2026[draft] WE: ResolvedWorkflow GraphPlan for exec/dry-run (cole #3081) — kevinle128/Archon0 reactions
- Sep 7, 2026[draft] WE: durable waits + action-required CI/delivery pause (cole #2779/#3115) — kevinle128/Archon0 reactions · 2 comments
- Sep 7, 2026[draft] WE: mount run ARTIFACTS_DIR into container runs (cole #3134) — kevinle128/Archon0 reactions · 2 comments
- Sep 7, 2026[draft] WE: authored outcome axis (persist → surfaces → dry-run) (cole #2652/#3082/#3110) — kevinle128/Archon0 reactions · 2 comments
- Sep 7, 2026[draft] WE: producer-owned result contracts + artifact pointers (cole #3158/#3148/#3143) — kevinle128/Archon0 reactions · 2 comments
- Aug 12, 2026Pin claude-opus-5 to orchestrator chat — Thummpy/archon_core0 reactions
- Jun 9, 2026docs(archon): add Archon service documentation page — coollabsio/coolify-docs0 reactions
- Jun 5, 2026content(tools): add Archon — JSONbored/awesome-claude0 reactions · 3 comments
- Jun 4, 2026[P2] Reject unknown /workflow run flags before -- delimiter — brAperia2025/Archon0 reactions
- Jun 4, 2026[P2] Do not let PRD lease finalization failures mask workflow outcomes — brAperia2025/Archon0 reactions
- Jun 4, 2026[P2] Prevent same-run PRD lease refresh from reviving released leases — brAperia2025/Archon0 reactions
- Jun 4, 2026[P1] Terminalize pre-created background workflow run when PRD lease acquisition fails — brAperia2025/Archon0 reactions
- Jun 4, 2026[P1] Terminalize workflow run when onWorkflowRunCreated startup hook fails — brAperia2025/Archon0 reactions
- Jun 4, 2026[P1] Keep CLI PRD lease acquisition and cleanup in one execution scope — brAperia2025/Archon0 reactions
- Jun 4, 2026[P1] Release PRD execution leases on CLI abandon/reject cancellation paths — brAperia2025/Archon0 reactions
- Jun 4, 2026[P1] Enforce codebase ownership for explicit workflow resume by run ID — brAperia2025/Archon0 reactions
- Jun 4, 2026[P1] Harden workflow API PRD option token validation — brAperia2025/Archon0 reactions
- Jun 3, 2026[Add] Archon (coleam00/Archon) — PyTorchKR/landscape0 reactions
- May 27, 2026这么多高赞的面向 AI coding 的 open sources,到底是谁在用啊?真的有效果吗? — ThaddeusJiang/handmade-DevNote0 reactions
- May 23, 2026feat(archon): master-loop workflow + gotchas registry — Elvis-codeur/agent-workflow0 reactions
- May 8, 2026feat: Digesting RuFlo and Archon — siddsachar/row-bot0 reactions · 2 comments
- May 1, 2026Tribute 2026-05-01: Archon by Cole Medin — Talonsturgill/signalsniper0 reactions
- Apr 14, 2026📱 SNS 콘텐츠 - 2026-04-14 19:16 KST — leaf468/autothreads0 reactions
- Apr 14, 2026🤖 AI 트렌드 리포트 - 2026-04-14 19:16 KST — leaf468/autothreads0 reactions
- Apr 11, 2026Archon ビジュアル解説ページ(docs/archon.html)と index 更新 — 53able/docs-site0 reactions
- Apr 11, 2026Github trending [coleam00/Archon] 专为AI编程设计的开源工作流引擎 — web1992/github-trending0 reactions
- Apr 11, 2026📱 SNS 콘텐츠 - 2026-04-11 18:41 KST — leaf468/autothreads0 reactions
On Bluesky · 11
- Apr 11, 2026runs backend in Docker + frontend locally with hot reload; Makefile with make dev, make test, make lint 📜 Archon Community License (ACL)… — @michabbb.bsky.social2 likes and reposts
- Apr 10, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 coleam00 / Archon ⭐ 14,146 (+138) 🗒 TypeScript The first open-source harness builder for AI coding.… — @github-trending-js.bsky.social2 likes and reposts
- Jun 22, 2025Archon Archon is an AI agent that is able to create other AI agents using an advanced agentic coding workflow and framework knowledge base… — @pythonhub.dev2 likes and reposts
- Jun 11, 2026📦 coleam00 / Archon ⭐ 22,307 (+38) 🗒 TypeScript The first open-source harness builder for AI coding. Make AI coding deterministic and… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Apr 14, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 coleam00 / Archon ⭐ 17,444 (+679) 🗒 TypeScript The first open-source harness builder for AI coding.… — @github-trending-js.bsky.social1 likes and repost · 1 reply
6 more on Bluesky
- Apr 9, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 coleam00 / Archon ⭐ 14,071 (+138) 🗒 TypeScript The first open-source harness builder for AI coding.… — @github-trending.bsky.social1 likes and repost
- Mar 23, 2026https://github.com/coleam00/Archon — @tom-doerr.bsky.social1 likes and repost
- Aug 16, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 coleam00 / Archon ⭐ 6,025 (+318) 🗒 Python Beta release of Archon OS - the knowledge and task… — @github-trending.bsky.social1 likes and repost
- Jun 13, 2025Meet Archon: the world’s first “Agenteer”—an AI designed to autonomously build, refine & optimize other AI agents. Now at v6 with prebuilt… — @ipolyzos.com1 likes and repost
- Mar 17, 2025github.com/coleam00/Arc... AI Agent Builder Archonは、他のAIエージェントを自律的に構築、改良、最適化するための最初のAIエージェントです。… — @uzulla.bsky.social1 likes and repost
- Apr 13, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 coleam00 / Archon ⭐ 17,393 (+612) 🗒 TypeScript The first open-source harness builder for AI coding.… — @github-trending.bsky.social0 likes and reposts · 1 reply
On the web · 5
- Aug 19, 2026Raghav Agrawal - @impactology — x.com
- May 10, 2026YAML Workflow Engine for Deterministic AI Coding Agents — betterstack.com
- Apr 11, 2026Archon for Beginners: Git Worktrees for Isolation + DAG ... — openclawapi.org
- Apr 11, 2026Archon: The First Open-Source Harness Builder for AI Coding — pyshine.com
- Apr 9, 2026Open Source Harness Builder for AI Coding | Cole Medin ... — linkedin.com
On Hacker News · 2
- Aug 12, 2026Open-source harness builder for AI coding1 point
- Mar 4, 2025Archon – AI Agent Builder1 point
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- archon-cliSkill
- docker-extendSkill
- playwright-cliSkill
- releaseSkill
- rulecheckSkill
- triageSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 14 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Every path installs the binary, runs a fixed smoke test suite, and cleans up.
- Distinctive: line 55
Run this before tagging a release to catch build-time-constant issues locally.
- Distinctive: line 73
If any argument is missing, ask the user for clarification BEFORE doing anything.
- Distinctive: line 88
Do not continue without explicit confirmation.
- Distinctive: line 103
Verify prerequisites for the chosen path:
- Distinctive: line 115
If the release does not exist or has no assets, abort with a clear message.
- Very specific: line 117
Detect persistent
archon-stableinstall (brew path only): If the user has renamed a prior brew install to archon-stable (the … - Very specific: line 163
Verify $BINARY exists and is executable.
- Distinctive: line 167
Run the install script on the VPS:
- Very specific: line 199
Run these in order against $BINARY (or ssh <target> $REMOTE_BINARY for curl-vps).
- Distinctive: line 225
Create a temporary git repository so the CLI has something to operate on:
- Distinctive: line 240
No errors about missing workflow files or JSON parse failures
- Very specific: line 302
If you *do* have claudeBinaryPath set globally, skip this test or temporarily rename ~/.archon/config.yaml.
- Distinctive: line 306
Create a second throwaway repo with a fake sensitive key:
- Very specific: line 367
No strip line at all → the guard is not active.
- Distinctive: line 388
No errors (the list may be empty if no worktrees have been created, which is fine)
- Distinctive: line 411
Verify the dev binary is still the default:
- Distinctive: line 463
Next steps: if FAIL, suggest concrete actions (file a hotfix issue, re-tag, check the build workflow, etc.)
- Very specific: line 528
Never touch the dev
bun linkbinary: Always use the installed binary path for Phase 4 tests. - Distinctive: line 529
Clean up on failure: If Phase 4 fails mid-way, still run Phase 5 so the next run starts clean.
- Distinctive: line 531
Explicit confirmation before install: Never surprise the user by installing a second binary.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Test Release
Automated smoke test for a released archon binary. Covers three install paths:
brew— Homebrew tap on macOS (tests the formula and checksums)curl-mac—curl install.shon macOS (tests the install script, sandboxed to a temp dir)curl-vps—curl install.shon a remote Linux VPS (tests the Linux binary and full install path)
Every path installs the binary, runs a fixed smoke test suite, and cleans up. The dev bun link binary is never touched and remains the default archon on PATH throughout.
When NOT to use this skill:
- There is no release yet — build a local binary via
bash scripts/build-binaries.shand run it fromdist/binaries/directly - You want to test the dev clone — use
bun run validateor invoke source directly viabun packages/cli/src/cli.ts - You want to test the full server + web UI deploy flow — use the cloud-init from
deploy/cloud-init.ymlon a real VPS
Local build for pre-release QA
To build a binary locally with the exact same flags and constants that CI uses,
invoke scripts/build-binaries.sh directly. The script supports two modes:
# Multi-target mode (builds all 4 local platforms into dist/binaries/)
VERSION=0.3.1 GIT_COMMIT=abc12345 bash scripts/build-binaries.sh
# Single-target mode (matches one CI matrix job)
VERSION=0.3.1 \
GIT_COMMIT=abc12345 \
TARGET=bun-darwin-arm64 \
OUTFILE=dist/test-archon-darwin-arm64 \
bash scripts/build-binaries.sh
# Verify the binary — use the path from the mode you built:
# multi-target → ./dist/binaries/archon-darwin-arm64
# single-target → the OUTFILE you passed above
./dist/test-archon-darwin-arm64 version
# Expected: Archon CLI v0.3.1, Build: binary, Git commit: abc12345Run this before tagging a release to catch build-time-constant issues locally. The script is the canonical entry point — both local dev and the release workflow call it the same way, so a green local build means the CI build will exercise the same code path.
Phase 1 — Determine scope
Parse the arguments. The skill takes up to three:
- Install path (
brew|curl-mac|curl-vps): which install flow to exercise - Expected version (optional): the version tag the release should report, e.g.
0.3.1. If not provided, fetch it:
gh release list --repo coleam00/Archon --limit 1 --json tagName --jq '.[0].tagName'- VPS target (only for
curl-vps): SSH target in the formuser@hostorhost(uses default SSH config)
If any argument is missing, ask the user for clarification BEFORE doing anything. Never guess the install path or the expected version.
Confirm the plan with the user before proceeding to Phase 2. Output should look like:
About to test:
Path: brew (Homebrew tap on macOS)
Version: 0.3.1 (expected)
Cleanup: will uninstall after tests (brew uninstall + untap)
If `archon-stable` symlink is detected in Phase 2, it will be
restored at the end of Phase 5 by reinstalling the tap formula.
Proceed? (y/N)Do not continue without explicit confirmation. Release testing touches install state and the user should be aware.
Phase 2 — Pre-flight
Before touching anything:
- Capture the current dev binary state for reference:
which -a archon
archon version 2>&1 | head -5Record the path and version of the dev binary so the final report can show "dev binary was untouched".
Verify prerequisites for the chosen path:
- brew:
brew --versionmust succeed. If not, abort with "Homebrew not installed — see https://brew.sh/" - curl-mac:
curl --versionmust succeed (effectively always true on macOS) - curl-vps:
ssh <target> 'uname -a'must succeed. If not, abort with "Cannot SSH to<target>". Also verifyssh <target> 'command -v curl'returns a path.
- brew:
- Confirm the release exists on GitHub:
gh release view v<version> --repo coleam00/Archon --json tagName,assets --jq '{tag: .tagName, assetCount: (.assets | length)}'If the release does not exist or has no assets, abort with a clear message. Do not proceed to install a non-existent release.
- Detect persistent
archon-stableinstall (brew path only). If the user has renamed a prior brew install toarchon-stable(the dual-homebrew pattern — see~/.config/fish/functions/brew-upgrade-archon.fish), Phase 5'sbrew uninstallwill wipe it. Capture the state so Phase 5b can restore it:
ARCHON_STABLE_WAS_INSTALLED=""
if [ -L /opt/homebrew/bin/archon-stable ] || [ -L /usr/local/bin/archon-stable ]; then
ARCHON_STABLE_WAS_INSTALLED="yes"
echo "Detected persistent archon-stable — will restore after Phase 5 uninstall."
fiExport ARCHON_STABLE_WAS_INSTALLED into the environment used by Phase 5b. Only applies to the brew path — curl-mac and curl-vps don't go through brew and don't disturb archon-stable.
Phase 3 — Install
Path: brew
brew tap coleam00/archon
brew install coleam00/archon/archon
BINARY="$(brew --prefix coleam00/archon/archon)/bin/archon"Capture $BINARY for Phase 4. Verify the file exists and is executable.
Path: curl-mac
Install to a dedicated tmp directory so the dev bun link binary stays on PATH unchanged:
INSTALL_DIR=/tmp/archon-test-release-$(date +%s)
mkdir -p "$INSTALL_DIR"
curl -fsSL https://raw.githubusercontent.com/coleam00/Archon/main/scripts/install.sh | INSTALL_DIR="$INSTALL_DIR" bash
BINARY="$INSTALL_DIR/archon"The env var must prefix
bash, notcurl. InVAR=x cmd1 | cmd2the assignment applies only tocmd1, soINSTALL_DIR=… curl … | bashsets it for the download and leaves the installer on its/usr/local/bindefault. The failure is confusing rather than obvious: the script downloads and verifies the checksum, then demands sudo and dies withsudo: a terminal is required to read the password. Observed on the 0.7.1 test.
scripts/install.shcarries the same broken form in its own header example (INSTALL_DIR=~/.local/bin curl -fsSL ... | bash), so users copying it hit this too. Fix both together; see issue #2436.
Verify $BINARY exists and is executable. Capture the install directory for cleanup.
Path: curl-vps
Run the install script on the VPS:
ssh <target> 'curl -fsSL https://raw.githubusercontent.com/coleam00/Archon/main/scripts/install.sh | bash'Determine where the binary landed — install.sh uses /usr/local/bin/archon by default, or falls back to $HOME/.local/bin/archon if /usr/local/bin is not writable:
ssh <target> 'command -v archon'Capture the remote path as $REMOTE_BINARY. For the rest of Phase 4, wrap every command as ssh <target> '<cmd>'.
Capture SHA256 and version
Immediately after install, capture:
# Local paths (brew / curl-mac)
shasum -a 256 "$BINARY" | awk '{print $1}'
"$BINARY" version 2>&1
# Remote path (curl-vps)
ssh <target> "shasum -a 256 $REMOTE_BINARY || sha256sum $REMOTE_BINARY" | awk '{print $1}'
ssh <target> "$REMOTE_BINARY version" 2>&1Record both for the report. The SHA256 lets us confirm later that a user reporting a bug is running the exact same artifact we tested.
Phase 4 — Smoke tests
Run these in order against $BINARY (or ssh <target> $REMOTE_BINARY for curl-vps). Always use the full binary path, never the archon on PATH, so there is no ambiguity about which binary is under test.
Each test should capture the full command output for the final report. If a test fails, continue to the next test (so the report is complete) but mark the overall result as FAIL.
Test 1 — Version reports correctly
"$BINARY" versionPass criteria:
- Exit code 0
- Output contains
Archon CLI v<expected-version> - Output contains
Build: binary(notBuild: source (bun)) - Output contains a non-
unknowngit commit (i.e.,Git commit: <sha>)
Common failures:
- Exit code non-zero → pino-pretty crash (#960) or similar startup failure
- Wrong version reported → binary is stale or the build script failed to update
bundled-build.ts Build: source (bun)→BUNDLED_IS_BINARYwas not set totrueduring the build (regression of #979)Git commit: unknown→ build script did not capture the commit
Test 2 — Bundled workflows load
Create a temporary git repository so the CLI has something to operate on:
TESTREPO=/tmp/archon-test-repo-$(date +%s)
mkdir -p "$TESTREPO"
cd "$TESTREPO"
git init -q
git commit -q --allow-empty -m init
"$BINARY" workflow listPass criteria:
- Exit code 0
- Output lists the bundled
sdlcpack workflows: archon-triage, archon-investigate, archon-plan, archon-implement, archon-pr, archon-review, archon-validate, archon-deliver, archon-upkeep, archon-ship - No errors about missing workflow files or JSON parse failures
Common failures:
- Empty list → bundled defaults were not embedded in the binary (regression of the
isBinaryBuilddetection path) Not in a git repository→ working directory handling bug- Parse errors → the embedded JSON is corrupt or stale
Test 3 — SDK path works (archon-investigate workflow)
Prerequisite. Compiled binaries require Claude Code installed on the host and a configured binary path. Before running this test, ensure one of:
# Option A — env var (easy for ad-hoc testing)
# After the native installer (Anthropic's default):
export CLAUDE_BIN_PATH="$HOME/.local/bin/claude"
# Or after npm global install:
export CLAUDE_BIN_PATH="$(npm root -g)/@anthropic-ai/claude-code/cli.js"
# Option B — config file (persistent)
# Add to ~/.archon/config.yaml:
# assistants:
# claude:
# claudeBinaryPath: /absolute/path/to/claudeThen in the same $TESTREPO:
"$BINARY" workflow run archon-investigate --no-worktree "say hello and nothing else" 2>&1 | tee /tmp/archon-test-investigate.logPass criteria:
- Exit code 0
- The Claude subprocess spawns successfully (no
spawn EACCES,ENOENT, orprocess exited with code 1in the early output) - No
Claude Code CLI not founderror (that means the resolver rejected the configured path — verify the cli.js actually exists) - A response is produced (any response — even just "hello" — proves the SDK round-trip works)
Common failures:
Claude Code not found→CLAUDE_BIN_PATH/claudeBinaryPathis unset or points at a non-existent file. Fix the path and re-run.Module not found "/Users/runner/..."→ regression of #1210: the resolver was bypassed and the SDK'simport.meta.urlfallback leaked a build-host path. Investigatepackages/providers/src/claude/provider.tsand the resolver.Credit balance is too low→ auth is pointing at an exhausted API key (checkCLAUDE_USE_GLOBAL_AUTHand~/.archon/.env)unable to determine transport target for "pino-pretty"→ #960 regression, binary crashes on TTYpackage.json not found (bad installation?)→ #961 regression,isBinaryBuilddetection broken- Process exits before producing output → generic spawn failure, capture stderr
Test 3b — Resolver error path (run without CLAUDE_BIN_PATH)
Quickly verify the resolver fails loud when nothing is configured:
(unset CLAUDE_BIN_PATH; "$BINARY" workflow run archon-investigate --no-worktree "hello" 2>&1 | tee /tmp/archon-test-no-path.log)Pass criteria (when no ~/.archon/config.yaml configures claudeBinaryPath):
- Error message contains
Claude Code not found - Error message mentions both
CLAUDE_BIN_PATHandclaudeBinaryPathas remediation options - No
Module not foundstack traces referencing the CI filesystem
If you do have claudeBinaryPath set globally, skip this test or temporarily rename ~/.archon/config.yaml.
Test 4 — Env-leak guard strips sensitive keys from .env
Create a second throwaway repo with a fake sensitive key:
LEAKREPO=/tmp/archon-test-leak-$(date +%s)
mkdir -p "$LEAKREPO"
cd "$LEAKREPO"
git init -q
git commit -q --allow-empty -m init
printf 'ANTHROPIC_API_KEY=sk-ant-test-fake\n' > .env
"$BINARY" workflow run archon-investigate --no-worktree "hello" 2>&1 | tee /tmp/archon-test-leak.logPass criteria (current behaviour — the guard strips, it does not refuse):
- Output contains a strip line naming the repo and the source file, of the form:
[archon] stripped N keys from <repo> (.env) to prevent target repo env from leaking into Archon processes Nequals the number of keys planted (1 for the.envabove) — a count of0means the file was not read at all, which is a real regression- The workflow is then allowed to proceed and complete normally
Assert on the strip line — pinned to this repo and this key count, so a strip from some other directory cannot produce a false pass. Capture the exit status too: under the strip design the workflow is expected to succeed, so a non-zero exit is its own failure.
"$BINARY" workflow run archon-investigate --no-worktree "hello" > /tmp/archon-test-leak.log 2>&1
leak_exit=$?
# $LEAKREPO may be a symlinked path (/tmp -> /private/tmp on macOS); the binary
# logs the resolved form, so compare against that.
resolved_repo=$(cd "$LEAKREPO" && pwd -P)
expected="[archon] stripped 1 keys from ${resolved_repo} (.env) to prevent target repo env from leaking into Archon processes"
if [ "$leak_exit" -ne 0 ]; then
echo "FAIL: workflow exited $leak_exit — the guard strips and proceeds, it should not abort"
elif grep -qxF "$expected" /tmp/archon-test-leak.log; then
echo "PASS: env-leak guard stripped exactly the planted key from this repo"
else
echo "FAIL: expected strip line absent. Got:"
grep -F '[archon] stripped' /tmp/archon-test-leak.log || echo " (no strip line at all — guard inactive)"
fiAn exact-match assertion is deliberate here. A looser pattern such as
stripped [1-9][0-9]* keys .*\.env passes on any positive count from any
path, so a strip belonging to a different repository — or a count inflated by an
unrelated .env — reads as success while the regression it is meant to catch
goes unnoticed.
History — do not re-assert the old criteria. This test previously expected a refusal (
Cannot add codebase/Cannot run workflow, non-zero exit), which was the #1036/#1038/#983 behaviour. The current design is the two-layer strip guard: the target repo's.envis read, dangerous keys are removed from the environment handed to Archon subprocesses, and the run continues. On the 0.7.1 test the old assertions reported FAIL against a binary whose guard was working correctly — it stripped exactly the 1 planted key. Verify the security property (the key never reaches the subprocess), not the obsolete remediation text.
Common failures:
- No strip line at all → the guard is not active; the
.envis reaching subprocesses stripped 0 keys→ the file was located but not parsed- Strip line names the wrong file or repo → path resolution regression
Clean up the leak test repo:
rm -rf "$LEAKREPO"Test 5 — Isolation list works (sanity check)
In the same $TESTREPO:
"$BINARY" isolation listPass criteria:
- Exit code 0
- No errors (the list may be empty if no worktrees have been created, which is fine)
This catches regressions in the isolation subsystem that would not surface from the other tests.
Test 6 — Cleanup test repos
rm -rf "$TESTREPO"For curl-vps path, also clean up any remote test repos created via SSH.
Phase 5 — Uninstall
Always run uninstall, even if Phase 4 failed. The goal is to leave the system in the same state as before the test.
Path: brew
brew uninstall coleam00/archon/archon
brew untap coleam00/archonVerify the dev binary is still the default:
which -a archon
# should show only the ~/.bun/bin/archon path, not a brew path
archon version | head -1
# should match the dev version captured in Phase 2Restore archon-stable if it existed before the test (dual-homebrew pattern — see Phase 2 item 4):
if [ -n "$ARCHON_STABLE_WAS_INSTALLED" ]; then
echo "Restoring archon-stable (detected before test)..."
brew tap coleam00/archon
brew install coleam00/archon/archon
BREW_BIN="$(brew --prefix)/bin"
if [ -e "$BREW_BIN/archon" ]; then
mv "$BREW_BIN/archon" "$BREW_BIN/archon-stable"
echo "archon-stable restored: $(archon-stable version 2>/dev/null | head -1)"
else
echo "WARNING: brew install succeeded but $BREW_BIN/archon missing — check formula"
fi
fiNote on the restored version: this reinstalls from whatever the tap currently ships, which is typically the release you just tested (so
archon-stableends up at the newly-tested version). That's usually what the operator wants — you just verified the new release works, and you wantarchon-stablepointed at it. If you were testing an older version for back-version QA, the restoredarchon-stablewill be the current tap formula, not the pre-test version. For that rare case, the operator should re-runbrew-upgrade-archonmanually after the test.
Path: curl-mac
rm -rf "$INSTALL_DIR"Path: curl-vps
ssh <target> "sudo rm -f /usr/local/bin/archon || rm -f \$HOME/.local/bin/archon"Optional: the user may want to LEAVE the VPS binary installed for ongoing QA. Ask before removing.
Phase 6 — Report
Produce a structured report with:
- Header: release version tested, install path, timestamp, SHA256 of the tested binary
- Environment: dev binary path + version (proof the dev install was not disturbed)
- Test results table: one row per test with PASS / FAIL / SKIP
- Captured output: for any FAIL, include the exact command, exit code, and last 20 lines of stderr/stdout
- Overall verdict: PASS if all tests passed, FAIL if any test failed
- Next steps: if FAIL, suggest concrete actions (file a hotfix issue, re-tag, check the build workflow, etc.)
Example PASS report:
Test Release Report — archon v0.3.1 via brew
────────────────────────────────────────────
Tested at: 2026-04-08 15:42 UTC
Binary SHA: e62eb73547b3740d56f242859b434a91d3830360a0d18f14de383da0fd7a0be6
Binary path: /opt/homebrew/Cellar/archon/0.3.1/bin/archon
Dev binary: /Users/rasmus/.bun/bin/archon → ../install/.../cli.ts (unchanged)
[PASS] Test 1 version reports 0.3.1, Build: binary, commit abc1234
[PASS] Test 2 workflow list returned 21 bundled workflows
[PASS] Test 3 workflow run archon-investigate produced output
[PASS] Test 4 env-leak guard stripped exactly the planted key
[PASS] Test 5 isolation list executed without errors
[PASS] Cleanup brew uninstall + untap clean, dev binary unchanged
Overall: PASS
This release is safe to announce. Next steps:
- Update release notes on GitHub if not done already
- Announce on whatever channels you useExample FAIL report:
Test Release Report — archon v0.3.1 via curl-vps
────────────────────────────────────────────────
Tested at: 2026-04-08 15:42 UTC
Binary SHA: 0cf83e15e6af228e3c3473467ca30fa7525b6d7069818d85f97a115ea703d708
Binary path: user@vps:/usr/local/bin/archon
Dev binary: /Users/rasmus/.bun/bin/archon (unchanged)
[PASS] Test 1 version reports 0.3.1, Build: binary
[FAIL] Test 2 workflow list returned 0 workflows
Command: archon workflow list
Exit: 0
Output:
Discovering workflows in: /tmp/archon-test-repo-1712590923
Found 0 workflow(s):
[SKIP] Test 3 SDK test skipped because Test 2 failed
[SKIP] Test 4 env-leak guard test skipped because Test 2 failed
[PASS] Test 5 isolation list executed without errors
[PASS] Cleanup VPS binary removed
Overall: FAIL
Likely cause: bundled workflows were not embedded in the binary.
Check the build workflow for missing asset embedding, or verify that
BUNDLED_WORKFLOWS in packages/workflows/src/defaults/bundled-defaults.ts
was populated at build time.
Next steps:
1. File a P0 hotfix issue with the captured output
2. Do NOT announce v0.3.1 until the hotfix ships as v0.3.2
3. Consider adding a CI guard that blocks releases if BUNDLED_WORKFLOWS is emptyKey behaviors
- Never touch the dev
bun linkbinary. Always use the installed binary path for Phase 4 tests. Verify before and after. - Clean up on failure. If Phase 4 fails mid-way, still run Phase 5 so the next run starts clean.
- Capture SHA256 immediately after install. This lets bug reports reference the exact artifact under test.
- Explicit confirmation before install. Never surprise the user by installing a second binary.
- Report the dev binary state in both preamble and postamble. Proof that the test did not disturb the dev environment.
- Exit non-zero if any test failed. The skill should propagate failure so automated wrappers (CI, scripts) can detect it.
Related
scripts/build-binaries.sh— builds the binary artifacts that end up in releases.github/workflows/release.yml— builds and publishes the binary on tag pushhomebrew/archon.rb— Homebrew tap formula (updated per release)scripts/install.sh— the curl install scriptscripts/install-local.sh/install-local.ps1— local-file install harnesses (for pre-release QA of binaries built from a branch, not from GitHub releases)/releaseskill — the release procedure itself (opposite side of the flow)
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.

