0207. Harness hosting policy and bootstrap tooling boundary
- Status: Accepted (maintainer, 2026-11-17)
- Date: 2026-11-08
- Plan: H1–H10, VR7, R1–R8
- Review: Making Tenon plugin-first
Context
ADR-0004 puts mechanisms in the kernel and policies in plugins; ADR-0005 makes platforms supply effects. ADR-0168 already locates durable VC queue mechanisms in Rust because needed filesystem operations are absent from the app surface. PR #196 (merged as 07974fab) supplies HTTP in Harness and Process.run_input. No new platform effects or edits to cli/agent plugins are authorized by these tracks without a later, explicit owner decision.
Decision
Accepted (maintainer, 2026-11-17): a full VC rewrite in Harness. The previously recommended target — reuse the Rust VC and package loader through a small typed host-store process bridge — is rejected as the destination architecture.
Hosting router, admission policy, auth decisions, quotas, presentation and HTTP adapters remain Harness app/library code. They use explicit platform-provided Fs/Net/Process/Env handles.
The Harness VC rewrite ports the existing Rust VC
(crates/harness/src/vc/* and the F1
host_store read surface) so that local and remote
operations share one Harness implementation. Object hashes and the
on-disk format stay byte-identical; FMT_VERSION stays
1. The Rust VC may remain as a reference or transitional fallback
only while parity is proven. The performance budget is no
regressions against the Rust implementation on the existing VC
tests and benchmarks.
The F1 harness host-store process is not the
long-term write or remote path. It may be kept only while a
Harness store reaches hash and format parity, and then retired
from the Forge/remote critical path.
Deterministic source/lock validation and version constraint mechanics stay in the existing Rust package tooling unless a later decision moves them; no registry policy enters parser/type semantics. Namespace/trust/curation/limit policy is signed operator data and Harness hosting code. File publication uses the same data-driven admission checks through tooling; any boundary factorization must preserve one policy contract and shared fixtures. This is not a new frozen tooling-hook extension.
A bundled version-matched Harness HTTP helper uses the existing http.client; no duplicated curl config or Rust HTTP stack is introduced for remotes. Compile or package once, not per network request. R3a/R3b supply from-scratch Ed25519/ SHA-512 and direct OS entropy as proposed in 0200, with human security review before publishing.
Production gates/probes use a bounded isolated GateExecutor. Queue owner retains store authority; untrusted candidate children get only scratch/toolchain access, no network/keys/store, and owned-group kill/reap. Cache identity includes executor profile. Reuse existing launcher/supervision mechanisms where their contract fits; env_clear alone is insufficient. Missing enforcement blocks public deployment.
Language or runtime gaps that would require editing M14-frozen
files (interp*, plugins/cli) need the
maintainer's explicit OK before those files change. The revised
remote plan records the porting order, parity proofs,
blockers and PR-sized steps up to F2 push/clone over loopback.
Alternatives considered
- Reuse the Rust VC through a typed host-store process bridge — this was the recommended default. It reuses mature parsers, queue recovery and filesystem mechanisms with a small trusted surface, and F1 already shipped a read-only host-store for the local Forge. It was rejected as the target because remotes and hosting policy would stay coupled to a Rust process boundary instead of a Harness VC implementation.
- Rust web server and duplicated client — quickest integration, but violates the requested Harness hosting implementation and HTTP plugin reuse.
- New platform filesystem/native surface first — possible later, but expands cross-backend compiler/runtime scope instead of using existing trusted tooling. Platform or M14-frozen changes remain out of scope unless Maintainer approves a specific gap.
- Expose shell/raw-store operations — small bridge but unsafe authority model; closed typed operations and pinned roots are necessary mechanisms.
Consequences
Hosting plan and remotes are revised
around the Harness VC rewrite. They share transport and object
mechanisms, not a generic cross-protocol framework.
Registry still shares those object mechanisms where
it already does. Hosting plan still makes isolation a
release blocker. Maintainer accepted the full VC rewrite in
Harness on 2026-11-17. Refined by ADR-0265:
FFI natives, lexer/parser/formatter port, Rust VC deletion after
fixture freeze and cutover (deletion PR needs the maintainer's
explicit yes), and the 1.05×/1.10× budget.