Files
skills/public/hip-1198.html
zeekayandHanzo Dev 9e10c1c10e Each llms index points at the other two
hanzoskills.com/llms.txt now opens with the install line, the API
reference index and the company index, so an agent that lands on any
one of the three can find the rest.

robots.txt claimed 537 documents while llms.txt counts 920. The number
is gone from robots.txt; llms.txt derives it.

public/ is regenerated from scripts/site.py, which it had fallen
behind: the copy-prompt menu and agent bar were in the generator and
not in the committed pages. tests/site.mjs passes against the result.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-11 00:27:59 -07:00

293 lines
31 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="en"><head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>hip-1198</title>
<meta name="color-scheme" content="dark">
<style>
/* Committed to one visual world: a dark instrument panel. No light variant —
the dot field and the hairline rules only read on black, and a naive
inversion would wash both out. Every colour is painted explicitly so the page
never borrows a host background. */
@font-face{font-family:'Zen';src:url('/fonts/Zen-Variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Zen';src:url('/fonts/Zen-Italic-Variable.woff2') format('woff2');font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:'Zen Mono';src:url('/fonts/ZenMono-Variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Zen Mono';src:url('/fonts/ZenMono-Italic-Variable.woff2') format('woff2');font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:'Zen Pixel Square';src:url('/fonts/ZenPixel-Square.woff2') format('woff2');font-style:normal;font-display:swap}
:root{
--ink:#f4f4f2; --soft:#9c9c98; --faint:#6a6a66; --ground:#000; --panel:#0a0a0a;
--line:#232323; --line-hi:#3a3a3a; --accent:#f4f4f2;
--font-zen-sans:'Zen',-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
--font-zen-mono:'Zen Mono',ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;
--font-zen-pixel-square:'Zen Pixel Square',monospace;
--mono:var(--font-zen-mono);
--sans:var(--font-zen-sans);
/* Controls are pills and surfaces are soft, as on hanzo.ai. */
--r:999px; --r-soft:14px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--sans);
font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
.wrap{max-width:60rem;margin:0 auto;padding:0 1.75rem}
/* The dot field. A halftone made of one repeating radial-gradient, faded out
along the diagonal by a mask so it reads as a wave rather than wallpaper. */
/* No overflow clip here: the dot field is inset to the box already, and a clip
would cut off the copy-prompt menu. */
.hero{position:relative;border-bottom:1px solid var(--line)}
.hero::before{content:"";position:absolute;inset:0;
background-image:radial-gradient(var(--line-hi) 1px, transparent 1px);
background-size:7px 7px;
-webkit-mask-image:linear-gradient(115deg,#000 0%,rgba(0,0,0,.55) 38%,transparent 72%);
mask-image:linear-gradient(115deg,#000 0%,rgba(0,0,0,.55) 38%,transparent 72%);
pointer-events:none}
.hero .wrap{position:relative;padding-top:5.5rem;padding-bottom:4rem}
nav{border-bottom:1px solid var(--line)}
nav .in{max-width:60rem;margin:0 auto;padding:1.1rem 1.75rem;display:flex;
justify-content:space-between;align-items:center;gap:1rem}
.brand{font-family:var(--mono);font-size:.85rem;letter-spacing:.14em;
text-transform:uppercase;color:var(--ink);text-decoration:none;
display:inline-flex;align-items:center;gap:.6rem}
.brand i{font-style:normal;color:var(--faint)}
.mark{width:1.15em;height:1.15em;display:block;flex:0 0 auto}
nav a.up{font-family:var(--mono);font-size:.72rem;letter-spacing:.14em;
text-transform:uppercase;color:var(--soft);text-decoration:none}
nav a.up:hover{color:var(--ink)}
h1{font-family:var(--mono);font-size:clamp(2rem,5.4vw,3.4rem);line-height:1.12;
letter-spacing:-.02em;margin:0 0 1.1rem;font-weight:500;text-wrap:balance}
h1 em{font-style:normal;color:var(--faint)}
.lede{color:var(--soft);font-size:1.05rem;max-width:52ch;margin:0 0 2.25rem}
.btns{display:flex;flex-wrap:wrap;gap:.7rem;margin:0 0 .5rem;align-items:center}
.btn{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--mono);
font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
padding:.8rem 1.4rem;border:1px solid var(--line-hi);border-radius:var(--r);
color:var(--ink);text-decoration:none;background:transparent;cursor:pointer;
line-height:1.2;font-weight:400}
.btn:hover{background:#141414;text-decoration:none;border-color:var(--soft)}
.btn.solid{background:var(--ink);color:#000;border-color:var(--ink)}
.btn.solid:hover{background:#d8d8d4}
.btn .chev{width:.7em;height:.7em;flex:0 0 auto;transition:transform .15s ease}
.btn[aria-expanded="true"] .chev{transform:rotate(180deg)}
/* Copy-prompt selector. Each row copies the prompt for its own target. */
.copy{position:relative;display:inline-flex}
.menu{position:absolute;top:calc(100% + .5rem);left:0;z-index:20;min-width:21rem;
background:var(--panel);border:1px solid var(--line-hi);border-radius:var(--r-soft);
padding:.4rem;display:flex;flex-direction:column;
box-shadow:0 12px 32px rgba(0,0,0,.75)}
.menu[hidden]{display:none}
.mi{display:flex;align-items:center;gap:.7rem;width:100%;text-align:left;
padding:.62rem .8rem;border:0;border-radius:calc(var(--r-soft) - .35rem);
background:transparent;color:var(--ink);font-family:var(--mono);font-size:.76rem;
letter-spacing:.04em;text-decoration:none;cursor:pointer;line-height:1.3;
white-space:nowrap}
.mi:hover,.mi:focus-visible{background:#181818;outline:none}
.mi .mark{width:1.05rem;height:1.05rem;color:var(--soft)}
.mi:hover .mark{color:var(--ink)}
.mi u{margin-left:auto;color:var(--faint);text-decoration:none;font-size:.68rem;
letter-spacing:.1em;text-transform:uppercase}
/* Works-with bar: one scrolling row, name and mark per agent. */
.strip{border-bottom:1px solid var(--line);background:var(--panel)}
.strip .in{max-width:60rem;margin:0 auto;padding:.9rem 1.75rem;display:flex;
align-items:center;gap:1.25rem;font-family:var(--mono);font-size:.72rem;
letter-spacing:.1em;text-transform:uppercase;color:var(--faint)}
.strip b{color:var(--soft);font-weight:400;flex:0 0 auto;
border-right:1px solid var(--line);padding-right:1.25rem;align-self:stretch;
display:flex;align-items:center}
.bar{display:flex;align-items:center;gap:.5rem;flex:1 1 auto;min-width:0;
overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;
-webkit-overflow-scrolling:touch;
-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 3rem),transparent);
mask-image:linear-gradient(90deg,#000 calc(100% - 3rem),transparent)}
.bar::-webkit-scrollbar{display:none}
.agent{display:inline-flex;align-items:center;gap:.45rem;flex:0 0 auto;
padding:.4rem .85rem;border:1px solid var(--line);border-radius:var(--r);
color:var(--soft);white-space:nowrap;scroll-snap-align:start;
text-decoration:none;background:var(--ground)}
.agent:hover{color:var(--ink);border-color:var(--line-hi);text-decoration:none}
.agent .mark{width:.95rem;height:.95rem}
h2{font-family:var(--mono);font-size:1.1rem;letter-spacing:-.01em;margin:2.75rem 0 .75rem;font-weight:500}
h3{font-size:1rem;margin:2rem 0 .5rem;font-weight:600}
h4,h5,h6{font-size:.94rem;margin:1.5rem 0 .5rem;font-weight:600}
p{margin:0 0 1rem;max-width:70ch}
ul,ol{margin:0 0 1rem;padding-left:1.35rem;max-width:70ch}
li{margin:.22rem 0}
a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;
text-decoration-color:var(--line-hi)}
a:hover{text-decoration-color:var(--ink)}
a:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
code{font-family:var(--mono);font-size:.85em;background:var(--panel);
border:1px solid var(--line);border-radius:5px;padding:.1em .36em}
pre{background:var(--panel);border:1px solid var(--line);padding:1rem 1.1rem;
border-radius:var(--r-soft);overflow-x:auto;margin:0 0 1.25rem}
pre code{background:none;border:0;padding:0;font-size:.82rem;line-height:1.7}
blockquote{margin:0 0 1rem;padding-left:1rem;border-left:1px solid var(--line-hi);color:var(--soft)}
hr{border:0;border-top:1px solid var(--line);margin:2.5rem 0}
table{border-collapse:collapse;width:100%;margin:0 0 1.25rem;font-size:.92rem;
display:block;overflow-x:auto}
th,td{border:1px solid var(--line);padding:.5rem .7rem;text-align:left}
.curl{display:block;background:var(--panel);border:1px solid var(--line);
border-radius:var(--r-soft);padding:.95rem 1.1rem;font-family:var(--mono);
font-size:.8rem;color:var(--soft);overflow-x:auto;margin:0 0 2.5rem;
white-space:pre;line-height:1.9}
.curl b{color:var(--ink);font-weight:400}
.curl i{font-style:normal;color:var(--faint)}
/* index */
#q{width:100%;padding:.85rem 1.2rem;font-family:var(--mono);font-size:.85rem;color:var(--ink);
background:var(--panel);border:1px solid var(--line);border-radius:var(--r);margin:0 0 .6rem}
#q::placeholder{color:var(--faint);text-transform:uppercase;letter-spacing:.1em;font-size:.72rem}
#q:focus{outline:none;border-color:var(--soft)}
#count{color:var(--faint);font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;
text-transform:uppercase;margin:0 0 2rem}
.cat{margin:2.5rem 0 .5rem;font-family:var(--mono);font-size:.7rem;letter-spacing:.16em;
text-transform:uppercase;color:var(--faint);border-bottom:1px solid var(--line);
padding-bottom:.45rem}
.row{display:block;padding:.6rem .9rem;margin:0 -.9rem;border-bottom:1px solid var(--line);
border-radius:var(--r-soft);text-decoration:none}
.row:hover{background:#0a0a0a}
.nm{font-family:var(--mono);font-size:.84rem;color:var(--ink);display:block}
.ds{color:var(--soft);font-size:.9rem;display:block;margin-top:.12rem}
footer{margin-top:4rem;padding:2rem 0 4rem;border-top:1px solid var(--line);
color:var(--faint);font-size:.85rem}
footer a{color:var(--soft)}
.fmap{display:grid;gap:1.75rem;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));
margin:0 0 2rem;font-size:.85rem}
.fmap b{display:block;font-family:var(--mono);font-size:.68rem;letter-spacing:.16em;
text-transform:uppercase;color:var(--faint);font-weight:400;margin:0 0 .6rem;
border-bottom:1px solid var(--line);padding-bottom:.4rem}
.fmap a{display:inline-block;color:var(--ink);text-decoration:none;margin:.3rem .35rem 0 0}
.fmap a:hover{text-decoration:underline}
.fmap div{color:var(--faint);line-height:1.5}
.fend{border-top:1px solid var(--line);padding-top:1.25rem;font-size:.82rem}
@media (max-width:640px){
.hero .wrap{padding-top:3.25rem;padding-bottom:2.75rem}
.btns{gap:.5rem}
.btn{padding:.75rem 1.15rem;font-size:.68rem}
.copy,.copy .btn{width:100%;justify-content:center}
.menu{left:0;right:0;min-width:0}
.strip .in{flex-direction:column;align-items:flex-start;gap:.6rem;padding:.9rem 1.75rem}
.strip b{border-right:0;padding-right:0}
.bar{width:100%}
}
</style>
<link rel="alternate" type="text/markdown" href="/hip-1198.md">
<link rel="icon" href="/favicon.svg">
<link rel="canonical" href="https://hanzoskills.com/hip-1198">
</head>
<!-- Reading this with a machine? Every page here is also plain markdown.
This one: https://hanzoskills.com/hip-1198.md
Index: https://hanzoskills.com/llms.txt
Corpus: https://hanzoskills.com/all.md
Append .md to any path for the markdown twin. -->
<body>
<nav><div class="in">
<a class="brand" href="/"><svg class="mark" viewBox="0 0 67 67" fill="currentColor" aria-hidden="true"><path d="M22.21 67V44.6369H0V67H22.21Z"/><path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z"/><path d="M22.21 0H0V22.3184H22.21V0Z"/><path d="M66.7198 0H44.5098V22.3184H66.7198V0Z"/><path d="M66.7198 67V44.6369H44.5098V67H66.7198Z"/></svg> HANZO<i>SKILLS</i></a>
<a class="up" href="/">All skills</a>
</div></nav>
<div class="wrap">
<h1>hip-1198</h1><p class="lede">HIP-1198: Graph — The Assertion Plane. Status Final. Hanzo architectural specification.</p><h1>HIP-1198: Graph — The Assertion Plane</h1>
<h2>Abstract</h2>
<p><code>/v1/graph</code> is one organization&#x27;s entities and the relations between them, held as assertions: somebody, at some moment, from some evidence, asserted that this thing stands in that relation to that other thing. It is implemented in <code>hanzoai/cloud</code> at <code>apps/graph</code>.</p>
<p>Five operations answer today. They are served behind the flag named for the capability and are in no public document — the stage is <code>alpha</code> (<code>manifest/apps.go</code>), so no generated client, tool list, command group or public page carries them. What is proposed here is the boundary that keeps this plane and knowledge&#x27;s renderer from both owning nodes and edges (§1), the retention this capability does not yet have (§7), and the engine <code>github.com/hanzoai/graph</code>, which is forked and not linked into the served binary (§8).</p>
<h2>Motivation</h2>
<p><code>GET /v1/knowledge/graph</code> already returns nodes and edges, and it is public. A second capability that also stores nodes and edges is the expensive mistake available here: two shapes for one word, two stores a customer has to reconcile, and an edge that can disagree with itself depending on which address answered.</p>
<p>The two are not the same thing, and the difference is not size. Knowledge&#x27;s graph is a projection of documents the tenant already holds — a page&#x27;s parent field, a wikilink&#x27;s target, a source&#x27;s connector — computed at read and stored nowhere. What has no owner anywhere in the binary is the other kind of edge: the one somebody asserted. Who said so, when it became knowable, what disagreed with it, and what the answer was last Tuesday are four questions a projection cannot be asked, because the rows that would answer them were never written.</p>
<h2>Specification</h2>
<p>The key words MUST, MUST NOT, SHOULD, SHOULD NOT and MAY are to be interpreted as in RFC 2119.</p>
<h3>§1 The boundary against knowledge</h3>
<p>One test decides which side a responsibility falls on: <strong>is the edge already written in a record the tenant holds, or did somebody claim it?</strong></p>
<p>An edge that is a projection of a record its owner already holds MUST be computed at read by that owner, and MUST NOT be asserted here as a second copy. A page&#x27;s parent, a wikilink and a source&#x27;s connector are all written inside the document they belong to; storing them again makes a copy free to disagree with the document, and read-time resolution is what lets a rename or a deletion need no edge rewrite. That is knowledge&#x27;s half (HIP-1260), and <code>apps/knowledge/graph.go</code> computes it without a store of its own, degrading to an empty graph rather than a 5xx when the documents cannot be read.</p>
<p>An edge that is a claim cannot be computed from anything, because nothing else in the binary holds who claimed it. That is this capability&#x27;s half, with the three properties a claim carries and a projection does not: provenance, a time axis, and a conflict that stays visible.</p>
<p>The division that follows:</p>
<p>| responsibility | owner | why | |---|---|---| | documents, titles, slugs, wikilink resolution | <code>knowledge</code> | the record is the document; the edge is a field of it | | render shape — force-directed nodes, placeholders for unresolved links | <code>knowledge</code> | a view of a document set, recomputed each read | | who asserted, from what evidence, under which identity | <code>graph</code> | not derivable from any record | | when an assertion became knowable, and reads bounded to an instant | <code>graph</code> | a projection has one tense | | disagreement between two sources about one relation | <code>graph</code> | a projection cannot hold two answers | | identity resolution — <code>same</code> asserted and then settled | <code>graph</code> | a claim about two keys, not a field of either |</p>
<p><code>graph</code> MUST NOT store documents, resolve titles or slugs, or emit render coordinates. <code>knowledge</code> MUST NOT persist a node or edge table. Neither imports the other; nothing in <code>hanzoai/cloud</code> imports <code>apps/graph</code> except <code>plugin/graph/main.go</code>.</p>
<h3>§2 The model</h3>
<p>An entity exists because something was asserted about it. There is no node table, no create and no cascade delete — nothing to keep in step with anything. An <strong>edge</strong> is an assertion whose value names another entity; a <strong>property</strong> is an assertion whose value is a scalar. They are one thing, stored once, and <code>names</code> is the one bit that tells them apart, which is why a walk can read only the edges without guessing at the shape of a value.</p>
<p>A <strong>retraction is an assertion</strong>. There is no UPDATE statement in the package and no DELETE outside disposal.</p>
<p>That is the primitive because of what a reader can then do: see that something was retracted, rather than find that it is gone. The distinction is the whole product. An upsert-by-id graph answers &quot;X has no owner&quot; identically whether nobody ever said so, somebody said so and withdrew it, or two sources disagreed and the later write won — and it cannot be asked which afterwards, because the rows that would tell the difference were never written. Provenance is columns, point-in-time is the derived instant, and conflict is the shared order. None of them is a subsystem, and none of them can be added later to a store that overwrites.</p>
<p>What it costs, plainly:</p>
<ol><li><strong>A read is a resolution, not a lookup.</strong> Answering what is in force about one</li></ol>
<p> (entity, relation) means selecting every assertion for the pair, ordering it, and returning the winner with the losers beside it. There is no single row to point at, and there is no index that makes one.</p>
<ol><li><strong>The table only grows.</strong> Redelivering an identical assertion is free — it</li></ol>
<p> collides on its content address and is counted as a duplicate, not refused — but a correction is a row and a re-assert differing in any field is a row. §7 is the consequence.</p>
<ol><li><strong>There is no referential integrity</strong>, because entities are not rows. An edge</li></ol>
<p> may name a key nothing was ever asserted about, and a walk will reach it. That is not an error and it is not detectable at write time.</p>
<ol><li><strong>Erasure is not expressible as an assertion.</strong> A retraction withdraws a claim;</li></ol>
<p> it does not remove what was said. Removal is disposal, which sits outside the model with the litigation hold — and the hold is a fact about the record rather than about the world, which is why it is outside the content address.</p>
<h3>§3 The address</h3>
<p>Every route is under <code>/v1/graph</code> and every operation is typed; none is declared with prose. None of them is in the public document, by §7.</p>
<p>| operation | method and path | answers | |---|---|---| | <code>graphAssert</code> | <code>POST /v1/graph</code> | records a batch of assertions | | <code>graphRead</code> | <code>GET /v1/graph</code> | the assertions matching entity, relation, value and an instant | | <code>graphResolve</code> | <code>POST /v1/graph/resolve</code> | what is in force about one (entity, relation) at an instant, and what disagreed | | <code>graphNeighbors</code> | <code>POST /v1/graph/neighbors</code> | a bounded walk of the edges from a seed set | | <code>graphVocabulary</code> | <code>GET /v1/graph/vocabulary</code> | the relations in use and the terms of the order |</p>
<p>Three behaviours are part of the contract rather than of the implementation.</p>
<p><strong>A batch is judged member by member.</strong> <code>recorded + duplicate + refused</code> equals what was sent, and the refusals come back in the order sent, so a caller redelivering five assertions does not lose four to one malformed fifth.</p>
<p><strong>The walk&#x27;s bound is in the answer.</strong> A traversal is capped at 10,000 nodes and the response carries both the ceiling and whether it was reached. A caller is told the walk truncated rather than handed a short answer that looks complete. The bound is not politeness: the tenant&#x27;s store holds one connection, so an unbounded recursion blocks every other write for that organization for as long as it runs.</p>
<p><strong>The vocabulary is emergent.</strong> The relations a tenant has asserted are the only ontology there is; nothing declares one in advance and there is no schema store. The same response publishes the terms of the precedence order, because a reader who is told a winner without the rule cannot check it.</p>
<h3>§4 The store</h3>
<p>One SQLite table, <code>assertion</code>, per organization, opened through <code>cloud.OrgStore</code> under the name <code>graph</code>, so another organization&#x27;s assertions are not in the database being read and no predicate can be forgotten. Two indexes carry the two directions a walk reads: <code>(entity, relation)</code> outward and <code>(value, relation)</code> inward. The store&#x27;s own sequence is <code>AUTOINCREMENT</code> rather than a bare rowid, because a bare rowid is reused after the top row is deleted and would restart below a cursor that had already advanced.</p>
<p>A walk is a recursive query over the rows where <code>names</code> is set, bounded by <code>knowable &lt;= ?</code>. Point-in-time is therefore not a second code path: the same seeds at a past instant answer what the graph looked like then.</p>
<p>Bounds are asked once, at the endpoint, on every caller-sized value — 512 bytes of entity, 128 of relation, 2048 of value (512 when it names an entity) and 512 of evidence. With those asked, <code>count × max</code> is the byte bound of everything below, which a count over caller-sized values would not be.</p>
<p>The algebra is not in this package. The derived instant, the content address, the skew bound and the total order are <code>cloud/claim</code>, shared with the ground-truth plane (HIP-1261), so the binary holds one answer to &quot;somebody asserted something about a thing&quot; rather than two that drift. This capability contributes the vocabulary, the bounds and the store, which is all a caller of that algebra is meant to contribute.</p>
<p>The order&#x27;s adjudication weight is constant here, and that is a claim made deliberately: this plane ranks no source above another, so it asserts no weight and the order falls through to its remaining terms — later knowable, higher confidence, lower digest. It stays total and it stays reproducible.</p>
<h3>§5 Tenant</h3>
<p>The organization comes from the validated principal and from nothing else. No route carries an org field, and a request without a principal is refused with 403 before any store is opened. The per-org file makes a cross-tenant read unspellable rather than merely forbidden.</p>
<p>The filing identity — <code>owner</code>, or <code>owner/user</code> when the request carries one — is stamped server-side from the same principal and never taken from the body. It is part of the content address, so two identities asserting the identical thing are two rows, not one.</p>
<h3>§6 Money, events, observability</h3>
<p>The capability is <strong>free</strong>, in those words (<code>plugin/graph/main.go</code>, <code>Price: cloud.Free</code>). It meters nothing and no debit lands anywhere.</p>
<p>It publishes nothing on the bus. No <code>graph.*</code> event reaches a customer&#x27;s webhooks.</p>
<p>Beyond the request span every route already gets, it registers no metric and writes no per-request log line. The two structured lines it writes are at mount: one recording that the plane came up, one recording that the router exposed no op registry — which is a refusal to serve routes no projection would know about, not a warning.</p>
<h3>§7 Stage</h3>
<p><code>alpha</code>, declared in the manifest row, reached by the flag named <code>graph</code>.</p>
<p>Retention is what it is waiting on, and §2&#x27;s second cost is why. The record carries a litigation hold column, no operation moves it, and disposal has no address — so a tenant can put assertions in and cannot take a class of them out. A plane that only grows and cannot be swept is not a plane a customer should be let into for good. Promotion to <code>beta</code> requires an operation that expresses the tenant&#x27;s own disposal decision and a hold that outranks it; promotion to <code>ga</code> is HIP-0140 §4.</p>
<h3>§8 Upstream</h3>
<p>The served surface embeds no third-party engine: its store is SQLite through <code>cloud.OrgDB</code>, and <code>hanzoai/cloud</code> does not require <code>hanzoai/graph</code>.</p>
<p>The capability forks one project. <strong><code>github.com/hanzoai/graph</code></strong> derives from Dgraph (<code>github.com/dgraph-io/dgraph</code>, Apache-2.0), taken at <code>64804bd2</code>, with the upstream notice preserved.</p>
<p>What survives in HEAD: eighteen packages, 99 Go files outside tests and 44 test files, 38,815 and 13,791 lines respectively. The posting-list engine (<code>posting</code>, 6,588), the DQL parser (<code>dql</code>, 5,165), the tokenizer and index system (<code>tok</code>, 4,086), the type system (<code>types</code>, 2,860), the schema layer (<code>schema</code>, 1,902), the UID set algebra (<code>algo</code>, 1,242), the posting codec (<code>codec</code>, 684), the lexer (<code>lex</code>, 500) and the build stamp (<code>buildvars</code>, 450), over the shared key layout (<code>x</code>, 7,473) and the generated wire types (<code>protos</code>, 7,865, of which <code>pb.pb.go</code> is 7,850).</p>
<p>What does not survive: the cluster half and the server. There is no <code>worker</code>, <code>query</code>, <code>edgraph</code>, <code>graphql</code>, <code>raftwal</code>, <code>conn</code> or <code>ee</code> directory, and the two <code>package main</code> files in the tree are a codec benchmark and the build-stamp tool, so the fork builds no server. One consequence is worth stating rather than discovering: <code>dql</code> parses a query into an AST that nothing reads — no file outside the package imports it — so what the tree offers today is key-addressed access, index seeks and set algebra, not traversal, filters or response shaping. There is no timestamp allocator either; a host opens the store in managed mode and supplies its own commit timestamps.</p>
<p>Storage is <strong><code>github.com/luxfi/zapdb</code></strong> (Apache-2.0), a Badger fork, which <code>hanzoai/cloud</code> already requires at v1.10.6.</p>
<p>One measured fact sets the order of work between the fork and any use of it here. The generated descriptor names three message dependencies from Badger&#x27;s own protobuf package (<code>protos/pb/pb.pb.go:7119</code>, <code>:7122</code>, <code>:7123</code>) and binds that package to <code>github.com/luxfi/zapdb/pb</code> (<code>:19</code>), whose default build defines <code>KV</code> as a plain struct with no <code>ProtoReflect</code> method (<code>pb/types_zap.go</code>, <code>//go:build !grpc</code>). The file descriptor cannot resolve, and both paths marshal through it — the write at <code>posting/list.go:976</code>, the read at <code>posting/mvcc.go:634</code>. The three fields belong to Raft proposals and stream subscription, which the reduced tree does not use, so what the fields describe is already gone and the descriptor is what still names them.</p>
<h2>Rationale</h2>
<p>The alternative to assertions is a mutable node/edge store keyed by id. It is easier to write, faster to read, and it forecloses the four questions in §2 the moment the first upsert lands, because the losing row is not kept anywhere. A plane whose product is provenance cannot be built on a store that overwrites.</p>
<p>The alternative to a separate capability is putting the assertions in knowledge, beside the documents. That braids two shapes with opposite rules: knowledge&#x27;s graph must never be persisted, an assertion must never be recomputed, and one store cannot enforce both. Keeping them apart is what lets a placeholder for an unresolved wikilink stay a render artifact instead of becoming a row somebody has to reconcile.</p>
<p>A recursive query over one indexed table is the right store for reads that are one-entity resolutions and shallow bounded walks, which is what the five operations are. The fork exists for the reads that are not — deep traversal with filters and response shaping — and §8 says what stands between it and being linked.</p>
<h2>Security Considerations</h2>
<p>What an attacker gets from the wrong implementation, in the order the mistakes are easy to make.</p>
<p><strong>A tenant resolved from anything but the principal</strong> hands one organization&#x27;s whole assertion plane to another. The tenant is a file, not a predicate: the rows are not in the database being read, so there is no query to forget a clause in.</p>
<p><strong>A filing identity taken from the body</strong> turns a plane whose product is provenance into one that certifies whatever the caller typed. An attributable record whose attribution the caller chose is not attributable.</p>
<p><strong>An as-of read bounded by the filer&#x27;s own <code>seen</code></strong> is backdating: file today, claim it was knowable a year ago, and every horizon in the plane becomes decorative. The bound must be the derived instant — the later of the filer&#x27;s claim and the server clock at the write — because a guard whose only input is a caller-declared value is exactly as strong as the caller&#x27;s honesty.</p>
<p><strong>A missing skew bound</strong> lets one timestamp far ahead of the server clock sit in the store, never maturing and distorting every read until it does.</p>
<p><strong>An unbounded walk</strong> is a denial of service against the tenant rather than a slow request: one connection per file means the recursion holds every other write for that organization. Publishing the ceiling with the answer is what keeps a truncated walk visible instead of a short read that looks complete.</p>
<p><strong>An UPDATE or a DELETE</strong> resolves a contested relation into silence and makes a retraction indistinguishable from an erasure — the one distinction this capability exists to keep.</p>
<h2>References</h2>
<ul><li>HIP-0026 — Identity and Access Management</li><li>HIP-0106 — The Hanzo Plugin Contract</li><li>HIP-0139 — Capability</li><li>HIP-0140 — Proposing a Capability</li><li>HIP-1260 — Knowledge — Wiki and Agent Memory</li><li>HIP-1261 — Label — Ground Truth</li></ul>
<h2>Copyright</h2>
<p>Released under CC0 1.0 Universal Public Domain Dedication.</p>
<footer>
<div class="fmap">
<div><b>Build</b>
<a href="https://hanzo.app">hanzo.app</a> app builder
<a href="https://hanzo.codes">hanzo.codes</a> code with an agent
<a href="https://hanzoskills.com">hanzoskills.com</a> what an agent reads</div>
<div><b>Run</b>
<a href="https://console.hanzo.ai">console.hanzo.ai</a> cloud console
<a href="https://api.hanzo.ai">api.hanzo.ai</a> the API</div>
<div><b>Account</b>
<a href="https://hanzo.id">hanzo.id</a> sign in
<a href="https://pay.hanzo.ai">pay.hanzo.ai</a> top up
<a href="https://billing.hanzo.ai">billing.hanzo.ai</a> invoices and usage</div>
<div><b>Company</b>
<a href="https://hanzo.ai">hanzo.ai</a> canonical
<a href="https://hanzo.ventures">hanzo.ventures</a> ventures</div>
</div>
<div class="fend"><a href="/hip-1198.md">This page as plain text</a> · <a href="/llms.txt">Index for agents</a></div>
</footer>
</div></body></html>