Skip to content

feat(apps): add v0.51 toolchain capsule contract - #292

Merged
MichaelWave369 merged 7 commits into
mainfrom
feat/toolchain-capsules-v051
Oct 4, 2026
Merged

MichaelWave369 merged 7 commits into
mainfrom
feat/toolchain-capsules-v051

Conversation

@MichaelWave369

Copy link
Copy Markdown
Owner

Purpose

Introduce PhiOS App Platform v0.51: a declarative, digest-bound Toolchain Capsule contract.

The goal is to separate:

this build requires a toolchain

from:

this toolchain may execute

This is the first post-consolidation rung after #291.

New contracts

  • phios.toolchain_requirement.v0.1
  • phios.toolchain_capsule.v0.1
  • phios.toolchain_binding.v0.1

Supported v0.51 families

  • Node/npm: node + npm
  • Python/PEP 517: python + python-build
  • Rust/Cargo: cargo + rustc
  • Go modules: go

Current pnpm/Yarn/Bun build plans are intentionally classified as unsupported by this rung rather than silently borrowing Node/npm semantics.

Static source that needs no build is classified no_capsule_required.

What this PR does

  • derives an exact toolchain requirement from an existing v0.28 BuildPlan;
  • defines strict Linux x86_64 OCI-image capsule metadata;
  • binds exact artifact SHA-256 plus exact tool/version claims;
  • validates exact family tool sets;
  • creates a review-only requirement/capsule binding;
  • canonicalizes and hashes all three records;
  • rejects unknown fields and digest tampering;
  • exports the new API from phios.apps;
  • advances the README App Platform surface from v0.50 to v0.51;
  • adds focused v0.51 tests and contract documentation.

Authority boundary

Every requirement, capsule and binding fixes:

execution_authority = false
network_authority = false
install_authority = false
host_write_authority = false

A compatible capsule is evidence only.

This PR does not pull an OCI image, run Docker/Podman/Bubblewrap, invoke a compiler, install a runtime, grant network access, modify the host, install an app, or change release/publication authority.

Intended next rung

v0.52 should add governed capsule acquisition and byte verification against the exact v0.51 artifact identity while preserving:

verified capsule != execution authority

Qualification

Run the normal PhiOS CI surface. Preserve any failure exactly; do not infer execution support merely from the contract tests passing.

@MichaelWave369
MichaelWave369 marked this pull request as ready for review October 4, 2026 20:26
@MichaelWave369
MichaelWave369 merged commit f0c32f7 into main Oct 4, 2026
9 checks 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.

1 participant