Skip to content

Latest commit

 

History

History
456 lines (266 loc) · 24 KB

ARCHITECTURE.md

File metadata and controls

456 lines (266 loc) · 24 KB

Runtime architecture

The architecture is kept as decision records under docs/adr/, one file per decision; 0001 says how a record is written, replaced and checked. Read this table, then the records whose Code paths cover the files you change. The headings after the table keep every section name and anchor this file had, so a reference such as docs/ARCHITECTURE.md, The pane holder still lands here and names its record.

Record Code
0001. Record architecture decisions docs/adr/, scripts/check-docs.py
0002. The core, the shell and the engine hide-core/src/runtime.rs, hide-core/src/handle.rs, hide-core/src/engine/contract.rs, hide-core/src/session_sync/
0003. State placement and publication hide-core/src/persistence.rs, hide-core/src/reader.rs, hide-core/src/input_gate.rs, hide-core/src/sidebar.rs, hide-core/src/view_feedback.rs, hide-core/src/runtime/view_feedback.rs, web/src/components/elapsed.tsx
0004. Drawn ahead of the engine hide-core/src/runtime/drawn_ahead.rs, hide-core/src/runtime/pane_prediction.rs, hided/src/pane_sizes.rs, hide-node/src/terminal/input.rs, web/src/keyTarget.ts
0005. The platform layer hide-platform/, desktop/scripts/app-identity.mjs
0006. Resident process ownership desktop/src/main/spawn.ts, desktop/src/main/host.ts, hided/src/supervisor.rs, hide-node/src/terminal/holder.rs, hide-node/src/ssh/host.rs, hide-host/src/serve.rs
0007. The daemon lives with its panes hided/src/server.rs, hided/src/build_id.rs, hided/src/env.rs, hided/src/state_move.rs
0008. Updating the core hided/src/core_update.rs, hided/src/node_role.rs, hided/src/started_cores.rs
0009. hided and the WebSocket boundary hided/src/server.rs, hided/src/server/, hided/src/node_panes.rs, hided/src/pane_auth.rs, contracts/hided-ws.schema.json
0010. The pane holder hide-holder/, hide-holder-protocol/, vendor/portable-pty/
0011. Pane records and reconcile hide-kit/src/panes.rs, hide-kit/src/panes/, hide-holder/src/record.rs
0012. The node's holder panes hide-node/src/terminal/holder.rs, hide-node/src/terminal/holder/
0013. The core's own engine hide-core/src/engine/own/, hide-node/src/terminal/engine_panes.rs, hide-node-link/src/holders.rs
0014. The terminal path hide-node/src/terminal/, hided/src/terminal_hub.rs
0015. Moving a live pane hide-core/src/runtime/pane_move.rs, hide-core/src/runtime/pane_move_preview.rs
0016. Explicit terminal attachments hide-core/src/runtime/attachments.rs, hide-host/src/attachments.rs, hided/src/attachments.rs, hide-node-link/src/attachments.rs, web/src/attachments.ts
0017. Agent adapters hide-agent-adapter/, contracts/agent-adapters.json, hide-session/src/thread/, web/src/agentAdapters.ts
0018. Agent definition files hide-agent-adapter/agents/, hide-agent-adapter/src/definition/, hide-agent-adapter/build.rs, hide-screen-rules/, scripts/check-agent-screen-rules.py
0019. Agent profiles and accounts hide-agent-adapter/src/account.rs, hide-core/src/agent_profiles.rs, hide-core/src/agent_profiles/, hide-node-link/src/profiles.rs, hide-host/src/profiles.rs, hide-core/src/launch.rs, scripts/check-agent-folders.sh
0020. Agent sleep hide-core/src/agent_sleep.rs, hide-core/src/agent_sleep/, hide-core/src/agent_sleep_engine.rs, hide-core/src/runtime/agent_sleep.rs, hide-core/src/memory_pressure.rs
0021. Agent labels in the core hide-core/src/labels/, hide-core/src/agent_state/agent_turn.rs, hide-core/src/session_names.rs, hide-session/src/label_transcript.rs
0022. Local agent delivery and inactivity watches hide-core/src/delivery/, hide-core/src/runtime/delivery.rs
0023. Bots hide-core/src/access.rs, hide-core/src/runtime/desk/connections.rs, hided/src/access.rs, hided/src/access_cli.rs, hided/src/access_screen.rs, hided/src/desk_talk.rs
0024. Session archive hide-core/src/session_archive.rs, hide-core/src/runtime/session_archive.rs
0025. Session plans hide-core/src/plans.rs, hide-core/src/dag.rs, hide-core/src/runtime/plans.rs
0026. Session threads hide-core/src/runtime/session_thread.rs, hide-core/src/input_queue.rs, hide-core/src/runtime/input_queue.rs, hide-core/src/operator_input.rs
0027. The link record hide-core/src/links/, hide-core/src/runtime/links.rs, hide-session/src/links.rs, hide-session/src/named_prs.rs, hided/src/session_cli.rs
0028. Usage accounting hide-session/src/usage/, hide-core/src/usage_ledger/, hide-core/src/runtime/usage_ledger.rs, hide-core/src/agent_state/tally/project_status.rs
0029. Reopening locally closed work hide-core/src/runtime/closed_registrations.rs, hide-core/src/runtime/tree_close.rs, hide-core/src/runtime/tree_reopen.rs, hide-core/src/recent_closed.rs
0030. Conductor missions hide-core/src/missions.rs, hide-core/src/mission_store.rs, hide-core/src/runtime/missions.rs, web/src/MissionScreen.tsx
0031. Automations hide-core/src/automations.rs, hide-core/src/automations/, hide-core/src/runtime/automations.rs, hided/src/automation_cli.rs
0032. Desk hide-core/src/desk.rs, hide-core/src/runtime/desk.rs, hide-core/src/runtime/desk/, hide-desk/, hided/src/desk_host.rs
0033. Checkout owner workspace hide-core/src/checkout_owner.rs, hide-core/src/checkout_owner/, hided/src/hook_request.rs, hide-core/src/agent_hooks/facts.rs
0034. Stored primary checkout hide-core/src/runtime/projects.rs, web/src/snapshot.ts
0035. Code hosts hide-core/src/code_host.rs, hide-core/src/code_host/, hide-core/src/github/, hide-core/src/gitlab/, scripts/check-code-host-seam.py
0036. Node and device identity hide-core/src/node.rs, hide-core/src/runtime/device_names.rs, hide-node/src/opener.rs, scripts/check-core-touches-no-machine.py
0037. A device's ssh hide-node/src/ssh/device.rs, hide-node/src/ssh/openssh.rs, hide-node/src/ssh/askpass.rs, hide-node/src/ssh/bootstrap.rs, hide-core/src/runtime/device_sign_in.rs
0038. WSL distributions as devices hide-node/src/ssh/wsl.rs
0039. A core on another machine hided/src/placement.rs, hided/src/attach.rs, hided/src/node_role.rs, hided/src/screen_sign_in.rs, web/src/coreLink.ts
0040. Splitting a moved core's two machines hided/src/moved_core.rs, hided/src/node_role.rs
0041. The peer connection hide-peer-protocol/, hide-peer/, hide-peer-iroh/, hided/src/peer_host.rs, hided/src/peer_dial.rs, hided/src/peer_core.rs, hided/src/pairing.rs, contracts/peer-link.json, hide-core/src/settings_copy.rs, hide-core/src/runtime/settings_copy.rs
0042. Another machine's screen hided/src/remote_screen.rs, hided/src/screen_net.rs, desktop/src/main/remoteScreens.ts, desktop/src/preload/remote.ts
0043. A guest node on the host hided/src/guest_node/, hided/src/guests/, hided/src/peer_inbox.rs, hide-core/src/guest_panes.rs
0044. Whose work is whose between machines hide-core/src/whose_work.rs, hide-core/src/peer_work.rs, hided/src/work_names.rs, hided/src/desktop_notices.rs
0045. Switching a helper device to its machine's own Hide hide-core/src/runtime/device_switch.rs, hided/src/core_install/, web/src/settings/DeviceSwitch.tsx
0046. Device catalogs hide-core/src/device_catalog.rs, hide-core/src/runtime/device_catalog.rs
0047. Device file hosts and document saves hide-host/, hide-core/src/node_access.rs, hide-core/src/files.rs, hide-core/src/runtime/documents.rs
0048. Panes, tabs and the attach window in the web shell web/src/terminals.ts, web/src/PaneGrid.tsx, web/src/terminalView.ts, web/src/ws.ts
0049. Settings and workspace management in the web shell web/src/SettingsSheet.tsx, web/src/settings/, web/src/settings.ts, hide-core/src/runtime/guardrails.rs, hide-core/src/project_settings.rs
0050. Workspaces in the web shell web/src/WorkspaceScreen.tsx, web/src/workspace.ts, web/src/Overview.tsx, hide-core/src/tasks.rs
0051. The shortcut registry web/src/shortcuts.ts, web/src/keyboard.ts, desktop/src/main/menu.ts
0052. The $HOME filesystem boundary hided/src/boundary.rs
0053. The checkout-root boundary and the Explorer frames hided/src/index.rs, hided/src/watch.rs, hided/src/spawn.rs, web/src/watch.ts, web/src/search.ts
0054. The Explorer, editor and viewers web/src/explorer.ts, web/src/ExplorerTree.tsx, web/src/editor/
0055. Retiring Home hide-host/src/home.rs, hide-core/src/runtime/home_retire.rs
0056. The desktop host desktop/src/main/, desktop/src/preload/, desktop/static/
0057. The install kit hide-kit/, hide-host/src/kit.rs, hide-core/src/kit.rs, hide-core/src/runtime/kit.rs
0058. Herdr an earlier Hide left on a machine hide-host/src/kit.rs, hide-core/src/herdr_import.rs
0059. The mobile companion hided/src/mobile/, web/src/mobile/, hide-relay-protocol/
0060. The iOS app host mobile/ios/, mobile/scripts/, web/src/mobile/appHost.ts
0061. The Android app host mobile/android/, mobile/scripts/
0062. Product usage statistics hide-core/src/product_analytics.rs, hided/src/product_analytics.rs, site/public/privacy.html
0063. A paired machine's view is the operator hide-core/src/runtime/look.rs, hide-core/src/runtime/unseen_views.rs, hide-core/src/runtime/agent_sleep.rs, hided/src/remote_screen.rs, hided/src/server/event_class.rs, desktop/src/main/browser.ts, web/src/viewFocus.ts, web/src/windowFocus.ts, web/src/missionReveal.ts
0064. One turn per agent hide-core/src/agent_state/agent_turn.rs, hide-core/src/agent_state/axes.rs, hide-core/src/runtime/account_reports.rs, hide-core/src/runtime/input_queue.rs
0065. OpenCode is no longer a supported agent hide-kit/src/retired_agents.rs, hide-agent-hooks/src/plugin.rs, hide-kit/src/store.rs, hide-kit/src/store/mcp.rs, hide-agent-hooks/src/runtime.rs, hide-ai/src/settings.rs, hide-agent-adapter/src/declarations.rs
0066. Hide Bot threads and seats hide-core/src/desk/thread_store.rs, hide-core/src/desk/thread_store/, hide-core/src/desk/bots.rs, hide-core/src/desk/bots/, hide-core/src/runtime/desk/bots.rs, hide-core/src/runtime/desk/bots/, hide-core/src/runtime/desk/threads.rs, hide-core/src/runtime/desk/seats.rs, hide-core/src/runtime/desk/seat.rs, hide-core/src/runtime/desk/worker.rs, hide-core/src/runtime/desk/thread_call.rs, hide-core/src/runtime/desk/parent.rs, hide-core/src/runtime/desk/thread_tab.rs, hide-core/src/runtime/desk/ask.rs, hided/src/thread_cli.rs, hided/src/desk_thread_call.rs
0067. A mission runs a workflow blueprint hide-core/src/workflow/, hide-core/src/missions.rs, hide-core/src/mission_record.rs
0068. A Hide Bot seat gets Hide's hooks hide-agent-hooks/src/pane.rs, hide-agent-hooks/src/delivery.rs, hided/src/pane_auth.rs, hided/src/hook_request.rs, hide-desk/src/instructions.md

Product usage statistics

Moved to ADR 0062.

State placement and publication

Moved to ADR 0003.

Sidebar tab names

Moved to ADR 0003.

View openers and comments

Moved to ADR 0003.

The core, the shell and Herdr

Moved to ADR 0002.

Code hosts

Moved to ADR 0035.

Stored primary checkout

Moved to ADR 0034.

Project sessions and Memory

Moved to a private document: docs/project-sessions-and-memory.md in with-hide/hide-private.

Moving a live pane

Moved to ADR 0015.

Drawn ahead of the engine

Moved to ADR 0004.

Checkout owner workspace

Moved to ADR 0033.

Local agent delivery and inactivity watches

Moved to ADR 0022.

Explicit terminal attachments

Moved to ADR 0016.

Reopening locally closed work

Moved to ADR 0029.

Agent sleep

Moved to ADR 0020.

Sleep under memory pressure

Moved to ADR 0020.

Sleep by mission, letter and command

Moved to ADR 0020.

Session archive

Moved to ADR 0024.

Conductor missions

Moved to ADR 0030.

Automations

Moved to ADR 0031.

Session plans

Moved to ADR 0025.

Session threads

Moved to ADR 0026.

A session's model and effort

Moved to ADR 0026.

The operator's waiting line

Moved to ADR 0026.

