Skip to content

Make leaf dependencies data-facing #1292

Open

Description

@eric8810

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

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

Process owners · #1857

Session and branch owners · #1858

Caller gaps verified on main

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, including mentions. 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, including directory/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 existing storage.report from 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-scoped timelineStore; Session catalog, metadata and worktree associations → store operations. Fold the SessionStore forwarding faces into store.readMetadata/setTitle/associateWorktree with the existing inputs, replies, revision checks and notices. Migrate SessionTitle, Session rename, FileAccess and the bindings used by alternate profiles. Keep sessionFiles for file ownership and transfer and timelineStore for 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.invoke on 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. Move sessionPermissions.permission/permissionDefaults onto sessions, 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. Retain sessionClientsHost.presences, processActivity and 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). One timelineTree face, no treeCommands alias. 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 existing session.language.update owner, 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

Activity

  1. added
    core
    on Nov 8, 2026
  2. self-assigned this
    on Nov 8, 2026
  3. eric8810 commented on Nov 10, 2026

    @eric8810
    CollaboratorAuthor

    Design merged in #1301 (docs/design/service-faces.md, commit cca96b1b6). This issue can proceed against the merged document.

  4. 57 remaining items

  5. eric8810 commented on Nov 16, 2026

    @eric8810
    CollaboratorAuthor

    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.

    • a9b3b20 fixes history pagination to the existing cutoff and checks future_sequence using a clearly future value; exact events, whole batches and error assertions remain. The original flow passes.
    • 8379656 keeps the model-startup settlement and idle-unload wait within the original 15-second total bound. The failure reproduced locally; the corrected complete flow plus 5 repeats pass, preserving restore/credential/branch assertions.
    • The Store family includes main 3873e34; generated conflicts were resolved by real xtask graph/check. MCP/Skills narrow bindings and native FsHost lifetime fixes remain intact. The empty legacy-no-consumer table was removed after both remaining entries were removed by their respective migrations.
    • refactor: use the Session metadata data face in SessionTitle #1684 carries failure-only exec recovery diagnostics. Its original case, the 25-case suite and 10 repeats passed locally, so the actual CI ToolResult is still needed; this is not reported as a product fix.

    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.

  6. eric8810 commented on Nov 17, 2026

    @eric8810
    CollaboratorAuthor

    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.

  7. eric8810 commented on Nov 22, 2026

    @eric8810
    CollaboratorAuthor

    The exec item is re-scoped: no process-scope execHost face. Expose the services that already own the operations — hostPlatform (process data methods), toolHost (session execute), backgroundExec (branch task operations) and sessionMethods.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.

  8. eric8810 commented on Nov 22, 2026

    @eric8810
    CollaboratorAuthor

    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 in HostPlatform, no separate face object or rename. The scope and staged delivery are being assessed in #1295.

  9. eric8810 commented on Nov 23, 2026

    @eric8810
    CollaboratorAuthor

    #1902–#1909、#1911–#1913、#1985 已关闭(#1910 已合并):这批迁移在所有者调查完成前开始。数据面迁移的范围按 #2015 的原则与扫描结论(#2016–#2028、#2032、#2033)重新界定。

  10. added
    P2
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2core

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions