Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
4351d4c
Add pluggable scientific workspaces
YaoYinYing Aug 16, 2026
4719f38
fix(server): codex review — hotspot rejection, linked-view staleness,…
YaoYinYing Aug 16, 2026
3251463
fix(server): review fixes and RFdiffusion workspace clarity pass
YaoYinYing Aug 16, 2026
a538ad0
fix(server): run the handshake browser test under a real origin
YaoYinYing Aug 16, 2026
f7f9263
chore: Done fixing — v2 workspace contract, RFdiffusion recipe UX, li…
YaoYinYing Aug 16, 2026
bc03a8c
fix(server): hide developer-facing plugin ids from workspace card badges
YaoYinYing Aug 16, 2026
487acf1
fix(server): allow fractional float defaults in typed parameter fields
YaoYinYing Aug 16, 2026
006930e
fix(server): read selections from interactivity.lociSelects, not stru…
YaoYinYing Aug 16, 2026
54c9538
fix(server): write binder validation errors in interface terms
YaoYinYing Aug 16, 2026
752e98e
fix(server): use the real Mol* viewer API surface for residue selection
YaoYinYing Aug 16, 2026
fb6074b
fix(server): revalidate workspace JS on every load
YaoYinYing Aug 16, 2026
192d5d2
fix(server): cache-bust workspace assets per deploy, soften binder gu…
YaoYinYing Aug 16, 2026
525a64f
fix(server): no-cache the workspace page HTML so edge caches cannot h…
YaoYinYing Aug 16, 2026
6346975
fix(server): report Molstar residue selections
YaoYinYing Aug 16, 2026
d1f972f
test(server): expect cache-busted static assets
YaoYinYing Aug 16, 2026
a7ffa01
fix(server): give RFdiffusion writable Hydra state
YaoYinYing Aug 16, 2026
7d0de04
fix(server): redirect RFdiffusion schedule cache
YaoYinYing Aug 16, 2026
79ed81a
test(server): lock RFdiffusion inference defaults
YaoYinYing Aug 16, 2026
a2b8784
fix(server): patch RFdiffusion bool-override parsing so binder runs d…
YaoYinYing Aug 16, 2026
0822b97
docs: expand server live-test workflow in CLAUDE.md [skip ci]
YaoYinYing Aug 17, 2026
2757e77
docs: add new-runner adaptation intake checklist to CLAUDE.md [skip ci]
YaoYinYing Aug 17, 2026
2e5b253
docs(server): align operations guide with runner protocol v2 and the …
YaoYinYing Aug 17, 2026
d018f7b
docs(server): add current runtime family stack table to the adapter g…
YaoYinYing Aug 17, 2026
4e23730
docs(server): move runtime family stack table to standalone file [ski…
YaoYinYing Aug 17, 2026
1fb1fb2
feat(server): AlphaFold2 runtime family and task type
YaoYinYing Aug 17, 2026
c829d36
feat(server): reduced_dbs option for alphafold; env enablement step i…
YaoYinYing Aug 17, 2026
51cfe6a
fix(server): alphafold ships full_dbs only — reduced DB not staged [s…
YaoYinYing Aug 17, 2026
1e3dbdd
fix(server): align alphafold image pins with the known-good native co…
YaoYinYing Aug 17, 2026
fc0dcb0
fix(server): alphafold image follows official pins, not the local con…
YaoYinYing Aug 17, 2026
4c2bb4b
fix(server): alphafold image — patch hh-suite 3.3.0 for gcc 12 [skip ci]
YaoYinYing Aug 17, 2026
c0b7055
docs(server): pin the gmx_MMPBSA adaptation goal as a working documen…
YaoYinYing Aug 17, 2026
0f64bbb
fix(server): alphafold run.sh — no local outside functions [skip ci]
YaoYinYing Aug 17, 2026
ff48199
fix(server): alphafold — drop flags removed from official main [skip ci]
YaoYinYing Aug 17, 2026
3fc7726
fix(server): alphafold — official main has no --use_gpu flag [skip ci]
YaoYinYing Aug 17, 2026
8115405
feat(server): keep the results-page Mol* viewer warm across structure…
YaoYinYing Aug 17, 2026
1b5927b
fix(server): alphafold — --use_gpu_relax is required in official main…
YaoYinYing Aug 17, 2026
fffb81f
fix(server): alphafold image — jax 0.4.38 for driver-570 hosts [skip ci]
YaoYinYing Aug 17, 2026
ad177b1
feat(server): DOI-validated per-task citations written into result dirs
YaoYinYing Aug 17, 2026
1b9a6c4
fix(server): alphafold image — pin jax 0.4.35 (the haiku-compatible d…
YaoYinYing Aug 17, 2026
da7b9d6
feat(server): citations carry {num, doi, title} entries and support m…
YaoYinYing Aug 17, 2026
f46842b
fix(server): alphafold image — use hh-suite's official precompiled AV…
YaoYinYing Aug 17, 2026
69bab14
fix(server): alphafold image — guard jax 0.4.35's nvcc namespace-pack…
YaoYinYing Aug 17, 2026
43cbd09
fix(server): alphafold image — numpy 1.26.4 after the jax install [sk…
YaoYinYing Aug 17, 2026
d492bfb
fix(server): alphafold image — hh-suite binaries land at /opt/hhsuite…
YaoYinYing Aug 17, 2026
0d12829
chore: Done fixing — AlphaFold2 family live (ranked_0 + citations.bib…
YaoYinYing Aug 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/server-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [main]
paths:
- "server/pssm_gremlin_server/**"
- "server/revocompute/**"
- "server/config/**"
- "server/tests/**"
- "server/run/**"
- "server/scripts/**"
Expand All @@ -21,7 +22,8 @@ on:
pull_request:
branches: [main]
paths:
- "server/pssm_gremlin_server/**"
- "server/revocompute/**"
- "server/config/**"
- "server/tests/**"
- "server/run/**"
- "server/scripts/**"
Expand Down Expand Up @@ -65,8 +67,18 @@ jobs:
python -m pip install --upgrade pip
pip install -e "server/[test]"

- name: Install Chromium for Browser Contracts
run: python -m playwright install --with-deps chromium

- name: Run Server Tests (non-Docker)
run: make -C server test-cov COV_REPORT=xml:../coverage.xml
run: make -C server test-cov COV_REPORT=xml:../coverage.xml PYTEST="python -m pytest --tracing=retain-on-failure"

- name: Upload Playwright Traces
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-traces
path: server/test-results/

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
- name: Upload coverage to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added
- Server:
- version-2 scientific workspaces: modular task-selected RFdiffusion modes, Mol* residue selection (with result controls hidden by default), declarative linked result views, bounded table pages, and EASIFA table-to-structure mapping. Breaking: every task type must declare `input_workspace` explicitly — startup fails closed when a custom registry omits it.
- multi-task architecture: YAML task-type registry with nine shared runtime families; one machine-local runner YAML per family (mounts, env, limits); missing registry files fail closed.
- `GET /compute/api/types` (+ `/types/<name>`): public enabled task types with full param schemas; `TaskSubmissionRequest` pydantic model rejects unknown params/task types at the API boundary.
- upload content validation per extension (FASTA/A3M/PDB/mmCIF/JSON) with DoS caps — third-party parsers never see pathological files.
Expand Down
24 changes: 17 additions & 7 deletions docs/dev-guide/task-types-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ input_workspace:
- plugin: structure
id: structure_builder
options: {source: source_files, select_chains: true, select_residues: true}
- plugin: regions
- plugin: rfdiffusion-regions
id: design_regions
options: {source: structure_builder, fields: [contig, hotspot_res], syntax: rfdiffusion}
- plugin: parameters
Expand All @@ -170,16 +170,26 @@ input_workspace:
id: submission_review
```

Only built-in plugin IDs and their allowlisted options are accepted. This
composition affects presentation, not validation or execution authority. When
the block is absent, the server derives a backward-compatible workspace from
the input extensions and typed parameters. The first capability must collect
Only built-in plugin IDs and their allowlisted options are accepted. Every task
type declares the composition explicitly; startup fails closed for missing,
unknown, or remotely supplied components. The first capability must collect
files or sequences and the last must be `review`.

Simple FASTA tasks normally compose files, sequence, parameters, and review.
Structure tasks add structure inspection, while complex tools may add region
controls. The browser submits the same `files`, `input_paths`, `task_type`, and
`params[...]` fields as before.
controls. Each specialized workspace variety is a separate, statically shipped
plugin module selected by its task-type declaration; the shared host contains
no task-name branches. Stateful components submit a version-2 `workspace` JSON document
alongside files and ordinary parameters. RFdiffusion contigs and hotspots are
normalized and checked by the server, so browser state cannot broaden runner
parameters.

Task types may also declare `result_workspace.views`. Each view selects an
allowlisted local plugin and exact manifest artifacts. The
`residue-table-structure` view maps configured table columns to Mol\* residue
numbering without task-name conditionals in the result page. Result structure
views start with Mol\*'s right-side controls hidden so the structure remains the
visual focus; interactive input workspaces opt into those controls explicitly.

The API validates task type, files, relative paths, and params before it creates
the task. Each task receives an immutable host snapshot:
Expand Down
6 changes: 4 additions & 2 deletions server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ The create-task page builds a scientific input workspace from
sequences, structure inspection, residue/region controls, typed parameters,
and a final review. A simple FASTA task therefore stays small, while
RFdiffusion or PLACER can expose a guided multi-file structure workflow without
adding task-name conditionals to the page.
adding task-name conditionals to the page. Specialized varieties, such as the
RFdiffusion region/contig builder, live in separate statically loaded plugin
modules and are selected by task-type capability IDs.

Capability YAML selects only plugin IDs shipped by the server. Unknown plugins,
unknown options, executable snippets, and remote plugin URLs are rejected at
Expand Down Expand Up @@ -742,7 +744,7 @@ The dedicated result page presents previewable artifacts under **Main Results**.
Its lifecycle-aware local plugin host resolves viewers from manifest `preview`
metadata and preserves individual download as the universal fallback. Images,
bounded CSV/TSV tables, and text use local preview plugins. PDB/mmCIF files use
the pinned Mol* Viewer 5.10.0 bundle with subresource-integrity verification;
the pinned Mol\* Viewer 5.11.0 bundle with subresource-integrity verification;
if that asset or WebGL is unavailable, the page falls back to a local
alpha-carbon trace. A generation-token guard keeps viewer renders
single-flight: switching artifacts or viewers mid-load cancels the stale
Expand Down
51 changes: 27 additions & 24 deletions server/TODO_PLUGGABLE_INPUT_RESULT_UI.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# TODO: Pluggable Scientific Input and Result Workspaces

Status: implementation started on `feat/multi-task-server`. The additive
capability schema, common plugin host, reusable input components, RFdiffusion /
PLACER / EASIFA compositions, and result preview host are implemented. Browser
contract testing, richer structure interaction, linked scientific results, and
production smoke testing remain. This document is not an activation checklist
and does not authorize production changes.
Status: implementation complete for the version-2 workspace contract,
server-normalized RFdiffusion modes, Mol* residue selection, declarative
task-type result mappings, EASIFA linked table/structure views, bounded table
fetching, and native Chromium contracts. Production SLURM/Apptainer living tests
and deployment verification remain operational release gates. This document is
not an activation checklist and does not authorize production changes.

## Why this work exists

Expand Down Expand Up @@ -114,7 +114,9 @@ extension/MIME inference as a compatibility fallback:

## Proposed plugin contracts

The first implementation should use local, statically registered ES modules.
The implementation uses local, statically registered plugin modules. Specialized
workspace varieties such as `rfdiffusion-regions` remain separate from the
shared input host and are selected by task-type configuration.
Do not introduce runtime-downloaded third-party plugins.

```javascript
Expand Down Expand Up @@ -241,7 +243,9 @@ The result host should support:

Mol* should remain the full structure viewer. A lightweight alpha-carbon trace
may remain a local fallback, but it must be presented as a degraded structure
view rather than silently falling back to raw coordinate text.
view rather than silently falling back to raw coordinate text. Result viewers
hide Mol*'s right-side controls by default to prioritize the structure, while
input workbenches explicitly enable them for selection-oriented work.

## Delivery plan

Expand Down Expand Up @@ -363,19 +367,18 @@ view rather than silently falling back to raw coordinate text.
- No removal of the generic form or download fallback until all supported tasks
have equivalent tested behavior.

## Open decisions for the design session

- Whether capability composition belongs directly in `task_types.yaml` or in a
versioned server-generated form document derived from it.
- Whether linked result associations need a general graph or whether named
groups are sufficient for the first release.
- Which DOM test environment best exercises native modules, Mol*, cancellation,
and accessibility without duplicating browser behavior.
- Whether drafts should remain browser-local initially or become authenticated,
server-stored records with explicit retention and ownership rules.
- Which RFdiffusion guided modes are stable enough to expose before the raw
expert contig editor.

Before implementation starts, review these decisions against real production
task schemas and result manifests. Update this document when decisions are made,
then split each delivery phase into small, independently testable checkpoints.
## Design decisions

- Capability and result-view composition live declaratively in
`task_types.yaml`; the server validates and serializes versioned documents.
- Linked results use named, plugin-owned views and groups rather than a general
association graph.
- Node lifecycle contracts are complemented by native Chromium tests through
Playwright.
- RFdiffusion exposes unconditional, motif-scaffolding, binder, and expert
modes; Python normalization remains the syntax authority.
- Input workspace varieties are independently registered modules selected by
task type; shared host code does not branch on task names.

Draft persistence remains outside this cycle. Production activation still
requires the smoke and accessibility gates listed above.
52 changes: 50 additions & 2 deletions server/config/task_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,25 @@ runtime_families:
definition: "docker/runners/easifa/easifa.def"
slurm_image: "/mnt/data/srv/revodesign/server-slurm/images/easifa_v1.sif"

workspace_templates:
file: &file_workspace
capabilities:
- {plugin: "files", id: "source_files", title: "Inputs", options: {roles: ["primary", "auxiliary"], primary_required: true}}
- {plugin: "parameters", id: "task_parameters", title: "Parameters"}
- {plugin: "review", id: "submission_review", title: "Review", options: {show_resources: true, show_paths: true}}
fasta: &fasta_workspace
capabilities:
- {plugin: "files", id: "source_files", title: "Sequence files", options: {roles: ["primary", "auxiliary"], primary_required: true}}
- {plugin: "sequence", id: "sequence_editor", title: "Sequence", options: {allow_multiple: false, format: "fasta"}}
- {plugin: "parameters", id: "task_parameters", title: "Parameters"}
- {plugin: "review", id: "submission_review", title: "Review", options: {show_resources: true, show_paths: true}}
structure: &structure_workspace
capabilities:
- {plugin: "files", id: "source_files", title: "Structure inputs", options: {roles: ["primary", "auxiliary"], primary_required: true}}
- {plugin: "structure", id: "structure_summary", title: "Structure", options: {source: "source_files", select_chains: false, select_residues: false}}
- {plugin: "parameters", id: "task_parameters", title: "Parameters"}
- {plugin: "review", id: "submission_review", title: "Review", options: {show_resources: true, show_paths: true}}

task_types:

gremlin:
Expand Down Expand Up @@ -146,6 +165,7 @@ task_types:
runtime_family: "pythia_ddg"
input_extension: ".pdb"
input_label: "PDB file"
input_workspace: *structure_workspace
stage_markers:
pythia_ddg: "Pythia masked ddG scan"
params: []
Expand All @@ -158,6 +178,7 @@ task_types:
gpus: true
input_extension: ".a3m"
input_label: "Multiple sequence alignment (a3m)"
input_workspace: *file_workspace
stage_markers:
esm_msa: "ESM-MSA-1b masked-marginal profile"
params:
Expand All @@ -177,6 +198,7 @@ task_types:
gpus: true
input_extension: ".fasta"
input_label: "FASTA file"
input_workspace: *fasta_workspace
stage_markers:
esm_extract: "ESM-2 embedding extraction"
params:
Expand All @@ -200,6 +222,7 @@ task_types:
gpus: true
input_extension: ".fasta"
input_label: "FASTA file"
input_workspace: *fasta_workspace
stage_markers:
esm_1v: "ESM-1v variant effect prediction"
params: []
Expand All @@ -212,6 +235,7 @@ task_types:
gpus: true
input_extension: ".pdb"
input_label: "PDB file"
input_workspace: *structure_workspace
stage_markers:
esm_if1: "ESM-IF1 inverse folding"
params:
Expand All @@ -237,6 +261,7 @@ task_types:
gpus: true
input_extension: ".json"
input_label: "JSON file (OpenDDE job spec)"
input_workspace: *file_workspace
stage_markers:
opendde: "OpenDDE co-folding inference"
params:
Expand Down Expand Up @@ -281,6 +306,7 @@ task_types:
runtime_family: "mpnn"
input_extension: ".pdb"
input_label: "PDB file"
input_workspace: *structure_workspace
stage_markers:
hypermpnn: "HyperMPNN thermostable design"
params:
Expand Down Expand Up @@ -315,6 +341,7 @@ task_types:
runtime_family: "mpnn"
input_extension: ".pdb"
input_label: "Protein backbone (PDB)"
input_workspace: *structure_workspace
stage_markers:
proteinmpnn: "ProteinMPNN sequence design"
params:
Expand Down Expand Up @@ -343,6 +370,7 @@ task_types:
runtime_family: "mpnn"
input_extension: ".pdb"
input_label: "Soluble protein backbone (PDB)"
input_workspace: *structure_workspace
stage_markers:
solublempnn: "SolubleMPNN sequence design"
params:
Expand Down Expand Up @@ -370,6 +398,7 @@ task_types:
runtime_family: "mpnn"
input_extension: ".pdb"
input_label: "PDB file"
input_workspace: *structure_workspace
stage_markers:
ligandmpnn: "LigandMPNN sequence design"
params:
Expand Down Expand Up @@ -423,6 +452,7 @@ task_types:
allow_multiple_inputs: true
max_input_files: 64
input_label: "Protonated protein–ligand structures (PDB/mmCIF)"
input_workspace: *structure_workspace
stage_markers:
lasermpnn: "LASErMPNN ligand-conditioned sequence and side-chain design"
params:
Expand Down Expand Up @@ -461,6 +491,7 @@ task_types:
runtime_family: "mpnn"
input_extension: ".pdb"
input_label: "PDB file"
input_workspace: *structure_workspace
stage_markers:
thermompnn: "ThermoMPNN-D stability prediction"
params:
Expand All @@ -487,6 +518,7 @@ task_types:
gpus: true
input_extension: ".fasta"
input_label: "FASTA file"
input_workspace: *fasta_workspace
stage_markers:
prime: "Pro-Prime OGT prediction"
params: []
Expand All @@ -504,6 +536,7 @@ task_types:
primary_input_extensions: [".fasta", ".fa", ".faa"]
allow_multiple_inputs: true
max_input_files: 64
input_workspace: *fasta_workspace
stage_markers:
prime_dms: "PRIME zero-shot mutation scoring"
params: []
Expand All @@ -521,16 +554,18 @@ task_types:
primary_input_extensions: [".pdb"]
allow_multiple_inputs: true
max_input_files: 64
min_input_files: 0
input_workspace:
capabilities:
- {plugin: "files", id: "source_files", title: "Input workspace", description: "Upload the primary PDB and optional nested JSON/CIF support files.", options: {roles: ["primary", "auxiliary"], primary_required: true}}
- {plugin: "files", id: "source_files", title: "Input workspace", description: "Upload a primary PDB for structure-guided modes; unconditional generation needs no file.", options: {roles: ["primary", "auxiliary"], primary_required: false}}
- {plugin: "structure", id: "structure_builder", title: "Structure", description: "Inspect chains and residues in the primary structure.", options: {source: "source_files", select_chains: true, select_residues: true}}
- {plugin: "regions", id: "design_regions", title: "Design regions", description: "Describe contigs, motifs, masks, and interaction hotspots.", options: {source: "structure_builder", fields: ["contig", "hotspot_res", "inpaint_seq", "inpaint_str", "provide_seq"], syntax: "rfdiffusion"}}
- {plugin: "rfdiffusion-regions", id: "design_regions", title: "Design regions", description: "Build unconditional, motif-scaffolding, binder, or expert contigs.", options: {source: "structure_builder", fields: ["design_mode", "contig", "hotspot_res"], syntax: "rfdiffusion", modes: ["unconditional", "motif_scaffolding", "binder", "expert"]}}
- {plugin: "parameters", id: "task_parameters", title: "Diffusion settings", options: {groups: ["basic", "advanced"]}}
- {plugin: "review", id: "submission_review", title: "Review design", options: {show_resources: true, show_paths: true}}
stage_markers:
rfdiffusion: "RFdiffusion backbone generation"
params:
- {name: "design_mode", type: "str", default: "unconditional", choices: ["unconditional", "motif_scaffolding", "binder", "expert"], description: "Server-normalized RFdiffusion workspace mode", advanced: true}
- name: "contig"
type: "str"
default: "100-100"
Expand Down Expand Up @@ -638,6 +673,7 @@ task_types:
gpus: true
input_extension: ".fasta"
input_label: "FASTA file"
input_workspace: *fasta_workspace
stage_markers:
bioemu: "BioEmu structure sampling"
params:
Expand Down Expand Up @@ -666,6 +702,18 @@ task_types:
- {plugin: "structure", id: "structure_builder", title: "Structure", description: "Inspect the uploaded enzyme and detected chains.", options: {source: "source_files", select_chains: false, select_residues: false}}
- {plugin: "parameters", id: "task_parameters", title: "Reaction context", options: {groups: ["basic", "advanced"]}}
- {plugin: "review", id: "submission_review", title: "Review annotation", options: {show_resources: true, show_paths: true}}
result_workspace:
views:
- plugin: "residue-table-structure"
id: "active_sites"
title: "Active-site mapping"
options:
table_path: "active_sites.csv"
structure_path: "enzyme_structure.pdb"
chain_column: "chain"
residue_column: "residue_index"
numbering: "label_seq_id"
group: "active-sites"
stage_markers:
easifa: "EasIFA2 active-site annotation"
params:
Expand Down
1 change: 1 addition & 0 deletions server/docker/runners/easifa/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ echo "REVODESIGN_STAGE:easifa"
python3 -c 'import torch; assert torch.cuda.is_available(), "EasIFA requires an allocated CUDA GPU"'
easifa-predict "${easifa_args[@]}"
[[ -s "$result_json" ]] || { echo "EasIFA did not produce a result JSON" >&2; exit 1; }
cp "$input_file" "${output_dir}/enzyme_structure.pdb"

# Publish a table alongside the full upstream JSON so residue predictions are
# directly previewable and downloadable through the manifest-first result UI.
Expand Down
Loading
Loading