Repository navigation
Description
Inventory
Product catalog at 31d100f45: 114 names, 73 data, 41 internal, 0 shared without dispatch. #1856, #1857 and #1858 are merged design contracts. The checkboxes below track implementation and consumer migration.
Delivered on main
- FileStorage exposes 12
fsHostmethods, including directory operations and leased file access. Hooks uses the file owner (feat(storage): expose pinned readers through fsHost #1699, Expose directory creation, listing and removal on fsHost #1867, Expose leased file operations and migrate Hooks reads to fsHost #1871). The remaining seven workspace operations and their acceptance are tracked in fsHost: remote file and search operations #1297. -
pluginFilesscopes exposedirectory,openReadandwriteStream(Expose scoped directories, pinned reads and streamed writes on pluginFiles #1868). The nativepluginFileTransactionsentry remains. - PluginManager uses the Settings data face, including
declaredBy(Route PluginManager configuration through the settings data face #1869). The nativesettingsServiceentry remains. -
sqliteStorageexposes 31 operations, including storage reporting (Expose the SQLite size report on sqliteStorage #1870), native Settings documents (Move native Settings persistence to sqliteStorage operations #1873), Agent records and Provider selections (Migrate Agent records and Provider selections to sqliteStorage #1874), and Session file and output ownership (Expose Session file ownership operations on sqliteStorage #1880). - SQLite commits Timeline writer rounds (Commit Timeline writer rounds through sqliteStorage #1882) and serves Session directory and batch-boundary operations (Route Timeline Session directory and batch boundary calls through SQLite #1883).
- The Session-scoped timelineStore already exposes page/segment reads, query, trace, snapshot operations and rollback/release. Remaining SQLite backend bindings and direct consumers belong to Finish SessionStore persistence and remove forwarding faces #1904.
Remaining implementation drafts
All 41 current internal catalog entries have one owning draft in the list below. The SQLite data face also has remaining caller migrations. Each draft lists its callers, operations and acceptance checks.
Resource and persistence · #1856
- Expose execHost and migrate process callers #1899 — execHost and process callers.
- Finish fsHost workspace operations and file consumers #1900 — fsHost workspace methods and remaining file callers.
- Move Scheduler, EventHub and Modality to pluginFiles #1901 — pluginFiles adoption by Scheduler, EventHub and Modality.
- Migrate special Settings sources and trusted callers #1902 — custom Settings sources, trusted admission and owner reads/writes.
- Finish Provider persistence on sqliteStorage #1903 — remaining Provider record reads, edits, adoption and import.
- Finish SessionStore persistence and remove forwarding faces #1904 — SessionStore transactions, file sweep, metadata and worktrees.
Process owners · #1857
- Finish model selection and invocation on their owners #1905 — model selection, invocation, profiles and evaluation tools.
- Finish Session directory, startup and account lifetimes #1906 — Session directory, account recovery and startup lifetimes.
- Migrate worktree and process loader callers #1907 — managed worktrees and process loader consumers.
- Finish Connection, control and UI owner operations #1908 — Connection, daemon control and UI settlement.
Session and branch owners · #1858
- Consolidate the Session tree and retire treeCommands #1909 — Session tree, default branch and retirement of treeCommands.
- Move Session admission, faults and branch opening to owners #1910 — Session child loader, checks, faults and branch opening.
- Migrate branch control, Prompt and selected-branch consumers #1911 — Loop, Prompt, language, Report and branch-targeted callers.
- Expose model preparation, compaction, history and usage operations #1912 — model/context preparation, compaction, projections and usage.
- Move file history, tool bindings and nested execution to branch faces #1913 — file history, pinned tool definitions and nested execution.
Caller gaps verified on main
- Finish SessionStore persistence and remove forwarding faces #1904 — SessionFiles.read(fileId) still queries ownership directly even though ownsFile is available. Use it for the ID read as well as the existing ownership paths. Keep cleanup, revision checks and fileId transfer semantics. Read path.
- Consolidate the Session tree and retire treeCommands #1909 — carry defaultBranch/setDefaultBranch across with the other seven published tree operations. BranchTool currently calls Rust-only end_with_final, committing the final message with branch/end. BranchLine uses default_from/default_moves/next_move/turn_ends/activity_after for replay, ordered default moves and parent activity. Verify owner and fact paths against the existing branch contract: tool end and recovery deliver the final message exactly once, and BranchLine preserves ordered moves, recovery and parent activity. Tool · BranchLine.
- Migrate branch control, Prompt and selected-branch consumers #1911 — Report already records conversationThrough. Replace its direct Branch lookup, preserve its existing cutoff for both activity and conversation, and coordinate evidence-file edits with Add scoped report email drafts and redacted evidence packs #1881. Capture.
- Migrate worktree and process loader callers #1907 / Finish fsHost workspace operations and file consumers #1900 — PluginManager still uses native Loader after its Settings migration; UI resource reads and migration ledger/snapshot operations still need their file owner. Loader.
- Finish model selection and invocation on their owners #1905 / Consolidate the Session tree and retire treeCommands #1909 — check prompt_eval, scenario_eval and summary_eval, native/standalone and managed profiles, TS/Python fixtures, installed plugins and generated SDK names before retiring the old ports. Summary evaluation.
Implementation order: migrate callers of shipped operations first, complete resource and storage operations, then process owners. Establish the Session tree and lifecycle before moving branch-specific consumers. Integrate the cross-domain calls before retiring their keys. Validate the completion checklist below against the resulting main.
#1856 · Resource and persistence
- Execution and files (
hostPlatform,fileStorage,mentionIndex). Exec, Shell, Hooks and OCR →execHost. WorkspaceTools, workspace completion and FileAccess →fsHost, includingmentions. Permission, PromptSources, Skills catalog/management and execution/shell settings use the node facts, file and configuration operations they consume. Settings, credential stores, UI resources and Session files use the existing resource operation matrix. execHost: remote exec data service #1295 / fsHost: remote file and search operations #1297. - Scoped files (
pluginFileTransactions). Scheduler, EventHub and Modality →pluginFiles.open; reuse the shipped scope/lease operations, includingdirectory/openRead/writeStream. Retain pinned reads, native media paths and existing Session path/fileId transfer. - Settings (
settingsService). PluginManager already uses the Settings face, and declared-source methods already ship. Migrate remaining native callers and bind source-bound read/update for custom non-secret documents. Agents, Hooks and MCP retain trusted project admission. MCP reads its own credential document through Settings. - Native storage (
sqliteStorage). Persistent Agent records, native Settings read/import/replace and Provider selection/preference operations already ship. Bind the remaining Provider record reads, edits, adoption and imports on sqliteStorage. StorageMethods serves the existingstorage.reportfrom the SQLite owner's report operation. Native Transport gates endpoint binding on the store being ready; it needs no query. SessionStore's SQLite dependency must also migrate: keep its Timeline, Session-row and file transactions atomic and its writer drain and lock lifetime intact. Do not close this item while SessionStore still injects a raw database across rows. - Session persistence (
sessionStore). Agents bootstrap → Session-scopedtimelineStore; Session catalog, metadata and worktree associations →storeoperations. Fold the SessionStore forwarding faces intostore.readMetadata/setTitle/associateWorktreewith the existing inputs, replies, revision checks and notices. Migrate SessionTitle, Session rename, FileAccess and the bindings used by alternate profiles. KeepsessionFilesfor file ownership and transfer andtimelineStorefor Session-scoped batches and recovery. - Credential contract. Trusted plugins in scope may read original inline values through SQLite record projections and complete Settings documents. Provider and MCP business replies omit credential values. Secret references and managed OAuth are resolved by their existing owners.
#1857 · Process owners
- Model operations (
modelHost,providerService,providerConnectionResolver). Pickers, selection and auxiliary callers →providerService.resolve/selectableModels/selectableForModality/complete. Dialogue, summary and suggestion →modelHost.invokeon the active owner. Migrate native prompt/scenario/summary evaluation callers as well as Rust, TypeScript and installed plugin consumers. Managed Provider, ConfiguredModels and the standalone invocation path retain their profile behavior. Aimux owns its driver, pool and unload. Retire the three superseded model selection/list/auxiliary names and the public connection resolver. - Session model startup and accounts (
grokOAuthService,openAICodexOAuthService). RPC and Collaboration → managed Provider configuration/preferences and startup prepare/check/retain/release. Provider → account owner for credential recovery and settlement; clients retain account management RPCs. Media execution and realtime retain their accepted native adapter binding (Design the modality connection data face without changing existing media behavior #1613, Provider: move modalityConnectionHost out of the catalog as a typed binding #1634). - Agent directory (
agentIndex). RPC, Collaboration, Agent configuration and Provider lifecycle consumers → Agent/Session owner operations. MovesessionPermissions.permission/permissionDefaultsontosessions, preserving the Session lease and defaults lookup without creating a Session. The directory owns generation admission, watch/close and rollback. Consumers receive data. - Worktrees and loader (
managedWorktrees,loader). Session creation and management → ManagedWorktrees create/discard/list/pruneSelection/remove; persistence of the association belongs to docs: define resource and persistence data-face boundaries #1856. PluginManager →rutis/loader.create/reload/remove/status; Session child instances belong to docs: define Session and branch runtime faces #1858. - Connection, control and UI (
connectionHub,serverControl,uiHost,uiExtensions). Transport, Web entry, Session subscriptions and UI lifecycle use the connection owner's presence, broadcast, close and detach paths. RetainsessionClientsHost.presences,processActivityand the existing daemon/UI client RPCs. PluginManager → UiExtensions plugins/refusal/register/withdraw. Preserve authenticated connection identity and reply-before-shutdown order.
#1858 · Session and branch owners
- Tree (
timelineTree,timelineTreeControl,timelineFactory). OnetimelineTreeface, notreeCommandsalias. Move the nine existing treeCommands methods (create/end/info/input/list/page/query/defaultBranch/setDefaultBranch) and bind directory. Include Goal's atomic batch input, branch-detail RPC's display, and history/line reads' batch-boundary and bounded-page operations. Preserve live and ended-branch semantics. Tree construction, restoration and teardown stay inside the runtime. - Branch-targeted callers. Context RPC → target branch's Loop/ContextUsage; Session language and Agent configuration → language/Prompt; Goal, Shell, InputQueue, PromptSuggestion, Report and Collaboration (including approvals) → the target branch's actual owner operation. Migrate current
tree.get(id)users and native/TS/Python bindings. Preserve branch admission, ended/unknown errors and atomic writes without returning a Branch object. - Admission and lifecycle (
sessionLoader,submitChecks,faultReporter,branchOpening). Both Skills content and MCP publication → Session-anchored loader create/remove. Check contributors and input admission → SubmitChecks. Fault producers/observers →sessionLifecycle.reportFault/failure/observeFault; opening participants →branchLifecycle.registerOpening. - Loop, Prompt and configuration (
agentLoop,loopState,prompt,configureControl,configurationPublisher,promptSourcesBranch). Turn control and observation →agentLoop; initial completion/configure →prompt; publication/wait →contextPreparation; language reads →sessionLanguage.get; language updates and clear → the existingsession.language.updateowner, including persistence and adoption on every loaded branch. - Context and history (
prepareModelHost,prepareContextHost,contextModelHost,compactionStrategyHost,historyRenderer,contextPreparation,contextUsage). Loop, ModelProvider and ContextPreparation use the selected preparation, counting, compaction, projection and usage owners. Preserve pinned tools, request identity, recovery cutoff, batching and read bounds. - File and tool state (
fileReads,toolBinding,toolExecutor). File tools → branch FileReads for binding history and docs: define resource and persistence data-face boundaries #1856's file owner for I/O. Definition readers, including Code Mode →toolBinding.definitions; nested execution →toolExecutor.open/invoke/close. Keep one pinned-definition lookup and the existing child settlement order.
Completion
- Every remaining public catalog entry is shared and dispatchable; private implementation and binding keys leave the catalog. Superseded public names have no forwarding aliases.
- Native and foreign calls reach the same owner and verify replies, errors, cancellation and unload. Regenerate the product catalog and TypeScript declarations and pass
xtask check. Preserve Session file transfer, persisted formats, existing flow assertions and resource bounds.
Separate follow-ups: PostgreSQL/import (Session state on remote PostgreSQL #1298) and remote identity/reconnect (Resource leaf contract: external mount, identity, lifecycle #1296) remain separate. Contract: docs: make data faces the default for existing services #1393. Merged design contracts: resource, process, runtime.
Activity
docs: align service faces with the dispatcher rule
docs: follow the session files owner contract and classify wait
docs: close the reason set and align scheduleJobs
docs: finish the inventory reasons and wire shapes
docs: use Scheduler's flat request and account for wakeups
docs: mirror the wakeup method table and clarify the optional catalog
eric8810 commentedon Nov 10, 2026
Design merged in #1301 (
docs/design/service-faces.md, commitcca96b1b6). This issue can proceed against the merged document.docs: design cross-language service faces
docs: keep the legacy count current
fix(scheduler): keep the owner's job_id spelling
docs: make the data face the only public contract
57 remaining items
fix(storage): preserve native readers when face close is refused
fix(store): constrain the public native repository binding
docs(storage): clarify native Timeline range-read binding
eric8810 commentedon Nov 16, 2026
Maintenance update: all 18 open Data face PRs have been pushed with the approved shared CI test corrections and their verified parent chains. GitHub currently reports all 18 mergeable. No PR was merged.
Fresh CI has not completed. #1696 and #1699 still retain the earlier change-request review despite subsequent approvals of the corrected implementations; re-review is requested. #1712 remains separate and approved, with an unresolved whole-transport-suite timeout. Original Web assertions and CI timeout limits are unchanged. This update advances the PR batch, not a claim that every remaining #1292 design/migration is complete.
eric8810 commentedon Nov 17, 2026
Maintenance checkpoint for the open Data face PRs:
All branch updates are normal pushes; no PR was merged by this maintenance run. #1707 belongs to its existing author, who has been asked to refresh its remaining workflow conflict; its code was not edited here.
feat(storage): expose the shared Timeline store data face
test(storage): publish the removal-ready file atomically
docs(session-title): name the metadata data-face binding
docs(collaboration): align the public face inventory
feat(storage): expose pinned readers through fsHost
chore: refresh contracts after merged data face changes
eric8810 commentedon Nov 22, 2026
The exec item is re-scoped: no process-scope
execHostface. Expose the services that already own the operations —hostPlatform(process data methods),toolHost(sessionexecute),backgroundExec(branch task operations) andsessionMethods.shell— at their existing scopes, with#[rutis::service]and#[service(skip)]. No ownership move, no rename, no hand-written dispatch. Details: #1295; #1899 is closed.eric8810 commentedon Nov 22, 2026
The exec item now follows the option-1 shape in #1295: data-shaped methods on the existing
HostPlatform(spawn/wait/kill/output/shell/configured/confined/info), process/PTY ownership inHostPlatform, no separate face object or rename. The scope and staged delivery are being assessed in #1295.eric8810 commentedon Nov 23, 2026
#1902–#1909、#1911–#1913、#1985 已关闭(#1910 已合并):这批迁移在所有者调查完成前开始。数据面迁移的范围按 #2015 的原则与扫描结论(#2016–#2028、#2032、#2033)重新界定。