Dispatcher trial lessons (continues GitHub martha#1043) #11

Open
opened 2026-11-22 05:20:39 +00:00 by mars · 1 comment
Member

Continuation of GitHub macula-io/martha#1043 (the Dispatcher trial), which cannot take comments while GitHub is stopped (DECIDED 2026-11-21 "move all our work off Github").

Purpose (record): the Dispatcher trial's friction and lessons live where the crew can read them, so Martha's dispatcher design can be built from them.

Dispatcher trial friction (Mars, ~07:05 CET), item 4, to post on #1043 when GitHub is back: a VERDICT on a local design file can't be sent as a crew line. The mod refuses doc= unless it is an http(s) URL, so during the GitHub stop the #1041 typed-graph review went as plain text and left no ledger row. A design review either needs a local doc form (a path under ~/.claude/sessions) or must be re-sent once the design is on its issue.

  • crew_worktree_create (Jupiter 11-21 ~12:10): fetches origin unconditionally (core/workspace_worktree.ts:45-47), never refuses offline, and takes no base (always origin/), so it cannot branch from a local head. Goes in Ceres's macula-sponsors issue.

  • 11-21 ~20:10 (Mars): ruled R2 "briefs only" from a grep cut at head -12; the field (DashboardRow.holds) was below the cut. Lesson: before ruling "X does not exist" from a grep, run it without head, or count hits first.

  • 11-22 ~05:00 The mod's sha check only knows macula-io/martha and gh. Every forge port, a forge task id (ci=), or a sha in another repo is refused, so HANDOFFs go as prose without shas (Neptunus, Hygiea, Uranus, Mars all hit it). Needed: the check reads the named repo's forge remote and the forge task API.

2026-11-22 ~08:35 CET (Mars)

  • Port reviews missed a known trap: a cross-repo uses: into a private forge repo fails to expand (station, realm, portal, whiteboard landed with it). Memory had it (forgejo_port_traps). A mechanical check (grep uses: <org>/ outside comments in a port diff) would have caught it. That's a candidate check, so it needs Raf's yes.
  • Port wave + martha batch share one instance runner pool: batch 2 (31 jobs) queued behind ~20 first runs. Dispatcher should order dispatches by what blocks the most, before dispatching.
  • The mod's SendMessage sha check reads the github.com martha clone: forge-only shas in other repos refused unless named by branch. Prose HANDOFFs work around it.
  • Vendoring 'at the same sha' copied old UNFOLDED ci-images files (macula r=1 security FAIL). Brief fix: vendor at the folded ci-images main sha, not the old call sha.

2026-11-22 ~06:20 CET (Mars, real clock)

  • A guarded GitHub-only job still needs a forge runner whose label matches, even to SKIP it; without one the workflow never concludes (realm PR 1, run 1202).
  • A forge run token reads only its own repo: martha-engine can't read private martha files at run time (Risk 1), so it vendors a copy.
  • The forge API has no run-cancel route; capacity relief (queued runs) needs the owner in the web UI.
  • Crew tools read only the github.com origin (forge macula-io/martha#8): batches are hand-built and read by eye.
  • A script checked only with bash -n died on its own flag (git fsck -q doesn't exist in git 2.56.1); its guard stopped the run before anything was written. Check every flag against the real tool before handing a script on.
  • Stamps in the work graph ran ~2h20 ahead of the real clock for an hour; date before each stamp.
Continuation of GitHub macula-io/martha#1043 (the Dispatcher trial), which cannot take comments while GitHub is stopped (DECIDED 2026-11-21 "move all our work off Github"). Purpose (record): the Dispatcher trial's friction and lessons live where the crew can read them, so Martha's dispatcher design can be built from them. Dispatcher trial friction (Mars, ~07:05 CET), item 4, to post on #1043 when GitHub is back: a VERDICT on a local design file can't be sent as a crew line. The mod refuses `doc=` unless it is an http(s) URL, so during the GitHub stop the #1041 typed-graph review went as plain text and left no ledger row. A design review either needs a local doc form (a path under ~/.claude/sessions) or must be re-sent once the design is on its issue. - crew_worktree_create (Jupiter 11-21 ~12:10): fetches origin unconditionally (core/workspace_worktree.ts:45-47), never refuses offline, and takes no base (always origin/<default>), so it cannot branch from a local head. Goes in Ceres's macula-sponsors issue. - 11-21 ~20:10 (Mars): ruled R2 "briefs only" from a grep cut at head -12; the field (DashboardRow.holds) was below the cut. Lesson: before ruling "X does not exist" from a grep, run it without head, or count hits first. - 11-22 ~05:00 The mod's sha check only knows macula-io/martha and gh. Every forge port, a forge task id (ci=), or a sha in another repo is refused, so HANDOFFs go as prose without shas (Neptunus, Hygiea, Uranus, Mars all hit it). Needed: the check reads the named repo's forge remote and the forge task API. ## 2026-11-22 ~08:35 CET (Mars) - Port reviews missed a known trap: a cross-repo `uses:` into a private forge repo fails to expand (station, realm, portal, whiteboard landed with it). Memory had it (forgejo_port_traps). A mechanical check (grep `uses: <org>/` outside comments in a port diff) would have caught it. That's a candidate check, so it needs Raf's yes. - Port wave + martha batch share one instance runner pool: batch 2 (31 jobs) queued behind ~20 first runs. Dispatcher should order dispatches by what blocks the most, before dispatching. - The mod's SendMessage sha check reads the github.com martha clone: forge-only shas in other repos refused unless named by branch. Prose HANDOFFs work around it. - Vendoring 'at the same sha' copied old UNFOLDED ci-images files (macula r=1 security FAIL). Brief fix: vendor at the folded ci-images main sha, not the old call sha. ## 2026-11-22 ~06:20 CET (Mars, real clock) - A guarded GitHub-only job still needs a forge runner whose label matches, even to SKIP it; without one the workflow never concludes (realm PR 1, run 1202). - A forge run token reads only its own repo: martha-engine can't read private martha files at run time (Risk 1), so it vendors a copy. - The forge API has no run-cancel route; capacity relief (queued runs) needs the owner in the web UI. - Crew tools read only the github.com origin (forge macula-io/martha#8): batches are hand-built and read by eye. - A script checked only with `bash -n` died on its own flag (`git fsck -q` doesn't exist in git 2.56.1); its guard stopped the run before anything was written. Check every flag against the real tool before handing a script on. - Stamps in the work graph ran ~2h20 ahead of the real clock for an hour; `date` before each stamp.
Author
Member

Dispatcher trial lessons, 2026-11-22 (Mars). Refs GitHub macula-io/martha#1043.

  1. A menu ORDER is code. Trace each box's state through the old code, then the new, before a rollout order goes to the owner. A fleet menu that enrolled boxes before they pulled the guarded tip would have wedged them (fleet_accept 3).
  2. A red that matches main's can hide that nothing ran. Read which steps were skipped, not only the conclusion (realm: mix test red on main and PR alike, because upload-artifact v4 failed before any test).
  3. A script handed to the owner is frozen (444). A change goes to a NEW file name; an in-place edit can break a run already in progress.
  4. A ruled term can contradict its own aim. Read each term against what it guards before passing it on (git -c http.extraHeader puts a token in argv, against "never on a command line").
  5. A builder's premise needs checking before a red-first test is ordered: a "hang" that is already bounded twice cannot go red; cut the second bound and build the real gap.
Dispatcher trial lessons, 2026-11-22 (Mars). Refs GitHub macula-io/martha#1043. 1. A menu ORDER is code. Trace each box's state through the old code, then the new, before a rollout order goes to the owner. A fleet menu that enrolled boxes before they pulled the guarded tip would have wedged them (fleet_accept 3). 2. A red that matches main's can hide that nothing ran. Read which steps were skipped, not only the conclusion (realm: mix test red on main and PR alike, because upload-artifact v4 failed before any test). 3. A script handed to the owner is frozen (444). A change goes to a NEW file name; an in-place edit can break a run already in progress. 4. A ruled term can contradict its own aim. Read each term against what it guards before passing it on (git -c http.extraHeader puts a token in argv, against "never on a command line"). 5. A builder's premise needs checking before a red-first test is ordered: a "hang" that is already bounded twice cannot go red; cut the second bound and build the real gap.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martha-ai/martha#11
No description provided.