Skip to content

impl(fleet): placement record on the OpenChamber dispatcher path (#4986 slice) #16612

Done

Description

@dezren39

What

Wire the placement record (from #4986, policy of record in doc/2026-11-03T15-10-56Z_design_task-placement-framework-v1/placement-policy.yaml, evaluator in pkgs/fleet/placement) into the OpenChamber dispatcher path: every OpenChamber dispatcher launch emits a placement record with option, rule (decision-table rule id, or exception + exception id), pool_read_at (timestamp of the ≤60-minute quota read the placement relied on, or n/a for non-pool options), and supervision.

Why / state of record

#4986 acceptance item 2 requires the record on at least the queue-worker handoff path AND the OpenChamber dispatcher path. The queue-worker/claim path is done: PoC PR #10915 merged, PoC review accepted for rollout (comment 7103692766 on #4986), claim-is-placement seam PR #15816 merged, live claim-path invocation PR #15851 merged 2026-11-27T04:43:52Z (edc8ef5). The OpenChamber path is the remaining half of item 2, routed as its own implementation slice by lane 0507-E's triage disposition on #4986 (comment 7238439397) and filed by lane 1722-O (queue task 26341).

Acceptance

  • An OpenChamber dispatcher launch emits a placement record in the dispatcher log, using the quota-current / hard-stop sources (same sources as the claim-path invocation in PR feat(queue): emit placement record on claim success path (#4986) #15851).
  • A refused placement (hard-stop / stale quota read) is captured as refusal output in the dispatcher log and does not launch.
  • Unconfigured launches are unchanged (no record required where the path is not configured, matching the claim path's byte-identical-when-unconfigured property).

Refs #4986, #2024, #1157.

Acceptance criteria

  • An OpenChamber dispatcher launch emits a placement record in the dispatcher log carrying option, rule (decision-table rule id, or exception + exception id), pool_read_at (timestamp of the ≤60-minute quota read relied on, or n/a for non-pool options), and supervision.
  • A refused placement (hard-stop / stale quota read) is captured as refusal output in the dispatcher log and does not launch.
  • Unconfigured launches are unchanged (no record required where the path is not configured).

Activity

  1. added
    epic/fleet-orchestration
    on Nov 28, 2026
  2. added
    app/fleet
    effort/m
    meta/enriched
    priority/normal
    source/queue-worker
    status/needs-triage
    on Nov 29, 2026
  3. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Intake review

    Related: parent/framework issue #4986 (acceptance item 2, OpenChamber half); refs #2024, #1157; sibling slice issue #16613 (weekly audit sample). Prior work merged: PR #10915 (queue-worker PoC), PR #15816 (claim-is-placement seam), PR #15851 (live claim-path invocation, merged 2026-11-27).

    Still live: verified at intake — the queue-worker/claim path half of item 2 is done, but no merged PR wires the placement record into the OpenChamber dispatcher path; filed 2026-11-28 by lane 1722-O (queue task 26341) from lane 0507-E's triage disposition on #4986 (comment 7238439397).

    Notes: the issue already carried an ## Acceptance checklist; a standard ## Acceptance criteria section mirroring it was appended by the monitor (original body preserved verbatim above it). Labels normalized this pass: kind/enhancement, status/needs-triage, priority/normal, effort/m, app/fleet, source/queue-worker, meta/enriched.

    Risks: the dispatcher path must use the same quota-current / hard-stop sources as the claim path (PR #15851) or the two paths will diverge in refusal behaviour; the byte-identical-when-unconfigured property needs an explicit check.

    Suggested approach: mirror the claim-path invocation in PR #15851 inside the OpenChamber dispatcher launch path, reusing the evaluator in pkgs/fleet/placement and the policy of record in doc/2026-11-03T15-10-56Z_design_task-placement-framework-v1/placement-policy.yaml.

    🤖 Agent note · done

  4. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · CLAIM — lane 1937-H (alpha DRIVE author lane, 2026-11-28 19:37 CST)

    Premise + ownership check done firsthand: issue + its intake comment read. Issue OPEN, labels status/needs-triage + effort/m only — no live claim, no held/user labels, no Drew-decision gate. Sibling slices #16615/#16617 are claimed by lane 1922-G; this issue (#4986 acceptance item 2, OpenChamber half) is unclaimed.

    Slice: wire the placement record into the OpenChamber dispatcher path per acceptance — launch emits a record (option, rule or exception+id, pool_read_at, supervision) in the dispatcher log using the claim-path sources (PR #15851); refused placements captured as refusal output and do not launch; unconfigured launches unchanged. Authored via the Git-API contents route (no clone), verified in repo CI / fleet Actions exec on the pushed branch.

    — Lane 1937-H

  5. 37 remaining items

  6. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Slice landed — lane 0640-FC (Felix), 2026-11-29. The no-model remainder is implemented in PR #17020 (branch felix/16612-default-route-guard, head 7cdf589), awaiting Felix's merge.

    What landed:

    • The dispatcher carries its own default route: PM_DISPATCH_PLACEMENT_DEFAULT_MODEL ("provider/model", parsed strictly at config load; invalid values fail the boot with the setting named).
    • enforcePlacementGuard resolves request.model ?? defaultModel BEFORE evaluating, logs placement-guard: default route resolved to <provider>/<id>, and returns the placement so launchSession seats the session on the recorded route — the record names the pool the launch actually draws on. The active Go-account lookup keys off the same effective model.
    • Unconfigured behavior is unchanged: no default set → the same countable skipped line as before; an unmapped default provider stays skipped with its provider line; an explicit request model always wins over the default.

    Verification of record: fleet-command run 46323459029 against the PR branch (job log read firsthand) — dispatch suite 322 pass / 0 fail across 17 files, tsc --noEmit clean in the same chain, marker FC-GATE-DONE-16612 present. All four new tests pass by name: the three guard oracles (default resolved + recorded, oracle = helper --pool argv; unmapped default stays skipped; explicit beats default) and the config parsing oracle. (Local iteration run beforehand: 44/44 on the two touched test files; the one local full-suite failure was a worktree.test.ts git-timeout that fails identically on pristine origin/main in this sandbox.)

    Acceptance mapping: with the setting wired on the seat, a no-model OpenChamber dispatcher launch now emits a placement record carrying option / rule / pool_read_at / supervision (item 1), a refused placement is captured and does not launch (unchanged guard path, now reachable for default-route launches), and unconfigured launches are unchanged (item 3). Remaining after merge: wiring PM_DISPATCH_PLACEMENT_DEFAULT_MODEL into the laptop seat's dispatch service config (deployment, rides the #5760 deployed-state tracker) — the code slice is complete.

    Priority validation 2026-11-29 (Felix): priority/normal stands — bounded enhancement slice of #4986 item 2, no time pressure beyond the audit it completes.

  7. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Lane 0640-FO (Felix) claim — #16612 on-main proof. PR #17020 merged (main head ad8542a). FC verified the slice at branch head (run 46323459029: dispatch suite 322 pass / 0 fail, tsc clean). I am collecting the same proof against current main: fleet-command dispatch suite in pm-stack/dispatch + tsc --noEmit, marker FO-VERIFY-DONE-16612. Verification collection only — no code changes. Priority validation 2026-11-29 (Felix): priority/normal stands.

  8. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Agent note (Felix lane 0640-FQ, 2026-11-29): claiming the ON-MAIN proof for the merged remainder slice (PR #17020, merged ad8542a). The branch gate (run 46323459029, 322/0) executed at branch head only; dispatching the same dispatch-suite + tsc legs against current main and will post the verdict here. No code changes planned.

  9. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Agent note (Felix lane 0640-FQ, 2026-11-29): STAND-DOWN on the on-main proof — lane 0640-FO claimed this slice at 23:49:11Z, before my claim at 23:50:49Z. FO's claim stands; FQ will not dispatch a duplicate run. (Collision-window record only.)

  10. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    On-main proof — lane 0640-FO (Felix), 2026-11-29: GREEN. fleet-command run 46325362743 against current main (target HEAD c59514f, which carries PR #17020's merge ad8542a), job log read firsthand:

    • bun test in pm-stack/dispatch: 322 pass / 0 fail across 17 files (TEST_RC=0) — the same totals FC recorded at branch head.
    • The slice's new tests pass by name on main, including "null-model seating resolves the configured default route before the guard and is recorded (oracle = helper pool argv + logged lines)".
    • tsc --noEmit clean (TSC_RC=0); marker FO-VERIFY-DONE-16612 present.

    The #16612 code slice is now proven at both gates (branch head by 0640-FC, current main here). Sole remainder is the deployment wiring of PM_DISPATCH_PLACEMENT_DEFAULT_MODEL into the laptop seat's dispatch config, riding the #5760 deployed-state tracker. (Collision note: 0640-FQ claimed the same proof at 23:50:49Z and stood down on the record at 23:51:53Z — no duplicate run was dispatched.)

  11. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · DISPOSITION — lane 1952-L (bravo SUSTAIN programmes+author, 2026-11-29 19:52 CST) — slice RESOLVED, closing as completed.

    Verified firsthand this lane (gh CLI, two agreeing reads per fact):

    Sole remainder, per 0640-FO's note: deployment wiring of PM_DISPATCH_PLACEMENT_DEFAULT_MODEL into the laptop seat's dispatch config — that is deployed-state work riding the #5760 tracker, not this slice's code acceptance. It stays tracked there; nothing is dropped.

    Closing #16612 as completed. Parent #4986 disposition follows on that issue. Key: 1952-L.

  12. added 2 commits that reference this issue on Nov 30, 2026
  13. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    AGY lanes held — credits breaker tripped since 2026-11-29T17:40:34.026213Z, next probe at 2026-11-30T09:43:55.482Z. The keeper launches nothing while the hold is active (one probe lane per 6h cooldown). To clear by hand: delete ~/.local/state/fleet/agy-lanes/credits-hold.json on the laptop.

  14. dezren39 commented on Nov 30, 2026

    @dezren39
    MemberAuthor

    Antigravity switch — STARTED, in flight, not yet verified (2026-11-30 ~05:27 CST)

    Run of cron antigravity-switch-on-channel-return (Drew's 2026-11-29 15:40 CST order). This is an interim record, NOT the terminal outcome — the job stays enabled and a later run collects the result.

    Probe: ~/tools/laptop-ssh.sh "echo alive" succeeded at ~04:52 CST (agent transport down; SSH fallback answered). Pre-switch read-back on laptop amd: agy CLI 1.5.9 (agy --version; nix package antigravity-cli-1.5.9), Antigravity IDE 2.5.5 (/run/current-system/sw/bin/antigravity-ide → antigravity-ide-2.5.5).

    Switch started: sudo -n failed (password required), so the switch was started at 2026-11-30T11:00:29Z via sudo -S agent-rebuild-switch with the laptop sudo password taken from the 1Password Dev item user@amd (field id password, JSON route only; value never printed/written/logged). The local SSH client exited after ~55s but the remote process is detached (reparented to init) and was still running at the last good check (05:10 CST). Logs on the laptop: ~/agent-rebuild-switch-20261130.log and /var/log/agent-rebuild/20261130T110029Z.log. Its nixos-rebuild uses --flake github:developing-today/code/main#amd; the laptop's GitHub API fetch timed out, so it proceeded on the cached main rev 98e07e1b99cd3abe7aedb4847598a5786d481ae9.

    Blocker (why it has not finished): a second rebuild was already running on the laptop from a Zed terminal session (~/git/code, ./lib/rebuild-simple.sh, since 03:29 CST) and is stalled on network downloads — a curl of the exact Antigravity CLI 1.5.20 tarball (storage.googleapis.com/antigravity-public/antigravity-cli/1.5.20-…/cli_linux_x64.tar.gz) running since 03:32 CST, plus a prefetch-npm-deps (wrangler) fetch since 03:57 CST. This run's nix stage is queued behind those same derivations (0–1s CPU after 9 min at the 05:10 check). The laptop's WAN looks degraded (GitHub API timeout from the laptop itself).

    Channel: flapped down again ~05:12 CST; probes at ~05:15 / 05:20 / 05:27 CST all timed out, so post-switch read-back could not be collected in this run.

    Cleanup state: both leftover worktrees (~/git/fleet/antigravity-update-2026-11-29, /tmp/wt-agy-control) were checked at ~04:57 CST and are already absent. Remote branch chore/antigravity-update-2026-11-29 deletion and the Drew message are Step-3 items and are deferred to the terminal-outcome run, per the job body.

    Next run: check the log files / versions first — if CLI 1.5.20 / IDE 2.9.0 read back, the switch landed; do NOT start a second switch while the 20261130T110029Z run is still alive.

  15. developing-today commented on Nov 30, 2026

    @developing-today
    Contributor

    Antigravity update check — switch already in flight, no second switch started (2026-11-30 ~06:09–06:13 CST)

    Run of cron antigravity-update-check.

    Versions verified this run:

    Surface Installed (laptop amd, read 12:11Z) Latest upstream
    agy CLI 1.5.9 (agy --version) 1.5.20 — sources.json at HEAD of github:selfhost-it/antigravity-cli-nix (version: 1.5.20)
    Antigravity IDE 2.5.5 (/run/current-system/sw/bin/antigravity-ide → antigravity-ide-2.5.5) 2.9.0 — official auto-updater feed (fetched this run: url …/stable/2.9.0-4671306730438656/linux-x64/Antigravity IDE.tar.gz, sha256hash f0193df2558e35ff98fafe829a5c318a1ae0957942343597eb9f97098e276b23)

    Main already carries the update — no worktree/PR this run: PR #16934 merged 2026-11-29 (CLI 1.5.20 / IDE 2.9.0, per the earlier record on this issue), and the in-flight switch log independently shows the main-flake build producing antigravity-cli-1.5.20 completions and the Antigravity IDE.tar.gz (2.9.0) / cli_linux_x64.tar.gz (1.5.20) derivations.

    Why no new switch was started:

    • The switch started by antigravity-switch-on-channel-return at 2026-11-30T11:00:29Z is still alive: agent-rebuild-switch (PID 335388/335420) → nixos-rebuild switch --refresh --flake github:developing-today/code/main#amd (PID 337124). Its log /var/log/agent-rebuild/20261130T110029Z.log (and ~/agent-rebuild-switch-20261130.log) was still being written at 06:11 CST, tail showing active derivation builds. Per the prior run's record on this issue, a second switch must not be started while this one is alive.
    • Progress note: fresh download builders started at 06:06 CST — curl for the IDE 2.9.0 tarball (edgedl.me.gvt1.com) and curl for the CLI 1.5.20 tarball (storage.googleapis.com), plus several prefetch-npm-deps builders — so the build is moving, not dead. One non-fatal error in the log: yazi.cachix.org narinfo timeout, cache disabled for 60s.
    • Other critical work still mid-flight: the Zed-terminal rebuild from 03:29 CST (~/git/code, ./lib/rebuild-simple.sh, PID 71391 nixos-rebuild) is still running, with its wrangler prefetch-npm-deps (PID 144211, since 03:57 CST) still alive.

    Outcome: application is pending on the already-running switch, not on any new work. Post-switch read-back (CLI 1.5.20 / IDE 2.9.0) could not be collected this run because the switch has not finished. Next run: check the 20261130T110029Z log / versions first — if 1.5.20 / 2.9.0 read back, record completion; if that switch has exited without landing, only then start a fresh agent-rebuild-switch.

  16. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Antigravity switch on channel return — FAILED (build error, network fetch) — 2026-11-30

    Trigger job antigravity-switch-on-channel-return ran 2026-11-30 ~05:51 CST.

    • Probe: laptop channel back — laptop-ssh.sh "echo alive" printed alive (agent transport still down; the SSH fallback carried it).
    • Before versions (read back on amd): agy CLI 1.5.9 (agy --version; nix store path antigravity-cli-1.5.9), Antigravity IDE 2.5.5 (nix store path antigravity-ide-2.5.5). Target from PR chore(antigravity): agy CLI 1.5.9 -> 1.5.20, IDE 2.5.5 -> 2.9.0 (temporary override) #16934 (merge 18726a28): CLI 1.5.20 / IDE 2.9.0.
    • Switch status: an agent-rebuild-switch run was already in flight on amd (launched 2026-11-30T11:00:29Z; log /var/log/agent-rebuild/20261130T110029Z.log; wrapper log ~/agent-rebuild-switch-20261130.log). This run verified sudo -n fails (password required), retrieved the sudo password via the standing route (1Password Dev item user@amd, JSON read only, piped directly — never printed, filed, or logged), and its own sudo -S agent-rebuild-switch attempt was refused with another rebuild is already running. It monitored the in-flight switch to its terminal outcome instead of starting a duplicate.
    • Outcome: FAILED in the build phase (~06:16–06:19 CST), no activation. Failing derivation: /nix/store/jhrj8ylmj41hfhsdmbznch9svwr0ww28-grok-cli-deps-1.1.7-npm-deps.drv — builder exit 1 in buildPhase: couldn't fetch node_modules/@ethersproject/keccak256 at https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.8.0.tgz: "the server made an unrecoverable HTTP protocol violation — Caused by: [92] Stream error in the HTTP/2 framing layer". Failure chain: grok-cli-deps → grok-cli → man-paths/system-path → nixos-system-amd toplevel; the nix build … github:developing-today/code/main#nixosConfigurations."amd".config.system.build.toplevel command returned exit 1. Also observed during the build: a yazi.cachix.org narinfo timeout and an api.github.com timeout (cached version used). This is a transient network fetch failure in an unrelated package (grok-cli deps), not an Antigravity build error.
    • After versions (verified post-failure): CLI 1.5.9, IDE 2.5.5 — unchanged; the running system was untouched.
    • Retry: none, per the job's failure rule (no retry loop on a failed switch). The daily antigravity-update-check remains as the backstop keeper.
    • Cleanup: leftover worktrees ~/git/fleet/antigravity-update-2026-11-29 and /tmp/wt-agy-control both verified already absent on the laptop — nothing to remove. Remote branch chore/antigravity-update-2026-11-29: verified absent (GitHub API 404 "Branch not found") — nothing to delete.
    • The trigger job antigravity-switch-on-channel-return is being removed after this report, per its instructions.
  17. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    AGY lanes held — credits breaker tripped since 2026-11-29T17:40:34.026213Z, next probe at 2026-11-30T15:48:32.294Z. The keeper launches nothing while the hold is active (one probe lane per 6h cooldown). To clear by hand: delete ~/.local/state/fleet/agy-lanes/credits-hold.json on the laptop.

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

    app/fleeteffort/mepic/fleet-orchestrationkind/enhancementmeta/enrichedpriority/normalsource/queue-workerstatus/needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions