You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
desk hub: a machine POST's answer names the frames it refused (not-open project) #88
When a machine POSTs a session frame for a project the hub does not have open, the hub refuses it without telling the POST. apps/desk-hub/src/objects/project.tsfromMachineFrame hands it to refuseMachine, which is void this.refusal(ctx, refusal, 'control'): the write is not awaited, it names no frame, the frame is counted as applied, and the POST answers 200. The refusal reaches the machine later, on its stream, if at all.
The machine side (doperpowers sminos, desk-open-fast M6, PR SSFSKIM/doperpowers#302) works around this with per-project epochs, a held list of settlements, and a probe: an empty events frame on the log lane 2 s after the first held message. Two windows remain where a settlement can still be lost:
the control-lane refusal is still undelivered when the probe's answer runs on a project that another hello (archive, follow) re-opened;
the probe's own replies-lane refusal hasn't yet been dispatched by the machine's stream reader when its 200's continuation confirms.
The change
The POST's answer says which of its frames were refused. Either:
per-frame outcomes in the 200 body, {frames, refused: [{index, reason}]}; or
a non-200 such as 409 not-open, with the frames that were applied named.
This is a DX2 wire change plus a hub deploy. The machine's Sender.post_body already reads the answer whole, so the machine side then drops the held list and the probe (a doperpowers follow-up).
Done when
A machine POST carrying a frame for a not-open project gets an answer that names that frame as refused, in the same response.
The hub suites pin it (a frame of a closed project, a mixed POST where some frames apply and some are refused).
DX2's doc states the answer's shape.
Deployed. The hub deploy itself waits for the owner only if it carries a migration or a storage change, which this should not.
Activity
Merge pull request #91 from SSFSKIM/desk-hub-refused-frames
SSFSKIM commentedon Oct 21, 2026
[board] done: merged via PR #91 (7053a99), deployed hub@7053a99f 2026-10-21 02:59Z
desk-hub test: wait for the presence frame before asserting it (fix to …