Skip to content

Add private Shepherd archive preflight - #201

Merged
1 commit merged into
mainfrom
codex/shepherd-archive-preflight
Aug 12, 2026
Merged

Add private Shepherd archive preflight#201
1 commit merged into
mainfrom
codex/shepherd-archive-preflight

Conversation

@evangauer

Copy link
Copy Markdown
Owner

What changed

  • add an operator-only, offline Shepherd ZIP preflight that never extracts archive contents
  • require a private manifest so participant archive and evidence paths never appear in process arguments
  • validate ZIP structure, entry paths/types, resource bounds, CRCs, UTF-8, and supported CSV shapes before reviewed import
  • emit only bounded, opaque, privacy-minimized evidence with no filenames, headers, cells, identities, or row excerpts
  • document the assisted migration boundary and add the package command
  • add adversarial tests for archive bombs, path tricks, corruption, mutation races, CLI failure/redaction contracts, and exact resource limits

Why

Shepherd full exports may arrive as ZIP archives containing participant data and attachments. We need a reviewable way to establish structural safety and identify supported CSV candidates without extracting files, leaking paths or content, claiming importability, or touching a database/network.

Impact

Operators can generate local structural evidence before the existing reviewed CSV dry run. This does not expand the self-serve importer, inspect unsupported attachments as migrated data, or authorize production writes.

Validation

  • focused archive preflight suite: 49/49
  • full web suite: 3,923 passed / 6 skipped (before the final aggregate-accounting regression)
  • web TypeScript check
  • Prettier
  • tracked and untracked diff checks
  • independent security/reliability re-review: no blocker

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openvpm-app Ready Ready Preview Aug 11, 2026 4:27pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openvpm Ignored Ignored Aug 11, 2026 4:27pm

Request Review

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