Skip to content

Agent pages, integrator/thermostat plugs, 0.7.2 fixes, website CI - #4

Merged
sbkashif merged 19 commits into
mainfrom
agent
Nov 11, 2026
Merged

sbkashif merged 19 commits into
mainfrom
agent

Conversation

@sbkashif

@sbkashif sbkashif commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Third of three PRs bringing main up to date: parallelization curriculum (#2) → website (#3) → agent. This branch was started on top of the website branch. After it merges, main is the release, version 0.7.2.

What this branch brings

Engine

  • Integrator and thermostat as plugs on MDState: velocity Verlet (default) and leapfrog; velocity rescale (default), Berendsen, Langevin, none. Chosen by name in YAML or via setIntegrator / setThermostat. Reduced-unit output.
  • arithmetic (Lorentz–Berthelot) mixing keeps epsilon geometric, √(ε_i ε_j); it used to average epsilon as well. No shipped config uses it.
  • The cubic-lattice builder places every particle: it uses the smallest n with n³ ≥ N, where rounding ∛N used to leave too few sites (256 atoms placed 216). The default 125-atom run is unchanged.
  • The tail_correction: YAML key is read and bound to Python (setTailCorrection / getTailCorrection); off by default.
  • DFTPotential now raises a not-implemented error when built (RuntimeError in Python). It performed no DFT calculation: the functional name only picked one of three per-atom energy tables. The code stays as a placeholder for a real backend; README, docs, dft.yaml and the website say it is not implemented, and CI no longer runs the DFT example.
  • New tests: tail-correction YAML key, DFT not-implemented error.

Agent

  • An MLIP training agent and its four website pages (website/agent/): Use case: training an MLIP, The case for an agent, What our agent did and How our agent was built. Marked Draft.

Website

  • New page: "The same module, in your browser" (pybind11/03_in_your_browser.md) with its layers figure.
  • Home page intro and Getting started reworked; engine page updated for the new plugs; pre-public review fixes.
  • _molsim.wasm rebuilt at 0.7.2. Browser and native final energies agree to 14 digits.

Docs and project

  • docs/ brought in line with the code (explainers, learn-cpp, learn-parallel, DFT docs); machine-specific details removed.
  • Project versioned (0.7.0 → 0.7.2) with a numbered CHANGELOG.md.

CI

  • New website job: builds the site with Sphinx -W, so a broken page, reference or figure fails CI. It becomes a required check for main after this merge.

Not in this PR

No deployment. GitHub Pages is set up in a follow-up PR. Pages still marked Draft: the agent/, parallel/ and gpu/ modules.

🤖 Generated with Claude Code

sbkashif and others added 19 commits November 8, 2026 13:24
- Integrator interface with velocity Verlet (default) and leapfrog
- Thermostat interface with velocity rescale/Berendsen (default) and Langevin
- Selectable from YAML (integrator:, thermostat:) and Python
- MDState view shared by the plugs; dead md_integrator/md_parameters removed
- Engine prints reduced units without K/Å/ps labels
- 13 new unit tests; default runs byte-identical; wasm rebuilt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Engine page and loop figure follow the Integrator/Thermostat plugs
- Architecture page: cut duplicate states section, plug table updated
- Homepage: learning-approach box, History, AI usage statement, call stack
- Parallel chapters marked Draft; 16x speedup breakdown corrected
- C++ and pybind11 chapters: Next links, names, reproducible example
- Local preview script and launch config

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- agent/: config, rMD17 data, tools (train, evaluate, run_md, add_data),
  harness for Ollama or the Anthropic API
- The agent decides on 500 selection frames; the harness scores the final
  model once on 500 untouched final test frames
- website/agent: training an MLIP, the agent, the code; figures from the
  first run's log

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- MLIP page: neural-network basics written out step by step, phi shown
  in three panels (tilt only, one bend, seven bends), training segue,
  MACE parts renamed stages, baselines section, wording fixes
- Agent page: stop tool in the table, colour-free captions, generic
  limits section, no job-application line

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- File table names the selection and final test frames and final_test
- Line count about 500; config groups include data paths and the split
- One limit comes from the data; the test split is its own paragraph

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hecks

- Network basics in x, y, W, V and out terms; phi shown as a line turning
  into one bend (Fig. 33); number of y's sets the bends (Fig. 34)
- LJ curve family beside the trained model's energy: rigid slice and a
  relaxed twist scan whose minima match ethanol's trans and gauche forms
- "Reading" box: the model maps positions to energy; probes test behaviour
- MACE internals and the one-frame walkthrough moved into a closed detour
- Training built up from positions to energy; data split as a story;
  training cycle before the loss; new "How training can go wrong" figure
  from real runs on made-up points
- 22 verified references in a table at the end of the page
- preview.sh serves with Cache-Control: no-store

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Steps 1-5 with what came out; step 5 spells out what deciding needs
- What went well and what did not, as separate paragraphs
- Hand-off previews the agent's first decision from its run log
- Page 2 opening and pipeline caption match the new ending

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Explainers, learn-cpp chapters, README tree and the engine website page
now reflect the Integrator/Thermostat plugs and MDState. CHANGELOG.md
tracks engine, Python-interface and build changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New website page agent/03_first_run (code page moves to 04), LLM
figures, code_compare.css, the qwen3 run log, regenerated agent
figures and data, and the matching agent/ code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
project(VERSION 0.7.0) in CMakeLists.txt is the single source. _molsim
gets it as MOLSIM_VERSION (CMake and the Pyodide script) and exposes
__version__; molsimworkbench.__version__ reads it from there.

CHANGELOG.md sections are numbered 0.1.0-0.7.0 from the history (SemVer),
and gain entries it had missed: LJ minimum image, the pybind11 module and
CI, the one-pass LJ force/energy kernel, the DFT example, and what the
first version shipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The website is the shorter, guided course; docs/ holds the full notes and
the code walkthrough. README.md says so up front, and a new docs/README.md
indexes the notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Explainers, learn-cpp and learn-parallel checked against the tree:
- line numbers shifted by calculateForcesAndEnergy and the plugs
- call stacks go through Integrator::step and calculateForcesAndEnergy
- explainer 02 LJ excerpts replaced with the real code (force sign,
  24eps/r, unit direction, arithmetic mixing averages epsilon)
- explainer 04: which YAML keys are read, lattice rounding, only steepest
  descent is implemented
- learn-cpp ch01: run is reproducible (random_seed), final energy -458.604
- learn-parallel: no YAML key selects the backend; openmp-gather label
- DFT doc: its numbers come from examples/enhanced_dft_test.cpp

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… particle

- "arithmetic" mixing now averages sigma but keeps epsilon geometric
  (sqrt(eps_i eps_j)); it used to average epsilon too. No shipped config
  uses it.
- createCubicLattice uses the smallest n with n^3 >= N. Rounding cbrt(N)
  gave too few sites for about half of all N (256 placed 216). Perfect cubes
  and N that already fit are placed exactly as before; the default 125-atom
  run still ends at -458.604.
- Tests for both; explainers 02/04 and CHANGELOG updated; version 0.7.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tail_correction: key in LJ potential YAML is now read and bound to
Python (setTailCorrection / getTailCorrection). A DFT functional with no
atomic-energy table now warns and uses B3LYP. Adds tests for both.
Version 0.7.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove machine-specific details, correct the race claims, fix explainer
05 Way 2, describe lj_kernels.cpp and the tail correction in explainer 02,
and update the DFT documentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add pybind11/03_in_your_browser.md and its layers figure, rework the
home page intro and Getting started, and rebuild _molsim.wasm at 0.7.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New `website` job installs website/requirements.txt and runs Sphinx
with -W, so a broken page, reference or figure fails CI before it can
reach main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The DFT potential is a placeholder: the functional name only selects
one of three per-atom energy tables (B3LYP, PBE, HF). Any other name now
throws std::invalid_argument (ValueError in Python) at load, where it
used to be computed with the B3LYP table. PW91 and PBE0 are removed
from dft.yaml's descriptive list; comments, docs and CHANGELOG say it
performs no DFT calculation. Wasm rebuilt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DFTPotential performed no DFT calculation: the functional name picked
one of three per-atom energy tables, and the results were not physical.
Its constructor now throws std::runtime_error (RuntimeError in Python),
so no run can use it by mistake. The placeholder code stays for a real
backend. The test checks the error; run_all.sh no longer runs the DFT
example; README, docs, dft.yaml, the website architecture page and the
CHANGELOG say it is not implemented. Wasm rebuilt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sbkashif
sbkashif merged commit 8d5cfd1 into main Nov 11, 2026
6 checks passed
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