fix(configs): add worker-builtin load indices missing from resources.yaml

worker/src/resource_sync.c init_builtin_load_indices registers 11 load
indices (r15s/r1m/r15m/ut/pg/ls/it/swp/mem/tmp/io) but resources.yaml only
defined r1m/r15s/mem/tmp. The 7 missing ones (r15m/ut/pg/ls/it/swp/io) caused
controller "update_resval: Success" ERRORs and scheduler "unknown resource in
per-worker resvals update" warnings, leaving the worker resource view
incomplete. Add the 7 definitions matching the existing r1m/r15s pattern.

Docs: log bug-1494 (all jobs PEND, scheduler never dispatches; after this
config fix jobs still PEND — remaining suspect is the scheduler→controller
join path after restart), update design doc + verification manual known-issue
tables and root CLAUDE.md cluster-verification status.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
lei.chen 2026-08-02 07:36:03 +00:00
parent 226259a52b
commit 62dee0edc1
6 changed files with 130 additions and 5 deletions

View file

@ -49,7 +49,7 @@ For details on any topic below, read the corresponding steering file in `.kiro/s
- `src/worker/` — See `src/worker/CLAUDE.md`
- `src/scheduler/` — See `src/scheduler/CLAUDE.md`
- `src/lib/` — See `src/lib/CLAUDE.md`
- `src/frontend/schedulerclient/`, `src/frontend/mcp-server/` — **Phase 0-1 已完成**(Phase 0: 2026-07-26,Phase 1: 2026-08-01)。`schedulerclient` 是独立 Go library,提供读 + 写 Client(6 只读 + 4 写:SubmitJob/CancelJob/HoldJob/ReleaseJob,resty HTTP 实现,33+12 单测)。`mcp-server` 是 MCP stdio 二进制(`github.com/mark3labs/mcp-go@v0.57.0`),通过 `schedulerclient` 调用 `apiserver` REST API,暴露 10 个 MCP Tool(6 只读 + 4 写,写工具含 `dry_run` review 模式 + `general_serial` 作业模板 registry)。Pure Go, `CGO_ENABLED=0`。Phase 1 需 `mcp_operator` RBAC 角色(`config/rbac.yaml`)。总体架构与分阶段计划见 `docs/Scheduler-Agent-设计文档.md`。**集群验证(2026-08-01)**:t1 单节点 controller 集群上,读操作 + submit 已通过 mcp_operator API key 验证;hold/release/cancel 因 apiserver control 链路预存 bug(HTTP 500)待修(bug-1490)。
- `src/frontend/schedulerclient/`, `src/frontend/mcp-server/` — **Phase 0-1 已完成**(Phase 0: 2026-07-26,Phase 1: 2026-08-01)。`schedulerclient` 是独立 Go library,提供读 + 写 Client(6 只读 + 4 写:SubmitJob/CancelJob/HoldJob/ReleaseJob,resty HTTP 实现,33+12 单测)。`mcp-server` 是 MCP stdio 二进制(`github.com/mark3labs/mcp-go@v0.57.0`),通过 `schedulerclient` 调用 `apiserver` REST API,暴露 10 个 MCP Tool(6 只读 + 4 写,写工具含 `dry_run` review 模式 + `general_serial` 作业模板 registry)。Pure Go, `CGO_ENABLED=0`。Phase 1 需 `mcp_operator` RBAC 角色(`config/rbac.yaml`)。总体架构与分阶段计划见 `docs/Scheduler-Agent-设计文档.md`。**集群验证(2026-08-01/02)**:t1 单节点 controller 集群上,读操作(含 OrderMap 解析修复 bug-1491)+ submit 已通过 mcp_operator API key 验证;**作业全部 PEND 不调度**(bug-1494,疑 scheduler→controller join 链路,已补 resources.yaml 但未解决);hold/release/cancel 因 apiserver control 链路预存 bug(HTTP 500)待修(bug-1490)。
# Agentic SDLC and Spec-Driven Development