Skip to content

feat: freeze portable archive format v1 - #54

Merged
yusixian merged 1 commit into
mainfrom
feat/g2-8-1-archive-format
Aug 3, 2026
Merged

yusixian merged 1 commit into
mainfrom
feat/g2-8-1-archive-format

Conversation

@yusixian

@yusixian yusixian commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Outcome

Freezes portable archive format v1 in a DB-independent private workspace package, @koharu-suite/archive-format.

  • adds strict wire schemas for channels, messages, revisions, media, visibility, and typed Telegram provenance
  • adds deterministic canonical JSON/JSONL, bounded sharding, checksums, and canonical USTAR + Zstd streaming
  • validates container structure, resource ceilings, record closure, blob identity, and sanitized compatibility reports
  • rejects hostile paths/types, truncation, checksum/count drift, future/unknown schemas, stalled streams, and forged abort reasons
  • keeps PostgreSQL, Drizzle, runtime UUIDs, credentials, raw Telegram updates, host paths, CLI wiring, and production mutations outside this Goal
  • documents the frozen v1 contract, limits, rollback boundary, and later-Goal seams

Validation

  • pnpm --filter @koharu-suite/archive-format test — 13 files / 179 tests
  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build
  • direct dist import smoke
  • package tarball content smoke
  • git diff --check

The production dependency audit reports existing findings in Admin/AWS/React Router paths; no advisory path includes @koharu-suite/archive-format or tar-stream.

Scope

This is additive and not yet used by the production server or Docker image. G2.8.2 will wire export/inspect CLI behavior through this package.

Closes #53

@yusixian
yusixian merged commit f4a7119 into main Aug 3, 2026
1 check 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.

G2.8.1: Freeze portable archive format v1

1 participant