Language: English · Türkçe
Persistent, host-verified Goal mode for OpenCode.
OpenCode Goals is an OpenCode goal plugin for long-running AI coding tasks. It adds a durable /goalx workflow so an OpenCode coding agent can keep one explicit objective across multiple turns, context compaction, interruptions, delegated work, and process restarts — while completion remains gated by current host evidence instead of the executor simply saying “done”.
If you are looking for an OpenCode autonomous agent, persistent goal mode, multi-turn coding agent, Codex-style long-running goal workflow for OpenCode, or an OpenCode plugin with independent completion verification, this package is built for that use case.
Independent OpenCode plugin. “Codex-style” describes the long-running goal workflow pattern only; no endorsement or feature-parity claim is implied.
Command names: On OpenCode 2.x, our plugin uses /goalx. OpenCode's built-in /goal stays separate and is not overridden. OpenCode 1.x retains the existing /goal command and managed commands/goal.md bridge. The npm package, GitHub repository and all persisted Goal contracts/evidence remain unchanged. The /goalx command is included in the published 1.3.50 package. Until independent session ownership is verified end to end, do not run both autonomous Goal engines in the same session.
OpenCode 2.4 / OpenTUI note: Unreleased main permits optional OpenTUI 0.8.x and 0.9.x peers in addition to the older 0.5–0.7 range. OpenCode 2.4.1 ships matching OpenTUI 0.9.4 and Solid 1.9.17. Use the host's matching renderer versions; the 0.8/0.9 runtime and current host lifecycle still require manual verification. The npm 1.3.50 package has not been replaced. GitHub Actions remain disabled. See manual release checks.
Recommended one-command install:
npx -y @bybrawe/opencode-goal@latestRun the same command again whenever you want to update.
Or install the installer globally:
npm install -g @bybrawe/opencode-goal@latest
opencode-goalThen fully restart OpenCode and verify:
/goalx status
You should also see /goalx in OpenCode's slash-command list. If Windows
Desktop says "no matching item" even though terminal TUI lists both /goalx
and /loop, follow the Windows Desktop native command diagnostic guide.
The Desktop and TUI may use different server versions, project directories
or connections. Do not add a legacy goal.md prompt bridge before checking
the Desktop server's own command registry.
npm install @bybrawe/opencode-goal by itself only installs a Node package into the current project. It does not register the plugin in OpenCode. Use the npx installer above or the global installer command.
For an existing configuration, the installer preserves an unambiguous plugin (V1) or plugins (V2) array. A new configuration with neither key defaults to native V2. If both dialects are present, explicitly choose --native-v2 or --legacy-v1; the installer does not guess or execute a host from PATH. OPENCODE_GOAL_HOST_VERSION also selects the intended major. After upgrading a V1 host to OpenCode 2, use npx -y @bybrawe/opencode-goal@latest --native-v2 for an intentional migration (available in the next package containing this change).
The installer:
- finds the global OpenCode config directory;
- creates a config if none exists;
- installs/pins
@bybrawe/opencode-goal@<exact-version>in the OpenCode plugin list; - upgrades old, bare, or
@latestGoal plugin entries; - removes known duplicate legacy local Goal plugin copies;
- on OpenCode 1.x, installs a managed global
commands/goal.mdso/goalis discoverable; - on OpenCode 2.x, writes the native
pluginsconfig and uses the plugin-native/goalxcommand instead of the legacy command bridge; - preserves unrelated OpenCode settings, plugin registrations, and JSONC comments outside the Goal-owned entry.
Default OpenCode locations:
macOS / Linux:
~/.config/opencode/opencode.json or opencode.jsonc
~/.config/opencode/commands/goal.md # OpenCode 1.x bridge only
Windows:
%USERPROFILE%\.config\opencode\opencode.json or opencode.jsonc
%USERPROFILE%\.config\opencode\commands\goal.md # OpenCode 1.x bridge only
OpenCode 2 loads the package root as the official Plugin.define({ id, setup }) entrypoint; that same dual definition is also exposed through ./server for host compatibility. Programmatic named APIs live at @bybrawe/opencode-goal/api, keeping the plugin root free of V1 runtime imports, while the explicit legacy V1 plugin function is isolated at ./v1.
OpenCode 2 uses the V2 lifecycle and autonomous coordinator by default. Native plugins entries may disable either layer with { "package": "@bybrawe/opencode-goal@<version>", "options": { "lifecycle": false, "autonomous": false } }. The legacy OPENCODE_GOAL_V2_DIRECT_LIFECYCLE and OPENCODE_GOAL_V2_AUTONOMOUS environment variables remain higher-priority emergency kill switches: set either to 0, false, no, or off to disable that V2 layer. Unknown explicit environment values fail closed. OpenCode 2-native prompt admission and tool-execution hooks are used directly where available, and long-running evidence/completion tools report progress through the host-native tool progress API.
Normal coding-agent conversations can lose the original outcome after many turns, compaction, retries, or interruptions. OpenCode Goals keeps the success boundary explicit and persistent.
Key capabilities:
- Persistent goals across turns — the objective remains active across autonomous continuations.
- Long-running agent workflow — OpenCode can continue Goal-owned work after idle boundaries.
- Host-verified completion — shell checks, file contracts, mutation evidence, and current workspace state can be verified by the plugin.
- Independent semantic verifier — the executor does not get to mark itself successful just because it says the work is done.
- False-completion protection — missing, stale, indirect, or invented evidence fails closed.
- Multi-turn cadence protection — objectives such as “do exactly +1 for 10 separate turns” are not proven by a final file value alone.
- Restart recovery — project-local state survives OpenCode/process restarts.
- Compaction persistence — Goal context is preserved while OpenCode manages its own model context window. See the compaction & continuation contract for active auto/manual compaction ownership and paused-resume semantics.
- Budgets — turn, token, runtime, and optional cost limits keep autonomous work bounded.
- Goal queues — keep one live Goal while preparing future Goals in an inert ordered queue.
- Windows / macOS / Linux packaging — installer and package smoke coverage is cross-platform.
Start a Goal with a real verification command:
/goalx fix the failing tests --check "npm test"
Create a broader Goal Contract:
/goalx refactor auth \
--success "all auth tests pass" \
--success "existing callers remain compatible" \
--constraint "do not add a runtime dependency" \
--non-goal "do not redesign unrelated session code" \
--check "npm test"
Inspect the live contract and proof state:
/goalx status
/goalx contract
/goalx audit
Pause and resume:
/goalx pause
/goalx resume
When a Goal is paused, a short explicit continuation message such as devam et, continue, or resume also resumes it through the same lifecycle control chain. Other normal chat does not silently reactivate a paused Goal.
Queue future Goals:
/goalx add update docs --success "docs match shipped behavior"
/goalx add prepare release notes --check "npm test"
/goalx queue
OpenCode Goals is useful when an AI coding agent needs to persist until a real outcome is reached, for example:
- fixing a failing test suite across many iterations;
- carrying a refactor or migration across multiple model turns;
- enforcing “N distinct turns/cycles” or other temporal work requirements;
- preserving an objective through context compaction;
- recovering unfinished work after closing and reopening OpenCode;
- preventing premature “done” claims during autonomous coding;
- requiring file evidence, shell checks, or semantic verification before completion;
- running independent Goals in separate OpenCode sessions while keeping their Goal state isolated.
| Command | Purpose |
|---|---|
/goalx <objective> |
Start a Goal when no unfinished live Goal blocks creation |
/goalx status |
Show current Goal state |
/goalx contract |
Show objective, criteria, constraints, checks, files, and limits |
/goalx audit |
Inspect proof/evidence and the current completion gate |
/goalx edit <objective> |
Create a new revision of the current Goal |
/goalx pause |
Pause autonomous Goal continuation |
/goalx resume |
Explicitly reactivate an eligible paused Goal |
/goalx budget |
Inspect/change local execution limits |
/goalx list |
Read-only project-wide live Goal index |
/goalx doctor |
Diagnose live/archive/queue storage without rewriting it |
/goalx add <objective> |
Queue a future inert Goal Contract |
/goalx queue |
Inspect/reorder/remove queued Goals |
/goalx next |
Promote the next Goal when no unfinished live Goal blocks it |
/goalx history |
Inspect archived Goals |
/goalx restore <id> |
Restore an unfinished archived Goal as paused |
/goalx clear |
Clear/archive the current live Goal |
A single OpenCode session has at most one unfinished live Goal. This avoids two autonomous controllers competing inside the same session.
If a Goal is already active or paused:
- use
/goalx edit <objective>when you mean to revise the current Goal; - use
/goalx add <objective>to queue a second Goal for later; - use
/goalx clearif you intentionally want to abandon/archive the current Goal and start a different one; - use a separate OpenCode session when you intentionally want two Goals to run in parallel.
For queued Goals:
/goalx add second objective
/goalx queue
/goalx next
/goalx next promotes the next queued Goal only when no unfinished live Goal blocks promotion.
Separate sessions have separate persisted Goal snapshots. They can therefore run distinct Goals in the same project directory, although normal workspace conflicts are still possible if both sessions edit the same project files.
/goalx pause changes persisted Goal state to paused. /goalx resume remains the explicit lifecycle command for reactivating it.
For convenience, a narrow set of short, unambiguous continuation messages — for example devam et, continue, kaldığın yerden devam et, or resume — is treated as resume intent while a Goal is paused. The plugin routes that intent through the same /goalx resume command/ownership chain rather than directly rewriting Goal state.
Other foreground chat stays ordinary conversation and does not silently reactivate the Goal. This keeps arbitrary chat from becoming lifecycle control while letting a clear “continue” instruction do what the user expects.
The same resume path can be used after a fail-closed verifier outage. A timeout-class verifier failure first receives one fresh bounded automatic retry; if that retry also fails and the Goal is persisted as paused, wait until the verifier/provider is usable and then use /goalx resume or a short explicit continuation message to retry completion.
Repeatable contract flags define success and hard boundaries:
--success "..."
--accept "..."
--constraint "..."
--non-goal "..."
--check "..."
--notify "command {reason} {goal}"
--contains "file::required text"
--unit "host command"
--fresh-session-per-unit
--continuous # keep running; no automatic completion gate
--infinite # alias for --continuous
--verified # switch an edited continuous Goal back to verified completion
--max-turns <n>
--max-tokens <n>
--max-minutes <n>
--max-cost <amount>
New Goals have no cumulative token cap by default (maxTokens: 0). Use --max-tokens or /goalx budget --max-tokens only when you want an explicit total-work runaway guard; this cumulative budget is separate from the selected model's current context/input window.
For monitoring, generators, queues, or other work that should intentionally keep running without a success condition, create the Goal in continuous mode:
/goalx process incoming work forever --continuous
--infinite is an alias for --continuous. In this mode the Goal remains active and autonomous continuation keeps using the same objective, constraints, budgets, restart recovery, no-progress protection, provider safety handling, and user steering rules, but automatic verified completion is disabled. The model is instructed not to call opencode_goal_complete, and the host rejects that tool before running checks or the semantic verifier if it is called anyway.
Continuous does not mean "ignore safety limits": explicit --max-turns, --max-tokens, --max-minutes, --max-cost, provider/usage limits, waiting-user state, repeated no-progress protection, manual /goalx pause, and /goalx clear still stop or suspend work normally.
To convert an existing continuous Goal back to ordinary verified completion, edit it explicitly:
/goalx edit finish the current backlog and stop --verified
/goalx status, /goalx contract, /goalx audit, and the native sidebar show the current mode. Queued Goals created with /goalx add ... --continuous preserve the mode when promoted.
The native OpenCode 2 sidebar also exposes a read-only telemetry snapshot from persisted Goal state: Goal id/revision, age and accounted model runtime, turns/tokens/cost and finite/unlimited budgets, selected model/context telemetry when available, requirement/check/file proof counts, native Todo-plan counts plus the current in-progress item, last persisted host-progress/state-update age, continuation/recovery/handoff state, stall-guard count, and the Goal queue. It deliberately does not invent live TPS, provider phase, or a fake completion percentage when the host has not persisted trustworthy data for those values.
--notify attaches an optional user-authored local lifecycle command to the Goal Contract. The command is launched only after the relevant Goal state is durably persisted. {reason} expands to completed, blocked, paused, or rejected; {goal} expands to the Goal ID. waiting_user, budget limits, and usage limits use the paused reason. Notification execution is advisory: command failure cannot change Goal state or completion. Model-facing opencode_goal_* tools cannot set or replace this command.
Example:
/goalx ship release --check "npm test" --notify "my-notifier --goal {goal} --reason {reason}"
The full objective always remains a required semantic requirement. Narrow checks add proof obligations; they never replace the broader outcome.
For work naturally partitioned by a host-observable unit (for example a migration shard, package, tenant, or numbered batch), OpenCode 2 can rotate the same Goal into a fresh native session whenever that unit identity changes:
/goalx migrate all shards \
--unit "node scripts/current-shard.mjs" \
--fresh-session-per-unit \
--check "npm test"
Both flags are required together. The --unit command's stdout is identity only: it tells Goal which external unit is current, but it never proves completion or satisfies a requirement. Rotation happens only after a clean Goal-owned execution boundary. The handoff uses OpenCode 2 native session.create and a durable two-phase inbox transfer; the old session becomes terminal handed_off before the target becomes the autonomous owner.
The Goal ID, revision, contract, evidence, cumulative usage, and budgets continue across the session chain. /goalx status shows the current unit plus root/previous/next session links. Paused, waiting-user, blocked/limited, or completed Goals do not rotate, and final verified completion stops the chain instead of opening another session.
/goalx edit creates a new revision. Evidence from an older revision cannot silently prove the edited Goal.
OpenCode Goals is designed for objectives that explicitly require work across multiple distinct turns or cycles.
Example:
/goalx 10 ayrı goal turunda counter.json içindeki value değerini her tur tam +1 artır. Başlangıç 0, final 10. Tek seferde +10 yapma.
For this kind of objective, the plugin tracks host-observed workspace mutation fingerprints and Goal progress across the current revision. A model should perform the requested per-turn unit and end its turn instead of collapsing the work into one batch.
A final {"value":10} alone does not prove that ten distinct +1 turns occurred.
For broad multi-step work, OpenCode Goals coordinates with OpenCode's native Todo planning without treating Todo state as Goal proof.
The boundary is strict:
- Todo text/status never becomes Goal evidence;
- Todo completion never increments Goal progress by itself;
- Todo cannot widen the user-authorized Goal scope;
- a current Todo plan with
pendingorin_progresswork vetoes completion; - a fully completed Todo plan still does not prove the Goal;
- missing or stale Todo telemetry cannot block a newer Goal revision.
Completion is an audit pipeline:
- configured shell checks run on the host and their actual result/output digest is recorded;
- declared file contracts are re-read by the plugin inside the project boundary;
- semantic requirements are sent to a separate read-only verifier session;
- verifier citations are checked against current files/evidence;
- host-observed current-revision turn/progress facts are available for temporal requirements;
- stale, invented, indirect, or failing evidence is rejected;
- current native Todo work is rechecked;
- every required ledger item must be proven before
completedis persisted.
If verification is unavailable, incomplete, stale, ambiguous, or races with a lifecycle change, completion fails closed.
If the executor has finished the work but independent semantic verification hits a timeout-class infrastructure failure, the plugin aborts and cleans up that verifier child and automatically retries once in a fresh verifier session. On native OpenCode 2 the primary verifier deadline defaults to five minutes and can be overridden with plugin option verifierTimeoutMs or OPENCODE_GOAL_VERIFIER_TIMEOUT_MS, including values above 60 seconds. The single fresh-session retry remains bounded to the lower of that configured deadline and 60 seconds; there is no third automatic verifier attempt.
Non-timeout provider or transport failures are not automatically retried. If the bounded timeout retry also fails, the Goal is persisted as paused instead of entering an endless completion retry loop. Existing host evidence remains persisted.
When the verifier/provider is healthy again:
/goalx resume
A short explicit continuation message such as continue or devam et uses the same resume path.
A verifier outage never marks an unproven Goal completed.
Project-local state:
.opencode/goals/
.opencode/goal-sequences/
.opencode/goal-locks/
The runtime includes atomic writes, optimistic generation/CAS protection, per-session ownership, process leases, path/symlink escape protection, corrupt-state fail-closed handling, and process-restart recovery.
Goal cumulative token/runtime budgets are intentionally separate from the selected model's current context window. /goalx status reports the host-observed full context pressure and, when the model exposes a smaller input limit, input-side pressure separately. OpenCode remains responsible for deciding when to compact.
While an active Goal owns a session, the plugin keeps OpenCode's generic post-compaction synthetic continue disabled and resumes through exactly one Goal-owned guarded continuation path instead, so compaction does not require a manual continue and does not create two competing continuation owners.
Reinstall/update:
npx -y @bybrawe/opencode-goal@latestThen:
- confirm the installer reports an exact package pin;
- on OpenCode 1.x, confirm the managed
commands/goal.mdbridge exists; on OpenCode 2.x, confirm the package is registered in nativepluginsand no managed bridge is required; - fully close every OpenCode CLI/TUI/Desktop process and reopen it;
- do not start OpenCode with
--pure, which disables external plugins; - inspect OpenCode config diagnostics for plugin-load errors.
The installer does not overwrite a user-owned commands/goal.md; OpenCode 2 leaves such a legacy file untouched and uses the plugin-native command.
Check:
/goalx status
/goalx audit
If the stop reason is verifier infrastructure/timeout after the bounded automatic retry and the workspace is already correct, do not manually repeat the requested mutations. Use /goalx resume or a short explicit continuation message to retry the completion path.
That session already has an unfinished live Goal. Choose one:
/goalx edit <replacement objective>
/goalx add <future objective>
/goalx clear
Or open a second OpenCode session for parallel work.
OpenCode Loop is a separate, complementary plugin. Loop now installs Loop only by default and does not install, detect, refresh, migrate, or modify OpenCode Goal unless --with-goals is explicitly requested.
Recommended independent installation:
npx -y @bybrawe/opencode-loop@latest
npx -y @bybrawe/opencode-goal@latestOptional combined installation from Loop:
npx -y @bybrawe/opencode-loop@latest --with-goalsRecommended split:
- OpenCode Goals — persistent
/goalxcontracts, host evidence, completion verification, false-completion protection, revision isolation, restart recovery, and ordered Goals. - OpenCode Loop —
/loop, scheduled command/shell jobs, compaction scheduling, and timer/idle-driven repetition infrastructure.
Loop's older experimental /loop-goal* commands are not installed by default anymore. They remain available only as an explicit compatibility opt-in with --with-loop-goals; new setups should use this dedicated Goal plugin instead.
Do not run /goalx and a prompt-producing Loop against the same work in the same OpenCode session. Both can autonomously continue and may compete to start turns. Use separate sessions or pause/remove the prompt loop until the Goal is done.
npm package:
@bybrawe/opencode-goal
The repository includes deterministic regression tests, adversarial evals, minimum/current OpenCode compatibility lanes, real-host lifecycle/semantic/Todo/steering canaries, restart recovery tests, cross-platform package smoke tests, dedicated server-entry regression coverage, and installer/update/uninstall tests.
See CHANGELOG.md for release history and RELEASING.md for the release process.
If installed/updated with npx:
npx -y @bybrawe/opencode-goal@latest --uninstallIf the installer CLI is global:
opencode-goal --uninstall
npm uninstall -g @bybrawe/opencode-goalThe uninstaller checks the standard global JSON/JSONC files and, when set, the exact file in OPENCODE_CONFIG. It does not traverse project folders or remove a different host's settings. If you still see the third-party Goal after a restart, inspect the project's opencode.json(c) and .opencode/plugins/ or rerun with the exact custom config directory via OPENCODE_CONFIG_DIR. OpenCode 2.2.x has a separate built-in /goalx, which may remain visible after uninstalling this package.\n\nProject Goal state is intentionally not deleted during uninstall:
.opencode/goals/
.opencode/goal-sequences/
.opencode/goal-locks/
Delete those directories yourself only when you intentionally want to erase project-local Goal state/history.
MIT
The source targets @opencode/plugin@2.4.4 and OpenTUI 0.9.12 (optional UI peers now require at least 0.8). Native Goal continuations use the optional experimental idle snapshot to defer admission while the same session owns background jobs. A later successful execution may resume only the still-matching Goal revision; foreground input and failures invalidate deferred wakes. Descendant-owned work is informational in the host contract. Deferred wakes are in-memory, not a persistent watchdog. Real host, build and package validation remain pending; no npm release is implied.
Completion hardening (unreleased): a proven requirement must link back to an explicit passing, current-revision evidence record. File/command contracts require the matching host result; native verified completion compares declared file digests and rechecks semantic verifier file/absence snapshots before persisting completion. This reduces stale-artifact acceptance; it does not prove that every semantic verdict is correct or prevent workspace changes after the final read.
Background wake watchdog (unreleased): a deferred native continuation that observes no parent/direct child execution or step activity for 15 minutes is paused, without interrupting background work, if the exact Goal revision still owns the wait. An interrupted or failed subsequent wake also pauses that revision. Watch timers are process-local and do not recover a deferred wake across a server restart; resume explicitly after inspecting the session. This is an idle-wait safeguard, not a general hung-process detector.
Open /goalx-panel in the Desktop command palette or choose GoalX in the session panel menu. The panel uses the existing location-scoped read-only status RPC, shows the selected server's session, aborts obsolete reads after routing changes, and refreshes every 10 seconds while mounted. It does not send prompts, run tools, alter lifecycle state, or require the other ByBrawe plugins. It is a single host-module CommonJS entry; real Desktop/Web host validation is still required. Existing server and TUI command behavior is unchanged.
Open /goalx-panel or select GoalX in the session panel menu. The dashboard shows the objective, persisted requirements, budgets, queue, stop reason and confirmed create/edit/queue/pause/resume/clear/next controls. It also shows recorded host progress age, stalled turns, recent progress notes, retry state and Todo-plan snapshots as advisory observations, not live execution or completion evidence. Turkish and English UI labels follow the host locale. Structured status is read-only and refreshes every 10 seconds (can be disabled). An older server falls back to read-only text. Mutations call existing native commands, require confirmation, and re-read the selected session snapshot before dispatch. Command acceptance is not execution completion; commands may use models, and GoalX pause/edit/clear can interrupt a session. This is not an atomic compare-and-swap across the command boundary. Real Desktop validation is pending.
GoalX checks OpenCode's built-in Goal and Loop's public read-only reservation before starting/resuming/editing or issuing lifecycle operations that can interrupt work. Each peer RPC query has a three-second deadline, including on older hosts that do not settle on abort. A timeout blocks the operation rather than granting ownership. The check is repeated before the authorized mutation, and an autonomous continuation pauses the exact active revision if a companion owns the session. Direct lifecycle authorization is bound to the admitted Goal ID and revision (or the absence of a Goal). Native create/edit/clear recheck that identity under the existing storage lock; pause/resume retry telemetry conflicts without mutating a replacement Goal. Rejected stale commands do not clear current autonomous ownership. Queue-only administration remains independent. Non-activating admin commands preserve the current execution owner and deferred background wake. While a Goal is active or an execution is observed in flight, successful administration uses the native command result/status panel without sending an extra model acknowledgement; idle inactive sessions retain the previous chat acknowledgement. Failed queue selection/activation/restore operations reject the command explicitly. An older Loop without the reservation RPC is checked through its existing session shard (read-only) only when the session ID maps to that exact legacy filename. Ambiguous or transformed identities fail closed. No other plugin is installed, imported or modified. On OpenCode 2.2.1+ an unavailable built-in Goal RPC is conservatively treated as uncertain; an intentionally disabled native Goal may therefore require host configuration review. This is not an atomic lease across plugins or native Goal, and real host validation is pending.
Desktop editor update (unreleased): /goalx-panel includes acceptance criteria, constraints, required files, explicitly supplied verification commands, and turn/token/time/cost budget fields, plus a budget-only action. Create/edit controls are disabled when their lifecycle state is invalid. A missing optional status RPC no longer disables the native lifecycle. Packaging runs the build, not the full test/eval/smoke chain; release:check remains manual. Older Loop RPC method-not-found falls back to the durable shard check.
Desktop request handling (unreleased): a disconnected or moved session invalidates rendered controls, and cancellation/deadline settles the panel's wait even if an older client ignores AbortSignal. A timed-out native mutation remains uncertain; inspect the fresh server state before retrying. The Goal editor resets when the visible Goal identity or revision changes, to avoid applying old form values to a replacement Goal. The queue can also be cleared with explicit confirmation; this does not clear the current Goal.
Literal objective separator (unreleased): use /goalx -- <objective> for a single-line objective that starts with a reserved command word or contains flag-shaped text; put contract/budget options before --. For example, /goalx --max-turns 10 -- Document the --watch and --max-turns options. The Desktop editor inserts the separator automatically. Multiline pastes retain their existing literal-text behavior. Runtime limits that cannot be represented safely and non-integer history/queue positions are rejected.
Native lifecycle health (unreleased): the Desktop dashboard shows the server's GoalX lifecycle authority separately from status RPC connectivity. Persisted status remains readable when authority is lost, lifecycle is disabled, or the matched server has not reported its readiness. All mutation controls require a connected lifecycle; confirmations include its state in their token. A native host without an event subscription cannot authorize a new GoalX mutation. Older status-only servers remain readable in the new panel, but updating both plugin surfaces is required for controls.
Lifecycle shutdown (unreleased): GoalX rejects session lookups which do not confirm the requested identity and bounds read-only location lookup waits to five seconds. A location shutdown for this plugin's location (or an ambiguous shutdown) revokes lifecycle authority immediately. Cleanup does not wait indefinitely for a non-cooperative event iterator; incomplete cleanup is logged. Deleted sessions lose their pending handoff retry timers. Persisted goals and native chats are not erased by these changes.
Event replay and dashboard waits (unreleased): GoalX ignores repeated native event-envelope IDs before lifecycle, verifier and usage processing, using a bounded 8,192-entry history. Events without an ID are not guessed to be duplicates; events older than the retained window are not guaranteed to be deduplicated. Read-only status/dashboard session resolution has a five-second timeout and stops waiting on RPC cancellation or plugin disposal. No goal shard is read from a failed or unverified session lookup.
Read-only Goal health (unreleased, #282): /goalx status, the native sidebar and Desktop dashboard distinguish waiting for user input, persisted retry windows, unresolved handoffs and active Goals without recorded host progress for at least 30 minutes. A missing/overdue retry (five-minute grace) is flagged for review, not silently resumed. These are advisory observations from saved state, not proof of a stalled/running model. They do not schedule work, mutate records or emit recurring notifications. The dashboard prioritizes a health warning over a secondary progress note within its existing RPC size limit. Real-host validation and persistent notification delivery remain open.
Chat telemetry and location ownership (unreleased, #275/#277): legacy V1 chat message/model-parameter telemetry still retries fresh snapshots, but exhausted stale-write/lock-timeout contention in these advisory writes does not reject the chat. Lifecycle and completion writes retain their strict errors. The V2 session resolver now checks the actual plugin directory and workspace identity, matching the status RPC boundary; handoff creation carries an available workspace ID. The read-only model status tool includes the same health hints as the dashboard. Older prototype contexts with no location retain identity-based resolution. This is source-level hardening, not a new real-host compatibility verdict.
Installer dialect preservation (unreleased, #275): a V1-only config is no longer silently rewritten as V2 by an ordinary update. Explicit switches/environment settings remain authoritative. Mixed dialects require an explicit choice. Config parsing is shared with the legacy rewrite implementation; comments and trailing commas do not affect the decision. This does not detect an installed executable or verify a running host version.