You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
[1.4.0] - 2026-11-07
Security
Supabase project refs scrubbed from the PUBLIC repo's entire history
(2026-11-07): the four refs (eysu…/jcu…/cetv…/zfhfe…) had been
committed since PR #25/#26 in master-mcp.json, mcp-inventory.json and autoclaw2-mcp.master.json. Working tree: every ref replaced by a
dedicated ${SUPABASE_PROJECT_REF_*} env placeholder (MAIN/MASARX/
IPLOGGER/PORTFOLIO — 4 new user-scope vars, harvest never printed), the
collector now redacts refs by SHAPE in all three forms they appear in
(--project-ref flag-follow args, project_ref= query values, <ref>.supabase.co hosts — JSON, TOML and flattened-command forms), and ghost.autoclaw2.expand_env_value teaches the AutoClaw2 manifest loader
to expand ${VAR} (unresolved = left as-is + loud stderr WARN, never
silently empty). History: mirror clone + git filter-repo --replace-text over 129 commits (full refs AND the Supabase (eysuvsof)
/ (jcufigo) name fragments), verified zero occurrences by pickaxe, then
force-pushed main + release/v1.2.0 + all tags (ruleset temporarily
disabled via API and restored byte-identically; release.yml disabled for
the tag push and re-enabled — no spurious release runs). Tokens were
verified NEVER present in any commit (pickaxe on all history: empty).
Residual: the pre-rewrite commits remain reachable via GitHub's refs/pull/* archive of PRs #25-#27 (deleting the PRs would purge that
too — refs are non-secret identifiers, so left in place).
Added
The OpenCode clone fleet moves into T3 Code (2026-11-07): a live spike
proved opencode acp is a real ACP-over-stdio server under a clone's XDG
env (protocolVersion: 1 — the exact v1 shape T3's generation detection
keys on — plus a live session/new sessionId; clean exit, zero orphans),
so tools/install_t3_opencode_instances.ps1 (new) seeds five acpRegistry provider instances into ~/.t3/userdata/settings.json —
the OpenCode counterpart of the five hand-seeded ZCode bridge instances.
Same pattern, same discipline: the entries launch launch_opencode_cli_light.ps1 -Instance cN -Acp (new mode) so per-clone
isolation rides OUR script's four XDG levers — the entries carry NO env
field and there is zero dependence on any T3 env-override schema;
backup-first, merge-never-overwrite (only the five opencode-c1..c5
keys — favorites and the zcode-* instances survive), verify-after
deep-compare, idempotent, -Remove, and a loud running-T3 guard (T3
reads settings.json only at startup). Tests: tests/opencode_t3_seed.Tests.ps1 (8 — AST-extracted core on TEMP
fixtures, the real settings file never touched). T3-UI acceptance
(Providers render, streamed reply, model switch, concurrency) is
user-supervised — spec §3.10.
MCP central registry — full-device collect + two new sync targets
(2026-11-07): the registry now reaches every MCP-capable agent on the
box. tools/mcp/master-mcp.json grew 25 -> 28 servers
(supabase-My-portfolio — Orange-clone discovery, scoped only:zcode,
secret formalized as a NEW dedicated env var ${SUPABASE_ACCESS_TOKEN_PORTFOLIO} after the one-token-per-org lesson; node_repl — Codex runtime, only:codex; computer-use — Copilot
plugin, dormant scoped to the never-target copilot-computer-use),
and sentry's per-app literal SENTRY_ACCESS_TOKEN header was
formalized as ${SENTRY_ACCESS_TOKEN} (both harvested from the app
configs into user-scope env, values never printed). New targets: claude-code (~/.claude.json — surgical merge of the top-level mcpServers property only; app state and projects.* untouched) and codex (~/.codex/config.toml — new pure module tools/mcp/codex_toml.ps1, a line-based TOML reader/writer that
represents ONLY [mcp_servers.*] tables and splices them back verbatim
around everything else; presence==enabled, so registry-disabled and
remote (url) entries are left untouched; app-only keys such as startup_timeout_sec and the [mcp_servers.<n>.env] sub-table
survive per-key). tools/mcp/collect_mcp_inventory.ps1 harvests the
four newly-found sources too (claude-code, codex TOML, Copilot
computer-use plugin, OpenCode-Primary mcp section — apiKeys in that
file deliberately unread). Live full-device push verified:
windsurf/vscode/minimax = sentry header formalization, ZCode Primary
+1 (the resident watcher propagated it to all five clones within
seconds), claude-code +19 servers, codex +10 stdio (10 remote entries
skipped loudly); second run fully in-sync (idempotent); watcher -ApplyLive recycled the idle instances and correctly DEFERRED the
ones with active chats (Green/Orange) — never -Force. Tests: tests/mcp_registry_sync.Tests.ps1 (14 — TOML parse/round-trip/
verbatim-preservation, bare-key refusal, registry invariants incl. a
never-literal-secrets scan of the master); Pester 110/110, unittest
150/150, CI lint gate (Severity Error) clean.
OpenCode light worker — headless CLI mode for the clones (2026-11-07):
the OpenCode counterpart of the ZCode LIGHT worker. All prior OpenCode
support was desktop-clone-only; the v2 CLI itself was never driven. A
live spike (scratch XDG env, CLI v2.2.5) verified the whole surface: src/windows/launch_opencode_cli_light.ps1 (OpenCode submenu [7], gid 79)
runs the shipped <install>\resources\opencode-cli.exe on a clone's own
state using ONLY the four XDG env levers the clone-home asar patch already
feeds the desktop app (debug paths proved data/cache/config/state all
follow XDG_* while home stays the real profile — no HOME/USERPROFILE
redirect needed, unlike ZCode light). Modes: interactive prompt loop
(default), -Prompt one-shot (run), -Server foreground serve [--port] (the "run a server" case — HTTP verified), -StopService
(automates the §3.8 orphan-kill note), -Login (submenu [8], gid 80 —
one-time auth login per clone home, verify-after = <data>\opencode\auth.json non-{}). Anonymous homes WORK but run the
FREE model (iceman-free) — the opencode-zen analogue; -Auto/-Standalone
pass the CLI's --auto/--standalone. run auto-starts the clone's
background service (clean stop verified, zero orphans). Tests: tests/opencode_cli_light.Tests.ps1 (15 — AST extraction + a functional
poisoned-env child for the fail-fast guard + the Test-CloneLoggedIn
verify primitive). GHOST.bat OpenCode submenu renumbered locally
(shortcuts [9], patch [10], status [11], remove [12]; gids 53-62
untouched). Live acceptance 2026-11-07 (spec §3.9.1): one-shot -Json
turn, single + dual-instance serve coexistence, orphan-free shutdown —
which caught TWO real launcher bugs, both fixed: (1) assigning the
launcher function's output swallowed the CLI's ENTIRE stdout (the turn
succeeded and the answer landed in the session store while stdout showed
only the banner) — the script now calls it as a bare statement and
branches on $LASTEXITCODE, and scripted consumers get -Json
(--format json, the CLI's NDJSON contract) because the default
renderer's final answer is not guaranteed on non-TTY stdout; (2) the CLI
resolves its project from $env:PWD (unix convention) — PowerShell
children inherit a STALE PWD, so every turn silently bound to the
launcher's launch dir instead of -Cwd until the script sets it. -Login browser-flow acceptance remains user-supervised (§3.9.1).
AutoClaw2 clones get colored taskbar buttons (2026-11-06): the suite's
last DEGRADED item — running windows all shared the base AUMID com.zhipuai.autoclaw2 and the exe icon, so every clone collapsed into one
grouped taskbar button while only the shortcut pins stayed per-clone
(spec §7: "deferred until actually needed"). It turned out AutoClaw2 4.0.0
ships UNPACKED — the whole main process is the plain-text resources\app\dist\main.cjs (no app.asar, no runtime integrity check;
the bootstrap does a bare require() and payload-verify.cjs is an
existence-only check the app never spawns) — so tools/patch_autoclaw2_identity.ps1 (new, AutoClaw2 [13] / gid 78, -WaitForClose/-Restore/-Force) does NOT need the asar-surgery route:
it splices THREE byte-anchors, each verified to occur exactly once in the
14.3 MB bundle, making the AUMID and window icon env-driven
(setAppUserModelId, the per-window setAppDetailsappId/appIconPath
— the relaunchCommand backtick literal is never touched — and the main
window's setIcon). launch_autoclaw2_clone.ps1 now sets ZWORK_AUMID=com.zhipuai.autoclaw2.cN (matching the SHORTCUT AUMIDs, so
pins and windows group together) + ZWORK_CLONE_ICON=<the tinted tray_icon.ico> per clone; with no env set the patched bundle behaves
stock, so bare/Primary launches are untouched. Idempotent with a sibling
backup main.cjs.bak-zwork-identity-<stamp>, a sha256 marker, a node --check gate through the app's own vendor node, verify-after with
auto-restore, and fresh-backup re-apply after app updates; install_autoclaw2_clone_shortcuts.ps1 gained -RepairPrimaryAumid
(EC-C01). Tests: tests/autoclaw2_identity_patch.Tests.ps1 (8 — the
splice core is AST-extracted verbatim and the REAL spliced fixture is run
under node both with and without the env). Window TITLE stays the shared
"AutoClaw" (renderer <title> re-override is out of scope).
AutoClaw2 MCP + chat sync suite (2026-11-04): the dead-session design
(docs/AUTOCLAW2_SYNC_{SPEC,PLAN,TASKS}.md) is implemented on closed profiles
only — tools/autoclaw2-mcp.master.json (device MCP manifest, definitions
only, seeded from the ZCode Primary working set) + tools/sync_autoclaw2_mcp.ps1
(GHOST.bat AutoClaw2 [8] / gid 73, launcher pre-launch step [2b]) writing
connected-sources rows via the new src/python/ghost/autoclaw2.py core
(merge preserves clone-local enabled toggles and never deletes; rows stay pending for the app to test; clean backup + -RestoreBackup; verify-after
JSONL audit), and tools/sync_autoclaw2_chats.ps1 (AutoClaw2 [9]/[10] =
gids 75/76) for the read-only cross-profile chat inventory and the guarded
one-way history import (fresh UUIDv4 ids incl. work_events, [import]
title prefix, IM sessions refused, sidecar idempotency + -Revert -ImportId). 39 unittests + lean Pester orchestrator suite + harness scenario
U green. Live acceptance (A1-A7 / C2-C7) stays gated on the supervised
Phase 0 spikes; the MCP watcher row is deferred with gid 74 reserved.
MCP central registry + one-way sync to every app (2026-11-04): tools/mcp/master-mcp.json (25 servers, single source of truth) + gitignored master-mcp.local.json overlay (device values, local wins) + the tools/sync_mcp_registry.ps1 importer (Maintenance [4] / gid 77) pushing
definitions into ZCode Primary, Windsurf, VS Code and MiniMax in each app's
own config shape (Cursor auto-skips until installed; OpenCode clones sync
once their configs exist). Merge preserves app-local enable/disable state and
never deletes app-only servers; secrets stay as ${VAR} names resolved from
machine env — all 20 were set from the apps' own working values, so the
written files contain zero placeholders; every write is backed up to MCP_Backups\<ts>\, verify-after deep-compared, and audited to JSONL. Live
run 2026-11-04: windsurf +17, vscode +18, zcode +7, minimax +19 adds, all
app-only servers kept, second run idempotent. Harvest direction: tools/mcp/collect_mcp_inventory.ps1 (read-only, 109 definitions across all
hosts) — promotion into the master stays a per-name human decision. Plan: docs/MCP_CENTRAL_REGISTRY_PLAN.md.
ZCode clone launches persist their console output to a log (2026-11-03): launch_zcode_second_instance.ps1 appends every run to tools\logs\launch_zcode_<Instance>.log via a PowerShell transcript (one
file per instance, -Append with invocation headers) — the auto-closing
GHOST.bat launcher windows (ZCode [1]-[6]) and the hidden Desktop/Start-menu
shortcut launches no longer lose their output: the ram-guard question and
answer, seed/telegram/sync step results, spawn PID and taskbar stamping are
all reviewable after the fact. Logging is fully best-effort: a transcript
failure prints a yellow warning and never blocks the launch, and Stop-Transcript runs before the ram-guard exit 0 paths and at script
end. GHOST.bat ZCode [6] also prints the log location after opening the
five windows.
tests/patch_surgery.Tests.ps1 — runs the surgery module's selftest
(synthetic asar with text/binary/empty/deduplicated-twin/unpacked entries,
round-trip rebuild + verify + corrupt-header abort) and the pickle-framing
probe; 5 tests.
ZCode patch [27] waits for you to close the app (2026-10-31): patch_zcode_icon_override.ps1 gained -WaitForClose (GHOST.bat ZCode
[27] passes it via :RunWith's new optional extra-args slot) — when
ZCode.exe is running from the install dir the script no longer throws and
forces a manual re-run; it prints the running PIDs, polls until every one
has exited (two consecutive clear probes, 30-min default timeout, Ctrl+C
to abort) and continues straight into the patch. Direct runs without the
switch keep the bare throw; -Restore honors the switch too. The [27]
follow-up note now reminds about relaunching via the ZCode shortcuts (a
bare ZCode.exe opens the PRIMARY profile).
OpenCode patch [8] waits for you to close the app (2026-10-31): patch_opencode_clone_home.ps1 gained -WaitForClose (GHOST.bat OpenCode
[8] passes it via :RunWith's extra-args slot, mirroring ZCode [27]) —
when OpenCode.exe is running from the install dir the script no longer
throws and forces a manual re-run; it prints the running PIDs, polls until
every one has exited (two consecutive clear probes, 30-min default timeout,
Ctrl+C to abort) and continues straight into the patch. Direct runs without
the switch keep the bare throw; -Restore honors the switch too. The [8]
follow-up note now reminds about relaunching via the OpenCode shortcuts (a
bare OpenCode.exe opens the PRIMARY profile).
Changed
AutoClaw2 sync: the last flipped source healed + the Primary is now a sync
target (2026-11-06): cloudinary was the one stdio source still flipping to invalid_response at every app start while every other source rendered
green — the stored-row zod (IL) refines each tool's serialized inputSchema to ≤16384 chars (inputSchema_too_large), stricter than the
registration walk the sanitizer mirrored, and cloudinary's upload_asset
serializes to 20,024 chars; one over-limit tool fails the WHOLE row parse. _sanitize_input_schema now measures the CLEANED schema (UTF-16-exact JSON.stringify units) against 16384 and drops over-limit tools
(live: cloudinary: connected (41 tool(s)) — upload_asset is the honest
cost), and strict_row_problems mirrors the refine so verify-after can
never wave such a row through. -Target Primary (previously blocked by the
two-account ambiguity: dormant 27e33829… + live 68f7331f…) now
disambiguates — explicit -Account <hint> (exact hash or unique prefix)
wins, otherwise the newest-runtime.sqlite account is picked LOUDLY; a
sub-60 s tie still refuses. The fresh-account bootstrap's single
re-stamped schema_migrations row (0001…/85/2e8dc336…) is accepted by
the schema gate as a second legitimate history encoding
(FRESH_STAMP_BASELINE); any other single-row shape still refuses. First
Primary sync: 10 rows — 6 connected + 4 honest OAuth auth-failures. Spec
§9.2 records the full incident. 148 unittests green. Same day the master
manifest merged the FULL ZCode Primary set (20 servers, merge-not-replace —
the 10 ZCode-disabled ones added enabled per developer decision; live result
per profile: linkedin ·5 + github_local ·26 + notion connected·0 (server
exposes no tools with the legacy NOTION_TOKEN env) + honest failures for
omniroute (local router down) and the 8 unauthenticated http sources), and a
programmatic credential-wiring session closed the auth story without any UI
clicking: the app's credential custody (<account>/runtime/credentials.enc,
Electron safeStorage = v10 + AES-256-GCM under a per-profile DPAPI'd
Chromium OSCrypt key, key = [ownerId, "source::", version], value
= token string) was replicated from Python and wired with the ZCode config's
live tokens across all three signed-in profiles; the omniroute local router
was started (omniroute serve, port 20128) and its command wrapped in the
cmd.exe .cmd-shim pattern — final state 10 connected / 10 honest-failed
per profile (github/vercel authenticate through the wired custody but the
app's own startup discover then fails — vercel's 633 KB catalog is 2.4× its
hard 256 KB cap, impossible on 4.0.0; github's clean replay leaves it an
app-side quirk — runtime Reconnect may still succeed; stale sentry/cloudflare
tokens fail auth until recreated). discover_http gained an optional headers parameter for credentialed pre-tests; spec §9.2.1/§9.2.2.
AutoClaw2 clone runs un-bricked + sync schema gate follows the app (2026-11-05):
every c1/c3 run died in ~1 s with resource_revision_corrupt (cause: content) —
one CAS blob whose content hash ≠ its filename (the same wrong-content fingerprint
sits in c1, c3 and Primary's dormant account; the app's own quarantine fails EPERM
on the all-ReadOnly store, so it can never self-heal). Healed live by overwriting
the blob with a verified-clean copy from the Primary's fresh account (backup +
hash verify-after; c1 ping completed with a model request; full procedure
documented in docs/AUTOCLAW2_SYNC_SPEC.md §9.1). The same day the 4.0.0 update
moved the runtime DB schema 80→85 as an append-only multi-row migration history,
which made the sync's single-row gate refuse every profile and the launcher's
pre-launch step [2b] a silent no-op — ghost/autoclaw2.pycheck_schema now
requires an intact baseline row + our column sets instead of exactly one row (4
new unittests; live acceptance [SKIP] c1 - running), and launch_autoclaw2_clone.ps1 gained -SkipMcpSync plus a loud warning when the
sync refuses. Never -RestoreBackup across the migration — the sync backups
are whole-DB schema-80 copies and would down-migrate the runtime DB.
AutoClaw2 MCP sources now sync pre-tested and usable (2026-11-05): the
"The server returned an invalid response." on every synced source is fully
explained by the 4.0.0 bundle — the app strictly parses each governed_connected_sources row and pending (what the sync used to write)
is not a legal status, so every row rendered through a fallback that
hardcodes that message and the GUI's Reconnect threw before any network
call. The source test is local (spawn/fetch), so ghost/autoclaw2.py now
runs the same discovery per source (stdlib MCP stdio handshake +
Streamable-HTTP) and writes what the app accepts: connected + real tools_json (IL shape, vme-normalized tool names, synthesized descriptions,
oversized schemas dropped) + a native. revision, or failed + a legal
error_code. Legacy pending rows are rewritten even when the definition is
unchanged, illegal slugs migrate in place (chrome_devtools, supabase_masarx), verify-after requires the app's strict row shape, and
untrusted workspaces warn loudly (tools are not offered in runs until the
workspace is trusted). OAuth http sources (Vercel / GitHub Copilot / Sentry
/ Upstash) land as authentication_failed — sign in per clone, then
Reconnect. Spec §9 records the full mined contracts. 129 unittests (incl. a
real stdio MCP server fixture) + Pester 73/73.
The asar patches now take seconds, not minutes (2026-11-03): the ZCode
icon patch [27] (engine v9) and the OpenCode clone-home patch [8]
(engine v4) share a new tools/asar_surgery.mjs IO layer that replaces the
old extract/repack pipeline (npx @electron/asar extract of the ~340 MB /
~32k-file archive to %TEMP%, up to 4 repacks in a sidecar-convergence loop,
one npx spawn per patched-file verify). The engine now ranges-reads only the
text entries straight out of app.asar, applies the same patch anchors in
memory, rebuilds the candidate in one streaming pass — untouched payload
region copied byte-for-byte, patched contents appended at the tail, only the
patched header entries rewritten (integrity recomputed) — and fully verifies
it (header walk + whole-region byte compare + patched-content compare) in
the same node process. The sidecar app.asar.unpacked is never touched
(swaps run with a new -SkipUnpackedSwap); npx is no longer needed at
all. Measured live: ZCode [27] ~6 s end-to-end (was minutes), OpenCode [8]
~2.5 s; patched-file output proven byte-identical to the previous engines'
on the real pristine asars of both apps. Those numbers come from a dev box
with no antivirus. On machines with Defender/AV we expect roughly 10-60 s
(estimate, not measured), and the relative improvement is likely larger
there: the old pipeline's per-file scan overhead across ~32k extracted
files and the npx first-run npm download are gone entirely, and the
~290 s regex cost that dominated every machine was pure CPU. node --check, marker/backup/restore, update-recovery probing and all
abort gates unchanged. Note on safety of the approach itself: every
patched build through v8 boots normally, which is only possible with
Electron's EnableEmbeddedAsarIntegrityValidation fuse off - replacing app.asar has been safe so far; re-confirm after the v9 live run and at
each future acceptance.
Patch hardening for AV-protected machines (2026-11-03): both patch
drivers now retry the asar swap up to 6 times (300 ms apart) when antivirus
briefly holds the freshly written ~340 MB candidate - retrying on
IOException AND UnauthorizedAccessException (Access denied), including
PowerShell-wrapped InnerExceptions. ZCode's swap is rename-based
(app.asar -> app.asar.old -> candidate in -> delete .old, rename-back on
failure), so the install is never left without an app.asar; OpenCode keeps
its live-proven delete + locked-asar in-place fallback order. A free-disk
preflight aborts cleanly with MB numbers before anything is written and
models the true peak: backup + candidate coexist on one volume (~2.6x the
asar size when install and %TEMP% share a volume, split 2.3x install /
1.3x temp across volumes; -Restore staged copy + move-in likewise).
Verified by Pester tests that hold the file with FileShare.None: a ~1 s
lock succeeds after retries, and a lock outlasting the window rolls back
with the original app.asar intact.
Pre-existing perf bug fixed while measuring: the ZCode preload-blue
patch anchor matched with a per-position backtracking regex that cost
~290 s across the bundle (the silent bulk of the old [3/7] step) — it now
uses a literal-needle indexOf + backward receiver scan (byte-identical
output). The OpenCode clone-identity anchor got the same treatment
(regex-equivalence unit-proven over tricky receiver/argument shapes).
Colors are now the ONLY user-facing clone names (2026-11-03): GHOST.bat
rows (Launch Blue clone / Reset Red clone / Launch Yellow clone for
ZCode, AutoClaw2, Cline and OpenCode) and the suite scripts' console output
(ram-guard, seed, telegram-route, reset banners and per-step tags, sync
headers and tags, taskbar/MCP watcher logs, shortcut installers, status
lines) lead with the COLOR vocabulary, matching the shortcut file names
unified on 2026-11-01 — the frozen keys (Second..Sixth, c1..cN) survive
only in CLI params, dirs, AUMIDs and log filenames, and in identification
lines as Color (key) / Color / key so params and docs stay
correlatable. .lnk Description metadata is color-led too; the suite
generator templates teach the pattern to future suites.
Fixed
A stray click can no longer freeze the reset console's output (2026-11-04):
QuickEdit selection (a click or click-drag inside the console window) blocks
all console writes until a key is pressed — during a Fifth reset the output
appeared stalled at the terminate step while the script kept running
underneath. reset_zcode.ps1 now drops ENABLE_QUICK_EDIT_MODE from its
console's mode at startup (best-effort, other flags preserved, the
elevated-relaunch child gets it too) and says so in a dim line. Ctrl+S
display pause is a host feature that cannot be disabled — any key resumes
it; same recovery family as the [DBG]: tip below.
The reset console now explains the [DBG]: debugger state (2026-11-03):
pressing Ctrl+Break during a reset drops PowerShell's console host into its
"Break All" debugger (Entering debug mode + an [DBG]: prompt) with no
on-screen guidance — it looks like the reset crashed although the script is
healthy (verified: zero Write-Debug/Set-PSDebug in the repo, -NoProfile
on both spawn paths, clean [OK] output immediately before the break). :RunZcodeReset now prints a one-line tip BEFORE running: the [DBG]:
prompt means Ctrl+Break was pressed, q + Enter quits, and the menu item
can simply be re-run (an interrupted reset stopped before the identity
rewrite, so re-running is safe).
ZCode clone shortcuts hung invisibly at the RAM guard (2026-11-01):
the Desktop/Start-menu shortcuts run the launcher with -WindowStyle Hidden, whose hidden-console stdin is NOT redirected — so the guard's only
non-interactive probe ([Console]::IsInputRedirected) passed and the Launch anyway? (y/N) prompt was written into a window nobody could see:
at/over -MaxConcurrent the launcher hung invisibly and ZCode never
appeared (looked like the app failed to run). The guard now routes by entry
point: -NonInteractive or redirected stdin warns and continues (unchanged
watchdog/harness contract), a visible console (GHOST.bat,
Launch-ZCode-*.bat) keeps the Read-Host prompt, and a hidden console gets a
topmost Yes/No dialog (default No, same live commit numbers). Fixed
launcher-side so already-installed shortcuts need no reinstall; watch_zcode_captcha.ps1 relaunches pass -NonInteractive (also closing a
latent hang — the hidden watchdog console could block on the old prompt).
ZCode light worker + T3 bridge died at bootstrap after the 0.17.1 CLI
update (2026-10-31): every plain-node launch of resources\glm\zcode.cjs (-p, app-server, login — the bundle's nbs() argv gate demands the builtin provider config for all three) failed
with 无法定位 CLI ZCode Built-in Provider Config: the bundle's resolveBundledZCodeBuiltinProviderConfig fallback derives both candidates
from process.argv[1] via a dev-monorepo climb (glm\provider\ zcode-builtin.json — removed from the package; then 5× ..\config\provider\
landing at %USERPROFILE%\AppData\config\provider\ — never exists) and
never reaches the packaged file at resources\config\provider\ zcode-builtin.json. Fixed with the FIFTH env lever ZCODE_BUILTIN_PROVIDER_CONFIG_FILE (the same override the desktop app
injects into its own CLI children, and which watch_zcode_captcha.ps1
already sets): launch_zcode_cli_light.ps1 resolves it after the four
isolation levers (bundled install copy first, newest <home>\.zcode\v2\runtime\provider runtime-cache copy as fallback, clear
fail-fast when neither exists) and the printed standalone-login recipe gained
the matching fifth set line; the T3 bridge suite gets the same lever via resolveBuiltinProviderConfig + buildChildEnv/spawnAppServer in tools/t3_bridge_lib.mjs (bridge + probe + fake client in one spot), which
now fails fast with an English message instead of letting the child die on
the opaque Chinese error. Desktop instances and the Primary CLI were never
affected (the app injects the env itself). Docs: ZCODE_LIGHT_MODE.md
(five-lever contract + regression note + login recipe), AGENTS.md, T3
bridge spec §8.
GHOST.bat ZCode submenu section headers printed CMD errors (2026-10-30): call :Div "Sync & Chat Refresh" (row [17]) and call :Div "Watchers & Diagnostics" (row [24]) rode a bare & into :Div's unquoted echo -- %~1 --, so CMD split on it — the menu showed -- Sync then 'Chat' is not recognized as an internal or external command (and -- Watchers → 'Diagnostics' not recognized). Labels reworded to Sync + Chat Refresh / Watchers + Diagnostics (row style already avoids &); rem comment synced; AGENTS.md .bat rules gained the &-through-
label-arg bullet. The harness now guards the whole class: a static S0b
scan (no & in :Div/:Hdr/:Opt label args, every & on an echo
line caret-escaped) plus a global assertion inherited by every scenario
that CMD error output never leaks into captured menu output.
OpenCode 2.2.5.0 broke the clone suite — engine v3 re-derived and the
fleet is live again (2026-11-01): the updater replaced app.asar
wholesale on 2026-10-31 (2.2.5.0, 235 MB — marker + prior backup gone),
and the v2 clone-home byte anchor (the 2.0.32 isPackaged?void 0:...
ternary tail) had ZERO sites in the new bundle — the patch aborted with
zero damage (fresh pristine backup kept) and c1..c5 were unlaunchable.
Recon of the new bundle showed the mechanism intact: the bootstrap
test-root fn (minified ue(), was ye()) reads process.env.OPENCODE_DESKTOP_TEST_ROOT (1 occurrence) and — new in
2.2.5.0 — the SAME bootstrap fn (z()) pins userData/sessionData
inline straight from its return, so v3 shrinks the hook to ONE slot: the
clone-home argv scan slotted into the non-onboarding branch ahead of the
env fallback (the onboarding rmSync-wipe branch stays first); the
clone-identity regex matched 2.2.5.0 unchanged (g.setAppUserModelId(le)
— 1 site). Re-patched (marker v3 + node --check + candidate/live
signature verify) and live-verified: c1 launched with OpenCodeClonesHome\c1\{desktop,session} receiving all writes, window
title "OpenCode Blue" observed live, and the Primary profile snapshot
diff = 0 changes (1338 files path|size|mtime identical before/after).
A stale "run OpenCode [7]" citation fixed to [8] in AGENTS.md. Spec
gained the engine v3 addendum (docs/OPENCODE_CLONES_SPEC.md).
Changed
Menu label naming unified (2026-10-31) — one row pattern across every
submenu: the label carries the action + name ONLY, and the color + all
qualifiers live in the tail. ZCode reset rows [9]-[13] had the color inside
the label (Reset Third instance - Yellow) while the launch rows kept it
in the tail, and [9] had no color at all — all five now read Reset <Name> instance + - <Color> (survivors kept running); the
dash-descriptors embedded in labels moved to tails ([22] Refresh chats - ALL instances → Refresh ALL chats, [27] Re-apply app patch - v8… → Re-apply app patch + - v8, icons + bidi auto (after app update), [28] Login clone account - one-time plan setup → Login clone account + - one-time plan setup (light workers + T3 bridge)); ZCode [6]'s tail now
matches the other suites' phrasing (- Second..Sixth, one after another).
Section placement unified: OpenCode Install clone shortcuts moved from
Maintenance into Launch Clones [7] (matching AutoClaw2/Cline), the patch row
moved to Maintenance [8] — locals [7]/[8] swapped, gids 59/60 unchanged.
NEW row: ZCode [29] Remove clone shortcuts (gid 72, install_zcode_second_shortcuts.ps1 -Remove) — ZCode was the only suite
without one; dispatch header widened to 1-72. Naming-scheme rule documented
(AGENTS.md .bat rules): ZCode clones keep their legacy NAMES
(Second..Sixth — dirs/shortcuts/ZCode <Color> titles frozen), newer
suites use c1..cN, and clone is the unified docs term. The :RunZcodeReset note no longer cites the nonexistent "ZCode Color"
shortcuts. Docs truth sweep: the four stale "AutoClaw2 is CLI-only / not
wired into GHOST.bat" claims fixed (README, getting-started ×2,
architecture) to cite main [4] rows [1]-[9]; cli.md ZCode range [1]-[29]
IDE Resets casing + OpenCode equivalents (patch [8], shortcuts [7])
the [29] cite; AGENTS.md header, blue, Second typo, complete
Fifth/Sixth shortcut list, c1..c5, clone slots→clones, playbook
palette gains Sixth orange #CB5D06; README table rows now quote the
exact GHOST.bat labels. Harness: O retargeted (patch [8], shortcuts [7])
M asserts the new [29] row.
Clone shortcut display names unified to <Suite> <Color>.lnk
(2026-11-01): one naming vocabulary across all four clone suites — the
desktop/Start-menu shortcuts are now ZCode Blue .. ZCode Orange, Cline Blue..Orange, OpenCode Blue..Orange, AutoClaw2 Blue..Orange.
Color is the only vocabulary already shared by every suite (per-color
icons, <suite>-<color>-branding dirs, and the app-patched ZCode <Color>
/ OpenCode <Color> window titles), so the shortcut name now equals the
window title. All four installers gained LEGACY cleanup: the pre-rename
names (ZCode Second..Sixth, others c1..c5) are deleted on every
install AND -Remove run, so a rename never orphans .lnks. Technical keys
stay frozen: -Instance values (ZCode Second..Sixth, others c1..c5),
clone-home dirs, AUMIDs (ZCode suffixes 2..6), -Target values, window
titles; the alias map (Second↔c1↔Blue …) is documented in AGENTS.md and
the playbook. Launch-ZCode-Second/Third/Fourth/Fifth/Sixth.bat wrappers
renamed to Launch-ZCode-Blue/Yellow/Green/Red/Orange.bat (git mv; the -Instance argument inside is unchanged); GHOST.bat notes + the :StartClone/:Detached console titles now speak the color vocabulary
too (ZCode Second Instance → ZCode Blue, Cline c1 → Cline Blue,
…); docs swept (cli.md, getting-started, troubleshooting, architecture,
AGENTS.md, playbook, launcher comment). Applied live: all four installers
run on the dev host, leaving exactly the five color-named shortcuts per
suite on Desktop + Start menu.
Removed
AutoClaw v1.20 suite sunset — code removed from the tracked repo
(2026-10-31): the v1.20 app was uninstalled from the dev host
2026-10-29 and GHOST.bat main [4] was rewired to the AutoClaw2 suite
the same day; the dead machinery now leaves the tree entirely — src/windows/launch_autoclaw_clone.ps1, src/windows/reset_autoclaw.ps1, src/windows/Launch-AutoClaw-Clone.bat, tools/install_autoclaw_clone_shortcuts.ps1, tools/patch_autoclaw_ports.ps1 + .mjs (engine v12), tools/autoclaw-{blue,yellow,green,red}-branding/ and docs/AUTOCLAW_CLONES_SPEC.md. Recoverable from git history (last full
presence: 874346f and its descendants) or the gitignored local copy at archive/autoclaw-v1.20/. Docs scrubbed to sunset notes: AGENTS.md
(conventions section compressed, layout tree, playbook suites list),
README, architecture, cli, docs/README, the AutoClaw2 spec sibling refs,
playbook/edge-cases, TASK_BACKLOG (BS-1/BS-2/CS-4 → MOOT),
ZCODE_RESET_EDGE_CASES_PLAN F-11, and the tool headers that cited the
removed files. tools/new_clone_suite.ps1 GHOST.bat anchor fixed — it
still matched the retired "AutoClaw Multi-Instance" render line and would
have thrown on any future scaffold run ("AutoClaw2 Multi-Instance" now).