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

socialweb.computer/socialweb-computer-kcp

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

1 collaborator
0
0

plan 0040: roll one result (test green, promote red, rolled back); plan 0041 heartbeat strongRefs

Merged johnandersen777.bsky.social asked to merge into main from socialweb.computer/socialweb-computer-kcp:phase-2
docs/plans/0040-findings.md+11−0
@@ -3281,3 +3281,14 @@ Each: what was seen (with the log), the cause, the fix, its proof.
BEFORE THE ROLL: 0007:run and 0007:webrtc on prod (the guest fetches secrets over a peer transport: the guest agent
comes from the bidder; stable bidders' guests only do https; the probe 0007:run failed exactly so while its bids were
accepted: `requester_signer_key_bound`, no `requester_bid_refused`), and the bidder side of 0013:run.
- PROMOTE 93fd8c11 RED: PROD 28 OF 31 (roll one of the batch, v0.0.1-rc2, 2026-11-20 21:26-22:58Z; log `knotless run
list $U --commit 93fd8c115e10 --workflow promote --log`, saved `~/.tmp/int/logs/roll1-promote.log`; gate dir on the
release VM `/home/r2/.tmp/swc-system-tests/gate/20261120T213136Z`, artifact gate-runs 174 kept). SEEN: every bidder
heartbeat d51bad4f (93fd8c11) by 21:35Z; gate wall 5000 s; FAIL 0003:run 1067 s "the first ssh: exit 255 ...
transport webrtc" (21:43Z), 0007:webrtc 1008 s "iroh off: the guest fetched its secrets over https, not webrtc",
0013:run 1055 s "vm1 over webrtc: ... webrtcproxy: the peer connection failed before the datachannel opened: ICE"
(22:21Z); all as bob; every iroh entry passed. The run rolled back: rc on v0.0.0-rc186, bidders heartbeat d4933943
(read 22:59Z), stable not moved. The same three pass on staging (three hand cycles, CI test of this commit) and
0003:run and 0013:run passed by hand from hat-8 (requester on the host, stable bidders): the hand prod run did not
have promote's topology (the requester inside a guest rented on a prod bidder). CAUSE: in work
(`~/.tmp/promote-93fd/report.md`). LESSON: a hand prod proof must run from inside a rented guest, as promote does.
docs/plans/0040-release-pipeline.md+12−3
@@ -3,7 +3,7 @@
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-20 18:40Z; updated by the lead):
State (2026-11-20 23:00Z; updated by the lead):
- Main: CI in series on four home bidders (decision 43), the fixes of promote 11's cycle, the kcp docs, the site
from the repo (`site/`), the protocol docs.
@@ -68,8 +68,17 @@ State (2026-11-20 18:40Z; updated by the lead):
network stg-328206, 16:31-18:37Z): gate: staging: 46 of 46 PASS, wall 6791 s (`~/.tmp/final-cycle3/logs/staging-full.log`,
gate dir copies `~/.tmp/final-cycle3/saved/`). A first try with a listed suite ran zero entries and exited 0
(Findings).
- Now: the one pull of `batch`; roll one (release, test 46 of 46, promote 31 of 31); then `cli-help` (decision 74)
and roll two.
- Roll one, main 93fd8c11 (the batch, one pull, 18:40Z): `release` green (18:40-19:15Z; amd64 d51bad4f);
`test` green: `gate: staging: 46 of 46 PASS`, 46 RESULT lines PASS, wall 6973 s (19:15-21:26Z;
`knotless run list $U --commit 93fd8c115e10 --workflow test --log`); `promote` RED (21:26-22:58Z): all four
bidders heartbeat d51bad4f by 21:35Z, then `gate: prod: 28 of 31 PASS`, wall 5000 s: FAIL 0003:run (the first
ssh over webrtc, exit 255), 0007:webrtc (the guest fetched its secrets over https, not webrtc), 0013:run (ICE
failed before the datachannel opened): all three WebRTC, all with the requester inside the release VM. Rolled
back by the run itself: rc back on v0.0.0-rc186, every bidder heartbeats d4933943 again (read 22:59Z), stable
not moved.
- Now: root cause of the three from the promote's artifacts (`~/.tmp/promote-93fd/report.md`), the fix run out of
band in promote's own topology (a requester inside a guest rented on a prod bidder), then the next cycle is roll
one again; `cli-help` (decision 74) waits as roll two.
- Relay (deployed by hand, not in the pipeline): 97bba4a7 then e7251bbc on xrpc.fedproxy.com; takeover refused on
the live relay with throwaway identities; requests fell from about 290/s to under 1/s.
- Landed without CI (docs, site): the site from `site/` with `/install.sh`, white pages, build-time highlighting,
docs/plans/0041-after-the-pipeline.md+19−0
@@ -72,3 +72,22 @@ example in CI; step 4 item by item.
- Branch `do-bidder` on `swc`, plan 0042 on that branch (state and resume steps at its top). Built locally, never run
against DigitalOcean, not deployed. Before it goes live the owner creates a new DigitalOcean OAuth client secret.
## Bidder heartbeat names its release (owner 2026-11-20: "It would be cool if a bidders health check record strongRef'd to the software.release.version and software.release.channel it was running, make that in one of the next plans")
- Today the heartbeat (`market.heartbeat`, rkey `self`) carries `version` (`#runningVersion`: version, commit and
binary sha256 as plain values) and `promote.sh` `heartbeats` compares `version.sha256` for every
`rc-operators.json` DID (a 20 s read loop: also on the no-polling list).
- Wanted: the heartbeat holds two `com.atproto.repo.strongRef`s (uri and cid): the `software.release.version` record
of the binary it runs and the `software.release.channel` record it follows (rc or stable; absent when the bidder
follows none). A reader then resolves version, channel and artifact hashes from the release records instead of
matching a bare sha256, and a stale channel record shows as a cid mismatch.
- To settle in its plan: where the bidder learns its version record (the release follower already reads the channel
record: keep its uri and cid; a hand-installed binary has no version record: the refs stay absent and the sha256
stays); `promote.sh heartbeats` and the gate read the refs; the heartbeat lexicon changes with plan 0053's rename
(do both in one lexicon revision).
- Owner, same day: "It can stil have a string but it should also have a strongref - or it could derive the string
from the rkey of the strongRef": the version string may stay next to the strongRef, or be dropped and read from the
version record's rkey (the release records key a version by its name). Decide in the plan: keep the string only if
a reader without the release records needs it; never let the two disagree (the bidder writes both from one source).
- Order: after plan 0040's two rolls, with or right after plan 0053.
.plans.yaml+9−9
@@ -16,23 +16,23 @@ plans:
progress:
staging:
target: "CI test 46 of 46 PASS, 0 FAIL (no SKIP state), on step 21's second roll's commit"
now: "43 of 43 PASS in CI on main a7dab399 (10:2xZ 11-19: the first cycle in series: one network, 6215 s; log: knotless run list --commit a7dab39916c9 --workflow test --log); before it on 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"
now: "46 of 46 PASS in CI on main 93fd8c11 (the batch; test 19:15-21:26Z 11-20: gate: staging: 46 of 46 PASS, 46 RESULT lines PASS, wall 6973 s; log: knotless run list --commit 93fd8c115e10 --workflow test --log). Before the batch: 43 of 43 on a7dab399 (11-19)."
log: "https://knotless.socialweb.computer/socialweb.computer/socialweb-computer-kcp/check/did:plc:lpfuqerea3deuoyrn7ojser4/65axqkyrfxktwzgcnmn7yddsnv.3n2culsabyx2j.7eq32bpgrmbxidcfbzlf4dtbop.93fd8c115e103e0af38b80d49a0227f673146835.test"
waits_on: "the same on roll two's commit"
prod_ci:
target: "CI promote 31 of 31 both-entries PASS as prod bob and alice, on step 21's second roll"
now: "30 of 30 PASS in CI at main 688c2105 (promote rc186, 04:22Z 11-19: green, roll one; stable v0.0.0); since: 29 of 30 at db33c9ff, 27 of 30 at a7dab399 (0007:run, 0013:run, 0014:abandon; findings); log: knotless run list --commit 688c2105f879 --workflow promote --log"
log: "none yet"
waits_on: "steps 0-20"
now: "28 of 31 in CI at main 93fd8c11 (promote v0.0.1-rc2, 21:26-22:58Z 11-20: RED, rolled back to rc186): FAIL 0003:run, 0007:webrtc, 0013:run (all WebRTC from the release VM; root cause in work). Before: 30 of 30 at 688c2105 (rc186, 11-19), 27 of 30 at a7dab399."
log: "knotless run list knotless://socialweb.computer/socialweb-computer-kcp --commit 93fd8c115e10 --workflow promote --log"
waits_on: "the WebRTC root cause and its fix, run out of band in promote's topology"
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: "1 green then 2 red (two consecutive greens still owed): promote 12 (v0.0.1-rc1, main a7dab399, the first cycle in series) RED 11:3xZ 11-19, prod 27 of 30, rolled back to rc186; before it: promote 11 (v0.0.1-rc0, main db33c9ff, the help text change) RED 05:55Z 11-19: prod 29 of 30, 0005:r2fail (agent rc-r2fail), rolled back to rc186; 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"
now: "0 in a row (two consecutive greens owed): promote 13 (v0.0.1-rc2, main 93fd8c11, the batch) RED 22:58Z 11-20, prod 28 of 31, rolled back to rc186; before it: promote 12 (v0.0.1-rc1, a7dab399) RED 11-19, 27 of 30; last green: rc186 at 688c2105 (11-19)."
log: "none yet"
waits_on: "steps 0-20"
waits_on: "prod_ci"
docs:
target: "the docs checker and the pins check in the gate (steps 17, 20); docs and examples themselves moved to plan 0041 (owner decision 33)"
now: "on main: check-docs.sh and the pins check in deploy/check.sh; 3 run=gate blocks run and pass (check-docs.sh: ok 5 docs, 2026-11-20)"
log: "bash scripts/check-docs.sh"
waits_on: "the two rolls"
status: "steps 0-5 done (promote asked-only; promote.sh --dry-run rehearsed on the release image on main de0b91ee; hand builds to local/, rehearsed: publish+verify local/de0b91ee, ci-staging-binary local:); prod on rc174; no stable"
next: "18:40Z 2026-11-20: batch = 8c84935d code (18 reviewed pieces + fix-0014-abandon + fix-0007-upgrade + fix-0006-compat; entries staging 46, prod 31). Out of band: hand staging 46 of 46 on the product code (cycle two) and 46 of 46 with the final test host (cycle three, ~/.tmp/final-cycle3/); hand prod 28 of 29 runnable entries, the fail fixed and passing on prod as alice; 0007:run, 0007:webrtc and the bidder side of 0013:run are first proven on prod by roll one. Next: the one pull through the merge queue, roll one (release, test 46 of 46, promote 31 of 31); then cli-help (decision 74: colored help, lipgloss + glamour) as roll two. Not in the batch: the DigitalOcean bidder (68), fast-standup (63), fix-0009, the listed-suite vacuous pass."
next: "23:00Z 2026-11-20: the batch landed as main 93fd8c11 (one pull). Roll one: release green, test green (gate: staging: 46 of 46 PASS), promote RED: gate: prod: 28 of 31 PASS (FAIL 0003:run, 0007:webrtc, 0013:run: all WebRTC from the release VM), rolled back by the run (rc back on rc186, bidders on d4933943, stable not moved). Next: root cause from the artifacts (~/.tmp/promote-93fd/report.md), fix run out of band in promote's topology, then roll one again; cli-help (decision 74) is roll two, ready on swc cli-help."