Rigwell 0.6.1 ยท Documentation

Local decisions for unresolved specification observations

Decision 364 settles the implementation choices left by the source analysis in specification sections 10 and 20.1. The original observations remain in the specification as historical evidence. The choices below describe Rigwell; they make no new claim about another application's behavior. They do not replace real adapter, comparison, long-session or installed-platform acceptance. Those outcomes remain separately tracked in PARITY and HANDOFF.

Protocol and session lifecycle

Unresolved observationRigwell decision and owning source
Live permission, question, picker and permission-resolved traffic was not capturedUse the documented SDK-shaped requests and notifications, with real request IDs. Exercise them with the fake-provider protocol and desktop suites. src/daemon/connection.ts, src/agent/session.ts.
Live interrupt traffic and settled tool phases were not capturedInterrupt aborts the owned turn and resolves its pending prompts as cancelled. Emit tool phases for actual transitions and preserve errors/cancellation rather than reporting success. src/agent/session.ts.
Compaction, retries, heartbeats, hook and error notification captures were missingRetain the specified event schemas and emit them from the corresponding operations. Historical missing captures do not justify omitting events. src/agent/session.ts, src/adapters/retry.ts.
Server-side warmup_cache behaviorUse the existing prefix-priming request, output cap 16, without adding the throwaway answer to the conversation or monitored normal request chain. Decisions 118 and 279; src/agent/request.ts.
How to answer a prompt restored by load_sessionanswer_request takes the restored request ID and answer. Reject an unknown or already settled ID. src/daemon/connection.ts, SDK reconnect acceptance.
Use of CONFLICTUse it for state conflicts such as a running fork, stale file fingerprint and stale rewind, rather than inventing a new error code. src/daemon/connection.ts, src/sidepane/files.ts.
Meaning of backgroundWorkThe count of this session's running background jobs, attached to idle state notifications. Decision 235; Session.backgroundWork().
Session ID on session-scoped requestsOne owning session per connection. Daemon control methods that explicitly name a session retain their documented ID fields; do not add a universal routing field. src/daemon/connection.ts.
Settings fixed at session start or editable laterKeep the implemented update_session_settings path, including validation and settings-updated notification. An existing session is not silently reconstructed for an ordinary settings change. src/daemon/connection.ts.

Storage, instructions, skills and hooks

Unresolved observationRigwell decision and owning source
Real compaction_state records were not foundWrite and load the defined transcript record, including the local fields needed for exact context restoration. src/storage/transcript.ts. Real 200-turn behavior remains item 14.
Separate session_annotations database was absentUse the documented transcript/settings metadata and the derived session index. Do not create an extra database merely to reproduce an unobserved internal migration. src/storage/session-settings.ts, src/storage/session-index.ts.
Continue-last shortcut--resume without an ID lists available sessions; an explicit ID resumes one. Do not guess which session the user intended. src/cli/main.ts.
Previous-version .bak ruleBack up the existing settings only when it parses, then write a temporary file and rename it. A corrupt primary must not overwrite a good backup. src/storage/session-settings.ts.
Per-file AGENTS limitRetain the specified 80,000-character total and 40,000-character lazy-pass budgets. No additional undocumented per-file cap. src/instructions/instructions.ts.
Other application's credential-file formatDo not depend on it or import subscription tokens from it. Use Rigwell's credential backend and configured OAuth clients. src/storage/credentials.ts, src/auth/. Windows native keychain acceptance remains part of release work.
SessionStart sources beyond observed startup/resume/compactEmit startup, resume and compact for those actual lifecycle transitions. Hook input may tolerate additional strings; do not invent a clear transition or emit it speculatively. src/hooks/runner.ts, src/agent/session.ts.
Stop-hook blocking text, role and continuation capFeed the original local wrapper and reason back as an LLM-only user reminder. Keep the specified no-cap policy and stop_hook_active signal; ordinary abort/watchdog controls still apply. Decision 147; src/agent/session.ts.
Child transcript pathUse the normal session store and parent/root linkage, not a guessed external path pattern. src/subagents/task.ts, src/storage/transcript.ts.
Moving a running foreground Task into the backgroundbackground is chosen when starting Task. No unspecified foreground-to-background transfer control is added. TaskOutput/TaskStop operate on an existing background job. src/subagents/task.ts.
Skill input discrepancyKeep {name, args} as the specification's design default and current public tool contract. src/skills/.

Permissions, adapters and model-side requests

