0
Fork 0
mirror of https://github.com/zeronsh/comet.git synced 2026-11-16 18:57:19 +00:00

Compare commits

...

400 commits

Author SHA1 Message Date
Daniel Katulevskiy
4c3edeb699
zgx Control room tabs: kept once built, held while hidden, built ahead at idle
- A tab, once built, stays: hidden while another shows (invisible, kept
  laid out), so switching back only shows it. The floating composer is kept
  built too, shown where it floats (a hidden mirror never takes the model
  picker: LaneTab.Composer `shown`).
- A hidden tab does no work: what Overview and the Board read goes through
  held computeds (ds/hold) that keep their last value while the tab is
  hidden; a shown tab wakes a frame after the click, so the click's frame
  only shows it and the catch-up comes on the next. Progress rows and the
  widgets' figures are held the same way; the Chat tab's streaming reply is
  held while hidden (its lane stays watched, so nothing reloads on show).
- The tabs not shown are built in the background once the page has
  settled (ds/stage `Idle`: one piece a frame, a widget, a Board card or the
  transcript; out of layout until the last is in), and at once if opened
  first.
2026-11-15 22:00:10 -08:00
Daniel Katulevskiy
78ea22051c
Merge branch 'zeron/graph-force' into zeron/orch-next 2026-11-15 21:59:09 -08:00
Daniel Katulevskiy
ff8d0ae09e
Merge branch 'zeron/map-dup-devices' into zeron/orch-next 2026-11-15 21:59:09 -08:00
Daniel Katulevskiy
2874d98040
Merge branch 'zeron/push-diffs' into zeron/orch-next 2026-11-15 21:59:09 -08:00
Daniel Katulevskiy
ae109a70ca
Graph (force): the Brain's own chats in rings clear of the hubs' ways out; an orchestrator's name off its link; names from a third's zoom 2026-11-15 21:47:38 -08:00
Daniel Katulevskiy
d8c08d683c
Graph (force): the Brain a ghost, orchestrators cookies by crew size, crews fanned away from the Brain in rows, chats with their provider's glyph and their state's ring (working stepping on the shared clock), Color by in the Map's menu 2026-11-15 21:45:00 -08:00
Daniel Katulevskiy
875aff18be
zgx Map tests: the sample's failed sccache thread failed within the day; an unheard crew row is new
Show chats now keeps an unread failure a day and a crew row with no chat
only while new: the sample's sccache thread (failed 25 hours before, its ask
answered) left the Map, and the crew-names test's unheard row with it. The
sample's failure is 22 hours old and the row joined now, as each test means.
2026-11-15 21:30:18 -08:00
Daniel Katulevskiy
288fbad2b5
Map Graph: opens where it last settled (places kept by node), a web whose nodes were all seen settled at once 2026-11-15 21:25:36 -08:00
Daniel Katulevskiy
f83f289bf1
Graph (force): the legend's needs-you ring in its state's colour; a test's types 2026-11-15 21:22:26 -08:00
Daniel Katulevskiy
08dfa541ae
Map: Graph (force), the Brain dump in the middle and a web that settles once and holds still (strong and weak springs, grid repulsion, places kept, local reheat, nothing off screen) 2026-11-15 21:22:08 -08:00
Daniel Katulevskiy
cd8bee868d
Merge branch 'zeron/map-dup-devices' into zeron/orchestrators 2026-11-15 21:13:25 -08:00
Daniel Katulevskiy
ef701054fb
zgx Map: one machine per real machine; an offline one with nothing shown leaves
The Map showed two "honeypot"s: the engine's device rows from earlier
registrations of the machine (17 and 11 days unseen) stayed under its name,
and an offline machine counted as in use by threads Show chats then hid, so
it stood empty ("Nothing running"), as X16 and DESKTOP did.

- Device rows of one name and platform are one machine, under the row in
  use (this device, else one online, else the one seen last); their chats
  go with it. Cloud sessions stay apart. No row is dropped from the data.
- A machine offline shows only for a thread still shown on it.
2026-11-15 21:12:32 -08:00
Daniel Katulevskiy
7cf9951bbd
Merge zeron/map-canvas-cap visibility: unread for 24h, archived and missing chats hidden 2026-11-15 21:07:19 -08:00
Daniel Katulevskiy
0e0d550750
Merge branch 'zeron/control-tabs' into zeron/orchestrators 2026-11-15 20:47:05 -08:00
Daniel Katulevskiy
cb069b2d3d
zgx: Capture's lane opens session-only (its row and send path, no Brain dump transcript) 2026-11-15 20:40:59 -08:00
Daniel Katulevskiy
1b8a834085
zgx: apply orchestration and progress changes per row (unchanged rows keep their tables), resync on a missed frame, gather sessions publishes per frame 2026-11-15 20:40:59 -08:00
Daniel Katulevskiy
31206be17b
engine: WatchOrchestration and WatchProgress send changes on request; keyed list watches coalesce bursts (50 ms collect, 100 ms apart) 2026-11-15 20:40:59 -08:00
Daniel Katulevskiy
b999ee444c
proto: WatchOrchestration as change frames (snapshot, keyed per-collection deltas, versions, gap detection) 2026-11-15 20:40:59 -08:00
Daniel Katulevskiy
c4b8e9da1a
zgx Control room tabs: the shortcuts' titles in every locale; Board's foot room a measured raw value 2026-11-15 20:33:53 -08:00
Daniel Katulevskiy
3ec82df204
zgx Control room: Overview, Board and Chat tabs
The Control room is three tabs, the one shown kept on this device
(`control_tab`), Cmd/Ctrl+Alt+1-3:
- Overview: the full Capture composer and the widgets (Needs you, Q&A,
  Progress, Map, Scratchpad, Machines, Comms), show/hide/reorder as before.
- Board: the Board across the page, its figures over it.
- Chat: the Brain dump's chat read as any chat (lane_tab's transcript,
  new `read` kind), watched only while the tab shows.

Only the tab shown is built. Capture's floating composer is on every tab
(Overview's once Capture is scrolled away), one draft, chips and model;
on Chat it sends a dump as Capture does. A card's Show dump goes to
Overview, where Capture's history is.
2026-11-15 20:31:15 -08:00
Daniel Katulevskiy
8195de0213
Merge zeron/map-canvas-cap-test (machines test scrolls the bounded Map) 2026-11-15 20:14:28 -08:00
Daniel Katulevskiy
87af7ae887
zgx Map tests: the Machines test scrolls the bounded Map to the rows it clicks
At 700 points wide the machines stack in one column, past the Map's bound:
the rows it opens are scrolled into view first.
2026-11-15 20:13:51 -08:00
Daniel Katulevskiy
33c0d5a52c
zgx Map tests: the Machines test scrolls the bounded Map to the rows it clicks
At 700 points wide the machines stack in one column, past the Map's bound:
the rows it opens are scrolled into view first.
2026-11-15 20:13:49 -08:00
Daniel Katulevskiy
e847742411
Merge branch 'zeron/zgx-pin-idle-fix' into zeron/orchestrators 2026-11-15 20:12:41 -08:00
Daniel Katulevskiy
74b79e530d
zgx: pin zgx to katulevskiy/zgx for the Linux idle-spin fix (temporary)
Every zgx dependency and [patch] entry points at katulevskiy/zgx rev
e49ae7a3c (branch linux-idle-spin-ac935c6): zeronsh/zgx ac935c6, the rev
pinned until now, plus only the Linux idle-spin fix. On Wayland a granted
frame that presented nothing left no frame callback pending, so the event
loop busy-waited between a rate-limited animation's steps (52-82% of a
core with a status ring on screen; 7-9% with the fix).

Temporary: back to zeronsh/zgx at a rev that has the fix once
zeronsh/zgx#2265 merges.
2026-11-15 20:12:10 -08:00
Daniel Katulevskiy
a6d88430f8
zgx Map: an unread finished chat shows for a day, then as any finished chat
"done" is finished and not seen since; crew chats nobody opens stay so for
good, so Show chats kept every one of them on the Map (154 of 218 lanes on a
700-chat account, the oldest weeks old). Unread now shows whatever the mode
for a day after the chat last moved (UNREAD_FOR), then as any finished chat.
2026-11-15 20:07:46 -08:00
Daniel Katulevskiy
a3f9f1fd78
zgx Map: a crew thread with no chat row shows only while it's new
A crew row whose chat the Map never heard of (gone, or not reported) always
showed: 48 lanes on a 700-chat account. It now shows while it joined within
the window (a chat just started, not heard yet), and in All.
2026-11-15 20:07:29 -08:00
Daniel Katulevskiy
34e4e8b783
zgx Map: an archived orchestrator's chat isn't pinned to the Map
Show chats pinned every orchestrator's own chat, archived ones too: five on
a 700-chat account stayed on the Map as ordinary threads.
2026-11-15 20:07:29 -08:00
Daniel Katulevskiy
7e9b00bbc6
Merge branch 'zeron/map-canvas-cap' into zeron/orchestrators 2026-11-15 20:04:12 -08:00
Daniel Katulevskiy
daa3ecaff4
zgx Map: bounded to about the window, scrolling inside; tall canvases drawn in bands
The Control room froze on a 1044 x 6356 Timeline (218 lanes): the Map grew
with every lane, and the Timeline and Topology drew one canvas the field's
height, past zgx's 32 MiB raster limit, which skipped the window's frame.

- Every view sits in a scroll as tall as its content up to three quarters
  of the window (360 to 900 points).
- The Timeline's chart and the Topology's rails draw through kit.Tiled:
  canvases 512 points high, each drawing its band (lanes outside skipped,
  text in the band it starts in, paths through kit.path to move with it).
- tests/orch_map_bounds: a 165-thread fleet in every view stays within the
  bound and under the raster limit; the page keeps answering.
2026-11-15 20:03:37 -08:00
Daniel Katulevskiy
d3039afaa4
Merge branch 'zeron/engine-loops-perf' into zeron/orchestrators 2026-11-15 19:56:55 -08:00
Daniel Katulevskiy
101e34e6dc
logging: keep loro's block-encode diagnostics quiet when RUST_LOG is set
RUST_LOG replaced the whole filter, so RUST_LOG=info logged loro's
"Diagnosing EncodedBlock" lines on every snapshot export and commit
(thousands a minute under load). They stay at warn unless RUST_LOG names
loro itself.
2026-11-15 19:41:59 -08:00
Daniel Katulevskiy
cc9ab432da
orchestration state: newest dumps and current asks only
read_orchestration copied every dump ever to keep the newest 50, and every
ask ever made. It now copies only the newest 50 dumps, and the asks still
current: every open one, plus closed ones from the last 14 days or among the
newest 20 closed. Older rows stay in the registry (synced, saved, readable
by id); they are only out of the state every reader copies and every
watcher is sent.
2026-11-15 19:41:59 -08:00
Daniel Katulevskiy
f8071c2e3f
orchestration: timers that don't wait on the registry, one limiter for model runs
- escalate, bring-back, chase, wake and the board queue scan the rows
  without the registry lock (Orchestration::scan) and read each row they
  change again under it before writing; wake and the queue look up one
  chat row instead of reading every chat.
- The progress loop observes only the session rows that changed since the
  last event (it observed every session, each unfollowed one with a
  registry read).
- Every one-shot model run (progress notes, the end-of-turn borderline
  check, reply verdicts, Q&A condensing) goes through one limiter: at most
  two at once engine-wide, one run shared by callers with the same input,
  and replies kept by input (30 min; 5 min for no reply, so an unsure
  verdict isn't asked again each turn start and end). A note is skipped,
  whatever asked for it, when the transcript hasn't changed since the last.
- Timing logs at target perf (debug) for the timers, notes and model runs,
  and once a minute a stats line: RSS, registry rows per kind, unsent ops,
  warm chat docs, followed chats and the limiter's counts.
2026-11-15 19:41:58 -08:00
Daniel Katulevskiy
191e007259
registry: save without holding the registry lock, and time the lock
persist copied the replica and wrote it to SQLite under the registry lock:
in a release build a save held it for up to 1.4 s and every reader and
writer (the orchestration timers, session writes, chat lookups) waited
behind it. Now the rows a save records are copied under the lock
(RegistryDoc::begin_save), and encoding and the SQLite write happen outside
it; saves stay serialized by the registry_base lock. A write made during a
save goes to the next one; a save that isn't stored puts its rows back as
unsaved.

The registry lock is taken through a timed guard: waits and holds of 5 ms
or more log at target perf (debug) with where it was taken, and each
thread counts the registry locks it holds, so long work can assert it
holds none.

scan_orchestration gives a scan the orchestration rows without waiting on
the lock: the published value when it is current or the lock is busy,
read now otherwise. Also row counts per kind (stats) and a selective cached
read (read_cached_with) that copies only what a reader needs.
2026-11-15 19:41:58 -08:00
Daniel Katulevskiy
d0802f7cf1
Merge branch 'zeron/widgets-perf' into zeron/orchestrators 2026-11-15 19:41:45 -08:00
Daniel Katulevskiy
7e8825da4a
zgx Capture: the Brain dump's transcript taken in only once the composer is used; built in stages; history ten at a time
Capture's composer opened the Brain dump chat as a lane, so the host built
and published its whole transcript (381 messages, 1.14 MB as JSON) into
chat.lane.control-capture.messages, though Capture never shows it. The
composer is now lazy: till the pointer comes over it, it takes the keys or
its model is asked for, its session is the chats list's row (agent and
model), and nothing is watched. Once used, the host's session as before.

The newest receipt and the history build a frame after the composer
(ds/stage). The history builds its latest ten rows, ten more on a click;
a board card's source past them widens it. Each row's hues keep their
table while unchanged.

