Repository navigation
test(e2e): live validation of ACP agents, docs and ADR acceptance - #77
Open
FreshlyBrewedCode wants to merge 4 commits into
Open
FreshlyBrewedCode wants to merge 4 commits into
FreshlyBrewedCode wants to merge 4 commits into
Conversation
factory serve's Bun bundle leaves import.meta.env undefined, so every page load logged a TypeError from the Agentation check (seen in #67's live leg). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Finding 14: the implement-issue round trip on claude/haiku and opencode/big-pickle concurrently, an external_directory ask, agent crash, provider error, UI cancel and daemon shutdown. Finding 13 gains the corrections later layers proved (reported vs running Claude model, absolute cwd, mid-turn window, tool titles). Refs #74, #75, #76 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ADR 0013 is accepted, with the implementation's amendments recorded: - always set the model; - a step-start model failure; - opencode isolation via XDG_CONFIG_HOME + shell.env plugin + OPENCODE_TEST_HOME; - the shell-snapshot residue; - latest-reported cost and the mid-turn window; - acp.tool-call; - the absolute cwd; - process cleanup (#74). ADR 0007 is marked superseded, and ADR 0012 notes that §3/§6 are amended. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Site docs, README and the factory init template now cover: - agent/model at every level and the resolution rule; - agent.default, agent.models and hostSettings; - --agent/--model; - a Claude login or opencode on PATH. AGENTS.md now describes the ACP runtime and gives opencode/big-pickle and Claude haiku/sonnet as the test models. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
FreshlyBrewedCode
added this pull request to stack #70
October 2, 2026 21:06
7 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is the last layer of the ACP stack. It validates the whole change live, updates the docs, and accepts ADR 0013.
docs/findings/14-acp-live-leg.md). Setup:factory serveon a spare port (3067), never 3005;factory init;gh, so no write-back reaches GitHub;agent.default/models/hostSettings,--agent/--model, and the requirements: a Claude login, or opencode on PATH.fix(web): every page load logged aTypeError(import.meta.envis undefined infactory serve's bundle).Scenario results
implement-issue(implement → test → fix → test → structured pr-metadata → write-back) on Claude/haiku, started from the UI24.5k/200k ctx · $0.059per stepfactory start --agent opencodeand watched in the UIexternal_directoryask/tmp/…/outside, answeredalways; file written, tree cleankill -9)opencode-go/…-contributor) fails the step with the agent's message. Refusal (RUN_ERROR) could not be provoked live: Anthropic's test string gaveend_turnon haiku and sonnet. The fake-agent unit test covers itSIGTERMwith both agents mid-toolRunCancelled, 0 of 6 processes alive 3 s later. #73's 1 s-vs-2 s concern did not show (agents settle cancel in ms) and is noted in #74ADR 0013 amendments (from #69/#71/#72/#73 handoffs and this leg)
--agent/--model/POST /api/runsagent.XDG_CONFIG_HOME+ ashell.envplugin +OPENCODE_TEST_HOME(undocumented);~/.claude/shell-snapshots). This is accepted, becauseCLAUDE_CONFIG_DIRholds the login.data/cleanup was removed.acp.tool-callchunk.cwd;Issues filed
SIGKILLed agent leaves its in-flight tool processes running.HEAD, notrepo.baseBranch.Checks
bun run check: green (451 tests).nix develop --command bun run test:e2e: 17 passed.Closes #67
Part of #62
🤖 Generated with Claude Code