Repository navigation
Description
This issue tracks the roadmap of the code review that
CODE_IMPROVEMENT_PLAN.md reports. Each item below is one issue, with its own
evidence, scope, acceptance criteria and required tests.
Status lives on each issue, and nowhere else. GitHub renders every
reference below as open or closed, so this list never needs a checkbox and
never goes stale. It carried 20 checkboxes until 2026-08-02, and 11 of them
were wrong -- closed issues still showing unchecked, under a heading that
claimed this was the source of truth. A status you have to maintain by hand is
a status that disagrees with reality.
CODE_IMPROVEMENT_PLAN.md maps a finding to an issue number and holds no
status of its own, for the same reason.
Phase 0 -- correctness and safety
- Settings: route each scope to the Nix door that accepts it #35 Settings: route each scope to the Nix door that accepts it (critical, L)
- Settings: merge session-level eval, fetch and flake defaults #36 Settings: merge session-level eval, fetch and flake defaults (high, M)
- RPC: the worker does not enforce the construction-time settings guard #37 RPC: the worker does not enforce the construction-time settings guard (high, S)
- inproc: Session.close() swallows cancellation #38 inproc: Session.close() swallows cancellation (medium, S)
- inproc: NIX_USER_CONF_FILES is set into the environment and never restored #39 inproc: NIX_USER_CONF_FILES is set and never restored (low, S)
Phase 1 -- lifecycle hardening
- inproc: a Nix value is never released when its Python handle is collected #40 inproc: a Nix value is never released when its handle is collected (high, M)
- Tests: worker-death coverage never kills a worker #41 Tests: worker-death coverage never kills a worker (medium, M)
- Logging: a stalled log consumer stalls Nix, with no bound and no signal #42 Logging: a stalled log consumer stalls Nix (medium, M)
Phase 2 -- API and type safety
- RPC: give the worker a typed state and a typed handle registry #43 RPC: give the worker a typed state and a typed handle registry (medium, M)
- API: the public surface disagrees with itself #44 API: the public surface disagrees with itself (medium, M)
- core: retire CoreEvalState.__getattr__, the last untyped hole in the core #45 core: retire CoreEvalState.getattr (low, M)
Phase 3 -- test architecture
- Tests: a settings routing matrix #46 Tests: a settings routing matrix (high, M)
- Tests: property-based round trips for stores.py #47 Tests: property-based round trips for stores.py (medium, M)
- Tests: serialization round trips for the wire types #48 Tests: serialization round trips for the wire types (medium, S)
- Tests: hostile boundary conditions #49 Tests: hostile boundary conditions (medium, M)
- Tests: run the drift check and the version gates under 2.31 and 2.35 in CI #50 Tests: the drift check under 2.31 and 2.35 in CI (medium, S)
Phase 4 -- tooling and documentation
- CI: no lint, type or format gate runs anywhere #51 CI: no lint, type or format gate runs anywhere (high, M)
- Docs: documentation code is never executed, and two published examples do not run #52 Docs: documentation code is never executed (medium, M)
- Docs: write down the ownership rules and the layering rules #53 Docs: write down the ownership rules and the layering rules (low, S)
- rpc: give the stdio worker a worker_start value, a client and a test #54 Resolve the stdio worker: give it a client, or delete it (low, S)
Baseline at the time of the review
| Command | Result |
|---|---|
pytest tests --nix-test-backends local,daemon |
2534 passed, 0 failed, 3 skipped, 691.5 s |
pyright |
0 errors |
ruff check |
All checks passed |
ruff check --config ruff-strict.toml |
All checks passed |
ruff format --check |
259 files already formatted |
No item above comes from a failing test. Every confirmed defect is a
behaviour that the suite does not exercise. That is the main conclusion about
the test strategy: the checks that exist all pass, and the gaps are where the
checks are absent.
Order
Phase 0 and Phase 1 are the defects. Do not start Phase 2 before they land:
#43 and #45 refactor the layer that #37 and #40 correct.
Reasoning that is not an issue
Four parts of the review are not work items. They live in docs/:
docs/nanopynix/architecture-principles.md-- layer boundaries, ownership
of a native resource, the error taxonomy, the sync and async policy, and the
compatibility policy.docs/nanopynix/quality-gates.md-- the exact commands, and which gate runs
when.docs/nanopynix/decisions.md-- the ideas that this review rejected or
deferred, and the open questions with a recommended default for each.
Activity
docs: turn the code improvement plan into issues and living documents
feat(nanopynix): report what an evaluator did, on both engines
docs: turn the code improvement plan into issues and living documents
feat(nanopynix): report what an evaluator did, on both engines
feat(ddrn): drop the 2.31 band, bind Derivation, and pin a newer master
One CLAUDE.md for the monorepo
One CLAUDE.md for the monorepo
One CLAUDE.md for the monorepo
One CLAUDE.md for the monorepo
One CLAUDE.md for the monorepo
One CLAUDE.md for the monorepo
One CLAUDE.md for the monorepo