codexwright

build-mas 0.4.0: MCP contract and acceptance

Date: 2026-11-09. This iteration retains one local MCP server, shared BuildService and thin Skills. No builder CLI, hooks, background scheduler, remote SaaS, payment service, public package publication or automatic Git publication is added.

Upgrade contract

Re-run bootstrap in the selected private environment, reinstall the selected local plugin and reconnect/new-chat to refresh schemas. No state directories, history, candidates or backups are deleted. Existing target workflow interfaces and Codex SDK/runtime 0.167.0 remain unchanged.

Evidence scope

The current automated evidence includes schema discovery, strict public inputs, bounded summary/paging, public apply replay/concurrency/decline, legacy association, modern sealed confirmation and multiple pages, old/new real stdio transports, notification isolation/failure, login lifecycle callbacks, SDK interruption and actual verification subprocess termination. Whole-project tests cover the existing single-agent, reuse/migration, generated-workflow and security gates.

tests/test_mcp_iteration.py exercises application and login with deterministic fixture proposals and automatic test callbacks. They establish server/transport behavior, not human production authorization, new live identity login or a model success rate. Historical 0.2.0/0.3.0 model trials remain historical.

Source and independent installed-wheel suites each passed 164 tests plus six example subtests at the recorded checkpoint. The clean wheel contains 30 package files and nine schemas, no builder CLI or console entry points; package payload hashes match source. Final commands and real SDK results are recorded in mcp-0.4-* evidence.

A real installed-MCP read-only trial reached the configured SDK/runtime and completed its first turn, but the current default CatPaw IDE backend rejected the second turn’s structured-output parameter. Its operation is failed, verification not_run. Five stage notifications, exact repeat-result identity, event retrieval and target preservation passed. This is a provider limitation, not a successful workflow construction or a reason to bypass the schema. No global model/provider setting was changed.

A separate installed-MCP trial explicitly selected catalog model gpt-6.1-sol through process-local BUILD_MAS_MODEL: two real SDK turns completed, reporting 53,498 tokens and 20.29 seconds. Eight monotonic progress notifications, 27 readable events, exact repeat-result identity and target preservation passed. Verification remains not_run because this was read-only explanation, not construction/application acceptance. The failed default-provider trial is retained.

Three additional real installed-MCP SDK cases completed: new-workflow planning selected one Agent and required a Codex smoke check; existing-SDK analysis preserved its runtime; other-framework migration planning selected one Agent, required migration retirement and Codex smoke checks, and kept parity unverified. All fixture targets stayed unchanged. These are architecture/analysis acceptance, not newly generated-code application, production parity or user-authorized writes.

A new actual Codex ephemeral host session loaded the installed 0.4.0 Skill/plugin, called preflight and registration, returned API 0.4, reported form/URL capabilities, and exited 0 with its target unchanged. Unrelated pre-existing MCP authentication warnings are not build-mas failures. No human apply or identity login was attempted.

A real single-agent construction trial prepared a ten-file proposal: six offline checks passed and one live SDK check remained approval-gated (pending_live). The user-owned file and target directory were preserved. A separate existing-SDK edit trial selected runtime reuse but failed because its generated unittest pattern discovered zero tests; two bounded repairs did not fix the pattern. The service correctly rejected the candidate and left the target unchanged. These trials are retained in mcp-0.4-construction.json, not labelled complete application or a general generation success rate.

A follow-up fresh edit fixture specified the exact unittest file path and still failed safely: its builder produced no actual changes (empty_proposal), so no proposal/application was accepted. The original runtime and target files remained unchanged. mcp-0.4-edit-explicit.json preserves this unresolved live editing reliability limit; deterministic edit/regression coverage is not substituted for real successful candidate generation.

Host support matrix

Host Adapter 0.4.0 tool/record path Progress Human form approval New identity login
Codex Local Skill + stdio plugin Installed 0.4.0 plugin, launcher and actual Codex host preflight/register Declared capability / pending UI acceptance Pending real human UI acceptance Pending user identity acceptance
Claude Code Session Skill + same stdio service Adapter contract regression; pending current host commissioning Pending current host UI acceptance Pending real human UI acceptance Pending user identity acceptance
OpenCode V2 MCP configuration + host instructions Configuration regression; pending current host commissioning Pending current host UI acceptance Pending real human UI acceptance Pending user identity acceptance
MCP Python client Real stdio, legacy and modern Automated schema/read/approval/replay tests Request callback regression Deterministic test callback only Deterministic SDK/auth callback only

Basic tool access enables inspection and proposals. Do not advertise complete apply/login support until that host’s real user-only interaction is accepted. Capability metadata never proves the response came from a human.

Sources and remaining limits

No Windows/Linux commissioning, remote-provider universality, paid metering, durable background completion or public release is claimed. Private-state and OS-sandbox assumptions remain those of the existing local builder.