save wolf status

This commit is contained in:
Rongsong Shen 2026-08-18 14:50:44 +00:00
parent ef404131c0
commit a4b5fbbc28
No known key found for this signature in database
GPG key ID: 9A8F603E5F8A1D8F
7 changed files with 73783 additions and 114 deletions

View file

@ -1,7 +1,32 @@
# anatomy.md
> Auto-maintained by OpenWolf. Last scanned: 2026-08-17T05:01:33.782Z
> Files: 507 tracked | Anatomy hits: 0 | Misses: 0
> Auto-maintained by OpenWolf. Last scanned: 2026-08-18T14:36:36.835Z
> Files: 565 tracked | Anatomy hits: 0 | Misses: 0
## ../../../../../../tmp/
- `apiserver` (~27 tok)
## ../../../../../../tmp/claude-1000/-home-rshen-projects-xce-worktrees-scheduler-framework/01599b27-8a93-432e-a4a8-263066731f52/scratchpad/
- `add_bug1573.py` — Declares core_apply_worker_resvals (~901 tok)
- `check_leftover.sh` — Standalone leftover-process checker -- avoids the bug-1576 self-match (~180 tok)
- `crash_handler.c` — define _GNU_SOURCE (~485 tok)
- `exe-watch.sh` — Watches for a REAL worker daemon process by checking each PID's /proc/exe (~193 tok)
- `fake-apiserver.sh` — Deliberately-crashing fake apiserver binary for independent mid-abort (~96 tok)
- `fix_bug_1574.py` (~799 tok)
- `fix_bug1572.py` (~1026 tok)
- `gdbcmds.txt` (~63 tok)
- `proc_worker_scan.sh` — Scan /proc/<pid>/exe for any process whose REAL BINARY (not argv/cmdline (~300 tok)
- `procscan.sh` — Scan /proc for real processes whose cmdline references the given (~261 tok)
- `reviewer_synth_test.sh` — Independent reviewer synthetic test -- sources the REAL script (production (~1538 tok)
- `stress_driver.sh` — Independent stress-test driver for run-resource-verify.sh's trap-based (~758 tok)
- `synth_aggregate_test_round2.sh` — Round-2 synthetic regression suite for run-resource-verify.sh's task 7.1 (~2469 tok)
- `synth_aggregate_test.sh` — Synthetic sanity-check for run-resource-verify.sh's aggregate_verdict() (~1559 tok)
- `test_aggregate.sh` — Independent synthetic test of aggregate_verdict() / build_verdict_record() (~2105 tok)
- `test-sched-check.sh` — Synthetic (no live deployment) test of query_scheduler_resvals() / poll_scheduler_log() (~783 tok)
- `trap_repro.sh` (~301 tok)
- `xtest_script.txt` (~52 tok)
## ./
@ -185,11 +210,11 @@
## .claude/skills/xce-build/
- `SKILL.md` — build xce source code (~1283 tok)
- `SKILL.md` — build xce source code (~2597 tok)
## .claude/skills/xce-deploy-ha/
- `SKILL.md` — XCE HA Cluster Deployment (~1974 tok)
- `SKILL.md` — XCE HA Cluster Deployment; now documents Step 4d (apiserver) and Step 4e (start-all.sh combined shortcut) (~5900 tok)
## .claude/skills/xce-test-ha/
@ -198,6 +223,12 @@
- `soak-verdict-selftest.sh` — soak-verdict-selftest.sh — deterministic unit test for the verdict parser in (~2825 tok)
- `soak-verdict.sh` — soak-verdict.sh — pure (side-effect-free) verdict helpers for run-ha-soak.sh. (~2980 tok)
## .claude/skills/xce-test-resources/
- `run-resource-verify.sh` — run-resource-verify.sh -- driver for /xce-test-resources: end-to-end (~21445 tok)
- `SKILL.md` — XCE Resource-Value Verification skill contract, FULLY UPDATED for task 7.1 completion: "Status: complete and functional", real VERDICT line format (`resources=N layers_checked=3 mismatches=M unreachable=U rejected=R result=PASS|FAIL`), real flag names (`--keep-running`, `--dir DIR`, `$XCE_RESVERIFY_*` env vars, all cross-checked against the actual script), FAILURE-line format, self-contained/sourceable `aggregate_verdict()` note for task 8.2, known-bugs section (1572/1574 open, 1579 fixed). No longer says "not yet implemented" anywhere. (~3400 tok)
- `verdict-logic-selftest.sh` — verdict-logic-selftest.sh -- deterministic, no-deployment unit test for (~3135 tok)
## .codegraph/
- `.gitignore` — Git ignore rules (~61 tok)
@ -548,6 +579,14 @@
- `research.md` — Research: resourcemap / distributions / hostBased (~1548 tok)
- `spec.json` (~132 tok)
## .kiro/specs/resource-value-verification/
- `design.md` — Design Document (~11019 tok)
- `requirements.md` — Requirements Document (~2797 tok)
- `research.md` — Research & Design Decisions (~5967 tok)
- `spec.json` (~133 tok)
- `tasks.md` — Implementation Plan (~8164 tok)
## .kiro/specs/resval-id-decoupling/
- `design.md` — Design: resval-id-decoupling (~3914 tok)
@ -623,11 +662,11 @@
## .kiro/steering/
- `api-standards.md` — API Standards (~1447 tok)
- `build-deployment.md` — Build & Deployment (~1722 tok)
- `build-deployment.md` — Build & Deployment (~2917 tok)
- `config-design.md` — Configuration Design: What Belongs in Shared Config (~2053 tok)
- `error-handling.md` — Error Handling Standards (~1367 tok)
- `ha-async-io.md` — HA Protocol & Async I/O (~4521 tok)
- `persistence.md` — WAL & Persistence Durability (~2600 tok)
- `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)
- `security.md` — Security Standards (~1636 tok)
@ -815,7 +854,7 @@
- `config_repl.h` — pragma once (~6952 tok)
- `ctrl_metrics.c` — include "ctrl_metrics.h" (~767 tok)
- `ctrlstatus.c` — include "config.h" (~3234 tok)
- `dataex.c` — include <errno.h> (~2466 tok)
- `dataex.c` — include <errno.h> (~2531 tok)
- `egress.c` (~1130 tok)
- `ha_convergence.c` — Declares char (~8389 tok)
- `ha.c` — define _GNU_SOURCE (~125491 tok)
@ -823,22 +862,22 @@
- `job.c` — include <errno.h> (~28321 tok)
- `join.c` — include "config.h" (~2994 tok)
- `main.c` — include <argp.h> (~5107 tok)
- `meson.build` (~2626 tok)
- `meson.build` (~3386 tok)
- `misc.c` — include <errno.h> (~1359 tok)
- `myapp.c` — define _GNU_SOURCE (~6287 tok)
- `myconf.c` — define _GNU_SOURCE (~1180 tok)
- `opget.c` — include "config.h" (~1730 tok)
- `opupd.c` — include "config.h" (~714 tok)
- `persist.c` — define _GNU_SOURCE (~88572 tok)
- `persist.c` — define _GNU_SOURCE (~88956 tok)
- `queue.c` — include <errno.h> (~1554 tok)
- `repl.c` — include <assert.h> (~9240 tok)
- `reply.c` — include "config.h" (~590 tok)
- `resources.c` — include <errno.h> (~50 tok)
- `sched.c` — include <errno.h> (~6127 tok)
- `sched.c` — include <errno.h> (~6080 tok)
- `slowlane.c` — define _GNU_SOURCE (~2392 tok)
- `startup_validation.c` — define _GNU_SOURCE (~1524 tok)
- `task.c` — include <errno.h> (~1376 tok)
- `worker.c` — include <errno.h> (~8284 tok)
- `worker.c` — include <errno.h> (~8004 tok)
## src/controller/include/
@ -854,6 +893,8 @@
- `configcompare.h` — pragma once (~1186 tok)
- `controller_test.c` — include <argp.h> (~2357 tok)
- `ctrlstatus_fmt.h` — ifndef _CTRLSTATUS_FMT_H_ (~631 tok)
- `resval_typeresolve.c` — resval_resolve_type(): resource-name -> Value_u_which table lookup (14 known names unchanged) + task 2.1's numeric-default fallback / `-t` type_override for unrecognized names (~499 tok)
- `resval_typeresolve.h` — declares resval_resolve_type()/RESVAL_TYPE_UNKNOWN; task 2.1 fallback now implemented (~676 tok)
- `snapdiff.c` — define _GNU_SOURCE (~893 tok)
- `snapdiff.h` — pragma once (~610 tok)
- `snapverify.c` — define _GNU_SOURCE (~4322 tok)
@ -870,7 +911,7 @@
- `test_commit_admission_pool.c` — Declares int (~2315 tok)
- `test_commit_barrier_reply.c` — Declares uint8_t (~46770 tok)
- `test_commit_barrier_rollout.c` — Declares explicitly (~29654 tok)
- `test_commit_durability.c` — define _GNU_SOURCE (~35236 tok)
- `test_commit_durability.c` — define _GNU_SOURCE (~33748 tok)
- `test_commit_engine.c` (~19059 tok)
- `test_commit_resolve.c` (~15028 tok)
- `test_config_repl.c` — define _GNU_SOURCE (~93438 tok)
@ -879,8 +920,70 @@
- `test_ctrl_metrics.c` — define _GNU_SOURCE (~949 tok)
- `test_ctrlstatus.c` — include <stdatomic.h> (~6287 tok)
- `test_ha_rdhup_integration.c` — Declares char (~8362 tok)
- `test_resval_typeresolve.c` — Declares override (~1118 tok)
- `test_sched_worker_change.c` — Declares bug (~3893 tok)
- `test_term_safety_adapter.c` — define _GNU_SOURCE (~29920 tok)
- `test.c` — include <argp.h> (~39556 tok)
## src/frontend/apiserver/backend/
- `handler.go` — Struct: DefaultHandler; NotificationHandler impl (OnJobCreated/Updated/Deleted, OnHostUpdated, OnClusterUpdated, OnResourceUpdated, OnResourceLocationUpdated). Task 4.2 (resource-value-verification): OnResourceLocationUpdated now emits `logger.Debug("resource-location stored", zap.String("resource",...), zap.String("host",...), <typed value field>)` right after store.ResourceLocations.Put (~1780 tok)
## src/include/
- `persist.h` — pragma once (~24461 tok)
## src/scheduler/
- `meson.build` (~1183 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)
- `resource.c` — include <errno.h> (~4526 tok)
- `scheduler.c` — include <errno.h> (~15589 tok)
- `sim_loop.c` — include <errno.h> (~9158 tok)
- `sim_picker.c` — include <errno.h> (~1374 tok)
- `snapshot_load.c` — include <errno.h> (~4005 tok)
- `snapshot_wire.c` — include <errno.h> (~2611 tok)
## src/scheduler/src/plugins/
- `builtin_fcfs.c` — Declares signature (~10701 tok)
## 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)
- `test_sim_isolation.c` — Declares names (~8174 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)
- `xce-build.sh` — Declares of (~2508 tok)
## src/worker/src/
- `resource_sync.c` — include "resource_sync.h" (~3926 tok)
## src/worker/testsuite/
- `meson.build` — Worker unit test suite (component-failover-adoption, task 2.1). White-box (~872 tok)
- `test_resource_sync.c` (~1374 tok)
## src/xceadmin/
- `meson-build.sh` — Meson-driven xceadmin build: install + test out-of-tree, in the meson (~1044 tok)
- `pyproject.toml` — XCE cluster configuration admin CLI (config build / config push) (~662 tok)
## src/xceadmin/src/xceadmin/
- `cli.py` — xceadmin command-line entry point (design.md, ``xceadmin.cli``; (~3290 tok)
## src/xceadmin/tests/
- `test_cli.py` — Tests for the xceadmin CLI (design.md, ``xceadmin.cli``; task 1.1's (~6916 tok)