Skip to content

multi-attach R2: the host becomes the only door — wire doors for the standing lanes, keeper over a link, host per state root #66

Closed as not planned

Description

@santoshkumarradha

Status after #653 (2026-09-09)

Landed on dev. The flip: plain aforge chat dials this machine's session host by default and starts one if none is running; --no-host is the escape hatch, and --once, --debug and a first run with no key stay in the terminal (TestAnOrdinaryLaunchTakesTheHostRoad, cmd/aforge/chatv3_local_test.go; manual page staying-on-that-machine). Wire doors for two of the standing lanes: harness designs and subharness cards cross the connection (Lanes{Designs: true, Cards: true, Runs: false} in internal/remote/lanes.go).

Still open. Adaptive runs and their fuel gate do not cross (Runs: false; a hosted conversation is built with no adaptive runner). The keeper over a link does not exist: an engine-backed connection selects one conversation at a time and closes the previous one on switch (closed · <name> — a connection holds one conversation at a time). The host is still per workspace, not per state root.


Follow-up to #52 (R2 in https://github.com/Agent-Field/aforge-v2/blob/dev/docs/design/multi-attach/PLAN.md). Gated on this: today a session behind a connection loses adaptive runs (fuel gate), harness design, subharness cards, browser sign-ins, the consent card's "always", spend ceilings, /harness, task model change, the keeper, cross-project rows on home (cmd/aforge/engine.go 355-441, internal/tui3/host.go 45-110).

  • Wire doors for the standing lanes (designs, orchestrations + fuel gate through the held room, subharness cards, task model change) — the lane docs/REMOTE.md names.
  • Several sessions on one connection so home stays a switcher (the keeper) over a link.
  • One host per state root, or per-engine cwd, replacing the chdir law.
  • Then flip: aforge chat dials the host always; --no-host stays the escape hatch.

Drafted with CodeAF · reviewed and owned by the author

Activity

  1. added
    feature
    area:chat
    area:remote
    on Aug 31, 2026
  2. added
    sev:serious
    on Sep 10, 2026
  3. AbirAbbas commented on Sep 16, 2026

    @AbirAbbas
    Collaborator

    Closing as superseded. The flip this issue asked for landed in #653: a plain launch takes the host road, and harness designs and cards cross the wire. Everything still missing over a connection is tracked by #901's ledger in internal/remote/surfacedoors_law_test.go, which names adaptive runs ("adaptive runs unavailable — this session has no orchestrator"), the harness runner and the standing doors among its 22 entries and ratchets down as they land.

    The keeper over a link and a host per state root were design choices this issue proposed; the shipped shape, one conversation per connection and one host per workspace, is deliberate. #901 is the issue to work from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:chatarea:remotefeaturesev:serious

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions