<kb-pool name="kos-trust" version="1" title="Trust root and lineage: the signing model" lang="en" address="mr://kos/trust/" kind="pack">
<schema name="kb-block" strict-children="true">
<require attr="key"/>
<require attr="kind"/>
<require attr="stamp"/>
<child tag="title" min="1" max="1"/>
<child tag="dried" min="1" max="1"/>
<allow tag="body"/>
<allow tag="quote"/>
<allow tag="proof"/>
<allow tag="source"/>
<allow tag="link"/>
<allow tag="tag"/>
<allow tag="rel"/>
<allow tag="score"/>
<allow tag="comment"/>
</schema>
<spine title="Trust root and lineage: the signing model">
<part id="decision" title="The decision">
<dried>Most secure yet usable.</dried>
<ref key="tr-decision"/>
<ref key="tr-algorithm"/>
<ref key="tr-fingerprints"/>
<ref key="tr-existing-identities"/>
</part>
<part id="roles" title="Roles">
<dried>Root, publisher, build.</dried>
<ref key="tr-root"/>
<ref key="tr-publisher"/>
<ref key="tr-scope-bound-to-certificate"/>
<ref key="tr-build"/>
<ref key="tr-revocation"/>
</part>
<part id="lineage" title="Lineage: who, where, what">
<dried>Every pack answers three questions in its signed manifest.</dried>
<ref key="tr-who"/>
<ref key="tr-where"/>
<ref key="tr-what"/>
<ref key="tr-signed-form"/>
</part>
<part id="install" title="Installing">
<dried>What an installer checks and what it does.</dried>
<ref key="tr-install-policy"/>
<ref key="tr-install-records"/>
</part>
</spine>

<block key="tr-decision" kind="decision" stamp="VP" date="2026-10-02" id="sha256:033b4b8df5ab37d3323552f6c8f7efce31c11b6f6264169b7efa06b54d38d158">
<title>An offline root certifies scoped, expiring publisher keys</title>
<dried>One root key, generated and kept offline by the publisher, certifies publisher keys and signs revocation lists, nothing else. Publisher keys sign packs. Installers pin the root by its full SHA-256 fingerprint and accept a pack only through a valid, unrevoked certificate whose scope covers the pack.</dried>
<body><p>Against a flat allowlist: every new key would have to be redistributed to every installer, with no expiry and no revocation path.</p><p>Against re-keying: the substrate's existing signatures would lose their lineage.</p><p>The model is TUF's offline root with delegated, expiring keys (CCS 2010), reduced to two levels.</p></body>
<rel type="restates" to="pa-tuf-2010"/>
<rel type="restates" to="pa-x509-1988"/>
</block>

<block key="tr-algorithm" kind="decision" stamp="VP" id="sha256:539dd541cfcbdfcf4dac54a29a67190ab2a9c80a48d10100becac45c80ad17ae">
<title>ECDSA P-256 / SHA-256, the substrate's algorithm</title>
<dried>Chosen over Ed25519 for continuity with MR-CANVAS v0.8 and companion-region-signing, and because it signs in every current browser and in Node. Signatures are base64 IEEE P1363 (r‖s, 64 bytes); public keys are base64 SPKI.</dried>
<rel type="restates" to="pa-substrate-signing"/>
<rel type="restates" to="pa-ecdsa"/>
</block>

<block key="tr-fingerprints" kind="specification" stamp="VP" id="sha256:dac2654e97af7797c291d66a18406d5c05703dd702c4d9dc5b69237415fb40c8">
<title>Fingerprints</title>
<dried>fp = first 16 hex of SHA-256 over the base64 SPKI text, as the substrate computes it; fp256 = all 64 hex of the same digest. Signatures carry fp (substrate compatible); roots are pinned by fp256, because 64 bits is too short to pin trust on.</dried>
</block>

<block key="tr-existing-identities" kind="decision" stamp="VP" id="sha256:205ccf70eb09ac84a16319706ffb0f38a34e237cef743afc22a598b100ed90ac">
<title>The three substrate identities are certified, not retired</title>
<dried>3df27085…, d368c1c8… and 0753a69e… are certified as publisher keys by importing their mr-identity-public-v1 files into the keyring. Their past signatures keep verifying; their future packs chain to the root.</dried>
</block>

<block key="tr-root" kind="role" stamp="VP" id="sha256:df4bffc906da8b1efcfdf996c92370d70f39f022916079d6be4d04ce5c1b441f">
<title>Root</title>
<dried>Generated in the keyring page on the publisher's own device; the private key is exported only as a passphrase-encrypted backup (PBKDF2-HMAC-SHA256, 600,000 iterations; AES-256-GCM), kept offline in two places. Used to issue and revoke certificates. Its public key and fp256 are published (README, website) so installers can pin it.</dried>
</block>

