Files

4.4 KiB

Repo Relay

A deliberate boundary between private work and public code.

A self-hosted publishing console that prepares immutable source reviews, scans the exported files, publishes fresh public history and verifies the destination. It powers this public code gallery.

Status: Deployed. Evidence reviewed 2026-10-11.

Read the illustrated case study

My contribution

Built the publishing console, persistent worker, release profiles, attachment synchronization and public Gitea presentation. Gitea, Git and Gitleaks provide the underlying repository and scanning capabilities; Repo Relay defines the review, transfer and verification workflow around them.

The problem

Private development repositories contain operational configuration, experiments and history that should not automatically become public. A source mirror also does not establish that release attachments are safe or that their public downloads match the approved bytes.

Repo Relay exports a pinned branch snapshot into separate staging, applies a reviewed release profile and produces an immutable file review. A persistent worker publishes approved files with separate public history. The console shows actual job stages and keeps enough durable state to reconnect after a browser refresh.

Engineering decisions

Tie approval to the reviewed bytes

A review records the source revision, exported manifest and profile digest. Changes to the snapshot or release policy invalidate approval. Exact-hash scanner exceptions require a specific file and reason; changed bytes cannot reuse that exception.

Keep work durable and observable

The web process and worker share persistent job records in SQLite. Progress separates snapshot download, checks, Git upload and verification. Unknown totals remain unknown, and completing an upload does not imply the destination has passed verification.

Verify the public artifact

The first destination is created privately. The worker checks the pushed revision before exposing it and performs an anonymous clone check. Release tags point to sanitized public commits, while approved attachments are verified by SHA-256 after upload. Existing unrelated public history is not force-pushed.

A failure that shaped the design

Release synchronization worked against a fresh schema but encountered an older deployed database missing a source-revision column. The repair added a migration and a regression fixture using the earlier schema. This is why upgrade testing must include existing state, not only a new empty installation.

Evidence and scope

  • Live publishing: The October 7 deployment record describes a reviewed update on the real worker followed by successful anonymous clone verification. Scope: Recorded live disposable-repository acceptance.
  • Regression coverage: Source tests cover changed review bytes, changed profiles, saved exclusions, stale approvals, attachment hashes and migration from an older release schema. Scope: Inspected test definitions and recorded results; the suite was not rerun for this portfolio.
  • Public access: This gallery and its public repositories were checked anonymously during the portfolio build. Scope: Current public-access verification; detailed release receipts accompany portfolio delivery.

These are reviewed recorded results, unless explicitly described as current public-access verification. Application tests and physical-device checks were not rerun for this portfolio.

Remaining limits

  • A secret scanner reduces exposure risk but does not replace review of content, licenses or opaque binary attachments.
  • Transfer estimates depend on measurable stage counters. The overall progress indicator is a workflow estimate, not a total-byte percentage.

Evidence references

  • repo-publisher/README.md — review and release workflow
  • publisher.py — immutable reviews, durable jobs and clone verification
  • tests/test_publisher_security.py — approval and exclusion regressions
  • tests/test_release_sync.py — attachment integrity and existing-schema migration
  • ui-verification/2026-10-07/verification.md — recorded live acceptance

Revision: Deployment evidence dated 2026-10-07; this workspace is not one Git checkout.

The publishing-service implementation remains private. The portfolio source, diagrams and case studies are public.

Browse public repositories