Repository navigation
Releases
GHOST v1.8.0
[1.8.0] - 2026-11-28
Added
- ZCode reset hardening (2026-11-28) — the new fixture tests exposed and
fixed FOUR latent bugs inreset_zcode.ps1(plus one shared across the four
thin-manifest resetters): the QuickEdit guard now opens CONIN$ (the INPUT
buffer QuickEdit lives on) with the correctGENERIC_READ|GENERIC_WRITE
access and anExactSpellingSafeFileHandle import, verify-then-claim
([console] QuickEdit disabled for this console (verified).), and a
-DryRunplan leaves both the mode and the output untouched — the old
CONOUT$ guard could never have cleared anything (wrong buffer AND access
0xC0400000, both probed); the Both/All orchestrator launched children with
the undefined$v14Script(every Both/All run died at the first child) —
now a self-contained$orchestratorScriptdispatch; an explicit
-SkipQoderreaches the Primary child and the dry-run plan; the "IDs were
generated" NOTE only prints when no child failed (a[FAILED]line
otherwise); steps [7/27] (Qoder argv.json) and [24/27] (~/.qoder caches)
were ungated — clone resets andPrimary -SkipQoderrotated the shared
Qoder crash-reporter id and wiped~/.qodercaches; the success banner is
finally v1.5; andInvoke-StoreDeleteacross zcode/qoder/qoderwork/minimax
could never have fired through the v1.5 shape (a""label element fails
Mandatory [string[]]binding on PS 5.1 AND pwsh, and PS 5.1 then drops
empty native args so argparse demanded the label) — the core's
store-deletelabel is now optional (nargs="?", omitted = derived from
--root-path, the documented contract). New tests:
reset_zcode_console(live CONIN$ fixture) +reset_zcode_orchestrator
(real child dispatch over inert stubs) +reset_store_delete(17 total). - AutoClaw2 chat lineage + all-to-all mesh sync (2026-11-28) — the chat
import layer grew an identity: imports are now tracked per ORIGIN
(ChatLineageback-traces each imported session to its source
profile/session through the sidecar, with cycle + unknown-origin
refusals), the active-account pointer (device\active-product-account.json)
drives account selection, and every chat writer holds a cross-process
lock (Local\GhostAutoClaw2ChatMesh-<sha>/ flock on POSIX). New core
verbs + tools:ac2-chat-reconcile(account-scoped, digest-planned,
reversible cleanup of duplicated import history — dry-run returns a
plan_id, apply re-verifies plan + closed target + backup inside
BEGIN IMMEDIATE) andac2-chat-mesh(convergence across Primary +
c1..c5: per-lineage winners/forks by prefix-extension, append-only
replay that never seeds a target work queue, sidecar-before-commit
provenance, one retained verified backup per account, busy profiles
QUEUED never stopped);tools/watch_autoclaw2_chat_sync.ps1(resident
watcher on a runtime signature +-RunOncepreview/apply + autostart,
AutoClaw2 [26] preview / [27] apply, gids 137/138),
tools/launch_autoclaw2_primary_sync.ps1(Sync & Open Primary Desktop
handoff — waits for Primary to quit, one gated pass, relaunches the
stock exe non-elevated),tools/inspect_autoclaw2_chat_runtime.ps1
(fail-closed busy-profile probe by--user-data-dir, never exe color)
andtools/autoclaw2_primary_lnk.ps1(shared stock-lnk drift library).
The clone launcher now matches windows by exe path (splash-swap-safe
taskbar kick), setsZWORK_RELAUNCH_NAME/ZWORK_RELAUNCH_COMMANDand
repairs a stock lnk Windows retargeted during cold start;
patch_autoclaw2_identity.ps1is engine v3 (fifthwindow-relaunch
anchor); the shortcuts installer's-RepairPrimaryAumidis rebuilt on
the lnk library (AUMID or per-color-exe drift, hash-verified backups)
with-RefreshTaskbar. Spec docs extended
(AUTOCLAW2_SYNC_SPEC.mdlineage/reconciliation/mesh sections). - CS-7: OpenCode config-sync goes LIVE (2026-11-22) — the Phase-0 probe
(controlled live test on clone c1 running its own v2.3.2 service with the
config directory watcher armed) LIVE-VERIFIED that a running desktop
clone re-reads its config on change: an external edit fired
config.updatedin the clone's service log within ~2s, for BOTH write
styles (in-place AND the atomic temp+Replace swap). So
sync_opencode_config.ps1now syncs RUNNING clones by default (with a
live-reload verify-after that polls the clone's own service log for the
fresh event and reports VERIFIED / NOT observed — absence is a WARN,
never a failure: the v1 npm CLI binary is startup-only);
-SkipRunningrestores the old skip as an opt-out. Two hardening fixes
rode along: the merge write is now ATOMIC (temp +File.Replace), and
the merge containers were fixed to the app's REAL shape (mcp.servers.*
nested + directmcp.*entries — the old flat walk let the Primary's
wholeserversblock silently drop clone-only servers inside it;
regression-tested). Audit entries gainrunning/liveReload. Probe
history + the service-sharing discovery recorded in
docs/OPENCODE_CONFIG_SYNC_PLAN.md§Phase-0 and TASK_BACKLOG (new CS-10
spike). - CS-10: the OpenCode v2.3.2 service-sharing isolation break — fixed
per-launch (2026-11-23) — v2.3.2 keeps a machine-global background
service registry ($XDG_STATE_HOME ?? ~/.local/state\opencode\service.json)
and the desktop app JOINS a live compatible service at startup BEFORE the
patched clone-home branch can setXDG_STATE_HOME; since the service
process owns the data home, a joining clone's sessions landed in the
Primary'sopencode.db(db-verified).launch_opencode_clone.ps1now
sets the fourXDG_*levers at PROCESS-ENV level aroundStart-Process
(saved/restored) — the clone always spawns its OWN clone-local service
(live-verified: the Primary db byte-untouched with the Primary daemon
up) — plus a read-only machine-registry guard (WARN when the recorded
pid is alive; GHOST never writes/deletes the registry). The registry
tail is now CLOSED (2026-11-28, deep-mined + patched): the app never
writesservice.json— the spawned CLI child self-registers using the
XDG_STATE_HOMEits env carried at process start, and the app's UNIQUE
win32 desktop-init deleter (delete process.env.XDG_STATE_HOME, ONE
site in the whole asar) always strips that lever, so the child
registered machine-default (last-writer-wins — the next Primary launch
would join the clone's daemon). Patch engine v5 guards the deleter with
the patch's own global (globalThis.__opencodeCloneHome||): the child
now registers at<cloneHome>\state\opencode\service.json, the machine
registry is only ever written by the Primary's own service, and the
Primary keeps stock behavior (anchor drift aborts; anchor-absent
pre-2.3.2 builds skip loudly; 2.4.2 anchors re-verified — the vy
deleter is still exactly one site, and a full-engine dry-run on the
live 2.4.2 asar — candidate to %TEMP%, no swap — passed the complete
pipeline: totals 1/1/1,node --checkclean, rebuild + verify OK).
The swap then ran live (2026-11-28, OpenCode closed) and exposed a
real driver bug: the post-swap probe passed a JSON array through the
PS 5.1 native-argument boundary, which STRIPS embedded double quotes
—JSON.parsethrew AFTER the fully successful swap and the run's
marker was lost (the machine was repaired: the marker written with
verified metadata, the backup pairing verified pristine). Driver v5.1
embeds the need list as a single-quoted JS literal (the shape that
survives the boundary) and re-pairs a markerless-but-patched asar with
a scanned pristine backup instead of backing up the patched bytes.
LIVE ACCEPTANCE PASSED on c1:c1\state\opencode\service.json
appeared (the spawned child registered CLONE-LOCALLY), the machine
registry stayed byte-untouched through every step, and a second c1
launch REUSED the clone's own service. One manual ingredient — the
per-clone port — became the new CS-11 spike: v2.4.2 FIXED the
service port at the compiled default 28894 and refuses to start on
collision (the 2.3.2-era "ephemeral port" verdict is superseded);
opencode service set port <port>persists per-clone to
<configHome>\opencode\service.json, so the launcher seeding a frozen
per-clone port map is the remaining fix. - CS-11: the per-clone service-port seeding (2026-11-28) — the fix
for the 2.4.2 fixed-port collision. A shared helper
(src/windows/ghost_opencode_service_port.ps1) carries the frozen
map c1..c5 → 28901..28905 (mutual distinctness only — the port
default is version-computed, not a literal) and
Initialize-GhostOpenCodeServicePortseeds
<cloneHome>\config\opencode\service.json: a valid existing port is
SKIPPED loudly (a hand-tuned port is never overwritten), otherwise the
file is MERGED (every existing key preserved — notably the pre-shared
service password — andportset), written atomically via the shared
Write-JsonNoBom(no BOM), verify-after re-read, warn-never-block.
Wired into BOTH launchers: the desktop launcher's new [2d/5]
pre-launch step and the light worker's run path (its default run
auto-starts the sameserve --servicechild);-Statussurfaces the
seeded port. Functional fixtures (fresh/skip/merge/invalid-JSON) +
launcher/light pins. Live c2 acceptance: the fresh seed wrote
28902, the child started with ZERO collision errors and registered
clone-locally on 28902 (machine registry byte-untouched) — two seeded
instances now coexist live. - TA-2 (partial): the status tools run on the shared classifier
(2026-11-28) — of the 8 real per-suite classifier sites, the two
non-destructive STATUS tools are flipped onto
tools/suite_status_lib.ps1:status_zcode_instances.ps1(ru...
GHOST v1.7.0
[1.7.0] - 2026-11-22
Added
- Terminal Agents suite 2: codex (2026-11-21) — the OpenAI Codex CLI
(npm@openai/codex) joins as the second Terminal-Agents suite, on the
claude-code pilot's exact pattern: ONE env-lever home (CODEX_HOME,
Phase-0 LIVE-VERIFIED —--version,codex login status,codex mcp listand an exec attempt all honored it while the Primary~\.codex
stayed byte-identical), light-worker PID markers for attribution, and an
evidence-based identity resetter.launch_codex_light.ps1(Terminal
Agents [6]/[7], gids 133/134): interactive TUI default,
codex exec --skip-git-repo-checkone-shot with STDIN CLOSED (codex
exec reads stdin — live-captured),-Yolo=--yolo,-Loginverifies
auth.json.reset_codex.ps1(Terminal Agents [8], gid 135):
deletesauth.json+installation_id(PROVEN to regenerate fresh) +
cap_sid+ the runtime SQLite stores (state_*/logs_*/goals_*/queue_*- wal/shm) + sandbox/tmp junk;
config.toml,AGENTS.md, chats
(sessions\), memories and thread history PRESERVED; NO TOML/JSON
edits at all.status_all_instances.ps1+suite_status_lib.ps1gain
the codex suite (markers-only attribution like claude-code; Terminal
Agents [9] = gid 136, ceiling 132→136). Honest limits recorded:
an unauthenticatedcodex execFAILS LOUDLY (no claude-style hang) and
skills load from the SHARED~\.agentsstore. gemini-cli stays
deferred-by-absence (~\.geminiis Antigravity's).
- wal/shm) + sandbox/tmp junk;
Added
- Terminal Agents: the Z.ai gateway lever — claude-code rides the existing GLM plan (2026-11-21) —
Z.ai's GLM Coding Plan officially exposes an Anthropic-compatible endpoint
(https://api.z.ai/api/anthropic, documented for Claude Code), so the
claude-code clones no longer need an Anthropic subscription: set
ANTHROPIC_BASE_URL+ANTHROPIC_AUTH_TOKENonce via setx (machine env;
the token value is never printed or stored by GHOST) and the gateway IS
the auth — no OAuth login, and the launcher's no-login warning goes
quiet.launch_claude_code_light.ps1gains-Gateway(Terminal Agents
[5], gid 132, ceiling 130→132): prints the exact setx recipe when
unset, and runs a REAL verify turn on the c1 home (light-worker marker on)
when set. Un-blocks the remaining TA-1 items (real turn + onboarding
question) on the user's existing Start Plan — the only user-supervised
step left is fetching a Z.ai API key and running the recipe.
Verified
- TA-1 live acceptance, half-verified (2026-11-21) — the light-worker
PID-marker + fleet-view contract VERIFIED LIVE on the claude-code suite
(mid-runc1 RUNNING / light workercapture + cleanstoppedafter);
the no-subscription failure mode captured: an unauthenticated headless
-pHANGS silently (always-Loginfirst). The real login + turn stay
OPEN, gated on an Anthropic subscription. Docs: TASK_BACKLOG TA-1,
TERMINAL_AGENTS_SPEC §2/§5, cli.md honest limits.
Added
- ZCode clone memory sync — one shared memory store for all instances
(2026-11-21) — each clone's.zcode\cli\memoriesis a private seed-time
copy, so memory saved in one instance never reached the others (live
measurement: five clone stores of 233 markdown files each vs 957 on the
Primary, MEMORY.md index pointers diverged by hundreds of lines). New
tools/sync_zcode_memories.ps1(ZCode submenu [34], gid 131) applies the
skills-sync junction pattern to the memory stores: newer-wins robocopy
merge clone→Primary (/E /XO, Primary never downgraded; junk
_backup-merge-*/memories.pre-sync-*dirs excluded everywhere), a
UTF-8-safe MEMORY.md index union with a mojibake peel, whole-dir
move-aside backup (memories.pre-sync-<ts>), junction onto the Primary
store, verify-after everywhere (junction LinkType + resolved target +
content probe; index writes re-read + compared), JSONL audit at
<CloneHome>\.zcode\memory-sync-audit.jsonl. Encoding is the whole point:
the peel exists because the 2026-11-21 live incident showed PS 5.1
Get-ContentANSI defaults re-appending UTF-8 index lines as layered
mojibake (one real index: 7749 lines holding 845 unique) — the lib
(tools/zcode_memory_merge.ps1, pure + unit-tested) reads/writes explicit
no-BOM UTF-8, peels CP1252-as-UTF-8 layers with an EXCEPTION-fallback
encoder (bare GetEncoding(1252) BEST-FITS unmappable chars like Arabic
alef to '?', silently corrupting them — caught by the fixtures), and
preserves single-line arrays through the return unwrap. Guards mirror the
asset sync: RUNNING instances skipped unless-AllowRunning(owner
override), unseeded homes skipped, already-junctioned stores verified +
idempotent-skipped.-Target Second|Third|Fourth|Fifth|Sixth|All,
-DryRun. Derived from the live all-with-all sync performed 2026-11-21;
live acceptance on a fresh multi-clone machine pending. Docs: cli.md
"ZCode clone memory sync", getting-started ZCode [34], README task table. - Terminal Agents family + the claude-code pilot (2026-11-21) — GHOST's
home for TERMINAL coding agents (CLIs whose interactive REPL already is a
terminal TUI, so no desktop isolation layer is needed). Pilot = claude-code
(npm@anthropic-ai/claude-code2.1.314, Phase-0 evidence-cited):
per-instance homes ride ONE env lever (CLAUDE_CONFIG_DIR— live-verified:
a fresh dir +claude mcp listcreates.claude.json+backups\there;
each fresh home auto-generates its ownmachineID/userID). New:
src/windows/launch_claude_code_light.ps1(-Instance c1..c5, REPL /
-Prompt/-Yolo/-Login/-Status; light-worker PID marker around
every run mode; login verified via the home's own.credentials.json) +
src/windows/reset_claude_code.ps1(user-scope resetter, W1-9 dry-run
planner, evidence-based identity/telemetry key scrub + OAuth deletion +
backups/.claude.json.backup.*/state/cache/statsigsweeps;
transcripts/sessions/history/settings/skills/mcpServers PRESERVED; handles
the Primary profile-root.claude.jsonvs clone consolidated-home layout
asymmetry; fixture-tested end-to-end incl. idempotence). Honest limits
recorded: no free-model fallback (fresh homes need their own-Login);
one-shot tool approvals need-Yolo. Spec:
docs/TERMINAL_AGENTS_SPEC.md; open items TA-1 (live acceptance,
user-supervised) + TA-3 (codex/gemini backlog) in TASK_BACKLOG §5. - Unified cross-suite instance status — Maintenance [6] (gid 126) +
Terminal Agents [4] (gid 130) — "how do I know which clone/instance is
running" answered in ONE read-only report:
tools/status_all_instances.ps1covers every suite (ZCode, AutoClaw2,
Cline, OpenCode, Claude Code) in one invocation with honestly-labeled
signals (exe copy / markers / lockfile / title / bare main / light worker
— a stock-exe AutoClaw2 clone staysUNCLASSIFIABLE externally, never
guessed) + the OS commit/RAM header. The classifier rules (EC-K01
bare-exe mains, copy-exe-first, queue-based subtree marker walk, lockfile
probes, title maps) live in ONE shared lib now,
tools/suite_status_lib.ps1(Get-GhostSuiteInstanceState, injectable
process snapshots for tests) — the six live-verified per-suite inline
copies are deliberately untouched for now (dedup recorded as TA-2). - Headless light-worker visibility (the PID-marker contract) — every
light-worker launcher (ZCodelaunch_zcode_cli_light.ps1,
launch_opencode_cli_light.ps1,launch_cline_cli_light.ps1, the new
claude-code worker, and the Linuxlaunch_zcode_cli_light.shtwin) now
writes<clone-home>\.ghost-light-worker.json(launcher pid + mode,
key names only) for the whole run and removes it on exit
(src/windows/ghost_light_marker.ps1= the one shared copy; readers
validate pid liveness + a PowerShell/pwsh process-name sanity check, so a
hard-killed worker reads as stale, never as running). Until now headless
workers were invisible to every status surface (no window, no AUMID, no
lockfile). - Terminal Agents submenu (main menu [7]) — GHOST.bat + menu.json +
parity tests: locals [1]-[4] = claude-code worker (gid 127, detached),
c1 login (gid 128, detached), Primary identity reset (gid 129,
confirm-run), suite instance status (gid 130). Ceiling raised 125→130 per
the raise-when-landing rule; the retired v1 gids 37-40+63 stay
reserved-dead.
Changed
tests/ghost_hub_menu.Tests.ps1(seven sections incl. "Terminal Agents"
last, gid ceiling 130) +tests/docs_launcher_parity.Tests.ps1(seven
submenu ceilings; every new row cited in docs/cli.md). docs/cli.md gains
the "Which instance is running? (Maintenance [6])" guide (the honest
signal vocabulary + the deep per-suite tools) and the "Terminal Agents"
section; README gains the claude-code/status rows + the light-worker
marker; docs/T3_LOCAL_SUPPORT.md fixes the stale Cline row (the CLI
worker predates it) and notes the GHOST claude-code pilot; TASK_BACKLOG
§5 gains TA-1/TA-2/TA-3.
GHOST v1.6.0
[1.6.0] - 2026-11-20
Added
- Docs re-baseline + docs↔launcher parity test (2026-11-20) — issue #2
item 3 closed:tests/docs_launcher_parity.Tests.ps1pins docs/cli.md to
the launcher (GHOST.bat is the source of truth): every rendered submenu row
position must be cited in the cheat sheet (a single[N]or a covering
[N]-[M]range), the intro's six submenu ceilings must match the launcher
exactly, and the wiring the citations hang off is pinned too — every
:Optrow must resolve through its submenu resolver to a gid the
:DispatchOnetable actually dispatches with no dangling resolver case,
and menu.json must render the same rows in the same order as every.bat
submenu. The audit it replaces found 85 uncited row positions and 4 stale
ranges across the 2026-11-14..17 renumber waves. This release re-baselines
every user-facing doc to the current launcher state: docs/cli.md (the
header ceilings now [1]-[33] / [1]-[25] / [1]-[23] / [1]-[27]; the three
pre-renumber identity-reset headings fixed; ~20 rows newly documented —
the per-suite sync / taskbar-watcher / pressure / dry-run rows, ZCode
[25]/[26]/[29]/[32]/[33], Maintenance [1], and the ghost.sh clone layer
options 10-13), README (the MCP central registry, the blanket -DryRun
parity statement, the macOS wave + Linux clone layer in the repo layout,
the five-job CI description, the current AutoClaw2 row map),
docs/getting-started (a Maintenance-rows section, the ZCode
[25]/[29]/[31]-[33] utility rows, the Linux clone layer),
docs/README (the 8 tracked docs missing from the index), docs/architecture
(the desktop hub, the MCP registry layer, the suite sync/watch/pressure/
exe-identity tools, the v9/v4 engine notes) and the AGENTS.md
pre-renumber row citations. - Windows resetter dry-run parity COMPLETE (2026-11-20) — issue #2's
"what-if/dry-run mode for all reset scripts" item closed: the five
classic resetters gained the W1-9-style report-only planner
(reset_cursor.ps1,reset_trae.ps1,reset_devin.ps1,
reset_minimax_opencode.ps1,reset_qoder.ps1;reset_zcode,
reset_qoderworkand the three suite resetters already had it — every
Windows resetter now plans). Each planner prints the real step list
with resolved store paths + presence (devin's is multi-root aware: the
Devin + Windsurf%APPDATA%detection mirrors the main path), the
would-kill process set (read-only probe, no kill), the core-availability
note, and the preservation policy — then exits 0 BEFORE self-elevation
(a report-only run never triggers UAC) and before any kill/write: no
python invocation, no backup dir, no audit/restore/marker file. The
hand-maintained plan lists are cross-checked against the real
--- [N/M]step headings bytests/reset_dryrun.Tests.ps1(20 tests:
per-app planner-before-elevation, planner purity, drift tripwire, and a
functional zero-write probe under redirected
APPDATA/LOCALAPPDATA/USERPROFILE). Not-installed targets get an honest
"the real run would abort here" + exit 0. CLI-only (the qoderwork
precedent — no new menu rows/gids). docs/cli.md gains the -DryRun lines. - CS-8 real-data validation (2026-11-20) — the OpenCode chat sync's
inventory + zero-write dry-run plan ran against the REAL stores (the
58-session / 2772-message Primary db + clone c1's 19 sessions):
58 missing sessions planned with correct family ordering (the 4
subagent sessions sort after their parent), 2772 messages, 58
instruction_state rows, 4 of 9 project rows would be copied verbatim,
Arabic/Unicode titles and empty titles handled — zero fixes needed, the
fixture-built contract held at scale. Evidence recorded in
docs/TASK_BACKLOG.md (CS-8 row); live import + UI display acceptance
remains user-supervised. - OpenCode cross-instance chat sync (2026-11-20) — the deferred
chat-sync discovery spike resolved: the store contract was MINED from
the live dbs (sessions live INopencode.db—session_v2→
projectFK, the whole message payload insession_message.data
JSON,session_part/blob/blob_refdeclared but empty in the
observed schema; project ids STABLE per worktree path across
instances; auth OUTSIDE the db —account/credential/
control_accountwere 0 rows and are never read). Core:
src/python/ghost/opencode.py(oc-chat-inventory/oc-chat-import
/oc-chat-revert— same-id PK idempotence (a reverted import is
plannable again), ancestor+descendant family expansion, project row
reuse-by-path or verbatim copy, one transaction with FK ON + WAL-safe
sqlite3 backup + verify-after recount + sampled byte-compare, schema-
mismatch refusal on drift,chat-sync-manifest.jsonsidecar, the
"[import] " title tag). Orchestrator:tools/sync_opencode_chats.ps1
(default = diff report;-SessionIds/-AllMissingplan,-Apply,
-DryRun,-Revert -ImportId; the CS-1 lockfile probe skips a
RUNNING clone; a db-less clone is skipped; source opened read-only;
auditchat-sync-audit.jsonlcarries ids + counts only — never
message bodies). Wiring: OpenCode [26] inventory diff (gid 124) +
[27] guarded import (gid 125) — the gid ceiling rose 123→125 (the
retired AutoClaw v1 gids 37-40+63 stay reserved-dead per the hub-menu
test). Tests:tests/python/test_ghost_opencode.py(15, incl. CLI
e2e) +tests/opencode_chat_sync.Tests.ps1(15 static contract) +
the orchestrator's %TEMP% fixture matrix (diff/plan/apply/
idempotence/revert). LIVE acceptance = user-supervised (CS-8): import
into a closed clone and confirm its UI lists the sessions after the
next launch. - Cline chat-sync verdict (2026-11-20, CS-9 — DEFERRED-BY-EVIDENCE)
— the other deferred spike closed with a mined store map: chat
history =data/sessions/<id>/*.jsonfiles plus asessions.dbthat
is a RUNTIME PROCESS REGISTRY (not a history store),session-search.db
FTS + agenda/teams side dbs; data volume ~NIL (one session across
c1..c3); the desktop UI's task-history source is unverified
(snappy-compressed WebView2 LevelDB defeats a literal strings probe);
checkpoints live in workspace git refs and do not port. Reopen
triggers recorded in docs/TASK_BACKLOG.md + docs/CLINE_CLONES_SPEC.md
§7 — the store map is closed, do not re-derive it. - macOS ZCode reset (2026-11-19) — the SEVENTH and last macOS resetter;
the wave is COMPLETE (issue #36 — every slug now has a macOS resetter).
src/macos/reset_zcode.sh(v0.1): the Linuxreset_zcode.shv0.2
map VERBATIM — no invented steps, hence NO machineid-file step
(platform.py has no zcode machineid_file row, unlike cursor/qoder; the
Electron identity rides storage.json/state.vscdb). 6 steps: the Electron
identity stores (storage.json flat telemetry keys + serviceMachineId +
state.vscdb ItemTable upserts via the sharedreset_electron_stores),
~/.zcode/v2/telemetry-state.jsondeviceMid (core json-set + verify),
the~/.zcode/v2/credentials.jsonOAuth clear (zcodejwttoken exact +
everyoauth:-prefixed key),~/.zcode/v2/setting.json
webRemoteControlExternalRelayDevice.deviceSid (dotted json-set + verify),
the~/Librarysweep (Caches/Logs/ZCode delete_store +com.zhipuai*
Preferences +*[Zz][Cc]ode*savedState/HTTPStorages nullglob globs —
DERIVED, the bundle id is unverified on a real Mac; NOTE the[Zz][Cc]ode
shape:*[Zz]odewould MISS "ZCode" — smoke-caught), and the final probe
(storage.json + telemetry-state + setting.json re-verified). PRESERVATION
(matches Windows/Linux): the shared CLI session db
(~/.zcode/cli/db/db.sqlite) +cli/config.jsonare NEVER touched
(loudly audited); no clone mode (the Linux--instancelayout is a
Linux-launcher concept). Smoke-tested end-to-end on the dev host against
a seeded fake home: Pass 6 / Fail 0 + checker ALL PASS (22 assertions incl.
the FLAT-key shape the macOS Electron storage.json actually holds — the
same shape the #95 flat-fallback fix serves), idempotent re-run exit 0
(the Library deletions skip loudly), abort path exits 1 before any
mutation. Live macOS acceptance = user-supervised. - macOS QoderWork + MiniMax resets (2026-11-19) — the fifth and sixth
macOS resetters (issue #36 follow-up; Qoder + Cursor + Trae +
Devin/Windsurf shipped first), one PR, both DERIVED-flagged and
absence-tolerant.src/macos/reset_qoderwork.sh(v0.1, 16 steps):
the LIVE-VERIFIED Windowsreset_qoderwork.ps1v0.2 map ported onto the
macOS column — machineId files probed in THREE spellings (Windows
machine-idvs Linuxmachineidvs Electron camelCase; the macOS
spelling is unverified so whichever exists rotates), the Electron 5-key
telemetry stores,~/.qoderwork/installation_id, the.status.json
logged-out patch (version/schema_version/product preserved, fresh UTC
snapshot_at, writer=main),external-commands/registry.json
commands=[], the cache/log sweeps,rum-electron-store(ARMS
_arms_uid), the Local State delete, thePartitions/mainsalt +
network stores + Local/Session Storage + Shared Dictionary, the cache
trees, SharedStorage + dns-cache,auth.dat/auth-v2.dat, and the
signaturedata/agents.dbpurge-tables scrub with the EXACT Windows
whitelist (15 tables + 12 app_settings keys; chats/sub_chats/messages/
projects NEVER in the list; theproxysetting survives; backup-first
with--sqlite-wal; schema-missing tables tolerated per the core WARN
contract — smoke-proven with 2 of the 15 tables deliberately absent) and
data/dynamic-text/qoder-work.jsonPRESERVED (UI strings).
src/macos/reset_minimax_opencode.sh(v0.1, 13 steps): the Linux
v0.2 MiniMax-only scope + the MiniMax-side Windows v1.4 steps —
machineId files in thre...
GHOST v1.5.0
[1.5.0] - 2026-11-11
Added
- Menu: "Launch ZCode Primary" row (2026-11-10): ZCode submenu [9]
(new gid 82, newsrc\windows\launch_zcode_primary.ps1) launches the
stock Primary instance detached and NON-ELEVATED — spawned via
explorer.exe so the app is always medium-IL (UIPI otherwise silently
strips drag-drop into an elevated instance) and immune to ZCode's
AttachConsole console hijack. No clone env vars are ever set: default
look, bare base AUMID. Verify-after polls 20s for a Primary-classified
main (subtree carries no clone markers — same classifier as the taskbar
watcher) and prints the PID, FAILED exit 1 if none; relaunching while
the Primary runs just focuses its window. Launch transcript at
tools\logs\launch_zcode_primary.log. Also in GHOST.exe (runtime
menu.json row, detached mode — no rebuild needed). The Primary reset row
(ZCode [15], gid 7 — still also IDE Resets [7]) gained a
"- Primary profile - chats kept" tail in GHOST.bat + menu.json. - ZCode Task Manager identity — per-color exe copies (2026-11-11): Task
Manager's background-process groups take their display name and icon from
the executable IMAGE itself (embedded icon resource + VERSIONINFO
FileDescription), so all six instances running the stockZCode.exe
rendered as identical stockZCode (N)rows no matter what the
taskbar/shortcut/window stack did. New
tools\patch_zcode_exe_identity.ps1(+ pure core
tools\zcode_exe_identity_lib.ps1, unit-tested) builds per-color exe
copiesZCode-Blue.exe…ZCode-Orange.exein the install dir (~235 MB
each, support files shared; ~1.2 GB total) and patches their icon group
(Win32 UpdateResource, PS 5.1-safe P/Invoke) + FileDescription
(ZCode <Color>), verify-after re-reading the written resources and the
version info — never silent success. The clone launcher's new step 2f
fast-checks a sidecar marker (source size+mtime+SHA256 + icon SHA256 +
engine version) and rebuilds a copy only on drift (app update, icon
change), then starts that clone from its copy; the Primary keeps the stock
exe. Copies lose Authenticode validity (resource edits) — AV-protected
machines may see a SmartScreen prompt on first launch of a copy (this dev
box runs none; estimate-hedged in docs). Manual rebuild: ZCode submenu
[31] (new gid 83, appended in display order — gids never renumber) or
-Target All/-DryRun/-Force. - Classifier widening for the copy family (2026-11-11): every ZCode
process enumeration across 8 scripts widened from the bare
Name='ZCode.exe'/Get-Process -Name ZCodeto the whole copy family
(Name LIKE 'ZCode%'/'ZCode*'+ copy-aware cmdline regex) — the old
predicates made a clone running from its exe copy invisible to the RAM
guard, PID-diff discovery, taskbar stamping, selective resets, the
asset-sync running guard, chat refresh, the MCP-sync watcher and the
captcha watchdog. Classification gained the copy-exe name as a FIRST
signal (ZCode-Blue.exe → Second etc.) — deterministic even mid-splash
before marker-carrying children exist; markers remain signal #2, titles
the fallback. The captcha watchdog's marker patterns gained the copy exe
names, its taskkill hammer covers the copies, and its Primary relaunch
now accepts ONLY the stock install-dir exe (never a copy path). Also
fixed a silent PRE-EXISTING gap found while writing the new regex: the
unquoted-path branch of the bare-exe rule used[^\s"]*, which can never
cross the space inC:\Program Files\...— machine-wide installs were
misclassified as Primary; it is[^"]*now. Test-pinned by
tests/zcode_exe_identity.Tests.ps1 (21 tests incl. launcher-parity and a
copy-family tripwire over all 8 enumeration sites); the resident watchers
pick the new classifiers up on their next restart (a watcher started
before the edit keeps the old code — relaunch via ZCode [26] or any clone
launch's step 2e). - GHOST.exe — Windows desktop GUI wrapper (2026-11-10): single-file
C# (.NET 4.0 WinForms) launcher compiled on the fly by
tools\build_ghost_exe.ps1using the in-boxcsc.exe(no SDK needed).
Carries native icon, DPI awareness, embedded UAC manifest, search filtering,
and executes menu actions with real-time logging. Data-driven from
src\desktop\menu.jsonwith 1:1 parity enforced bytests\ghost_hub_menu.Tests.ps1. - AutoClaw2 notification-tray identity — identity patch v2 (2026-11-09):
tools/patch_autoclaw2_identity.ps1splices a FOURTH byte-anchor inside the
generic tray builder (mTr):t=r(e(n.iconPath))->
t=r(e(process.env.ZWORK_CLONE_ICON||n.iconPath))— the notification-area
tray icon now followsZWORK_CLONE_ICONtoo. - Netlify MCP server added to the central registry (2026-11-08): the
29th entrynetlify-mcpintools/mcp/master-mcp.json. - Namecheap MCP server added to the central registry (2026-11-10): HTTP
MCP endpoint with bearer token authentication.
Changed
- ZCode submenu renumbered (2026-11-10): the new Launch row inserted as
local [9] shifted locals 9-29 → 10-30 (gids NEVER move). - Maintenance submenu expanded: now [1]-[5] with gid 81 (
tools\build_ghost_exe.ps1). - GHOST shortcuts prefer GHOST.exe:
tools\install_ghost_shortcut.ps1
links toGHOST.exewhen built, falling back toGHOST.bat.
Fixed
- Menu "Change Device ID" (IDE Resets [1]) never changed anything (2026-11-10):
gid 1 now dispatches through:ConfirmRunwith-Mode LegacyReset. Fixedreg load
error handling via$LASTEXITCODE, skipped unmountable profile hives loudly,
and unified hostname generation withGet-NewHostname. - MCP registry sync: codex "registry-disabled" skip (2026-11-10):
pureSelect-CodexViewfilter drops remote and disabled entries before per-app transform. - AutoClaw2 chat import empty-pane timeline regression & re-import (2026-11-10):
remappedrequest_entry_idandanswer_entry_idunder new run IDs to fix empty imported
timeline pane; permitted re-importing reverted sessions. - AutoClaw2 chat import menu rows & batch import (2026-11-09):
fixed:Runargument forwarding and added-AllMissingbatch import mode. - AutoClaw2 clone windows taskbar grouping kick (2026-11-09):
launcher kicks taskbar group with temporary identity transition to separate buttons.
GHOST v1.4.0
[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 inmaster-mcp.json,mcp-inventory.jsonand
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-refflag-follow args,project_ref=query values,
<ref>.supabase.cohosts — JSON, TOML and flattened-command forms), and
ghost.autoclaw2.expand_env_valueteaches the AutoClaw2 manifest loader
to expand${VAR}(unresolved = left as-is + loud stderr WARN, never
silently empty). History: mirror clone +git filter-repo --replace-textover 129 commits (full refs AND theSupabase (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
provedopencode acpis 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 livesession/newsessionId; clean exit, zero orphans),
sotools/install_t3_opencode_instances.ps1(new) seeds five
acpRegistryprovider 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 fiveopencode-c1..c5
keys — favorites and thezcode-*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.jsongrew 25 -> 28 servers
(supabase-My-portfolio— Orange-clone discovery, scopedonly: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-targetcopilot-computer-use),
and sentry's per-app literalSENTRY_ACCESS_TOKENheader 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
mcpServersproperty only; app state andprojects.*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_secand the[mcp_servers.<n>.env]sub-table
survive per-key).tools/mcp/collect_mcp_inventory.ps1harvests 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
-ApplyLiverecycled 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.exeon a clone's own
state using ONLY the four XDG env levers the clone-home asar patch already
feeds the desktop app (debug pathsproved data/cache/config/state all
follow XDG_* whilehomestays the real profile — no HOME/USERPROFILE
redirect needed, unlike ZCode light). Modes: interactive prompt loop
(default),-Promptone-shot (run),-Serverforegroundserve [--port](the "run a server" case — HTTP verified),-StopService
(automates the §3.8 orphan-kill note),-Login(submenu [8], gid 80 —
one-timeauth loginper clone home, verify-after =
<data>\opencode\auth.jsonnon-{}). Anonymous homes WORK but run the
FREE model (iceman-free) — the opencode-zen analogue;-Auto/-Standalone
pass the CLI's--auto/--standalone.runauto-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 + theTest-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-instanceservecoexistence, 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-Cwduntil the script sets it.
-Loginbrowser-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.autoclaw2and 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(noapp.asar, no runtime integrity check;
the bootstrap does a barerequire()andpayload-verify.cjsis 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-windowsetAppDetailsappId/appIconPath
— therelaunchCommandbacktick literal is never touched — and the main
window'ssetIcon).launch_autoclaw2_clone.ps1now 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
backupmain.cjs.bak-zwork-identity-<stamp>, a sha256 marker, a
node --checkgate through the app's own vendor node, verify-after with
auto-restore, and fresh-backup re-apply after app updates;
install_autoclaw2_clone_shortcuts.ps1gained-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, launch...
GHOST v1.3.0
What's Changed
- Phase 3 continuation: reset_devin v0.4 thin manifest + survivors-list fix by @fotedev in #10
- chore: sync 22 local main commits (v1.2.0 wave, 2026-10-28) by @fotedev in #11
- feat(autoclaw2): git-identity guard - stop forcing GIT_AUTHOR=zwork into agent shells by @fotedev in #12
- feat(zcode): light headless worker launcher (no desktop window, ~1/4 RAM) by @fotedev in #13
- feat(t3): local T3/ZCode ACP bridge tooling + tests + specs by @fotedev in #14
- feat(zcode): soft RAM guard + optional -LowRam for clone launches by @fotedev in #15
- feat(menu): renumber submenus 1..N, AutoClaw2 submenu, v1.20 sunset + doc sync by @fotedev in #16
- chore(branding): refresh tray icons + icon generator + shortcut installers by @fotedev in #17
- test(core): backup uniquify contract (-2/-3 suffix, never clobber) by @fotedev in #18
- chore(release): v1.3.0 by @fotedev in #19
Full Changelog: v1.1.0...v1.3.0
GHOST v1.1.0
[1.1.0] — 2026-10-17
Added
-
Python hybrid Phase 3 pilot — reset_cursor v0.3 thin manifest
(2026-10-17): the Cursor reset's 15 steps now run every store mutation
throughsrc/python/ghost_cli.pycore subcommands via a single
Invoke-GhostCorehelper — new core modulesghost/filesweep.py
(binary-store rename-or-delete, verified deletes, per-file tree sweeps)
andghost/winstore.py(machine-id file, device_id_salt rotation, dotted
JSON key removal) plus 7 new subcommands (backup,machineid-file,
salt-rotate,json-remove,store-delete,sweep-file,sweep-tree),
all covered by the expanded unittest suite (58 cases incl. CLI bridge
contracts). Step order, audit keys, restore actions and the summary are
identical to v0.2 (archived atarchive/reset_cursor_windows-v0.2.ps1,
local-only); step 4's inline temp-.py heredoc — the last one in the repo —
is replaced by the shareddelete-secretssubcommand. Python is now
required for ALL Cursor reset steps (fail-fast up front). 1031 → 840
lines. The mandatory live comparison run (pilot acceptance #3) is
user-supervised and pending. Decision record + design:
docs/PYTHON_HYBRID_ROADMAP.md (Phase 2
leaf-tools migration CANCELLED with per-tool reasons). -
Clone-suite generator (
tools/new_clone_suite.ps1, 2026-10-17) —
turns the app-cloning playbook's Phases 3-10 mechanics into scaffolding:
from an intake JSON (or interactive defaults) it emits the reset manifest,
clone launcher,.batwrapper, AUMID-shortcuts installer (+ branding
wiring +-RepairPrimaryAumid) and a spec stub with a ground-truth table,
then wires a new GHOST.bat submenu (backup + anchor edit + verify-after,
next submenu id / DispatchOne gids allocated by parsing the current file).
Every emitted.ps1is parse-checked before the tool claims success;
Phases 0-2 (discovery/isolation design) stay with the agent as marked
<TODO: Phase 1 discovery>slots. Acceptance: a generated demo suite
passed the harness and repo-integrity, then was removed. -
ZCode per-clone Telegram bots (UI-assisted, EC-D03) —
tools/set_zcode_bot.ps1
(-VerifyOnlyaudit /-Target <name> -Fixbackup-first sync): fingerprints
the encryptedcredentials.json -> bot:<id>:credential(enc:v1:, sha8
only, never values) + bot id across BOTHbot-config.jsonand
bot-config.v3.jsonin all 4 homes (the 2026-10-16 Fourthv2=False / v3=Truesplit looked disabled while polling — both files are now always
checked); fails loudly on any duplicate-while-enabled (HTTP 409 risk).
src/windows/launch_zcode_second_instance.ps1 [2c]upgraded from
always-disable to sha8-compare (duplicate -> disable both files; unique ->
preserve +.telegram-routedv2 marker, never reverted). Flow: operator
creates 3 BotFather bots, pastes each token once in that clone's ZCode UI
(app mints freshbot-<guid>+enc:v1:), tooling guards/syncs. Quota
decision 2026-10-16: Option C — Fourth keeps its big quota isolated.
Docs: docs/ZCODE_TELEGRAM_BOTS.md; tests:
tests/set_zcode_bot.Tests.ps1(4 passing). -
AutoClaw multi-instance clones (Primary + inst1–inst4) — full suite per
docs/AUTOCLAW_CLONES_SPEC.md:
tools/patch_autoclaw_ports.ps1(+.mjsengine v1) widens the installed
app's hardcoded 4-slot MCP port array to 8 (backup + marker +-Restore,
verified byte-identical via SHA-256 round-trip; re-run after every AutoClaw
update);src/windows/launch_autoclaw_clone.ps1(-Instance inst1..inst4,
-Status) launches clones with env-var isolation (USERPROFILE/HOME,
AUTOCLAW_GATEWAY_PORTwith actual-port read-back + drift recording) and a
credential-free seed (tokens stripped,token-cache.jsonexcluded, gateway
state never copied — one manual login per clone) plus verify-after-launch
health/port/pairing checks;src/windows/reset_autoclaw.ps1(-Target
Primary|inst1..4|All,-DryRun) rotates both device identities (auth
deviceId+ ed25519 keypair via node:crypto) and deletes the live operator
credential;tools/install_autoclaw_clone_shortcuts.ps1installs per-clone
AUMID shortcuts with-RepairPrimaryAumid;src/windows/Launch-AutoClaw-Clone.bat
double-click wrapper. GHOST.bat gains a fourth submenu (AutoClaw
Multi-Instance & Clones [1]–[12], gids 29–40) and IDE Resets [9]. -
App cloning playbook docs — docs/APP_CLONING_PLAYBOOK.md
(the generic clone-any-app process: identity suite with a
never-silently-degrade rule, developer-inputs contract, icon policy with
improvise+report as the default for missing icons, phases 0–10
checklists, and a fixed final-report format),
docs/APP_CLONING_EDGE_CASES.md (the
normative EC-xx catalog distilled from the ZCode 2026-09 and AutoClaw
2026-10 suites), and docs/APP_CLONING_INTAKE_TEMPLATE.md
(the per-request fill-in form). AGENTS.md gains the "App cloning playbook"
section;docs/README.mdindexes all three plus the previously missing
AUTOCLAW spec row.
Fixed
- GHOST.bat menu input executed hostile self-input (2026-10-17): the
unquoted%chain%/%choice%expansions ran1 & calcverbatim and
parens broke the parse. A new:ValidateChoiceallowlists digits, spaces,
commas and U/u inside an isolated delayed-expansion probe, and all five
prompt sites reject before the "0" check, tokenization, for-in dispatch or
:RunChaincall. Harness 12/12 incl. hostile amp/parens/submenu scenarios. - Captcha watchdog could run twice and leaked its log-tail state
(2026-10-17): a second resident copy (menu [11] again) double-fired
restarts/Telegram escalations on the shared state file — the watcher now
carries the taskbar watcher's guard (startup process scan + named mutex,
-RunOncealways runs).Read-NewLogLineswas rewritten byte-level: it
consumes only up to the last complete newline (a trailing partial line or
partial multi-byte char is re-read complete next pass) and advances the
offset by bytes actually consumed instead of a file length probed after
ReadToEnd(the old race skipped whatever the agent appended in between). - update_ghost misidentified a Download-ZIP copy sitting inside another
repository as a clone (2026-10-17):rev-parse --is-inside-work-tree
answers "true" against the PARENT repo, so the updater fetched/pulled/reset
in the wrong place ("no origin remote" as the visible symptom). The clone
track now additionally requires--show-toplevelto equal the GHOST folder
itself; a parent-tree hit warns explicitly and routes into the ZIP-copy
conversion flow. - Chat refresh classified a splash-phase clone as the Primary
(2026-10-17):refresh_zcode_second_chats.ps1matched mains by window
title only, and a clone launching (splash title plain "ZCode") was claimed
as a Primary main with its app-servers recycled as Primary's. Classification
is now process-marker-first (the verified 2026-09-24/26 taskbar rule):
WMI subtree walk to the root main, clone roaming/home markers, clone v6
color title overrides a spurious Primary read; unresolved windows are
skipped, never guessed. Live smoke against running instances passed. - Shortcut installers broke under PowerShell 7 (2026-10-17): both
installers set the.lnkTargetPath to$PSHOME\powershell.exe, which
does not exist in pwsh's own directory — shortcuts created by a pwsh-run
installer targeted a nonexistent exe. They now pin the OS-shipped
System32\WindowsPowerShell\v1.0\powershell.exeand fail fast if absent. - block_qoder_domains corrupted non-ASCII hosts comments (2026-10-17,
local-only tool): the hosts round-trip read BOM-less bytes as UTF-8 and
wrote with ASCII encoding, flattening every non-ASCII character to a
permanent?. Read/write now both use the system ANSI codepage (BOM
auto-detect still wins), matching how the Windows resolver reads hosts —
single-byte-codepage content survives byte-exactly. - IDE Resets [9] dispatched the wrong task: the Resets submenu had no
local→gid resolver, so typed ids reached:DispatchOneraw — local [9]
"Reset AutoClaw" therefore ran global gid 9 (the ZCode captcha watchdog,
already reachable as ZCode [11]) instead of gid 28
(reset_autoclaw.ps1 -Target Primary). A:ResetsOneresolver now maps
1–8 identity + 9→28, and both Resets dispatch sites route through it
(the prompt loop and the main-menu chained input1 9); bare global ids
from the main menu keep using:RunChain. Verified 2026-10-16: a
harness extracted the shipped:ResetsOneverbatim and passed all five
cases (1→gid 1, 8→gid 8, 9→gid 28, unknown→error, chained9 2→
gid 28 then gid 2); CRLF intact (434/0); Pester repo-integrity green. - Green-clone-alone showed the Primary's taskbar icon: the Start-menu
ZCode.lnkhad been hijacked withdev.zcode.app.4AND its icon field
wiped (,0), so the shell resolved the clone's AUMID to an icon-less
shortcut and fell back to the exe default icon.Repair-PrimaryAumidin
tools/install_zcode_second_shortcuts.ps1now also restores the Primary
shortcut's icon to<ZCode.exe>,0(Desktop + both Start-menu copies
covered), and the residenttools/watch_zcode_taskbar.ps1self-heals a
hijack every ~5 min (read-only check, repair only when broken,
REPAIR/FAIL logged;-RunOnce -CheckPrimaryHijackfor a one-shot
repair). Verified 2026-09-28: PrimaryZCode.lnkback todev.zcode.app
with a healthy icon; the green window's identity was already correct. - **Python detection no longer false-positives on the Microsoft Store
...