Skip to content

desk-hub deploy: staging-run.sh hub-reads, the staging proof of the registry's reads and the key-bound removal - #569

Merged
SSFSKIM merged 4 commits into
masterfrom
o15-hub-reads
Nov 12, 2026
Merged

SSFSKIM merged 4 commits into
masterfrom
o15-hub-reads

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 12, 2026

Copy link
Copy Markdown
Owner

What

staging-run.sh hub-reads (apps/desk-hub/deploy/hub-reads.ts): the staging proof that was run before production's hub went to the build with the project registry's M2 and the key-bound machine removal. It enrolls and lists two probe machines with the staging admin device and prints one PASS or FAIL line per claim:

  • welcome-projects: each probe's RL1 welcome advertises projects;
  • snapshot-last: each socket gets the projects-all snapshot after its welcome, its pages ending last: true;
  • record-live: a projects record one probe stores reaches the other's socket live;
  • keyed-wrong-refused: a removal bound to a key that is not the posted one leaves the machine held;
  • keyed-removed: a removal bound to the posted key removes it;
  • plain-removed: a removal by name alone removes it.

However the run ends (a failure, SIGINT, SIGTERM or SIGHUP) its cleanup unlists and revokes both probes, and a read-back prints LEFT … for anything still there. Staging only: production is refused by name before a credential is read. The admin device's anchor lock is held for the run, and an anchor with a pending successor is refused.

Why now

The tool was built and used once on 2026-11-11 (six PASS on the build that is now production's) from this branch; it lands so the next hub build has it. Deploy tooling and its tests only: nothing under src/ changes, so no hub build, wire or fixture moves.

Proof

  • apps/desk-hub/test/deploy/hub-reads.test.ts (new) and the adjusted real-member-drivers.test.ts.
  • Class 1a on the head 91721a6: static and probes green in run 43269707286; unit green in run 43271632232. The first run's unit 2/4 was red on test/support/latency-engine-stub.test.ts:136 (expected 2982.776 to be greater than or equal to 2985), the known pacing flake in the debt tracker (2026-10-31 row), on a tree that touches nothing near it.
  • Three review rounds (reviewer-medium) before the staging run; their fixes are the second and third commits (a pending successor refused; an unanswered state POST held open and reported LEFT; SIGHUP cleans up; each invocation scans its own list).

Left

One debt row to write after this lands: listProbe / OrgAdmin.amend do not keep a proposal in the anchor, which is why this tool watches its own POSTs.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)

…hanges shown on staging

`deployment hub-reads` (deploy/hub-reads.ts) enrolls and lists two probe
machines with the staging admin device (reach-acceptance.ts's listProbe) and
prints one PASS/FAIL line per claim: each RL1 welcome lists `projects`, each
socket's projects-all snapshot ends `last: true`, a record P stores reaches Q
live, a removal of P bound to another key leaves it held (the hub's code
printed), one bound to its posted key removes it, and Q's plain removal
removes it. However the run ends its cleanup unlists and revokes both and a
read-back prints LEFT for anything still there. It holds the admin device's
anchor lock for the run (run-lock.ts's takeRunLock, with no signal handler of
its own so interruptible's cleanup still runs), and sweep-leftovers takes its
probes' names for a run killed outright.

proof.ts gains revokeKeyed, the key-bound DELETE ?ref=&pub=, returning the
hub's status. test/deploy/hub-reads.test.ts runs the command against the local
hub: all six pass, and against the suite's older-Registry stand-ins the claims
that build lacks fail while the rest pass, nothing left.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…r, and holds its lock only under its signal handlers

Review findings on ec9a833: the anchor lock alone let the run sign a
successor beside a pending one an admin verb left in keys.json.org.json,
which forks the chain for the admin device; holdAnchorLock now refuses that
anchor and lets the lock go. The token and the device's keys are read before
the lock is taken, so nothing awaits between the lock and interruptible's
SIGINT/SIGTERM handlers and no signal can strand it there.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… its own list, and cleans up on SIGHUP

Review of 2e93c04..82e96d6:
- A probe's listing POST with no definite answer (thrown: a timeout, the
  run's interruption; or a 5xx) may still land as a valid successor. hub-reads
  now watches its person's org-state POSTs (watchStatePosts), refuses every
  later POST while one is open (a second successor of that version would
  fork), and reads the head before and after the cleanup: one the chain now
  holds is settled and the run goes on; one it does not is
  `LEFT <name>: its listing POST had no answer; it may still land …`, and the
  run fails. listProbe and OrgAdmin are unchanged.
- staging-run.sh hub-reads gives each invocation its own scan list (mktemp
  under the state directory, removed by its trap), and a list or log the
  search cannot read fails the step instead of counting as no finding.
- interruptible takes `hangup`, off by default: SIGHUP then runs the cleanup
  as SIGINT and SIGTERM do (129). hub-reads turns it on; no other step's
  behaviour changes.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T17:49:37.412909Z 91721a6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 91721a6 into master Nov 12, 2026
@SSFSKIM
SSFSKIM deleted the o15-hub-reads branch November 12, 2026 17:50
SSFSKIM added a commit that referenced this pull request Nov 12, 2026
…ith the render case over its bound by the owner's ruling; the day's landings, thirteen tracker rows and O7's thinking-text correction

DL 272 records #571's Mac gates and measured cases, the footprint placement, and the owner's ruling "머지 후 바로 여유 회복 (Recommended)", which supersedes the 11-11 row's condition; #561, #569, #570 and the charter's benchmark ruling (dee7575) landed the same day. The tracker gains the registry's M9 to M12 and panel-wave residue, #561's relays row, the paired network-change line, the desk's OrgAdmin.amend row and the unbuilt wire-registry cut; the 11-11 mawsd row gains the placement and the ruling. O7's plan gains a dated correction: MAWS-run sessions carry thinking text since 84ada72.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant