WIP: Validate GPT media and encode image metadata #2

Closed
erikinkinen wants to merge 12 commits from feature/posix-compat into main
Owner

Summary and rationale

Validate GPT media and construct metadata for ordinary image files without a host partitioning utility. The streaming parser handles caller-selected table sizes; the new allocation-free writer produces protective MBR, primary and backup headers, and a shared partition table in caller buffers.

Tracking and scope

Continue the component audit, metadata writer and image build work. Boot-tool #7 owns command and recipe adoption. Full guest and toolchain builds remain tracked in phase completion.

Architecture, authority and failure behavior

Inputs are borrowed values and buffers. The crate obtains no file, device, allocator or entropy authority. Writer preflight preserves all metadata outputs on refusal; caller index scratch may change. Explicit backup parsing preserves the primary parser's existing behavior. Streamed entries remain provisional until the final count and CRC check. Callers own writes, publication and durability.

Cargo Git dependencies track main; CI selects and binds the applicable signed feature revisions.

Validation evidence

On 357cafd1, formatting, strict hosted and freestanding Clippy, 26 units, one doctest, documentation and authored-source policy checks pass without warnings. The API reference was generated and independently checked from actual Rustdoc output. Push CI 46 passed; same-repository PR CI 47 skipped duplicate jobs.

Review checklist

  • Preserve primary parser compatibility and document explicit backup parsing.
  • Add checked caller-buffer encoding with no fixed disk or partition maximum.
  • Complete the current library checks and generated API reference.
  • Publish the technical manual update.
  • Complete native image-command, catalog and guest adoption.
## Summary and rationale Validate GPT media and construct metadata for ordinary image files without a host partitioning utility. The streaming parser handles caller-selected table sizes; the new allocation-free writer produces protective MBR, primary and backup headers, and a shared partition table in caller buffers. ## Tracking and scope Continue the [component audit](https://git.erikinkinen.fi/erix/lib-partition/issues/1), [metadata writer](https://git.erikinkinen.fi/erix/lib-partition/issues/3) and [image build work](https://git.erikinkinen.fi/erix/integration/issues/8). [Boot-tool #7](https://git.erikinkinen.fi/erix/boot-tool/issues/7) owns command and recipe adoption. Full guest and toolchain builds remain tracked in [phase completion](https://git.erikinkinen.fi/erix/integration/issues/65). ## Architecture, authority and failure behavior Inputs are borrowed values and buffers. The crate obtains no file, device, allocator or entropy authority. Writer preflight preserves all metadata outputs on refusal; caller index scratch may change. Explicit backup parsing preserves the primary parser's existing behavior. Streamed entries remain provisional until the final count and CRC check. Callers own writes, publication and durability. Cargo Git dependencies track main; CI selects and binds the applicable signed feature revisions. ## Validation evidence On 357cafd1, formatting, strict hosted and freestanding Clippy, 26 units, one doctest, documentation and authored-source policy checks pass without warnings. The API reference was generated and independently checked from actual Rustdoc output. Push CI 46 passed; same-repository PR CI 47 skipped duplicate jobs. ## Review checklist - [x] Preserve primary parser compatibility and document explicit backup parsing. - [x] Add checked caller-buffer encoding with no fixed disk or partition maximum. - [x] Complete the current library checks and generated API reference. - [ ] Publish the technical manual update. - [ ] Complete native image-command, catalog and guest adoption.
build: Align dependencies for coherent runtime adoption
All checks were successful
CI / markdown (push) Successful in 13s
CI / test (push) Successful in 27s
CI / markdown (pull_request) Successful in 15s
CI / test (pull_request) Successful in 30s
e987b7d027
Select the current original signed foundation commits in the existing Git
dependencies. Keep Rust implementation files unchanged and record the
separate product-image acceptance requirement in the roadmap.

The complete supported feature/profile matrix passes with formatting,
strict Clippy, unit tests, builds and private rustdoc. Product runtime
adoption remains pending the complete dependency graph.
ci: Skip duplicate same-repository pull request jobs
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 8s
CI / test (push) Successful in 27s
c12da1c369
Skip pull-request jobs when the head and base repository names match,
since push CI already covers these branches. Retain fork pull-request,
push and manual execution and existing release publication conditions.
Apply the guard before any job steps, including Markdown validation.

Test execution and CI observation are deferred at the user's request;
no execution result is claimed for this workflow-only change.
build: Adopt original-custody filesystem revisions
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / test (push) Successful in 19s
f5578ef958
Select complete signed native filesystem and compatibility dependencies by
immutable commit. Preserve original endpoints, rights, cleanup and resource
budgets throughout the coherent compilation graph.

