Context
PR 2646 implements issue 2606's OS-standard application-directory migration. CodeRabbit identified several worthwhile maintenance improvements that are not required for the directory migration's runtime correctness and would unnecessarily expand that already-large PR.
Deferred maintenance work
Documentation consistency
- Add missing fenced-block language annotations reported by markdown lint.
- Normalize unrelated debug-log filename examples.
- Correct the unrelated MCP command scope example.
- Replace contradictory absolute-path examples in the approval-mode migration guide.
Test maintenance
- Replace legacy-looking neutral fixtures in memory-tool interface tests with canonical temporary fixture paths where they cannot touch real state.
- Consider a shared test utility for the repeated four-category storage environment snapshot/restore pattern across CLI and A2A extension tests.
- Improve the null-byte error assertion in the OAuth lock test to use a stable error code or name.
- Gate chmod-based permission tests on Windows.
- Add an outcome-based Todo continuation resolver-propagation test if current filesystem behavior does not already cover it; do not add constructor-spy/mock-interaction tests.
Code cleanup and efficiency
- Centralize duplicate Todo read fallback logic shared by todo-read and todo-write.
- Use the exported CoreStorageServiceAdapter singleton consistently in the production tool registry.
- Preserve Vitest default excludes in the A2A config.
- Rename the misspelled DOT_LLPRT_PATTERN constant.
- Add missing legacy-guard self-test cases and consider caching recursive walks by base directory.
- Narrow the Storage legacy-helper allowlist matcher.
- Validate sub-unit timeout overrides after flooring in API-surface and nightly Bun smoke helpers.
- Make GenAI status parsing consume the second NUL token in git rename records.
Acceptance criteria
- Each item is evaluated against current main before implementation.
- Behavioral changes have behavioral tests; no mock-interaction tests.
- No weakening of lint, legacy-path, or GenAI-enclave guards.
- The work may be split into focused PRs by documentation, tests, and tooling.
Related: PR 2646, issue 2606.
Context
PR 2646 implements issue 2606's OS-standard application-directory migration. CodeRabbit identified several worthwhile maintenance improvements that are not required for the directory migration's runtime correctness and would unnecessarily expand that already-large PR.
Deferred maintenance work
Documentation consistency
Test maintenance
Code cleanup and efficiency
Acceptance criteria
Related: PR 2646, issue 2606.