chore(wolf): session trail + xce-test-ha cross-run collision guard
run-ha-soak.sh: scope every pgrep/pkill to this run's --workdir, not just binary name + --myname. An unscoped pkill -9 -x xce_controller (old cleanup()) killed every xce_controller on the machine, including a different concurrently-running soak's live primary — root cause of the first bug-1436 misdiagnosis (a killed-out-from-under-it primary produced a genuine, correctly-reported ECONNRESET that looked like a libxce bug). .wolf/*: anatomy/cerebrum/buglog updated for bug-1435/1436, session and token-ledger trail.
This commit is contained in:
parent
40c2351578
commit
b3219635b5
7 changed files with 2415 additions and 41 deletions
|
|
@ -4440,3 +4440,55 @@
|
|||
| 06:58 | Edited .kiro/specs/ha-elect-ctx-lifecycle/tasks.md | 5→5 lines | ~109 |
|
||||
| 06:58 | Session end: 1 writes across 1 files (tasks.md) | 0 reads | ~117 tok |
|
||||
| 21:23 | Session end: 1 writes across 1 files (tasks.md) | 0 reads | ~117 tok |
|
||||
| 21:26 | Session end: 1 writes across 1 files (tasks.md) | 0 reads | ~117 tok |
|
||||
| 21:28 | Session end: 1 writes across 1 files (tasks.md) | 0 reads | ~117 tok |
|
||||
| 21:31 | Session end: 1 writes across 1 files (tasks.md) | 1 reads | ~117 tok |
|
||||
| 21:50 | Session end: 1 writes across 1 files (tasks.md) | 4 reads | ~19790 tok |
|
||||
| 02:49 | Session end: 1 writes across 1 files (tasks.md) | 4 reads | ~19790 tok |
|
||||
| 03:08 | Edited src/controller/ha.h | modified 1435() | ~533 |
|
||||
| 03:08 | Edited src/controller/ha.c | 1→4 lines | ~66 |
|
||||
| 03:08 | Edited src/controller/ha.c | 2→3 lines | ~32 |
|
||||
| 03:09 | Edited src/controller/ha.c | expanded (+18 lines) | ~400 |
|
||||
| 03:09 | Edited src/controller/ha.c | 8→12 lines | ~96 |
|
||||
| 03:09 | Edited src/controller/ha.c | modified raft_election_start_vtask_entry() | ~104 |
|
||||
| 03:09 | Edited src/controller/ha.c | 18→22 lines | ~192 |
|
||||
| 03:10 | Edited src/controller/ha.c | 3→8 lines | ~142 |
|
||||
| 03:10 | Edited src/controller/ha.c | 4→8 lines | ~143 |
|
||||
| 03:11 | Edited src/controller/ha.c | expanded (+13 lines) | ~276 |
|
||||
| 03:11 | Edited src/controller/ha.h | modified PTHREAD_MUTEX_RECURSIVE() | ~153 |
|
||||
| 03:12 | Edited src/controller/ha.c | 3→8 lines | ~125 |
|
||||
| 03:12 | Edited src/controller/ha.c | modified pre_vote_reply_dispatch() | ~179 |
|
||||
| 03:13 | Edited src/controller/ha.c | expanded (+7 lines) | ~147 |
|
||||
| 03:13 | Edited src/controller/cluster.c | modified if() | ~200 |
|
||||
| 03:14 | Edited src/controller/cluster.c | expanded (+6 lines) | ~187 |
|
||||
| 03:19 | bug-1435 FIXED: raft_state_t data race (concurrent pool-dispatched vote-reply processing flips PRIMARY back to STANDBY mid-election) — added ha->raft_lock (RECURSIVE mutex) around 12 raft_state_t entry points in ha.c/cluster.c; build clean, controller_unit_test Ok:1 Fail:0; buglog.json + cerebrum.md updated | src/controller/ha.c, ha.h, cluster.c, .wolf/buglog.json, .wolf/cerebrum.md | done, not yet live-soaked | ~28000 |
|
||||
| 03:21 | Session end: 17 writes across 4 files (tasks.md, ha.h, ha.c, cluster.c) | 12 reads | ~277854 tok |
|
||||
| 03:57 | Session end: 17 writes across 4 files (tasks.md, ha.h, ha.c, cluster.c) | 13 reads | ~277854 tok |
|
||||
| 07:14 | Session end: 17 writes across 4 files (tasks.md, ha.h, ha.c, cluster.c) | 13 reads | ~277854 tok |
|
||||
| 07:43 | Edited .claude/skills/xce-test-ha/run-ha-soak.sh | modified log() | ~707 |
|
||||
| 07:43 | Edited .claude/skills/xce-test-ha/run-ha-soak.sh | 4→4 lines | ~45 |
|
||||
| 07:43 | Edited .claude/skills/xce-test-ha/run-ha-soak.sh | inline fix | ~14 |
|
||||
| 07:43 | Edited .claude/skills/xce-test-ha/run-ha-soak.sh | 2→2 lines | ~36 |
|
||||
| 07:43 | Edited .claude/skills/xce-test-ha/run-ha-soak.sh | 5→6 lines | ~121 |
|
||||
| 07:45 | bug-1436 root-caused via controller-log archaeology: NOT a product bug — run-ha-soak.sh's unscoped pgrep/pkill let a second concurrent soak invocation SIGKILL the first run's live primary right after wait-primary confirmed it | .claude/skills/xce-test-ha/run-ha-soak.sh, .wolf/buglog.json, .wolf/cerebrum.md | fixed: scoped all process matches to --workdir | ~large |
|
||||
| 07:58 | Session end: 22 writes across 5 files (tasks.md, ha.h, ha.c, cluster.c, run-ha-soak.sh) | 23 reads | ~308403 tok |
|
||||
| 08:10 | Session end: 22 writes across 5 files (tasks.md, ha.h, ha.c, cluster.c, run-ha-soak.sh) | 23 reads | ~308403 tok |
|
||||
| 08:40 | Created ../../../../../../tmp/claude-1000/-home-rshen-projects-xce-worktrees-raft-tla/00c9b3f1-df3c-4ce0-a997-5c6a316be4ec/scratchpad/hammer.sh | — | ~570 |
|
||||
| 08:41 | Created ../../../../../../tmp/claude-1000/-home-rshen-projects-xce-worktrees-raft-tla/00c9b3f1-df3c-4ce0-a997-5c6a316be4ec/scratchpad/hammer2.sh | — | ~807 |
|
||||
| 08:51 | Created ../../../../../../tmp/claude-1000/-home-rshen-projects-xce-worktrees-raft-tla/00c9b3f1-df3c-4ce0-a997-5c6a316be4ec/scratchpad/hammer3.sh | — | ~975 |
|
||||
| 09:21 | Edited src/lib/client_internal.h | expanded (+55 lines) | ~1057 |
|
||||
| 09:21 | Edited src/lib/client.c | 2→3 lines | ~59 |
|
||||
| 09:21 | Edited src/lib/client.c | 2→3 lines | ~62 |
|
||||
| 09:21 | Edited src/lib/client.c | expanded (+6 lines) | ~152 |
|
||||
| 09:21 | Edited src/lib/client.c | 2→3 lines | ~62 |
|
||||
| 09:22 | Edited src/lib/client.c | 3→8 lines | ~134 |
|
||||
| 09:46 | Session end: 31 writes across 10 files (tasks.md, ha.h, ha.c, cluster.c, run-ha-soak.sh) | 26 reads | ~321152 tok |
|
||||
| 09:46 | Session end: 31 writes across 10 files (tasks.md, ha.h, ha.c, cluster.c, run-ha-soak.sh) | 26 reads | ~321152 tok |
|
||||
| 09:47 | Created ../../../../../../tmp/claude-1000/-home-rshen-projects-xce-worktrees-raft-tla/00c9b3f1-df3c-4ce0-a997-5c6a316be4ec/scratchpad/run-chaotic-soak.sh | — | ~61 |
|
||||
| 17:01 | 40-round CHAOTIC /xce-test-ha soak vs bug-1435/1436 fixed binary (xce_controller+xce_test) — VERDICT rounds=40 jobs=123 committed_divergence=0 committed_job_loss=0 excluded_bug854=0 excluded_bug924=0 result=PASS; all 3 nodes served primary (13/14/13); no ASAN/crash/abort in ctrl-{1,2,3}.log/.stderr | .wolf/memory.md | regression validation clean, bug-1435/1436 fixes confirmed | ~1200 |
|
||||
| 10:01 | Session end: 32 writes across 11 files (tasks.md, ha.h, ha.c, cluster.c, run-ha-soak.sh) | 26 reads | ~321218 tok |
|
||||
|
||||
## Session: 2026-07-13 00:12
|
||||
|
||||
| Time | Action | File(s) | Outcome | ~Tokens |
|
||||
|------|--------|---------|---------|--------|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue