Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
9794241
Fix the Software Factory interfaces in a new hide-factory crate
yansfil Oct 6, 2026
b41b903
Run Factory Tasks through the engine: state machine, DAG scheduling, …
yansfil Oct 6, 2026
8434b8b
Add the Factory's git, gh and verify adapters and the stage 2 summary…
yansfil Oct 6, 2026
bc84005
Run the Factory in the core and add the hide factory command
yansfil Oct 6, 2026
9efb568
Handle slow and refused worker starts and wake letters
yansfil Oct 6, 2026
d9124dc
Keep the Factory watch to what the inbox does not show
yansfil Oct 6, 2026
1c1f223
Default a Factory command to the caller's checkout
yansfil Oct 6, 2026
94280f2
Describe the Software Factory in its own guide
yansfil Oct 6, 2026
b8c556f
Hold a merge to the verified commit and pace CI reads
yansfil Oct 6, 2026
ecdc0d1
Wait on an approved prerequisite and close a cancelled Task's questions
yansfil Oct 6, 2026
9fc102b
Remove a finished worker's worktree from its own repository
yansfil Oct 6, 2026
d6e0373
Apply a re-added card and PRD once its scope change is approved
yansfil Oct 6, 2026
c1a2182
Run periodic checks on the watch cadence and watch at the new-Task cap
yansfil Oct 6, 2026
d35ac3d
Make every D-30 default settable, including the stall window
yansfil Oct 6, 2026
45f24f8
Keep judgment and letter bodies with their Task
yansfil Oct 6, 2026
2a421e2
Default a new Factory's workers to the runtime this machine has
yansfil Oct 6, 2026
093a9fa
Read a runtime's usage limit from the provider usage rows
yansfil Oct 6, 2026
777102c
Clear a finished Task's unread mark when a person opens it
yansfil Oct 6, 2026
3252ad6
List the Factory host in the resident work ledger
yansfil Oct 6, 2026
e515726
Start workers off the Factory host thread
yansfil Oct 6, 2026
a1688d9
Stop a verify run at a failed prepare step and ask again for an unnam…
yansfil Oct 6, 2026
1758af3
Keep a finished Task's worker a worker and put a stopped worker to sleep
yansfil Oct 6, 2026
f6c8923
Keep an outside-taken Task's worktree for the keep period from the ta…
yansfil Oct 6, 2026
9be5b03
Send a refused merge to a person, recheck before a manual merge, and …
yansfil Oct 6, 2026
e15a950
Push every GitHub report from the tick and merge only the verified co…
yansfil Oct 6, 2026
f9b8d13
Land a local revert only into a clean default branch
yansfil Oct 6, 2026
1104572
Decide CI only by named checks and take the required checks when none…
yansfil Oct 6, 2026
5acb7ee
Let an open pull request from a fork take no Task until it merges
yansfil Oct 6, 2026
067ed12
Hand a main recovery cut by a restart to a person
yansfil Oct 6, 2026
5951a8e
Keep review and person dependencies when a producer adds a card again
yansfil Oct 6, 2026
2b72da0
Run the restart, sleep-wake and runtime-switch recovery actions, and …
yansfil Oct 6, 2026
6ac886d
Cap a Task's reports and a verify run's output
yansfil Oct 6, 2026
6b84d24
Start an autonomy Task alone only when the intake review finds it fit…
yansfil Oct 6, 2026
60c56cc
Say the verify time cap covers the whole bundle
yansfil Oct 6, 2026
2d15fd3
Drop queued starts at shutdown, release abandoned starts, and hold a …
yansfil Oct 6, 2026
985e4d4
Count failed store writes, show them in status and log them from the …
yansfil Oct 6, 2026
874a497
Tell a timed-out factory command to check status before retrying
yansfil Oct 6, 2026
6900e59
Bind a worker's spawned agents and claimed panes to its worker role
yansfil Oct 6, 2026
316e930
Test the Factory judgment queue's order and per-Factory limit
yansfil Oct 6, 2026
65be37e
Test that a GitHub revert opens one pull request and merges it once a…
yansfil Oct 6, 2026
eb7318f
Let a worker finish past the report cap and bind no caller to a Task …
yansfil Oct 6, 2026
d64498c
Keep a relanding Task's restart and replay a spawn whose agent had no…
yansfil Oct 6, 2026
56b7b23
Ask a waiting merge again at its time and do not read its unnamed com…
yansfil Oct 6, 2026
057b6cd
Push a Task branch the remote deleted and stop a Task whose push is r…
yansfil Oct 6, 2026
3c2666d
Keep the outside read going past an unreadable held issue and let no …
yansfil Oct 6, 2026
e8ba27c
Adopt only a same-repository pull request as a Task's or a revert's
yansfil Oct 6, 2026
108d18d
Bind a caller through its ancestors' panes and let a caller whose lin…
yansfil Oct 6, 2026
733dc0e
Read only the tail of a capped verify log when cutting it
yansfil Oct 6, 2026
750738d
Scope recovery actions to the diagnosed Factory, say what sleep-wake …
yansfil Oct 6, 2026
332af05
Give an outside-taken Task with no worker its keep period, keep the f…
yansfil Oct 6, 2026
809b956
Format the review fixes
yansfil Oct 6, 2026
2a88be8
Read only the commit of an unnamed merge and cap it, back off only on…
yansfil Oct 6, 2026
1f2e63a
Keep every merge gate on an unnamed merge's retry and skip only the m…
yansfil Oct 6, 2026
af1b82d
Read an unnamed merge without merging again, keep an agent that ended…
yansfil Oct 6, 2026
7d3f843
Remove a finished Task's worktree only when clean and tell a person a…
yansfil Oct 6, 2026
939b97c
Name the GitHub account, repository and access at init and refuse wri…
yansfil Oct 6, 2026
02499ca
Say that only hide agent end ends an agent record in the lineage rule
yansfil Oct 6, 2026
aa9bfd4
Log a watch warning about a Task that moved after the board was read …
yansfil Oct 6, 2026
a0bcd9b
Keep an unnamed merge unnamed when reading it fails on a signal
yansfil Oct 6, 2026
6e34fde
Keep an agent that registered again without a parent below its worker
yansfil Oct 6, 2026
26c7860
Name reopening a pull request among a GitHub Factory's writes
yansfil Oct 6, 2026
6b1b1ab
Merge origin/main into the Software Factory stage 1 branch
yansfil Oct 6, 2026
b188d5d
Put a code beside every sentence the Factory summary carries
yansfil Oct 6, 2026
0668f2a
Tell a person to turn Hide AI on when a review is refused as disabled…
yansfil Oct 6, 2026
11ac5da
Apply a worker's same report again once its Task moved, and resolve d…
yansfil Oct 7, 2026
7e531eb
Hold the merge when a check fails with nothing to ask or cannot read …
yansfil Oct 7, 2026
6af707b
Read a person's first edit to an issue the Factory wrote against the …
yansfil Oct 7, 2026
d4150f5
Drop a judgment that answers after its Task was cancelled or finished
yansfil Oct 7, 2026
37ef611
Read the machine before a start only when a start can happen, and aga…
yansfil Oct 7, 2026
63c0638
Abort a revert that fails in the Factory's main worktree
yansfil Oct 7, 2026
8f541ad
Keep a card's external waits and open decisions when a re-add leaves …
yansfil Oct 7, 2026
31f7d90
Describe the code review fixes in the Factory guide
yansfil Oct 7, 2026
46a4801
Merge origin/main into the Software Factory stage 1 branch
yansfil Oct 7, 2026
3988c4e
Hold the merge only on merge checks, log why a check failed, read the…
yansfil Oct 7, 2026
4764713
Merge branch 'main' into prd/software-factory
yansfil Oct 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ members = [
"hide-kit",
"hide-agent-hooks",
"hide-ai",
"hide-factory",
"hide-memory",
"hide-platform",
"hide-project",
Expand Down Expand Up @@ -39,6 +40,9 @@ debug = "line-tables-only"
[profile.dev.package.hide-ai]
debug = "line-tables-only"

[profile.dev.package.hide-factory]
debug = "line-tables-only"

[profile.dev.package.hide-herdr-client]
debug = "line-tables-only"

Expand Down
12 changes: 10 additions & 2 deletions docs/AI_PROVIDERS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Background AI providers

`hide-ai/` is the one boundary through which a Hide feature asks a language model for something in the background.
Its consumers are the core's agent label analyzer (`herdr-core/src/labels/analyzer.rs`), Project Memory extraction under `hide-memory/`, and the Start dialog's worktree name; later features reuse the same boundary rather than a provider client of their own.
Its consumers are the core's agent label analyzer (`herdr-core/src/labels/analyzer.rs`), Project Memory extraction under `hide-memory/`, the Software Factory's judgments (see [The Factory's judgments](#the-factorys-judgments)), and the Start dialog's worktree name; later features reuse the same boundary rather than a provider client of their own.
This guide owns the boundary's rules; the code under `hide-ai/src/` and the tests under `hide-ai/tests/` are its executable authority.

## Ownership split
Expand Down Expand Up @@ -236,6 +236,14 @@ A request that completes under the cap clears the restart count; three consecuti
On a platform without the kernel query the measurement is `Unavailable`: the process caps are not enforced and the log line says `measurement=unavailable` rather than a zero.
The label worker treats `OverBudget` as an environmental failure: it keeps the goal, drops the turn's line and end, and asks again after ten minutes, the same as any other environmental failure (`AnalysisFailure::retry_after`).

## The Factory's judgments

The Software Factory asks for its intake review, drift check, natural-language checks, watch and environment diagnosis through `hide-ai`, and [factory.md](factory.md#intake-review-and-judgments) owns what each asks.
The Factory does not share the label analyzer's router: it has its own `AiRouter` (`herdr-core/src/ai.rs`, `factory_router`) and its own queue on a judgment thread, so a Factory request never waits behind a label and a label never waits behind a Factory request.
The queue's terms are one request in flight, intake reviews before every other judgment, and 16 waiting judgments per Factory; a request that does not fit, or that fails, is handed to a person and is never read as a pass.
Each request has a 180 second deadline and a schema version, and the router keeps its default caps.
Because the routers are independent, they share the account's usage and the machine's CPU but not a queue; label latency has to be measured with a Factory running under load before the two are called independent.

## Weekly usage display

The sidebar footer's Weekly Usage chips and popover ([UI_BEHAVIOR.md: Weekly usage](UI_BEHAVIOR.md#weekly-usage)) show a separate read-only capability owned by `herdr-core/src/usage.rs`.
Expand Down Expand Up @@ -338,7 +346,7 @@ The router emits `ai.attempt`, `ai.request.finished`, `ai.request.joined`, `ai.f
A line carries the request id, feature id, provider, outcome class, attempt, duration, input length, output tokens and schema version.
Every `ai.request.finished` of a provider that declares itself measurable (`AiBackend::measurable()`, today only codex, whose app-server is resident) also carries the app-server pid and the process measurement (`app_server_pid`, `descendants`, `rss_bytes`), or `measurement=unavailable` where the platform cannot measure it.
It never carries the prompt, the input, the generated text, a token, a file path from a transcript, or a provider thread id.
Hide's core writes the events of its own routers and backends (the label analyzer, the Settings probe and Project Memory) to its diagnostic log, `Logs/core.jsonl` beside `state.json`, as records with `component` `ai` and the event name as `kind`.
Hide's core writes the events of its own routers and backends (the label analyzer, the Factory's judgments, the Settings probe and Project Memory) to its diagnostic log, `Logs/core.jsonl` beside `state.json`, as records with `component` `ai` and the event name as `kind`.

## Known gaps

Expand Down
9 changes: 9 additions & 0 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,15 @@ Nothing runs under the runtime mutex: conversation reads run on the worker's rea

`herdr-core/src/labels/tests.rs` owns the behavior and `desktop/e2e/session-labels.spec.ts` proves it end to end; [status-model.md](status-model.md#task-identity) names the regression owners.

### The Factory host

The Software Factory's engine runs on its own thread, `herdr-core-factory`, beside the delivery worker and the label analyzer, its judgments run on a second thread, `herdr-core-factory-judge`, with a router of their own, and worker starts, which wait for Herdr, run on a third, `factory-starts`, so a start never holds a command or a worker's report.
The engine is the `hide-factory` crate, which does not know the runtime or Herdr; the host in `herdr-core/src/factory.rs` gives it a clock, the project's git and `gh`, the verify runner, and a worker port, and `runtime/factory.rs` holds the few places that take `Mutex<Runtime>` to read owned data or hand the core a request.
No file, SQLite, network or subprocess work happens under the runtime lock, and a command reaches the engine through a bounded queue instead of a call into the runtime.
`hided` routes `hide factory` over the pane-capability socket and refuses a device caller.
`Core::drop` stops the Factory host first, so its verify runs and external calls end with the daemon.
[factory.md](factory.md) owns the engine, the store, the roles and the read model.

### The mobile companion

Everything a phone touches lives in `hided/src/mobile/`, and `herdr-core` does not know phones exist; its only addition is `Runtime::remote_herdr_api`, which lends the Herdr API connection it already holds for a connected SSH device.
Expand Down
1 change: 1 addition & 0 deletions docs/PERFORMANCE_TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ The missing bounds and shutdown gaps below describe the current implementation;
| Phone connection/detail: `hided/src/mobile/phone.rs`, `mobile/mod.rs` | Live ping 20 s; open pane detail refresh 1 s. | Ping/check silence and read the open detail's pane/conversation. | 2 live connections per phone, 8 queued detail frames, 16 KiB inbound frame, 10 s send bound and 45 s silent limit. | Socket close/revoke/eviction ends its loop; dropping the open detail aborts its detail task. |
| Desktop daemon watch: `desktop/src/main/host.ts`, `spawn.ts` | Health recheck 2 s after each response; lost-daemon status poll 3 s after completion. | One HTTP health read or attach-only `hide status`; discovery replaces the watch. | One watch timer and one CLI child; health deadline 1.5 s, status deadline 5 s; 2 health misses mark lost. | Host quit or new discovery clears the timer; quit kills its in-flight CLI child and leaves detached daemons alone. |
| GitHub project re-read and store: `runtime/projects.rs` (`reread_stale_github`, `read_sighted_pull_requests`), `labels/worker.rs` (`note_sighted`), `github.rs`, `github_store.rs` | UI-attached gate, like the other capability readers: no read and no clock comparison while no window is attached. Then a comparison on each coordinator wake; a project is asked for again 5 min after its last answer, and not while its previous ask is unanswered; one `gh` pass per changed request. A pull request a local session printed is compared on the labels path whether or not a window is attached, inside the lock section that already hands the worker the pull request times, and only when a read found one; its `gh` read still waits for the gate. | Compare the instants of at most 64 projects (`GithubClock`), advance the generation of the due ones, and let the single reader read only those; after an answer that changed, copy the snapshot under the lock and write it on the store thread. Per transcript read, the worker checks each sighting against the times it holds (no lock); per exchange that carries sightings, the runtime looks each up in the times and its remembered set, and scans the read projects' first pull request and the navigator's panes once per new address; each clock comparison also drops the remembered addresses that grew old and the waiting projects no longer read (at most 64 entries). | 64 projects, the one in front and the ones a screen named first (a count past it is logged as `projects.over_limit` when it changes); at most 32 sightings wait in the worker between two exchanges, the newest kept and the rest logged as `read.sighted_capped`; at most 64 owned addresses remembered for 15 minutes or until an answer holds them, one past it not read and logged as `read.sighted_over_limit`; one reader worker; one store thread with one pending slot, so a burst writes the latest; the file is capped at 32 MiB on read. | The store's Drop joins its thread, so a queued write lands before quit; the reader keeps its existing `BackgroundRead` ownership. |
| Factory host: `herdr-core/src/factory.rs`, `hide-factory/src/engine.rs`, `verify.rs`, `project.rs` | One thread per Core waits on its command channel for up to 2 s; a command is answered at once, and the engine ticks at most every 2 s. Without a Factory store the wake does nothing until the first `hide factory` command opens one. Due inside a tick: the outside world every `outside_read_minutes` (2), running CI checks on one commit again after 30 s, the watch and periodic checks every `watch_interval_minutes` (30). | Pump worker letters, apply finished judgments and verification runs, expire questions, probe each running worker, read the outside world when due, start Tasks into free slots, settle sleeps, deliver woken letters and publish the open Factories with their stall windows. Every subprocess (`git`, `gh`, verify commands) and every SQLite write runs on the host or verify thread; each runtime call takes `Mutex<Runtime>` for owned data only. | 32 queued commands, one judgment in flight with 16 waiting per Factory, one verify run with 256 queued, one worker start with 16 queued on the starter thread, 16 held letters per woken worker, 256 pending CI commits, 20,000 events and 5,000 Tasks per Factory, worker slots by `max_workers` (5) per machine; kept judgment and letter records grow without a count cap (D-58, each cut at 256 KiB). | `FactoryHost::drop` shuts the engine thread down and joins it, and the engine thread closes the start queue and joins the starter after its running start, dropping the starts still queued; `JudgeThread::drop` cancels the provider and joins; a verify run's child is stopped through its stop flag. |
| Elapsed display clock: `web/src/components/elapsed.tsx` | One shared 1 s timer per window while subscribed. | Update the time and notify elapsed-span subscribers in memory; no core snapshot. | One timer; listener count has no fixed numeric cap and fan-out follows the mounted elapsed spans. | Last unsubscribe clears the timer; window destruction ends it. |

Worktree, GitHub and disk readers also run on changed explicit requests; those requests are not extra permanent timers (`worktrees.rs`, `github.rs`, `disk.rs`).
Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ A document's location or an old PRD citation does not make it current authority.
| Local agent mailbox, safe prompt intake, durable delivery and parent inactivity watches | [delivery.md](delivery.md) | `herdr-core/src/delivery/`, `runtime/delivery.rs`, `hided/src/delivery_cli.rs`, `hide-agent-hooks/src/delivery.rs`, `hide-session/src/session_activity.rs`, `hide-host/src/{protocol,serve}.rs` |
| What Hide installs on each machine (the install kit): the `hide` link, the hook entries, the seven agents' skill, guidance hook and Herdr integration, the retirement stage and the one-time retirement of thirteen former agents, on this Mac and every device, with Reinstall and device removal, and the retirement of the old labels plugin | [ARCHITECTURE.md: The install kit](ARCHITECTURE.md#the-install-kit), [INSTALL.md: What the first launch installs](INSTALL.md#what-the-first-launch-installs) | `hide-kit/` (`src/coordination_retirement.rs` retires the former coordinator, `src/labels.rs` retires the labels plugin, `src/retired_agents.rs` the thirteen former agents, `src/herdr_integration.rs` Herdr's integrations), `hide-agent-hooks/src/codex_daemon.rs`, `hide-host/src/kit.rs`, `herdr-core/src/{kit.rs,runtime/kit.rs,codex_launch.rs}`, `remote/host.rs` payload, `kit_check`, `kit_reinstall` and `kit_agent_set` events, `DeviceSnapshot.kit`, `hide-kit/src/{agents,agent_kit}.rs` (the adapter table, detection and the skill stub), `hide-agent-hooks/src/guidance.rs`, the first-run agent choice (the `agent_onboarding_apply` event, `UiState.agent_onboarding`, the kit record's `awaiting_choice`, `web/src/AgentOnboarding.tsx`), `desktop/e2e/{device-kit.spec.ts,device-home.ts}` |
| What differs between macOS, Linux and Windows, written once: the local stream under the Herdr client, the child-start helper and pid questions, the private files, locks, atomic replacement, links, file identity and disk space every crate used to answer for itself, folder watching, and where the account's things live | [ARCHITECTURE.md: The platform layer](ARCHITECTURE.md#the-platform-layer) | `hide-platform/` (`ipc`, `process`, `fs`, `watch`, `host`), `hide-platform/tests/` (run on all three systems by `.github/workflows/os-contract.yml`), `hide-herdr-client/tests/real_herdr.rs` |
| The Software Factory: its engine, the SQLite store, Task states and the dependency graph, roles, the `factory:<id>` recipient, worker lifecycle, judgments, verification, merge and revert, outside work, environment rules, the `hide factory` command and the `FactorySummary` and `TaskDetail` read model | [factory.md](factory.md) | `hide-factory/`, `hide-factory/tests/{engine,github,local_git}.rs`, `herdr-core/src/{factory.rs,runtime/factory.rs}`, `hided/src/factory_cli.rs` |
| Shared Herdr socket requests and event subscriptions | [Herdr wire boundary](ARCHITECTURE.md#the-herdr-wire-boundary) | `hide-herdr-client/`, `herdr-core/src/wire.rs`, plugin transports |
| Sidebar PR details, CI rollup, refresh and failure states | [status-model.md: GitHub status](status-model.md#github-status-in-the-workspace-row) | `github.rs`, `runtime.rs`, `web/src/sidebar.tsx` |
| Agent status, semantic colors, Workspace aggregation, and read/unread policy | [status-model.md](status-model.md) | `sidebar.rs`, `web/src/agentRow.ts`, `web/src/sidebar.tsx`, status tests |
Expand Down
4 changes: 2 additions & 2 deletions docs/agent-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Nothing else is read from the command but the helper's quoted path, and the help

## What the hook returns and reports back

On `SessionStart`, the helper writes one runtime JSON envelope whose `hookSpecificOutput.additionalContext` combines the existing one-line worktree-purpose instruction with the bounded Project Memory capsule when Memory is enabled.
On `SessionStart`, the helper writes one runtime JSON envelope whose `hookSpecificOutput.additionalContext` combines the worktree-purpose instruction, which also tells the agent to run `hide factory add` to put work into a Factory instead of adding a GitHub label (see [factory.md](factory.md)), with the bounded Project Memory capsule when Memory is enabled.
The same envelope adds Workspace commands only after `hide workspace bootstrap` and `hide workspace info` confirm a renderer-connected Workspace for the caller and report its actual capabilities.
The probe does not need a pane id: the daemon binds a caller inside a Herdr pane to that pane, and any other local caller, such as a tool shell or hook inside Codex's shared app-server daemon or a plain terminal, to the registered checkout holding its cwd (`docs/ARCHITECTURE.md`, the Workspace CLI).
The guidance names that checkout path, so a session can read which Workspace its commands reach.
Expand Down Expand Up @@ -183,7 +183,7 @@ Two pieces are written per agent into the agent's own files, and nothing else; a
- The guidance hook, for the agents below marked as done.
It is one `SessionStart` entry, in the agent's own format, whose command is `hide-agent-hooks hook --runtime <agent id> --event SessionStart`.
`hide-agent-hooks` writes it (`src/guidance.rs`) and nothing else does, under the marker `hide-guidance@1` that proves an entry is Hide's and separates a current one from an older one.
Its output is the one-line worktree-purpose instruction, one fixed line that points at `hide browser help`, and the live Workspace guidance when the daemon answers, in the field the agent documents.
Its output is the worktree-purpose instruction, including the sentence that points at `hide factory add`, one fixed line that points at `hide browser help`, and the live Workspace guidance when the daemon answers, in the field the agent documents.
It prints no Memory capsule, because the Memory receipt is read from Claude and Codex transcripts, and it keeps no counters and writes no file.
A second delivery of the same session therefore changes nothing: the output is a pure function of the daemon's answer, and a test runs the hook twice and compares.

Expand Down
11 changes: 10 additions & 1 deletion docs/delivery.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Capacity errors retain existing letters and watches.
| Pending delivery deadline | 60 minutes, then `undelivered`; visible through CLI |
| Quiet period | 30 seconds since hide last routed a key and since Herdr last changed the pane's status |
| Doorbell reservations per letter | Three total, persisted across restart |
| First inactivity warning | 20 minutes without activity |
| First inactivity warning | 20 minutes without activity; the Factory's stall window (30 minutes by default) when the observer is a Factory |
| Second inactivity warning | First-warning time plus 60 minutes, at most two warnings per episode |
| Unanswered parent warning notification | First-warning time plus 60 minutes, once per native target and inactivity episode |
| Intent retention and finished-letter cleanup | 30 days; open letters remain |
Expand Down Expand Up @@ -156,6 +156,15 @@ A done target remains watched until exit, explicit stop or a completion report.
The first actual post-flush confirmation records `hook_confirmed: true` and ends a matching sender-parent watch for `hide request send --kind report`, even after acknowledgement, cancellation or the delivery deadline; replay after restart preserves a watch explicitly started after that receipt.
A report from an unwatched sender is an ordinary letter; the parent can restart a watch explicitly.

## The code-owned recipient `factory:<id>`

Each open Factory is a code-owned recipient named `factory:<factory id>`, and [factory.md](factory.md#the-mailbox-recipient-factoryid) owns how it is used.
Only the Factory's engine sends as it, and the ledger accepts that authority only while the Factory exists and is open.
A pane or agent may send to it and may name it as a watch observer, and only while the Factory exists and is open; a pane or agent name that starts with `factory:` is refused at registration.
A letter to it is never pasted into a composer and never rings a doorbell: the engine reads it, confirms it and, for a request or block, replies with its answer.
The human-notice claim skips a letter whose recipient is code-owned.
A watch observed by a Factory warns after that Factory's stall window (`stall_minutes`, 30 by default) rather than 20, and the engine acts on the first warning.

## Agent registration and spawning

`hide agent register [--check]`, `list`, `show` and `end` preserve the caller surface used by dispatch and Fork.
Expand Down
Loading
Loading