Sandbox, Capture alone: lane 1,142,686 bytes -> empty; build 29-41 ms ->
16-25 ms (history closed), 50-59 ms -> 33-46 ms (history open).
2026-11-15 19:39:51 -08:00
Daniel Katulevskiy
31731fb688
zgx Needs you: each row reads what it shows and keeps its table while that's unchanged
A need carried its whole chat row, so any sessions push touching that chat
(its activity, its title) handed every row a new item. Rows now get only
the fields they show, the previous table kept while equal, so a new ask
or a republish wakes its own row alone.
2026-11-15 19:39:51 -08:00
Daniel Katulevskiy
b8cec86371
zgx sidebar: the view menu loads the Control room's page as a row needing it is picked, never while it's made
Its first opening loaded screens/control/page inside the menu's build, past
the script budget when the main thread was busy (the sidebar_crew flake).
Test runner, first open: 49-98 ms -> 3.7-4.9 ms.
2026-11-15 19:39:51 -08:00
Daniel Katulevskiy
97e9fd9eb9
Merge branch 'zeron/graph-map-v2' into zeron/orchestrators 2026-11-15 18:53:52 -08:00
Daniel Katulevskiy
1ad442cafb
Map bench: the loads tick in every view, its median guarded 2026-11-15 18:48:09 -08:00
Daniel Katulevskiy
6f22a5a983
Map: the machines' loads tick reaches the headings alone in every view (the views read a world kept until what it holds changes); Graph (new) hears its threads' states once a frame, so it opens in one draw 2026-11-15 18:46:52 -08:00
Daniel Katulevskiy
2d3166d12b
Map Graph (new): the machines' loads tick reaches the headings' figures and rings alone, never the layout 2026-11-15 18:44:09 -08:00
Daniel Katulevskiy
a3e724337a
zgx: keep the pinned zgx dependency (drop a local test patch that came in with the last merge) 2026-11-15 17:58:44 -08:00
Daniel Katulevskiy
e2e0cc7379
Merge zeron/anr-fix round 4 (cold Control Room open, Progress push cost) 2026-11-15 17:58:30 -08:00
Daniel Katulevskiy
272a2193ba
zgx Map Topology: its rows come a dozen a frame as it opens
Every thread's row was built in the frame the Map opened: 231-552 ms on
the sandbox's fleet. Its rows stand where the layout puts them, so they
now come twelve a frame without moving any. Sandbox, Control Room open
with the Topology: worst frame 231-235 -> 89-124 ms.
2026-11-15 17:56:40 -08:00
Daniel Katulevskiy
d000db21e1
zgx Progress: rows and the widget's list are script-owned computeds that keep their table while unchanged
Progress.rows and Progress.listed were worked out on every read and handed
out anew on every sessions or timeline push, so every reader ran again
whether or not a row changed. Now each is one ui.computed, owned by the
script, that gives back the table it gave before while what it says is
the same; the minute a fresh row counts by is a state of its own.

Sandbox, Control Room, 10 sessions pushes: sessions-caused script
351 -> 254 ms, worst frame 254 -> 140 ms.
2026-11-15 17:54:17 -08:00
Daniel Katulevskiy
7b1391b66a
Merge zeron/anr-fix round 3 (sticky timestamp timer, sidebar clock) 2026-11-15 17:47:31 -08:00
Daniel Katulevskiy
31de765c97
Map Graph (new) bench: its guard the median and the script budget, steady on a busy machine 2026-11-15 17:47:15 -08:00
Daniel Katulevskiy
b9ed9aa53b
Map Graph (new): off screen (scrolled away, another view, the window hidden) nothing lays out, draws, runs a dot or follows a thread; back, the world as it is then 2026-11-15 17:45:53 -08:00
Daniel Katulevskiy
9feda1b3e4
zgx: local patch for the Linux idle-spin fix
Points the zgx crates at a local checkout of zgx (branch
fix/linux-idle-spin, e49ae7a3c on ac935c6) for testing; not for merge.
2026-11-15 17:45:52 -08:00
Daniel Katulevskiy
bc9b2ae385
Map Graph (new): the Map's own visibility rule (ds/orch_map_visibility, through its model) in place of its stand-in; its Show chats setting the Map's 2026-11-15 17:43:55 -08:00
Daniel Katulevskiy
77e117cc38
Map Graph (new): only chats that matter laid out (the Map's visibility rule, its setting, fading ones faint), and a Node style: Dots or Provider glyphs 2026-11-15 17:43:55 -08:00
Daniel Katulevskiy
5c6467517c
Map Graph (new): ease and dot frames allocate nothing (one state for threads' states, names drawn once settled), a bench against the first Graph, a live-data copy for it 2026-11-15 17:43:54 -08:00
Daniel Katulevskiy
f666460d24
Map: a new Graph, laid out once per change (machines a treemap, crews in grids with orthogonal lines), beside the first as "Graph (new)" 2026-11-15 17:43:54 -08:00
Daniel Katulevskiy
af12808ab5
zgx: a timestamp ticks on a timer that sleeps, not an anime timer
people.Timestamp moved on each minute with anime.createTimer { loop },
which the animation engine plays every frame: one timestamp on screen
(git, comments, rows that show a time) kept the window drawing at 30 fps
and, on Linux, the event loop spinning, for as long as it showed. Seen in
the sandbox after a burst of status changes: one clip left playing, the
app at ~60% of a core on any page until a reload. Now ui.every(60000),
owned by the timestamp.
2026-11-15 17:42:51 -08:00
Daniel Katulevskiy
f59f0d8b39
zgx sidebar: its animation clock stops even if a motion's end isn't a number
The list's clock ticks at the display's rate, every row's height and ink
read again each tick, until every fold and slide has arrived. A motion
whose end was NaN or inf (a place measured as either) never arrived, and
the clock never stopped. Now one past 5 s, or with no finite end, counts
as arrived.
2026-11-15 17:34:46 -08:00
Daniel Katulevskiy
97451a1845
Merge zeron/anr-fix round 2 (graph aborts, page open, push cost) 2026-11-15 17:26:17 -08:00
Daniel Katulevskiy
ac0561545e
zgx shell: load the Control room's and orchestrator's pages once the window has settled
Loaded on the first click, inside the page's build (and the sidebar's view
menu's), they cost that open about a quarter of a second more. Now loaded
two seconds after the shell comes up, one a frame. Sandbox: the first VPN
orchestrator page open after a reload, first frame 291 -> 102 ms.
2026-11-15 17:25:37 -08:00
Daniel Katulevskiy
ebca2ddf69
zgx orchestrator page: Needs you with the page, the Board and the crew a frame each after
ds/stage holds what a page builds later (its room kept, one a frame, lowest
rank first); the Control Room's staged widgets use it too. The VPN
orchestrator's page (51 crew, each with a Progress strip) built in one
115-377 ms frame on open; now its worst frame is 48-81 ms.
2026-11-15 17:24:25 -08:00
Daniel Katulevskiy
a92b72f818
Merge branch 'zeron/anr-fix-orch' into zeron/anr-fix 2026-11-15 17:20:46 -08:00
Daniel Katulevskiy
5b3946549f
zgx Control Room: the first two widgets build on open, the rest one a frame after
Built at once, the Map, the Scratchpad, the Board and the rest took
0.4-1.4 s in one frame on open (the window not answering meanwhile). The
first two widgets in the page's order build with it; each other holds a
block's room and builds in its own frame (a timer of its own builds it a
little later should the pump's owner go first).

Sandbox, same data, warm open: first frame 400-1370 -> 36-40 ms, worst
frame 83-98 ms, settled 200-250 ms.
2026-11-15 17:20:46 -08:00
Daniel Katulevskiy
5b055fb5c8
Map: a view kept on the first Graph opens on the Topology, once
Topology is already the Map's default; a Map left on the first Graph
(heavy on a big fleet) is moved to the Topology once, until the new
Graph takes its place. Chosen again, the Graph stays.
2026-11-15 17:17:02 -08:00
Daniel Katulevskiy
e1d2a57d93
Map Graph: settle out of sight, drawn once still, time-boxed; nothing runs off screen
The first Graph stepped its force simulation three times a frame and set
its tick each time, so its canvas laid the whole web out again every
frame (label placement and line routing): on a big fleet one frame took
more than a script call's 50 ms, and the app stopped answering (1192 of
1201 budget aborts in the live log).

- Settling runs a frame every 33 ms, as many steps as fit in 6 ms
  (12 at most), 90 frames a run at most, and draws nothing until still.
- A layout past 15 ms leaves out the thread names still to place (not an
  orchestrator's, nor the one under the pointer) and the lines' second
  bowing; a name's free-spot test looks only at nearby marks (grid).
- Off screen (on_visible, or the window not shown) nothing runs: no
  settling (it waits and goes on when back), no pulses, no drawing, no
  web rebuilt as the world changes every few seconds.
- Markers follow the web once still, not each step; a dragged node is
  drawn at most every 120 ms while the web settles round it.

tests/orch_map_graph_perf.test.luau on the 100-thread fleet: settles with
no script error (was: time budget exceeded), 4 layouts; 10 s off screen
with status changes: 0 draws, ~4 ms of script (was 7 draws, ~890 ms).
2026-11-15 17:17:02 -08:00
Daniel Katulevskiy
623ffa292d
Progress: a note being written rolls at most 20 s, then a still mark
The roller beside a note being written (a row's refreshing, or What's up?
asked) rolled for as long as the row said so; a host that never wrote the
note back kept it rolling forever. Whether it refreshes is now one
selector (it flips only when it really changes), and after SPIN_MAX
(20 s) the roller gives way to a still refresh mark until the note comes
back or it's asked again. (The roller itself plays only while it shows.)
2026-11-15 17:17:01 -08:00
Daniel Katulevskiy
111b1ef1b0
Progress: each unit reads its row, session and context through selectors of its own
Every Progress unit's bindings read the shared row table (and through it
every session and the engine's rows), so one thread's change ran every
unit's clocks, note and activity again. Each unit now holds its row, the
parts of its session it shows (title, agent, activity) and its context in
ui.computed selectors; a change elsewhere reruns those lookups and draws
nothing. On the 100-thread fleet a status change reads the clocks 2.5
times, was ~280 (tests/orch_perf.test.luau).
2026-11-15 17:17:01 -08:00
Daniel Katulevskiy
159eff1766
Board: each card reads its thread, row, todo, ask and owner through selectors of its own
A thread's status change ran every card's status line again (a hundred
cards, each reading the whole session list and the progress rows through
several bindings). Each card now derives what it shows in its own
ui.computed selectors (owner, place, lead row, lead status, todo, ask,
stalled, word, steps, clock): a write anywhere reruns those few small
lookups, and a card's bindings only when its own value changed.

Adds ui/orch_perf_fixture.luau (the Control room on a 100-thread fleet),
ds/orch_perf_trace (plain run counters) and tests/orch_perf.test.luau:
one status change works out 1 card's line, was ~440.
2026-11-15 17:17:00 -08:00
Daniel Katulevskiy
7e521114f2
zgx orchestration: join sessions and orchestration once per value, not once per reader
ds/orch_data's chats, orchestrators, crew_by_chat, items, open_asks and
needs are kept per input value (weak-keyed: a state hands every reader the
same table), so the dozens of computeds that join a sessions push share one
walk of its 700-odd chats instead of each cloning the archived rows again.

Sandbox, Control Room, 3 sessions pushes: sessions-caused script
161 -> 45 ms, total 405 -> 284 ms, worst frame 257 -> 119 ms.
2026-11-15 17:15:53 -08:00
Daniel Katulevskiy
0968f67de6
zgx chat: say what's kept of let-go chats only when it changes
Every chat view switch logged "kept chats let go of: N, M MB", often the
same line three times in a row (533 lines in 20 minutes live). Said again
only when the count or size (to 0.1 MB) changes.
2026-11-15 17:12:11 -08:00
Daniel Katulevskiy
8d542d472a
Merge zeron/anr-fix (status animations step at 10/s off macOS) 2026-11-15 17:10:40 -08:00
Daniel Katulevskiy
d0c41b876a
zgx Control Room: current-cell and hue-dot pulses step on the status clock off macOS
ds/status grows a shared stepper (status.step/unstep, status.Stepped,
status.sine_at): an element set at each 100 ms step while it shows, a
watchdog restarting the clock if what started its timer went. The Control
Room's breathing cell (orch_cells) and hue dots (orch_hue) use it off macOS
instead of 30 fps anime loops that kept the Linux event loop spinning.

Sandbox, Control Room open, idle: ~48% -> 7% of a core; no clip plays.
2026-11-15 17:10:04 -08:00
Daniel Katulevskiy
caf7d09182
zgx status: rings and pulsing dots step on one shared 10 Hz clock off macOS
A 30 fps anime loop on Linux keeps zgx's event loop turning between its
frames (a frame that draws nothing asks no frame callback, so the next
redraw is handed out at once): one working ring on screen held the main
thread at ~50% of a core, idle. Off macOS the ring sets its shaderTime and
the dot its opacity from one ui.every(100) clock that runs only while one
shows, so the loop sleeps between steps. macOS keeps its baked loops.

Sandbox, same data, plain chat page with one ring showing: 53% -> 6% CPU.
2026-11-15 17:06:39 -08:00
Daniel Katulevskiy
499eac2698
Merge branch 'zeron/map-visibility' into zeron/orchestrators 2026-11-15 16:34:57 -08:00
Daniel Katulevskiy
7e99545428
zgx Map: Show chats (Active only, Active + recently finished, All), one rule for every view
ds/orch_map_visibility: visible(chat, now, ctx) -> "show" | "fade" |
"hide" with an opacity, context(orch_now, mode?, window?), filter(list,
now, ctx), and the person's choice (ui.persist control_map_show, default
"recent", an hour). Always shown: an orchestrator's or the Brain dump's
own chat, a chat at work or asking, unread (done or failed, unseen), with
an open ask not put off, or on a card in Review. "Recent" fades a chat
through the window's second half, then hides it; "Active only" hides it.

The shared model applies it, so the Graph, Topology, Timeline and
Machines views (and the Control room's Machines widget) keep the same
rule: a hidden chat leaves its machine, its lines and message dots with
it; a fading one carries its opacity. The page's Map world carries the
choice and a minute clock, and Topology's and the Graph's layout caches
key on each chat's verdict, so nothing keeps a hide. The Map's menu has
Show chats. Settings offers 4 hours among the windows (the default).

The sample's long-finished titlebar chat is idle and seen (no unread
output), as the Map's tests meant it; their own world is judged at the
sample's time.

Tests: ui/tests/orch_map_visibility.test.luau; settings_orch at 4 hours.
2026-11-15 16:16:23 -08:00
Daniel Katulevskiy
78498ffc25
Crew auto-archive: 4 hours by default; an untouched 12 reads as 4
The default idle window is now 4 hours. A setting the person chose is
marked (crewIdleHoursSet, written by updateSettings with a window); a
stored 12 that was never chosen (the old default written along with
another setting) reads as 4, and any window the person chose stands.
2026-11-15 16:16:23 -08:00
Daniel Katulevskiy
663750158c
Merge branch 'orch/perf-map-progress' into zeron/orchestrators 2026-11-15 15:41:37 -08:00
Daniel Katulevskiy
290b82108b
Merge branch 'zeron/ask-split-compound' into zeron/orchestrators 2026-11-15 14:55:25 -08:00
Daniel Katulevskiy
a77389ba7c
Asks: split a compound decision without slicing at shifted offsets
split_compound and split_top found their verbs and separators in a
Unicode-lowercased copy and sliced the original with its offsets; a
letter whose lowercase is longer ("İ") could shift them off a char
boundary and panic the engine. They lowercase ASCII only (the same bytes
at the same offsets) and slice with get().
2026-11-15 14:52:50 -08:00
Daniel Katulevskiy
dc7e170309
Merge branch 'zeron/ask-split-compound' into zeron/orchestrators 2026-11-15 14:42:16 -08:00
Daniel Katulevskiy
151438496a
Asks: a compound decision is one ask per choice
A thread's turn ended "The Topology variation pick and the graph-label
decision (accept round 9 or keep iterating) are still waiting on you."
That was one question, so the person's later Topology pick answered it
whole and R9 got no ask.

turn_question::split_compound splits "the A and the B … are still
waiting" into one decision per subject, each with its options from its
own parenthesis. The start's pass for cards in Now takes each thread's
latest decision since its first card in Now was delivered, judges each
part on its own (reply_answers), and raises the unanswered ones as asks
with stable ids (chat, message, part) on the card each belongs to: the
one whose title shares the most words with it ("R9" and "round 9"
alike), else the thread's first card in Now. A part answered since
closes any open ask for it. A live turn end splits the same way. A part's
turn is <message>#<part>; its close by a reply finds the message.
2026-11-15 14:41:44 -08:00
Daniel Katulevskiy
13e08933e2
Merge branch 'zeron/ask-lookback' into zeron/orchestrators 2026-11-15 14:31:02 -08:00
Daniel Katulevskiy
6ea8c7754e
Asks: look back for a card's pending decision; a pointer to Needs you is no question
The start's pass for cards in Now judged only a thread's latest reply
and the outcome texts, so a decision a thread asked before moving on to
other work (R9 on 9ad131f1) got no ask. Now a card's pending decision is
the most recent one its thread asked since the card's delivery (within
its last 50 messages), however much other work came after, still raised
only when no later message answers it (reply_answers).

