~ 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 findings: bidders deaf over iroh after a dumbpipe path change; the bump is out of the roll

Merged johnandersen777.bsky.social asked to merge into main from socialweb.computer/socialweb-computer-kcp:phase-2
docs/plans/0040-findings.md+30−0
@@ -3364,3 +3364,33 @@ Each: what was seen (with the log), the cause, the fix, its proof.
TWO: hat-7's old bidder process logged `releasefollow_failed` "upgrading to v0.0.1-rc3: ... the start job did not
finish" at 07:33:51Z, 7 s before the new process's reload line: the upgrade did complete (heartbeat 394445f3); the
lead's reading, not traced in code: the process that asked for the restart logs the failure as it is replaced.
- A BIDDER GOES DEAF OVER IROH WHEN ITS STORED DUMBPIPE PATH CHANGES (found by the full hand cycle of `final-stack`
d7019477, network stg-065007, 2026-11-21 13:56Z; evidence `~/.tmp/rollback-hazard/`, `~/.tmp/cycle-final/saved/
rollback-hazard/`). SEEN: 0007:upgrade moved both bidders from the binary under test (dumbpipe v0.40.1, runtime tree
356542be) to the previous release 324f69a1 (v0.39.0, tree b9d78696); bidder-2: 13:56:17.70 the old core started
`ingress-iroh` from the stored path of the NEW tree, 13:56:18.637 `dumbpipe_listening`, 13:56:19 started again on its
own tree, no `listening`, no market dumbpipe process; requesters: "the bidder's market endpoint is not reachable yet
... submitRfp: context deadline exceeded"; both bidders deaf, no self-heal. The other direction, by hand on bidder-2
at 14:14:19 (324f69a1 to the binary under test): the same (14:14:24.32 listening on the stored old path, 14:14:24.95
restarted on the new tree, nothing after). CAUSE (same code in 324f69a1 and d7019477): the IngressProxy `ingress-iroh`
holds `spec.iroh.dumbpipePath`, written by the app-compose pass from the running binary's record
(`internal/app/marketbidder/marketbidder.go:500-504`, `:531-540`) and stored in kcp; after a binary switch the
component starts from the stored spec, the compose pass rewrites the path, the generation changes and
`internal/component/runtime.go:300-311` stops the instance and builds a new service; `Provider.Stop` kills the
dumbpipe (`internal/ingress/iroh/provider.go:174-184`, `:342-356`); the new provider has no registrations (only
`Register` spawns dumbpipe, `:190-251`); `Publisher.Publish` (`internal/exposure/exposure.go:116-126`) fingerprints
the Exposure spec, the target Service and the handler revision, not the IngressProxy instance, so it keeps the dead
publication; nothing retries. Each asset has its own runtime tree, so only a change of the dumbpipe asset moves this
path: 688c2105 and 324f69a1 both pin v0.39.0, which is why no roll or rollback so far met it. CONSEQUENCE: a release
that changes the dumbpipe pin makes every prod bidder unreachable over iroh at its self-update, and again at the
rollback; the old binary's logic runs on rollback and cannot be fixed there. DECISION (lead): the dumbpipe v0.40.1
bump (branch `dumbpipe-0401` 76ed31e5: the pins, the rebuilt guest image, the one-line `set -e` fix of the guest
listener script) is OUT of the roll; the tree to land is `stack3` (main + fence-from + link-load +
ssh-requester-await, dumbpipe v0.39.0). FIX, after plan 0040's rolls, in TWO releases: release N keeps v0.39.0 and
makes the exposure publisher re-register when its IngressProxy service instance is replaced (the instance identity
in the fingerprint, or the registration reports its end; retry with backoff; `listening` before Ready) and stops
storing a tree-specific absolute path; N is promoted to stable; release N+1 bumps the pin, so its rollback runs N's
logic. A staging entry of the 0007:upgrade shape with different dumbpipe trees both ways asserts `listening` after
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.
docs/ci-debug.md+3−0
@@ -493,6 +493,9 @@ The lead's own, on plan 0040 (2026-11-20). Each has the rule it left; plan 0040
| 8 | Told an agent to stop new proofs, and another to do a subset, to save time | The proofs cut were the ones that mattered | Never trade a proof for time. If a full gate is the only path that exists, run the full gate |
| 9 | Let a fix change the tree under test after its "final" cycle, three times | Each needed a further cycle | Land only a tree that passed whole. A fix after the cycle means another cycle: plan for it, do not argue it away |
| 10 | Changed a host's firewall with a command I had not read back | It errored on the zone name and changed nothing; caught because I printed before and after | Print the state before and after every change on a host |
| 11 | Accepted a test entry whose precondition was "the previous release lacks the feature" (`0007:fence` took its from binary from the previous rc) | The entry failed for ever the moment its own roll went green; caught before the next roll, one more fix | Ask of every new entry: does it still pass after it lands, on the roll after, and after a rollback |
| 12 | Added a pinned-binary bump (dumbpipe) to a fix stack late, proven by pins and a file diff, without switching a running bidder between the two builds | The full hand cycle found both bidders deaf over iroh after the switch, in both directions: on prod it would have been an outage at the roll and at the rollback | A change of a pinned binary or of anything a core stores across restarts is proven by `0007:upgrade` alone first, both directions, before it joins any stack |
| 13 | Kept adding fixes to the stack as I found intermittents | Five hand cycles and no second roll in a day | Freeze the stack once it holds what failed; anything new that is not a regression of the stack goes to its own roll |
Before a pull is queued, each of these is a yes: