@hearsay-tools/squawk 0.18.0-pr3622.6516.2 → 0.18.0-pr3627.6560

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +12 -422
  2. package/dist/automations/automation-cli.js +5 -4
  3. package/dist/automations/automation-cli.js.map +1 -1
  4. package/dist/automations/prompts.js +0 -1
  5. package/dist/automations/prompts.js.map +1 -1
  6. package/dist/automations/scheduler.js +3 -4
  7. package/dist/automations/scheduler.js.map +1 -1
  8. package/dist/automations/service.js +2 -1
  9. package/dist/automations/service.js.map +1 -1
  10. package/dist/automations/task-template.js +0 -5
  11. package/dist/automations/task-template.js.map +1 -1
  12. package/dist/automations/tool-adapter.js +2 -1
  13. package/dist/automations/tool-adapter.js.map +1 -1
  14. package/dist/cli-dispatch.d.ts +1 -1
  15. package/dist/cli-dispatch.js +1 -2
  16. package/dist/cli-dispatch.js.map +1 -1
  17. package/dist/contract/automation-requests.d.ts +3 -6
  18. package/dist/contract/automations.d.ts +6 -6
  19. package/dist/contract/index.js +9 -8
  20. package/dist/contract/runs.d.ts +0 -5
  21. package/dist/data-gitignore.js +0 -2
  22. package/dist/data-gitignore.js.map +1 -1
  23. package/dist/delegation/cli.js +6 -11
  24. package/dist/delegation/cli.js.map +1 -1
  25. package/dist/home/migrate.js +18 -4
  26. package/dist/home/migrate.js.map +1 -1
  27. package/dist/managed-install/launcher.d.ts +2 -0
  28. package/dist/managed-install/launcher.js +5 -1
  29. package/dist/managed-install/launcher.js.map +1 -1
  30. package/dist/project-migration/auto.d.ts +0 -1
  31. package/dist/project-migration/auto.js +26 -16
  32. package/dist/project-migration/auto.js.map +1 -1
  33. package/dist/project-migration/engine.d.ts +8 -0
  34. package/dist/project-migration/engine.js +1 -1
  35. package/dist/project-migration/engine.js.map +1 -1
  36. package/dist/runs/retention.js +23 -7
  37. package/dist/runs/retention.js.map +1 -1
  38. package/dist/runs/run-database-version.d.ts +3 -1
  39. package/dist/runs/run-database-version.js +13 -1
  40. package/dist/runs/run-database-version.js.map +1 -1
  41. package/dist/runs/run-database.js +2 -2
  42. package/dist/runs/run-database.js.map +1 -1
  43. package/dist/runs/run-row.d.ts +3 -0
  44. package/dist/runs/run-row.js +10 -2
  45. package/dist/runs/run-row.js.map +1 -1
  46. package/dist/runs/store.js +2 -2
  47. package/dist/runs/store.js.map +1 -1
  48. package/dist/serve-command.d.ts +1 -1
  49. package/dist/serve-command.js +1 -6
  50. package/dist/serve-command.js.map +1 -1
  51. package/dist/server/project-context.js +4 -9
  52. package/dist/server/project-context.js.map +1 -1
  53. package/dist/server/server.d.ts +0 -20
  54. package/dist/server-install/group-migrate.js +12 -15
  55. package/dist/server-install/group-migrate.js.map +1 -1
  56. package/dist/server-install/platforms/ubuntu-vps-migration.js +1 -14
  57. package/dist/server-install/platforms/ubuntu-vps-migration.js.map +1 -1
  58. package/dist/workflows/run/launch-context.js +0 -2
  59. package/dist/workflows/run/launch-context.js.map +1 -1
  60. package/dist/workflows/run/run-settlement.d.ts +4 -0
  61. package/dist/workflows/run/run-settlement.js +24 -2
  62. package/dist/workflows/run/run-settlement.js.map +1 -1
  63. package/dist/workspace/projects.d.ts +1 -2
  64. package/dist/workspace/projects.js +1 -2
  65. package/dist/workspace/projects.js.map +1 -1
  66. package/package.json +5 -4
  67. package/scripts/benchmark-worktree-retention.ts +155 -0
  68. package/web/dist/assets/{activity-motion-Cd6HKRn5.js → activity-motion-CEnf2rDh.js} +2 -2
  69. package/web/dist/assets/{activity-route-Dgjznc_j.js → activity-route--Qj4NT9h.js} +1 -1
  70. package/web/dist/assets/{agent-accounts-WZgtbThS.js → agent-accounts-BxpWcFS3.js} +1 -1
  71. package/web/dist/assets/attention-BDa7opY9.js +1 -0
  72. package/web/dist/assets/{commit-diff-panel-Bsf9f2Cd.js → commit-diff-panel-DOgakNKv.js} +1 -1
  73. package/web/dist/assets/{diff-BB8od2CB.js → diff-MoyKcT8Q.js} +2 -2
  74. package/web/dist/assets/{diff-view-Bbf1guXZ.js → diff-view-BFQcOCEf.js} +1 -1
  75. package/web/dist/assets/{file-preview-DYaWK5Hi.js → file-preview-BancpZHA.js} +1 -1
  76. package/web/dist/assets/{git-toolbar-CPxEOnk6.js → git-toolbar-ClMasBRM.js} +1 -1
  77. package/web/dist/assets/{github-4ILuqTHS.js → github-BVZ01nJq.js} +1 -1
  78. package/web/dist/assets/{global-activity-route-BaL40ikO.js → global-activity-route-DTgywy--.js} +1 -1
  79. package/web/dist/assets/index-CsOa03VW.js +17 -0
  80. package/web/dist/assets/{index-Bv_JpzCB.css → index-DTIPJ2b8.css} +1 -1
  81. package/web/dist/assets/{preview-pane-connected-CVIYmAKK.js → preview-pane-connected-B5PCWA9a.js} +2 -2
  82. package/web/dist/assets/{project-router-_4jaKCY-.js → project-router-CiB1O_5A.js} +1 -1
  83. package/web/dist/assets/{project-scope-context-BwaC58sQ.js → project-scope-context-CSPQyWoO.js} +1 -1
  84. package/web/dist/assets/{prompt-template-menu-Q6yvBBX2.js → prompt-template-menu-VwBcsbqE.js} +1 -1
  85. package/web/dist/assets/{queries-jqgF_s0L.js → queries-pj368bmB.js} +1 -1
  86. package/web/dist/assets/{reference-chip-BFXq2y0V.js → reference-chip-DT-_ninM.js} +1 -1
  87. package/web/dist/assets/{repo-git-BXcJkKGQ.js → repo-git-7KuJaDRk.js} +1 -1
  88. package/web/dist/assets/{report-reader-B2xFHTUH.js → report-reader-CgY75QM2.js} +1 -1
  89. package/web/dist/assets/reports-CxTUchWh.js +1 -0
  90. package/web/dist/assets/run-header-BcX23gw7.js +2 -0
  91. package/web/dist/assets/{skills-C1zxbSly.js → skills-Dnrta_-m.js} +1 -1
  92. package/web/dist/assets/{tab-link-BmBr8sDS.js → tab-link-BPBiho7-.js} +1 -1
  93. package/web/dist/assets/{task-changes-DDHU2MYs.js → task-changes-C6sDd3Le.js} +1 -1
  94. package/web/dist/assets/{task-commits-ntmx-1wH.js → task-commits-CQHxnFJ5.js} +1 -1
  95. package/web/dist/assets/{task-files-DlUIW3P5.js → task-files-DK8Demuc.js} +1 -1
  96. package/web/dist/assets/{task-github-item-Qg7SGfny.js → task-github-item-DgmmFFtN.js} +1 -1
  97. package/web/dist/assets/{task-thread-BKdI_JXT.js → task-thread-Dg9VWJq6.js} +6 -6
  98. package/web/dist/assets/{thread-state-D8yAejJN.js → thread-state-DIMUAyFk.js} +1 -1
  99. package/web/dist/assets/{use-desktop-DpH_9i2n.js → use-desktop-Bq_Qh5ur.js} +1 -1
  100. package/web/dist/assets/{use-hand-to-agent-state-DSRe0E7u.js → use-hand-to-agent-state-D-yaVRRx.js} +1 -1
  101. package/web/dist/assets/{useInfiniteQuery-BK0ElV__.js → useInfiniteQuery-Q8eFXz-L.js} +1 -1
  102. package/web/dist/assets/useQuery-BoLjCS2U.js +1 -0
  103. package/web/dist/assets/{workflows-CK12d25D.js → workflows-W_uriBcj.js} +2 -2
  104. package/web/dist/assets/{ws-CayNmoGi.js → ws-B-tB133E.js} +1 -1
  105. package/web/dist/index.html +13 -13
  106. package/web/dist/assets/attention-C_kiJ1bk.js +0 -1
  107. package/web/dist/assets/index-BXr2mRSZ.js +0 -17
  108. package/web/dist/assets/reports-JoaY6sCT.js +0 -1
  109. package/web/dist/assets/run-header-4CYT6aL6.js +0 -2
  110. package/web/dist/assets/useQuery-Qq5WoH8B.js +0 -1