<block key="tr-publisher" kind="role" stamp="VP" id="sha256:592ac1a0eab55666462abb13d4fceafa1a01b951b46a6e36a4042e031a013f98">
<title>Publisher</title>
<dried>The day-to-day signing key. Holds a certificate from the root: subject key, name, serial, not-before and not-after (one year by default), and a scope. Signs pack manifests.</dried>
</block>

<block key="tr-scope-bound-to-certificate" kind="rule" stamp="VP" id="sha256:873216c17a5178025aff4ba61f8c377de5a6819df03c29a65061e6c326758cd6">
<title>Scope is bound to the certificate</title>
<dried>A certificate names the pack kinds its key may sign (content, tools, features) and the highest effect a pack may declare (read-only &lt; writes-pool &lt; network &lt; external-write). An installer refuses a pack outside its signer's scope. Bishop's 2000 recommendation, implemented.</dried>
<rel type="restates" to="pa-bishop-2000"/>
</block>

<block key="tr-build" kind="role" stamp="VP" id="sha256:48e6b7d475b772c3b411ff1d565158a1638131607e5f7ce86cb8a1942179a7e6">
<title>Build attestation</title>
<dried>Whoever compiles a pack signs it with a single-use build key whose private half is discarded at once. The build signature proves the pack is unchanged since it was built; it confers no trust. Trust comes only from a certified publisher signature.</dried>
</block>

<block key="tr-revocation" kind="rule" stamp="VP" id="sha256:27accb253d5d80a20fa39c10d041cb0d8043f6dc1f758740e5cb20768ca97b66">
<title>Revocation</title>
<dried>A revocation list, signed by the root, carries a sequence number and the fp256 of every revoked key with a reason and date. Installers keep the highest-sequence list they have seen and refuse certificates for revoked keys.</dried>
</block>

<block key="tr-who" kind="specification" stamp="VP" id="sha256:aa180efdf7f2d1af3fc0f2f000d9d559412dcd2285bb088c629d5d5e7c016d71">
<title>Who are you?</title>
<dried>The pack's identity is its content root (and the hash of every block it lists). The manifest's &lt;who&gt; names the author, the publisher whose key signs it, and the builder (person, tool or model) that compiled it.</dried>
<rel type="restates" to="pa-intoto-2019"/>
</block>

<block key="tr-where" kind="specification" stamp="VP" id="sha256:73faeee40ffd74d401e438f4a18b8c256602364cbf7d93d0dca0398635ff6d86">
<title>Where did you come from?</title>
<dried>&lt;where&gt; lists what the pack was derived from (documents, sessions, earlier packs by root), the sources checked with dates and status, the parent pack root it supersedes, and the build tool with its own hash.</dried>
</block>

<block key="tr-what" kind="specification" stamp="VP" id="sha256:b1960ad63a28caba539223985e20c60229f64dd3aa09bd7fe824852bba83b2ab">
<title>What are you going to do?</title>
<dried>&lt;what&gt; declares the pack kind (content, tools, features), the effects it may have when installed, the install action (merge into a pool; register tool definitions), what it requires, and its purpose in a sentence.</dried>
</block>

<block key="tr-signed-form" kind="specification" stamp="VP" id="sha256:505638e1c718c1dc5c061c9315355be724e1f0f80daa631b11990eab7eb42ab6">
<title>What a signature covers</title>
<dried>The UTF-8 bytes of the C14N-MR canonical form of &lt;manifest&gt;, excluding its &lt;signature&gt; and &lt;certificate&gt; children. The manifest lists every block's key and hash and the content root, so one signature covers every block. Several signatures may sit on one manifest (build, publisher, counter-signatures), as in the substrate.</dried>
</block>

<block key="tr-install-policy" kind="rule" stamp="VP" id="sha256:2d842fad0287e6b428cbe3760fa6b3d90e3544896a075bf248a9814d140acd85">
<title>Install policy</title>
<dried>BROKEN (a block hash, the content root or any signature fails): refused. INTACT (hashes and build signature hold, no trusted publisher): content may be installed only after the person confirms, and is recorded as untrusted; tools and features refused. TRUSTED (publisher signature chains to a pinned root, certificate valid, unrevoked, in scope): installed, recorded in the ledger with the signer and certificate serial.</dried>
</block>

<block key="tr-install-records" kind="rule" stamp="VP" id="sha256:3563833e4639fa4cf17d0307730747e1a416e78eb59ec2b84639dcd59c5645cb">
<title>An install is recorded</title>
<dried>The ledger entry carries the pack name and version, its content root, the trust result, the publisher fp256, the certificate serial and the lineage summary, so the question “where did this block come from?” is answered from the ledger.</dried>
</block>

<manifest pack="kos-trust" title="Trust root and lineage: the signing model" version="1.0.0" format="kos-pack-1" created="2026-10-02T12:00:00Z" root="sha256:e5633e181e586f5ccd51a1c4dfb4d6961c4ccb133ad075422c9cb4ac02e61868" blocks="15">
<who>
<identity root="sha256:e5633e181e586f5ccd51a1c4dfb4d6961c4ccb133ad075422c9cb4ac02e61868"/>
<author name="Rob Anderson" org="Memeroot Ltd" role="commissioning author and publisher"/>
<builder name="Claude" org="Anthropic" model="claude-opus-5-5" role="collated, checked and compiled under the author’s instruction"/>
</who>
<where>
<derived-from kind="decision" date="2026-10-02">Decision D1 taken under the publisher's instruction of 2 October 2026 (most secure yet usable)</derived-from>
<derived-from kind="source" date="2026-05/2026-06">Memeroot substrate signing: MR-CANVAS v0.8, companion-region-signing, identity-tour-author (mr-identity-public-v1)</derived-from>
<build tool="build_packs.py" sha256="sha256:6a8f4d9eb8f927aa16729fe8ab00ace73bd9f11981ccbb95070296dbeb52ece1" canonical="C14N-MR 1.0"/>
</where>
<what kind="content" effects="read-only" install="merge">
<purpose>Decision D1 as built: who may sign what, how a pack states who it is, where it came from and what it will do, and how an installer decides.</purpose>
</what>
<list>
<item key="tr-decision" hash="sha256:033b4b8df5ab37d3323552f6c8f7efce31c11b6f6264169b7efa06b54d38d158"/>
<item key="tr-algorithm" hash="sha256:539dd541cfcbdfcf4dac54a29a67190ab2a9c80a48d10100becac45c80ad17ae"/>
<item key="tr-fingerprints" hash="sha256:dac2654e97af7797c291d66a18406d5c05703dd702c4d9dc5b69237415fb40c8"/>
<item key="tr-existing-identities" hash="sha256:205ccf70eb09ac84a16319706ffb0f38a34e237cef743afc22a598b100ed90ac"/>
<item key="tr-root" hash="sha256:df4bffc906da8b1efcfdf996c92370d70f39f022916079d6be4d04ce5c1b441f"/>
<item key="tr-publisher" hash="sha256:592ac1a0eab55666462abb13d4fceafa1a01b951b46a6e36a4042e031a013f98"/>
<item key="tr-scope-bound-to-certificate" hash="sha256:873216c17a5178025aff4ba61f8c377de5a6819df03c29a65061e6c326758cd6"/>
<item key="tr-build" hash="sha256:48e6b7d475b772c3b411ff1d565158a1638131607e5f7ce86cb8a1942179a7e6"/>
<item key="tr-revocation" hash="sha256:27accb253d5d80a20fa39c10d041cb0d8043f6dc1f758740e5cb20768ca97b66"/>
<item key="tr-who" hash="sha256:aa180efdf7f2d1af3fc0f2f000d9d559412dcd2285bb088c629d5d5e7c016d71"/>
<item key="tr-where" hash="sha256:73faeee40ffd74d401e438f4a18b8c256602364cbf7d93d0dca0398635ff6d86"/>
<item key="tr-what" hash="sha256:b1960ad63a28caba539223985e20c60229f64dd3aa09bd7fe824852bba83b2ab"/>
<item key="tr-signed-form" hash="sha256:505638e1c718c1dc5c061c9315355be724e1f0f80daa631b11990eab7eb42ab6"/>
<item key="tr-install-policy" hash="sha256:2d842fad0287e6b428cbe3760fa6b3d90e3544896a075bf248a9814d140acd85"/>
<item key="tr-install-records" hash="sha256:3563833e4639fa4cf17d0307730747e1a416e78eb59ec2b84639dcd59c5645cb"/>
</list>
<signature role="build" author="9c62d74bb9c723d8" fp256="9c62d74bb9c723d8e8c41bf753273a2698d4cd53e471049a20e1f214fa608c32" name="build" pubkey="MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEq9IH6N4o0cEwRO8G+Y0TE+Ljgo1mMHkp3KfZ4tnOHI9LPzTiKVBpBf/ji/mKst+S2Qp3Ayoxu6uxuhv4bCLB9w==" value="KWeuzjqw4ZQssREoOuz1j0X8Lcv9dQfef4WL6DImwu+RWeIUsXec4X0PcualhlWDvkH4l0O7Y+kI+WZY8sl2ww==" algo="ECDSA-P256-SHA256" timestamp="2026-10-02T12:30:10.335Z"/></manifest>
</kb-pool>