Skip to content

Restore cats Exact reproducibility and validate calibrated multi-head benchmarks #117

Closed

Description

@vycdev

Note

🤖 Codex (gpt-6.1-sol) responding on behalf of vycdev

Follow-up to #113: establish a reproducible current Exact cats result and stronger runtime evidence for calibrated multi-head search.

During #113, a fresh Exact cats preparation completed with final-stack fingerprint final-stack-v1-9cc07906da622021, differing from the checked-in replay golden final-stack-v1-a4cfc2a6dae4f1ac. Its assertion failed before the complete result was saved. The cause of the discrepancy has not been established; confirm the reproduction before changing any golden.

The #113 measurements therefore use the recorded replayResult.filamentOrderColors through the current stack builder: 12 runs, 70 layers, 5.92 mm, fingerprint final-stack-v1-9684249d4a77bb3c. That controlled comparison does not validate a freshly optimized Exact cats stack. Its runtime reports are single-pass observations on a shared development machine, with overlapping workloads.

Reproduction inputs

  • Base inspected: 3ede3177f231d1ae566ff8afb1313f772f50889e.
  • Measured profile: tests/assets/performance/8-colors-frontlit-2026-08-26/profile.kfil (26 Palette Proof rounds, 250 judgments, one 1,024-cell Stack Matrix).
  • Case/image: cats/case.json and cats/source.png in that directory; 576 × 576, 128 opaque colors.
  • Settings: 0.08 mm layers, 0.4 mm first layer, 5.92 mm height cap, 0.9 transition opacity, Exact optimizer, up to four extra filament appearances, preserve separation at ΔE 20, partial matching allowed.
  • Canonical existing command: npm run benchmark:calibrated -- cats.
  • Once the Score multi-head search with the full appearance model #113 benchmark is available, prepare a separate fresh input with npm run benchmark:multi-head -- --prepare --reoptimize --input .profiles/multi-head/cases-exact.json. Its normal preparation deliberately replays the recorded order.

The #113 report, reproduction commands, and raw measurements are in tests/benchmark/multi-head-appearance.md and tests/benchmark/results/multi-head-appearance/ in the pending #113 work.

Done when

  • Determine whether the discrepancy comes from fixture reconstruction, an intentional behavior change, or a regression; record the evidence.
  • Establish a deterministic current Exact cats golden. Preserve immutable observedResult, captured artifacts, and their hashes; update replay expectations only with a justified change.
  • Persist the full fresh result, settings, and fingerprints even if a golden assertion fails, so an expensive optimizer run is not lost.
  • Rerun the fresh Exact cats multi-head matrix at 2–8 heads in both grouping modes, reporting full-model usage-weighted CIEDE2000 gains and fallback outcomes against the same single-head snapshot. Keep the 0.25 gain gate unless separate evidence justifies changing it.
  • Measure warmed repeated runtime samples, reporting individual runs, medians and spread, machine/Node/revision/input metadata, and explicit timing boundaries for fitting, single-head optimization, multi-head analysis, and build validation.
  • Save new dated evidence and distinguish it from the recorded-order Score multi-head search with the full appearance model #113 experiment; document any remaining unmeasured cases.

This follow-up does not seek an exhaustive full-appearance search or the unused filament-load changes tracked in #114. Open a separate fix PR once the cause is understood.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions