Source: docs/superpowers/plans/2026-08-11-evidence-residual-scene-state.md · Plain text

Evidence-Residual Scene 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 a backward-compatible evidence-residual scene-state architecture and prepare an official-split Hypersim expansion protocol.

Architecture: A feature pyramid samples calibrated context views at world-space voxel hypotheses. Explicit cross-view agreement produces confidence and provenance. A bounded 3D completion residual is gated by unknown probability before the unchanged fixed renderer reads the final typed state.

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

Global Constraints


Task 1: Typed evidence contract 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: StateEvidence and optional SceneState.evidence. - Produces: ModelConfig.state_architecture, evidence_temperature, observed_residual_floor, and completion_residual_scale.

Task 2: Multi-scale evidence and gated residual encoder

Files: - Modify: src/mcss/model/encoder2d.py - Create: 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: the Task 1 StateEvidence contract and ModelConfig keys. - Produces: EvidenceResidualStateEncoder.forward(context_rgb, cameras, bounds) -> SceneState.

Task 3: Evidence regularization and telemetry

Files: - Modify: src/mcss/config.py - Modify: src/mcss/engine.py - Test: tests/test_config.py - Test: tests/test_evidence_encoder.py

Interfaces: - Produces: TrainingConfig.evidence_residual_weight. - Produces: _state_regularization(state, evidence_residual_weight) and _state_diagnostics(state).

Task 4: New experiment configs and full-split planning

Files: - Create: configs/hypersim_er_smoke.yaml - Create: configs/hypersim_er_overfit.yaml - Create: configs/hypersim_er_train.yaml - Create: configs/hypersim_er_val.yaml - Create: configs/hypersim_er_diagnostic_test.yaml - Create: configs/hypersim_er_final_holdout.yaml - Create: scripts/plan_hypersim_expansion.py - Create: tests/test_hypersim_expansion.py - Modify: docs/DATASETS.md - Modify: docs/PROTOCOL.md - Modify: README.md

Interfaces: - Produces: deterministic CSV partitions from official metadata and an exclusion CSV. - Produces: dry-run counts and byte-budget estimates without downloading.

Task 5: Full verification

Files: - Verify all modified and created files.

Interfaces: - Consumes: all previous task outputs. - Produces: fresh verification evidence and runnable commands.