Repository navigation
chore(tooling): enforce indexed access in core tests - #105375
Conversation
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: chore(tooling): enforce indexed access in core tests This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Codex review: needs real behavior proof before merge. Reviewed July 12, 2026, 9:28 AM ET / 13:28 UTC. Summary Reproducibility: not applicable. the PR closes a static compiler-diagnostic inventory rather than reproducing a runtime defect. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Merge the coherent test-only config flip once normal protected-label maintainer handling confirms the exact head, using the base noUncheckedIndexedAccess setting as the single source of truth for every test lane. Do we have a high-confidence way to reproduce the issue? Not applicable; the PR closes a static compiler-diagnostic inventory rather than reproducing a runtime defect. Is this the best way to solve the issue? Yes; removing the final shared opt-out and redundant lane overrides is the canonical end state, and the individual rewrites explicitly preserve fixture invariants rather than adding a parallel safety mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 58d55ca0f564. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: chore(tooling): enforce indexed access in core tests This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
# Conflicts: # src/commands/doctor-session-sqlite.test.ts
|
Land-ready on This closes the final core-test lane: the shared Evidence:
|
|
Merged via squash.
|
* test(tooling): enforce indexed access in core tests * test(tui): constrain theme environment overrides * test(doctor): enforce indexed access in migration fixtures
承認済みの cron.sessionGroup を復元する。設定すると、グループ未設定の 専用実行セッション (agent:<id>:cron:<job>) が実行時にそのサイドバー グループへ入る。手動で付けたグループは新しい isolated 実行でも残す。 current-bound の実行セッションは独自に分類し、元の会話や配送先、 main/custom の会話ターゲットは動かさない。設定を外しても既存の割り当ては 消さない。グループの catalog 登録は、割り当てを保存した後にだけ行い、 失敗しても自動化は止めずに次の書き込みで再試行する。 退避ブランチ backup/personal-wip-20261029 (f82c572cdc4) の未コミット作業を 新しいベースへ載せ直した。コンフリクト解決: - docs/automation/cron-jobs/managing-jobs.md: 上流 0738f13 (openclaw#177855) が 「Disable automations」の段落を host 実行制限の説明に書き換えた。上流の 段落を残し、その前に cron.sessionGroup の説明を置いた - cron/isolated-agent/session.ts: 上流 f31b33f (openclaw#185070) が session-carried-model の import を追加。両方の import を残した - cron/isolated-agent/session.test.ts: 上流 3655433 (openclaw#183506) が未使用の delivery fixture を削除。sessionGroup のテストだけを残し、fixture は戻さない - session.test.ts の store 参照を、core テストの indexed access 規則 (openclaw#105375) に合わせて optional chaining にした rebase 時のコンフリクト解決 (onto 258d034, 元コミット b7547efa95e): - src/config/zod-schema.root-shape.ts: 上流 87ff32d が repository-branch-prefix.js の import を追加。両方の import を残した - docs/.generated/config-baseline.*: 上流版を基に counts の core を +1 (2587)。 sha256 は依存を入れた別 worktree で pnpm config:docs:gen により再生成した (counts は +1 の値のまま一致) rebase 時のコンフリクト解決 (onto 638a185, 元コミット d1e0995b1d7): - 上流が cron に delivery / failureAlert (extend 形式) / agents / creators を追加した (zod-schema.root-shape.ts, schema.help.automation.ts, config-automation.md)。 上流の定義はそのまま残し、sessionRetention の直後に sessionGroup を、 help と許可キー一覧の文にも cron.sessionGroup を足した。 上流の isValidCronExpression import と SESSION_LABEL_MAX_LENGTH import は両方残した。 - docs/.generated/config-baseline.*: counts は上流の core 2638 に本コミットの +1 を足して 2639 とした。config-baseline.sha256 は上流版のまま (未再生成)。依存を入れた別 worktree で pnpm config:docs:gen を実行して再生成する必要がある (今回は install 禁止のため未実施)。
Follow-up to #105343 and #104600.
What Problem This Solves
The shared test TypeScript config still opted out of
noUncheckedIndexedAccess, leaving the core test lane's indexed-access assumptions outside the production safety baseline. The July inventory counted 2,685 diagnostics; currentmainhad drifted to 2,432.Why This Change Was Made
noUncheckedIndexedAccess: truesetting.expectDefinedchecks for genuine fixture invariants.truesettings from the already-landed root, UI, and extension lane configs.User Impact
No runtime impact. Every production and test TypeScript lane now enforces indexed-access safety from the base configuration.
Evidence
node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.json --incremental false --pretty false— clean on Blacksmith Testbox; 2,432 diagnostics to zero.pnpm check:changed— clean on Blacksmith Testbox in 12m56s, including production/test typechecks, formatting, core/extension/script lint, SDK/package guards, import cycles, and policy checks.pnpm test:changed— 33 Vitest shards passed on Blacksmith Testbox in 6m08s, including 2,783 agent tests and all touched core projects.git diff --check, targeted oxfmt, and a complete opt-out search — pass; only the basenoUncheckedIndexedAccess: trueremains.Testbox lease
tbx_01kxb2j72v773qhzk4dn9aq65c(blue-barnacle-626c).