mirror of
https://github.com/hanzoai/skills.git
synced 2026-11-19 00:47:36 +00:00
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]>
334 lines
34 KiB
HTML
334 lines
34 KiB
HTML
<!doctype html>
|
|
<html lang="en"><head>
|
|
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<title>hip-0139</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-0139.md">
|
|
|
|
<link rel="icon" href="/favicon.svg">
|
|
<link rel="canonical" href="https://hanzoskills.com/hip-0139">
|
|
</head>
|
|
<!-- Reading this with a machine? Every page here is also plain markdown.
|
|
This one: https://hanzoskills.com/hip-0139.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-0139</h1><p class="lede">HIP-139: Capability. Status Final. Hanzo architectural specification.</p><h1>HIP-0139: Capability</h1>
|
|
<h2>Abstract</h2>
|
|
<p>A capability is one thing the cloud does, and it has one name. That name is the Go package, the plugin binary, the address prefix, the tag in the served document, the class in every generated client, the tool an agent is shown, the command group in the CLI, the page on the documentation site, and the HIP that specifies it. Nine projections, one object; a reader who knows the name in any one of them knows it in all nine.</p>
|
|
<p>This HIP defines the object, the grammar of its name, the addresses it may answer at, and the gates — in <code>hanzoai/cloud</code>, <code>hanzoai/openapi</code> and this repository — that refuse a projection disagreeing with the others. Everything every other capability HIP takes for granted is stated here once.</p>
|
|
<h2>Motivation</h2>
|
|
<p>The cloud measured on 2026-08-20 (<code>python3</code> over <code>hanzoai/cloud</code> <code>openapi.yaml</code>, grouping operations by tag and by the <code>x-app</code> that serves them): 2,473 operations, 123 apps, 183 tags. The tag was the first path segment and the app was the binary, and the two were called orthogonal on purpose — "a tag is a path prefix, an app is a mount, and they are only sometimes one word" (<code>openapi/weave.go</code>).</p>
|
|
<p>Only sometimes is the defect. Twenty-seven apps answer at more than one top-level address: <code>visor</code> at <code>/v1/machines</code>, <code>/v1/gpus</code>, <code>/v1/clusters</code>, <code>/v1/fleet</code>, <code>/v1/k8s</code> and <code>/v1/compute</code>; <code>platform</code> at eight. Fifteen addresses are answered by more than one app: <code>/v1/billing</code> is forty-two operations of <code>commerce</code> and nine of <code>billing</code>; <code>/v1/s3</code>, <code>/v1/search</code> and <code>/v1/vector</code> are each split three ways. The taxonomy a reader is shown (<code>capabilities.yaml</code>) had to carry 191 names to group 183 tags, thirteen of which — <code>wecom-bot</code>, <code>install-patch</code>, <code>dev-bridge</code>, <code>query_multiple</code> — are routes one embedded router happens to register at the root, not things anyone would call a product.</p>
|
|
<p>The cost lands on every projection at once. A generated client offers <code>MachinesApi</code> and <code>GpusApi</code> for one subsystem and <code>BillingApi</code> for two. An agent is shown a tool named for a path and a second tool named for the same path's neighbour. A specification wave that wrote fifty HIPs against the 191 names wrote ten of them for addresses that are a single route of some other app.</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 object and its projections</h3>
|
|
<p>A capability is a Go package under <code>apps/</code> in <code>hanzoai/cloud</code> that returns a <code>*zip.App</code> (HIP-0106 §2). Its name is the package's directory name. One capability is the host's own: <code>openapi</code> — the document, its projections and the MCP endpoint are served by the host process (<code>cmd/cloud</code>), which mounts no subsystem, so it has no <code>apps/</code> package and no plugin; every other rule below applies to it unchanged. The following MUST all equal the name:</p>
|
|
<p>| projection | where | |---|---| | the plugin binary | <code>plugin/<name></code>, in bijection with the app (HIP-0106 §9) | | the address prefix | <code>/v1/<name></code> — every route the app serves, §3 | | the tag | <code>tags: [<name>]</code> on every operation the app serves, §4 | | the client class | <code><Name>Api</code> in every language <code>hanzoai/openapi</code> generates | | the tool | the subsystem tool <code>POST /v1/mcp</code> lists, its operations in the <code>op</code> enum | | the command group | <code>hanzo <name> …</code> | | the page | <code>docs.hanzo.ai/<name></code> | | the specification | the one HIP whose front matter reads <code>capability: <name></code> |</p>
|
|
<p>A projection is never written by hand. Each is a function of the served document or of the app's own registry, and a hand-written copy of any of them is the defect HIP-0106 §4.2 names.</p>
|
|
<h3>§2 The name</h3>
|
|
<ol><li>One word, lowercase ASCII, the noun people say for the thing. <code>book</code>, not</li></ol>
|
|
<p> <code>accounting-ledger</code>; <code>tel</code>, not <code>telephony-gateway</code>.</p>
|
|
<ol><li><strong>The canonical name is the SINGULAR, and the plural answers anyway.</strong></li></ol>
|
|
<p> A capability is named for the thing itself — <code>sandbox</code>, <code>agent</code>, <code>link</code>, <code>dataset</code> — and that singular is the one name every projection in §1 carries: the manifest row, the <code>/v1/<name></code> address, the tag, the tool, the CLI word, the docs page and the HATEOAS self-description.</p>
|
|
<p> The OTHER spelling of its number is accepted by the ROUTER and published by nothing. A request to <code>/v1/sandbox</code> is rewritten to <code>/v1/sandbox</code> before anything reads the path, so an OpenAI- or Anthropic-shaped client that says <code>/v1/models</code>, <code>/v1/agents</code> or <code>/v1/campaign</code> works unchanged while the canonical surface stays singular. The rewrite is bidirectional: whichever spelling the row carries, the other one resolves, so a caller never has to know which form we chose.</p>
|
|
<p> The alias is DERIVED, never listed per capability, and never published. Publishing both spellings would put two names on one thing — the exact duplication this rule exists to end — and would double every table the surface flows into: the index, the woven document, each generated SDK, the tool list. Accepting both costs one comparison at the endpoint. The courtesy is the router's; the document claims one address.</p>
|
|
<p> The derivation is naive English, stated in full so it can be checked rather than trusted: <code>-y</code> after a consonant takes <code>-ies</code>; a stem ending in <code>s</code>, <code>x</code>, <code>z</code>, <code>ch</code> or <code>sh</code> takes <code>-es</code>; everything else takes <code>-s</code>. Reading it backwards is the SAME rule run in reverse — a stem is accepted only if pluralising it spells the word again — so the two directions are inverse by construction and cannot drift into two tables that disagree. Two classes are named explicitly rather than guessed at, because English is genuinely ambiguous in both:</p>
|
|
<ul><li><strong>No number.</strong> <code>dns</code> is not the plural of <code>dn</code>; <code>s3</code>, <code>o11y</code> and <code>x402</code></li></ul>
|
|
<p> are not words; <code>ai</code>, <code>iam</code>, <code>amqp</code>, <code>sbom</code> and <code>seo</code> are initialisms under rule 5. Each would otherwise open a nonsense address that resolves to a real capability, which is worse than opening none.</p>
|
|
<ul><li><strong>Ambiguous stem.</strong> A stem ending in a sibilant plus a silent <code>-e</code></li></ul>
|
|
<p> spells the same plural as the stem without it — <code>base</code> + s and <code>bas</code> + es are both <code>bases</code>. Every word of that shape is named; no word of another shape is.</p>
|
|
<p> <strong>A capability is NEVER renamed for number.</strong> Not for taste, not for a contract reading, not in a sweep. The reason to rename has been removed rather than argued about: whichever spelling a row carries, the other one already answers. This clause is the point of the rule — it exists so that nobody ever does another plural sweep.</p>
|
|
<ol><li>No compound words. A hyphen or an underscore in a name is a refusal at</li></ol>
|
|
<p> the gate.</p>
|
|
<ol><li>No two capabilities whose names differ only in number. <code>bot</code> and <code>bot</code></li></ol>
|
|
<p> are one capability — under rule 2 the singular <code>bot</code> is its name, and the plural reaches it anyway. Two rows differing only in number is refused at the gate, because each would derive the other's address and the router would keep whichever the map built last.</p>
|
|
<ol><li>An abbreviation is a word only when it is the word people say: <code>ai</code>,</li></ol>
|
|
<p> <code>iam</code>, <code>kms</code>, <code>dns</code>, <code>crm</code>, <code>seo</code>, <code>mq</code>, <code>o11y</code>, <code>rpc</code>, <code>s3</code>, <code>kv</code>, <code>sql</code>, <code>sbom</code>, <code>lsp</code>, <code>x402</code>. A new one MUST be argued for in the capability's HIP.</p>
|
|
<h3>§3 The address</h3>
|
|
<ol><li>Every route a capability serves MUST be under <code>/v1/<name></code>. A second</li></ol>
|
|
<p> top-level address is a second capability or a misfiled route; it is never an alias.</p>
|
|
<ol><li>Three address families are fixed by a protocol the cloud implements, not</li></ol>
|
|
<p> by this HIP, and are exempt from rule 1 exactly as far as the protocol reaches:</p>
|
|
<ul><li><code>/.well-known/*</code> — RFC 8615 fixes the root. <code>iam</code> serves OIDC discovery</li></ul>
|
|
<p> and JWKS there; <code>skills</code> serves agent-skill discovery there.</p>
|
|
<ul><li>the OpenAI- and Anthropic-compatible wire — <code>/v1/chat/completions</code>,</li></ul>
|
|
<p> <code>/v1/completions</code>, <code>/v1/embeddings</code>, <code>/v1/messages</code>, <code>/v1/models</code>, <code>/v1/images/<em></code>, <code>/v1/audio/</em></code>, <code>/v1/videos/*</code>, <code>/v1/responses</code>, <code>/v1/rerank</code>. Every vendor SDK hard-codes these paths. They belong to <code>ai</code> and to no other capability.</p>
|
|
<ul><li><code>/v1/admin/<name>/*</code> — the operator's view of <code><name></code>, served by</li></ul>
|
|
<p> <code><name></code>. Its audience is the operator (HIP-0135), and the public projection drops it by address; the capability it belongs to is the second segment.</p>
|
|
<ul><li><code>/v1/openapi.json</code> and <code>/v1/mcp</code> — the document and the MCP endpoint.</li></ul>
|
|
<p> Every SDK generator, IDE and MCP client is pointed at these two spellings, so they are the wire the ecosystem hard-codes, and they belong to <code>openapi</code> — the host — and to no other capability.</p>
|
|
<ol><li>Nothing is served outside <code>/v1</code> except the families in rule 2 (HIP-0119 §2).</li><li>A path segment names a thing and the method says the verb (HIP-0128 §1).</li></ol>
|
|
<h3>§4 The document</h3>
|
|
<ol><li>The tag on an operation is the capability that serves it — the value the</li></ol>
|
|
<p> weave stamps as <code>x-app</code> — and nothing else. The first path segment is the address axis and is read by the public rule (<code>openapi/public.go</code>) and by the gate in §5; it is not the tag.</p>
|
|
<ol><li>An operation is public by the rule HIP-0135 and <code>openapi/public.go</code> state:</li></ol>
|
|
<p> under <code>/v1</code>, not the operator's, not a relay endpoint, not a legacy spelling, and <code>ga</code> (§8).</p>
|
|
<ol><li>Every operation a capability serves MUST be typed (HIP-0106 §4) or, where</li></ol>
|
|
<p> the response cannot be a value, declared with prose beside the route. An operation that is neither publishes an address nobody can explain, and the ratchet in §5.4 counts it.</p>
|
|
<h3>§5 The gates</h3>
|
|
<p>Each gate is a ratchet: a committed file of what does not yet conform, which may only shrink, checked by a test that fails on a line that should be gone and on a defect that is not listed. A gate that has only ever passed has not been shown to work (HIP-0106 §9).</p>
|
|
<ol><li><strong><code>hanzoai/cloud</code> <code>openapi/misfiled.txt</code></strong> — every (address, app) pair in</li></ol>
|
|
<p> the woven document where the first segment is not the serving app, after §3.2. One line per pair. <code>TestNoOperationIsMisfiled</code> refuses a pair the file does not carry and a line the document no longer has.</p>
|
|
<ol><li><strong><code>hanzoai/cloud</code> <code>plugin/gen-app-cmds</code></strong> — every app has a plugin and</li></ol>
|
|
<p> every plugin an app (HIP-0106 §9).</p>
|
|
<ol><li><strong><code>hanzoai/openapi</code> <code>capabilities.yaml</code></strong> — every tag the served document</li></ol>
|
|
<p> carries is grouped under one of nine domains, and no grouped name is unserved. <code>publish.py</code> refuses in both directions.</p>
|
|
<ol><li><strong><code>hanzoai/cloud</code> <code>openapi/floor.json</code></strong> — a capability's operation count</li></ol>
|
|
<p> may not fall without the commit that lowers it saying so.</p>
|
|
<ol><li><strong><code>hanzoai/hips</code> <code>capability-coverage.txt</code></strong> — every capability has</li></ol>
|
|
<p> exactly one HIP declaring it (<code>scripts/coverage.py</code>).</p>
|
|
<p>The list all five are measured against is the PUBLIC vocabulary, so what §8 hides from a customer is also hidden from these gates: a capability that is not <code>ga</code> is in no public document, is therefore in no <code>capabilities.yaml</code>, and its HIP declares no <code>capability:</code> until it is promoted. Declaring one earlier fails <code>coverage.py</code> CV006 against a name the taxonomy does not carry, and adding the name to the taxonomy to satisfy it fails <code>publish.py</code> in the other direction. The HIP is still written and still merged — that is what §8's entry evidence asks for — it simply does not claim a vocabulary slot before the customer has one.</p>
|
|
<h3>§6 The HIP a capability carries</h3>
|
|
<p>A capability HIP is Standards Track. Its front matter carries <code>capability: <name></code> and <code>requires: HIP-0139</code>. It states, each in its own section where the template has one:</p>
|
|
<ul><li>what the capability is and the one store it owns, or that it owns none;</li><li>every address it answers, with the operations typed and the ones declared</li></ul>
|
|
<p> and why each declared one cannot be a value;</p>
|
|
<ul><li>how a request becomes a tenant — which claim, what is refused (HIP-0026);</li><li>what it meters, the unit and the price, and through which plane the debit</li></ul>
|
|
<p> lands — or that it is free, said in those words;</p>
|
|
<ul><li>the events it publishes on the bus and so delivers to a customer's</li></ul>
|
|
<p> webhooks (<code>/v1/webhook</code>), each named <code><name>.<noun>.<verb></code>, or that it publishes none;</p>
|
|
<ul><li>what it emits to observability — the spans, the metrics and the log lines</li></ul>
|
|
<p> a customer can read back under <code>/v1/o11y</code> — beyond the request span every route already gets;</p>
|
|
<ul><li>its stage (§8);</li><li>the upstream it derives from — every OSS project the capability forks,</li></ul>
|
|
<p> embeds or mirrors, each with its license and what of it survives in HEAD — or that it derives from none;</p>
|
|
<ul><li>what an attacker gets from the wrong implementation.</li></ul>
|
|
<p>It does not restate §1–§5, and it names no count a gate already measures. One capability, one HIP: two HIPs declaring one capability fail <code>coverage.py</code> CV005, and one HIP declaring two capabilities is two specifications in one file — permitted only while the vocabulary carries both names for one thing (a merge in flight, §2.4); otherwise the second capability gets its own HIP.</p>
|
|
<p>The HIP is also where a change to the capability is proposed. The order is spec first: amend the HIP, land the code that implements it, and every projection — the document, the clients, the tools, the commands, the pages — regenerates from the code. A change that reaches the router without its HIP is caught where drift always is: the projections move and the spec did not.</p>
|
|
<h3>§7 Resolving a misfiled pair</h3>
|
|
<p>A line in <code>misfiled.txt</code> is closed one of three ways, and the store decides which:</p>
|
|
<ol><li><strong>Fold.</strong> The address moves under the app: <code>/v1/machines</code> becomes</li></ol>
|
|
<p> <code>/v1/visor/machines</code>. This is the default. An app with one store is one capability however many nouns it answers for.</p>
|
|
<ol><li><strong>Split.</strong> The app becomes two, each with its own store and its own</li></ol>
|
|
<p> address. Permitted only along a store boundary — two apps sharing one store is the defect HIP-0106 names, and a split that creates it is refused.</p>
|
|
<ol><li><strong>Rename.</strong> The app takes the address's name when the address is the word</li></ol>
|
|
<p> people say and the package name is not (<code>link</code> → <code>link</code>, <code>plan</code> → <code>plans</code>). A rename is one commit, and the commit is not the router's alone:</p>
|
|
<ul><li><code>hanzoai/cloud</code> — the directory, the plugin, the manifest row, the</li></ul>
|
|
<p> Makefile's <code>APPS</code>, and the frozen order test;</p>
|
|
<ul><li><code>hanzoai/openapi</code> — the name in <code>capabilities.yaml</code>;</li><li><code>hanzoai/hips</code> — the capability HIP's <code>capability:</code>, its <code>title:</code>, its</li></ul>
|
|
<p> filename, and every sibling HIP that cites the old name or the old address.</p>
|
|
<p> All three, or the rename is not done. This list was the router's half alone and four renames shipped green against it: <code>storage</code>→<code>s3</code>, <code>zt</code>→<code>network</code>, <code>automations</code>→<code>auto</code>, <code>analytics</code>→<code>event</code> each landed in the manifest while the vocabulary and the corpus went on naming the old word. Nothing caught them, and the reason is §5: <code>coverage.py</code> measures the corpus against <code>capabilities.yaml</code>, and <code>publish.py</code> measures <code>capabilities.yaml</code> against the document. Neither reads the manifest, so a rename that moves the manifest and stops there leaves both gates agreeing with each other about a capability that no longer exists. A gate is only as current as its most stale input, and the input each of these gates trusts is the one the rename forgot.</p>
|
|
<p>An address served by two apps is closed by fold into the one that owns the root — or, where neither does, by the capability HIP deciding which one the address belongs to. There is no fourth way and no alias.</p>
|
|
<h3>§8 Stage</h3>
|
|
<p>A capability is <code>ga</code>, <code>beta</code> or <code>alpha</code>, declared once, in its manifest row (<code>manifest.App.Stage</code>; absent means <code>ga</code>). The stage is a fact about the product, not about the specification — a HIP's <code>status:</code> says whether the text is settled, the stage says whether a customer is shown the thing.</p>
|
|
<ol><li>Only <code>ga</code> operations are public. The weave stamps <code>x-stage</code> on every</li></ol>
|
|
<p> operation and the public rule (§4.2) drops anything that is not <code>ga</code>, so a <code>beta</code> capability is in no generated client, no tool list, no command group and no public page. It is still in the internal document.</p>
|
|
<ol><li>The host answers <strong>404</strong> for a <code>beta</code> or <code>alpha</code> prefix unless the caller's</li></ol>
|
|
<p> org holds the flag named for the capability (<code>flags</code>, key <code><name></code>). Not 403: a capability a customer has not been let into does not exist for them, and an existence oracle is what 403 would be.</p>
|
|
<ol><li>A customer who holds the flag sees the capability in the console and may</li></ol>
|
|
<p> call it; the document they are served is the internal one filtered to what they hold.</p>
|
|
<ol><li>Promotion to <code>ga</code> is one edit to the manifest row. The ratchets in §5</li></ol>
|
|
<p> apply at every stage; the stage decides who is shown the capability, never whether it has to conform.</p>
|
|
<p>The self-service cloud that launches is the <code>ga</code> set. What is not finished is not hidden by being undocumented; it is declared <code>beta</code> and reached by flag.</p>
|
|
<h2>Rationale</h2>
|
|
<p>The alternative is the one the cloud had: two axes, product and app, with the document tagging by product and prose that explains the cases where they differ. It is cheaper on the day a route lands and more expensive every day after, because each projection has to carry the explanation again — in a class name, a tool description, a sidebar, a HIP — and they do not carry it the same way.</p>
|
|
<p>Tagging by the owner rather than by the path was chosen because the owner is the value every projection already reads (<code>x-app</code> is on every operation) and the path is the value the gate then drives into agreement with it. The other order — tag by path, ratchet the owner — would have the generated clients and the HIP corpus follow a name that is about to change, twice.</p>
|
|
<h2>Security Considerations</h2>
|
|
<p>A capability is also a tenancy boundary: the store it owns is opened by org (HIP-0118), and the public rule decides by address which operations a customer key may reach. A route misfiled under another capability's address inherits that capability's audience; <code>/v1/admin/<name></code> served at the wrong depth is the concrete case — a pricing catalog the operator edits, offered as a customer method because the address said <code>pricing</code> before it said <code>admin</code>. Rule §3.2 fixes the depth, and the gate in §5.1 is what keeps it fixed.</p>
|
|
<h2>References</h2>
|
|
<ul><li>HIP-0106 — The Hanzo Plugin Contract</li><li>HIP-0119 — Hanzo Service Conventions</li><li>HIP-0127 — V8 · Open Edition — Architecture, Distribution & the Language Seam</li><li>HIP-0128 — Resource Surface Standard</li><li>HIP-0135 — What Is Public</li><li>RFC 8615 — Well-Known Uniform Resource Identifiers</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-0139.md">This page as plain text</a> · <a href="/llms.txt">Index for agents</a></div>
|
|
</footer>
|
|
</div></body></html> |