stable-diffusion-webui/docs/milestones/M07/M07_summary.md

1.6 KiB

M07 Summary — Opts Snapshot Introduction

Project: Serena
Phase: Phase II — Runtime Seam Preparation
Milestone: M07 — Opts snapshot introduction
Status: Closed
Branch: m07-opts-snapshot
PR: #22
Commit: 8ea50d35 (merge)
Quality Run: 22983583947 ✓


Accomplished

Item Status
Created modules/opts_snapshot.py
Added create_opts_snapshot(opts)
Snapshot capture in process_images_inner after prepare_prompt_seed_state
Full shallow copy of opts.data via SimpleNamespace
Snapshot attached to p.opts_snapshot
No runtime reads replaced (write-only for M07)
Preserved behavior (override logic, extension compatibility)

CI Layout After M07

Workflow Trigger Coverage Security
Smoke Tests pull_request (main) No gate None
Linter pull_request
Quality Tests push to main ≥40% pip-audit (informational)

Invariants Preserved

  • Generation behavior unchanged
  • Override logic unchanged
  • Extension compatibility (shared.opts reads unchanged)
  • API compatibility (txt2img/img2img)
  • No opts reads replaced (M08 will thread snapshot)

Blast Radius

File Change
modules/opts_snapshot.py New
modules/processing.py Modified

Refactor Result

Deterministic opts snapshot captured for generation runs. Third Phase II runtime seam; prepares for M08 snapshot threading into process_images_inner and M09 execution context.