Tests, builds, lint checks, generated documentation, VM/profiler execution and
CI observation remain deferred. Rustfmt was applied through stdin. No test
pass, warning-free build or measured performance improvement is claimed.
Full EriX guest generations and external Rust/LLVM guest rebuilding remain
required and unperformed.
ci: Adopt the signed original Git dependency helper
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 8s
CI / test (push) Successful in 16s
e2d19094fd
Select the verified immutable Integration helper that preserves actual
Git objects and denies registry dependencies without obsolete path
patches. Retain every duplicate same-repository PR guard. Where needed,
adopt the coherent signed ABI graph and preserve original authority and
validation budgets. Maintain canonical documentation formatting.

Tests and exact-head CI run in parallel with implementation. Earlier failed,
skipped or unrun checks remain distinct from actual passes. Keep the full
EriX guest build generations and external Rust/LLVM guest rebuild required;
no final all-repository CI success or guest completion is claimed.
ci: Adopt the signed original Git dependency helper
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / test (push) Successful in 21s
9693b8a4cc
Select the verified immutable Integration helper that preserves actual
Git objects and denies registry dependencies without obsolete path
patches. Retain every duplicate same-repository PR guard. Where needed,
adopt the coherent signed ABI graph and preserve original authority and
validation budgets. Maintain canonical documentation formatting.

Tests and exact-head CI run in parallel with implementation. Earlier failed,
skipped or unrun checks remain distinct from actual passes. Keep the full
EriX guest build generations and external Rust/LLVM guest rebuild required;
no final all-repository CI success or guest completion is claimed.
ci: Select the reviewed native process custody helper
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / test (push) Failing after 12s
9a99242f8a
Select the coherent Integration source for dependency preparation and
native process ownership. This keeps helper inputs aligned with the
published runtime producer and refuses unsupported descriptor queries
before starting a child.
ci: Adopt the repaired native signal owner
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 8s
CI / test (push) Successful in 33s
46f1874d18
Select the coherent Integration helper that admits observed default or
ignored reserved signals while preserving complete native action identity.
Keep the existing workflow commands and limits for Integration #118.
build: Track main dependencies through checked Cargo inputs
Some checks are pending
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Has started running
CI / markdown (push) Has started running
f02532d8e5
Declare main for internal Git dependencies. Prepare offline Cargo inputs with
the selected Integration helper, then carry the generated workspace, environment
and target directory through each CI step.

Keep shared dependency and review policies aligned.

Refs: erix/integration#142
ci: Select the repaired Cargo gateway
Some checks are pending
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Has started running
CI / markdown (push) Has started running
b37694c698
Use the shared gateway that selects installed Rust tools when a component
has no toolchain file. Keep tool selection, feature-branch resolution and
original source checks together in the pinned helper snapshot.

Refs: erix/integration#147
ci: Use the shared acquisition fix for packed Git transfers
All checks were successful
CI / markdown (push) Successful in 2s
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Successful in 1m38s
a74ca065db
Use the shared acquisition fix for packed Git transfers. The pinned helper
keeps unexpected object-store metadata outside the acquired source context.

Refs: erix/integration#150
Prepare checked image geometry and original partition slots using caller index scratch, then encode protective MBR, both headers and one shared table after complete output preflight. Add explicit backup-header validation while preserving primary parsing. Keep disk access and publication with callers. Ref #3.
refactor: Simplify the UTF-16 boundary fixture
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 24s
357cafd16f
Keep the already owned string directly and append its final Unicode scalar with push. This removes redundant conversion and string handling in the name-boundary fixture.
Author
Owner

Added caller-buffer GPT metadata encoding and explicit backup-header validation in 357cafd1. The feature issue keeps the remaining manual publication and image-command follow-up linked.

Added caller-buffer GPT metadata encoding and explicit backup-header validation in [357cafd1](https://git.erikinkinen.fi/erix/lib-partition/commit/357cafd16fce9ed2de8c67c2184cfcd159318659). [The feature issue](https://git.erikinkinen.fi/erix/lib-partition/issues/3) keeps the remaining manual publication and image-command follow-up linked.
erikinkinen changed title from WIP: Align signed runtime dependencies to WIP: Validate GPT media and encode image metadata 2026-10-24 11:23:03 +02:00
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:49 +01:00
Author
Owner

This source is now split into feature PRs, starting at #5 and ending at #6. Each PR links its prerequisite. The complete stack preserves the runtime changes and dependency declarations; obsolete pin checkpoints and documented source-acquisition differences are separated from feature behavior.

Closing this aggregate without merging. The replacement PRs remain WIP for their remaining integration and review.

This source is now split into feature PRs, starting at #5 and ending at #6. Each PR links its prerequisite. The complete stack preserves the runtime changes and dependency declarations; obsolete pin checkpoints and documented source-acquisition differences are separated from feature behavior. Closing this aggregate without merging. The replacement PRs remain WIP for their remaining integration and review.
erikinkinen closed this pull request 2026-10-30 18:01:17 +01:00
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 24s

Pull request closed

Sign in to join this conversation.
No description provided.