Skip to content

Agent Flow: sub-agent hangar and the main UFO controlling from the tower (#453) - #454

Merged
aMonteSl merged 3 commits into
v1.3.0from
claude/project-thread-oeo43e
Dec 3, 2026
Merged

aMonteSl merged 3 commits into
v1.3.0from
claude/project-thread-oeo43e

Conversation

@aMonteSl

@aMonteSl aMonteSl commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Requested by Adrián · project thread

Story #453 (epic #319). Design: docs/agent-flow/hangar.md.

What changes

  • Control tower. On a delegate the main UFO docks on top of the test tower (now labelled "control tower") in a new control outfit (headset, turning radar dish) with a radar ring round the cab.
  • Hangar. A vaulted shed beside the tower with one bay per sub-agent out at once (1-4, queued in rows past that) and a launch pad per bay. A sub-agent waits in its bay from its delegate to its first step, taxis to its pad and lifts off on that step, and lands back in its bay when it is done. Doors open while anyone is docked or out; bay lights: amber ready, blue out, red after a failed last step.
  • Radio links. A dashed line in the sub-agent's colour joins it to the agent that sent it; each of its steps sends a packet home.
  • Legends. The hangar and the tower have pinnable cards (sub-agents and their status; runs, last run, how many sub-agents it controls), picked through invisible hit boxes on the raycastable buildings entity.
  • Removed: the pop-out-of-the-main-UFO and dissolve animations and delegateBeam.

All state is derived from the playhead (workersAt docked/controlling, hangarPlan, airfieldAt), so seek, play and step back draw the same airfield; the harness invariant (f) now compares it.

Tests

  • npm test green (1444 + 645).
  • Unit: docked/controlling, bay plan (reuse, queue past four), airfield states, failed bay.
  • Full Agent Flow harness green, new section (g) plus the extended invariant. Screenshots: 21-hangar-docked, 22-hangar-radio-links, 23-hangar-legends.

Note: this branch sits on #449 (one UFO on a delegate), which is still open; its two commits leave this diff once #449 merges. The IDE gets the same commit in a separate PR to ide.


Generated by Claude Code

claude and others added 3 commits December 3, 2026 14:29
… as a 1 m box (#319)

Adrián saw a big grey-violet block in the middle of the city in the demo
video. It is templates/components/livepanel/charts.js, the file the sample
session deletes with git rm. An InstancedMesh starts every instance at the
identity matrix, and setBuildingHeight returns early when the height does
not change, so a file whose height is 0 at the step the session opens on
(deleted by then, or not created yet) was never written: it stood as a
unit box at the city's origin for the whole session. buildBuildings now
starts every building at the zero matrix, like the roofs, ghosts and
floors already did.

The harness asserts that every file with no height at the end of the
sample session is hidden.
…e delegate (#319)

Adrián, watching the demo video: on a delegate, the main UFO and both
subagents' UFOs sat in a pile at the same spot, their name tags on top of
each other. workersAt made a subagent present from the delegate step that
spawned it, and until its first step startSpot parked it 3 cm beside the
main worker. A subagent is now present from its own first step: during the
delegates only the main UFO flies (in its delegate outfit), and each
subagent pops out of it, with the beam, when it starts working.

Unit test updated (absent before its first step, each subagent appearing on
its own first step). Test guide row updated.
…wer (#453)

On a delegate the main UFO docks on the control tower (the test tower) in a
new control outfit with a radar ring. Each sub-agent waits in its bay of a
hangar beside the tower, takes off from its pad on its first step, stays
linked to the tower by a dashed radio line (a packet runs home on each of
its steps) and lands back in its bay when done; the doors close once nobody
is out. The hangar and the tower have pinnable legend cards.

Everything is derived from the playhead (workersAt docked/controlling,
hangarPlan, airfieldAt), so seek, play and step back draw the same airfield;
the harness invariant now compares it. Replaces the pop-out-of-the-main-UFO
and dissolve animations (delegateBeam removed).
@aMonteSl aMonteSl self-assigned this Dec 3, 2026
@aMonteSl
aMonteSl merged commit 02afb7b into v1.3.0 Dec 3, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants