Skip to content

Audit the documentation against the finished epic #324 #352

Closed

Description

@neuromechanist

Final documentation audit for epic #324, running alongside the parity re-measurement in #351.

Epic #324 changed much more than it set out to. Besides the MLX surface (#323, #304, #313, #306, #315), it changed how every backend fits by default:

Each phase updated the docs it touched. This issue checks that the docs as a whole describe the finished code, and cleans up what the phases left behind.

Scope

  1. Every user-facing page matches the code. Cover docs/ (concepts, guides, API, getting started, development), README.md, and the public docstrings of AMICA, AMICAICA, AMICATorchNG, AMICAMLXNG, AMICA_NumPy and AMICANative. Check that:

    • parameter lists, defaults and backend support agree with the constructors;
    • stop reasons and the degenerate-fit contract are current;
    • params-file support is described for every backend;
    • backend selection through the wrappers is documented.
  2. The concept pages describe the reference's per-iteration order:

    • E-step first, then the checks and the log-likelihood-decrease response;
    • the exit before the update, then the update;
    • the A-freeze windows, and doscaling of component rows.

    Fix statements that are no longer true, such as "each EM iteration increases the log-likelihood". Check the algorithm-flow figure against the new order.

  3. Coherence across pages. Check the summary table in docs/guides/amica-differences.md (row numbers and cross-references), docs/guides/validation.md, docs/guides/backends.md, and the changelog's Unreleased section. The changelog should have one coherent account of the behavior changes, including the fact that default trajectories differ from 0.3.3 and why.

  4. Delete the dead legacy code in pamica/numpy_impl/pdf.py: choose_pdf_type, which has no callers, and the unreachable legacy pdftype 2-4 branches of compute_pdf. Delete any tests that exist only for them.

  5. AGENTS.md:

    • Add the shared modules (rank.py, schedule.py, component_layout.py, initialization.py, reference_constants.py, params_file reader) to the architecture map.
    • Bring the status and known-issues prose up to date.
    • Do the same in .context/progress_summary.md and .context/plan.md.
  6. The docs site builds cleanly, and every internal link and anchor resolves.

Parity figures (validation rows, Table 1, ADR 0003 keep_best figures, share_comps merge counts) are re-measured in #351, which owns them and paper.md; this issue leaves the numbers to it.

Part of epic #324.

Activity

  1. added
    documentation
    on Sep 23, 2026
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

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions