~ knotless Search/
↑↓ move↵ open⇧↵ all results

socialweb.computer/socialweb-computer-kcp

socialweb.computer: a compute market on atproto (kcp)

1 collaborator
0
0

check-host: say that -role needs -state-dir; plan 0040 roll one

Merged johnandersen777.bsky.social asked to merge into main from socialweb.computer/socialweb-computer-kcp:phase-2
docs/plans/0040-findings.md+15−0
@@ -2018,3 +2018,18 @@ Each: what was seen (with the log), the cause, the fix, its proof.
`deploy/check.sh --fast`. Unproven: a schema-changing roll with the fix (the next promote that rolls from rc180 is
one); the window left between the binding status write (46.292 to 46.315 on bidder-1) and the VW swap (46.338) is
about 25 ms, shorter than a provider's start to its first open watch, but nothing orders the two.
- ROLL ONE: PROMOTE 10 GREEN (rc186, main 688c2105, 2026-11-19 03:20Z to 04:22Z; started by the push). `gate: prod: 30
of 30 PASS`; `==> the prod gate and every staging share are green at 688c2105...` (test-1 11/11, test-2 3/3, test-3
16/16, test-4 13/13: `scripts/ci-staging-total.sh` 43 of 43, exit 0, no rerun); `==> releases/v0.0.0/ holds
main/688c2105.../`; `==> v0.0.0-rc186 is green: stable v0.0.0`; stop: nothing to roll back, exit 0; artifacts kept
(140 of gate-runs). Proof: `knotless run list knotless://socialweb.computer/socialweb-computer-kcp --commit
688c2105f879 --workflow promote --log` (saved ~/.tmp/ci-main/promote-688c2105.log). The export gate (decision 41)
seen on the roll: swc-dev-bidder-1, -2, -3 each logged once "waits for its kinds at the schemas this binary
carries", no "Failed to watch", no ERROR line (journals, 03:21Z to 03:33Z). First `stable()` bucket copy in CI.
- THE DOWNLOAD FIX BY HAND (branch `rc-pins`, not landed): held staging network, 03:29Z to 03:41Z
(~/.tmp/prove-pins/run2/, STATUS.md): from build f534345d, the guest's bidder upgraded to 1f8507e6 at the
ComputeVM's appearance: four "serves a previous binary that a live guest names" (the old agent from the old asset
tree, the old binary from bin/previous), `pinned_download_served` for both, no `pinned_download_not_pinned`, Held
in 96 s, uid=0, the guest installed the from binary 6007303f. Control (upgrade to main a5269317, no fix): 404 on
every attempt, the guest stuck: the bug reproduced. The entry 0007:upgrade failed on its own race (it hashed the
binary 32 s before the install ended): fixed in 1bc09c88 (waits for setup-guest-binaries, bound 300 s); not rerun.
docs/plans/0040-release-pipeline.md+12−12
@@ -3,19 +3,19 @@
Status: the only plan in flight (owner, 2026-11-17); docs/plans/0001-0039 and NEXT.yaml are history. How to run, hold
and debug CI by hand: `docs/ci-debug.md`. The state before this work: main e39097c2 (2026-11-12).
State (2026-11-19 02:25Z; updated by the lead):
- Main is a5269317: everything of this plan plus retries of one-off network failures (requester setup and RFP
writes, staging stand-up puts and ssh steps) and failure evidence (whole notes, journals, the watch capture).
- STAGING IN CI: 43 of 43 PASS on main d6a2b391 (17:08Z 11-18; `scripts/ci-staging-total.sh`). a5269317: test-2,
test-3, test-4 green; test-1 rerun running (its first machine was lost to the rc's bidder self-update: findings).
- PROD IN CI: 29 of 30 at ee133538 (rc183); 28 of 30 at a5269317 (rc185, 02:20Z): 0006:run and 0008:run, one
bidder's startup ERROR line after the roll's restart (agent `rc-watch`). Red, rolled back: prod runs rc180.
- Rolls: 0 of 2. Nine promotes (one cancelled), each red for a different cause, each fixed or in work (findings).
The owner's target of 01:30Z 11-19 for roll one is missed.
- Open product fix, not landed: a bidder's self-update drops the downloads its live guests still fetch (`rc-pins`).
State (2026-11-19 04:30Z; updated by the lead):
- Main is 688c2105: everything of this plan; the export gate (decision 41) on top of a5269317.
- STAGING IN CI: 43 of 43 PASS at d6a2b391, a5269317 and 688c2105 (`scripts/ci-staging-total.sh`, exit 0).
- PROD IN CI: 30 of 30 PASS at 688c2105 (promote rc186, 04:22Z 11-19). Before it 28, 29, 26 of 30.
- ROLLS: 1 of 2. Promote 10 (rc186) is green: stable v0.0.0 = main 688c2105 (`releases/v0.0.0/`). Nine promotes
before it were red or cancelled (findings). Roll two: the next push that builds.
- Open, not landed: `rc-pins` (a bidder's self-update drops the downloads its live guests still fetch: reviewed,
proven by hand; its entry 0007:upgrade makes staging 44 and needs two landings); `ten` (accept and RBAC write
retries, reviewed); `rc-writes` 0fbbfded (webrtc ingress offer, awaits review); `rc-reserve` (bidder reservations,
reviewed, unproven as a cause).
- Compute: three `swc-dev` droplets (c-32, $1/h each), bob's bidders; destroy when the plan is done. After any CI
cancel: remove the VMs it leaves on the bidders (`~/.tmp/int/rm-orphans.sh`) until prod runs the association fix.
cancel: remove the VMs it leaves on the bidders (`~/.tmp/int/rm-orphans.sh`).
## Flow
internal/checkhostmain/main.go+1−1
@@ -73,7 +73,7 @@ func runContract(ctx context.Context, inv foldmain.Invocation, roleName, stateDi
return 2
}
if stateDir == "" {
fmt.Fprintln(inv.Stderr, "check-host -role: -state-dir (SOCIALWEB_STATE_DIR) names the account's state dir; install writes it into the account's config")
fmt.Fprintln(inv.Stderr, "check-host -role needs -state-dir (or SOCIALWEB_STATE_DIR), the account's state dir; install writes it into the account's config")
return 2
}
if assetCache == "" {
.plans.yaml+3−3
@@ -10,17 +10,17 @@ plans:
progress:
staging:
target: "CI test 43 of 43 PASS, 0 FAIL (no SKIP state), on step 21's second roll's commit"
now: "43 of 43 PASS in CI on main d6a2b391 (17:08Z 11-18; test-1 11/11, test-2 3/3, test-3 16/16, test-4 13/13; scripts/ci-staging-total.sh exit 0; logs: knotless run list --commit d6a2b3913261 --workflow test-N --log); the target is the same on step 21 second roll commit; earlier: by hand: 39 of 43 (hand cycle 4, 5ce234e4; FAIL 0002:run 0008:run (fixed in main, unproven) 0014:impossible 0020:run (agents rc-0014, rc-0020)); before it: 34 of 43 (hand cycle 3, ee47b96f, all step 8 layers; cycle 2 was 35 on the older build, cycle 1 29) PASS on the full no-SKIP gate, by hand (phase-2 18d162fc, 2026-11-18, staging net stg-131819; ~/.tmp/ci-hand/staging-18d162fc.log, gate dir /home/stg/stg/gate); CI main still runs its 17-entry list (85c689be green). 14 FAIL: 0001:run, 0001:s2, 0002:run, 0004:run, 0009:run, 0011:run, 0011:token, 0013:b, 0013:c, 0015:run, 0015:pressure, 0017:run, 0017:killed, 0017:killedlate"
now: "43 of 43 PASS in CI on main 688c2105 (04:18Z 11-19, roll one's commit; also a5269317 and d6a2b391 (17:08Z 11-18; test-1 11/11, test-2 3/3, test-3 16/16, test-4 13/13; scripts/ci-staging-total.sh exit 0; logs: knotless run list --commit d6a2b3913261 --workflow test-N --log); the target is the same on step 21 second roll commit; earlier: by hand: 39 of 43 (hand cycle 4, 5ce234e4; FAIL 0002:run 0008:run (fixed in main, unproven) 0014:impossible 0020:run (agents rc-0014, rc-0020)); before it: 34 of 43 (hand cycle 3, ee47b96f, all step 8 layers; cycle 2 was 35 on the older build, cycle 1 29) PASS on the full no-SKIP gate, by hand (phase-2 18d162fc, 2026-11-18, staging net stg-131819; ~/.tmp/ci-hand/staging-18d162fc.log, gate dir /home/stg/stg/gate); CI main still runs its 17-entry list (85c689be green). 14 FAIL: 0001:run, 0001:s2, 0002:run, 0004:run, 0009:run, 0011:run, 0011:token, 0013:b, 0013:c, 0015:run, 0015:pressure, 0017:run, 0017:killed, 0017:killedlate"
log: "https://knotless.socialweb.computer/socialweb.computer/socialweb-computer-kcp/check/did:plc:lpfuqerea3deuoyrn7ojser4/65axqkyrfxktwzgcnmn7yddsnv.3n2culsabyx2j.7eq32bpgrmbxidcfbzlf4dtbop.85c689be3b0bf3caee077c659f34986bf1451789.test"
waits_on: "steps 6-10"
prod_ci:
target: "CI promote 30 of 30 both-entries PASS as prod bob and alice, on step 21's second roll"
now: "28 of 30 PASS in CI at main a5269317 (promote rc185, 02:20Z 11-19; FAIL 0006:run, 0008:run: one startup ERROR line on swc-dev-bidder-1 after the roll restart: agent rc-watch; best so far 29 of 30 at ee133538); log: knotless run list --commit a52693170d88 --workflow promote --log"
now: "30 of 30 PASS in CI at main 688c2105 (promote rc186, 04:22Z 11-19: green, roll one; stable v0.0.0); log: knotless run list --commit 688c2105f879 --workflow promote --log"
log: "none yet"
waits_on: "steps 0-20"
ci_rolls:
target: "step 21: two consecutive green CI promote runs to stable, no hand roll; between them only CLI help text changes under paths:"
now: "0 of 2; rollback proven by the red rcs 170, 172, 173 and 175; prod on rc176 = main 85c689be + the PDS own-account fix, rolled by hand 2026-11-18 (owner decision 17; not yet on main: no promote before it lands); no stable; step 12 (rollback on fail/cancel/timeout) in build on branch step-12"
now: "1 of 2: promote 10 (rc186, main 688c2105) green 04:22Z 11-19, stable v0.0.0 = releases/v0.0.0/ (log: knotless run list --commit 688c2105f879 --workflow promote --log); roll two = the next push (a check-host help text change); before it: rollback proven by the red rcs 170, 172, 173 and 175 and after a cancel (rc184); prod on rc176 = main 85c689be + the PDS own-account fix, rolled by hand 2026-11-18 (owner decision 17; not yet on main: no promote before it lands); no stable; step 12 (rollback on fail/cancel/timeout) in build on branch step-12"
log: "none yet"
waits_on: "steps 0-20"
docs: