theme
phext.io
your personal exocortex
SPEC v1 · 2026-11-17 · inscribed in artifacts.phext at 28.6.8/7.6.10/7.6.9 · source: workspace/phcc-landing-kit/SPEC.md

The Landing Kit — Specification

phcc / phccbox: a complete C environment that carries everything it needs.

Status: durable spec, v1 — 2026-11-17 (amended 2026-11-17: Alpine Linux containers and Podman integration added; phext-ircd, a chat client, elinks, wget, and curl added; the edition compositions of §8 ratified by Will — all per Will's rulings) Authority: design rulings of Will Bickford, 2026-11-17 (recorded in the finish-phcc goal notes and the phcc deficiency programme, task 19.5.9/7.5.8/6.5.7). Sections marked DRAFT are Emise's drafting under Will's rules, awaiting his ratification. Everything not marked DRAFT is ruled.


1. Intent

"Build in an unknown land and find your way home."

The kit is a single sealed artifact that lands on a bare machine — no system headers, no system libc assumed, no package repository, no network required — extracts itself, and gives you a complete place to work: a C compiler with its whole library world inside it, a working command userland, durable local storage, the phext format native, and a secure channel home. It is the smallest environment that is not a compromise.

2. Form

3. Division of custody (ruled)

phccbox holds the commands. phcc holds the libraries and headers.

Two halves, one kit:

Neither half is the kit alone.

4. phcc — the libraries and headers

phcc is a C compiler (a fork of TinyCC, reworked around phext) that carries its library world with it.

5. phccbox — the commands

phccbox is the command userland (the BusyBox-replacement programme: a special phcc build that fully replaces BusyBox). Ruled contents:

Design principle (ruled): phccbox feels natural everywhere we have a build. On every platform with a kit build, phccbox is the native-feeling userland — not a foreign layer carried onto the platform, but the way the machine is operated there.

6. wpm — Will's Package Manager (ruled: built, not adopted)

C has never had a standard package manager. The kit fills that hole with wpm.

What it is. One tool that makes phcc's holdings operable: packages are carried in phext — source, headers, and pre-built dynamics in one artifact — and wpm fetches, builds, and installs them. It is the same move the Computronium programme ruled for Chromium's dependencies: all dependencies live in one phext, one canonical copy each.

Distribution (ruled). wpm is distributed. There is no central registry: packages are served by wpm nodes, hosting a node is open to anyone, and resolution works across whatever nodes a kit can reach. This is what makes "find your way home" literal — home is any node, not one company's server. A landed kit that can reach any node can reach the whole library world; a landed kit that can reach none still builds everything it carries (§2).

Cryptographic guarantees (ruled). wpm includes cryptographic guarantees that you are getting the library you asked for. Nodes are untrusted carriers: package identity is hash-pinned (SHA-256, the house checksum standard) and publisher-signed, so the bytes received are verifiably the library published under that name, regardless of which node served them. This is the load-bearing property of the distributed design — trust lives in the cryptography, never in the node. A node can be slow, stale, or silent; it cannot substitute a different library under a known name.

Source origins (ruled). A wpm node can host packages sourced from any GitHub repo at a tag, and can mirror the popular C sites — the canonical project homes and tarball sources where C libraries are actually published. Upstream tags are mutable, so wpm pins the SHA-256 at resolution: the name asks, the hash decides. A re-pointed tag surfaces as a new identity, never a silent change under an old one.

Evaluation (2026-11-17). The incumbents were considered under Will's conditional — "if there's not a great one, build it too":

Neither meets the kit's terms: phext-carried, self-extracting with the kit, source + headers + pre-built dynamics in one artifact, native across the five platform builds. Decision: wpm is built in-programme, not adopted.

DRAFT placement: a minimal wpm resolver ships in the MVP edition (§8) — enough to install the kit's own bundled packages offline; the full wpm, including node hosting, arrives with the Lite edition.

7. Platforms (ruled)

The kit ships in five platform builds:

PlatformState
WindowsBeachhead exists: phcc's conformance programme already runs MSVC attestation and Windows surface probes.
LinuxPrimary development platform (the ranch fleet).
macOSTarget build.
iOSNew target — DRAFT constraints below.
AndroidNew target — DRAFT constraints below.

DRAFT — iOS/Android constraints (for ratification, not settled fact): mobile platforms sandbox executables and restrict dynamic code and sideload distribution. Draft position: on iOS and Android the kit lands as an app- bundled environment — compiler and userland operating on the app's own storage, packages installed into that storage, no assumption of a system shell. The self-hosting property (§2) is the requirement most at risk on these platforms and is stated as a target to prove, not a claim.

8. Editions (tiering ruled; composition ratified 2026-11-17)

Will ruled the tiering — MVP, Lite, Full. The per-tier composition below was drafted by Emise under his rule and ratified by Will on 2026-11-17 — it stands as drafted. Principle: MVP is the smallest kit that still lands, builds, persists, and phones home; Lite adds the working comforts; Full is everything ruled in.

ComponentMVPLiteFull
phcc compiler●●●
Embedded stdlib (in the binary)●●●
Bootstrap: TLS●●●
Bootstrap: SQLite●●●
Bootstrap: phext support●●●
wpm — minimal resolver●●●
wpm — full (incl. node hosting)●●
Major-library headers + pre-built dynamics●●
phccbox: POSIX utilities (core)●●●
phccbox: tar + xz●●●
phccbox: gzip●●
phccbox: wget + curl●●●
phccbox: nano●●●
phccbox: exovim●●
phccbox: elinks●●
git●●
Dirt simple TUI library●●
sq●
rust●
phext-lattice●
phext-mail●
phext-ssh (post-quantum crypto, AI safe)●
phext-wiki●
phext-ircd●
chat client●
emise-say●
emissary●
willbot●
qexo●
phext-sso (identity substrate)●
ntp (time sync)●●●
ssh-keygen (key minting)●●●
Alpine Linux containers●
Podman integration●

Full source for every embedded item ships in all editions (§2) — the editions divide capability, never auditability.

The container rows — Alpine Linux containers, Podman integration — are components ruled in on 2026-11-17 (§9); their placement (Full) is part of the table Will ratified on 2026-11-17.

Rows added on 2026-11-17 per Will's same-day rulings, placed by the table's principles: wget + curl in every edition (the fetch pair — wpm's resolver and the phone-home path need them); elinks in Lite and Full, with the working comforts; phext-ircd and the chat client in Full, with the rest of the house stack (§9).

9. The phext stack and the house

The Full edition carries the phext stack whole, plus the house's own pieces:

Second wave (ruled 2026-11-17):

Containers (ruled 2026-11-17):

Containers are a packaging of the two halves, not a third half (§3): image contents are phcc's libraries and phccbox's commands; Podman is the runtime they are packaged for, and Alpine the ground they stand on.

Chat (ruled 2026-11-17):

Service architectures (ruled): the kit's services — sq, phext-lattice, phext-wiki, phext-ircd, a wpm node — ship service definitions for init.d, systemd, and the other major OS service architectures, so a landed service starts and stays up in the platform's native terms (answers Gap 8 by ruling as an integration requirement; implementation open).

10. Open items

  1. Release version name — phcc milestone 10 (release packaging) waits on a release version name from Will. The kit cannot ship unnamed.
  2. Major-library enumeration — the exact set behind "every major C library" (K-2) is fixed at packaging; the benchmark matrix is the seed.
  3. Edition composition — RESOLVED 2026-11-17: Will ratified §8 as drafted.
  4. TLS library choice — K-5 requires TLS bootstrap; the specific library is not yet named in the rulings.
  5. iOS/Android form — §7 constraints are drafted, awaiting ratification; self-hosting on mobile is a target to prove.
  6. phext-wiki design — ruled in; its design is its own task (39.5.7/7.5.9/5.5.9).

11. Gaps and open questions

Named, not resolved. Each item below is an open obligation on the programme; nothing here is settled by this spec.

  1. wpm trust bootstrap. The crypto guarantee (§6) needs a root of trust: publisher key distribution and discovery, and key/package revocation, in a centerless network — unspecified.
  2. wpm discovery. Search and index across distributed nodes is unspecified: how a kit finds who publishes what.
  3. wpm versioning and solver semantics. Version numbering and dependency-solver behaviour are unspecified.
  4. Pre-built dynamics: provenance vs equivalence. Unless a reproducible-build requirement is adopted, a publisher signature attests provenance only — not that the binary is equivalent to the shipped source. Which guarantee the kit claims is undecided.
  5. One identity substrate. phext-ssh, phext-mail, phext-wiki accounts, and wpm publishers each imply keys; a single shared identity/key substrate across all four is desirable and currently unspecified — on paper they are four silos. Answered by ruling (2026-11-17): phext-sso is that substrate (§9). Implementation still open.
  6. Time. TLS and signature validation need a trustworthy clock. No time-sync component is named in the kit. Answered by ruling (2026-11-17): ntp is a kit component (§9). Implementation still open.
  7. Entropy. Key generation on bare machines needs a CSPRNG story in the embedded stdlib; unnamed so far. (Key minting is covered: ssh-keygen is a kit component, §9. The entropy source beneath it remains this gap.)
  8. Service supervision. How sq, phext-lattice, phext-wiki, and a wpm node start and stay up — init/supervisor unnamed. Answered by ruling (2026-11-17): kit services ship definitions for init.d, systemd, and the other major OS service architectures (§9). Implementation still open.
  9. License register. The full-source rule (§2) satisfies most bundling obligations, but a license register for the bundled libraries does not exist yet.
  10. Kit self-update. The update path is unstated. Candidate (proposal, not ruled): the kit ships as a wpm package and updates itself through wpm.
  11. Named, not specced. emise-say, emissary, and willbot are ruled in by name (§9); none has a spec yet.
  12. The shell. A shell is assumed under phccbox's "POSIX utilities" (§5), not confirmed as a named component.

12. Acceptance tests (the kit is done when these pass)

The verification obligation is a matrix: 5 platform builds × 3 editions = 15 cells, and the Land/Build/Rebuild tests run per cell.


Spec v1, 2026-11-17. Rulings: Will Bickford. Drafting: Emise. Home: phext.io/kit.html · Register: phcc deficiency programme, task 19.5.9/7.5.8/6.5.7.