Skip to content

Bridge build-out S6 — instruction work-item lifecycle (worker + fleet CLI + harness text) #14372

Done

Description

@dezren39

Bridge build-out S6 — instruction work-item lifecycle (worker + fleet CLI + harness text)

Implements design §4.6. Traces to spec item 5. Depends on S2 (#14369).

Scope

  • Store: fleet_message gains work_task_id INTEGER and work_state TEXT (received → acted | queued → done); note_message gains the same (with its S4 kind/threading fields). Additive migrations only, following the from_addr precedent in fleet.js.
  • New agent verb: POST /fleet/<cred>/work {id, state, task_id?} (CLI: fleet bridge work) by which the receiving agent records that it acted on an instruction in-session, or queued it as a named fleet-queue task, and later that the work is done. Notes instructions reuse the verb shape on the notes surface.
  • Harness contract text: the woken-agent instructions for bridge hooks (hatch-personal scripts/messages-hook/ pattern) and the fleet bridge help/book text state the rule — task it now, or queue it as a repo-task/v1 packet whose context_refs carry the bridge surface + message id + batch, and reply with the task id. An instruction neither acted on nor queued is visible as stuck at received in the owner pipeline.
  • Connector-channel instructions join at received/acted via existing read state (no new fields there — a stated limit of the design, §6).

Acceptance

  • An instruction's lifecycle is settable only by its receiving agent, and only forward through the states.
  • The owner pipeline (S2) shows an instruction at queued with its queue task id, and at done after the agent reports done.
  • The book (pkgs/fleet/book/reference/bridge.md) and the hook instruction text both carry the task-it-or-queue-it rule verbatim-consistent with each other.
  • Worker and fleet tests pass with lifecycle-transition oracles named.

Design of record: doc/2026-11-24_design_message-bridge-buildout.md (PR #14364). Spec numbers below refer to §1 of that doc; design detail is in the section cited per issue.

Filed by Felix's design lane, 2026-11-24. Not enqueued in this pass, per the filing-comment rule: Felix dispatches lanes from the slice index (design doc §7, also posted on #13907).

Activity

  1. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
  2. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    Contributor

    Claimed by lane worker felix (S6 implementation lane, dispatched by Felix 2026-11-24). Worktree branch: felix/14372-bridge-work-lifecycle. PR will be left unmerged for Felix's review.

  3. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    Contributor

    S6 implementation record (lane worker felix): PR #14430 is open and unmerged for Felix's review — work_state/work_task_id on fleet_message + note_message, agent-only forward-only marking via POST /fleet//work and POST /notes/work, pipeline projection + work_state filter on all three surfaces, fleet bridge work CLI verb, and the task-it-or-queue-it rule verbatim in the verb help, the book, and the intake ladder's pushed-command text.

    Verification: worker suite run 45415315197 (head bdf9e34) — 90 tests / 90 pass / 0 fail, the six new lifecycle oracles ok by name. Fleet crates run 45413492007 (cargo test -p fleet-bridge -p fleet-agent) is still in its Execute step ~80 min after dispatch at the time of this record; its result is the one outstanding verification item and is tracked on the PR. The issue's Closes rides on the PR; it should not be treated as fully verified until that run concludes green.

  4. added a commit that references this issue on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions