Skip to content

Porter P.2 — Publish packages and stream archives - #734

Merged
VBWizard merged 7 commits into
userlandfrom
codex/porter-p2
Nov 25, 2026
Merged

VBWizard merged 7 commits into
userlandfrom
codex/porter-p2

Conversation

@VBWizard

@VBWizard VBWizard commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Changes

  • Add explicit make package publication of system builds and configured recursive collections. The system uses the shared Make inventories and records the full kernel's SHA-256.
  • Publish canonical manifests and one verified gzip object per file identity. Keep names, baseline flags and provenance in separate atomic catalog records.
  • Add catalog, manifest and full or selective tar.gz streaming to os64serve. The same listener continues to accept legacy LIST and GET.

Verification

  • The published system manifest matches all 608 installable ext2 files and five FAT/ISO boot files.
  • Linux regression tests cover concurrent publishers, source edits and removal, collisions, empty lots, ustar limits, corrupt/truncated objects, and legacy protocol compatibility.
  • GNU gzip and tar verified full and selective downloads. A 64 MiB incompressible recording reached 67,129,464 wire bytes. The server peaked at 21,192 KiB RSS and the extracted SHA-256 matched.
  • Os64 in QEMU listed and extracted the full and selective sample archives and restored the 64 MiB recording byte for byte. Os64 gunzip rejected corrupt and truncated gzip, and Os64 tar rejected an incomplete end marker.
  • Native Windows Server 2022 passed the file snapshot regression and 12 loopback runs covering catalog, manifest, full and selective archives, malformed requests, corrupt and truncated objects, and legacy LIST and GET. The server compares stable identity across pathname and handle stats and checks timestamps within each API. The native test used a temporary local repository. The workstation UNC path remains unverified. Windows regression run
  • Injecting a failure into the seventh FAT license copy stopped Make immediately. The normal image build passed afterward.

Publishing and v1 wire format

Publish complete Make-selected system and recursive media scopes to a separate content store. Share inventory sources with the image build and make publication records visible only after objects and canonical manifests are verified. Add length-framed Porter requests to os64serve, retain the legacy wire format, and test the service on Windows loopback.
A later successful command in the grouped recipes could mask a failed config or license write. Exit on the first error. Injected failure of the seventh FAT license copy stops the recipe with error 23. A successful rebuild still matches the published system manifest.
@VBWizard
VBWizard marked this pull request as ready for review November 24, 2026 22:26
@VBWizard
VBWizard marked this pull request as draft November 24, 2026 22:27
The native failure showed the same device, inode, type, length and mtime with different ctime values from lstat and fstat. Compare stable identity and size across those APIs, then check for changes within each API. Keep the full Linux checks and the streaming gzip verification.
@VBWizard
VBWizard marked this pull request as ready for review November 24, 2026 22:33

@VBWizard VBWizard left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed df23f1e14. No outstanding findings. I compared the system manifest against the accepted images and verified the destinations and SHA-256 of all 613 managed files. In an independent checkout I published a theme twice, changed one nested file, and confirmed exactly one new object. After removing the checkout and source collection, the original repository still served valid full, selective, and empty archives. I also reproduced the masked FAT copy error and confirmed the fix propagates a middle-copy failure. All seven local regression tests passed. The final Windows Server 2022 job passed 12 repetitions of the loopback suite, including legacy GET/LIST and full and selective Porter transfers. The recorded guest proof covers Os64 extraction and damaged or truncated input. Windows coverage is loopback on the hosted runner. The workstation UNC path and physical P5 connection remain hardware acceptance work.

@VBWizard
VBWizard merged commit 6186435 into userland Nov 25, 2026
1 check passed
@VBWizard
VBWizard deleted the codex/porter-p2 branch November 25, 2026 02:07
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