Skip to content

feat(ocr): support tenant-scoped sandbox document erasure #64

Description

@Sam123ben

Goal

Provide a durable, tenant-scoped sandbox document erasure API so DevAI can manually remove uploaded test documents before the existing 24-hour lifecycle rule.

Acceptance criteria

  • authenticated product and tenant scope is enforced with 404 for foreign resources
  • deletion is idempotent and cancels active durable OCR work first
  • source, page, result and quarantine artifacts are erased without exposing object locators
  • CNPG state retains only safe audit/tombstone metadata needed for idempotency and 24-hour lifecycle reporting
  • no raw document content, storage URL or credential is returned or logged
  • contract, tenant-isolation and retry tests cover the workflow

Related: DevAI sandbox result-details UI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions