You sign
8000
ed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move every consumer of nanopynix to huggorm, then retire nanopynix #866
Move every consumer of nanopynix to huggorm, then retire nanopynix.
User starts this. An agent never starts the port on its own. Label user-initiated. An agent MAY do the items under "Incompatibilities" at any time, each as its own issue and commit.
Library parity is done: huggorm/docs/parity.md has no gap row. What remains is the consumers, and the pieces that live in nanopynix only.
Incompatibilities (an agent may do these)
nanopynix._typechecking (BEARTYPING, no_runtime_type_check): 45 imports in pynix, libpynix, pynix-lsp and nanopynix-helpers. It needs a home outside nanopynix.
The Nix packaging (ps, mkApp, pythonSetWith) lives in nanopynix/default.nix. nixkube, easykubenix and pynixd import nanopynix for it, not for evaluation.
Names pynix takes from nanopynix that huggorm does not have: LogEvent, strip_ansi, attrs_to_python, get_env_sh_path, set_manager_title, store_exec_prefix, NixSettingsEnv, EvaluatorAbandonedError, HashMismatchError. For each: a huggorm equivalent, or a move into pynix (parity.md marks settings models superseded, and the namespace and store_exec rows refused).
easykubenix/lib/serialiseYaml.nix names nanopynix's toYAML primop. ekn registers its own (ekn/nixyaml.py), so the comment is wrong.
The port (User starts it)
pynix, libpynix, nanopynix-helpers, pynix-lsp: about 40 modules import nanopynix.
On hold: the _typechecking item. Do not move it yet.
Carl, 2026-10-20: lazy imports are coming (PEP 810 in Python 3.15, and a separate effort for 3.14 and older that rewrites imports to lazy proxy objects). Those proxies will likely break beartype. The future of beartype in this tree is open, and typeguard (agronholm) is the candidate. Moving the helper before that decision is wasted work.
vivarium-eval: ported, on huggorm in process. Verified with vivarium-eval phases recipes.
easykubenix: uses huggorm.attrpath; its copy is gone.
Decision on nanopynix-helpers (User): no huggorm-helpers package. General composition (eval_target flake search, build) moves into huggorm, as attrpath did. Tool policy (fod, attr_completion) moves into pynix or libpynix.
Decision (User, 2026-10-24): after the port, the nanopynix source becomes the pynix source. The rename waits until nothing uses nanopynix.
Move nanopynix/ to pynix/ and export with :[:/nanopynix,:/pynix]. Then rename the GitHub repo nanopynix to pynix.
Josh has no rename detection, but a joined filter keeps the history. I tested this with the pinned josh r26.05.08 on a scratch repo. Old commits keep their hashes, so the export is a fast-forward of the nanopynix repo.
A move into a source that exists (for example huggorm/) cannot keep the history: a joined filter changes that source's hashes, and the export refuses the push.
members.nix needs a filter field for this, because josh-export uses :/<name> everywhere today.
Ported (local, not pushed yet): pynix-lsp, pynixd tests/differential, ci/render.py, nix/render-manpages.py. Outside nanopynix's own library, docs and tests, no Python imports nanopynix, except nanopynix._typechecking (on hold).
The library stays for now. huggorm first launches worker servers over stdio, multiprocessing and asyncssh, as nanopynix does (Transport shims under the dispatcher #551). nanopynix's worker and grpclib-transports stay as the reference until then.
Packaging: the generic ps (python-set.nix) moves into nixvenv. mkApp and pythonSetWith stay here and go with the source when it becomes pynix.
The nanopynix library is removed locally (not pushed yet), after huggorm got worker servers (#551):
pynix installs deferimport, every import is at the top of its module, and BEARTYPING and if TYPE_CHECKING: are gone. Under beartype the hook sets DEFERIMPORT=eager.
The library, nanopynix-proto, grpclib-transports and greeter-proto are deleted. nanopynix-testing keeps the beartype hook alone.
Activity
docs: keep agents off user-initiated and off-main issues
Lillecarl commentedon Oct 20, 2026
On hold: the
_typecheckingitem. Do not move it yet.Carl, 2026-10-20: lazy imports are coming (PEP 810 in Python 3.15, and a separate effort for 3.14 and older that rewrites imports to lazy proxy objects). Those proxies will likely break beartype. The future of beartype in this tree is open, and typeguard (agronholm) is the candidate. Moving the helper before that decision is wasted work.
The other incompatibilities stay open to agents.
Assisted-By: Claude Opus 5.5
Lillecarl commentedon Oct 23, 2026
Port started (User, 2026-10-23). Order: one consumer at a time, each mapped against the built huggorm API first.
getrefuses a thunk, so each consumer had its own force-and-select walk. Nowhuggorm.attrpath(huggorm: select an attribute path and auto-call, as nix --file does #1041).vivarium-eval phases recipes.huggorm.attrpath; its copy is gone.Decision on nanopynix-helpers (User): no
huggorm-helperspackage. General composition (eval_targetflake search,build) moves into huggorm, asattrpathdid. Tool policy (fod,attr_completion) moves into pynix or libpynix.Assisted-By: Claude Opus 5.5
refactor(vivarium-eval): evaluate with huggorm, not nanopynix
refactor(vivarium-eval): evaluate with huggorm, not nanopynix
build(monorepo): a gate that refuses a new PYTHONPATH
Lillecarl commentedon Oct 24, 2026
Decision (User, 2026-10-24): after the port, the nanopynix source becomes the pynix source. The rename waits until nothing uses nanopynix.
nanopynix/topynix/and export with:[:/nanopynix,:/pynix]. Then rename the GitHub repo nanopynix to pynix.huggorm/) cannot keep the history: a joined filter changes that source's hashes, and the export refuses the push.members.nixneeds afilterfield for this, because josh-export uses:/<name>everywhere today.Assisted-By: Claude Opus 5.5
Lillecarl commentedon Oct 24, 2026
State and decisions (User, 2026-10-24).
Ported (local, not pushed yet): pynix-lsp, pynixd
tests/differential,ci/render.py,nix/render-manpages.py. Outside nanopynix's own library, docs and tests, no Python imports nanopynix, exceptnanopynix._typechecking(on hold).ps(python-set.nix) moves into nixvenv.mkAppandpythonSetWithstay here and go with the source when it becomes pynix.Assisted-By: Claude Opus 5.5
feat(huggorm): huggorm.testing, store fixtures for a suite on huggorm
test(pynix): the suite runs on huggorm.testing, not nanopynix_testing
test(pynix): the tests import no nanopynix
refactor(pynix-lsp): evaluate on huggorm, not nanopynix
test(nanopynix): the engine annotation ledger is empty
refactor(nanopynix): ci/render.py evaluates on huggorm
refactor(nanopynix): render-manpages strips escapes with huggorm
test(pynixd): the differential oracle is huggorm, not nanopynix
refactor(nixvenv): `ps`, the pyproject.nix package sets, moves from n…
feat(huggorm): huggorm.testing, store fixtures for a suite on huggorm
test(pynix): the suite runs on huggorm.testing, not nanopynix_testing
test(pynix): the tests import no nanopynix
refactor(pynix): a namespaced build runs on huggorm.worker
Lillecarl commentedon Oct 24, 2026
The nanopynix library is removed locally (not pushed yet), after huggorm got worker servers (#551):
BEARTYPINGandif TYPE_CHECKING:are gone. Under beartype the hook setsDEFERIMPORT=eager.Next: the rename nanopynix → pynix.
Assisted-By: Claude Opus 5.5
refactor(nanopynix): plain imports at the top, made lazy by deferimport
refactor(nanopynix): remove the nanopynix library
test(nanopynix): restore the workflow staleness gate
docs(nanopynix): describe the repository without the library
fix(pynix): the flake lock tests put tarball-ttl back