Unresolved observationRigwell decision and owning source
WebSearch / FetchUrl gatingFetchUrl asks at Off and is allowed at Low or above. WebSearch retains explicit tool permission through the normal gate; no inferred external allowlist. src/permissions/gate.ts.
Grep / Glob gatingRead-only operations are allowed at every autonomy level, matching the explicit design table. src/permissions/gate.ts.
Per-command always-allow list useKeep explicit remembered command rules subject to safeguards and higher-priority policy. Never infer an allow rule from a previously successful command. src/permissions/lists.ts, src/permissions/gate.ts.
User Azure endpoint / version / deploymentUse the specified configurable OpenAI-compatible endpoint and request overrides. Do not invent an external proxy deployment map. src/adapters/, src/storage/models.ts.
WebSocket idle deadlineUse the configured request timeout and existing transport cancellation/retry rules. Do not copy an unobserved hosted idle limit. src/adapters/openai-ws.ts.
Spec-mode Execute restrictionPreserve the explicit prompt-based default together with the ordinary command gate. The enforced file-tool plan-directory restriction remains active. src/permissions/gate.ts, src/agent/prompts.ts.
Purpose of the small interactive side requestRigwell uses its own bounded title request, with no tools, after the first visible user message unless the title is supplied/manual. Decision 211; src/agent/session.ts. This is a local decision, not identification of the captured request.
Hosted compaction/caching limits, remote allowlists and proxy deadline valuesRigwell has no vendor-hosted model pool. Apply local model limits/profiles, configured caching and request deadlines. External hosted-only values are not applicable under section 20.25. Real local/API compaction and cache behavior still require items 9 and 14.
Exact deferred-tool feature-flag behaviorRetain local explicit direct/Script mode and deferred-tool registration/loading rules. No hidden remote flag controls the tool set. src/agent/deferred.ts, src/agent/profiles.ts.
Benchmark and credit claimsNo conclusion by design decision. Measure shared tasks, models and three trials with the item 11 runner, then tune only from measured results under item 12. Reference-patch and fake-service passes are not quality scores.

Missions, desktop, terminal and worktrees

Unresolved observationRigwell decision and owning source
Mission folder root$RIGWELL_HOME/missions/<orchestrator-session-id>/. src/missions/store.ts.
Mission role tool filteringOrchestrators receive the four orchestrator mission tools; workers receive EndFeatureRun, which checks current-worker ownership. Core tools retain mission file protection. src/missions/index.ts, src/missions/tools.ts.
Mission start confirmation and unopened plan/worker/validation screensUse the normal user permission channel for start and the local Missions page for plan, state, worker and validation information. No unattended confirmation. src/missions/tools.ts, desktop/renderer/components/Missions.tsx.
Automation failure countThree consecutive final failures after retry cause auto-pause; success resets the count. Decision 188; src/automations/manager.ts.
Desktop Ctrl+N ambiguityNew Session is the desktop command; terminal Ctrl+N cycles models. Keep the specified separation. desktop/main/main.ts, src/tui/reducer.ts.
Ctrl+L cycling, wrapping and capTUI cycles permitted levels from Off through High and wraps inside the configured ceiling. Desktop composer cycles its Low/Medium/High list; ordinary daemon policy still enforces a ceiling. src/tui/reducer.ts, desktop/renderer/components/Composer.tsx.
Platform mapping to Ctrl+TKeep the documented Rigwell bindings rather than add an unverified platform alias. Shift+Tab toggles Spec mode in the TUI. The desktop uses Ctrl+Alt+M and reserves Tab and Shift+Tab for focus traversal. src/tui/keys.ts, desktop composer.
Custom status-line stdinThe local JSON contract includes session ID, cwd, version, model, mode, autonomy, reasoning, running and context counters. Decision 175; src/tui/attention.ts.
Viewer internals and possible office-preview librariesUse the specified local code/Markdown/image preview minimum. Semantic and PR review are implemented separately under item 8. Do not add office document editing based on an unverified dependency. desktop/renderer/components/FilesTab.tsx.
Theme file formatImport/export JSON color tokens per theme, with existing validation and appearance controls. desktop/main/appearance.ts, desktop appearance settings.
Toast for the visible sessionSuppress when its window is focused on that session; other notifications retain their normal behavior. desktop/main/alerts.ts, desktop/main/main.ts.
IPC sender validationEvery registered handler goes through the trusted top-frame guard before its action. Preserve that rule for future handlers. desktop/main/main.ts, desktop/main/security.ts.
Side-chat starts fresh or forksFork from the main session's last settled prefix, with independent state and read-only tools until writes are enabled; persist/promote through the existing side-chat store. Decision 244; src/sidepane/sidechat.ts.
Terminal per-session limitNo additional undocumented count limit. Keep ownership, disconnect grace, orphan sweep and bounded scrollback. Windows currently uses the documented pipe fallback, whose installed behavior is a release acceptance limit. src/sidepane/pty.ts.
Setup shell on macOS/Linuxbash when available, otherwise sh, with sanitized environment and login PATH. Windows uses the PowerShell script-file path. src/worktree/scripts.ts.
OSC 9;4 triggerWorking emits indeterminate, pending input emits waiting, idle/exit clears progress. It does not imply a percentage estimate. src/tui/attention.ts, src/tui/app.ts.

The source analysis's open behavior choices are settled by this record. Real performance, every-adapter smoke, 200-turn sessions, registered provider clients, native hardware and signed-install/update outcomes remain subject to their original acceptance requirements. The two instrumented intermittent CI failures remain unresolved in HANDOFF; this document does not claim to fix them.