Skip to content

GHOST v1.6.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 18:26
· 20 commits to main since this release
10f95fe

[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.ps1 pins 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
    :Opt row must resolve through its submenu resolver to a gid the
    :DispatchOne table 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_qoderwork and 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 by tests/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 IN opencode.db — session_v2 →
    project FK, the whole message payload in session_message.data
    JSON, session_part/blob/blob_ref declared but empty in the
    observed schema; project ids STABLE per worktree path across
    instances; auth OUTSIDE the db — account/credential/
    control_account were 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.json sidecar, the
    "[import] " title tag). Orchestrator: tools/sync_opencode_chats.ps1
    (default = diff report; -SessionIds/-AllMissing plan, -Apply,
    -DryRun, -Revert -ImportId; the CS-1 lockfile probe skips a
    RUNNING clone; a db-less clone is skipped; source opened read-only;
    audit chat-sync-audit.jsonl carries 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>/*.json files plus a sessions.db that
    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 Linux reset_zcode.sh v0.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 shared reset_electron_stores),
    ~/.zcode/v2/telemetry-state.json deviceMid (core json-set + verify),
    the ~/.zcode/v2/credentials.json OAuth clear (zcodejwttoken exact +
    every oauth:-prefixed key), ~/.zcode/v2/setting.json
    webRemoteControlExternalRelayDevice.deviceSid (dotted json-set + verify),
    the ~/Library sweep (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]ode would 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.json are NEVER touched
    (loudly audited); no clone mode (the Linux --instance layout 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 Windows reset_qoderwork.ps1 v0.2 map ported onto the
    macOS column — machineId files probed in THREE spellings (Windows
    machine-id vs Linux machineid vs 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, the Partitions/main salt +
    network stores + Local/Session Storage + Shared Dictionary, the cache
    trees, SharedStorage + dns-cache, auth.dat/auth-v2.dat, and the
    signature data/agents.db purge-tables scrub with the EXACT Windows
    whitelist (15 tables + 12 app_settings keys; chats/sub_chats/messages/
    projects NEVER in the list; the proxy setting 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.json PRESERVED (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 three spellings, the Electron telemetry stores, the
    mcode-public auth deletions (auth.json + auth-state.json + the legacy
    root auth-state; absent IS the fresh-install state — {} there throws
    Invalid OAuth state and blocks the login page), the
    v2/session-handoff/device-id rotation, local-runtime.auth.json
    wiped to {}, minimax-agent-config.json user/sharedUser removal
    (config kept), remote-control/state.json desktop_device_id rotation,
    .updaterId, the MiniMax Chromium sweeps (15-file network list +
    DIPS*/SharedStorage* prefix probes + cache/web-storage trees + Crashpad

    • Local State os_crypt pointer + uninstall_metrics + Preferences salt),
      the mavis-browser Local Storage, and the misc run-state trees/files.
      The OpenCode-desktop Electron steps do NOT port (no macOS map rows for
      ai.opencode.desktop; the opencode alias resolves to opencode-cli)
      — the CLI XDG auth is NEVER touched (loudly audited), and sessions/ +
      sqlite.db + credentials/mavis/telegram.json + .mavis + system-ca-certs
      are preserved. A smoke-caught port bug added the derivation-fallback
      contract: rows that exist only in the linux/macos platform columns
      (mcode_public, session_handoff_device_id) are derived from the
      mapped roots with the SAME relative structure when the resolved map
      lacks them (loud PROVENANCE warn, never silent) — required on any host
      whose own column predates those rows. Both smoke-tested end-to-end on
      the dev host against one seeded fake home: QoderWork Pass 16 / Fail 0 +
      checker ALL PASS (82 assertions incl. the chat-table row counts + the
      schema-missing tolerance), MiniMax Pass 13 / Fail 0 + checker ALL PASS
      (77 assertions incl. the XDG byte-identical preservation); idempotent
      re-runs exit 0, abort paths exit 1. Live macOS acceptance =
      user-supervised.
  • macOS Devin/Windsurf reset (2026-11-19) — the fourth macOS resetter
    (issue #36 follow-up; Qoder + Cursor + Trae shipped first).
    src/macos/reset_devin.sh (v0.1): 17 steps porting the
    LIVE-VERIFIED Windows reset_devin.ps1 v0.4 + Linux reset_devin.sh
    v0.3 step maps onto the macOS platform.py column (config =
    ~/Library/Application Support/Windsurf per the Linux precedent),
    all DERIVED-flagged and absence-tolerant — machineId files in BOTH
    spellings, the Electron 5-key telemetry semantics via the shared
    reset_electron_stores, the state.vscdb auth-secret DELETE with the
    EXACT Windows v0.4 ESCAPE'd windsurf/devin LIKE patterns (5 exact keys

    • 5 patterns, escape = backslash; smoke-verified with a literal-underscore
      decoy that must NOT match), the stale state.vscdb.backup, the
      Preferences salt + Local State os_crypt pointer + the username
      replace-text scrub on both (pinned-user smoke assertion), the Network
      transport + DIPS + SharedStorage + Trust Tokens sweeps, the EXTENDED
      rebrand-era cache sweep (CachedData/CachedProfilesData/
      CachedExtensionVSIXs/CachedConfigurations/DawnGraphiteCache/
      DawnWebGPUCache/Shared Dictionary — Windows-verified live 2026-09-21),
      Crashpad + logs, workspaceStorage upserts with sidecars preserved,
      cli/installation_id + ~/.windsurf/installation_id (distinct fresh
      lowercase GUIDs), credentials.toml delete, devin.org_id blanking
      (skip_if_empty), the shared ~/.codeium/config.json device_id rotation
      (+ api_key blank; the Linux portal/inference URL writes deliberately
      DROPPED — they would overwrite live user endpoints), the argv.json
      crash-reporter-id patch in BOTH ~/.windsurf and ~/.devin + the
      updater-cache trees in Application Support + Caches. Preservation
      policy
      : Local Storage, Backups, WebStorage, IndexedDB, and the
      workspaceStorage files are NEVER touched; a Devin-named Application
      Support sibling is deliberately NOT probed (it cannot be told apart
      from the devin CLI home on a case-insensitive volume — live macOS
      acceptance resolves this). Smoke-tested end-to-end on the dev host
      against a seeded fake home: Pass 17 / Fail 0 first try, checker ALL
      PASS (88 assertions), idempotent re-run all-skips, abort path exits 1.
      Live macOS acceptance = user-supervised.
  • macOS Trae reset (2026-11-19) — the third macOS resetter (issue #36
    follow-up; Qoder + Cursor shipped first). src/macos/reset_trae.sh
    (v0.1): 15 steps on the Windows reset_trae.ps1 v0.3 + Linux
    reset_trae.sh v0.3 step maps, all DERIVED-flagged and
    absence-tolerant — machineId files in BOTH spellings, Electron stores
    via the shared reset_electron_stores, the iCubeAuthInfo://
    top-level-prefix removal from storage.json (json-remove prefixes mode;
    the prefixed keys embed full URLs so dotted-path walking cannot address
    them), the has_device_id_updated_to_aha = STRING "false" flag in
    BOTH storage.json and state.vscdb (the Windows payload semantics; a
    JSON string keeps the verify-after comparison deterministic), the aha
    tree delete, the ModularData/ckg_server/local_env.json 19-digit
    device_id rotation (the CSPRNG twin: python3 secrets.randbelow(9 * 10**18) + 10**18, first digit non-zero) + whole-host_map removal
    (the Linux v0.3 decision vs Windows' host_map.default=""), the
    env_codekg.db delete, the ModularData/ai-agent IDENTITY-ROWS-ONLY
    scrub (core scrub-rows with its Trae defaults — key NAMES only,
    values never inspected, chat rows survive; tree backed up first, every
    *.db scrubbed with a per-DB zero-survivor gate), the Preferences
    device_id_salt + Local State os_crypt pointer, the Network transport +
    DIPS + SharedStorage + Trust Tokens sweeps, the webview/cache trees
    (incl. Partitions/trae-webview, WebStorage, Shared Dictionary),
    Crashpad + logs, and the workspaceStorage serviceMachineId upserts.
    Preservation policy: Local Storage, the Backups tree, every
    workspaceStorage file, and all ai-agent chat rows are NEVER touched
    (loudly audited). Smoke-tested end-to-end on the dev host against a
    seeded fake home: Pass 15 / Fail 0 first try, checker ALL PASS (53
    assertions — identity cross-consistency, the fresh 19-digit device_id
    format, the iCube prefix-anchoring decoy kept, chat rows intact, every
    deletion and preservation), idempotent re-run all-skips, not-installed
    abort exits 1 before any mutation. Live macOS acceptance remains
    user-supervised.

  • Gmail MCP server in the registry (2026-11-18) — master-mcp.json
    gains gmail [only:zcode]: the local Go server
    (rajesh-chettiar-insightgen/gmail-mcp-server, built at
    Tools\gmail-mcp\gmail-mcp-server.exe) over stdio with
    ${GMAIL_CLIENT_ID}/${GMAIL_CLIENT_SECRET}/${OPENAI_API_KEY}
    env-guard placeholders (scopes gmail.readonly + gmail.compose;
    drafts-only — no send/delete; OAuth token cached at
    %APPDATA%\Roaming\auto-gmail\token.json; OPENAI_API_KEY powers the
    optional style-guide feature only). The official remote
    gmailmcp.googleapis.com was evaluated and REJECTED for ZCode:
    ZCode's built-in MCP OAuth binds its loopback callback to an
    ephemeral port (Google requires exact-match registered Web-client
    redirect URIs) and sends no offline-access/refresh params.

  • macOS Cursor reset (2026-11-18) — the second macOS resetter (issue #36
    follow-up; Qoder shipped first). src/macos/reset_cursor.sh (v0.1):
    13 steps on the Windows reset_cursor.ps1 v0.3 + live-verified Linux
    reset_cursor.sh v0.2 step maps, all DERIVED-flagged and
    absence-tolerant — machineId files in BOTH spellings (Linux writes
    camelCase machineId, Windows lowercase machineid; the macOS spelling
    is unverified so whichever file exists is rotated — on the default
    case-insensitive APFS they are one file and the second rotate is an
    honest same-value rewrite), Electron stores via the shared
    reset_electron_stores, the state.vscdb auth secrets via core
    delete-secrets with NO config (the Cursor defaults:
    secret://aicoding.auth.%, secret://blackbox.%, gituser — ItemTable
    only, per-key audit + zero-survivor verdict), the Preferences
    device_id_salt, the Local State os_crypt.encrypted_key pointer
    (json-remove; the Keychain "Chromium Safe Storage" entry itself stays
    a manual step), the Network transport + DIPS + SharedStorage + Trust
    Tokens sweeps, the sentry tree, the cache trees, Crashpad + logs, the
    workspaceStorage serviceMachineId upserts, and the stale .backup
    sidecar purge. Preservation policy is Cursor's, not Qoder's: Local
    Storage, the Backups tree, workspaceStorage files, and the chat-bearing
    cursorDiskKV table are NEVER touched (loudly audited). Smoke-tested
    end-to-end on the dev host against a seeded fake home: Pass 13 / Fail 0,
    checker ALL PASS (identity cross-consistency, zero secret survivors,
    every deletion, AND every preservation), idempotent re-run all-skips,
    not-installed abort exits 1 before any mutation. One set -u bug caught
    by the smoke (local summary without an initializer is an unbound
    variable on every bash). Live macOS acceptance remains user-supervised.

  • macOS platform maps for every slug (2026-11-18) — the follow-up to the
    macOS Qoder wave (issue #36): ghost/platform.py now carries a macos
    column for ALL slugs (cursor, devin, trae, qoderwork, zcode, minimax,
    opencode-cli join qoder), so ghost_cli.py paths <slug> on a darwin host
    returns honest derived paths for every app instead of a loud "unmapped"
    error. Conventions: Electron userData under
    ~/Library/Application Support/<App> (devin keeps the Windsurf product
    name, matching its linux column), platform-agnostic CLI dot-dirs per the
    Linux wave, and opencode's XDG rows keep their unset-env defaults
    (~/.config, ~/.local/share) rather than ~/Library. Every macOS row
    is verified: False (no live Mac has confirmed any of them — ground
    truth #5); the platform-integrity test now REQUIRES all three columns per
    slug, pins every macOS row unverified + home-resolved, and asserts darwin
    resolves every slug (mock-based, CI-OS-independent). Resetter scope is
    unchanged: only src/macos/reset_qoder.sh ships; a future per-app
    macOS resetter flips its own rows' provenance explicitly.

  • CI Linux helper-contract lane (2026-11-17) — a new linux-helpers
    ubuntu job that closes the bug class bash -n + shellcheck cannot see:
    a MISSING shared function (the b64_json latent bug — a helper consumed
    by the shared reset_electron_stores but defined only in cursor/trae —
    killed four reset scripts at step 1 under set -e and passed every
    static gate). The job sources id_reset_common.sh and (1) asserts a
    29-name contract list of shared helpers is DEFINED (new shared helpers
    must be added to the list — the workflow comment says so), (2)
    fixture-exercises the core helpers end-to-end: b64_json_stdin round
    trip, b64_kv_payload→json-set, b64_remove_payload→json-remove,
    the core_json_remove wrapper + backup dir, rotate_text_file +
    verify-after + audit line, and verify_json_keys positive AND negative
    honesty. Runs with a functional has_python3 probe (the PR-#97 fix) so
    a stub interpreter can never pass the lane.

  • ZCode Linux MCP definitions sync (2026-11-17) — the Linux twin of the
    Windows sync_zcode_assets.ps1 MCP area: src/linux/sync_zcode_assets.sh
    v0.1 (ghost.sh option 13) syncs the Primary's ~/.zcode/cli/config.json
    mcp.servers definitions (READ-ONLY) onto each clone's
    <CloneHome>/.zcode/cli/config.json — Primary wins, clone-local enabled
    survives, clone-only servers kept. --instance Second..Sixth|All +
    --dry-run (writes nothing, not even audit); config-less clone = loud
    SKIP; no running-instance guard (MCP is the Windows-verified safe area —
    config re-read per app-server spawn); backup mcp-sync-backups/ +
    names-only asset-sync-audit.jsonl. MCP-ONLY scope by design: the
    skills/.agents/plugin-cache areas are Windows-specific mechanics
    (junctions/robocopy) whose Linux ports need LC-1 live-layout evidence
    first. Rides the NEW core verb ghost_cli.py json-merge-defs
    (src/python/ghost/json_merge.py) — the Primary→clone merge invariant
    ported from zcode_mcp_merge.ps1, generic over --base-path/
    --preserve-keys so other suites' Linux syncs reuse it
    (tests/python/test_ghost_json_merge.py, 18: the Windows invariant cases

    • file-level backup/verify/dry-run contracts). Functional smoke ran the
      fixture HOME through dry-run/real/idempotent/skip paths (the
      missing-function class is invisible to bash -n/shellcheck).
      LATENT FIX: id_reset_common.sh has_python3() is now a FUNCTIONAL
      probe — the bare command -v passed on Windows dev hosts where python3
      is the Microsoft Store App-Execution alias stub, silently losing audit
      lines there; the probe executes a real statement so the stub case fails
      LOUD at resolve_ghost_cli. Frozen-layout tripwire: the sync's
      CLONE_HOME_NAME map is pinned to launch_zcode_clone.sh's by
      tests/linux_clone_layer.Tests.ps1 (27).
  • Cline light headless worker (2026-11-17) — the Cline suite gains the
    ZCode/OpenCode light-worker capability: src\windows\launch_cline_cli_light.ps1
    (Cline [22] / gid 122; [23] / gid 123 = the one-time CLI account login row)
    runs the desktop install's OWN standalone CLI (cline-cli.exe, a Bun SEA,
    v3.0.74 — the same engine the desktop app spawns as its hub/sidecar
    daemons) on the clone's own CLINE_DIR state with the clone's frozen
    CLINE_HUB_PORT/CLINE_SIDECAR_PORT (port-table drift tripwired to
    launch_cline_clone.ps1 by tests/cline_cli_light.Tests.ps1, 18).
    Modes: interactive CLI session (default; the CLI's own act-mode +
    auto-approval defaults are loud in the banner), -Prompt one-shot
    (-Json = --json headless output, -Timeout, -Model,
    -NoAutoApprove = --auto-approve false, -Yolo = the CLI's limited
    -y set), -Auth = the interactive auth flow (exit-code gated — no
    file-verified persistence check exists yet). Honest limits in the header:
    a held desktop hub lock WARNs (never blocks — shared-home semantics; the
    CLI is expected to attach to the running hub, UNVERIFIED) and login
    persistence location is UNVERIFIED (the desktop web login may not cover
    the CLI). Phase-0 evidence recorded in the header: --help captured
    2026-11-17 (positional prompt = one-shot; --json/piped stdin =
    headless). GHOST.bat dispatch header corrected to the real range
    (1-123; 5 unused — the carried "63 unused" figure was arithmetically
    wrong; the integrity test only pins the upper bound). Live acceptance
    (hub attach while the desktop clone runs, CLI login persistence) recorded
    in TASK_BACKLOG.

  • macOS Qoder reset — the repo's first macOS platform (issue #36, 2026-11-17) —
    src/macos/reset_qoder.sh (v0.1): a full-attempt 9-step Qoder resetter
    for macOS built on the shared lib + the OS-neutral Python core — Electron
    stores (storage.json + state.vscdb via reset_electron_stores), the exact
    Windows [3b] secret purge (purge-keys with per-key count audits), the
    Preferences device_id_salt (salt-rotate), the machineid files
    (machineid-file), the ~/.qoder installation_id / .auth/machine_id
    rotations (rotate_text_file) + credential-transaction sentinel + argv.json
    crash-reporter-id (patch-argv), the workspaceStorage serviceMachineId
    upserts, the ~/Library sweep (Caches/Logs/Preferences/Saved Application
    State/HTTPStorages, bundle-id globs), the webview partitions + the Chromium
    network/cache stores + SharedClientCache inside the userData, and the
    .qoder tmp/telemetry + logs run-state trees (sweep-tree). Every path is
    DERIVED (Electron ~/Library/Application Support/Qoder conventions) and
    ABSENCE-TOLERANT — a store the app never created is a loud audited skip,
    never a guess; the header carries the DERIVED-PATH SCOPE block plus the
    NOT-covered list (Keychain "Chromium Safe Storage", IOPlatformUUID,
    hostname, MAC, and the chat-bearing memories/canvas/knowledges stores).
    ghost/platform.py gains an opt-in "macos" column (qoder rows:
    config/qoder_dir/installation_id/auth_machine_id, all unverified), a live
    sys.platform three-way selector, and a LOUD error for a darwin host
    asking for an unmapped slug (never a silent linux fallback); the platform
    integrity test now allows macos as a third column and pins the qoder macOS
    rows + the darwin selector (mock-based, CI-OS-independent). Three shared
    bugs the macOS smoke fixture caught are fixed in
    src/linux/id_reset_common.sh: verify_json_keys now falls back to a
    flat-literal key read when the nested walk misses (Chromium storage.json
    holds LITERAL dotted keys — the nested-only verify would have failed every
    correct storage.json write on Linux too), emit_restore_script guards the
    empty-RESTORE_ENTRIES iteration (macOS's stock bash 3.2 treats
    "${arr[@]}" under set -u as a fatal unbound-variable error), and the
    ensure_not_running prompt drops the bash-4-only ${var,,} lowercase
    (macOS ships bash 3.2). The macOS smoke ran the full 9-step pipeline
    against a seeded fake home on the dev host: Pass 13 / Fail 0, 56-assertion
    post-check ALL PASS (identity cross-consistency, zero secret survivors
    with the chat key preserved, JSONC comment survival, every deletion,
    backups + audit + restore.sh), idempotent re-run all-skips, and the
    not-installed abort path exits 1 before any mutation. CI shell lint and
    README/docs now cover src/macos/*.sh. Live macOS acceptance remains
    user-supervised (all rows stay provenance-flagged until then).

  • OpenCode definitions-only Primary→clone config sync (CS-1, 2026-11-16) —
    the scrub design in docs\OPENCODE_CONFIG_SYNC_PLAN.md is implemented
    (D2 = the doc's default, developer-picked: sync provider definitions
    WITHOUT the secret + one loud WARN per clone). tools\opencode_config_merge.ps1
    — pure merge core mirroring zcode_mcp_merge.ps1: the zcode invariant
    (Primary definitions win, clone-local enabled survives, clone-only
    entries kept) over the config's mcp + provider blocks, PLUS the
    secret scrub: apiKey-shaped keys at ANY depth inside a Primary provider
    block (the real shape is provider.<id>.options.apiKey — a top-level
    scan would have missed it and the secret would have crossed) are REMOVED
    and reported; a secret the CLONE already has survives; no placeholder is
    ever written; the Primary object is never mutated. Intentionally
    duplicates the zcode helpers (that file ships + is unit-tested; dedup =
    recorded follow-up). tools\sync_opencode_config.ps1 — the child:
    -Instance cN | -Target All, -DryRun, jsonc-aware config reader
    (registry-precedent comment stripper), lockfile-held clone = RUNNING →
    SKIP + WARN, config-less clone = SKIP (first run anonymous by design),
    backup config-pre-sync-<ts>.json into the clone home, verify-after
    re-read + deep-compare, JSONL audit at <CloneHome>\config-sync-audit.jsonl
    (paths + key NAMES only — never values), Primary READ-ONLY with a hash
    re-check after every run. Launcher wiring — launch_opencode_clone.ps1
    gains step [2b/5] BEFORE the clone starts: no running-instance race, no
    -McpOnly distinction needed, a failed sync warns and NEVER blocks the
    launch. Tests — tests/opencode_config_merge.Tests.ps1 (12): the
    zcode invariant cases ported + the scrub cases (Primary key never
    crosses / clone key survives / api_key spelling / mcp env wholesale) +
    JSONC strip + no-BOM round-trip. In-session fixture acceptance ran the
    plan's §5 items 1/3/4/5: dry-run zero-write; the written clone config AND
    the audit JSONL Select-String clean for the Primary's fake key; SKIP
    paths; Primary hash stable; idempotence ("already in sync" on run 2).
    Pester 250/250, parse 0, both new files PSSA-clean. §6 live runs stay
    user-supervised. GHOST.bat/menu wiring deferred to v2 per the plan.

  • OpenCode config sync v2 — resident watcher + menu wiring (CS-1 v2,
    2026-11-17)
    — the v2 deferrals closed. tools\watch_opencode_config_sync.ps1
    (new): resident watcher stat-guarding the Primary
    ~\.config\opencode\opencode.jsonc (mtime+size, JSONC parse-guard through
    the merge core's ConvertFrom-JsoncText — a torn config skips the pass,
    never syncs) and on every change spawning sync_opencode_config.ps1 -Target All as a console-less child (600s kill cap, the ZCode
    MCP-watcher mechanics); the watcher writes nothing itself; first pass
    converges drift, deep re-verify every 60 passes, log at
    %LOCALAPPDATA%\watch-opencode-config-sync\config-sync.log, single
    instance via mutex OpencodeConfigSyncWatcher + startup process scan;
    -RunOnce/-DryRun/-IntervalSeconds/-InstallAutostart/-RemoveAutostart;
    NO -ApplyLive by design (a running OpenCode clone's config re-read
    timing is unverified — recorded as a TASK_BACKLOG item). Launcher —
    launch_opencode_clone.ps1 gains step [2c/5]: ensure the watcher is
    running hidden + install the Startup .lnk once (mutex probe, best-effort,
    never blocks the launch — the ZCode-2e pattern). Menu wiring —
    GHOST.bat OpenCode submenu gains the Config Sync section ([21] one-shot
    sync = gid 110, [22] resident watcher = gid 111) with matching
    src\desktop\menu.json rows; dispatch range header → 1-111; hub-test gid
    ceiling → 111. Tests — tests\watch_opencode_config_sync.Tests.ps1
    (19): hygiene, param surface (incl. the deliberately-absent
    -ApplyLive/-Target), wiring contract (child, mutex, log, .lnk,
    DryRun passthrough, JSONC guard, 60-pass deep verify) + launcher 2c +
    gid 110/111 wiring assertions. Pester hub 17 + integrity 11 + watcher 19
    green.

  • Cline MCP settings sync (2026-11-17) — the Cline suite's missing sync
    capability (the audit gap: Cline had NO MCP story at all). Store verified
    on the dev host: <profile>\data\settings\cline_mcp_settings.json
    (container mcpServers, Claude-Desktop format) is AUTH-FREE — the
    Primary's file is exactly {"mcpServers": {}}, login lives in
    secrets.json/providers.json. tools\cline_mcp_merge.ps1 — pure merge
    core, the zcode invariant adapted to Cline's per-server disabled flag:
    Primary definitions win, the clone's LOCAL disabled state survives, a new
    server carries the Primary's disabled value (absent on both = enabled),
    clone-only servers never removed, Primary never mutated.
    tools\sync_cline_mcp.ps1 — the child: -Instance cN | -Target All,
    -DryRun, -Quiet (launcher path), fixture overrides; hub-lock-held
    clone = RUNNING → SKIP + WARN; missing store = CREATE (deliberate
    deviation from the OpenCode config-less SKIP — this store is auth-free
    and the app only creates it on first MCP-panel use, so waiting would
    mean definitions never reach a fresh clone); backup
    cline_mcp_settings-pre-sync-<ts>.json + verify-after re-read +
    deep-compare + JSONL audit <CloneHome>\mcp-sync-audit.jsonl (server
    NAMES only); Primary READ-ONLY with a hash re-check. Launcher —
    launch_cline_clone.ps1 gains the [2b] pre-launch step (-Quiet
    child, -SkipMcpSync escape hatch, failed sync warns and NEVER blocks;
    runs before the single-instance neutralize) + an mcp settings: line in
    -Status. Menu wiring — GHOST.bat Cline submenu gains the Config
    Sync section ([18] sync = gid 112, [19] dry-run plan = gid 113) with
    matching menu.json rows; dispatch range header → 1-113; hub-test gid
    ceiling → 113. Tests — tests\cline_mcp_sync.Tests.ps1 (23): the
    invariant cases + FUNCTIONAL %TEMP% fixture runs of the child (fresh
    clone create+apply+audit, disabled survival + clone-only keep + backup,
    dry-run zero-write, idempotence, RUNNING skip via a held lock handle,
    missing-home skip, unparseable-Primary fail-loud) + launcher/gid wiring.
    Also AGENTS.md: the stale "NO reset script in this suite" bullet
    rewritten (reset_cline.ps1 shipped 2026-11-14). Pester cline-sync 23
    green.

  • Cline window-level taskbar identity (CS-2 IMPLEMENTED, 2026-11-17) —
    the 2026-10-24 DEGRADED decision closed with the developer go. Tauri has
    no patchable surface, so it is the plan's launcher-side stamp
    (docs\CLINE_WINDOW_IDENTITY_PLAN.md §3, verbatim): launch_cline_clone.ps1
    stamps bot.cline.app.cN (EQUAL to the shortcut AUMID so the running
    button resolves the clone's colored icon) onto the launched process's
    main-window property store — the proven ZCode step-4 interop block,
    PropVariantClear imported from ole32 (oleaut32 dropped it in Win10
    19041.7548, ground truth #6) — plus the distinct "Cline <Color> vN"
    title from the exe VERSIONINFO (the pin-collision guard). Re-stamps on
    main-window handle change inside the post-launch poll (splash-swap
    tolerant); verify-after read-back; any mismatch = loud WARN and the
    launch STANDS (identity is cosmetic, acceptance 3). -Status reports
    the live window AUMID. NO resident watcher (plan §3.5). tools\probe_cline_window.ps1
    (new, read-only, off-menu): the §4 Phase-0 probes (a)-(c) as a runnable
    tool — per-window anatomy (class/title/hwnd), live store AUMID, WebView2
    child census, and the SetCurrentProcessExplicitAppUserModelID exe scan;
    probe (d) = re-run after a clone restart. Phase-0 live probes + the
    acceptance run are user-supervised (no Cline window was open when
    shipped). Pester: tests\cline_window_stamp.Tests.ps1 (14).

  • Generic suite taskbar-identity watcher (2026-11-17) — the ZCode
    resident watcher (watch_zcode_taskbar.ps1) mechanics generalized to the
    AutoClaw2 and OpenCode suites: tools\watch_suite_taskbar.ps1 with a
    MANDATORY -Suite autoclaw2|opencode (Cline excluded by its plan — the
    launcher's one-time CS-2 stamp covers it). Per-suite maps: AUMID base
    (com.zhipuai.autoclaw2 / ai.opencode.desktop), mutex
    (Autoclaw2TaskbarIdentityWatcher / OpencodeTaskbarIdentityWatcher),
    log (%LOCALAPPDATA%\watch-<suite>-taskbar\taskbar.log), Startup .lnk
    name, and the installer repair script. Classification = per-color exe
    copy on the root command line FIRST (deterministic mid-splash), then argv
    markers (opencode's --opencode-clone-home ONLY — autoclaw2 passes env,
    not argv), then the opencode title map ("OpenCode <Color>"). Honest
    limit documented, not hidden
    : a stock-exe AutoClaw2 clone is
    unclassifiable externally (no argv markers, shared "AutoClaw" title) —
    warned once per hwnd and left alone (a clone-AUMID-vs-Primary-verdict
    guard never re-stamps a probable clone to base); such clones keep
    identity via the in-app patch (gid 78) + launcher kick, or gain watcher
    coverage via the per-color exe copies (gid 105). Whole copy family via
    the suite WMI filter (AutoClaw2%/OpenCode%); .kick toggle + read-back
    verify; primary-lnk hijack guard every ~5 min = clone-AUMID predicate on
    Shell ExtendedProperty + the suite installer's -RepairPrimaryAumid
    console-less child (120s cap) + re-read verify. Menu wiring: AutoClaw2
    [23] = gid 114, OpenCode [23] = gid 115 (matching menu.json
    rows; dispatch header → 1-115; hub-test ceiling → 115). The menu row is
    the only entry point (the suite launchers deliberately do NOT ensure it).
    Pester: tests\watch_suite_taskbar.Tests.ps1 (17). Live runs =
    user-supervised.

  • Generic suite pressure report (2026-11-17) — the portable half of the
    ZCode diagnostics generalized: tools\diagnose_suite_pressure.ps1 with
    a MANDATORY -Suite autoclaw2|cline|opencode (ZCode keeps its dedicated
    diagnose_zcode_freeze/diagnose_zcode_throttle). Read-only, three
    sections: [1] instance table with honestly-labeled running signals —
    per-color exe copy = definitive; lockfile probe (opencode
    <home>\desktop\lockfile, cline hub lock) = held = running; opencode
    title map; autoclaw2 documented as no-lockfile; a stock-exe clone with no
    signal = UNCLASSIFIABLE, never guessed; [2] the live commit/RAM/
    pagefile block that caught the 2026-09-25 renderer-OOM commit-limit
    freeze (>=90% commit = the OOM-territory warning); [3] optional -Days
    Electron log scan for render-process-gone/child-process-gone with
    DERIVED-provenance dirs skipped loudly when absent — client-side
    .log/.txt extension filter + -Depth 3 bound (the first draft's
    -Include swept a .sqlite blob into the scan; fixed and pinned by a
    test). Smoke-tested read-only against all three suites on the dev host
    (real output verified: honest unknowns, live commit numbers, log dirs).
    Menu wiring: AutoClaw2 [24] = gid 116, Cline [20] = gid 117,
    OpenCode [24] = gid 118 (dispatch header → 1-118; hub-test ceiling →
    118). Pester: tests\diagnose_suite_pressure.Tests.ps1 (11).

  • Launcher 2f exe-identity wiring + per-suite dry-run rows (2026-11-17) —
    the last parity deltas. Launcher step 2f ported to all three suites
    (launch_autoclaw2_clone.ps1 [2f], launch_cline_clone.ps1 [2f],
    launch_opencode_clone.ps1 [2f/5]): marker fast-check → spawn
    patch_<app>_exe_identity.ps1 -Target <instance> -InstallDir ... on drift
    → launch from <App>-<Color>.exe with the STOCK-exe fallback + loud
    warning on any failure (never blocks the launch) — the ZCode step-2f
    pattern verbatim-adapted. The 2026-11-14 "repo-only opt-in" decision is
    REVERSED by the parity build-out plan
    (~1.2 GB disk per suite; copies
    lose Authenticode validity — the SmartScreen caveat stays hedged in
    docs). Dry-run reset plan rows (the gid-109 pattern): AutoClaw2 [25] =
    gid 119, Cline [21] = gid 120, OpenCode [25] = gid 121
    (reset_<app>.ps1 -Target All -DryRun, matching menu.json rows;
    dispatch header → 1-121; hub-test ceiling → 121). Pester:
    tests\suite_launcher_2f.Tests.ps1 (9).

  • Linux resetter depth (2026-11-17) — the Linux debt's first big
    repayment: the six .sh resets deepened toward their Windows store maps,
    every mutation through the shared Python core with backup + verify-after

    • JSONL audit + restore emission. platform.py — Linux labels added
      for the new stores (trae machineid_file/local_env, qoder
      installation_id/auth_machine_id, qoderwork agents_db, zcode
      telemetry_state/credentials/setting_json, minimax mcode_public/
      session_handoff_device_id) — ALL DERIVED-flagged until a live Linux host
      verifies (ground truth #5); test_ghost_platform.py pins them unverified.
      reset_zcode v0.2 — ~/.zcode/v2 telemetry-state deviceMid (json-set),
      credentials OAuth clear (json-remove "oauth:" top-level prefix + exact
      zcodejwttoken — the Windows v1.5 shape), setting.json deviceSid (dotted
      json-set); reset_trae v0.3 — has_device_id_updated_to_aha=false +
      iCubeAuthInfo://* top-level-prefix removal + ckg_server local_env.json
      19-digit device_id rotation + host_map removal; reset_qoder v0.2 —
      ~/.qoder installation_id + .auth/machine_id 36B-GUID rotations +
      .credential-transaction sentinel delete; reset_qoderwork v0.2 —
      agents.db purge-tables with the EXACT Windows v0.2 table whitelist + keyed
      app_settings deletions (chats NEVER deleted, "proxy" preserved);
      reset_minimax_opencode v0.2 — mcode-public auth.json/auth-state.json +
      legacy root auth-state.json deletions ("{}" blocks the login page —
      absent = fresh-install parity) + session-handoff device-id rotation;
      reset_devin v0.3 — the repo's LAST inline python3 heredocs migrated
      onto core replace-text (username scrub, grep-sweep verify stays) + json-
      patch (Codeium config keyed upsert — unknown keys survive, strictly safer
      than the old whole-file rewrite). Shared lib — new helpers
      (b64_json_stdin, b64_kv_payload, b64_remove_payload, core_json_set_kv,
      core_json_remove, rotate_text_file). LATENT BUG FIXED:
      reset_electron_stores piped into b64_json, which only reset_cursor/
      reset_trae defined locally — the four consumers (zcode/qoder/qoderwork/
      minimax) died at step 1 with "command not found" under set -e (latent
      since 2026-11-14; bash -n and shellcheck cannot see a missing
      function); the stdin builder now lives in the shared lib. The roaming-
      equivalent deep stores (RUM, webview partitions, aha dir, SharedStorage)
      stay Windows-only with the unverified-layout caveat printed loudly. All
      new core-verb chains functionally smoke-tested against %TEMP% fixtures
      (json-set/json-remove prefix/json-patch/purge-tables); shell syntax
      bash -n clean; unittest 196 OK. Live Linux runs remain user-supervised.
  • ZCode Linux clone layer (PR 8, 2026-11-17) - the Linux debt's second
    repayment, evidence-first: the vendored ZCode tree PROVES Linux desktop
    builds exist (electron-builder linux targets, executableName "zcode")
    and that ALL FIVE isolation levers are platform-independent app code
    (packages/desktop/src/main/desktopRuntimeEnv.ts + a dedicated
    ZCODE_HOME CLI-root override - cleaner on Linux than the Windows HOME
    trick). src/linux/launch_zcode_clone.sh - per-clone launcher
    (Second..Sixth) on the FROZEN cross-platform layout
    (~/ZCode<Name>Home/.zcode + ~/ZCode-<Name> userData - same names as
    the Windows launcher): first-run seed from ~/.zcode (live-lock excludes,
    the .zcode-seeding/.zcode-seeded marker gates, Primary-closed gate
    180s) + identity scrub through the Python core with fail-closed
    semantics (a clone never runs on Primary identity - the Windows seed
    rule); Linux identity = ZCODE_INSTANCE_NAME window title + per-color
    branding (NO property store - taskbar grouping is not a Linux concept);
    --zcode-bin pins the binary (DERIVED probe: PATH + /opt + user bins).
    src/linux/launch_zcode_cli_light.sh - the light headless worker:
    the Windows five-lever set MINUS the desktop-userData levers (headless =
    no Electron), --app-dir pins the resources/glm/zcode.cjs bundle
    (DERIVED probe), the free-model login recipe printed (the Windows
    verified limits carried over), refuses an unseeded home.
    reset_zcode.sh --instance - clone reset: the SAME v0.2 steps rooted
    at the clone layout + backup-first sweep-tree of the desktop userData
    (config/session); the Primary path stays fail-closed on an absent store.
    ghost.sh options 10-12 wired. Static Pester:
    tests\linux_clone_layer.Tests.ps1 (18). Everything DERIVED-flagged;
    live acceptance = user-supervised on a Linux host (recorded as
    TASK_BACKLOG LC-1).

  • Scaffold/icon LOWs — bug-sweep report 20 walk (BS-10 part 3 +
    DT-4, 2026-11-16)
    : of report 20's findings, 5 were genuinely open (3
    MEDIUMs already fixed; one target fixed). new_clone_suite.ps1
    20-L1: the GHOST.bat wiring now honors the intake's instance count —
    ONE Launch + ONE Reset row/gid pair PER CLONE (the old hardcoded
    -CloneCount 2 left resolver ids 3+ resolving to UnknownTask forever on
    a larger intake) — resolver ids, :DispatchOne rows, submenu rows and
    the range header all scale, keeping the repo-integrity invariant
    "every resolver target has a dispatch case"; Edit-GhostMenu gains an
    optional -BatPath (fixture-tested against a %TEMP% launcher copy:
    CloneCount 3 → 6 resolver lines → gids 110-115 with per-clone
    -Instance instN). Found + fixed WHILE probing: the range-header
    replace (anchor 5) was a silent NO-OP against the real header format
    ("(1-109; 63 unused; ...)") — a generated suite would have shipped a
    stale range and failed tests/repo-integrity.Tests.ps1; the replace now
    matches the number only and verifies the edit landed. 20-L2: the
    reset skeleton's example uses the REAL helper signatures
    (Backup-FileToTimestampDir -Source/-BackupRoot/-Label,
    Set-JsonIdentity -Path/-Updates/-Audit [ref] — the old example called
    parameters that do not exist). 20-L3: the shortcuts skeleton
    verify-after re-reads TargetPath + Arguments + WorkingDirectory +
    IconLocation (the old one checked TargetPath only while its [ok] line
    printed an AUMID it never verified). make_clone_icon.ps1 20-L4:
    -ManualCrop 'x,y,size' is bounds-checked against the source BEFORE any
    GDI+ work (the C# crop.Intersect clamp silently distorted
    out-of-bounds crops; probe: 9999-size crop on a 32px source throws with
    the values). make_ghost_icon.ps1 20-L6: the background classifier's
    hard-tuned constants are named (SAT_MAX / 188..220 band / ≥238 white
    cut), carried into the compile-checked C# and printed verbatim in the
    tile-detection failure message so a future poster re-tune knows exactly
    which dials to move. DT-4: a new CHANGELOG entry records the
    2026-10-24 sweep remediation wave for release notes (the sweep folders
    stay gitignored). Pester 238/238, harness PASS, unittest OK, parse 0,
    PSSA per-file baselines identical.

  • 2026-10-24 bug-sweep remediation, recorded for release notes (DT-4,
    2026-11-16)
    : the sweep itself (_bug_sweep\, ~196 findings: 3 CRITICAL /
    24 HIGH / 75 MEDIUM / 94 LOW across 20 reports) is gitignored, so the
    CHANGELOG never recorded its remediation wave. Summary, from the sweep's
    own FIXES_SUMMARY: the 2026-10-24 in-tree wave fixed ~130 findings across
    22 files — executor scopes 02 reset_cursor (11), 03 reset_devin (10),
    07 reset_qoderwork (11/11), 08 reset_minimax (9/9), 13 refresh+sync
    (12/12), 15 patch engines (12/13), 16 tools misc (11/11), 17 update_ghost
    (4/4), 11 launch_autoclaw2 (4/15, rest blocked then); the parent fixed the
    shared identity_utils.ps1 core (backup uniquify killing the
    same-label-clobber class, UTF-8 reads, guarded writes, -RedactKeys,
    Test-GhostValueEqual, BOM-less audit, hostname RNG bias), the Python
    core modules, the autoclaw2 installer's CRITICAL base-AUMID constant, the
    change_device_id.ps1 HIGH .bak-key abort class, ghost.sh child-fail
    isolation, and new_clone_suite.ps1's 3 MEDIUMs. Five files were blocked
    by workspace write-guard false positives with staged diffs ready — those
    landed later: the launcher/reset_zcode/sqlite_keys trio as PRs #72–#74
    (2026-11-15 hardening wave), reset_autoclaw/launch_autoclaw with the v1.20
    sunset deletion (2026-11-01). The "pending" tail of that summary was
    systematically stale — the 2026-11-15/16 walks (PRs #75–#77, #81, #83)
    closed reports 05/09/12/14/20 against current code with evidence.

  • Shortcut installer hardening — bug-sweep report 14 walk + same-family
    siblings (BS-10, 2026-11-16)
    : of report 14's findings, 6 were genuinely
    open in the zcode/autoclaw2 installers (the autoclaw-v1 target is deleted;
    the CRITICAL/HIGH base-AUMID + verify-exit findings already landed in the
    2026-10-24 batch). install_zcode_second_shortcuts.ps1: 14-M2 — the
    base AUMID is adopted only when CLEAN (the old first-read adoption took a
    clone-suffixed value, so a FAILED repair left dev.zcode.app.2.2-shaped
    AUMIDs stamped onto every clone shortcut); Get-InstalledZCodeAumid
    skips suffixed reads and a hard stop refuses to stamp after a failed
    self-heal; 14-L3 — -RepairPrimaryAumid + -Remove are both
    honored (the old repair block exited before the removal ran); 14-L5
    — verify-after covers .Description; 14-L2 — header "N = 2..6"
    matches the ValidateSet. install_autoclaw2_clone_shortcuts.ps1:
    14-M3 — the exe-icon fallback only fires when the exe really exists
    (absent exe ⇒ IconLocation left unset, contract "never a set-but-absent
    icon path" restored, verify asserts the unset case); 14-L4 —
    -Remove re-reads every delete. Same-family fixes in the NEWER
    install_opencode_clone_shortcuts.ps1 / install_cline_clone_shortcuts.ps1
    (not in the report, same defect classes): both installers now carry
    $script:Failed + exit 1 on every verify/remove failure (opencode
    printed FAIL then exited 0), the 14-C1 poisoning-class guard on the
    stock-lnk base adoption (an unsuffixed read only), the 14-L4
    remove-verify, the 14-M3-class icon fallback chain (cline), and opencode's
    repair path records its FAILs (they were printed and forgotten) and honors
    a combined -Remove. Pester 238/238, harness PASS, unittest OK, parse 0,
    PSSA per-file baselines identical (one pre-existing trailing-whitespace
    finding removed). No live shortcut writes — user-supervised.

  • CI runner-only failures fixed (2026-11-16) — main's CI had been red
    since the 2026-11-14 parity wave (PR #62 broke PowerShell lint + tests,
    PR #66 broke Python core tests (ubuntu) and Shell lint); the merges
    used admin bypass, so the red jobs went unnoticed. Three fixes, none of
    them logic regressions on Windows:

    • tests/exe_identity_suites.Tests.ps1 dot-sourced the three new
      patch_*_exe_identity.ps1 wrappers whose MAIN flow runs at script
      level — on the runner (no AutoClaw2/Cline/OpenCode installs) the
      Resolve-*InstallDir throw aborted the whole file (11 tests failed).
      The wrappers now carry the canonical dot-source guard
      (if ($MyInvocation.InvocationName -eq '.') { return }, cf.
      reset_autoclaw2.ps1) placed AFTER every function + $script:
      constant — direct runs are unchanged; the Pester harness gets the maps
      without resolving an install, so the tests now actually RUN on CI
      instead of aborting.
    • tests/python/test_ghost_autoclaw2.py: the two exclusive-lock tests
      use ctypes.windll (kernel32 CreateFileW no-sharing) — now
      skipUnless(sys.platform.startswith("win")) (the runner's ubuntu leg
      errored 2×); test_root_match_is_case_and_slash_insensitive asserted
      Windows-only behavior unconditionally — normalize_root case-folds
      ONLY on os.name == "nt" (correct: NTFS is case-insensitive, POSIX is
      not), so on Linux the differing-case path is a genuine non-match and
      the test now asserts the SKIP+WARN outcome there instead.
    • Shell lint (shellcheck): reset_trae.sh's b64_json was a REAL
      latent bug — the function read $1 while every call site PIPES the
      JSON (argv[1] arrived empty, json.loads('') would raise on Linux);
      it now reads STDIN (SC2120/SC2119 resolved; reset_cursor.sh keeps
      its argv style, its call site passes the document). Also: the dead
      <pass_var> <fail_var> parameters of reset_electron_stores removed
      (no caller passed them, the body never used them — SC2034; the
      function's return code is the outcome and callers bump their own
      counters); intentional shellcheck shapes suppressed with justification
      comments (SC2016 $(dirname %q) emitted into the GENERATED restore
      script; SC2153 caller-assigned BACKUP_ROOT; SC2088 ~/.app display
      labels in the three "not mapped on this platform" branches).
      Local: bash -n clean, Pester 238/238, unittest OK.
  • change_device_id.ps1 hardening — bug-sweep report 09 walk (BS-10, PR
    2026-11-16)
    : of report 09's findings, 7 were genuinely open (7 of the
    reset_autoclaw ones are obsolete — the target was deleted with the v1
    suite; the HIGH .bak/hive-load findings already landed 2026-11-11).
    09-M1: every reg export now checks $LASTEXITCODE (reg.exe never
    throws, so the old try/catch was dead code) — the LegacyReset nine-key
    backup aborts BEFORE the first destructive write on any failed export,
    and RepairProfiles refuses to repair without its ProfileList rollback
    artifact. 09-M2: RepairProfiles validates each .bak key's
    ProfileImagePath exists on disk before the swap (a leftover temp
    profile would point ProfileList at a missing path after the rename =
    logon lockout); such keys are skipped loudly. 09-M3: the generated
    restore script is written no-BOM UTF-8 (was -Encoding ASCII, which
    mangled every path the moment %TEMP% carries a non-ASCII username).
    09-M4: failure paths now exit 1 (elevation refusal, repair failure,
    aborted-after-rollback, unreadable state) and success paths exit 0 —
    the menu's child exit code is meaningful. 09-L1: the create-new-key
    branch re-reads and compares after the write (never-silent-success).
    09-L2: Read-State distinguishes genuine first-run ($null) from an
    UNREADABLE state file (corrupt JSON / DPAPI failure = sentinel object);
    Write-State refuses to overwrite an unreadable state (a fresh salt
    would silently re-base the fingerprint history) and Fingerprint mode
    fails loudly with stateUnreadable in the JSON. 09-L3: the HKCU
    pass no longer double-writes the current user's entries — the SID pass
    records what it wrote for the current user's SID and HKCU only carries
    entries the SID pass could not reach (the duplicate write also appended
    a rollback entry recording the pass-1 random as the "original"). PSSA
    rule multiset identical (4 trailing-whitespace findings removed), parse
    clean. Destructive modes stay user-supervised.

  • ZCode reset W1-9 -DryRun + W2-3 menu row (gid 109) + W3-2 watchdog
    preflight + W4-2 harness scenarios
    (2026-11-15): the W1 remainder is
    COMPLETE. W1-9 (F-11): reset_zcode.ps1 -DryRun is a report-only
    planner — it prints the target roots, presence checks (shared CLI db,
    Qoder, partial profile), the would-kill process set + survivor count and
    the full 27-step plan, then exits 0 BEFORE the Python preflight, before
    any kill and before any write; a DryRun also skips self-elevation (the
    elevation block moved below the DryRun gate) and the orchestrator
    (Both/All) prints its child sequence without spawning them. Verified
    under redirected USERPROFILE/APPDATA fixtures: zero fixture writes (the
    two created dirs are powershell.exe's own startup artifact, present in
    the control run too). W2-3: GHOST.bat ZCode local [33] → gid
    109
    "Dry-run reset planner" (All instances, dispatched via :RunWith —
    no elevation needed), wired into the resolver, the dispatch ladder, the
    :DispatchOne header range (1-109) and menu.json (inline-note mode with
    the report-only disclaimer; the hub-parity ARGS check now word-splits a
    RunWith row's args token to match the runtime %~3 expansion). W3-2
    (F-03)
    : the reset probes the captcha watchdog's ZcodeCaptchaWatchdog
    mutex before the kill and warns that its blanket taskkill can void the
    survivor guarantee + repopulate the Primary (audited). W4-2: two new
    harness scenarios — V runs the two-token ZCode chain "2 33" END-TO-END
    through the dispatcher into the real dry-run planner (report-only, so
    the one reset-family row the harness can execute for real) and W runs
    the ZCode unknown-token continuation ("2 99" → exactly one Unknown
    task); scenario D/E moved to the new unassigned gid 110. The harness
    also pins the test copy's working directory to the repo root (GHOST.bat
    self-normalizes via cd /d "%~dp0"; without the swap the first
    dispatched-script scenario fails on relative paths). Pester 238/238
    (incl. the repo-integrity dispatch-range check and the hub-parity ARGS),
    harness PASS, unittest 194 OK, PSSA 21=21, parse clean. Live runs
    pending user supervision.

  • ZCode reset W1-4 abort checkpoint + W1-6/W1-7/W1-10 UX hardening
    (2026-11-15): the second slice of the W1 remainder. W1-4 (F-05): the
    whole 27-step pipeline now runs inside try/finally whose flush re-writes
    the audit log + regenerates the restore script EVEN on a hard abort — the
    old write-only-at-the-tail layout left a mid-run abort with mutations
    applied but NO audit and NO restore script (the flush is idempotent with
    the tail write; flush failures are loud). W1-6 (F-07): a clone target
    with instances running but ZERO mains classifying as it (the classic
    bare-launched clone that owns the Primary profile) now emits the loud
    WARN instead of silently "OK-ing in ~3 s having killed nothing"; Primary
    keeps its ambiguity abort. W1-7 (F-08): the self-elevation deletes
    the stale zcode_v1.5_done.txt before relaunch and relays the child's
    exit code via -PassThru (a failing reset no longer exits 0). W1-10
    (F-13)
    : a clone home whose profile is PARTIAL (no v2\setting.json)
    warns explicitly with the reseed hint (the launcher's .zcode-seeded/
    .zcode-seeding markers auto-heal partials) and audits the warning.
    Pester 238/238, harness PASS, unittest 194 OK, PSSA 21=21, parse clean.
    Live comparison run pending user supervision.

  • ZCode reset W1-1 shared-db scrub [26b] + W1-3 strict backups (2026-11-15):
    the first two items of the ZCode W1 remainder (edge-cases plan F-01
    severity H / F-04 severity H). Step [26b/27] (a deliberate extension
    of the 27-step contract): the LIVE shared CLI store
    ~\.zcode\cli\db\db.sqlite is read by EVERY instance, and step [26]
    only reaches it when the target's user profile IS the shared one
    (Primary) — a clone-only reset left its telemetry/machineId/deviceId
    rows intact (the cross-instance correlation trail F-01 was filed for).
    Clone targets now scrub the shared db too: WAL-aware strict backup then
    clear-cli-telemetry, whose 10 s busy timeout makes a survivor-held db
    an honest FAILED entry + WARN (never a silent skip); survivors are
    verified zero. Strict backups: all 9 Backup-ViaCore call sites
    now check the result — backup FAILED ⇒ audit backup-failed +
    failCount++ + the mutation is SKIPPED (the v1.4 warn-and-proceed
    contract let a locked credentials.json be modified unrestorable). The
    core backup verb gains --sqlite-wal (best-effort
    PRAGMA wal_checkpoint(TRUNCATE) then -wal/-shm sibling copies)
    so the undo copy of a WAL-mode db can be reopened even when live
    writers held it (+3 unittests: locked-writers sibling copy, quiet-db
    clean path, non-sqlite source tolerated) — unittest 194 OK. Pester
    238/238, harness PASS, PSSA 21=21, parse clean. Live comparison run
    pending user supervision.

  • **ZCode reset clone-target Qoder gate (W1-2) + BS-8 verification closure

    • clear-cli-telemetry tests (W4-3)** (2026-11-15): single-target CLONE
      resets no longer run the Qoder steps — the edge-cases plan's F-02
      (severity H) closed per its recorded decision D2 (in-script gate on
      $Target -eq 'Primary', defense in depth). Why it mattered: the Qoder
      kill is Primary-only, so on a clone-only reset a live Qoder could
      re-persist storage.json AFTER verify (a silent revert of step [1])
      and a hard Qoder file lock could abort the whole run before audit/
      restore exist; the v1.4 header claimed "clone targets never touch
      Qoder" while the code did the opposite — with the gate the comment is
      finally true. Both/All orchestrators already routed Qoder to the
      Primary child via -SkipQoder, so their behavior is unchanged. Also:
      BS-8 (the two ZCode watchers) closed verification-only — all 9
      report-12 findings are already fixed in current code (per-tree marker
      classification with copy-family patterns, live-exe resolution,
      per-pass error isolation + atomic state writes, parsed-fields-only
      1305, hourly-cap requeue, midnight day-switch drain, -RunOnce scan
      exclusion, the taskbar Primary-never-guesses guard, SeenHwnds prune —
      evidence cited file:line in TASK_BACKLOG), and W4-3 lands the two
      recorded clear-cli-telemetry unittests (a store with no matching rows
      reports zeroed counts honestly; a locked DB surfaces the error dict
      after the busy timeout instead of a silent success). unittest
      189 → 191 OK. Pester 238/238, harness PASS. The whole H-severity
      bug-sweep tier (BS-1..BS-9 + BS-11) is now closed; the remaining tiers
      are the W1 remainder, BS-10, CS-1 and the DT items.
  • Qoder reset v0.5 bug-sweep hardening (BS-7) + purge-policy alignment
    (2026-11-15): report 05 walked item-by-item against the v0.5 thin
    manifest — the two HIGHs the migration had already closed are recorded
    (ANSI decode: zero direct app-store reads left; argv.json missing key:
    the core patch_argv_json INSERTS when absent), and the genuine
    remainders are fixed. Step [30] now routes the .qoder run-state trees
    through the sweep-tree core twin (Clear-TreeFilesIndividually — defined
    since v0.5 but NEVER called; the header promised it) so one locked log
    no longer leaves 99% of the tree on disk; steps [13]–[18] keep the
    whole-path store-delete by documented choice. The [21] purge gets the
    #73 policy shape: 24 h floor + never the current run, old runs'
    audit_*.json/restore_*.ps1 preserved at the ID_Backups root, and
    VERIFIED deletes (still-present audited ok=$false — the old code
    audited a green "deleted" for a locked dir with the complete old
    fingerprint snapshot still on disk). Self-elevation deletes the stale
    done-marker and relays the child exit code via -PassThru (a failing
    reset no longer exits 0). The taskkill stderr race (native stderr under
    EAP=Stop aborts the run pre-audit) is caught and logged. The MAC
    ledger/restore is now a true inversion: the manifest records
    previousValue/previousExisted/ifIndex/writeOk per adapter (only
    when the write landed), the restore REMOVES invented overrides (the old
    script pinned the reset-time MAC over the burned-in address on adapters
    that never had one), skips adapters whose write never landed, and
    addresses by -InterfaceIndex (the -Name parameter accepts
    wildcards). Remove-QoderPathSafely returns an honest
    deleted/delete-failed verdict and steps [20]/[21]/[22] count
    failures (the watchdog probe returns the trae/zcode allOk contract).
    The final state.vscdb probe RE-ASSERTS the written value via the core
    sqlite-update verb (idempotent, heals a post-run recreation) instead
    of replaying step-[3] audit entries, and a missing DB file fails
    honestly. The stale "WIN-<8hex>" header line corrected (the code
    produces the DESKTOP-XXXXXXX factory-default pattern). One finding
    stays OPEN and recorded: no top-level guard before the end-of-run
    audit/restore write (the W1-4 incremental-audit class). reset_trae.ps1
    gets the same 24 h purge floor + manifest preservation (its deletes
    were already verified), closing the recorded candidate follow-up.
    Verified with a 7-check functional probe of the extracted qoder purge
    function. Pester 238/238, harness PASS, unittest 189 OK, PSSA 18=18 /
    4=4 baselines, parse clean. Live comparison run pending user
    supervision.

  • Bug-sweep backlog re-status + trae hardening remainder (BS-9 walk)
    (2026-11-15)
    : reset_trae.ps1 v0.3 walked item-by-item against the
    bug-sweep report (04) — 9 of 11 findings CLOSED with evidence (the
    v0.3 thin manifest had incidentally fixed or pre-fixed them: all JSON
    mutations in the core, scrub-rows tightened matching + reported
    skips, watchdog step counts failures, verified purge, wrapped
    .Trim(), core-generated salt, cline-host counted in the clean check,
    sweep-tree verify-after by recount, watchdog probe expanded 4→6).
    One genuine remainder APPLIED: the self-elevation relaunch now uses
    -PassThru + .ExitCode and relays the elevated child's exit code
    (a failing reset no longer looks green to callers that check
    $LASTEXITCODE; the stale-marker half of that finding was already
    fixed). One finding stays OPEN and recorded: no top-level guard before
    the end-of-run audit/restore write (the W1-4 incremental-audit class).
    docs/TASK_BACKLOG.md fully re-statused: BS-4/BS-5/BS-6 → FIXED (PRs
    #72–#74), BS-9/BS-11/CS-6/DT-1 → CLOSED with evidence, the 2026-10
    write-guard blocker §2 marked RESOLVED-IN-PRACTICE (the exact files it
    blocked were edited repeatedly by #43-era and #67–#71 sessions), W1-5/
    W1-8 marked done, the migration queue §4 marked COMPLETE (#67–#71),
    and the priority order rewritten (next tier: BS-8 watchers → BS-7 walk
    vs v0.5 → the W1 remainder). OPENCODE_CLONES_SPEC §7's stale
    "preflight lane" note rewritten (verified: @opencode-aidesktop IS
    the first probed lane). Pester 238/238, harness PASS, unittest 189 OK.

  • Python core hardening (BS-6) (2026-11-15): three
    _bug_sweep\fixes\BLOCKED_FIXES.md §5 fixes in
    src/python/ghost/sqlite_keys.py. (a) _ro_connect now URI-quotes the
    normalized path (quote(..., safe="/:")) — a profile dir with a SPACE
    ("C:\Users\My Name...") previously truncated the file: URI at the
    space, so every verify-after re-open targeted a nonexistent location and
    returned after values of None; (b) sqlite_update returns an ok
    verdict (after matches the update exactly OR as text — the TEXT-affinity
    value column reads an int written as 5 back as "5"), letting PS
    callers treat a redirected/torn write as FAILED instead of trusting the
    green success line; (c) delete_secrets records an exact key as deleted
    only when cursor.rowcount > 0 — the old unconditional append reported
    phantom removals for keys that were never in the table. The fourth §5
    item (the backup-uniquify test rename) had already landed
    (test_existing_destination_is_uniquified_not_clobbered). +7 unittests
    (spaced-path verify, direct quote pin, ok true / text-affinity true /
    forced-false via a redirected verify store, absent exact key not
    reported, present key still reported) — unittest 189 OK. Pester 238/238,
    harness PASS.

  • ZCode reset v1.5 backup-purge hardening (BS-5 / W1-5) (2026-11-15):
    the _bug_sweep\fixes\BLOCKED_FIXES.md §2 staged diffs applied to
    reset_zcode.ps1 [27/27] and adapted to the v1.5 thin manifest. The old
    unconditional name-filter purge wiped every same-day ID_Backups dir —
    including the only undo copy of an earlier chained run (e.g.
    reset_qoder.ps1 minutes earlier; the Qoder keep-dir Join-Path never
    exists because reset_zcode writes its Qoder-profile backups under the
    ZCode backup root). New policy: the current run's dir is never deleted,
    only dirs OLDER than 24 h are purgeable, and before deleting an old dir
    its audit_*.json + restore_*.ps1 move up to the ID_Backups root
    (each carries its run's timestamp) so every earlier run's undo evidence
    survives its data purge — the edge-cases plan's D3 retention policy.
    Every delete is now VERIFIED (Remove-Item then Test-Path; a locked
    dir is audited still-present with ok=$false + a red FAILED line
    instead of a green "deleted"), and the [27] watchdog step stops claiming
    a green pass when a re-delete failed: watchdog-recreate audit entries
    with ok=$false now count into $failCount (the old unconditional
    passCount++ turned those into exit 0). Verified with a 7-check
    functional probe of the extracted purge function (old dir deleted +
    manifests preserved at root + same-day run protected + current run kept

    • verified audit entries). Pester 238/238, harness PASS, unittest 182
      OK, PSSA unchanged (21 baseline = 21 new), parse clean. Live comparison
      run pending user supervision.
  • ZCode clone launcher bug-sweep hardening (BS-4) (2026-11-15): the
    _bug_sweep\fixes\10-fixes.md staged designs (2026-10-24, then blocked by a
    workspace write-guard false positive) applied to
    launch_zcode_second_instance.ps1 and adapted to the current code.
    Seed gate = completion marker: .zcode-seeded is written only after
    robocopy 0-7 AND the identity scrub verified — the old single-file gate
    (v2\setting.json) let an aborted robocopy pass as seeded once that one
    file existed; .zcode-seeding is written BEFORE the copy so a crash
    mid-seed is auto-cleared and re-seeded on the next launch; profiles built
    by earlier launcher versions are ADOPTED, never re-seeded over. Primary
    closed gate
    : the copy source ~\.zcode holds the shared CLI db held by
    EVERY running instance, so the seed now waits up to 180 s for ALL ZCode
    mains to close (fails CLOSED on a WMI error) instead of copying live WAL
    stores and deleting the copied journals (torn pages + lost
    committed-but-uncheckpointed transactions). Every seed-scrub write
    re-read-verifies
    (telemetry deviceMid, setting.json deviceSid,
    credentials.json oauth:/zcodejwttoken absence, provider apiKeys
    emptiness, .updaterId); a FAILED scrub withholds the seed marker and
    throws before launch — the clone can never run on Primary identity.
    deviceSid is now CSPRNG GetBytes() + rejection sampling (was
    Get-Random). Telegram reconcile fail-closed + multi-bot: ALL Primary
    bots are fingerprinted into sha8/id sets (was first-bot-only, so a clone
    copy of bot #2 matched nothing) and a failed/unavailable fingerprint now
    really disables every enabled clone bot (the old code only printed
    "falling back to disable" and then PRESERVED the seed-copy duplicate —
    two pollers on one token, HTTP 409 + cross-account billing, locked in by
    the marker); every disable write is re-read-verified and the
    .telegram-routed marker is withheld on any write failure so the
    reconcile retries. Window resolve is title-ONLY (the fresh-PID fallback
    adopted any new bare-exe main, incl. a sibling clone's); branding icon
    seed copy wrapped in try/catch; ZcodeWindowAumid Add-Type guarded with
    -as [type] (in-session re-run no longer throws). The dead
    $tgPrimaryCreds probe is gone. Behavior change (deliberate): first-time
    seeding now requires every ZCode instance closed — remediation text
    explains seeding several clones one at a time. Pester 238/238, harness
    PASS, unittest 182 OK, PSSA findings 6 (baseline 7), parse clean. Live
    acceptance pending user supervision.

  • ZCode reset v1.5 — thin manifest over the Python core; Phase 3
    COMPLETE
    (2026-11-14): the final migration (#7 of 7). The 27 steps,
    their order, audit keys, restore actions and summary are identical to
    v1.4 (archived archive/reset_zcode_windows-v1.4.ps1, local-only); every
    store mutation now runs through the one Invoke-GhostCore helper.
    Highlights: credentials OAuth clear = json-remove with the oauth:
    TOP-LEVEL PREFIX + the zcodejwttoken exact key (the M1 prefix mode —
    the key names embed colons, dotted walking cannot address them);
    provider.*.options.apiKey strip = ONE pre-backup + per-provider
    json-set gated on an EXISTING apiKey (the v1.4 conditional preserved —
    no provider gains an options.apiKey it did not have); RUM store =
    one json-patch (_arms_uid + _arms_session); setting.json
    deviceSid = json-set dotted path (created when missing, the v1.4
    Add-Member behavior); clear-cli-telemetry keeps its error-dict contract
    through the unified helper. RNG fix (repo convention
    "RandomNumberGenerator via .GetBytes() only")
    : v1.4 generated the
    Preferences salt with Get-Random (time-seeded PRNG, not a CSPRNG) and
    shared it across EVERY profile the run touched — the core's salt-rotate
    now generates a CSPRNG 32-lowercase-hex salt PER PROFILE, and
    $newArmsUid/$newDeviceSid moved off Get-Random to GetBytes. The
    fail-fast Python preflight (one of the v1.5 items recorded PENDING in the
    CHANGELOG) lands here; the remaining recorded v1.5 script items
    (shared-db scrub [26b], strict backups, abort checkpoint, -DryRun, purge
    salvage) stay PENDING — separate debt, not part of the migration.
    Phase 3 of the Python hybrid roadmap is now COMPLETE: all seven IDE
    resets are thin manifests and no temp-.py heredoc remains anywhere in the
    repo.
    Pester 238/238, harness PASS, unittest 182 OK. Live comparison
    run pending user supervision.

  • MiniMax/OpenCode reset v1.4 — thin manifest over the Python core
    (2026-11-14): Phase 3 migration #5 — the script that previously required
    NO Python now routes every store mutation through Invoke-GhostCore
    (machineid-file / json-remove / json-patch / salt-rotate / sweep-file /
    sweep-tree / store-delete / backup). The 22 steps, their order, audit
    keys, restore actions and summary are identical to v1.3 (archived
    archive/reset_minimax_opencode_windows-v1.3.ps1, local-only). Guard
    KEPT: the tree sweeps still refuse to delete when the pre-backup failed
    (v1.3's no-backup-no-delete never-silent-success rule). Improvements
    over v1.3: the Preferences salt is now generated PER PROFILE by the core
    (v1.3 shared ONE salt across MiniMax and OpenCode Preferences — a
    cross-profile correlation signal), and the restore manifest only lists
    os_crypt backups when the key was actually removed. Documented delta: an
    UNPARSEABLE auth file now FAILS the wipe step loudly instead of being
    force-overwritten to {} (the core never clobbers unparseable JSON —
    delete the file manually or restore from the backup to recover). Python
    now required (fail-fast preflight). Pester 238/238, harness PASS,
    unittest 177 OK. Live comparison run pending user supervision.

  • QoderWork reset v0.2 — thin manifest over the Python core (2026-11-14):
    Phase 3 migration #4. The 26 steps, their order, audit keys, restore
    actions and summary are identical to v0.1 (archived
    archive/reset_qoderwork_windows-v0.1.ps1, local-only); every FILE-level
    store mutation now runs through Invoke-GhostCore → machineid-file /
    json-patch / salt-rotate / store-delete / backup. The v0.1
    temp-.py heredoc (qoderwork_scrub_agents_{guid}.py) is gone, replaced by
    the new shared core verb purge-tables (sqlite_keys.purge_table_rows:
    DELETE every row from whitelisted tables + exact-key rows from one keyed
    table; table names regex-whitelisted, schema evolution tolerated per table
    AND per keyed table, verify-after = read-only reopen recount so the
    caller's "after == 0" check IS the verification). Behavioral deltas,
    both strictly safer: the external-commands registry empties the
    commands key instead of rewriting the whole file (unknown top-level
    keys survive schema evolution), and the Preferences salt is generated in
    the core (32 lowercase hex vs v0.1's uppercase GUID-N — same length/
    format class, case not significant to the app). FIXED a latent v0.1 gap:
    the heredoc crashed when the app_settings table was absent while the
    PS side already carried a schema-missing branch for it — the core
    tolerates a missing keyed table per key, so that branch is finally
    reachable. -DryRun still writes NOTHING (no core invocation, no TEMP
    files) and runs without Python; the registry/MAC/hostname system steps
    [22]-[26] stay PowerShell by contract. 177 unittests green (4 new:
    purge-tables schema-tolerance + CLI contract). Live comparison run
    pending user supervision.

  • Trae reset v0.3 — thin manifest over the Python core (2026-11-14):
    Phase 3 migration #3 (roadmap order trae → qoderwork → minimax → qoder →
    zcode). The 16 steps, their order, audit keys, restore actions and summary
    are identical to v0.2 (archived archive/reset_trae_windows-v0.2.ps1,
    local-only); every store mutation now runs through Invoke-GhostCore →
    machineid-file / json-patch / json-remove / json-set /
    sqlite-update / sweep-file / sweep-tree / store-delete /
    salt-rotate / backup. The v0.2 temp-.py heredoc
    (trae_scrub_aiagent_{guid}.py) is gone, replaced by the new shared core
    verb scrub-rows (sqlite_keys.scrub_identity_rows: key-NAME
    matching in EVERY key-like table of a database — typed and untyped
    columns, key > itemkey > k > id > name priority, ESCAPE'd
    single-token-adjacency patterns so spaced human text can never match;
    values/chat content never inspected; verify-after survivor recount +
    skipped_tables reported). json-remove gained optional top-level
    prefix removal (removed_prefixes in the report) for the
    iCubeAuthInfo://* auth keys whose names embed URLs and can never be
    addressed as dotted paths (the dotted walk silently no-ops on them).
    Also fixed a latent v0.2 bug: $traeDoneMarker was never assigned (8
    bare references), so every elevated run crashed at the final marker write
    and non-admin self-elevation broke before relaunching — v0.3 uses the
    fixed cursor-style marker (%TEMP%\trae_v0.3_done.txt, the reset_cursor
    v0.3 pattern). Python now required for EVERY step (fail-fast preflight).
    173 unittests green (6 new: scrub-rows multi-table/escape semantics +
    json-remove prefix). Live comparison run pending user supervision.

  • Linux resets for the remaining agents (2026-11-14): new
    reset_qoder.sh, reset_qoderwork.sh, reset_zcode.sh (default
    profile; the shared CLI session store deliberately untouched — matches
    the Windows reset) and reset_minimax_opencode.sh (the OpenCode CLI
    XDG stores deliberately untouched — they carry the CLI login). All four
    are DERIVED-PATH scope: the Linux layouts come from ghost.platform
    (provenance-flagged unverified, printed loudly at run start) and the
    scripts skip loudly when a store is absent — nothing is guessed. Every
    mutation goes through the shared Python core with verify-after, audit
    and restore emission. ghost.sh upgraded to grouped sections (IDE
    Resets 1-7 / System 8-9). FAQ's honest Linux answer updated (the
    "Windows-only" phrasing was stale).

  • Linux resets modernized to the Windows standard (2026-11-14):
    reset_cursor.sh v0.2 + reset_trae.sh v0.2 route every store mutation
    through the shared Python core (ghost_cli.py json-patch /
    sqlite-update / machineid-file — ONE copy of the logic for Windows +
    Linux), and fail loudly when python3 or the core file is missing instead
    of silently skipping (the thin-manifest contract). Both now carry
    timestamped ID_Backups/<ts> dirs, JSONL audit, verify-after re-reads
    on every write, and a self-generated restore.sh — the README's
    advertised verify-after/audit/restore trio finally holds on Linux.
    reset_windsurf.sh → reset_devin.sh (the 2026-06-02 Devin
    rebrand finally reached Linux; the Codeium-era codeium.com/waitlist
    URL the old script wrote into the Codeium config on every reset is
    scrubbed) with the same audit/restore standard. reset_trae.sh
    PROMOTED from the local-only archive v0.1 (never committed) — deeper
    Windows-side Trae stores are not covered on Linux yet (provenance
    flagged in ghost.platform). ghost.sh menu upgraded (Trae row +
    Devin naming). id_reset_common.sh gains the core bridge
    (resolve_ghost_cli/core_backup), JSONL audit, restore-script
    emission and verify-after helpers shared by all Linux resets.

  • Cross-platform identity-store path layer (2026-11-14): new
    src/python/ghost/platform.py — the single source of truth for WHERE each
    agent keeps its identity stores per OS (cursor, devin/windsurf, trae,
    qoder, qoderwork, zcode, minimax, opencode-cli; the desktop clone suites
    are deliberately unmapped — no Linux builds discovered, guessing
    forbidden). New ghost_cli.py paths <slug> verb prints the resolved map
    as JSON with unverified rows surfaced loudly (exit 2 on an unknown
    slug) — the Linux .sh resets consume it instead of hardcoding paths,
    so a path fix lands in one place. Provenance flags: cursor/devin/
    opencode-cli verified on both platforms (existing shipped scripts / live
    probing); trae/qoder/qoderwork/zcode-Linux rows derived from the Windows
    layout + documented Linux conventions and flagged verified: false
    (ground truth #5) pending live Linux verification. CI's python-core job
    gains an ubuntu-latest matrix leg so the core stays path-correct on
    Linux. Unit tests: tests/python/test_ghost_platform.py (9).

  • AutoClaw2 identity reset (2026-11-14): new
    src/windows/reset_autoclaw2.ps1 (-Target Primary|c1..c5|All,
    -KeepLogin, -DryRun) closes the suite's last MANDATORY playbook gap —
    the identity reset. Per profile it rotates device\device-id.json
    (verified old != new), clears the signed-out pointer, deletes the
    per-account auth + runtime-secret stores, the network session stores,
    Local State (OSCrypt key), telemetry (apmplus, log_sdk_v2.db,
    diagnostics, logs) and the caches/webview partitions; chats, work
    runs, projects, MCP connections and Telegram routing are preserved.
    Backups to ID_Backups\<ts>\ + audit JSON + a restore script per
    target; thin manifest over the Python core (store-delete /
    sweep-tree / json-patch / backup — no new core verbs needed).
    Menu: AutoClaw2 [14]-[20] (gids 84-90, appended in display order, never
    renumbered; the ALL row is gated by the new :ConfirmAc2Reset, and
    :RunAc2Reset prints the relaunch-safety note); desktop hub rows match
    (menu.json modes zcode-reset / confirm-reset, ARGS-parity proven by
    the extended hub test). The pure target/marker/device-id-shape helpers
    are unit-tested through the script's dot-source guard
    (tests/reset_autoclaw2.Tests.ps1, 10 tests). Live acceptance stays
    user-supervised — nothing was executed against the live profiles.

  • Cline identity reset (2026-11-14): new src/windows/reset_cline.ps1
    (-Target Primary|c1..c5|All, -KeepLogin, -DryRun) — OVERRIDES the
    Cline spec's earlier "no reset script by design" decision. Deletes
    data\secrets.json (clineAccountId + tokens) + data\settings\providers.json
    (provider OAuth) — the only auth stores — and sweeps stale hub locks,
    logs, cache and the web-login Chromium profile (webview\EBWebView per
    clone; the Primary's lives at %LOCALAPPDATA%\bot.cline.app). data\db\*.db
    (sessions/tasks/hub/teams/connectors), data\sessions\ and the settings
    files are preserved. HKLM MachineGuid is deliberately untouched
    (system-level; change_device_id.ps1 owns it). Menu: Cline [10]-[16]
    (gids 91-97, appended in display order; the ALL row gated by
    :ConfirmClineReset; :RunClineReset prints the relaunch-safety note);
    hub rows + wrapper table + harness scenarios extended. Pure helpers
    unit-tested via the dot-source guard (tests/reset_cline.Tests.ps1,
    11 tests). Live acceptance stays user-supervised.

  • OpenCode desktop identity reset (2026-11-14): new
    src/windows/reset_opencode.ps1 (-Target Primary|c1..c5|All,
    -KeepLogin, -DryRun). One target spans TWO profile surfaces (the
    clone-home patch pins them per clone): the Electron userData
    (desktop\ per clone; %APPDATA%\ai.opencode.desktop for the
    Primary) and the XDG data home (data\opencode per clone;
    ~\.local\share\opencode for the Primary). Deletes auth.json +
    mcp-auth.json (CLI OAuth), gh\device-id, desktop\.updaterId
    (clones), the session profile's Local State (OSCrypt key) + network
    session stores, caches and Crashpad/logs/compile-cache. Preserves
    opencode.db (+wal/shm) = sessions, repos, snapshots, drafts, the CLI
    cache and config\opencode\*.json (MCP definitions). Menu: OpenCode
    [13]-[19] (gids 98-104, appended in display order; the ALL row gated
    by :ConfirmOpenCodeReset; :RunOpenCodeReset prints the
    relaunch-safety note); hub rows + wrapper table + harness scenarios
    extended. Pure helpers unit-tested via the dot-source guard
    (tests/reset_opencode.Tests.ps1, 7 tests). Live acceptance stays
    user-supervised.

  • AutoClaw2 MCP sync watcher (2026-11-14): the gid-74 row — reserved
    since 2026-11-04 — is LIVE. New
    tools/watch_autoclaw2_mcp_sync.ps1 stat-guards the central master
    manifest tools/autoclaw2-mcp.master.json (mtime+size + JSON
    parse-guard — a torn manifest skips the pass, never syncs) and
    re-applies it via sync_autoclaw2_mcp.ps1 as a child (console-less
    spawn + 600s kill cap). The watcher writes nothing itself; the first
    pass converges drift, a deep re-verify runs every ~5 min, and the log
    lives at %LOCALAPPDATA%\watch-autoclaw2-mcp-sync\ac2-mcp-sync.log.
    Single instance via mutex + startup process scan;
    -InstallAutostart/-RemoveAutostart manage a hidden Startup .lnk.
    NO -ApplyLive by design — the AutoClaw2 sync targets CLOSED profiles
    only (D7), so a synced definition lands on each profile's next launch.
    Menu: new AutoClaw2 [11] row (locals 12+ shifted +1, gids unchanged).

  • Shared RAM/concurrency launch guard across all four suites
    (2026-11-14): the soft guard launch_zcode_second_instance.ps1 carried
    since 2026-10-28 (count running mains; at/over the threshold print live
    commit numbers and route the ask: visible console → Read-Host, hidden
    console → topmost Yes/No default-No, -NonInteractive/redirected stdin →
    warn+continue) is generalized into src/windows/ghost_launch_guard.ps1
    and wired into the AutoClaw2, Cline and OpenCode clone launchers
    (-MaxConcurrent 3, -NonInteractive; ZCode refactored onto the lib).
    EC-K01 bare-exe mains counting per suite family; the guard fires only
    for a NEW instance — each launcher's own relaunch-focus/single-instance
    check runs first. Rationale: the 2026-09-25 renderer-OOM commit-limit
    freeze is a Windows ceiling, not a ZCode quirk; every suite can now hit
    it. Unit-tested via mocks (tests/ghost_launch_guard.Tests.ps1, 11).

  • Task-Manager exe identity generalized to all four suites
    (2026-11-14, repo-only + opt-in): the pure core and the whole
    orchestration (freshness gate, running gate, copy, Win32 update
    transaction, re-read verify, sidecar marker, JSONL audit) moved
    verbatim from the ZCode-only files into the generic
    tools/exe_identity_lib.ps1 (Invoke-GhostExeIdentityPatch;
    zcode_exe_identity_lib.ps1 is now a shim = dot-source + the ZCode
    alias map, so the existing 21 ZCode tests exercise the generic core
    transitively). New thin patchers:
    tools/patch_autoclaw2_exe_identity.ps1 (AutoClaw2 [15] / gid 105),
    patch_cline_exe_identity.ps1 (Cline [10] / gid 106) and
    patch_opencode_exe_identity.ps1 (OpenCode [13] / gid 107) build
    <App>-<Color>.exe copies with patched icon groups + FileDescription.
    Deliberately NOT wired into any launcher and NOT executed against the
    dev host during this work
    (user decision: "make them in the repo but
    don't setup them - i'm using zcode only") — the menu rows are the only
    entry point. Read-only -DryRun acceptance passed for all three
    (noting: AutoClaw2 + OpenCode copies already existed on the host from an
    earlier same-day session, markers fresh — left untouched; Cline has
    none). Suite maps + branding ICOs + no-cross-suite-drift tripwires
    unit-tested (tests/exe_identity_suites.Tests.ps1, 11).

  • ZCode clone status row (2026-11-14): tools/status_zcode_instances.ps1
    (ZCode Maintenance [32] / gid 108) — ZCode's parity for the -Status
    probe the three newer suites' launchers already carry. Read-only:
    per-instance running state (copy-family + marker classified), roaming +
    clone-home presence, the v2\telemetry-state.json deviceMid prefix and
    per-instance commit pressure. Live-verified on 4 running instances.
    Latent hang fixed on the way: the fresh subtree walks in the three
    2026-11-14 reset scripts used an array-slice "pop"
    ($stack = $stack[1..($stack.Count-1)]) that does NOT shrink a
    1-element PowerShell array (@('A')[1..0] == @('A') — out-of-range
    indices clamp), so any walk spun forever on leaf nodes — a real reset
    with a running instance would have hung at the stop step. All walks now
    use Queue semantics (Dequeue REMOVES; the same pattern the ZCode launcher
    always used) and a repo-wide tripwire test forbids the slice-pop pattern
    from returning.

  • AutoClaw2 chat sync: -Account source hint + source-account
    provenance
    (2026-11-11): tools/sync_autoclaw2_chats.ps1 -Account <sha-prefix> pins the multi-account Primary's account dir for the
    inventory diff, -AllMissing planning and every import (new
    account_hint / source_account_hint payload keys through
    ac2-chat-inventory / -import / -revert; resolve_profile always had
    the plumbing — the MCP commands used it, the chat commands never did).
    Reason: the newest-runtime.sqlite default silently SWITCHES the sync
    source when the Primary re-logs into a fresh account (live 2026-11-11:
    68f7331f… stopped being written at 09:14 and the new 830c6348… took
    over — the old account's chats became invisible to the chat sync the same
    minute). Every inventory [ok] line and audit record now carries the
    resolved account sha + how it was picked (hint / newest-mtime), so a
    source switch is visible instead of buried. Blind-shell preflight: when a
    profile dir does not resolve, the run prints the APPDATA/USERPROFILE it
    used before the [SKIP] lines — the 2026-11-11 16:24Z inventory ran from a
    shell whose APPDATA pointed elsewhere and reported Primary
    profile-missing + c1 not-signed-in, an empty diff that reads as "nothing
    to sync".

  • ZCode clone OAuth deep-link callback forwarder (2026-11-11, new
    off-menu tool tools/watch_zcode_deeplink_forward.ps1): the machine-wide
    URL scheme always boots the PRIMARY profile (every launch re-registers
    HKCU\Software\Classes\zcode\shell\open\command to its own exe and the OS
    spawn carries no clone env), so a clone's browser callback opened the
    Primary and died with "OAuth state mismatch" while the clone's own poll
    hit the business-token exchange. The watcher polls the ZCode process
    family for fresh env-less callback spawns, re-delivers the callback URL
    into every RUNNING instance with its own environment (the OAuth state
    match decides which receiver completes; mismatched ones reject
    harmlessly) and kills the stray Primary-profile spawn (-NoKillSpawn
    keeps it). Read-only on the registry, writes nothing to disk.

  • ZCode business-token exchange hardening patch (2026-11-11, new
    off-menu pair tools/patch_zcode_business_exchange.ps1 + .mjs on the
    shared asar-surgery layer): exchangeBusinessToken posted the OAuth
    token with a HARD 10s timeout (zLe=1e4) and NO retry — clones died at
    zai_oauth_required with the callback already delivered (a 10.14s
    "fetch failed" = the timeout; a separate ~800ms server-envelope failure
    later succeeded = transient). Two byte-anchors in out/host/index.js:
    zLe=1e4 → zLe=6e4 (length-neutral) + a one-shot retry after a 3s
    backoff spliced into the resolve() tail. Marker
    resources\zcode-business-exchange.marker.json + ID_Backups\<ts>;
    re-run after app updates; built repo-only — never live-applied on the
    dev host (opt-in).

Fixed

  • ZCode clones could not activate ANY plugin (2026-11-11):
    tools/sync_zcode_assets.ps1 mirrored cli\plugins\cache but never
    synced cli\plugins\installed_plugins.json — clones had no file at all,
    so nothing enabled on the Primary ever activated on a clone. New area 4
    copies the Primary's file with every installPath rewritten from the
    Primary cache to the clone's own cache mirror; backup + verify-after
    (full-file round-trip + per-entry installPath existence on the clone) +
    audit, skipped by -McpOnly, and an existing clone file is preserved
    when the Primary has none (no destructive delete).
  • Console-less processes flashed visible cmd windows (2026-11-11):
    tools/watch_zcode_mcp_sync.ps1 spawned its sync child via a bare &
    call and tools/sync_zcode_assets.ps1 fell back to cmd.exe /c mklink
    the same way — a watcher running without a console gave the child a
    brand-new VISIBLE window on every 5-minute deep-verify. Both now spawn
    console-less (CreateNoWindow); the watcher child also gained a 600s
    kill cap so a wedged sync can never block the watch loop.
  • GHOST.exe "Import chats to clones" row failed on its own script
    (2026-11-11): menu.json gid 76 was missing -AllMissing (the GHOST.bat
    row has carried it since the 2026-11-09 :Run arg fix), so importing
    from the desktop hub hit [FAILED] -Mode Import needs -SessionId … and
    copied nothing. The parity test now compares every action gid's ARGS
    against its .bat dispatch line (plus Detached title/psFlags and the
    RunWith -WaitForClose ↔ waitForClose mapping) — script+mode parity
    alone let this drift through CI; negative-check proven.
  • AutoClaw2 schema gate crashed on a schema-less runtime DB
    (2026-11-11): check_schema ran its migration-history SELECT unguarded,
    so a zero-byte / half-created runtime.sqlite (fresh re-login account
    shell) died with sqlite3.OperationalError instead of the clean
    schema-mismatch refusal. The gate probes sqlite_master first and
    reports the missing table as drift.
  • Primary ZCode.lnk hijack repair now also restores the drifted TARGET
    (2026-11-11): a Windows pin rewrite can retarget the Primary's Start-menu
    shortcut onto a per-color exe copy — live-verified: the lnk carried target
    ZCode-Orange.exe + an orange Start tile after an auto-repair had logged
    SUCCESS, because the old repair kept the drifted target ("the lnk's own
    target wins") and set the icon FROM it, permanently blessing the clone's
    icon behind a clean AUMID the AUMID-only hijack guard could no longer see.
    tools/install_zcode_second_shortcuts.ps1 -RepairPrimaryAumid now
    restores target → stock ZCode.exe first (new Repair-PrimaryLnkTarget),
    resolves the icon from the stock exe (the "target wins" rule is gone), and
    the resident watcher's guard (tools/watch_zcode_taskbar.ps1) detects all
    three hijack shapes — AUMID clone suffix, clone-exe target, wrong/wiped
    icon — through the new shared pure core tools/zcode_primary_lnk_lib.ps1
    (unit-tested by tests/zcode_primary_lnk_lib.Tests.ps1); target/icon
    checks stay silent when no stock exe resolves so the guard never demands a
    repair it cannot complete. Side-effect closed: the hijacked tile launched
    ZCode-Orange.exe env-less (Primary profile, but Task Manager showed it
    as "ZCode Orange" and the copy-family classifier treated it as that clone).