"The engine-rebuild question is still waiting for you in Needs you." had
read as a new decision: a plain statement that points to a question
already asked (Needs you, an ask) is now none. And a turn-end ask is not
raised over an open ask the chat raised itself in the same words.
2026-11-15 14:30:28 -08:00
Daniel Katulevskiy
92b73410da
Map Graph: a layout fits its time on a big fleet
Each mark's place and reach is worked out once per layout, and marks,
names and the points along lines and rims are filed in a grid of 32px
cells: a bow, a detour, a name's place looks only at what is near it,
still tested exactly. On the live fleet a layout took over 50 ms (the
script's budget, so it never finished and was tried again every frame);
it now takes about 23 ms.
2026-11-15 14:23:58 -08:00
Daniel Katulevskiy
9e4a5a7515
Control room: the Map's Graph and Progress stop pegging the UI thread
Map Graph: the layout (islands, names, lines routed round them) is worked
out only when what it is made from changes: the view, the pointer, the
theme, every mark's place, name and state, every machine's heading and
load. A pulse no longer restarts the settling: it runs a loop of its own
that only draws again, the pulses moving along the lines already laid.
What only a test reads (each pulse's distance off its path) is worked out
only while a test asks (`control_map_graph_trace`). The hover card no
longer fails on a Map narrower than the card.

Progress: rows, the chats they're joined with, the orchestrators and the
crew are each worked out once for what they're made from, not once per
row and field and open ask; a reader still follows their sources.

Transcript: the waiting line's working word no longer calls a function
not yet defined.
2026-11-15 14:06:37 -08:00
Daniel Katulevskiy
13bbb5091b
Merge branch 'zeron/answered-leaves-needs' into zeron/orchestrators 2026-11-13 18:13:52 -08:00
Daniel Katulevskiy
96675adfcf
Needs you: a failed answer's reason wraps under its chips 2026-11-13 18:11:28 -08:00
Daniel Katulevskiy
a0a770d8b0
Decision overlay: stay open until the person closes it
It no longer closes when a frame of the engine's state lacks its ask (it
keeps the ask as last seen), Escape closes it directly, and a close the
modal makes on its own within 250ms of opening (its focus scope not
taken) is let go once.
2026-11-13 17:55:09 -08:00
Daniel Katulevskiy
a427a61f87
Needs you: an answer is said answered only once the engine takes it
A pick shows "Sending" with Undo through its 5s window and stops counting
toward Needs you's total and urgent figures (and the sidebar's) at once.
Once the engine takes it, "Answered · <answer>" shows for 2.5s and the
row slides out; an answer the engine still lists open comes back after 30s.
A refused, failed or timed-out answer or defer undoes the pick: the chips
come back with "Couldn't send your answer: <reason>" and Retry.

