~ 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 two red at test (45 of 47): causes and progress

Merged johnandersen777.bsky.social asked to merge into main from socialweb.computer/socialweb-computer-kcp:phase-2
docs/plans/0040-findings.md+24−0
@@ -3474,3 +3474,27 @@ Each: what was seen (with the log), the cause, the fix, its proof.
the last `started`, a live dumbpipe process and a submitRfp that reaches the bidder. NOT TESTED: a second core
restart as the workaround (the stored path then equals its own). Also open from the same work: the guest listener
exits (dumbpipe-0401 findings: cause not reproduced), a guest booted before a roll keeps the old listener.
- ROLL TWO RED AT TEST (main 7b0afc69, 2026-11-21 16:53-19:38Z; `gate: staging: 45 of 47 PASS`; log saved
`~/.tmp/int/logs/roll2-test.log`; evidence `~/.tmp/roll2-red/`). The same tree passed a full hand cycle 47 of 47
three hours before (stg-134498). 0008:RUN: "bob2 not CONFIRMED", `startupErrors` 15, the core started 18:00:09Z by
0007:fence's last step (rc186 back to the binary under test). CAUSE: the 15 ERROR lines ("failed to add cluster
root: failed to watch for cluster events#root: handler {0x21e7780 0x21e75a0 0x21e7340} was not added to shared
informer because it has stopped already", all within 0.06 ms at 18:00:09.215) were written by the OLD process:
`go tool addr2line` resolves those three addresses in the rc186 binary to
`pkg/cache.(*scopedInformer).AddEventHandlerWithOptions.func1/2/3` and to nothing sensible in this tree's binary;
rc186 has no `engage.go`; a core logs them when its manager ctx is cancelled while an add event is still engaging a
cluster (the same lines follow "Shutdown signal received" in a core log of 2026-11-20). `BIDDER_HEALTH`
(`tests/host/src/more.rs`) reads `journalctl _UID=$U --since @<ps lstart>`: by user, from a whole second: so the
old process's last lines of that second count for the new one (a new core's providers start 0.32 s in at best; the
lines are 0.216 s into the second). Not link-load: the informers run on the cache's own ctx, never on the ctx given
to GetInformer. 0006:run and 0007:upgrade read the same reading. FIX (branch `health-pid`, tests): read the current
core process only. FOLLOW-UP (product, after this plan): no ERROR for handler-add failures after the manager ctx is
done (`runtime/logbridge.go`). 0014:EXHAUSTED: "waits for capacity, not after every bidder refused it and its new
RFP found none: 1 refusals, newRfp 1" (18:20-18:24Z). CAUSE NOT ESTABLISHED: the requester's core.log was never
collected. Reading from code: a requester learns "no room" by an accept refused 409, which the module counts, or by
the bidder declining the RFP for capacity (`requester_bidder_declined`), which it ignores (`acc-0014/src/lib.rs`
about 545); which one a bidder gives depends on arrival order. First time in any saved log. ARTIFACT GAP: a red run's
artifacts hold no bidder journal and no gate-run dir: `logs.fetchRuns` is given an absolute `dir` and `str_of`
(`tests/host/src/swc.rs:179`) rejects any value with '/': "dir is required (a plain name)" (since a09c3c1d,
2026-11-18). LESSON: 11 clean core starts in a hand cycle say nothing about a once-per-second coincidence; and the
lead named its own fix as the suspect twice before reading the artifacts: read first.
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-21 16:40Z; updated by the lead):
State (2026-11-21 20:05Z; 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.
@@ -102,8 +102,17 @@ State (2026-11-21 16:40Z; updated by the lead):
layer; gateway `requester_ready` 3, `requester_unavailable` 0; no capacity leak (0 VM units at the end)
(`~/.tmp/cycle-stack3/saved/final/`). Hand survey of `cli-help` on the same morning's base: 46 of 47 (the fail:
0002:run, the sign-in race, fixed here).
- Now: the pull of `stack3` = roll two (tests and product fixes); then `cli-help` (decision 74) = roll three: with
roll two it is the pair of Done when 3 (only help text between them).
- ROLL TWO RED AT TEST, main 7b0afc69 (stack3; 2026-11-21): `release` green (16:32-16:53Z); `test` RED:
`gate: staging: 45 of 47 PASS`, wall 7381 s (16:53-19:38Z with the 30 min failure freeze); `promote` refused at
its first step (no green test): channel rc never moved, prod untouched, stable still v0.0.1. FAIL 0008:run
("bob2 not CONFIRMED": 15 start-up ERRORs "... not added to shared informer because it has stopped already" at
18:00:09): NOT the stack: the lines were written by the OLD rc186 process as it shut down (the handler addresses
resolve in the rc186 binary, not in this one), and `bidder.health` counted them for the new core because it reads
the journal by user since the process start in whole seconds. FAIL 0014:exhausted ("1 refusals, newRfp 1"): cause
not established (the run's journals and gate-run dirs were never collected: `logs.fetchRuns` rejects its own
absolute `dir`). Findings has both.
- Now: tests-only fixes on branch `health-pid` (health by pid; fetchRuns; 0014:exhausted once its cause is shown
from code), a full hand cycle, then the next roll. Two consecutive green rolls start over: 0 in a row.
- 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,
.plans.yaml+6−6
@@ -16,9 +16,9 @@ plans:
progress:
staging:
target: "CI test 47 of 47 PASS, 0 FAIL (no SKIP state), on step 21's second roll's commit"
now: "47 of 47 PASS in CI on main 324f69a1 (roll one; test 05:20-07:31Z 11-21: gate: staging: 47 of 47 PASS, 47 RESULT lines PASS, wall 6956 s). Before: 46 of 46 on 93fd8c11 (11-20)."
log: "knotless run list knotless://socialweb.computer/socialweb-computer-kcp --commit 324f69a10b6c --workflow test --log"
waits_on: "the same on roll two's commit"
now: "45 of 47 in CI on main 7b0afc69 (roll two, test 16:53-19:38Z 11-21: RED: 0008:run (health counted the old process's shutdown errors), 0014:exhausted (cause open)). Last green: 47 of 47 on 324f69a1 (11-21)."
log: "knotless run list knotless://socialweb.computer/socialweb-computer-kcp --commit 7b0afc69f4a2 --workflow test --log"
waits_on: "the tests-only fixes of branch health-pid and their hand cycle"
prod_ci:
target: "CI promote 31 of 31 both-entries PASS as prod bob and alice, on step 21's second roll"
now: "31 of 31 PASS in CI at main 324f69a1 (promote v0.0.1-rc3, 07:31-08:39Z 11-21: green, wall 3718 s; stable v0.0.1). Before: 28 of 31 at 93fd8c11 (red, WebRTC from the release VM: fixed by decision 75)."
@@ -26,13 +26,13 @@ plans:
waits_on: "the same on roll two's commit"
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 in a row: promote 14 (v0.0.1-rc3, main 324f69a1) GREEN 08:39Z 11-21, prod 31 of 31, stable v0.0.1, no hand roll. Before it: promote 13 (v0.0.1-rc2, 93fd8c11) RED 11-20, rolled back. One more green owed: roll two = cli-help (decision 74)."
now: "0 in a row: roll two (main 7b0afc69) RED at test 19:38Z 11-21 (45 of 47), promote refused, prod untouched. Before it: promote 14 (v0.0.1-rc3, 324f69a1) GREEN 08:39Z 11-21, stable v0.0.1. Two consecutive greens owed, with only help text between them."
log: "knotless run list knotless://socialweb.computer/socialweb-computer-kcp --commit 324f69a10b6c --workflow promote --log"
waits_on: "roll two (stack3) green, then roll three (cli-help) green"
waits_on: "staging"
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: "16:40Z 2026-11-21: roll one green at 324f69a1. Landing now: stack3 (0007:fence from pin; bus link load wait; ssh gateway requester wait), run out of band: hand cycle 47 of 47 on a fresh network. It is roll two; cli-help (decision 74) is roll three: rolls two and three are the consecutive pair with only help text between. Out: the dumbpipe v0.40.1 bump (bidders deaf over iroh after a path change: Findings; two releases after this plan)."
next: "20:05Z 2026-11-21: roll two (7b0afc69) RED at test: 45 of 47; promote refused; prod untouched (stable v0.0.1). 0008:run: test-host health counted the old rc186 process's shutdown errors (by user and whole second); 0014:exhausted: cause open (artifacts lacked journals: logs.fetchRuns bug). Next: tests-only branch health-pid (health by pid, fetchRuns, 0014:exhausted if shown from code), full hand cycle, roll; then cli-help. 0 green rolls in a row."