Source: docs/superpowers/plans/2026-08-11-typed-appearance-state.md · Plain text

Typed High-Resolution Appearance State Implementation Plan

For agentic workers: REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (- [ ]) syntax for tracking.

Goal: Add an optional doubled-resolution, evidence-residual RGB field while preserving the accepted geometry state, fixed renderer, legacy checkpoints, and target-independent encoder.

Architecture: StateAppearance stores deterministic high-resolution evidence plus a bounded completion residual. The evidence encoder constructs it only when appearance_resolution_scale=2, and the existing renderer samples its reconstructed color for RGB while all other measurements keep using native typed fields.

Tech Stack: Python 3.11, PyTorch 2.7+, pytest, Ruff, YAML, existing MCSS CLI.

Global Constraints


Task 1: Typed Appearance And Strict Configuration

Files: - Modify: src/mcss/types.py - Modify: src/mcss/model/system.py - Modify: src/mcss/config.py - Test: tests/test_types.py - Test: tests/test_config.py

Interfaces: - Produces: StateAppearance and optional SceneState.appearance. - Produces: ModelConfig.appearance_resolution_scale: Literal[1, 2].

Task 2: Fixed Renderer Appearance Sampling

Files: - Modify: src/mcss/measurements.py - Test: tests/test_measurements.py

Interfaces: - Consumes: optional SceneState.appearance. - Produces: RGB sampled from appearance.color without changing any other measurement.

Task 3: High-Resolution Evidence Completion

Files: - Modify: src/mcss/model/evidence_encoder.py - Modify: src/mcss/model/system.py - Test: tests/test_evidence_encoder.py - Test: tests/test_model.py

Interfaces: - Consumes: appearance_resolution_scale and native completion hidden state. - Produces: doubled deterministic evidence fields and bounded high-resolution color residual.

Task 4: Regularization, Telemetry, And V5 Configs

Files: - Modify: src/mcss/engine.py - Modify: scripts/cuda_smoke.py - Create: configs/hypersim_er_v5_appearance2x_smoke.yaml - Create: configs/hypersim_er_v5_appearance2x_mainres_smoke.yaml - Create: configs/hypersim_er_v5_appearance2x_probe.yaml - Create: configs/hypersim_er_v5_appearance2x_overfit.yaml - Create: configs/hypersim_er_v5_appearance2x_train.yaml - Create: configs/hypersim_er_v5_appearance2x_val.yaml - Modify: README.md - Test: tests/test_evidence_encoder.py

Interfaces: - Produces: appearance rewrite regularization and state/appearance_* JSONL telemetry. - Produces: isolated smoke, probe, overfit, train, and validation commands.

Task 5: Verification And Handoff

Files: - Verify all modified and created files.

Interfaces: - Produces: a runnable V5 overfit command, not a main-run recommendation.