Repository navigation
feat: add inference setup and baseline experiment contract #13
Description
Overview
Introduce setup-oriented inference evidence with explicit baseline-stage and sampler initialization provenance, retaining existing v1 feeds. This is phase 1 of the human-approved inference redesign.
Inference setup and baseline-to-experiment contract
Type: feature
Target: pyautoinsight
Repos: PyAutoInsight
Difficulty: medium
Consequence: judge
Autonomy: human-required
Priority: high
Filed: 2026-10-08
Epic: inference-setup-redesign (phase 1)
Scope and approval
Implement the first phase of the approved design in @PyAutoInsight. Parent:
draft/feature/pyautoinsight/inference_setup_redesign.md (original request verbatim).
Human approved the design, baseline contract and start-mode distinctions, then
said "ok begin". No compute, acceptance or merge is authorized.
High-level plan
- Accept version 2 setup-oriented inference evidence while retaining v1 feeds.
- Validate stable setup identities, baseline references and prepared problems.
- Record cold/warm/resume initialization separately from compilation/cache state.
- Refuse invalid or incompatible comparisons; preserve unknowns and archives.
- Document the producer interface and prove reader compatibility with tests.
Tier: judge — merge mode: human /prm.
Detailed plan
- insight/summary.py: retain existing envelope/record validation, add explicit v2
routing and comparison controls for prepared problem, protocol and start mode. - insight/catalogue.py (new): validate setup registry, baseline-stage references,
experiment bindings, initialization sources and preparation timing semantics.
Stable IDs are separate from paths; all record references resolve; duplicate,
mismatched, nonfinite and unsafe data fail closed. Missing historical metadata
is explicit, never inferred as an accepted or cold baseline. - insight/registry.py and ingest/cache callers: inspect exact supported-version
handling and allow v2 without changing the live v1 registry pin. - REFERENCE.md: document v2 fields, lifecycle/migration, baseline acceptance and
prepared artifact provenance, sampler cold/warm/resume vs JIT/cache state,
initialization/preparation vs sampling clocks, typed diagnostics, and strict
comparison behavior. No renderer or execution changes in this phase. - tests: representative v2 SLaM baseline and cold/warm/resume experiments;
dangling references, setup/stage mismatch, missing provenance, duplicate IDs,
archived/unassessed baselines, invalid metrics/paths, mixed comparison controls,
supported-version registry behavior and full v1 regression suite. - Run required Ruff, full pytest, offline check; ship one reviewable PR.
Survey
PyAutoInsight canonical main is clean, unclaimed; branch:
feature/inference-setup-contract. Later project/assistant canonical checkouts
contain unrelated untracked results/datasets and will use isolated worktrees.
PyAutoBrain is claimed by search-ext-a0c-fit-repair; this phase reads it only.
Original phase authorization (verbatim)
ok begin
Full original request and intervening approvals are preserved in the parent.
Activity
Jammy2211 commentedon Oct 8, 2026
Phase 1 implemented: #14 at
4f8eaec.Validation: 157 tests passed; Ruff lint/format and offline contract/dashboard checks passed. Hosted lint and refresh checks were pending at handoff. Heart readiness STALE (85), exact reason:
release validation incomplete: no rehearsal for current source; freeze clear, no red/yellow readiness reasons.The v2 contract records setup/prepared-problem/baseline provenance, cold/warm/resume initialization separately from compilation/cache state, separate costs and work counts, and strict comparison refusals. Current v1 registry/capture remains unchanged. No science runs or scientific acceptance occurred.
Awaiting human
/prm. Next phase: producer catalogue and script migration; subsequent Pulse-style UI, assistant/wiki and literature-candidate phases remain in the Mind umbrelladraft/feature/pyautoinsight/inference_setup_redesign.md. Worktree:/home/jammy/Code/PyAutoLabs/.worktrees/inference-setup-contract/PyAutoInsight, branchfeature/inference-setup-contract.Jammy2211 commentedon Oct 8, 2026
Inference setup contract — phase 1 complete
prm, and continue through all phases autonomously to the endVersion 2 reader, baseline/prepared problem identities, cold/warm/resume and
compilation/cache distinctions, work units and strict comparisons delivered.
157 tests, Ruff, offline validation passed. Both exact-head hosted runs and
all their jobs passed; only PR-disabled publication step skipped.
Parent draft/feature/pyautoinsight/inference_setup_redesign.md remains active
for producer, UI, assistant/wiki and literature candidates. No compute performed.