add wolf state

This commit is contained in:
Rongsong Shen 2026-06-25 14:30:46 +08:00
parent 6563adf8c6
commit 295769d8ae
7 changed files with 18228 additions and 789 deletions

View file

@ -1,7 +1,11 @@
# anatomy.md
> Auto-maintained by OpenWolf. Last scanned: 2026-06-24T08:33:10.048Z
> Files: 570 tracked | Anatomy hits: 0 | Misses: 0
> Auto-maintained by OpenWolf. Last scanned: 2026-06-25T04:36:05.545Z
> Files: 579 tracked | Anatomy hits: 0 | Misses: 0
## ../../../../../../tmp/claude-1000/-home-rshen-projects-xce-worktrees-raft-tla/e9921464-33bd-405e-b66b-f65b9fa8c107/scratchpad/
- `fig8_main.c` — define XCE_TESTING 1 (~464 tok)
## ../../../../../../tmp/xce-ha-verify/
@ -16,7 +20,9 @@
- `project_bug1060_leader_completeness.md` (~538 tok)
- `project_bug1067_ae_two_terms.md` (~716 tok)
- `project_raft_commit_safety_done.md` (~603 tok)
- `project_bug1077_reply_union_type_confusion.md` — Declares metadata (~463 tok)
- `project_ha_bootstrap_progress.md` (~760 tok)
- `project_raft_commit_safety_done.md` (~771 tok)
- `project_raft_log_replication_done.md` (~507 tok)
## ./
@ -280,6 +286,7 @@
- `brief.md` — Brief: config-upgrade-snapshot (~923 tok)
- `requirements.md` — Requirements Document (~1533 tok)
- `research.md` — Gap Analysis — config-upgrade-snapshot (2026-06-24) (~3178 tok)
- `spec.json` (~147 tok)
## .kiro/specs/controller-status/
@ -361,7 +368,7 @@
- `requirements.md` — Requirements Document (~3586 tok)
- `research.md` — Research & Design Decisions: ha-convergence-recovery (~6912 tok)
- `spec.json` (~142 tok)
- `tasks.md` — Implementation Plan: ha-convergence-recovery (~5679 tok)
- `tasks.md` — Implementation Plan: ha-convergence-recovery (~5999 tok)
## .kiro/specs/ha-elect-ctx-lifecycle/
@ -431,7 +438,7 @@
- `requirements.md` — Requirements Document (~4240 tok)
- `research.md` — Research & Design Decisions (~5375 tok)
- `spec.json` (~141 tok)
- `tasks.md` — Implementation Plan (~13751 tok)
- `tasks.md` — Implementation Plan (~14377 tok)
- `TLA-gap-analysis.md` — Gap Analysis: XCE HA implementation vs `raft/raft.tla` (~2070 tok)
## .kiro/specs/ha-wal-replication/
@ -457,6 +464,7 @@
- `brief.md` — Brief: raft-commit-safety (~967 tok)
- `design.md` — Design Document (~8677 tok)
- `requirements.md` — Requirements Document (~4523 tok)
- `research.md` — Gap Analysis — raft-commit-safety (2026-06-24) (~1679 tok)
- `spec.json` (~450 tok)
- `tasks.md` — Implementation Plan (~3186 tok)
@ -480,10 +488,11 @@
## .kiro/specs/raft-sim-conformance/
- `brief.md` — Brief: raft-sim-conformance (~697 tok)
- `design.md` — Design Document (~8051 tok)
- `design.md` — Design Document (~8280 tok)
- `requirements.md` — Requirements Document (~3776 tok)
- `research.md` — Gap Analysis — raft-sim-conformance (2026-06-24) (~3557 tok)
- `spec.json` — Declares divergence (~428 tok)
- `tasks.md` — Implementation Plan (~3337 tok)
- `tasks.md` — Implementation Plan (~4680 tok)
## .kiro/specs/resval-id-decoupling/
@ -785,7 +794,7 @@
- `CLAUDE.md` — XCE Controller (~3309 tok)
- `cluster.c` — include "config.h" (~16451 tok)
- `commit.c` — Declares persist_t (~5043 tok)
- `config_repl.c` — define _GNU_SOURCE (~25407 tok)
- `config_repl.c` — define _GNU_SOURCE (~25721 tok)
- `config_repl.h` — pragma once (~6008 tok)
- `ha_convergence.c` — Declares char (~4868 tok)
- `ha.c` — define _GNU_SOURCE (~78897 tok)
@ -805,10 +814,10 @@
- `controller_test.c` — include <argp.h> (~1623 tok)
- `test_coldstart_lsn0.c` — Declares char (~4405 tok)
- `test_commit_barrier_rollout.c` — Declares explicitly (~19506 tok)
- `test_config_repl.c` — define _GNU_SOURCE (~35905 tok)
- `test_demotion_convergence.c` — define _GNU_SOURCE (~9602 tok)
- `test_config_repl.c` — define _GNU_SOURCE (~36426 tok)
- `test_demotion_convergence.c` — define _GNU_SOURCE (~10709 tok)
- `test_e2e_capnp.c` — include <stdint.h> (~2760 tok)
- `test_ha_election.c` — Declares char (~12969 tok)
- `test_ha_election.c` — Declares char (~15425 tok)
- `test_ha_prevote.c` — Declares char (~11053 tok)
- `test_ha_vote_gate.c` — define _GNU_SOURCE (~13251 tok)
- `test_persist_recovery.c` — define _GNU_SOURCE (~3654 tok)
@ -832,6 +841,7 @@
- `repl.h` — pragma once (~2163 tok)
- `typemap.h` — if !defined(_TYPEMAP_H_) (~4632 tok)
- `wal_types.h` — pragma once (~1400 tok)
- `xcectx.h` — if !defined(_XCECTX_H_) (~793 tok)
## src/lib/
@ -839,19 +849,21 @@
- `hook.c` — include <errno.h> (~1197 tok)
- `netio.c` — include <arpa/inet.h> (~6688 tok)
- `request.c` — include <errno.h> (~15862 tok)
- `xcectx.c` — include <errno.h> (~3042 tok)
- `xceapi.c` — include <errno.h> (~3528 tok)
- `xcectx.c` — include <errno.h> (~3215 tok)
## src/lib/raft/
- `raft_sim.c` — ifdef XCE_TESTING (~4777 tok)
- `raft.c` — include "raft.h" (~9032 tok)
- `raft.h` — ifndef RAFT_H (~8168 tok)
- `raft_sim.c` — ifdef XCE_TESTING (~27367 tok)
- `raft.c` — include "raft.h" (~9515 tok)
- `raft.h` — ifndef RAFT_H (~16351 tok)
## src/lib/testsuite/
- `test_config.c` — include <stdio.h> (~490 tok)
- `test_ctrlstatus.c` (~4297 tok)
- `test_hooks.c` — include <errno.h> (~1416 tok)
- `test_raft.c` — include <errno.h> (~68779 tok)
- `test_raft.c` — include <errno.h> (~95802 tok)
- `test_wal_wire.c` — include <errno.h> (~2970 tok)
## src/schema/