myceta Uniform Resource Identifier (URI) Scheme
This document specifies the myceta Uniform Resource Identifier (URI) scheme in accordance with
RFC 3986 and RFC 7595 (BCP 35).
The myceta scheme identifies content-addressed computational closures, typed semantic declarations, verifiable claims,
and cryptographically signed publication channels exchanged across independently governed Myceta runtimes, compiler toolchains (myc),
Computational Office workspaces, and client-side verifiers (myceta-verify).
Every valid myceta URI is a strict syntactic subset of the generic URI grammar in RFC 3986 Section 3, ensuring deterministic,
round-trip-preserving parsing across standard RFC 3986 and WHATWG URL implementations without custom port or userinfo ambiguities.
Core rules (ALPHA, DIGIT, HEXDIG) are imported from RFC 5234, and pchar,
query, and fragment are imported from RFC 3986:
myceta-URI = "myceta://" myceta-target [ "?" query ] [ "#" fragment ]
myceta-target = content-target / key-target / domain-target
; 1. Immutable content-addressed closure (single-label hash-algorithm authority)
content-target = hash-alg "/" hex-digest [ "/" symbol-path ]
hash-alg = "sha256" / "sha384" / "blake3"
hex-digest = 64HEXDIG *32HEXDIG ; lowercase hex (64 chars for sha256/blake3; 96 for sha384)
; 2. Self-certifying cryptographic principal channel ("key" authority)
key-target = "key/" multibase-key "/" resource-path [ "@" channel-tag ]
multibase-key = 1*( ALPHA / DIGIT / "-" / "_" )
; 3. Domain-verified principal channel (FQDN authority containing at least one ".")
domain-target = fqdn-authority "/" resource-path [ "@" channel-tag ]
fqdn-authority = label 1*( "." label )
label = ( ALPHA / DIGIT ) *( ALPHA / DIGIT / "-" )
symbol-path = segment-nz *( "/" segment-nz )
resource-path = segment-nz *( "/" segment-nz )
channel-tag = "working" / "latest" / "stable" / "certified" / rev-pin
rev-pin = "rev-" 16*64HEXDIG
segment-nz = 1*pchar
myceta://sha256/9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08/BeamSummary myceta://acme-steel.com/structural/barrier-quote@certified myceta://key/z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK/packs/rigidity@stable
myceta), hash-alg, hex-digest, and fqdn-authority MUST be normalized to lowercase ASCII prior to comparison.symbol-path, resource-path, and multibase-key are case-sensitive UTF-8 paths percent-encoded per RFC 3986 Section 2.1 when containing characters outside unreserved/sub-delim sets. Internationalized Resource Identifiers (IRIs) map to myceta URIs per RFC 3987 (IDNA A-labels for fqdn-authority and UTF-8 percent-encoding for path segments).content-target Resolution: Identifies an immutable, content-addressed Myceta semantic closure or value blob verified locally against hex-digest. A mismatch MUST fail closed.key-target and domain-target Resolution: Resolves a cryptographically signed channel pointer mapping (principal, resource-path, channel-tag) to an immutable content digest and monotone sequence number. For domain-target, principal public keys are discovered via https://<fqdn-authority>/.well-known/myceta-principal.json over TLS and pinned under recipient trust policy.myceta handler installed, any myceta://<target> maps deterministically to an HTTPS gateway such as https://myceta.app/<target>, where client-side WebAssembly verification (myceta-verify) checks signatures, digests, and certificates independently of the gateway transport.myceta URI MUST NEVER execute unverified code, mutate active workspace state, or grant ambient host capabilities (filesystem, network, credentials, or external effects). All fetched payloads enter an isolated local quarantine store until cryptographic signatures, content digests, schema contracts, and explicit local recipient policy checks succeed.myc open --quarantine "%1") MUST pass the URI as a single literal argument without shell interpolation, reject leading-dash option injection, and validate strict conformance to Section 2 ABNF before parsing further.userinfo credentials in the authority component and carries no local host filesystem paths. Selective disclosure payloads referenced by myceta envelopes MUST use domain-separated salted commitments (H(domain_tag || salt_256 || canonical_bytes)) rather than unsalted hashes of low-entropy values.Scheme name: myceta Status: Provisional Applications/protocols that use this scheme name: Myceta unified compiler and CLI toolchain (myc), Myceta Computational Office (myceta.app), and Myceta cryptographic verification clients (myceta-verify). Contact: Myceta Labs <standards@mycetalabs.com> (https://myceta.dev) Change controller: Myceta Labs <standards@mycetalabs.com> References: https://myceta.dev/specs/uri-scheme