The link record

Moved to ADR 0027.

Session work records

Moved to ADR 0027.

Historical usage accounting

Moved to ADR 0028.

Project status and cost

Moved to ADR 0028.

Agent adapters

Moved to ADR 0017.

Agent definition files

Moved to ADR 0018.

Agent profiles and accounts

Moved to ADR 0019.

[account] in a definition file

Moved to ADR 0019.

resolve

Moved to ADR 0019.

Who does what

Moved to ADR 0019.

The node's profile file

Moved to ADR 0019.

Changing a machine's profiles

Moved to ADR 0019.

Starting an agent with a profile

Moved to ADR 0019.

A profile account's usage, sign-in and the account a hook reports

Moved to ADR 0019.

The platform layer

Moved to ADR 0005.

Resident process ownership

Moved to ADR 0006.

The pane holder

Moved to ADR 0010.

Pane records and reconcile

Moved to ADR 0011.

The node's holder panes

Moved to ADR 0012.

The core's own engine

Moved to ADR 0013.

A device on the core's own engine

Moved to ADR 0013.

Agents on the core's own engine

Moved to ADR 0013.

Importing a Herdr session into the core's own engine

Moved to ADR 0013.

Desk

Moved to ADR 0032.

Desk's commands

Moved to ADR 0032.

