Skip to content

Make output publication fail closed - #5

Draft
Joona-t wants to merge 1 commit into
mainfrom
agent/fail-closed-output-safety
Draft

Make output publication fail closed#5
Joona-t wants to merge 1 commit into
mainfrom
agent/fail-closed-output-safety

Conversation

@Joona-t

@Joona-t Joona-t commented Aug 10, 2026

Copy link
Copy Markdown
Owner

What changed

  • adds staged, descriptor-owned output publication with atomic no-clobber/swap behavior
  • refuses source/output aliases and implicit replacement
  • adds explicit --force recovery retention and genuinely write-free --report-only
  • documents limits and adds adversarial regression coverage

Why

Direct LUT/preview writes could truncate source media or overwrite existing output before validation.

Impact

GradeKit now fails closed around source collisions and concurrent destination changes. Forced replacement retains the prior artifact for manual recovery.

Validation

  • fresh full suite: 55 passed
  • prior independent tier-1 adversarial review passed, including 30 focused safety tests
  • git diff --check and secret/path risk scan passed
  • pre-existing IMG_7889.cube was excluded and remains local/untracked

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