FFFF Move every consumer of nanopynix to huggorm, then retire nanopynix · Issue #866 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

Move every consumer of nanopynix to huggorm, then retire nanopynix #866

Open

Description

@Lillecarl

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)

  1. pynix, libpynix, nanopynix-helpers, pynix-lsp: about 40 modules import nanopynix.
  2. vivarium-eval (vivarium_eval/cli.py): nanopynix.rpc.EvalSession.
  3. pynixd tests/differential: nanopynix-testing is the oracle, plus nanopynix.protocols.AsyncStore.
  4. Retire nanopynix/nanopynix, its RPC worker and its proto.

Earlier steps: #634 (bindings), #693 (ekn), both closed.


Assisted-By: Claude Opus 5.5

Activity

  1. added
    source: nanopynix
    user-initiated
    on Oct 20, 2026
  2. added theissue type on Oct 20, 2026
  3. Lillecarl commented on Oct 20, 2026

    @Lillecarl
    ContributorAuthor

    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.

    The other incompatibilities stay open to agents.


    Assisted-By: Claude Opus 5.5

  4. Lillecarl commented on Oct 23, 2026

    @Lillecarl
    ContributorAuthor

    Port started (User, 2026-10-23). Order: one consumer at a time, each mapped against the built huggorm API first.

    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.


    Assisted-By: Claude Opus 5.5

  5. Lillecarl commented on Oct 24, 2026

    @Lillecarl
    ContributorAuthor

    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.

    Assisted-By: Claude Opus 5.5

  6. Lillecarl commented on Oct 24, 2026

    @Lillecarl
    ContributorAuthor

    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, 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.

    Assisted-By: Claude Opus 5.5

  7. Lillecarl commented on Oct 24, 2026

    @Lillecarl
    ContributorAuthor

    The nanopynix library is removed locally (not pushed yet), after huggorm got worker servers (#551):

    Next: the rename nanopynix → pynix.


    Assisted-By: Claude Opus 5.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: nanopynixuser-initiated

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0