Bots

Moved to ADR 0023.

Herdr an earlier Hide left on a machine

Moved to ADR 0058.

hided and the WebSocket boundary

Moved to ADR 0009.

The daemon lives with its panes

Moved to ADR 0007.

The core's node id

Moved to ADR 0036.

A device's id

Moved to ADR 0036.

The core and its nodes

Moved to ADR 0036.

A device's ssh

Moved to ADR 0037.

WSL distributions as devices

Moved to ADR 0038.

A core on another machine

Moved to ADR 0039.

Splitting a moved core's two machines

Moved to ADR 0040.

The peer connection

Moved to ADR 0041.

Another machine's screen

Moved to ADR 0042.

Which connection may send what

Moved to ADR 0041.

A guest's panes on the host

Moved to ADR 0043.

Whose work is whose between machines

Moved to ADR 0044.

A guest's build on the host

Moved to ADR 0043.

A guest's hook entries

Moved to ADR 0043.

What a guest may take

Moved to ADR 0043.

A guest taken off the host

Moved to ADR 0043.

A guest node's events while its core is away

Moved to ADR 0043.

The two cores' stream

Moved to ADR 0041.

Switching a helper device to its machine's own Hide

Moved to ADR 0045.

Updating the core

Moved to ADR 0008.

A paired machine's core stays on

Moved to ADR 0008.

The terminal path

Moved to ADR 0014.

Agent labels in the core

Moved to ADR 0021.

Optional private features

The public workspace and the official free app do not link a Factory engine or expose Factory commands. A separate private repository keeps the removed implementation and internal development resources. There is no runtime replacement or Pro protocol in this release. The legacy store files are left where they are; their presence starts no engine. Memory retires its own worktrees through the ordinary Call::WorktreeRetire machine operation.

The mobile companion

Moved to ADR 0059.

Panes, tabs and the attach window in the web shell

Moved to ADR 0048.

Settings and workspace management in the web shell

Moved to ADR 0049.

Project guardrails

Moved to ADR 0049.

Workspaces in the web shell

Moved to ADR 0050.

The $HOME filesystem boundary

Moved to ADR 0052.

The checkout-root boundary and the Explorer frames

Moved to ADR 0053.

The Explorer, editor and viewers

Moved to ADR 0054.

Device file hosts and document saves

Moved to ADR 0047.

The install kit

Moved to ADR 0057.

The store of skills and MCP items

Moved to ADR 0057.

Device catalogs

Moved to ADR 0046.

Retiring Home

Moved to ADR 0055.

The iOS app host

Moved to ADR 0060.

The Android app host

Moved to ADR 0061.

The desktop host

Moved to ADR 0056.

The shortcut registry

Moved to ADR 0051.