Skip to content

Fix held exposure authority and repeat validation - #20

Merged
rohanpandula merged 3 commits into
port/cross-platformfrom
codex/fix-explicit-exposure-authority
Sep 9, 2026
Merged

rohanpandula merged 3 commits into
port/cross-platformfrom
codex/fix-explicit-exposure-authority

Conversation

@rohanpandula

@rohanpandula rohanpandula commented Sep 9, 2026 •

Copy link
Copy Markdown
Owner

An explicitly commanded RGB exposure completed acquisition with all wire, controller, and IR bindings intact, but both post-capture consumers rejected it because they accepted only the legacy nikon-parity-guarded-v2 source label. The worker correctly recorded explicit-rgb-override, so the completed frame could not be finalized or receive a receipt.

This change shares the authority check between finalization and roll publication. Explicit overrides are accepted only when the journal says applied: true, its exact non-boolean RGB ticks are within the device bounds, and those ticks equal the commanded RGB contract. Controller acceptance, active-solve binding, and unchanged IR remain mandatory; unknown or tampered sources fail closed. Legacy parity-labeled journals remain compatible.

The first repaired capture exposed a separate held-repeat defect: after a one-sample round, the resumed round derived frame selection from the prior round's already patched fine-read plan. The real validator therefore rejected that plan as noncanonical before capture. Resumed rounds now derive selection from the original canonical plan and apply the new round's sample contract only afterward. Existing session, USB, preview, and continuation validation remains unchanged. The worker source seal is updated.

The branch also prepares version 0.7.11 in pyproject.toml, uv.lock, the changelog, and README.

Regression evidence:

  • Explicit authority, before: the valid explicit-override regression failed at both consumers (F.F.); both tamper cases refused.
  • Explicit authority, after: both consumer regressions, tamper refusals, parity compatibility, and existing malformed-journal cases pass; the complete single-pass workflow test file passes.
  • Held repeats, before: the existing two-round harness failed only (1, 1) and (1, 4) (F.F) at the real canonical-plan validator; (4, 4) passed.
  • Held repeats, after: all three two-round sample-contract combinations pass (...).
  • The canonical capture bundle source-seal test, Ruff, uv lock --check, and git diff --check pass.
  • On an LS-5000 ED / firmware 1.03 / SA-30, the explicit-authority fix completed the first capture and receipt, and roll verification passed.
  • Repeat hardware validation of the canonical-plan fix is pending.

This PR remains draft. Do not merge, tag, or publish until repeat hardware validation is reviewed.

Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com
Co-Authored-By: OpenAI Codex noreply@openai.com

rohanpandula and others added 3 commits September 8, 2026 18:59
Co-Authored-By: OpenAI Codex <noreply@openai.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@rohanpandula rohanpandula changed the title Fix explicit exposure authority validation Fix held exposure authority and repeat validation Sep 9, 2026
@rohanpandula
rohanpandula marked this pull request as ready for review September 9, 2026 02:40
@rohanpandula
rohanpandula merged commit b52177a into port/cross-platform Sep 9, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant