chore(wolf): update session tracking state

anatomy.md/cerebrum.md/memory.md/token-ledger.json/hooks state from the
day's session covering bug-1584/1585/1587-1596 and task 12.5.
This commit is contained in:
Rongsong Shen 2026-08-19 09:49:04 +00:00
parent 83e61eecc8
commit 4dcfa80ae8
No known key found for this signature in database
GPG key ID: 5BCDAAE0123E9FE2
5 changed files with 10618 additions and 1718 deletions

View file

@ -1,7 +1,7 @@
# anatomy.md
> Auto-maintained by OpenWolf. Last scanned: 2026-08-18T14:36:36.835Z
> Files: 565 tracked | Anatomy hits: 0 | Misses: 0
> Auto-maintained by OpenWolf. Last scanned: 2026-08-19T09:46:55.696Z
> Files: 586 tracked | Anatomy hits: 0 | Misses: 0
## ../../../../../../tmp/
@ -28,6 +28,10 @@
- `trap_repro.sh` (~301 tok)
- `xtest_script.txt` (~52 tok)
## ../../../../../../tmp/claude-1000/-home-rshen-projects-xce-worktrees-scheduler-framework/fe2ba1fe-c8fb-4d72-986e-1c8e2406aa3a/scratchpad/
- `strstr_probe.c` — define _GNU_SOURCE (~236 tok)
## ./
- `.clang-format` (~226 tok)
@ -214,7 +218,7 @@
## .claude/skills/xce-deploy-ha/
- `SKILL.md` — XCE HA Cluster Deployment; now documents Step 4d (apiserver) and Step 4e (start-all.sh combined shortcut) (~5900 tok)
- `SKILL.md` — XCE HA Cluster Deployment; now auto-picks real `xcecd` (sudo, root) vs `xcecd_virtual` per host via `/run/systemd/system` (~8200 tok)
## .claude/skills/xce-test-ha/
@ -613,10 +617,10 @@
- `brief.md` — Brief: scheduler-core (~2035 tok)
- `design.md` — Technical Design: scheduler-core (~17063 tok)
- `requirements.md` — Requirements Document (~25234 tok)
- `requirements.md` — Requirements Document (~26234 tok)
- `research.md` — Research & Design Decisions: scheduler-core (~4398 tok)
- `spec.json` (~200 tok)
- `tasks.md` — Implementation Plan (~31690 tok)
- `tasks.md` — Implementation Plan (~32131 tok)
## .kiro/specs/scheduler-core/.solomd/
@ -668,7 +672,7 @@
- `ha-async-io.md` — HA Protocol & Async I/O (~4721 tok)
- `persistence.md` — WAL & Persistence Durability (~3007 tok)
- `product.md` — Product Overview (~1509 tok)
- `roadmap.md` — Roadmap (~13249 tok)
- `roadmap.md` — Roadmap (~13890 tok)
- `security.md` — Security Standards (~1636 tok)
- `structure.md` — Project Structure (~1348 tok)
- `tech.md` — Technology Stack (~1500 tok)
@ -859,7 +863,7 @@
- `ha_convergence.c` — Declares char (~8389 tok)
- `ha.c` — define _GNU_SOURCE (~125491 tok)
- `ha.h` — ifndef HA_H (~36503 tok)
- `job.c` — include <errno.h> (~28321 tok)
- `job.c` — include <errno.h> (~26846 tok)
- `join.c` — include "config.h" (~2994 tok)
- `main.c` — include <argp.h> (~5107 tok)
- `meson.build` (~3386 tok)
@ -937,15 +941,29 @@
- `meson.build` (~1183 tok)
## src/scheduler/include/
- `core.h` — if !defined(_CORE_H_) (~7848 tok)
- `repl.h` — if !defined(_REPL_H_); task 12.5 added xce_repl_on_replay_complete()/xce_repl_check_replay_complete() (bug-1594) (~2258 tok)
## src/scheduler/src/
- `core_events.c` — include <errno.h> (~9992 tok)
- `main.c` — include <argp.h> (~3552 tok)
- `repl_info.c` — include <stdio.h> (~7726 tok)
- `core_clock.c` — include <stdarg.h> (~3441 tok)
- `core_events.c` — include <errno.h> (~10786 tok)
- `core.c` — include <errno.h> (~4310 tok)
- `driver.c` — include <errno.h> (~9230 tok)
- `main.c` — CLI entry (argp table); bug-1585 added --record-snapshot-interval, wired to sched.record_snapshot_interval (~4650 tok)
- `recording_session.c` — include <stdint.h> (~2706 tok)
- `repl_break.c` — include <stdio.h>; task 12.5 added unconditional repl_print_event_summary() in xce_repl_on_event() (bug-1595), 790/800 lines (~8861 tok)
- `repl_info.c` — include <stdio.h>; task 12.5 rewrote info-resource for metadata + GLOBAL/SHARED-only (bug-1593), repl_job_state_name() now non-static; 856 lines, STILL OVER 800-line cap (pre-existing debt, was 883) (~8462 tok)
- `repl_internal.h` — if !defined(_REPL_INTERNAL_H_); task 12.5 added replay_complete field + repl_job_state_name extern (~3602 tok)
- `repl_params.c` — include <errno.h> (~4299 tok)
- `repl.c` — include <ctype.h>; task 12.5 added xce_repl_on_replay_complete(), replay_complete guard on step/continue, quote-stripping in repl_split_tokens() (bug-1594/1596) (~6611 tok)
- `resource.c` — include <errno.h> (~4526 tok)
- `scheduler.c` — include <errno.h> (~15589 tok)
- `sim_loop.c` — include <errno.h> (~9158 tok)
- `scheduler.c` — include <errno.h> (~15773 tok)
- `sim_loop.c` — include <errno.h>; task 12.5 added xce_repl_check_replay_complete() call after replay loop ends (bug-1594), 770/800 lines (~9386 tok)
- `sim_picker.c` — include <errno.h> (~1374 tok)
- `sim_verify.c` — include <stdio.h> (~4694 tok)
- `snapshot_load.c` — include <errno.h> (~4005 tok)
- `snapshot_wire.c` — include <errno.h> (~2611 tok)
@ -955,24 +973,33 @@
## src/scheduler/testsuite/
- `meson.build` — Declares vtask_entry (~14818 tok)
- `test_core_events.c` — Declares and (~7850 tok)
- `test_repl_breakpoints_inspection.c` — Declares and (~11461 tok)
- `test_sim_event_loop.c` — Declares char (~8062 tok)
- `meson.build` — Declares vtask_entry; registers sched_resval_ownership_test (bug-1585) (~15150 tok)
- `test_clock.c` — Declares uint64_t (~5450 tok)
- `test_core_events.c` — Declares and; real dup_val() reimpl added for link (bug-1585) (~7880 tok)
- `test_driver_translate.c` — Declares field; full_val/delta_val fixtures now set ->which=XCE_VAL_NUMERIC (bug-1585 dup_val fix exposed the gap) (~9580 tok)
- `test_repl_breakpoints_inspection.c` — Declares and (~16735 tok)
- `test_repl_equivalence.c` — Declares char (~7554 tok)
- `test_repl_execution_control.c` — Declares directly (~8798 tok)
- `test_resval_ownership.c` — bug-1585 regression: RESVALS_FULL/RESVALS_DELTA heap-use-after-free, with a REAL (non-stubbed) kill_sched_resval to actually catch it (~5471 tok)
- `test_sim_alt_events.c` — Declares char (~4863 tok)
- `test_sim_event_loop.c` — Declares char (~8156 tok)
- `test_sim_isolation.c` — Declares names (~8174 tok)
- `test_sim_verify.c` — Declares mismatch (~9312 tok)
## src/tools/
- `deploy-ha.sh` — HA deploy script; Step 3 now also conditionally generates an apiserver config+start script (opt-in on /tmp/apiserver presence) plus an always-generated start-all.sh sequencing controller→health-check→worker/scheduler/apiserver (~7800 tok)
- `deploy-ha.sh` — auto-detects real `xcecd` vs `xcecd_virtual` (XCE_REAL_WORKER / /run/systemd/system), generates sudo-wrapped start-worker.sh for real (~8000 tok)
- `xce-build.sh` — Declares of (~2508 tok)
## src/worker/src/
- `resource_sync.c` — include "resource_sync.h" (~3926 tok)
- `xcecd_dbus_manager.c` — include "xcecd_dbus_manager.h"; dbus_workers_update() (bug-1589 FIX): worker-list `while` loop now captures `next = worker->next` up front and every early continue/return advances to it, instead of re-testing the same worker forever or `return true`-aborting the whole scan on the first WORKER_DONE/EXITED node (~3755 tok)
## src/worker/testsuite/
- `meson.build` — Worker unit test suite (component-failover-adoption, task 2.1). White-box (~872 tok)
- `meson.build` — Worker unit test suite (component-failover-adoption, task 2.1). White-box (~1147 tok)
- `test_dbus_workers_update.c` — Declares started (~3398 tok)
- `test_resource_sync.c` (~1374 tok)
## src/xceadmin/