Skip to content

docs: snapshot toolkit — CHANGES entry + current API + toctree#199

Open
lmoresi wants to merge 1 commit into
developmentfrom
docs/snapshot-toolkit-changelog
Open

docs: snapshot toolkit — CHANGES entry + current API + toctree#199
lmoresi wants to merge 1 commit into
developmentfrom
docs/snapshot-toolkit-changelog

Conversation

@lmoresi
Copy link
Copy Markdown
Member

@lmoresi lmoresi commented May 20, 2026

Summary

Post-merge documentation cleanup for the snapshot toolkit (#195, #196, #198) now landed on development.

  • CHANGES.md: 2026-05-20 entry covering the toolkit + the fix(ddt): Lagrangian.__init__ — uw.swarm.UWSwarm typo #184 Lagrangian typo fix.
  • docs/developer/design/in_memory_checkpoint_design.md: API-shape code example uses current names (save_state / load_state / file=) instead of the draft snapshot / restore verbs that were renamed in phase 5. Discussion text unchanged.
  • docs/developer/guides/state-as-dataclass.md: example code uses current names.
  • docs/developer/index.md: guides/state-as-dataclass added to the Guides toctree (was orphaned since In-memory snapshot toolkit (git stash for timesteps) #195, generating a "not included in any toctree" warning).

Test plan

  • pixi run -e amr-dev docs-build succeeds without snapshot- or state-as-dataclass-related warnings

Underworld development team with AI support from Claude Code

…ring

Post-merge cleanup for the snapshot-toolkit work (PRs #195, #196,
#198) now landed on development.

- CHANGES.md: new 2026-05-20 entry covering the toolkit and the
  #184 Lagrangian typo fix. Documents save_state/load_state surface,
  Model.tracker, on-disk v1.1 format, format-aware read_timestep,
  the state-as-dataclass contract, and how the existing
  write_timestep / write_checkpoint paths remain unchanged
  (different use cases).
- docs/developer/design/in_memory_checkpoint_design.md: API-shape
  code example updated to current names (save_state/load_state with
  file= kwarg) — the draft snapshot/restore verbs were renamed in
  phase 5; the design discussion itself is unchanged.
- docs/developer/guides/state-as-dataclass.md: example code
  updated to the current save_state/load_state names; pointer to
  the user guide added.
- docs/developer/index.md: added guides/state-as-dataclass to the
  Guides toctree (it was orphaned, generating a "not included in
  any toctree" warning since #195 landed).

docs-build succeeds with no snapshot-related warnings.

Underworld development team with AI support from Claude Code
(https://claude.com/claude-code)
Copilot AI review requested due to automatic review settings May 20, 2026 12:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates developer documentation to reflect the post-merge snapshot toolkit API and eliminates a docs-build warning by including an orphaned guide in the developer toctree.

Changes:

  • Add a 2026-05-20 CHANGES.md entry summarizing the snapshot toolkit (in-memory + on-disk) and the Lagrangian typo fix.
  • Update snapshot-related docs examples to the current Model.save_state() / Model.load_state(...) API (and file= for on-disk).
  • Add guides/state-as-dataclass to the developer docs toctree.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
docs/developer/index.md Adds guides/state-as-dataclass to the Guides toctree to prevent orphan warnings.
docs/developer/guides/state-as-dataclass.md Updates example usage to save_state / load_state API.
docs/developer/design/in_memory_checkpoint_design.md Updates API-shape example to current method names and file= parameter.
CHANGES.md Adds a dated changelog entry describing the snapshot toolkit and the Lagrangian DDt typo fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants