Skip to content

docs(roadmap): TexMol libraries, libf2dock, and arisrv as a many-room compute and scene server - #1090

Merged
transfix merged 1 commit into
masterfrom
docs/texmol-f2dock-arisrv
Nov 9, 2026
Merged

transfix merged 1 commit into
masterfrom
docs/texmol-f2dock-arisrv

Conversation

@transfix

@transfix transfix commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Adds docs/roadmap/TEXMOL-F2DOCK-ARISRV-ROADMAP.md. Docs only.

Joe asked for a plan to:

  • port TexMol's legacy libraries;
  • move the F2Dock server onto arisrv and Ariadne documents, with TexMol talking to it;
  • make arisrv general for TexMol and VolumeRover compute, and for scientific visualizations and digital twins in separate rooms with their own scenes, in the conference mode cyprty uses.

It builds on:

TexMol (§2). An inventory of every library, from a read of transfix/TexMol e621ebc.

  • About 714k lines, mostly vendored code or duplicates of libcvc. The science is about 68k lines of UT-LGPL headless C++.
  • Port:
    • molecules (PDBParser, GOAFileTypes);
    • the Blurmaps surface engine, which also generates F2Dock's F2D input in-process;
    • HLevelSet's SES;
    • Pocket, rebuilt on cvc::sdf;
    • the docking analysis, with the clash, desolvation, LJ and residue-contact filters that TexMol and F2Dock each carry a copy of, ported once;
    • the F2Dock client's Qt-free core;
    • later, PocketTunnel and SecondaryStructures on the cocone core.
  • Leave: the GUI, the libcvc duplicates, the licence blockers, and the dead code.
    • Decimation's SHASTRA no-commercial and IMSL all-rights-reserved code is built by default and missing from TexMol's notices.
  • Rewrite only if wanted: the GB and PB solvers.

F2Dock (§3).

  • The engine is single-job: global work queues, function statics and 55 exit() calls. It mutates its inputs, and the goldens bake that in.
  • The XML-RPC server never calls the engine.
    • It shells out to the executables, synchronously inside Submit.
    • Its job markers race, a failed run reads COMPLETED, and a client's parameter text can name any file the server user can read or write.
  • Bugs:
    • the complex-type auto-detect uses ==, so the antibody and enzyme presets never apply;
    • multi-state runs keep only the last table;
    • a cvc::fft namespace squat;
    • NFFT3 (GPL) links in silently.
  • Plan (cyconv's D12):
    1. F0, fixes in place;
    2. F1, libf2dock: a context, a parameter table, progress per rotation, cancel, and results by value;
    3. F2, an A/B against the legacy executable;
    4. F3, the service;
    5. F4, cvc::dock.

arisrv (§4).

  • From one room per process to many rooms on one relay, with a lobby and run-time rooms (RM1–RM2 brought forward).
  • Room features: presence, avatars, media, scene, compute. A workspace has no avatars or media; a docking lab adds them.
  • Room scenes for science: volumes, molecules, the ports' geometry and data: sources, with assets by hash.
  • Digital twins are live sources bound into a room.
  • cyprty becomes the lobby, the docking lab, the volume lab and twin rooms.

One job service, cvc::jobs (§5).

  • Kinds come from parameter tables. jobs.<id>.* is published and scoped per principal, with paged results and a durable store.
  • Executors run in-process or in worker processes.
  • room-call, FastAPI and DSL fronts sit on one layer, so the TexMol, VolumeRover and docking computations share it.
  • Data, never server paths.

The rest: tests R1–R2, J1–J3 and C1; phases T0–T6, F0–F4, M0, J0–J1, R1–R3 and C1.

Open decisions (§9):

  1. a C++ job layer vs Python-only;
  2. many rooms per process;
  3. confirming cyconv's D14 order;
  4. retiring the legacy TexMol F2DockClient rather than shimming it;
  5. MolSurf / PDB2PQR in-process;
  6. names.

… compute and scene server

Joe asked for a plan to:
- port TexMol's legacy libraries;
- move the F2Dock server onto arisrv and Ariadne documents, with TexMol
  talking to it;
- make arisrv general for TexMol and VolumeRover compute, and for scientific
  visualizations and digital twins in separate rooms, in cyprty's conference
  mode.

New docs/roadmap/TEXMOL-F2DOCK-ARISRV-ROADMAP.md, built on the VolumeRover
plan's rules (#1074), ARIADNE_SCRIPTING_HOSTS' arisrvx stages, ARIADNE_WORLDS'
rooms, and cyconv's PLAN.md (D8, D12, D14, whose arisrv facts are stale):
- TexMol (section 2). An inventory of every library. Port about 68k lines:
  molecules, Blurmaps (with F2D generation), HLevelSet, Pocket on cvc::sdf,
  the docking analysis with the filters F2Dock also carries, the
  F2DockClient's Qt-free core, and later PocketTunnel and SecondaryStructures
  on the cocone core. Leave the GUI, the libcvc duplicates, the licence
  blockers (Decimation's SHASTRA/IMSL code is missing from TexMol's
  notices), and the dead code. Rewrite GB and PB only if wanted.
- F2Dock (section 3). The engine is single-job:
  - global queues, function statics and 55 exit() calls;
  - it mutates its inputs.
  The XML-RPC server never calls the engine. It shells out and blocks inside
  Submit, its markers race, failures read as COMPLETED, and a client can
  name any server file. Plan: F0 fixes (auto-detect ==, one output per
  state, cvc::fft namespace squat, NFFT3 auto-link), F1 libf2dock, F2 an A/B
  against the legacy executable, F3 the service, F4 cvc::dock.
- arisrv (section 4). From one room per process to many rooms with a lobby
  (RM1-RM2 brought forward), and room features (presence, avatars, media,
  scene, compute). Room scenes gain volumes, molecules, port geometry and
  data: sources, with assets by hash. Digital twins are live sources bound
  into a room. cyprty becomes the lobby and the lab rooms.
- One job service, cvc::jobs (section 5): kinds from parameter tables,
  jobs.<id>.* published and scoped per principal, paged results, a store,
  in-process and worker executors, and room-call, FastAPI and DSL fronts on
  one layer. Data, never paths.
- Tests R1-R2, J1-J3, C1; phases T0-T6, F0-F4, M0, J0-J1, R1-R3, C1.
- Decisions: a C++ job layer vs Python-only, rooms per process, the legacy
  client shim, MolSurf/PDB2PQR in-process, the arisrvx order, names.
@transfix
transfix merged commit cc3df03 into master Nov 9, 2026
53 of 57 checks passed
@transfix
transfix deleted the docs/texmol-f2dock-arisrv branch November 9, 2026 17:40
transfix added a commit that referenced this pull request Nov 9, 2026
macOS jobs install the cvcpkg CLI from the cvcpkg-v2.5.12 GitHub release,
because the registry's newest macOS (and linux/arm64) cvcpkg package is
2.5.1+cvc.3. GitHub Releases answers 504 for minutes at a time, and the
installers do not retry, so #1090 lost recipe / macos-latest / Release and
package-macos / libcvc-release-grpc-static to one download, and #1054 lost
jobs the same way.

The action now downloads install.sh / install.ps1 to a file and runs it up
to five times, waiting 20, 40, 60 and 90 s between attempts (3.5 minutes).
On Windows the script runs as a child pwsh, since install.ps1 ends a failure
with `exit 1`, which under `irm | iex` ends the step instead of the attempt.

The description now says which platforms the registry covers at 2.5.12.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant