Skip to content

feat: benchmark positions-initialised inference - #147

Merged
Jammy2211 merged 7 commits into
mainfrom
feature/benchmark-positions-inference
Oct 2, 2026
Merged

Jammy2211 merged 7 commits into
mainfrom
feature/benchmark-positions-inference

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a frozen benchmark for fitting image positions first and using that posterior to initialize imaging inference. The simulated 100x100 lens has 13 free imaging parameters and a genuine banked Nautilus reference posterior; scoring inspects saved models and weighted samples instead of trusting result.json alone.

Scripts Changed

  • benchmarks/prompts/oneshot/positions_initialised_inference/: frozen prompt and scorer, including prior-transfer and posterior-consistency gates.
  • benchmarks/truth/positions_initialised_inference/: simulator, reference run, raw posterior, fit figure, hashes and provenance.
  • benchmarks/datasets/positions_initialised_inference/: public simulated imaging and four positions, without truth metadata.
  • Card tests, catalog/version lock, recorded runs and generated results.

Validation

  • Final targeted validation: 42 passed, 0 failed (31 card + 11 benchmark); freeze-check passed; all three scores reproduce byte-for-byte after workdir cleanup. Earlier broader suite: 160 passed, 0 failed, 1 skipped.
  • Genuine 400-live-point reference: 58,200 likelihood calls, ESS 6120.77, maximum log likelihood 4917.6412278; all 13 truth values within reference 3-sigma intervals. Four physical CPU cores, JAX CPU fp64, released stack 2026.9.27.2.
  • Calibration: 0 / 0 / 0. Two wall timeouts without result.json; third passed all scientific gates but used 566.2 seconds of compute against the 300-second limit. Failures are retained, not replaced.

Measurement limitations

The inherited compute shim charges interpreter invocations at exit. Killed background fits can therefore be missing from compute.log; those totals are lower bounds and never evidence that the compute budget passed. Wall time and missing-result gates remain independently recorded. Unrelated host workloads may also affect timings.

A truth-only CSV line-ending correction occurred after the first run archive was created. All 596 agent-visible archive paths are byte-identical across that correction; the calibration note records the actual archive SHA and metadata-at-exit behavior. Hidden truth and previous runs were absent from benchmark workdirs.

Closes #143.

Heart acknowledgment

Human explicitly acknowledged the current YELLOW reasons on 2026-10-02 and authorized opening this development PR:

  • manifest drift: organism-map blocks (generated) — 1 mismatch(es) vs PyAutoMind/repos.yaml
  • manifest drift: public front-door organ tables (generated) — 1 mismatch(es) vs PyAutoMind/repos.yaml
  • release validation incomplete: no rehearsal for current source

No merge or release authorization. The human requested wrapping this bundle after this PR, leaving bootstrap and Colab queued.

CI at requested session wrap

wiki-currency passed. boundary failed because the five new files under benchmarks/datasets/positions_initialised_inference/ are not classified by Brain's assistant clone partition. Follow-up needs matching domain classification in the assistant's modes/maintainer.md and Brain's REFERENCE_PROFILES["autolens_assistant"] (or a reviewed layout resolution that preserves the frozen-card evidence). This cross-repository follow-up is not included in the current PR; the human requested wrapping after PR-open. Do not merge until the boundary check is resolved.

Boundary follow-up (2026-10-02)

Merged main (forward_model_consistency card, PR #146) and classified benchmarks/datasets/<card>/ as domain in modes/maintainer.md. The paired Brain change is PyAutoLabs/PyAutoBrain#448, which adds benchmarks/datasets/* to _SHARED_DOMAIN. Merge PyAutoBrain#448 first.

Brain-ref: feature/clone-benchmark-datasets-boundary

Add a frozen 13-parameter imaging card with positions-posterior prior checks, preserved search evidence, deterministic data and a genuine 400-live Nautilus reference posterior. Verify schema, scoring, truth exclusion and raw posterior integrity.

Refs #143. Agent: Codex; model: unavailable.
Keep the library CSV byte-for-byte so its recorded SHA256 remains valid under the repository LF normalization rules. Agent: Codex; model: unavailable.
Refresh the stored reference after the binary attribute takes effect; preserves its provenance hash. Agent: Codex; model: unavailable.
Preserve three independent Claude Code runs and posterior evidence. Document timeout compute undercount without claiming budget success.

Agent: Codex; model: unavailable.
…itions-inference

# Conflicts:
#	autoassistant/tests/test_benchmark.py
#	benchmarks/README.md
#	benchmarks/VERSIONS.lock
Jammy2211 and others added 2 commits October 2, 2026 13:25
The frozen input data a one-shot card ships (the simulated lens behind
positions_initialised_inference) is domain science a newborn regrows,
matching PyAutoBrain's _SHARED_DOMAIN (PyAutoBrain#448).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit bc60aea into main Oct 2, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/benchmark-positions-inference branch October 2, 2026 12:30
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.

feat: benchmark positions-initialised inference

1 participant