# Deferred items — Phase 23

Out-of-scope discoveries logged during Phase 23 execution. Do NOT fix as part of any
Phase 23 plan; surface to the user / a future phase.

## Pre-existing lib-test parallel flakiness (discovered during plan 23-01)

`cargo test --lib` (default parallel runner) fails 16 tests across these modules:

- `common::owlery::tests::is_perch_online_true_for_alive_pid`
- `live::commune::tests::commune_result_bumps_cursor_on_offline_spool`
- `live::signoff::tests::signoff_result_bumps_cursor_when_psyche_reachable`
- `live::context::tests::amend_signoff_result_bumps_cursor_after_write`
- `live::context::tests::append_pending_sections_*` (4 tests)
- `live::context::tests::download_payload_*` (3 tests)
- `live::wrapper::tests::passive_ctx_*` (2 tests)
- `owl::cleanup::tests::*` (4 tests)
- a handful of `owl::*` snapshot/resume tests

Symptom: `Os { code: 3, kind: NotFound, ... }` constructing relative paths
(`Cargo.toml`, `psyche directory`, perch dirs). Each test creates an `SPT_HOME`
tempdir and reads cwd-relative state; tests share temp roots derived from
`std::env::temp_dir() + process::id()` which collide across parallel cargo workers.

**Reproduction:** `cargo test --lib` → 16 failed.
**Workaround that confirms pre-existence:** `cargo test --lib -- --test-threads=1`
→ all 499 tests pass cleanly. (Verified during plan 23-01 execution.)

**Confirmed not caused by Phase 23:** Plan 23-01's git module tests do NOT
mutate global state (refactored to use `stamp_at(&Path)` / `commits_*_at`).
Adding/removing the git tests does not change the count of pre-existing
failures.

**Disposition:** Out of scope for plan 23-01. Recommend a future phase to:
1. Audit `SPT_HOME` test setup across the listed modules
2. Switch each test to a per-test-unique SPT_HOME (probably
   `format!("{}_{}_{}", base, process_id, test_thread_id)` or a per-test
   `tempfile::TempDir`)
3. Or set a project-wide `harness = { thread-count = 1 }` if isolation is
   intractable

Not blocking Phase 23 because the new `common::git` module's own test suite
runs cleanly under default parallel cargo test (13/13 pass).
- [2026-05-20T06:28:22Z] 23-06 executor noticed 6 PLAN.md files (23-01..23-06) + 23-RESEARCH.md remain untracked in the phase dir. These predate Plan 23-06 execution and belong to upstream wave commits. Recommend: a follow-up cleanup commit (out of 23-06 scope per executor scope-boundary rule).