package/README.md CHANGED
@@ -70,24 +70,7 @@ Click any thumbnail for the full-size screenshot.
70
70
 
71
71
  ---
72
72
 
73
- ## Generated inbox removed
74
-
75
- The generated follow-up Inbox is removed in the next breaking minor release, **0.17.0**
76
- (hearsay-tools/cezarion#1543). There is no deprecation window for this removal.
77
- Remove `CEZ_FOLLOWUPS` from your launch environment; it no longer enables anything.
78
- Agents receive no suggestion-generation instructions or usable `CEZ_TODOS_FILE`.
79
- The todo API routes, `todos` SSE events, `capabilities.followups`, and task-creation
80
- fields `generateFollowups` and `todoId` are removed. Remove those fields from scripts
81
- and automation templates. Historical run records remain readable and resumable.
82
- Upgrades leave `.ai/cezar/todos.json` untouched. If that file exists, export its original
83
- contents from the project directory with:
84
- ```bash
85
- cp .ai/cezar/todos.json ./cezar-followups-export.json
86
- ```
87
- Old Inbox URLs show this guidance. Create an ordinary task with **New task**, or use
88
- an issue-authoring skill to record work in your tracker. Task **Notes**, the rolling
89
- handoff journal, **Continue**, live follow-up messages, and `hsq message inbox` remain
90
- available.
73
+
91
74
  ## What Squawk does best 🏆
92
75
 
93
76
  **On your phone:** open your HTTPS cockpit in the phone's browser and add it to
@@ -374,11 +357,11 @@ The moves that make the cockpit worth the browser tab:
374
357
  - 🗂️ **Every project in one cockpit.** One `hsq serve` hosts every repo you
375
358
  register; the desktop rail switches between them, and **All tasks** shows every
376
359
  project's tasks in one table. See
377
- [Multiple projects, one cockpit](#multiple-projects-one-cockpit).
360
+ [Multiple projects, one cockpit](docs/areas/workspace-registry.md#multiple-projects-one-cockpit).
378
361
  - 👥 **Owned workers.** A task's agent can spawn its own tracked workers — on the
379
362
  same or another runner — message them, and collect their diffs; you still review
380
363
  the result. Each task has an **Allow Squawk workers** switch, on by default. See
381
- [Owned workers](#owned-workers).
364
+ [Owned workers](docs/workers.md#owned-workers).
382
365
  - 📱 **Runs on your coding server, drives from your pocket.** The cockpit is a
383
366
  responsive web app streaming over SSE, so the box running Squawk can be a
384
367
  **VPS, cloud, or dedicated server** you never sit in front of. Point a browser
@@ -394,7 +377,7 @@ Task and project views share one browser window and live updates over Server-Sen
394
377
  | View | What's in it |
395
378
  |---|---|
396
379
  | **Tasks** | Every task with its status, live event stream (agent text · tool calls · tool results · pasted/generated screenshots and file attachments), tokens and cost. Continue, cancel, open in terminal (`claude --resume`), review the diff, or push a draft PR. |
397
- | **All tasks** | Every *registered project's* tasks in one table, filtered and grouped by tag, project, status or workflow — see [Grouping connected repositories](#grouping-connected-repositories-tags-and-the-all-tasks-page). Appears once a second project is registered. |
380
+ | **All tasks** | Every *registered project's* tasks in one table, filtered and grouped by tag, project, status or workflow — see [Grouping connected repositories](docs/areas/workspace-registry.md#grouping-connected-repositories-tags-and-the-all-tasks-page). Appears once a second project is registered. |
398
381
  | **Activity** | What each active task and worker does or waits for right now, and the open requests between tasks as lines. Live without a reload. **All projects** shows one panel per project. |
399
382
  | **Git** | In **More**. Branch, working-tree status, diff vs HEAD, recent commits (click one for its inline patch + GitHub link), and the configurable base branch that worktrees fork from and PRs target. |
400
383
  | **GitHub** | Open issues and PRs of the repo's origin, read through your logged-in `gh`. Hand an issue straight to the agent — pick a workflow and skills, one click runs it. |
@@ -416,311 +399,11 @@ bypasses the server cache immediately and refreshes the selected thread too.
416
399
 
417
400
  ## Multiple projects, one cockpit
418
401
 
419
- One `hsq serve` hosts **every repo you work in**, not just the one you started
420
- it in. Each repo Squawk boots in registers itself in a per-user registry at
421
- `<config>/config.json` — the workspace file that also holds the global knobs
422
- (the parallel cap, the memory ceiling, the browse root, and the checkout root). Nothing is added to
423
- the repo: per-project state stays in that repo's `.ai/squawk/` (or `.ai/cezar/`
424
- until the project moves).
425
-
426
- Every view is project-scoped:
427
-
428
- ```
429
- /p/<projectId>/ tasks · activity · git · github · skills · workflows · reports · settings
430
- ```
431
-
432
- `<projectId>` is a slug derived from the folder name (`my-app`, then `my-app-2`
433
- on a collision), and `/p/default/…` always means the project Squawk was started
434
- in. The desktop rail selects the project. Its sidebar shows the project header,
435
- view tabs and task list, ordered **Needs you → Finished → Working**.
436
- Pins stay first within their status section and do not spend the default ten-row
437
- budget; Finished takes priority over Working when that budget fills up. Each
438
- section starts expanded and folds independently using its heading (click, Enter
439
- or Space). Folding is remembered per browser, project and section, separately
440
- from folding a project. Folded headings keep full task counts and attention
441
- indicators, including tasks outside the visible row limit. These controls work
442
- in the mobile drawer too. **Archive all** appears only on Finished and archives
443
- all eligible unpinned tasks, including hidden rows; individual archive actions
444
- and Undo remain available. Archived keeps its existing history view.
445
- The view tabs are Tasks, Activity, GitHub, Skills and Settings. More views holds Git,
446
- Workflows and Reports, and Automations when enabled. The project menu
447
- offers Mark all read and project settings; local mode also offers Open in and
448
- Copy path. Active/Archived remains below the Tasks heading. The new-task
449
- composer names the project it will run in.
450
-
451
- **Adding a project** — the **+** button on the desktop rail (or in the mobile
452
- navigation drawer):
453
-
454
- - ✨ **New project…** creates a git repository with one empty commit in the checkout
455
- root and registers it. Optionally — only when you switch it on — it also creates a
456
- **private** GitHub repository under your account or one of your organizations, empty or
457
- from a GitHub template. If GitHub setup fails after the repository exists, the local
458
- project is kept and the dialog shows the command that finishes it. A hosted cockpit
459
- creates local projects only.
460
- - 📂 **Open local folder…** browses from the configured browse root
461
- (**Settings → Projects**, default `~/`) in a folder picker and
462
- registers the folder you pick.
463
- - ⬇️ **Clone from GitHub…** clones with your logged-in `gh` into the checkout
464
- root (**Settings → Projects**, default `~/cezar/projects`) with live progress,
465
- then registers the clone. Close the dialog and the clone is killed and its
466
- partial directory removed. For a SAML-protected organization, follow **Authorize
467
- this GitHub organization**, authorize in GitHub, then return to retry once (or
468
- choose **Retry clone**). Original errors remain available under **Error details**.
469
- Clones use HTTPS and save the GitHub CLI credential helper in the new repository
470
- so later pushes use the same organization grant, even if `gh` prefers SSH.
471
-
472
- Removing a project (**Settings → Projects**) drops the registry entry only — the
473
- repo and its `.ai/cezar/` are never touched, so re-adding it later finds all its
474
- tasks intact. The project Squawk is currently serving can't be removed: it
475
- re-registers itself at the next start.
476
-
477
- **From the terminal** — the same registry, no cockpit required (handy over ssh):
478
-
479
- ```bash
480
- hsq backup list [<file>] # list rotating config.json / agent-accounts.json backups
481
- hsq backup restore <file> [--at <time>] # restore JSON only; account folders are unchanged
482
- hsq projects # list: id, branch or status, path, tags
483
- hsq projects add ~/code/api # register a folder (defaults to the current repo)
484
- hsq projects remove api # drop the registry entry; the repo is untouched
485
- hsq projects tag api storefront backend # set the grouping tags (no tags clears them)
486
- ```
487
-
488
- These read and write `<config>/config.json` directly, so they work with the
489
- server stopped, and `HSQ_HOME` (`CEZ_HOME` fallback) selects which workspace they operate on.
490
-
491
- Settings split along the same line: **General** (the project's folder, its
492
- registry facts, its parallel-task ceiling, and Remove), **Agents**, **Agent config**,
493
- **Worktrees**, **Sidebar** and **Prompt templates** describe one
494
- repo and live under `/p/<projectId>/settings`; **Appearance**,
495
- **Notifications**, **Resources**, **Skills**, **Agent accounts** and **Projects**
496
- are yours or the machine's and live at `/settings/global`.
497
-
498
- **Settings → Sidebar** controls this project's task rows on desktop and mobile.
499
- Set **Overall**, **Needs You**, **Finished**, and **Working** to a positive whole
500
- number or **Unlimited**. Defaults are 10 overall and Unlimited for each section.
501
- The overall budget is allocated in section order (Needs You, Finished, Working),
502
- and each section must also fit its own limit. Unlimited removes only its selected
503
- constraint. Pinned rows and groups containing pins bypass both budgets; a grouped
504
- task counts as one row. Archived uses only the overall limit, with no pin exemption.
505
- Save applies the preferences to this project and keeps them after a reload.
506
- Refreshed preferences update an untouched form; unsaved edits stay in place.
507
- Malformed stored sidebar limits fall back field by field to these defaults,
508
- while valid limits and unrelated preferences are preserved.
509
-
510
- On desktop, Settings replaces the sidebar task list with two groups: **This project**
511
- and **Global · every project**. Each group includes General and its available sections;
512
- the current section is highlighted, and the main page shows its content. On mobile,
513
- the section picker and General page's section cards provide navigation.
514
-
515
- The GitHub sidebar groups **Issues** (Assigned to me, No task yet, Has a task,
516
- All open) and **Pull requests** (Review requested, Mine, Checks failing, All open).
517
- Selecting a filter updates the URL, so reloading keeps that selection. The issue
518
- list, detail pane and Hand to agent action stay in the main area. On mobile, the
519
- GitHub tab opens the filter screen; selecting a row opens its list.
520
-
521
- Has a task and No task yet use issue references from this project's non-archived
522
- tasks, excluding references to other repositories. The list loads 50 rows at a time
523
- and loads the next page as you scroll toward its end. The tabs and All open show
524
- GitHub's exact open totals. A preset count shows a `+` while more pages remain
525
- unloaded, and a search count shows one when the search reaches its result limit;
526
- an unavailable count is not shown as zero. Filtering by search, label, assignee or
527
- board narrows the loaded rows; while it is on, the next page loads only when you press
528
- Load more.
529
-
530
- The `body` field on `GET /api/v1/github` list rows is deprecated. It is still sent,
531
- and a later minor removes it; read an item's body from the comments route's `detail`. Views without their own navigation still show tasks in the sidebar.
532
-
533
- Open an issue to see **Linked tasks (N)** beneath its heading. Each row opens a task
534
- in the current project and shows its title, status and date, newest first. Archived
535
- tasks remain listed with an **Archived** label, so diagnosis and implementation
536
- sessions are both reachable.
537
-
538
- The Git sidebar lists **Task worktrees** that still exist on disk, including retained
539
- worktrees from finished tasks. Each row shows its branch, task title, status and
540
- available diff counts, and opens that task's Changes tab. Reclaimed worktrees disappear
541
- from the list. Changes, Commits and Branches remain tabs in the main repository header.
542
- On mobile, Git sits in the More sheet and opens the worktree list; **Open repository** opens the repository
543
- view, and **Back to worktrees** returns to the list.
544
-
545
- ### Grouping connected repositories: tags and the All tasks page
546
-
547
- Work rarely stops at a repo boundary. A storefront is an API, a web app and a
548
- design system; a platform is a handful of services plus the infra that runs
549
- them. **Tags** are how you say so, and **All tasks** is where saying so pays off.
550
-
551
- **Tag a repo** in **Settings → Projects**: type into the *Tags* cell on its row
552
- and press Enter (comma works too; the × on a chip, or Backspace in an empty
553
- field, removes one). The field **autocompletes from the tags already used in the
554
- workspace** — click the field to see them all, arrow keys and Enter to pick —
555
- which is what keeps the second repo landing on the first one's spelling instead
556
- of inventing `store-front` next to `storefront`. Anything not on the list is
557
- just typed. A tag is a free-form label — `storefront`, `infra`, `client-acme` —
558
- and a project can carry several, because a repo can belong to more than one
559
- piece of work. Tags are trimmed, deduplicated case-insensitively (`API` and
560
- `api` are one tag) and stored in `<config>/config.json` beside the rest of the
561
- registry, so they are yours and this machine's, never something added to the
562
- repo.
563
-
564
- **All tasks** — the layers icon on the desktop rail, `/tasks`, or `⌘K → All tasks` —
565
- then shows every registered project's work in one table:
566
-
567
- - **Filter** by tag, status and workflow. Tags are one-click chips; status and
568
- workflow are searchable multi-selects. Every facet ORs inside itself and ANDs
569
- across, so *"anything running or waiting in storefront or infra"* is one set
570
- of clicks. Each option carries how many tasks it would leave, so a filter that
571
- would empty the table says so before you click it. The search box matches
572
- title, project, workflow, branch and tags.
573
- - **Group by** tag, project, status or workflow — click the pressed one again to
574
- ungroup. Grouping by tag is the reason tags exist: three repos tagged
575
- `storefront` become one section, and a repo tagged twice appears under both —
576
- it genuinely belongs to both.
577
-
578
- The filters, the grouping and the Active/Archived tab live in the **URL**, so a
579
- filtered view survives a refresh, pastes into a chat, and sits in a bookmark —
580
- `/tasks?tag=storefront&status=running&group=tag` is a link to exactly what you
581
- were looking at. Only what you changed shows up: Active is the default, so the
582
- Archived view is `?archived=1` and a normal link carries no key for it.
583
-
584
- Each row shows **every** PR and issue it references — a task opened on an issue
585
- that landed a PR shows both — plus its cost and live CPU/memory, and can be
586
- marked **read/unread** (the eye) or **archived** (or restored) right there. Every task title, project name and project group heading links into that
587
- project, so the thread, its diff and its worktree are one click away and stay
588
- exactly where they were. Returning to a long thread restores its saved row measurements
589
- once the replay has rebuilt the same ordered messages, keeping the same content in view.
590
- Scrolling, jumping to the latest message, or loading different history takes ownership
591
- from that restoration; a thread left at its live tail follows the current tail.
592
-
593
- There is deliberately **no project filter**: narrowing this page to one project
594
- is that project's own Tasks page, which is a better version of the same answer
595
- (live updates, the full column set, the composer). So picking a project *leaves*
596
- for it rather than turning the global view into a worse local one.
597
-
598
- Nothing else in Squawk reads tags, on purpose: a tag is a lens, not a permission,
599
- a queue or a routing rule. Removing one changes what you see and nothing else.
600
-
601
- > The page reads a workspace-wide index capped at the newest 200 tasks per
602
- > project — it says so, and names the projects it capped, rather than showing a
603
- > short list as if it were complete. Older tasks are always in that project's own
604
- > Tasks page.
605
-
606
- **Old page URLs keep working.** Every unprefixed page path — `/`, `/tasks/<id>`,
607
- `/settings` — still answers, bound to the project Squawk was started in; the
608
- cockpit redirects flat paths to their `/p/<boot>/…` twin, so existing bookmarks
609
- need no change. The HTTP API is the exception: it moved to
610
- `/api/v1/…` (see the CHANGELOG), so a script that calls it needs the extra
611
- segment.
612
-
613
- > **Hosted cockpit?** The folder picker is confined to the independent browse
614
- > root. Set `HSQ_BROWSE_ROOT` (`CEZ_BROWSE_ROOT` fallback) narrowly before first boot (or save it in
615
- > **Settings → Projects**) when a remote viewer should not enumerate the host's
616
- > whole home. Clones continue to use the separate checkout root.
617
-
618
- ---
402
+ See [Multiple projects, one cockpit](docs/areas/workspace-registry.md).
619
403
 
620
404
  ## Waiting for PR checks, merges and timers
621
405
 
622
- An agent waits on something outside its turn with `cezar_wait`. With `kind: "pr"` and
623
- a GitHub PR URL in `pr`, Squawk watches the PR outside the model: its checks
624
- (`until: "checks"`, the default), its eventual merge (`until: "merge"`), or a merge
625
- the agent has requested (`until: "merge_or_blocked"`). The last target wakes when
626
- the PR merges, closes, conflicts, or is neither queued nor scheduled for auto-merge.
627
- It includes any known queue-removal or auto-merge-disable reason. A pending queue
628
- slot or enabled auto-merge keeps it open. The ordinary merge target ignores queue
629
- removal; use `wake_on_conflict: false` for a dependency wait that also ignores
630
- conflicts. Only `merged` confirms success. The optional
631
- `timeout_seconds` defaults to 1,800 and accepts 1–7,200. With `kind: "timer"`,
632
- `seconds` (60–7,200) and an optional `note`, Squawk wakes the agent at that time and
633
- hands the note back. No authored configuration or worker delegation permission is
634
- needed. A PR wait requires `gh`, access to the repository, and a supported GitHub
635
- host; GitHub Enterprise hosts must already be recognized by the forge/auth
636
- configuration. Tool startup itself makes no GitHub request. With **Monitoring
637
- wake-up** turned off in **Settings → Resources**, `cezar_wait` refuses a timer
638
- (`timers_disabled`); once the automatic-wake budget of 40 is spent, it refuses one
639
- with `wake_budget_spent`, and a run with nothing else to wait on waits for you. The
640
- budget is kept on the task, so a cockpit restart keeps it; a message from you or a
641
- Continue starts it again.
642
-
643
- A CI wait stays pending while any GitHub Actions workflow run on its captured
644
- head commit is incomplete, even when a rerun temporarily hides that run's checks.
645
- It checks again every 30 seconds within the original deadline. Once those runs
646
- complete, it reads the checks again to decide the result. A result describes what
647
- GitHub reported; it does not predict workflows that have not appeared yet or grant
648
- merge approval.
649
-
650
- A merge wait (`until: "merge"`, hearsay-tools/cezarion#1425) reads the PR's state at
651
- once and then every 30 seconds within its deadline. It ends as `merged` only when
652
- GitHub reports the PR merged, with the merge time and merge commit when GitHub gives
653
- them, and as `closed` when the PR closed without merge. Green checks keep it open,
654
- and so does a new head commit. A merge wait holds none of the four watcher slots, so
655
- long merge waits never delay a checks wait. By default both targets also end as
656
- `conflicting` when the PR has merge conflicts. Set `wake_on_conflict: false` when the
657
- agent watches a PR it does not own, such as another agent's PR its work depends on:
658
- it cannot resolve those conflicts. With `until: "checks"`, GitHub often runs no
659
- workflows on a conflicting PR, so such a wait usually ends as `no_checks` or at its
660
- deadline. A checks wait and a merge wait on the same PR are two waits.
661
-
662
- The agent asks you with `cezar_ask`, a card of one to four questions in the ask
663
- format. A question with two to four options shows them as choices; a question without
664
- options is open, and the card shows a text box for your answer. The task reads Needs
665
- you once the turn ends, and your next message answers it. `cezar_wait` takes PR, worker, request,
666
- peer, process and timer waits only, and points an agent that asks it for a human wait to `cezar_ask`. A run
667
- has one question to you at a time, and the agent cannot cancel it once you have seen
668
- it. A native question opens the same kind of wait. When the work is
669
- done and verified, the agent calls `cezar_done` (an optional `summary`), and the task
670
- finishes at the end of that turn: its open waits are cancelled and the summary is
671
- written as a note. In a workflow step that is not the last, `cezar_done` finishes that step
672
- and Squawk starts the next one. `cezar_done` refuses while owned workers are live or uncollected,
673
- a worker question is unanswered or a question to you is still pending, and says what to do first. An
674
- autonomous task does not wait for you until its automatic-wake budget is spent.
675
-
676
- A run can have several waits open at once, up to 16. Each answer carries the
677
- wait's id, its absolute deadline and the list of waits still open, and
678
- `cezar_cancel_wait` closes one by its id. The agent ends its turn to wait, with no
679
- marker required. The run is then `waiting`, and the pill reads **waiting for CI**,
680
- **waiting for merge** or **monitoring** rather than Needs you. The header lists every open wait: **Waiting
681
- for CI — owner/repo#N** or **Waiting for merge — owner/repo#N** with a PR link and the deadline, or **Next automatic check**
682
- with its time and note. **CI result ready — waiting for capacity** means the
683
- observation is owed to the agent and its wake turn has not started yet. A run parked
684
- on CI or a timer keeps its agent slot, a monitoring slot when one is free, so the
685
- wake usually starts at once. Claude's `ScheduleWakeup` opens a timer in the same list.
686
-
687
- Every agent session needs these tools. Squawk starts a private local socket for them,
688
- in the system temporary directory, when the first session of a cockpit launches. If it
689
- cannot start, for example because that directory is full or not writable, the task fails
690
- before the agent starts. The error names the cause and the fix: free space or fix the
691
- permissions, then Continue the task. A task woken by a wait retries with the usual backoff.
692
- The cockpit and other tasks keep working, and the next launch tries again.
693
-
694
- Squawk reports passed, failed, cancelled or skipped checks, no checks, changed head,
695
- timeout or an operational error. It watches the registered commit: a new PR head
696
- is reported separately, and the agent decides whether to wait again. The first
697
- observation runs immediately. Later check-status and PR-head polls run every 30
698
- seconds, and no setting changes that interval. Four watchers run concurrently;
699
- queued waits retain their original deadline. Results are bounded
700
- observations, not merge approval or evidence that every expected workflow appeared.
701
- The agent still decides its next action; CI success never completes the task or
702
- accepts review. A wait ends only when its own result arrives, its deadline passes,
703
- or someone cancels it: the agent with `cezar_cancel_wait`, or Squawk when the task
704
- is stopped, finished, cancelled or deleted. A human message wakes the agent without
705
- closing any wait, and every delivered turn ends with a list of the waits still open.
706
- CI never answers a pending human question. If the agent's session fails or closes while a
707
- result is owed, Squawk retries the delivery after 15 and then 30 seconds; a third
708
- failure marks the task failed and keeps the result. Continue delivers it, and Stop
709
- discards it and leaves the task failed.
710
- Controller recovery can replay an
711
- observation after an ambiguous delivery checkpoint, identified by its stable
712
- lifecycle input ID.
713
-
714
- The deprecated `cezar_wait_for_ci` tool was removed (hearsay-tools/cezarion#1236):
715
- call `cezar_wait` with `kind: "pr"` instead. `kind: "ci"` itself was replaced by
716
- `kind: "pr"` (hearsay-tools/cezarion#1425) and is refused with a message that names
717
- the new spelling.
718
-
719
- The adapters are bundled for Claude (including `claude-cli`), Codex, OpenCode,
720
- Cursor, Pi and OMP. Internal socket/capability environment values are runtime wiring,
721
- not settings to create or share. If the tool is unavailable or denied, its error
722
- is surfaced while ordinary tasks continue. See [the CI-wait protocol](AGENT_PROTOCOL.md#ci-wait-tool-contract-474)
723
- for the owners of the limits and the harness evidence required before a runner ships.
406
+ See [Waiting for PR checks, merges and timers](docs/waits.md).
724
407
 
725
408
  ## Discover runners and models
726
409
 
@@ -737,103 +420,10 @@ For operators, the command finds the running cockpit for the current checkout; `
737
420
 
738
421
  The catalog describes host default accounts, not every named account or the selections permitted by a task's model locks and workflow pins.
739
422
 
740
- ## Parallel variant removal
741
-
742
- Parallel variants (×2/×3) are removed in the next breaking minor release (0.17).
743
- The owner chose immediate removal without a deprecation window
744
- (hearsay-tools/cezarion#1542). The composer starts one task. `POST /api/v1/runs`
745
- refuses `variants: 2` or `3` with `400`; it never turns them into one candidate.
746
- The old `variants: 1` spelling still means an ordinary run.
747
-
748
- The compare page and its group routes are retired too (hearsay-tools/cezarion#1760).
749
- Historical `groupId` and `variant` fields remain stored, and old variant runs list as
750
- ordinary tasks. Old `/compare/:groupId` links, including project-scoped links, open the
751
- task list. No retirement migration deletes runs, branches or worktrees;
752
- normal retention and explicit cleanup still apply. Saved multi-candidate drafts and
753
- automations offer **Use one task** before saving or launching. A saved automation with
754
- `task.variants > 1` reports an error on launch; edit it to remove that field or set it to `1`.
755
-
756
- For explicit comparison, ask a task: “Spawn two owned workers from the same committed
757
- baseline. Try a minimal change and a structural approach. Collect both results and
758
- compare their diffs. Show me the commits to choose from before integration and cleanup.”
759
- The parent uses `hsq worker spawn`, `collect` and `diff`, reviews the chosen commits,
760
- integrates them with Git, then uses `hsq worker destroy` for verified cleanup. Read
761
- `diffSnapshot` from an available collection's JSON file rather than applying that file
762
- as a patch. Collect each worker's latest settled revision before finishing. Owned workers
763
- keep their ownership, isolation, resource limits and Git cleanup safeguards. There is
764
- no one-click comparison page, automatic winner selection or automatic loser cleanup.
765
423
 
766
424
  ## Owned workers
767
425
 
768
- Every task has two settings, both on by default:
769
-
770
- - **Allow Squawk workers**: the task's agent may start Squawk workers and resume them. Each worker is a separate paid agent session. The worker limits below cap resources, not spending.
771
- - **Allow task messaging**: the task's agent may list, message and wait on other tasks in this project with `hsq message`.
772
-
773
- Set them in the new-task form, in the task's header menu at any time, with `hsq task start` or `hsq run` and `--no-workers` / `--no-messaging`, or in an automation's `task.allowWorkers` / `task.allowMessaging`. A task created before these settings existed counts as on for both. The cockpit and headless `hsq run` start one private loopback listener; each eligible session receives the absolute bundled Node/CLI invocation and its own environment credentials. No `hsq` installation on the agent's PATH, config file, separate daemon, or remembered port is needed. If the listener cannot start, ordinary tasks keep working without delegation tools.
774
-
775
- Turning **Allow Squawk workers** off refuses new `spawn` and `--resume` at once, including through a session's existing credential and for a spawn still waiting to be accepted. The task keeps messaging, waiting on, inspecting, collecting, stopping and destroying the workers it already has, and work already accepted finishes. Turning **Allow task messaging** off refuses peer discovery, new peer waits and new peer messages in both directions; a reply to a request accepted earlier still lands, and messages between a task and its own workers are never blocked. A root task with both off, no worker receipt and no open peer request gets no credential; worker sessions, and roots with a worker receipt (also a deleted worker's, so its retained result stays collectable) or an open peer request, keep theirs. Native subagents inside one session are not Squawk workers, and these settings do not change them. These settings are cooperative supervision, not process isolation.
776
-
777
- `CEZ_DELEGATION` is retired and has no effect. A caller that set `CEZ_DELEGATION=1` needs no change. A caller that relied on it being unset turns the settings off per task, for example `hsq run --no-workers --no-messaging "<task>"`.
778
-
779
- The provisioned command has these forms (the session instructions supply the absolute invocation):
780
-
781
- ```sh
782
- hsq worker spawn --baseline parent-head --request-id <UUID> 'Implement the assigned change'
783
- hsq worker spawn --baseline parent-head --request-id <UUID> --runner codex --effort high --context-file ./selected-context.txt 'Review the parser'
784
- hsq worker spawn --baseline parent-head --request-id <UUID> --workflow review 'Review the parser change'
785
- hsq worker list # All own workers, revisions and cleanup resources (fetches pages automatically)
786
- hsq worker inspect <worker-id>
787
- hsq worker steer <worker-id> 'Consider this additional constraint'
788
- hsq worker diff <worker-id>
789
- hsq worker collect <worker-id>
790
- hsq worker wait <worker-id> --mode one --timeout-seconds 600
791
- hsq worker wait <first-id> <second-id> --mode any --timeout-seconds 600
792
- hsq worker wait <first-id> <second-id> --mode all --timeout-seconds 600
793
- hsq worker cancel-wait <wait-id>
794
- hsq message request <recipient-run-id> 'Please check this decision' --id <message-UUID>
795
- hsq worker resume <worker-id> 'Correct the returned result' --id <new-message-UUID>
796
- hsq message progress <recipient-run-id> 'Parser tests pass' --id <message-UUID>
797
- hsq message follow-up <recipient-run-id> 'Include empty input' --id <message-UUID> --request-id <request-UUID>
798
- hsq message reply <recipient-run-id> 'Checked; empty input is covered' --id <message-UUID> --request-id <request-UUID>
799
- hsq message conversation <recipient-run-id>
800
- hsq message wait --request <request-UUID> --request <another-request-UUID> --mode all
801
- hsq message wait --peer <task-id> --timeout-seconds 1800 # Wake on that peer task's next message, or when it settles
802
- hsq message inbox
803
- hsq message tasks --all
804
- hsq message cancel-wait <wait-id>
805
- hsq message cancel-request <request-UUID>
806
- hsq worker stop <worker-id>
807
- hsq worker destroy <worker-id>
808
- ```
809
-
810
- Use `hsq message --help` for messaging commands. Use `hsq worker --help` to list worker operations and flags, or `hsq worker <operation> --help` for one operation. Explicit help prints human-readable text and exits successfully without an active delegation session. Commands otherwise return bounded JSON and a nonzero exit on failure or incomplete cleanup. Spawn requires a committed baseline (`parent-head` or an explicit ref) and pins its SHA at acceptance; dirty parent edits are excluded. Optional `--context '<text>'` or `--context-file <UTF-8-file>` supplies selected context, not the parent's conversation. The two flags are mutually exclusive, and combined task/context text is limited to 100,000 characters. The API also accepts up to 32 pinned-baseline file or parent-attachment references, with at most 8 MiB of copied attachments. Inspect reports worker-local input locations. Reuse a request ID only with the same task, baseline, context, runner, model, effort and workflow when retrying a lost response. `--runner` and its alias `--backend` count as the same field, so a retry may switch spelling. A parent holds at most 32 outstanding workers: accepted, live, or not yet verifiably destroyed. A verified destroy (`hsq worker destroy`, or **Clean up** on a finished worker in the cockpit's Workers list) frees a slot; incomplete cleanup keeps its slot until a retry completes. A parent can create at most 1,024 workers in total; past that, start a new task. These limits bound disk resources and runaway spawning, not spending: a worker can be resumed with Continue, and destroying it does not undo charges already made. Cost stays bounded by `maxParallel` and by stopping the parent. There are at most 32 undelivered steering messages per worker.
811
-
812
- An incomplete destroy reports the remaining resources and a reason. Squawk retries that recorded request after a delay, including after the project's context recovers on server restart. It removes the owned checkout only after process termination and ownership are verified. If the reason persists, inspect the worker process, Git worktree lock and ownership receipt; correct the blocker and use `hsq worker destroy <worker-id>` or the cockpit Destroy action to retry immediately. Squawk leaves ambiguous or replaced resources in place for operator review.
813
-
814
- `--workflow <name>` runs a catalog workflow inside the worker: the built-in `quick-task` or any `.ai/cezar/workflows/*.yaml` by name, with its agent and check steps, `skill:` bodies and `onFail` loops, so a repo's `review.yaml` becomes a dedicated reviewer. Omitted `--workflow` runs `quick-task` exactly as before. `--runner`, `--model` and `--effort` fill only the steps that leave those fields unset; a step's own `allowedTools`/`bashAllowlist` narrow the parent's grants and never widen them. An unknown name is refused. Agent steps may mix runners: at spawn every agent step is resolved and pinned separately, so an implement-with-codex, review-with-claude chain runs each step under its own runner, account, model, effort and grants. A step's optional `agentProfile` names the account it runs under (an id the registry does not know is refused); same-runner steps otherwise inherit the parent's account and other runners resolve their project/default one. Run-level columns show the first agent step.
815
-
816
- Explicit default-account model pins are checked against a fresh, nonempty host catalog after account/model resolution and before a worker is created. Named accounts retain existing validation because a default-account catalog cannot disprove their model access. A miss returns `invalid_input`, available models with advertised efforts, and other runners listing the requested ID in `modelChoices`. Empty, stale, or unavailable discovery leaves existing selection validation in place. Accepted retries and omitted model defaults are unchanged.
817
-
818
- Omitted `--runner` inherits the parent's active runner. Same-runner workers inherit omitted model/account/effort; `--runner <claude|codex|opencode|pi|cursor|omp>` selecting another runner resolves that runner's project/default account and model without forwarding another provider's settings. `--backend` is a permanent alias of `--runner`; giving both with different values is refused as `invalid_input`. Worker `inspect` and `collect` still report the selected runner in a field named `backend`. `--model <model>` selects a supported model, subject to existing locks. `--effort <low|medium|high|xhigh|max>` pins reasoning effort on same-runner and mixed-runner spawn; omitted `--effort` still inherits the parent pin on same-runner spawn and drops it on mixed-runner spawn. Accepted identity and grants remain fixed across queuing, restart and Continue, including explicit empty grants. Changing or deleting an account registry entry does not rebind a worker. Missing accepted identity evidence or account homes, incompatible Claude state-file layouts, and conflicting later model locks refuse execution explicitly. Credentials and vendor configuration are never copied; each worker receives its own delegation credential, and unspecified native models stay unspecified.
819
-
820
- Wait registers immediately. End the parent turn to release scheduler capacity; Squawk resumes it on a selected settled outcome or the finite deadline. `any` is the default, `one` requires exactly one worker, and `all` waits for every selected worker. Review, completion, failure, cancellation with proven termination, and destruction are outcomes. Timeout defaults to 600 seconds (1–7200 accepted). `cancel-wait` is idempotent for the retained wait ID and cannot cancel a newer wait. Empty dependency-deadline wakes do not spend the automatic-wake budget; explicit timers and native-subagent safety deadlines remain charged. Timeout and wait cancellation report partial outcomes and unresolved workers, never cancel workers, and never automatically re-wait. Steering is attributed agent input and cannot answer a pending human question.
821
-
822
- Parents and owned workers can converse in both directions; a worker may address only its parent. `send --kind request` opens a reply obligation whose ID is the message ID; `send --kind progress` (or `progress`) does not. Follow-ups clarify an existing request; only an explicit correlated `reply` settles it as replied. Retry a message with the same ID and exact payload, including deadline duration; changed payloads are rejected. Acceptance, provider delivery, reply, and task completion are separate facts, visible in the task transcript and `conversation` JSON.
823
-
824
- Messages allow 100,000 characters each, with at most 32 undelivered inputs per recipient, 1,024 messages per family, and 32 pending requests. Request deadlines default to 600 seconds, configurable per message with `--timeout-seconds 1–7200`. Request waits use the same limits and `one`/`any`/`all` modes as worker waits, and each run has one active wait. Incoming conversation can interrupt a parked wait without settling its requests. `cancel-request` cancels an obligation; `cancel-wait` only stops waiting. Completion without a reply, failure, cancellation, destruction, timeout, or sender closure settle obligations distinctly. Late replies remain visible without reopening them.
825
-
826
- Messages reach a live recipient as soon as they are accepted, including mid-turn: Claude, Codex, Pi, OMP and OpenCode steer them into the running turn, and the model reads them at its next step. Cursor delivers at the turn boundary, because a second prompt would cancel its running turn. Pending conversations go together, in order, up to 32 messages and 100,000 formatted characters per batch; a single valid message is never split. Every message keeps its ID, sender, delivery receipt and request outcome; receipts show queued, delivered and read (when the agent's harness can tell) separately. A pending human question holds messages until it is answered, then they follow right behind the answer. The thread's Details distinguish creation, delivery confirmation and event-recording times.
827
-
828
- Sending a message to a review or terminal participant reports `not-delivered` and `continuation-required`, with the reason and next command; the CLI exits 1. An active parent can use `hsq worker resume` to continue its settled done/review/failed worker with that message as the new instruction. No human Continue is needed for this parent-controlled action. A retry with the same payload and ID never creates another continuation; resuming after a rejected message requires a new ID. Stopped or destroyed workers need a new worker. Workers cannot resume parents, and conversation never answers a pending human question. Durable IDs deduplicate accepted queue entries and event replay, but a crash between provider acceptance and its durable delivery checkpoint can leave transport delivery ambiguous; this is not an exactly-once execution guarantee.
829
-
830
- Collect returns the worker's execution revision, status/outcome, `settled` and `partial` flags, and typed availability for assistant summary, HEAD, bounded diff and artifact descriptors. Missing evidence is explicit; running output is partial. An available `diff.path` points to a **JSON result file** containing `{ result, diffSnapshot }`; its `diffSnapshot` field holds the patch. Read and review that field before applying any changes. The latest collected result is stored under the parent and survives restart. Collection acknowledges observation, not Git integration or successful work. Review desired worker commits and deliberately integrate them into the parent before destroying their worktrees/branches; there is no automatic merge.
831
-
832
- Parent completion requires collection of every worker's latest settled execution revision. A worker Continue invalidates older readiness. An early completion attempt waits for outstanding workers and wakes the parent to inspect/collect; it does not silently finish on wake. While workers remain live, markerless replies, completion timeouts, and repeated premature completion park the parent as monitoring with the existing capped wakeups. Once workers settle, repeated completion without collecting their results retains attention. Human Finish also refuses unresolved/uncollected workers. If the parent is already under review, Continue the parent first, then Continue its worker. Human questions remain authoritative.
833
-
834
- Stop requests cancellation; `stopping` does not prove termination. Destroy checkpoints obtainable results, waits up to 30 seconds for proven termination, and removes only verified owned resources. An `incomplete` response lists remaining resources; resolve the cause and retry explicitly. Cleanup order is: collect/integrate desired results, destroy owned resources, explicitly delete child histories through the cockpit/API, then delete parent history. Parent-owned summaries and bounded diff snapshots remain until parent deletion, including after child-history deletion; general artifact bytes are not archived. Branch/path strings and SHAs become historical descriptors after removal, not promises of available Git objects or files. The human cleanup endpoint `POST /api/v1/p/<projectId>/runs/<worker-id>/worker-destroy` stays available when delegation is disabled. The CLI bounds each HTTP request to 45 seconds and rejects endpoint/auth/origin overrides and redirects.
835
-
836
- Provisioned root tasks and workers may use native subagents, and each mechanism has its own purpose. Use native subagents for work that needs no separate worktree: research, code reading and focused analysis, for example a subagent that reads the parser and summarizes its error handling. Native subagents need no worker creation, worktree, collection or destruction. Use Squawk workers for work that needs its own worktree, its own commits or a tracked lifecycle. Workers may use native subagents too, but cannot spawn Squawk workers. An agent may message its own subagents with its runner's tools; it reaches another Squawk task only through `hsq message`. Where a runner's native tool for reaching another session is separate from subagent messaging, a per-run adapter control turns it off: Codex's cross-thread message board, and an OpenCode plugin that refuses a `task` call whose `task_id` names a session outside the caller's own session tree. Claude sessions refuse messages from other sessions on every launch. Known limitations: a Claude session Squawk starts can still list and message Claude sessions that Squawk did not start, and sessions on other machines; an OpenCode session that an older Squawk created under delegation keeps its `task` deny on Continue and restart recovery, because OpenCode cannot remove a session permission rule (new OpenCode sessions allow subagents). These controls are cooperative same-user supervision, not isolation ([Governed delegation controls](AGENT_PROTOCOL.md#governed-delegation-controls-d1)). When the listener is unavailable, ordinary tools/settings stay unchanged. The listener binds to `127.0.0.1`, including hosted cockpit mode. Its session credentials authorize only what that session may do: a root manages its own workers and messages peer roots in the same project, subject to the task's settings and relationship checks; a worker addresses only its parent. This is cooperative local-agent supervision; same-user unrestricted shell and custom tools are not hard isolation. Workers cannot spawn Squawk workers or message peers through Squawk. Review remains a human gate with no automatic acceptance. Never read, echo, forward, or persist the generated token.
426
+ See [Owned workers](docs/workers.md).
837
427
 
838
428
  ## From the terminal: `hsq task` and `hsq message`
839
429
 
@@ -855,7 +445,7 @@ An explicit `--url` wins over `HSQ_URL` (`CEZ_URL` fallback); `--repo` selects t
855
445
 
856
446
  `hsq task send` is human input. It can answer a pending human question. It refuses
857
447
  inside a task (`HSQ_TASK_ID` (`CEZ_TASK_ID` fallback) is set). Agents use `hsq message` for task messages,
858
- including peer and parent/worker conversations; see [Owned workers](#owned-workers).
448
+ including peer and parent/worker conversations; see [Owned workers](docs/workers.md#owned-workers).
859
449
 
860
450
  ```bash
861
451
  id=$(hsq task start --task-file - <<'EOF' | jq -r .id
@@ -1167,7 +757,7 @@ Useful environment variables:
1167
757
  | Var | Effect |
1168
758
  |---|---|
1169
759
  | `HSQ_*` settings (`CEZ_*` fallback) | Ordinary settings prefer a defined HSQ value, including empty. Home, hosted-mode REMOTE and native shell controls use the separate rules below. Both home locators and inherited controller authority are removed from child environments, even in full-env mode. |
1170
- | `CEZ_DELEGATION` | Retired (hearsay-tools/cezarion#2784); has no effect. Workers and task messaging are per-task settings, both on by default. See [Owned workers](#owned-workers). |
760
+ | `CEZ_DELEGATION` | Retired (hearsay-tools/cezarion#2784); has no effect. Workers and task messaging are per-task settings, both on by default. See [Owned workers](docs/workers.md#owned-workers). |
1171
761
  | `HSQ_DELEGATION_URL`, `CEZ_DELEGATION_URL`, `HSQ_DELEGATION_TOKEN`, `CEZ_DELEGATION_TOKEN` | Internal generated session values; do not configure or copy them. Tokens rotate on Continue/restart and are revoked when the session/controller closes. |
1172
762
  | `HSQ_REMOTE`, `CEZ_REMOTE` | Hosted mode: exact `1` under either name disables local handoff and local settings administration. Empty or `0` cannot cancel the other name's hosted-mode pin. Server installers pin both names. |
1173
763
  | `HSQ_API_PORT`, `CEZ_API_PORT` | Local service port used by the development web proxy; defaults to 4321. |
@@ -1177,7 +767,7 @@ Useful environment variables:
1177
767
  | `HSQ_RELEASE_ROOT`, `CEZ_RELEASE_ROOT` | Repository root containing the package manifests that `release.mjs` reads and stamps. |
1178
768
  | `HSQ_SNAPSHOT_ROOT`, `CEZ_SNAPSHOT_ROOT` | Repository root containing the package manifests that `release-snapshot.mjs` reads and stamps. |
1179
769
  | `HSQ_ALLOW_TEST_SPAWN`, `CEZ_ALLOW_TEST_SPAWN` | Test harness opt-in for real agent process spawning. Leave unset outside tests. |
1180
- | `HSQ_ARTIFACTS_DIR`, `CEZ_ARTIFACTS_DIR`, `HSQ_HANDOFF_FILE`, `CEZ_HANDOFF_FILE`, `HSQ_TASK_ID`, `CEZ_TASK_ID`, `HSQ_TODOS_FILE`, `CEZ_TODOS_FILE`, `HSQ_PROJECT_ROOT`, `CEZ_PROJECT_ROOT` | Internal task paths and identity generated by the controller. Do not configure them. |
770
+ | `HSQ_ARTIFACTS_DIR`, `CEZ_ARTIFACTS_DIR`, `HSQ_HANDOFF_FILE`, `CEZ_HANDOFF_FILE`, `HSQ_TASK_ID`, `CEZ_TASK_ID`, `HSQ_PROJECT_ROOT`, `CEZ_PROJECT_ROOT` | Internal task paths and identity generated by the controller. Do not configure them. |
1181
771
  | `HSQ_TOOL_SOCKET`, `CEZ_TOOL_SOCKET`, `HSQ_TOOL_TOKEN`, `CEZ_TOOL_TOKEN` | Internal tool transport authority generated for each session. Do not configure or copy it. |
1182
772
  | `HSQ_AUTOSAVE_OWNER`, `CEZ_AUTOSAVE_OWNER` | Internal process attribution markers. Do not configure them. |
1183
773
  | `HSQ_DESKTOP`, `CEZ_DESKTOP`, `HSQ_SUPERVISED`, `CEZ_SUPERVISED`, `HSQ_SUPERVISOR_PID`, `CEZ_SUPERVISOR_PID`, `HSQ_SUPERVISOR_STDIN`, `CEZ_SUPERVISOR_STDIN` | Internal desktop and supervisor lifecycle values. The shell's CEZ value wins when present, including empty values; HSQ is used only when CEZ is absent. Do not configure them. |
@@ -1379,7 +969,7 @@ steps:
1379
969
  ```
1380
970
 
1381
971
  Owned workers can compare approaches in separate worktrees. Each worker has its own
1382
- runner and model selection; see [Owned workers](#owned-workers).
972
+ runner and model selection; see [Owned workers](docs/workers.md#owned-workers).
1383
973
 
1384
974
  **Models come from your own machine.** For Claude, Codex, OpenCode, and Pi, the model picker
1385
975
  is not a list Squawk ships — it asks the installed CLI what it can actually run
@@ -1548,7 +1138,7 @@ automatically; your workflows and skills stay committable. See [run history reco
1548
1138
  Settings that belong to *you* rather than to a repo — the parallel cap
1549
1139
  (`maxParallel`, default **2**), the per-task memory ceiling and the checkout
1550
1140
  root — live once in `<config>/config.json`, alongside the
1551
- [project registry](#multiple-projects-one-cockpit), and are edited from
1141
+ [project registry](docs/areas/workspace-registry.md#multiple-projects-one-cockpit), and are edited from
1552
1142
  **Settings → Resources** and **Settings → Projects**. A `maxParallel` left over
1553
1143
  in a repo's `.ai/cezar/config.json` is imported into the workspace file the
1554
1144
  first time Squawk boots there, and ignored afterwards.
@@ -5,7 +5,7 @@ import { parseArgs } from 'node:util';
5
5
  import { ONCE_MAX_LATEST_START_MINUTES, ONCE_MIN_LATEST_START_MINUTES, SCHEDULE_TYPES, onceInstant, onceWallParts, parseCron, scheduleLabel, } from '../contract/index.js';
6
6
  import { parseDurationMinutes, resolveDelay, SCHEDULED_TASK_NOTE } from '../contract/index.js';
7
7
  import { isValidTimeZone } from '../contract/index.js';
8
- import { AUTOMATION_FAILURE_NOTICE_AFTER, automationFailureNotice } from '../contract/index.js';
8
+ import { AUTOMATION_FAILURE_NOTICE_AFTER, automationFailureNotice, writableAutomationTask } from '../contract/index.js';
9
9
  import { EXIT } from '../task-cli/cli.js';
10
10
  import { resolveCockpit } from '../task-cli/discovery.js';
11
11
  import { fetchJson, refuse, TaskCliError } from '../task-cli/http.js';
@@ -375,16 +375,17 @@ async function executeCreate(ctx) {
375
375
  /** `update`: read the stored definition, apply the editable keys, PUT with the revision echoed. */
376
376
  async function executeUpdate(ctx) {
377
377
  const { automation: current } = await ctx.call(ctx.path());
378
+ const stored = { ...current, task: isRecord(current.task) ? writableAutomationTask(current.task) : current.task };
378
379
  const next = {};
379
380
  for (const key of EDITABLE_KEYS) {
380
- const value = key in ctx.body ? ctx.body[key] : current[key];
381
+ const value = key in ctx.body ? ctx.body[key] : stored[key];
381
382
  if (value !== undefined)
382
383
  next[key] = value;
383
384
  }
384
385
  // `task` merges key by key, so a prompt-only update keeps the workflow, runner, model and
385
386
  // the rest; `null` removes a key. Every other key replaces what is stored.
386
- if (isRecord(ctx.body.task) && isRecord(current.task)) {
387
- const task = { ...current.task, ...ctx.body.task };
387
+ if (isRecord(ctx.body.task) && isRecord(stored.task)) {
388
+ const task = { ...stored.task, ...ctx.body.task };
388
389
  for (const [key, value] of Object.entries(task))
389
390
  if (value === null)
390
391
  delete task[key];