Answered asks go to a folded Recent answers list at the foot of Needs you.
The Control room fixture stands in for the host per mode (this build, a
refusing engine, an app without the answer action, an engine from before
options) and gains republish and asks-gone fixtures for the overlay tests.
2026-11-13 17:55:09 -08:00
Daniel Katulevskiy
d344629e71
Orchestration answers and defers fail plainly and fall back for older apps and engines
orchestration.answer and defer wrap the host call: a missing host action
falls back to the answerAsk/deferAsk op (the answer as plain words, the
option's label and any words after a dash), an engine that refuses the
option or calls the answer empty is asked once more with the plain words,
and a call with no reply in 15s is rejected as a timeout.
2026-11-13 17:55:00 -08:00
Daniel Katulevskiy
66d87d5789
Merge branch 'zeron/ask-for-hand-moved' into zeron/orchestrators 2026-11-13 17:45:58 -08:00
Daniel Katulevskiy
a06a564688
Board: a card moved by hand into Now still gets its decision ask
The start's pass skipped every card marked as moved by hand, so a card
the Brain dump had moved into Now that was still waiting on a decision
("Map machine headings: decide R9") got no ask. The mark keeps a
card's column, never its question: after re-stating, every routed card
in Now (marked or not; not approved) whose thread's latest reply to it,
its route's outcome or its own outcome text waits on a decision gets
its ask raised on it, unless a message since the asking one answers it
(reply_answers), which closes any open ask for it instead. Its column
is left as it is. The raise-or-close step is shared with the Review
re-statement.
2026-11-13 17:45:20 -08:00
Daniel Katulevskiy
4f34e371ee
Merge branch 'zeron/scratchpad-scroll' into zeron/orchestrators 2026-11-13 13:38:37 -08:00
Daniel Katulevskiy
857c3b691e
Scratchpad: typing always works, an engine without it is said plainly
The notes were read-only until the engine's first Scratchpad frame, so an
engine without the Scratchpad (an older build) refused every key without a
word. Now the notes always take typing; the host says when the engine
refuses the watch, and the widget says so ("Scratchpad needs the engine
update; your text isn't saved", or the app update for an app without
it), reading Not saved. What was typed is kept, never overwritten by the
engine's first copy, and saved once the engine has the Scratchpad.

The wheel follows the Map's web: a plain scroll over the Scratchpad is the
page's; pressed into, Notes and the drawing take it until Escape or a
press elsewhere lets it go (the drawing also when the pointer leaves it);
Cmd/Ctrl-scroll and a pinch zoom the drawing.

Screenshot runs can type into a field (`:target:text`).
2026-11-13 13:36:10 -08:00
Daniel Katulevskiy
64c7ed8926
Brain dump: the Scratchpad only when the person asks for it
The person's Scratchpad is theirs: the Brain dump writes or appends to it
only when explicitly asked ("add this to my scratchpad"), and otherwise
routes ideas as before (something for later is a Later card). The tools
say the same.
2026-11-13 13:36:03 -08:00
Daniel Katulevskiy
2cae879d2a
Scratchpad: a wheel over it scrolls the Control room until it's in use
The notes kept a wheel over them even unfocused, and the drawing took
every wheel to pan, so scrolling the page stopped dead over the widget.
Now the notes hand an unfocused wheel to the page (focused, they scroll
themselves and keep it, as the composer does), and the drawing pans and
zooms only once pressed, while the pointer stays over it.
2026-11-13 13:36:03 -08:00
Daniel Katulevskiy
5f31dd8471
Merge branch 'zeron/decision-ui' into zeron/orchestrators 2026-11-13 13:30:50 -08:00
Daniel Katulevskiy
f221603e3c
Orchestration: read a Brain dump update's question before saying it, so its ask lands with it 2026-11-13 13:14:37 -08:00
Daniel Katulevskiy
4bf526deea
Orchestration: an ask's pictures read without following links, named by content, https only
The copy opens the file once through a pinned descriptor (no link followed),
checks that handle and reads no more than the cap. Stored pictures are named
by their SHA-256 and written without clobbering, so two never share a file.
Remote pictures are kept only for https to a public name: no IP literals,
local or bare names, or credentials.
2026-11-13 13:14:37 -08:00
Daniel Katulevskiy
af276e359c
zgx: asks reach Luau with their pictures, scores, pick, links, context and deferral
orchestration.answer_ask({ id, option?, text? }) answers with a 1-based
option and/or words; orchestration.defer_ask({ id, until? }) puts an ask
off until a time in Unix seconds, or brings it back.
2026-11-13 13:13:54 -08:00
Daniel Katulevskiy
89370abe66
Orchestration: store an ask's pictures, answer with an option, defer and bring back
Pictures an ask names are copied into the uploads store when it is raised
(pictures only, at most 15 MB, from the thread's folder); URLs pass through.
answerAsk with an option delivers its label and any words; deferAsk (the
person's) hides an ask until its time, when the engine clears it and
banners once. Tool asks get the asking message as their turn when it ends.
The MCP ask tool takes options with images and scores, a recommendation,
links and context; answer_ask takes an option.
2026-11-13 13:13:54 -08:00
Daniel Katulevskiy
702179cd1e
Asks carry pictures, scores, a recommendation, links and context; read them from a turn's end
Ask and AskOption gain images, scores (ordered), recommendation, links,
context and deferredUntil, all optional on the wire. AnswerAsk takes an
option; DeferAsk puts an ask off. The turn-end detector now reads lettered
variants (lists or table rows, number columns as scores), option detail,
pictures (markdown, paths, brace patterns) and who they belong to, the
recommendation and its why, branch and PR links, and the message's summary.
2026-11-13 13:10:57 -08:00
Daniel Katulevskiy
6a0c3c9f1a
zgx: decisions in the Control room: compact chips with Undo, the whole of one in an overlay
Needs you and a board card waiting on a decision show its question in a
line and its options as chips, the recommended one ringed and starred; a
chip answers at once with Undo for five seconds. The question or the
expand opens the overlay: the question, whose and when, links, context,
options as cards with pictures (the lightbox), scores and the
recommendation; 1-9 and a click choose, Enter decides, Defer puts it off.
A card waiting on a decision, or an ask's thread name, opens the thread
at the message that asked. A deferred ask's card says Deferred.
2026-11-13 13:10:41 -08:00
Daniel Katulevskiy
d56744eb27
zgx: answer an ask with an option and put one off, through the bridge's answer_ask and defer_ask
orchestration.answer(id, { option?, text? }) (option 1-based) and
orchestration.defer(id, until_ms?). ds/orch_decide keeps a pick in its
Undo window before it is sent and reads an ask's options, scores,
recommendation and pictures; data.needs leaves a deferred ask out until
its time.
2026-11-13 13:10:08 -08:00
Daniel Katulevskiy
b9d31cf13b
zgx: open a chat at one of its messages, scrolled there and lit a moment
route.open_session(id, { message }) takes the chat's transcript to that
message (an ask's turn) near the top of the view and lights it with the
accent, fading over about two seconds. An open chat just jumps; a message
not in the rows yet is gone to as the history brings it; scrolling first
lets the jump go; an unknown one leaves the latest. Without a message,
nothing changes.
2026-11-13 13:10:08 -08:00
Daniel Katulevskiy
1b09458301
Merge branch 'zeron/settle-answered-asks' into zeron/orchestrators 2026-11-13 13:09:52 -08:00
Daniel Katulevskiy
76fd371f78
Asks: a relayed message answers a question only when it addresses it
A thread's pending decision was taken as answered by any message that
reached it after the asking turn, in a turn-end ask's close and in the
start's backfill. Now:
- a message no agent relayed (the person in the thread, the Needs-you
  answer, an answered ask's delivery) answers it;
- one relayed by the Brain dump or an orchestrator answers it when it
  names one of the question's options (no model), else when the cheap
  one-shot model says it answers or decides this very question;
- unsure, no, or no model: the ask is raised or kept, so a pending
  decision is never lost. A verdict is kept per chat, question and
  message, so a message is judged once.
2026-11-13 13:09:26 -08:00
Daniel Katulevskiy
0005cea2e2
Merge branch 'zeron/fc-drop-overlay' into zeron/orchestrators 2026-11-13 13:05:32 -08:00
Daniel Katulevskiy
3987757329
Control room: Drop to reference rings and washes Capture in the accent while something is over it 2026-11-13 13:05:03 -08:00
Daniel Katulevskiy
4380879e19
Board: the start raises no ask the person already answered
The start's backfill (settle_card_states) raised an ask for a card left
in Review waiting on a decision. It now raises none when a message
reached the thread after the message that asked (the person's reply in
it, a relayed answer, an answered ask's delivery: the rule a turn-end
ask's close by a reply follows), and closes any open ask for it as
answered in the thread, with that message. Nor for a card approved or
moved by hand. The thread getting newer work is no staleness signal on
its own: an unanswered question is still raised.
2026-11-13 12:59:01 -08:00
Daniel Katulevskiy
2f417a28c7
Merge branch 'zeron/floating-composer' into zeron/orchestrators 2026-11-13 12:53:59 -08:00
Daniel Katulevskiy
1f274ae2b3
Merge branch 'zeron/fc-drag' into zeron/floating-composer 2026-11-13 12:49:35 -08:00
Daniel Katulevskiy
1a50307067
Control room: the Map's Graph drags references by a grip
The node under the pointer (a thread, an orchestrator, a machine's tab)
shows a grip beside it; dragged, it is a reference to the node for
Capture's composer. A plain drag still places the node, and the space
still pans: the field keeps its press, so the grip sits over it, outside.
2026-11-13 12:49:19 -08:00
Daniel Katulevskiy
8474961a78
Merge branch 'zeron/fc-float' into zeron/floating-composer 2026-11-13 12:48:06 -08:00
Daniel Katulevskiy
ffa3adc33e
zgx: floating composer test scrolls back up over the right column
Scrolled down, the page's middle is now the Scratchpad's notes, which keep
a wheel over them (overscroll contain) once anything has been pressed, so
a wheel there never moved the page.
2026-11-13 12:47:57 -08:00
Daniel Katulevskiy
b05ca81d2e
Merge branch 'zeron/fc-drag' into zeron/floating-composer 2026-11-13 12:44:37 -08:00
Daniel Katulevskiy
48edaaaf56
Merge branch 'zeron/fc-float' into zeron/floating-composer 2026-11-13 12:42:59 -08:00
Daniel Katulevskiy
c73af1cfc7
Brain dump: Review verdicts only while routing, on cards in Review as the person dumped, once each, judged on the whole sentence 2026-11-13 12:42:59 -08:00
Daniel Katulevskiy
9da46f45da
Control room: drag anything onto Capture to reference it
Board cards, Progress rows, the Map's threads, orchestrators and machines,
Comms, Q&A and Needs-you asks are drag sources carrying { ref = ... }
(ds/orch_ref); a Board card's one payload also keeps its column move.
Capture's drop zone alone takes them: a chip per ref, once each, sent as
the dump's refs, never as attachments.
2026-11-13 12:41:15 -08:00
Daniel Katulevskiy
0bde8102df
zgx: the floating composer opened out sits on a panel of the menus' glass
Its model footer inside the panel, a collapse button in the panel's head
instead of the knob over its corner (the knob shows bare only), and the
page under it no longer reads through.
2026-11-13 12:40:04 -08:00
Daniel Katulevskiy
832ef77271
zgx: Control room composer floats at the page's foot when Capture scrolls away
One composer in two places: scrolled up out of view, Capture's composer
floats bottom-centre (one line, a knob counting what it carries); the knob
opens it out (chips, model), Escape folds it back. Draft, chips and model
are the same state (LaneTab.Composer mirror), the keys follow it between
the two, and the slot's session stays watched until its last placement
goes. It is its own drop zone, rises over a toast stack beside it, and
Cmd+Shift+K (Cmd+K is Search) or a bare / focus it wherever it shows.

Fixture ui/control_float_fixture.luau for its pictures; tests in
ui/tests/control_floating_composer.test.luau.
2026-11-13 12:40:04 -08:00
Daniel Katulevskiy
1aad77c641
Brain dump: a reply on an @card in Review approves it or asks for changes, in the person's words 2026-11-13 12:39:58 -08:00
Daniel Katulevskiy
c69389af27
Brain dump: an @ask is answered in the person's own words, quoted from the dump 2026-11-13 12:35:29 -08:00
Daniel Katulevskiy
50a6af306c
Brain dump: references the person attaches to a dump
A dump carries refs (cards, chats, orchestrators, devices, asks, Q&A and
comms entries), cleaned and listed to the Brain dump in a fenced block. A
route names one as reference: a reply on an ask answers it through the
AnswerAsk path, a comment on a card goes to its thread (else its
orchestrator, else its detail), a chat or Q&A follow-up goes to that chat,
and a device is the placement hint for a new thread or card. The MCP route
tool takes reference.
2026-11-13 12:35:29 -08:00
Daniel Katulevskiy
7febfb3ae1
Merge branch 'zeron/review-means-you' into zeron/orchestrators 2026-11-13 12:34:58 -08:00
Daniel Katulevskiy
f8dfaffb78
Board: Approve or Request changes on a Review card
A card in Review shows Approve and Request changes… under its status
line and in its menu. Approve sends approveItem; Request changes opens
a small box for what to change (put away on Escape or when left empty),
sent with requestChanges to the card's thread. Wired on the Control
room's and an orchestrator's board.
2026-11-13 12:12:14 -08:00
Daniel Katulevskiy
7c07e4b237
Board: Review is finished work for the person to evaluate
Columns, as the person defined them: Now is all work in progress; Review
is finished work that needs their evaluation, saying what to look at;
a pending decision or question is an ask (Needs you) on a card still in
Now; Done is finished with nothing for them; Blocked is failed.

A task route's state was read backwards for its card: a turn that ended
while its thread still worked (a background build, subagents, todo
left) filed the route Answered, and Answered meant Review; so did a
thread's progress message to the Brain dump. Now Answered is Now. A
finished turn whose last message waits on a decision (turn_question::
detect, a borderline one settled by the cheap model) keeps its route
going: its card stays in Now, the question one ask on it. Else what it
leaves to evaluate (an open pull request, a result it asks to be
checked, screenshots of what landed) is the route's review: its card is
in Review, its outcome starting "Review: <what>". Nothing: Done.

Review has an end: approveItem (Done, approvedAt recorded, kept Done)
and requestChanges (the text to the card's thread, the card back in
Now), the person's alone.

Threads on an older host (one without turn-end asks, like a 0.3.2
engine) now get their questions raised by the engine that launched them
(a dump of its own routed to them, or their orchestrator runs there),
once their transcript has synced; the ask's id (chat and message) keeps
it one.

At start, a routed card left in Review by the old rule, never moved by
hand, is re-judged once: Now while its thread works; Now with the ask it
never got when its thread's latest reply to it, its route's outcome or
its own outcome text waits on a decision; Review when something is left
to evaluate; else Done.

"Waiting on your decision." stays a decision whatever its paragraph
says next, and a bare "Recommend …" after a question keeps it open.
2026-11-13 12:12:14 -08:00
Daniel Katulevskiy
7a776cc8c4
Merge branch 'zeron/scratchpad' into zeron/orchestrators 2026-11-13 12:11:49 -08:00
Daniel Katulevskiy
a4f0b1c7d0
Control Room: a Scratchpad widget with Notes and Draw
Markdown notes with live styling and preview, and a native canvas board
(pen, box, ellipse, arrow with an elbow, text, select/move/resize/delete,
colours, undo/redo, pan and zoom). Autosaves through one debounced path
with a quiet saved/syncing state, takes remote edits live, and restores
earlier versions from a history menu. Part of the widget set; expands to
a full page with Notes and Draw side by side.
2026-11-13 12:03:32 -08:00
Daniel Katulevskiy
db19d3b423
Scratchpad: a synced document of notes and drawings for the Control Room
The person's long-term ideas, notes and diagrams, kept apart from work:
nothing written here routes or makes an item. A Markdown body plus a
renderer-agnostic drawing layer, stored as registry rows (parts sized for
the room's op limit, tagged so a torn write is never stitched in), with
50 snapshot slots folded to about one a minute per editor for undo and
restore. Scratchpad / WatchScratchpad RPCs; scratchpad_read, _write and
_append tools: the Brain dump edits, orchestrators and crew read.
2026-11-13 12:03:32 -08:00
Daniel Katulevskiy
3b8b5368e1
Merge branch 'zeron/board-queued' into zeron/orchestrators 2026-11-13 11:51:35 -08:00
Daniel Katulevskiy
94dcbf70d2
Map Topology: Lines or Tags for work on other machines, chosen in the Map's menu and kept per device (Lines the default) 2026-11-13 11:44:55 -08:00
Daniel Katulevskiy
dc3bdc839f
Board: Inbox and Next become one Queued column, Up next and Later
Queued stands left of Now: Up next (planned: real work waiting for its
turn or a slot) and under it Later (inbox: someday, remind me, ideas,
never started on their own), folded until opened, its count on its head
and its fold kept in the Control room. Dragged between the groups a card
changes its state; into Now it starts. Move to offers Up next and Later.
Blocked stands between Now and Review while it holds a card. The ten-card
cap counts Queued as a whole. The engine's states are unchanged; the
Brain dump and orchestrator prompts and the item tools describe inbox as
Later and planned as Up next, and a route's chip and a held card's word
say so too.
2026-11-13 11:35:02 -08:00
Daniel Katulevskiy
caee88442a
Merge branch 'zeron/crew-auto-archive' into zeron/orchestrators 2026-11-13 11:24:59 -08:00
Daniel Katulevskiy
4992b5f5c5
zgx: Settings → Orchestration and a quick toggle for crew auto-archive
Settings → Orchestration: "Auto-archive orchestrator chats" (on) and
"Archive after" (1h, 6h, 12h, 1 day, 3 days, 7 days), the profile's
synced settings written through `updateSettings`; the sidebar view
menu's Orchestrators group has the same switch as "Auto-archive idle
chats". The host passes the settings in the orchestration state.

The view menu's scroll gets an id, so its rows past the window's room can
be brought into view in tests.

Tests: ui/tests/settings_orch.test.luau on settings_orch_fixture.luau.
2026-11-13 11:24:04 -08:00
Daniel Katulevskiy
236ee2d3dd
Orchestration: archive crew threads left idle (a synced setting)
A sweep on each engine (shortly after start, then every 12 minutes)
archives the crew threads it hosts once idle for the profile's window:
chats with childKind crew and a crew row, never an orchestrator's or the
Brain dump's own. Idle from the latest of its creation, its last message,
its last turn's start and end, waiting on its own work, joining the crew,
its last report, and its last unarchive. Kept while working, awaiting
input, waiting on its own work, with an open ask of its, or with its card
in Now or Blocked.

It archives through the chat row as the person's Archive does. Its card
keeps its column; the thread leaves the card's threads and stays as a
chat link. The crew row notes when its chat is seen archived and when it
is seen unarchived again (revivedAt), so an unarchive restarts the idle
time. Each archive is logged with its reason and idle time.

Settings: a synced `orchestrationSettings` row (crewAutoArchive, on;
crewIdleHours, 12, held to 1..720) in the state every engine reads, and
an `updateSettings` op for the person alone.
2026-11-13 11:24:04 -08:00
Daniel Katulevskiy
a09ec043dd
Map Graph: islands sized for the zoom the web was fitted at, never a person's own zoom 2026-11-13 11:15:55 -08:00
Daniel Katulevskiy
295f0d9729
Map Graph: pulses travel their line as drawn, mark edge to mark edge; a zoom never re-settles, and settling is quicker; a renamed machine shows at once 2026-11-13 11:13:52 -08:00
Daniel Katulevskiy
8063c3bab7
Merge branch 'zeron/board-columns' into zeron/orchestrators 2026-11-13 11:07:40 -08:00
Daniel Katulevskiy
a61e825a40
Board: Inbox and Blocked only when held, ten a column, Done cleared at once
Inbox and Blocked stand only while they hold a card (Blocked too while
one is carried, to be put there); the other columns take their room.
Each column shows ten cards, "Show N more" under the rest: one choice
for every column, kept in the Control room as its map view is. Done's
head clears it: every Done card taken off as Delete takes one, its chat
untouched, one Undo putting them all back.
2026-11-13 11:06:55 -08:00
Daniel Katulevskiy
622db752af
Merge branch 'zeron/board-ask-states' into zeron/orchestrators 2026-11-13 03:55:36 -08:00
Daniel Katulevskiy
ddac23cd6d
Board: a card moved by hand stays where it was put
Any card is the person's to move (Move to, or a drag), loose Brain dump
cards and orchestrators' alike; the board and the op already allowed it,
and now the move sticks. An upsertItem that sets a card's state marks it
moved (movedAt) with its route's state then (movedRouteState). Deriving
the card from its route (sync_card, the start's pass, sweeps) keeps its
column while the route's state is that one; once the route moves on (a
failure, a reroute, work finished since), the route's state is the
card's again and the mark is spent.

At start, a routed card that is in another column than its route says,
never marked and not Blocked, was set by hand before the mark existed
(the Brain dump re-stated six live cards so): it is marked, and kept.
Blocked ones whose route didn't fail are still re-derived. Both once.
2026-11-13 03:53:45 -08:00
Daniel Katulevskiy
5789dd918b
Board: a thread's question waits on one card
Waiting on you shows on the card the ask names (its thread's newest
delivery), else the thread's newest card at work; its other cards, Done
or Review, say nothing of it. A quiet ask (a "hasn't answered" chase)
marks no card or Progress row; the bridge passes quiet through.
2026-11-13 03:53:45 -08:00
Daniel Katulevskiy
0883ef7fb7
Board: an ask never blocks a card; it waits on its own card only
A card's state now follows its route alone: Done, Review, Now, and
Blocked only for a failed route. A thread's open ask had made every card
of that thread Blocked, finished ones included. After a restart a
startup chase ("hasn't answered") opened for a few seconds while the
outcome pass filed six finished routes, and its close never re-synced
the cards, so they stayed Blocked.

- A turn-end ask names the card of its thread's most recent delivery
  (a route outcome's ask, that route's card), updated when asked again.
- Closing a chase re-syncs its thread's cards, as other closes do.
- At start, cards Blocked though their route didn't fail are re-stated
  from their route, once (idempotent; a card the person moved stays).
- A chase or a "where should this go?" raised during a turn no longer
  counts as the thread's own ask, which had kept its question from
  being raised.
- A task route's outcome is the reply to its own delivery, up to the
  next route delivered to the same thread (one thread's routes all got
  its newest reply).
- "…are still waiting on you" and "…is still yours to make" read as
  a decision for the person.
2026-11-13 03:53:45 -08:00
Daniel Katulevskiy
3ea8307574
Merge branch 'orch/ui-orchestrator' into zeron/orchestrators 2026-11-13 03:40:03 -08:00
Daniel Katulevskiy
b495789a14
zgx: Zeron v2's record in step with the sidebar's view menu (v3's alone) 2026-11-13 03:39:43 -08:00
Daniel Katulevskiy
b44472bcb3
zgx sidebar: the view menu scrolls when taller than the window; shorter Orchestrators toggles 2026-11-13 03:39:35 -08:00
Daniel Katulevskiy
9603dbd468
zgx: Zeron v2's record in step with the sidebar and lane changes (v3's alone) 2026-11-13 03:36:45 -08:00
Daniel Katulevskiy
a2e18b8ce0
Merge branch 'zeron/qa-direct-tweak' into zeron/orchestrators 2026-11-13 03:36:23 -08:00
Daniel Katulevskiy
1f66c9c000
Q&A: answer passes say what they did; a title isn't an answer
The startup pass and each five-minute sweep log one line: how many chats
and routes were looked at, and how many answers were filled.

A condensed answer that reads as a title ("Board Inbox And Next Columns")
is dropped, and the reply's first real sentence stands. The one-shot runs
on the harnesses' title path, whose system prompt asks for a 3-5 word title
in Title Case and overrides the answer instructions.
2026-11-13 03:35:50 -08:00
Daniel Katulevskiy
380b70ec75
Brain dump: a question with only "please verify" after it stays a question
"In the map it shows Haiku even though Composer has Opus, which one is
correct? please verify" was taken for work: the trailing "verify" read as a
request. A fragment whose only requests are to check the answer (verify,
check, confirm, double-check, look into it) and that asks a real question
of its own is now Direct. Requests to change something stay work, as does a
sentence that is itself the request ("can you check whether CI is green?").

Tests: that question and four like it as positives; every negative stands.
2026-11-13 03:35:50 -08:00
Daniel Katulevskiy
c0db0851c2
zgx sidebar: the Orchestrators section always stands, to make the first; its view menu's Orchestrators and Control room groups 2026-11-13 03:35:17 -08:00
Daniel Katulevskiy
f2642cfc2d
Map Timeline: events always Report, Ask, Failed, Done; a merge step finished is Done 2026-11-13 03:14:11 -08:00
Daniel Katulevskiy
46450fa8d6
Merge branch 'zeron/qa-fixes' into zeron/orchestrators 2026-11-13 03:08:35 -08:00
Daniel Katulevskiy
31e72aed3b
Board test: room for the Board under the taller right column
The new Inbox-to-Now test drags a Board card in a 2600-point window. With
Q&A in the right column, the Board starts lower than that, so the window is
3000 points, as for the Board's other Control room test.
2026-11-13 02:55:16 -08:00
Daniel Katulevskiy
1cc0b2914c
Control room: the thread names index is made again with each Page
Like chats_now, the Map's thread-name index (named) was a ui.computed at
the top of screens/control/page, made inside the first build of the screen
and gone with it once the room was left.
2026-11-13 02:55:16 -08:00
Daniel Katulevskiy
aa65dc2bfa
Q&A: questions still waiting are looked for every five minutes
A reply that synced in after every retry, or that came while the engine
wasn't running and whose thread hasn't ended a turn since, had nothing to
take it in. A sweep of this engine's question routes still delivered now
reads each target's transcript every five minutes, starting after the
startup pass, and records the reply it finds as any other (quietly when
old).

Test: a reply that synced in with no turn end is taken in by the sweep,
with its own time, and only once.
2026-11-13 02:55:02 -08:00
Daniel Katulevskiy
509febd087
Q&A: a question's answer is the first real reply after it
A long-lived thread goes on to other work in the same turn after it
answers, so the turn's last word was often a status line, not the answer.
The answer is now the first reply of the turn that's more than a line
("Looking." aside), else its last text.

An ignored test, live_replay, runs the rule over a copy of a real replica
and an orchestration snapshot, offline and read-only.
2026-11-13 02:54:55 -08:00
Daniel Katulevskiy
ae90ed9910
Q&A: each question has its own reply, answered when written
Several questions sent to one long-lived thread each take the reply that
follows their own delivery (`answer_to`). One sent right before another
message takes the first reply after it. The route's `answeredAt` is when
that reply was written, so answers taken in late (after a restart, or a
transcript that synced in later) say when they came. They are recorded
quietly too: no banner and no Comms line for news older than ten minutes.

The Q&A shows "Answering" only while the thread is on a turn begun since
the question was delivered. A thread busy with something else shows
Waiting. Chat rows carry `turn_started` (the working turn's start) and
routes carry `delivered` for this.

Tests: two questions to one thread and two in a row (answer_to); late
replies taken in, each answering its own question at its own time and
quietly, plus an answer relayed to the Brain dump (engine); Answering vs
Waiting (Q&A).
2026-11-13 02:54:55 -08:00
Daniel Katulevskiy
23f86dfdd6
Progress: what it shows follows again after the Control room is left
screens/control/progress made its chats, the rows it stands in for, every
row and the widget's list as ui.computeds at its top level. Its first
requirer builds a screen (screens/shell/boundary), so those belonged to
that build. Once it was gone (the Control room left) they kept their last
values, and Progress could show nothing working while threads ran. They are
now worked out as they're read. Progress is shared by several screens, so a
rebuild per page would not do.

Test: load the Control room as the shell does, leave and come back, then a
thread starts working and shows in Progress. It failed before.
2026-11-13 02:54:55 -08:00
Daniel Katulevskiy
44c45107a0
Control room: its computeds follow again after the room is left
The shell requires screens/control/page while it builds the screen
(screens/shell/boundary), so a ui.computed made at the module's top level
belongs to that first build. Once the person left the Control room and came
back, `qa_entries` and `chats_now` were gone with the old build and kept
their last values. A Q&A dismissal was saved but the list never changed,
and new answers never showed. Both are now made again with each Page.

Tests load the page as the shell does (control_qa_screen_fixture), leave
and come back, then dismiss (gone at once, still gone after another
remount, back with Undo) and let an answer arrive. Both failed before.
The Q&A fixture's world moves to control_qa_world so both fixtures share it.
2026-11-13 02:54:44 -08:00
Daniel Katulevskiy
a41444e978
Merge branch 'zeron/turn-end-asks' into zeron/orchestrators 2026-11-13 02:54:10 -08:00
Daniel Katulevskiy
f444f29538
Control room: what waits for you counts unread Q&A answers too
data.waiting_for_you takes the Q&A's counts (passed in: orch_qa reads
orch_data) and adds its answers not read yet. The head's "need you"
counts both; Needs you's own figure stays its rows.
2026-11-13 02:51:28 -08:00
Daniel Katulevskiy
ba1df5abc3
Control room: a thread's turn-end question waits on you
An ask raised from a thread's turn end shows under Needs you with its
question, its options and a quick reply, and a way into the thread; one
gone stale unanswered is urgent and leads. The thread's board card says
"Waiting on you" on its status line (in the warning's ink once stale),
and its Progress row reads the same instead of idle or done.

data.waiting_for_you is the one count of what waits on the person; the
Control room's head reads it.
2026-11-13 02:51:27 -08:00
Daniel Katulevskiy
3929efa580
zgx bridge: an ask's origin, turn, escalation and how it closed
origin (tool | turn_end), turn_id, updated, escalated and answered_via
reach the Control room, so a turn-end ask and a stale one read as such.
2026-11-13 02:51:27 -08:00
Daniel Katulevskiy
12ad77d6d0
Turn-end asks: an orchestrator answers only its crew's turn-end asks
An ask a thread raised with its ask tool is the person's (its crew rule
says it asks only what its orchestrator can't decide), and a thread that
left the crew is no longer its orchestrator's to answer for. Both are
checked again where the answer is written.
2026-11-13 02:51:27 -08:00
Daniel Katulevskiy
a952be6a02
Turn-end asks: raise, hand to the orchestrator, close and escalate
At each turn end of a thread orchestration launched (crew, routed or
started by the Brain dump or an orchestrator, their subagents, an
orchestrator itself), a question for the person becomes an ordinary ask
under Needs you. Its id is the chat and the asking message, so a turn
gives one ask; the same question asked again updates (or reopens) it.

A crew thread's ask also goes to its orchestrator as a [Crew ask] turn;
it may answer it with the new answer_ask tool (its own crew's open asks
only). An ask closes when answered from Needs you, when any message
reaches the thread after the asking turn, or when a later turn with no
reply between says it did one of the options. An open ask left 30
minutes is made urgent once and shown again on its thread's host.

It replaces orch/engine-flow's stand-in: ends_on_question reads with
turn_question::detect, and ask_for (a message to the Brain dump, a
route's outcome) raises through the same path, so a thread that says its
question in a message and ends its turn on it has one ask, with options.
2026-11-13 02:51:27 -08:00
Daniel Katulevskiy
fa5f13f725
Turn-end asks: read a turn's last words for a question to the person
A thread that ends its turn on a plain-text decision ("Should I open a PR,
or merge it?") is idle, not awaiting input, so its question lived only in
its transcript. proto/turn_question reads the end of a final message:
decision-shaped questions are asks (with their options), other questions
at the end are borderline for a small model, and closers, rhetorical
questions, self-answered ones and questions put to someone else are not.

Ask gains origin (tool | turnEnd), turnId, updatedAt, escalatedAt and
answeredVia; the orchestrator prompt and a [Crew ask] text let an
orchestrator answer its crew's asks when its goal settles them.
2026-11-13 02:51:24 -08:00
Daniel Katulevskiy
fb314f1edb
Merge branch 'zeron/sidebar-orch-toggle' into zeron/orchestrators 2026-11-13 02:51:02 -08:00
Daniel Katulevskiy
98b4d55a4d
zgx sidebar: Show → Orchestrator chats, to put crew threads away
A checkbox in the sidebar view menu's Show section, persisted with the
other Show toggles (shell_sidebar_show_orchestrator_chats), on by
default. Off, the chats an orchestrator started are left out of the
project and device groups; the Orchestrators section, the Control room
and the Map are unchanged.

Tests: ui/tests/sidebar_crew.test.luau (default on, off hides them by
project and by device, kept for the next launch, the row's checkmark).
2026-11-13 02:49:13 -08:00
Daniel Katulevskiy
e357a38767
Merge branch 'orch/ui-map' into zeron/orchestrators
# Conflicts:
#	apps/zgx/ui/ds/orch_map_model.luau
2026-11-13 02:41:34 -08:00
Daniel Katulevskiy
0a0240fa45
Map Graph: a name's own mark always the nearest to it; leaders faint, short, and clear of other marks 2026-11-13 02:33:32 -08:00
Daniel Katulevskiy
afb786b558
Merge branch 'zeron/crew-thread-names' into zeron/orchestrators 2026-11-13 02:28:52 -08:00
Daniel Katulevskiy
736fac3cf1
Merge branch 'orch/ui-board' into zeron/orchestrators 2026-11-13 02:26:37 -08:00
Daniel Katulevskiy
0f07d5a19e
Merge branch 'orch/inbox-next' into zeron/orchestrators
# Conflicts:
#	crates/engine/tests/crew_reports.rs
2026-11-13 02:26:37 -08:00
Daniel Katulevskiy
e14d4906a0
Merge branch 'orch/engine-flow' into zeron/orchestrators 2026-11-13 02:23:51 -08:00
Daniel Katulevskiy
2f3656306f
zgx Map: one name for a thread in every view (ds/orch_name)
A crew thread is called by its own title, else its role in the crew,
else its board item's title, else "Crew thread" and its id: in the
Map's Machines, Topology, Timeline and Graph, the Control room's
Machines, an orchestrator's crew and the sidebar's crew rows. A crew row
whose chat isn't heard yet, or has no title of its own, was drawn as a
bare dot.

The sample's side chats and crew carry `name` as the host's rows do;
orch_map_fixture's map_crew_names draws the case the Map got wrong.
2026-11-13 02:23:15 -08:00
Daniel Katulevskiy
7369baa36b
Crew threads: named from their first write
createChat takes the chat's title and writes it on the row it creates,
and the Zeron MCP's create_chat passes it there instead of renaming the
chat after it has joined its crew. A crew thread is never listed
untitled, by the Map, the sidebar or a peer, while its first turn runs.
A Cloud chat, whose row its machine's host may write, is still renamed
after.
2026-11-13 02:23:14 -08:00
Daniel Katulevskiy
f3b7bec3c7
A crew thread's message to the Brain dump answers only the route its card came from 2026-11-13 02:23:04 -08:00
Daniel Katulevskiy
7ab37ad152
Map Graph: names shortened in two steps at a word or hyphen, the full name first 2026-11-13 02:22:40 -08:00
Daniel Katulevskiy
314523f448
Merge branch 'zeron/anchored-hover-cards' into zeron/orchestrators 2026-11-13 02:21:43 -08:00
Daniel Katulevskiy
d4a67aa7ad
Board: a started card stays within its crew's policy; steadier crew report tests
A card's thread starts only on a device its orchestrator's crew may use,
and a crew thread runs with no more sandbox or access than its
orchestrator, whoever starts it. A full crew's queued card is checked
against the crew's devices before it waits. Two crew report tests wait
for what they check instead of racing it.
2026-11-13 02:20:59 -08:00
Daniel Katulevskiy
18363abaf9
Map Graph: a leader's name beside its mark; clear leaders only; names step out before shortening; crossing a line costs more 2026-11-13 02:16:01 -08:00
Daniel Katulevskiy
ee0475d08b
Merge branch 'zeron/orchestrators' into orch/engine-flow 2026-11-13 02:15:43 -08:00
Daniel Katulevskiy
4a67f9be0a
Agent messages to the Brain dump are outcomes or updates wherever they land; routes to older hosts are answered; unanswered questions are chased 2026-11-13 02:15:40 -08:00
Daniel Katulevskiy
a24c9080b1
Map Timeline: a legend in two groups that names only what's drawn (Done its own mark, Merged only for a merge); crew rows never blank 2026-11-13 02:09:53 -08:00
Daniel Katulevskiy
394943981d
Merge branch 'zeron/orchestrators' into orch/inbox-next 2026-11-13 02:06:01 -08:00
Daniel Katulevskiy
a92474bf61
Board: Inbox and Next hold what waits, and starting a card gives it a thread
What the person says should wait becomes a card instead of a thread: later,
someday, remind me, next week go to Inbox; after X, once Y is done, then,
low priority go to Next. Cards keep the project they're about (spaceId,
deviceId) and start there.

startItem starts an Inbox or Next card: a thread in its project with the
card's title and detail as the first prompt, linked on the card and
recording the card it was started for. The person moving a card with no
thread to Now does the same. An orchestrator starts only its own cards,
and when its crew is full (maxRunning) the card stays in Next saying why
(waiting); when a slot frees, the most urgent, oldest waiting card starts.
A crew thread create_chat can't start for a full crew waits in Next too.
2026-11-13 02:05:58 -08:00
Daniel Katulevskiy
a56460c35b
Board: an Inbox or Next card carried into Now, or Start now, starts it; waiting cards say their project and when they're queued 2026-11-13 02:04:29 -08:00
Daniel Katulevskiy
c1be515fc8
Board cards carry where they start and why they wait (space_id, device_id, waiting) 2026-11-13 02:04:26 -08:00
Daniel Katulevskiy
9ddcf9c0c0
Map Graph: a name never on another or on a mark, kept close, off the rims, shortened at a word only as a last resort; lines broken round names without stubs 2026-11-13 01:59:26 -08:00
Daniel Katulevskiy
11f41cccc5
Control room: tests for anchored part hover cards
control_hover_cards: a chip's card under the chip, staying put as the pointer
crosses into it, Open opening and closing it, click-to-pin surviving the
pointer leaving and another chip, Escape, an outside click and the chip again
letting it go, Tab and Enter reaching Open; the answer line's card and the
text's, hanging from the word. control_receipt: the chip's menu from a
secondary click.
2026-11-13 01:58:23 -08:00
Daniel Katulevskiy
5a87d2dca1
Control room: part hover cards hang from their chip, line or word, not the pointer
Capture's part card sat on an unseen box that moved to the word under the
pointer on every move, and went as the pointer left the text: the card
jumped word to word and was gone before the pointer reached Open.

ds/hover_card gains Anchored, the one hover card with actions: it hangs off
its anchor's box (zgx's placement, flipping and clamped to the window), stays
while the pointer crosses into it, pins on a click on the anchor until a click
outside, Escape or the anchor again (one pinned at a time, no other card over
it meanwhile, focus in it for the keys), and closes as an action in it leaves.

Capture's route chips now show their part's card and pin it on a click (their
menu is the secondary click's, the Menu key's, Shift+F10's); the answer line's
card and the text's are on Anchored too, the text's hanging from the word the
pointer rested on and moving only after a rest on another.
2026-11-13 01:58:23 -08:00
Daniel Katulevskiy
75290097d0
Merge branch 'zeron/control-room-qa' into zeron/orchestrators 2026-11-13 01:57:46 -08:00
Daniel Katulevskiy
204cca1f81
Merge branch 'zeron/sidebar-crew-threads' into zeron/orchestrators 2026-11-13 01:56:06 -08:00
Daniel Katulevskiy
4a933f3e94
zgx sidebar: list crew threads under their project, marked by orchestrator
The sidebar listed only top-level chats and hides orchestrators' own
chats (they have their own section), so an orchestrator's crew threads,
which the host keeps under the orchestrator's chat, showed nowhere.

They are now listed in their project and device like any chat, once,
with the orchestrator's hue dot after the title ("Started by <name>" on
hover). Untitled, a thread is named by its crew role, then its board
item's title. The Orchestrators section is unchanged; side chats stay
unlisted; an archived crew thread stays hidden, as the host gives none.

Tests: ui/tests/sidebar_crew.test.luau on sidebar_crew_fixture.luau.
2026-11-13 01:55:21 -08:00
Daniel Katulevskiy
19a94c763d
zgx sessions: a side chat's row carries its project, branch and own title
A crew thread (a chat an orchestrator started) is listed under the
orchestrator's chat in `children`, and that row had no project, so
nothing could list it under one. Child rows now carry `project` (a known
spaceId, as a top-level row's), `branch`, and `name`, the chat's own
title alone (nil while untitled), so a caller can fall back otherwise.
2026-11-13 01:55:21 -08:00
Daniel Katulevskiy
bd9bb34739
Control room Q&A: its state in ds/orch_qa, a link that names its thread
The read and dismissed marks, the opened entries and the "show all" toggle
now live in ds/orch_qa beside the entry model, so the page only feeds it
the dumps. The thread link reads "Go to <thread>", so it no longer shares
the receipt's "Open <thread>" label. The quiet line lines up under the
question's words. Two Control room tests get room for the taller right
column: the Board's dump test window, and the scroll-hold test's offset.
2026-11-13 01:54:35 -08:00
Daniel Katulevskiy
0bf4b3ebae
Map Graph: no name dropped (shortened instead); lines and rims break round names; a firmer heading backing; an empty island fits its one line 2026-11-13 01:54:02 -08:00
Daniel Katulevskiy
8638b523ef
Map Graph: a heading along the top clear of lines and other rims; long names shortened; islands sized to their threads; idle words wrap 2026-11-13 01:41:31 -08:00
Daniel Katulevskiy
1387e32eb8
Map Graph: headings over a soft backing, lines running on under them; rims whole but for the heading; islands as wide as their heading; names kept on their island 2026-11-13 01:35:22 -08:00
Daniel Katulevskiy
671ab6face
Control room: Q&A, each question asked and its answer waiting
A new widget under Needs you lists every question the person dumped,
newest first. Each entry shows the answer from the thread it went to (a
preview, or the whole reply rendered as markdown when opened), a link into
that thread, when it was asked and answered, or that it is still waiting.
Unread answers are the only filled cards and carry a dot. Opening an entry
or its thread marks it read. Where the pointer rests, an entry can be
marked read or unread, or dismissed (with Undo). Read and dismissed marks
are kept per device (ui.persist `control_qa`), and opened entries are kept
in named states. Entries are keyed and never reorder, so answers arriving
change them in place.

In Capture, a dump's question parts are also washed in their hue, like a
highlighter.
2026-11-13 01:35:17 -08:00
Daniel Katulevskiy
ff6e29c4cf
Brain dump: a question tag only for what the person wants answered
The router's `question` intent now means a direct question the person
wants answered. Its prompt says so, and a deterministic check of the
person's own words (zeron_proto::direct_question) only takes the tag
away: work asked in a question's shape becomes a task, a rhetorical
question becomes info. The bridge marks each route `direct` with the same
check, which also covers routes from before it.

A route also keeps when its first answer came (`answeredAt`), for the
Control room's Q&A.
2026-11-13 01:35:17 -08:00
Daniel Katulevskiy
027ce79f49
Map Graph: a machine's heading always on top, a hairline round it, its figure the one load sign; quieter leaders; an empty machine says so 2026-11-13 01:26:50 -08:00
Daniel Katulevskiy
9769d69faf
Map Graph: a machine is a header tab on its island's rim (its mark, name and load), the island's middle left to its threads 2026-11-13 01:19:24 -08:00
Daniel Katulevskiy
c3600e66a2
Merge branch 'orch/ui-map' into zeron/orchestrators 2026-11-13 01:14:46 -08:00
Daniel Katulevskiy
92167461ed
Map Topology: a rail across machines keeps a column of its own; where an elbow passes another rail, that one breaks 2026-11-13 01:14:46 -08:00
Daniel Katulevskiy
17429fed66
Merge branch 'zeron/board-card-declutter' into zeron/orchestrators 2026-11-13 01:13:03 -08:00
Daniel Katulevskiy
9b767edbc8
Board cards: a title and one quiet line
A card is its title (two lines at most, a long one clamped) and one line:
its orchestrator's hue, then only what says something: urgent or high as
a word, how its thread stands (working, stalled, needs you, failed), its
todo's cells once a step is done, and one clock. Its menu's "…" shows on
hover; right-click, drag and click are as before. The card's look lives
in ds/orch_card for other Control room cards to share.
2026-11-13 01:11:31 -08:00
Daniel Katulevskiy
4b444d368a
Routed tasks name their board card in a few words
The Brain dump's route takes a short title for a task (3 to 6 words, as
an item title reads) and the card takes it; the routed message stays the
card's detail. A route without one (an older Brain dump) still gets a
title made from its message.
2026-11-13 01:11:31 -08:00
Daniel Katulevskiy
6b580c98b6
Merge branch 'orch/ui-map' into zeron/orchestrators 2026-11-13 01:10:01 -08:00
Daniel Katulevskiy
a1c2e91e60
Map Topology: a machine's "Nothing running" sits right of a rail running past it, never on it 2026-11-13 01:10:00 -08:00
Daniel Katulevskiy
9978236430
Merge branch 'orch/ui-map' into zeron/orchestrators 2026-11-13 01:07:39 -08:00
Daniel Katulevskiy
1c4f599a2c
Map Graph: every line meets both its marks, at their outline; names kept in the field; the live shape as a fixture 2026-11-13 01:07:39 -08:00
Daniel Katulevskiy
a52a717b8e
Control room: a scrolled page keeps its place
The Control room's page scroll and an orchestrator page's live state kept
their offset as the scroll's own state, made as the page is laid out. A
page made again (Settings or a thread opened from it and Back, the
orchestrator a moment unknown while the host publishes) opened at its top,
and a page whose content was short for a moment (widgets built again) had
its offset clamped and written back, so it stayed at the top once the
content returned.

ds/kept_scroll keeps the place in a named state of the page's own and
takes only the person's moves as the place (wheel, press, scrolling keys,
or further down than it was); a move the view makes alone to fit is not,
and the place comes back as the content grows to hold it.

Tests: ui/tests/control_scroll_holds.test.luau.
2026-11-13 01:05:58 -08:00
Daniel Katulevskiy
e4b7624de9
Merge branch 'orch/ui-map' into zeron/orchestrators 2026-11-13 00:51:09 -08:00
Daniel Katulevskiy
77fabc144e
Map Graph: a route round names tries every name in its way 2026-11-13 00:51:09 -08:00
Daniel Katulevskiy
c6d4f59c87
Map Graph: a long dashed route swings wider round a name 2026-11-13 00:48:34 -08:00
Daniel Katulevskiy
0f2e8b4c9f
Map Graph: a name keeps off its own line in where it can; detours never hook back 2026-11-13 00:46:24 -08:00
Daniel Katulevskiy
689c8be43d
Map Graph: a line a name sits on goes round it, in two joined curves 2026-11-13 00:42:25 -08:00
Daniel Katulevskiy
4a7114f80e
Map Graph: a name hung aside always has its leader; names keep further off lines 2026-11-13 00:36:03 -08:00
Daniel Katulevskiy
5a5263e29f
Merge branch 'orch/ui-progress' into zeron/orchestrators 2026-11-13 00:32:02 -08:00
Daniel Katulevskiy
e90bc360ba
Map Graph: machine names give way to working threads' names; leaders that read 2026-11-13 00:31:58 -08:00
Daniel Katulevskiy
b768c71e05
Progress clocks tick by the minute, quietly 2026-11-13 00:30:48 -08:00
Daniel Katulevskiy
719c5a4589
Merge branch 'orch/ui-board' into zeron/orchestrators 2026-11-13 00:28:51 -08:00
Daniel Katulevskiy
6b6b5fe6da Cards can be removed from the board 2026-11-13 00:28:41 -08:00
Daniel Katulevskiy
5e38b72470
Board cards have a menu, and can be deleted 2026-11-13 00:28:27 -08:00
Daniel Katulevskiy
da25be9ca3
Map Graph: a working thread's name steps out with a leader rather than drop; clear of its own ring 2026-11-13 00:27:07 -08:00
Daniel Katulevskiy
aaba113a6a
Map Graph: waiting threads named too, quiet names cut no line, lines bowed round names, a calmer amber 2026-11-13 00:23:00 -08:00
Daniel Katulevskiy
176d450640
Map Graph: working threads keep their names, lines bow round marks they don't join, names off the rims, a finer load arc 2026-11-13 00:17:03 -08:00
Daniel Katulevskiy
d8fe1de2c0
Header counts what the blocks show 2026-11-13 00:16:41 -08:00
Daniel Katulevskiy
384380a19b
Merge branch 'orch/ui-map' into zeron/orchestrators 2026-11-13 00:14:06 -08:00
Daniel Katulevskiy
0d14f9cb11
Map: a secondary click on a thread, an orchestrator or a machine opens its menu in every view (the sidebar's chat menu without Delete, the Map's Open, Stop, What's up? and Pin to Progress; an orchestrator's own; a machine's Rename) 2026-11-13 00:13:39 -08:00
Daniel Katulevskiy
98e0cf4cb4
Done today means since midnight, on the board and in the Control room's count: one helper (orch_data.shown_today) 2026-11-13 00:13:03 -08:00
Daniel Katulevskiy
4d4e02e65b
Map Graph: machine names outside, facing out; names wrap rather than cut; each kind of line bowed its own way 2026-11-13 00:12:10 -08:00
Daniel Katulevskiy
fe86416798
Merge branch 'orch/ui-board' into zeron/orchestrators 2026-11-13 00:09:37 -08:00
Daniel Katulevskiy
70e0739fe6
Add to board on a chat's menu; a card made from a dump shows that dump in the Control room 2026-11-13 00:08:15 -08:00
Daniel Katulevskiy
22dd8c28eb
Merge branch 'zeron/orchestrators' into orch/ui-map 2026-11-13 00:07:59 -08:00
Daniel Katulevskiy
14757103fe
WIP map menus 2026-11-13 00:07:59 -08:00
Daniel Katulevskiy
ee1b147976
Sessions: a chat working with (or waiting on) background agents is listed as any; streamed changes list what whole lists do; replay tools for an engine's recorded lists 2026-11-13 00:07:54 -08:00
Daniel Katulevskiy
962c00b842
Map Graph: room between marks, machines at their islands' middle, names off the lines, load in length 2026-11-13 00:07:11 -08:00
Daniel Katulevskiy
0c2177e1f0
Merge branch 'orch/ui-progress' into zeron/orchestrators 2026-11-13 00:06:22 -08:00
Daniel Katulevskiy
11d7427d3c
Merge branch 'orch/progress' into zeron/orchestrators 2026-11-13 00:06:22 -08:00
Daniel Katulevskiy
dcca7326b2
Progress: a unit's time left and last step under its clock, its steps' count by its cells 2026-11-13 00:05:14 -08:00
Daniel Katulevskiy
c97207196e
Progress for chats on older hosts 2026-11-13 00:03:53 -08:00
Daniel Katulevskiy
0236d1b82a
Board's first-run fixture: its done cards are today's whatever the clock says 2026-11-13 00:03:15 -08:00
Daniel Katulevskiy
0dde6ea1b9
Progress: What's up? and the menu at the end of a unit's line, its note across under it 2026-11-13 00:02:49 -08:00
Daniel Katulevskiy
a80e74760e
Merge branch 'orch/ui-polish' into zeron/orchestrators 2026-11-13 00:02:35 -08:00
Daniel Katulevskiy
57ec28dcd7
Capture's model is the Brain dump's: its picker shows the chat's own, a pick is the chat's at once, and a dump carries it as config 2026-11-13 00:02:18 -08:00
Daniel Katulevskiy
e7d53b8ac0
Progress shows every working thread: a chat made lately is at it since it was made 2026-11-13 00:01:55 -08:00
Daniel Katulevskiy
ee48c67a1a
Map Graph: islands kept apart whole, names placed first and lines broken round them, quieter marks 2026-11-13 00:01:34 -08:00
Daniel Katulevskiy
a6d1442eac
Progress shows every working thread 2026-11-12 23:59:56 -08:00
Daniel Katulevskiy
6336ba73d8
Routed tasks land on the board
Every task route the Brain dump delivers gets one card linked to its thread
and route, following it (Now, Review, Done, Blocked) with the route's answer
as its outcome; addToBoard puts any chat on the board. A dump may carry the
person's pick for the Brain dump (agent, model, reasoning), checked and kept
on its chat.
2026-11-12 23:58:54 -08:00
Daniel Katulevskiy
2ec9e1ecb2
A chat's menu is its own module (screens/shell/chat_menu): the sidebar's as before, anywhere, Delete left out where asked 2026-11-12 23:57:23 -08:00
Daniel Katulevskiy
a9e55ebd0e
Capture takes dropped chats and files 2026-11-12 23:54:59 -08:00
Daniel Katulevskiy
4c0c6dbb1c
Map: nothing archived shows, an orchestrator or a thread, in any view 2026-11-12 23:53:01 -08:00
Daniel Katulevskiy
c17fe6204a
Map Graph: a plain scroll is the page's; the Brain dump an orchestrator's size, quieter 2026-11-12 23:47:24 -08:00
Daniel Katulevskiy
033cd0768f
Map Graph: machines as islands, leaders over their crews, names that keep clear 2026-11-12 23:44:45 -08:00
Daniel Katulevskiy
7f6dc0c1e5
Merge branch 'orch/ui-polish' into zeron/orchestrators 2026-11-12 23:13:12 -08:00
Daniel Katulevskiy
a31286fe61
Receipt: every part says what came of it 2026-11-12 23:12:58 -08:00
Daniel Katulevskiy
f9fd83f2d8
Map Graph: its card says only what there is; the fixture stands in for chat lanes 2026-11-12 23:11:18 -08:00
Daniel Katulevskiy
6180eb4afc
Map: started_by from the host puts a thread under who started it (the Brain dump, or the orchestrator that spawned it) 2026-11-12 23:08:54 -08:00
Daniel Katulevskiy
6da9c12c7e
Merge branch 'zeron/orchestrators' into orch/ui-map 2026-11-12 23:08:11 -08:00
Daniel Katulevskiy
d0359f02f7
Map: Graph, everything at work as a web (machines, orchestrators, the Brain dump, threads; what runs where, leads what, started what), draggable, pan and zoom, settles still 2026-11-12 23:08:11 -08:00
Daniel Katulevskiy
b3c48f016f
Merge branch 'orch/engine-flow' into zeron/orchestrators 2026-11-12 23:07:50 -08:00
Daniel Katulevskiy
9bb7ea1a0e Routes report outcomes: every delivered route takes its target's reply as what came of it, each turn until done; a routed thread's message back to the Brain dump is its outcome and wakes nothing 2026-11-12 23:07:21 -08:00
Daniel Katulevskiy
3c318b999b
Map: chats of no project, and those finished in the last half hour, under their machine; Comms name every party (a thread not yet made by what it is) 2026-11-12 23:04:57 -08:00
Daniel Katulevskiy
b2dab4320c
Capture's composer: the model alone in its footer (LaneTab.Composer's footer option); Zeron v2 takes the session head's progress line 2026-11-12 23:03:02 -08:00
Daniel Katulevskiy
46858d3390 Dumps carry files: the Brain dump sees them, the dump records them, and a route forwards them to the work it starts (staged as uploads for another device) 2026-11-12 23:01:51 -08:00
Daniel Katulevskiy
7181ed2710
Map: a thread's state is its session's (a remote thread's turn ending reads idle in every view; its state named on each row) 2026-11-12 23:00:17 -08:00
Daniel Katulevskiy
94bc1bc370
Map: what the Brain dump started hangs under it (from its dumps' routes, or a chat's started_by), dashed, across machines 2026-11-12 23:00:17 -08:00
Daniel Katulevskiy
c493ea3cc0
Capture is the chat composer 2026-11-12 22:59:25 -08:00
Daniel Katulevskiy
a4bcef3aa7
Chats record who started them: startedBy (the Brain dump with its dump and route, or the orchestrator for its crew) 2026-11-12 22:54:34 -08:00
Daniel Katulevskiy
d5286da5c4
Merge branch 'orch/engine-flow' into zeron/orchestrators 2026-11-12 22:29:12 -08:00
Daniel Katulevskiy
0726f96367
Brain dump acts: a task with no owner starts a thread in the project it is about; unsure only between two or more owners, and it asks the person where it goes 2026-11-12 22:28:49 -08:00
Daniel Katulevskiy
c4112d727c
Merge branch 'orch/device-names' into zeron/orchestrators 2026-11-12 22:23:23 -08:00
Daniel Katulevskiy
6c982c4c1a
Devices: no two share a name; the newer takes -1, -2…
On boot and on every registry change, a device whose name (trimmed, case-insensitive) an earlier device already has renames its own row to the lowest free <name>-N. Earlier = createdAt (a row without one counts as earliest), tie: the larger id yields. Only a device's own engine renames it, so engines never trade renames and older peers aren't fought; a colliding <name>-N continues the series of <name>. A person's rename to a taken name is numbered the same way; a unique one stays. Cloud machines keep their names.
2026-11-12 22:23:12 -08:00
Daniel Katulevskiy
13fc1905b4
Receipt copies as written 2026-11-12 22:22:30 -08:00
Daniel Katulevskiy
48a8526b4e
Merge branch 'orch/ui-map' into zeron/orchestrators 2026-11-12 22:03:39 -08:00
Daniel Katulevskiy
bb1c74c7c9
Control room test: a machine's name and its platform share a baseline (no 'this one' tag now) 2026-11-12 22:03:30 -08:00
Daniel Katulevskiy
48371b9379
Machine head: this device as a dot, CPU as a ring 2026-11-12 22:03:16 -08:00
Daniel Katulevskiy
fb10a9cdd4
Part card: wide, readable, hugs its content 2026-11-12 22:03:07 -08:00
Daniel Katulevskiy
49022d1e6e
Merge branch 'orch/crashfix' into zeron/orchestrators 2026-11-12 21:55:11 -08:00
Daniel Katulevskiy
2fc886bd5b
Merge branch 'orch/ui-progress' into zeron/orchestrators
# Conflicts:
#	apps/zgx/ui/ds/orch_board.luau
2026-11-12 21:54:40 -08:00
Daniel Katulevskiy
9468f0b56c
Receipt test: the unsure chip's menu from a fresh page 2026-11-12 21:54:18 -08:00
Daniel Katulevskiy
65b99d6cc0
Map labels without the dot 2026-11-12 21:49:53 -08:00
Daniel Katulevskiy
e9e3822d2c
Merge branch 'orch/ui-map' into zeron/orchestrators 2026-11-12 21:48:29 -08:00
Daniel Katulevskiy
7d9ac6d990
Machines: one head, one line, the same in every view (the Map's three and the Control room's Machines): mark, name, platform, a 'this one' tag, a slim CPU meter and its rolling figure 2026-11-12 21:48:14 -08:00
Daniel Katulevskiy
e3db39284a
Board cards always say whose they are 2026-11-12 21:43:13 -08:00
Daniel Katulevskiy
f9757220d4
Merge branch 'zeron/orchestrators' into orch/ui-progress 2026-11-12 21:42:49 -08:00
Daniel Katulevskiy
f979a5686f
Progress: the elapsed clock a stopwatch (each part rolls, the colons stay put); lean lines say stalled with the warning's glyph 2026-11-12 21:41:38 -08:00
Daniel Katulevskiy
b93594020f
Progress tests read the counter's figures cell by cell 2026-11-12 21:36:08 -08:00
Daniel Katulevskiy
c3397bd8d0
Board gallery page: says what the board shows now 2026-11-12 21:34:03 -08:00
Daniel Katulevskiy
e3528b5766
Merge branch 'zeron/orchestrators' into orch/crashfix
# Conflicts:
#	apps/zgx/ui/ds/orch_receipt.luau
2026-11-12 21:33:31 -08:00
Daniel Katulevskiy
5240e41d93
Context menus hang on whole points, so a receipt chip between points no longer closes the app on Wayland
A chip starting half a point in (a centred column of an odd width) hung its
menu from a 1-point box at x.5; the compositor's anchor rectangle came out
-1 wide and Hyprland closed the connection ("Invalid box"). The menu's
point now sits on whole window points (ds/menu_point), a chip opens its
menu from its current element, and a menu with nothing to choose opens no
panel.
2026-11-12 21:33:14 -08:00
Daniel Katulevskiy
7f01706708
Merge branch 'zeron/orchestrators' into orch/ui-board 2026-11-12 21:33:03 -08:00
Daniel Katulevskiy
5435d05d71
Merge branch 'zeron/orchestrators' into orch/ui-progress 2026-11-12 21:33:01 -08:00
Daniel Katulevskiy
d500a47214
Progress: a full unit in three lines (its head, what it's on, its note with What's up?); open and pin from its menu 2026-11-12 21:33:01 -08:00
Daniel Katulevskiy
20a1b347b0
Merge remote-tracking branch 'upstream/zeron/stable-zgx' into zeron/orchestrators 2026-11-12 21:32:31 -08:00
Daniel Katulevskiy
944d2b3fea
Board tests: cards make room while carried and settle at once; drag pictures; a first run's Control room fixture 2026-11-12 21:32:27 -08:00
Daniel Katulevskiy
49a10e04e1
Board: columns in rows of three where six don't fit; a drop lands among its own priority, ordered by those neighbours; clamped lines end in an ellipsis; the carried card keeps its size 2026-11-12 21:32:27 -08:00
Daniel Katulevskiy
94072f0f56
Progress where a thread shows: a line in crew rows and board cards (pinned from its menu), and a working session's in its head 2026-11-12 21:31:12 -08:00
Daniel Katulevskiy
cce7c98d62
Control room: a Progress widget (what's working now, the latest started first, and what's pinned; What's up? asks the host and rests 15 s) 2026-11-12 21:26:42 -08:00
Daniel Katulevskiy
6ce21cedee
Board drag test: a drop in the gutter between columns lands in the nearer one 2026-11-12 21:26:26 -08:00
Daniel Katulevskiy
b72b82b9a3
Merge branch 'zeron/orchestrators' into orch/ui-board
# Conflicts:
#	apps/zgx/ui/ds/orch_board.luau
2026-11-12 21:25:42 -08:00
Daniel Katulevskiy
7708c2a30e
Board: columns share its width evenly, drag tracked by the board, quiet outcomes 2026-11-12 21:25:15 -08:00
Daniel Katulevskiy
e3db88d979
Titles and their counts share a baseline 2026-11-12 21:24:25 -08:00
Daniel Katulevskiy
f8d2623c24
Progress: the bridge (WatchProgress → orchestration.progress, progressCheck), the progress unit (full, strip, chip) and sample rows of each state 2026-11-12 21:23:49 -08:00
Daniel Katulevskiy
fa483a8160
Receipt answers: one line (the engine's condensed answer, its inline markdown drawn) beside its place's name and a way in; the whole reply, rendered, in the hover card; the bridge passes answer_full 2026-11-12 21:21:22 -08:00
Daniel Katulevskiy
ad38211544
Merge branch 'zeron/orchestrators' into orch/ui-polish 2026-11-12 21:18:32 -08:00
Daniel Katulevskiy
b73b6d8dc5
Capture's history: a disclosure row, then an earlier dump a row (how it stands, its words, where its parts went, when), its whole text on the pointer, its receipt opened in place 2026-11-12 21:18:32 -08:00
Daniel Katulevskiy
a21379d58e
Route answers: one line for the receipt from the cheap model (first real sentence until then), the whole reply kept as answerFull 2026-11-12 21:17:31 -08:00
Daniel Katulevskiy
6a40f2e1a0
Machines: the memory meter is drawn, so a reading repaints it without moving anything 2026-11-12 21:15:42 -08:00
Daniel Katulevskiy
15222c1d56
Rolling numbers roll again, each figure inside a clipped cell of its own: paint only, their width fixed 2026-11-12 21:15:01 -08:00
Daniel Katulevskiy
251f6a7941
Merge branch 'zeron/orchestrators' into orch/ui-polish
# Conflicts:
#	apps/zgx/ui/ds/orch_counter.luau
2026-11-12 21:11:15 -08:00
Daniel Katulevskiy
b3f7b5bb1b
Rolling numbers hold still until they're clipped (they painted outside and left ghosts) 2026-11-12 21:10:11 -08:00
Daniel Katulevskiy
9fdccb4100
Merge branch 'orch/ui-polish' into orch/ui-progress 2026-11-12 21:09:58 -08:00
Daniel Katulevskiy
530fac4706
Merge branch 'orch/progress' into zeron/orchestrators 2026-11-12 21:09:08 -08:00
Daniel Katulevskiy
4a83b37acb
Rolling numbers keep their width 2026-11-12 21:08:53 -08:00
Daniel Katulevskiy
25a7479627
Progress: a long tool call isn't a stall 2026-11-12 21:08:52 -08:00
Daniel Katulevskiy
79ace568ea
Receipt: the chips in one row that scrolls sideways; a part's words show its hover card and bring its chip into view; one-line replies 2026-11-12 21:07:16 -08:00
Daniel Katulevskiy
f3f1e7c6c2
Map Topology: an orchestrator leads its crew (its rail drops from its dot, crew indented under it, across machines too; past others' rows by a channel beside them) 2026-11-12 21:05:47 -08:00
Daniel Katulevskiy
9671f42e1a
Progress: progressCheck waits at most 20 s for a fresh note, then replies with the latest 2026-11-12 21:04:48 -08:00
Daniel Katulevskiy
c1ce839bd4
Board cards lose the hue stripe: whose a card is, a quiet dot and name, only where the board mixes orchestrators; crew rows drop their hue dot 2026-11-12 21:03:44 -08:00
Daniel Katulevskiy
05e26bffac
Design: progress, read it and never ask it 2026-11-12 21:03:40 -08:00
Daniel Katulevskiy
6d095adf8f
MCP: progress(chat) for every role, the note fenced; route takes progress for questions about how a thread is going 2026-11-12 21:03:40 -08:00
Daniel Katulevskiy
7f00d55b4c
Progress: the host follows each chat's work (stretch, steps, stall, ETA), writes its row on change, and has a cheap one-shot model write the note, rate limited; progressCheck, WatchProgress, and progress questions answered without asking the thread 2026-11-12 21:03:40 -08:00
Daniel Katulevskiy
8e53159132
Progress: the wire type, its registry kind, WatchProgress, progressCheck and the ProgressCheck command; orchestrators and the Brain dump read progress instead of asking 2026-11-12 21:03:33 -08:00
Daniel Katulevskiy
0c2325dbcd
Sparkline: a short line starts at the left edge and grows, a full one scrolls 2026-11-12 20:59:59 -08:00
Daniel Katulevskiy
b5219ea905
Segmented cells: the current step's light stays on its cell 2026-11-12 20:55:08 -08:00
Daniel Katulevskiy
7a95a9e178
Merge branch 'orch/ui-map' into zeron/orchestrators 2026-11-12 20:51:15 -08:00
Daniel Katulevskiy
eb3e1ba398
Map: the shared live pieces (cells, counter, sparkline, 300 ms hold), CPU lines from the bridge, a merge in the sample's hour 2026-11-12 20:50:20 -08:00
Daniel Katulevskiy
fba54c7def
Merge branch 'orch/ui-polish' into orch/ui-map 2026-11-12 20:45:35 -08:00
Daniel Katulevskiy
77705b0e7b
Merge branch 'orch/ui-polish' into zeron/orchestrators 2026-11-12 20:44:05 -08:00
Daniel Katulevskiy
25dbf67cf7
Control room Map: three views to choose from (Topology, Timeline, Machines), wiring exact at any width 2026-11-12 20:43:24 -08:00
Daniel Katulevskiy
a5a7f2d092
Orchestration sample: a busier world for the Map (four machines, four projects, five orchestrators, the last hour of each thread) 2026-11-12 20:43:24 -08:00
Daniel Katulevskiy
807a1f52ae
Live pieces: a block in the gallery, tests for the hold, the feed, the machines and the blocks; Chinese for the new words 2026-11-12 20:42:52 -08:00
Daniel Katulevskiy
84aa4da01e
Board: empty columns stand slim, a column keeps a card's width, priority at the title's end, marks only where there are some 2026-11-12 20:40:34 -08:00
Daniel Katulevskiy
05ad4227eb
Control room v2: each widget a block of its own; Machines with live CPU lines and their threads; Comms as a feed in bursts; Zeron's status words, cells and 300 ms holds across Needs you, the receipt, the board and the crew 2026-11-12 20:38:35 -08:00
Daniel Katulevskiy
96922cbe3f
Timeline: keep what each chat has been doing for the Control room's map 2026-11-12 20:28:26 -08:00
Daniel Katulevskiy
bf620c95b7
Comms keep every event: each WatchComms frame adds to the feed instead of replacing it; loads carry each device's CPU line 2026-11-12 20:26:52 -08:00
Daniel Katulevskiy
b06e3a987d
Orchestration sample: each device's CPU history, more comms, comms newest last 2026-11-12 20:25:56 -08:00
Daniel Katulevskiy
c29a1166b1
Orchestration live pieces: segmented cells, sparkline, rolling counter, 300 ms minimum presence 2026-11-12 20:25:30 -08:00
Daniel Katulevskiy
71ae151ec2 Comms: a dump shows as the person's message to the Brain dump; WatchComms frames documented (backlog, then new events; dedupe by id) 2026-11-12 20:24:58 -08:00
Daniel Katulevskiy
c5449bd6b8
Brain dump: a dump left routing when its turn ends (or found so after a start) needs the person, its unrouted parts unsure 2026-11-12 20:22:59 -08:00
Daniel Katulevskiy
ea8a435bee Brain dump: a task, priority or cancel for a crew thread goes to its orchestrator 2026-11-12 20:20:59 -08:00
Daniel Katulevskiy
6afba6bf22
Brain dump only routes: no tools that act, its rules in the system prompt and on every dump 2026-11-12 20:08:05 -08:00
Daniel Katulevskiy
4c27aa8253
Orchestrators don't wait on their crew: waiting returns at once and the reports wake them 2026-11-12 19:56:39 -08:00
Daniel Katulevskiy
f0a6fbcfee
Orchestrators design: optional Jev decisions (bring your own key) 2026-11-12 19:45:52 -08:00
Daniel Katulevskiy
a4993fd33c
Merge branch 'orch/engine-flow' into zeron/orchestrators 2026-11-12 19:45:39 -08:00
Daniel Katulevskiy
b948eca6cb Comms: an agent's message to another chat shows in the feed 2026-11-12 19:39:17 -08:00
Daniel Katulevskiy
010d5b7a00 Brain dump: a new one routes on a fast model (Haiku on Claude Code) until the person picks another 2026-11-12 19:38:18 -08:00
Daniel Katulevskiy
493d45f4c5 Orchestration: question routes take the target's reply as their answer, every device shows ask banners once, and answers and retractions stay one line 2026-11-12 19:36:38 -08:00
Daniel Katulevskiy
61ce19e265 Orchestration: agents see only their part of the board 2026-11-12 19:31:38 -08:00
Daniel Katulevskiy
c1d13f859e
Built-in prompts by role in the Zeron MCP's instructions; crew rules ride an orchestrator's sends when they change 2026-11-12 19:29:09 -08:00
Daniel Katulevskiy
b7b360883f
Merge branch 'orch/ui-control' into zeron/orchestrators 2026-11-12 19:27:12 -08:00
Daniel Katulevskiy
f2f8e7ff24
zgx: the map layout's hues typed 2026-11-12 19:26:43 -08:00
Daniel Katulevskiy
352a25624d
zgx: the sidebar's Control room count follows Needs you's one row a chat 2026-11-12 19:26:36 -08:00
Daniel Katulevskiy
79fdda2335
MCP create_chat: crew threads take an item and role and start as the crew policy says; a crew thread's send_message to its orchestrator reports 2026-11-12 19:26:35 -08:00
Daniel Katulevskiy
c444ff798d
zgx: the Control room's Board spans both columns, under them, so its columns stand side by side 2026-11-12 19:25:42 -08:00
Daniel Katulevskiy
2a3315e311
Crew inbox: reports come only from the engine; wakes run on the chat's own settings 2026-11-12 19:25:39 -08:00
Daniel Katulevskiy
4b645d3d2d
zgx: the Map fans an orchestrator's crew out from its trunk
Crew are parallel work: each pill hangs on an arm off its orchestrator's
hue trunk, one row each, its running command beside its title; the
pill-to-pill connectors are gone. An orchestrator's lines are one shape.
2026-11-12 19:24:39 -08:00
Daniel Katulevskiy
5049be51b8
Orchestration: an agent's crew is only threads it started
An agent adds to its crew only chats whose parent is already its own chat: never a reserved hidden chat (by row or by id), an orchestrator, another chat's delegate, or the person's own top-level chat (joining would hide it from their sidebar). An agent's crew createChat of an id that already exists is refused, so the idempotent create can't double as addToCrew. The person still adds any plain thread.
2026-11-12 19:22:56 -08:00
Daniel Katulevskiy
d2dbef7cba
zgx: Needs you lists a chat once: its open ask, with a way into the chat 2026-11-12 19:22:40 -08:00
Daniel Katulevskiy
6b6088a7a8
zgx: the Control room's Board is ds/orch_board, its filter on top and an Inbox first 2026-11-12 19:22:40 -08:00
Daniel Katulevskiy
88a3d0f2ff
Merge branch 'orch/engine-state' into orch/engine-flow
# Conflicts:
#	crates/engine/src/orchestration/report.rs
2026-11-12 19:22:03 -08:00
Daniel Katulevskiy
8444620c32
zgx: a crew thread opens as a chat of its own, from anywhere
The route finds a chat under another (sessions.now.children), so the Map,
crew cards, crew updates, receipt chips and comms all open crew threads;
route.find_chat says where any chat is listed.
2026-11-12 19:21:52 -08:00
Daniel Katulevskiy
aa6e18a24a
MCP: orchestration tools (report, ask, board, items, crew, notes, world, route, dump), listed by the chat's role 2026-11-12 19:21:45 -08:00
Daniel Katulevskiy
02d58eac07
zgx: drop the orchestrator page's unused words 2026-11-12 19:20:16 -08:00
Daniel Katulevskiy
dadeb49eed
Orchestration: rustfmt the new modules 2026-11-12 19:19:43 -08:00
Daniel Katulevskiy
a6657d8dd5
Merge orch/ui-control 2026-11-12 19:19:16 -08:00
Daniel Katulevskiy
79d7c65f22
MCP create_chat: orchestrator and Brain dump roles from rows, not id prefixes 2026-11-12 19:19:09 -08:00
Daniel Katulevskiy
cf5a2480d9
Crew reports: filed as one Crew updates message per stretch, with one coalesced wake; a crew thread's message to its orchestrator is a report 2026-11-12 19:18:34 -08:00
Daniel Katulevskiy
4325cc4f09
zgx: an orchestrator's Needs you is ds/orch_asks; Zeron v2 places the orchestrator dialogs too 2026-11-12 19:18:29 -08:00
Daniel Katulevskiy
8819d5fa27
Orchestration: roles come from rows, not ids; crews and items stay their orchestrator's
The Brain dump's lifted ceiling and every role come from orchestration rows only; an agent can't create a chat with a reserved (Brain dump or voice) id. An agent's crew child must be its own (the caller is the orchestrator and the parent), checked like addToCrew. A report's, ask's, addToCrew's and upsertItem's item and threads stay the caller's orchestrator's; loose items only by claiming them. WatchOrchestration's first frame is the state as it is now. Op tests for every refusal.
2026-11-12 19:18:10 -08:00
Daniel Katulevskiy
c0a8a6b51c
zgx: Control room: earlier dumps' toggle stands flush with the receipt 2026-11-12 19:16:55 -08:00
Daniel Katulevskiy
36fc963bf1
zgx: Control room tests, gallery pages, and Zeron v2 in step
Tests for the receipt (parts, answers, a new dump lighting in turn, an
unsure part placed), Needs you, the Map and the layout. Orchestration's
pieces in the gallery. The map's layout is a module of its own; the
sample keeps a todo's count as it shifts times. Zeron v2's composer and
page take the Control room and orchestrator routes as pages of their own.
2026-11-12 19:16:23 -08:00
Daniel Katulevskiy
da27ea559c
Merge orch/ui-control 2026-11-12 19:15:45 -08:00
Daniel Katulevskiy
df7ac490d1
zgx: board cards read quieter: an empty column stands aside in a side pane, chips and outcomes without button chrome 2026-11-12 19:15:29 -08:00
Daniel Katulevskiy
23bf3df285
zgx: an orchestrator's page: its conversation beside what needs you, its board and its crew; New orchestrator and its settings 2026-11-12 19:14:05 -08:00
Daniel Katulevskiy
64a44dfcb1
zgx: the sidebar's Control room and Orchestrators, Make orchestrator, and their palette commands 2026-11-12 19:14:05 -08:00
Daniel Katulevskiy
b0597b8195
Live activity: labels are redacted and short before they sync 2026-11-12 19:12:21 -08:00
Daniel Katulevskiy
414aee8571
Merge branch 'orch/engine-state' into orch/engine-flow 2026-11-12 19:10:11 -08:00
Daniel Katulevskiy
a02d1a6d2a
Sessions: the host writes what a chat's agent is doing and its todo progress on the session row 2026-11-12 19:10:05 -08:00
Daniel Katulevskiy
4e171f4857
zgx: the Control room
Capture with the newest dump's receipt (its parts underlined in their
destinations' hues, lit one after another as they're placed, a chip per
part to open or move it, unsure parts' likely places as buttons), Needs
you (asks answered in place, chats awaiting input), the Map (machines as
lanes, orchestrators as stations, crew pills on their hue lines, pulses
along them as agents talk), a stand-in Board, Machines and Comms. Two
columns from 1100 points; widgets hidden and moved per device; plugins'
widgets at slot:zeron.orchestration.widgets. ui/control_fixture.luau and
control_page_fixture.luau draw it from the orchestration sample.
2026-11-12 19:09:55 -08:00
Daniel Katulevskiy
b9f86887cc
zgx: an orchestrator's crew as thread cards: status, activity, todo, last report 2026-11-12 19:08:14 -08:00
Daniel Katulevskiy
4c92ff6206
MCP create_chat: an orchestrator's children are its crew; crew threads have subagents 2026-11-12 19:06:07 -08:00
Daniel Katulevskiy
5b17fff2ae
Orchestration: preview scripts can't drive orchestration; window sends only person ops
orchestration.op and orchestration.loads_wanted are refused while a
template is a preview, and the window may send only the person's ops:
report, ask, route and dumpDone are an agent's, through Zeron's tools.
2026-11-12 19:03:32 -08:00
Daniel Katulevskiy
157977a7bf
Engine: orchestration state, Orchestrate ops, comms, loads and wake schedule 2026-11-12 19:02:17 -08:00
Daniel Katulevskiy
dad6e89e95
zgx: board and crew updates wear ds/orch_hue 2026-11-12 19:01:58 -08:00
Daniel Katulevskiy
3c228e6aa8
Merge orch/ui-control 2026-11-12 19:01:28 -08:00
Daniel Katulevskiy
2e7a988053
proto: a new thread or orchestrator route target may have no id yet
An unsure route's candidates name a new thread without one, and a reroute
to a new one asks for it to be made.
2026-11-12 19:01:25 -08:00
Daniel Katulevskiy
c9a02a1aaf
zgx: the orchestration bridge, and each chat's activity and todo
src/orchestration.rs watches WatchOrchestration and WatchComms, and
WatchDeviceLoads while a screen wants it, publishing them to the scripts
in the shape the sample has; orchestration.op forwards one op to
Orchestrate. Session rows carry activity (while working) and todo, and
top rows their parent and child kind.
2026-11-12 19:01:25 -08:00
Daniel Katulevskiy
2020351b84
zgx: the orchestration board: columns, cards, drag to move, priority, outcomes 2026-11-12 19:01:24 -08:00
Daniel Katulevskiy
ec8d91c255
zgx: crew reports are a Crew updates card in the transcript, never a prompt 2026-11-12 19:01:24 -08:00
Daniel Katulevskiy
548f01ee37
Orchestration: crew text can't forge report lines in the wake prompt 2026-11-12 19:01:10 -08:00
Daniel Katulevskiy
2132236d71
Orchestration: activity and todo progress from a running tool call 2026-11-12 19:01:08 -08:00
Daniel Katulevskiy
adafab08ad
Crew updates: a crewReports message part, read leniently, rewritable in place 2026-11-12 18:57:56 -08:00
Daniel Katulevskiy
c59fae4a19
Registry: orchestrators, crew, work items, asks and dumps kinds 2026-11-12 18:55:17 -08:00
Daniel Katulevskiy
1869a228a0
zgx: orchestration account, hue paint and the Control room and orchestrator routes
account/orchestration wraps the host's orchestration state, comms and
loads with the ops the screens use. ds/orch_hue turns an orchestrator's
hue into paint for each scheme; ds/orch_data joins orchestration with the
sessions for drawing. /control and /orchestrator/:id are pages of their
own, as a plugin's is (the orchestrator page is a placeholder).
2026-11-12 18:54:26 -08:00
Daniel Katulevskiy
c7a735012f
Orchestrators: design and wire contract
Orchestrator, crew, board, asks, reports and Brain dump types, the four
orchestration RPC names, Session activity/todo fields, the crew child
kind, and the Luau sample every client screen is drawn against.
2026-11-12 18:44:35 -08:00
295 changed files with 81684 additions and 735 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 269 B

After

Width:  |  Height:  |  Size: 241 B

After

Width:  |  Height:  |  Size: 250 B

After

Width:  |  Height:  |  Size: 230 B

After

Width:  |  Height:  |  Size: 267 B

Some files were not shown because too many files have changed in this diff Show more