Files
skills/public/hip-1331.html

294 lines
27 KiB
HTML

<!doctype html>
<html lang="en"><head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>hip-1331</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-1331.md">
<link rel="icon" href="/favicon.svg">
<link rel="canonical" href="https://hanzoskills.com/hip-1331">
</head>
<!-- Reading this with a machine? Every page here is also plain markdown.
This one: https://hanzoskills.com/hip-1331.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-1331</h1><p class="lede">HIP-1331: Patrol — Standing Watch Over an Estate. Status Final. Hanzo architectural specification.</p><h1>HIP-1331: Patrol — Standing Watch Over an Estate</h1>
<h2>Abstract</h2>
<p><code>/v1/patrol</code> is a guarding operation&#x27;s own surface: the sites it watches, the units on the ground, the tours they walk, the keys they hold, the cameras they open, and the incidents that interrupt all of it. The records are documents on the engine (HIP-1126) in module <code>patrol</code>, so editing a site or registering a camera needs no code of its own. This prefix serves the four things that generic surface cannot: the reads shaped for one screen, the incident state machine, alarm intake, and the live feed. It is implemented in <code>hanzoai/cloud</code> at <code>apps/patrol</code>, and it opens no store.</p>
<p>Twenty-nine operations, twenty-seven of them typed.</p>
<h2>Motivation</h2>
<p>A control room is a screen that has to be right. A controller watching an activation arrive needs the site, its tier, the nearest unit, the keys for that premises and the last hour of events in one read, at the moment the alarm lands — and then has to move the incident through nine states with an audit trail nobody can edit afterwards. None of that is CRUD, and all of it is what the job is.</p>
<p>The generic document surface is where the same operation&#x27;s <em>records</em> belong, and it already serves them: eighteen DocTypes, per-org isolation, role-gated reads and writes, one renderer. Building a second CRUD plane here would have bought a second copy of every one of those properties. So the question this HIP answers is not whether an estate needs documents — it has them — but what a prefix of its own is for, and the answer is narrow enough to list.</p>
<p>Two facts make the narrow answer necessary rather than a convenience.</p>
<p>An incident&#x27;s order is the record. <code>verified</code> before <code>dispatched</code>, <code>onsite</code> before <code>checked</code>, a filed report before a close: if any surface can write the state field directly then the trail is a suggestion, and a guarding company&#x27;s trail is the thing a client, an insurer and a court read. A document write cannot hold that rule; a transition table can.</p>
<p>An activation is never dropped. A panel fires, a receiving centre posts it, and whatever the payload says, something has to be recorded — because the failure mode of alarm intake is silence, and silence is indistinguishable from a quiet night.</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 store is the engine&#x27;s</h3>
<p>patrol opens no store. Eighteen DocTypes carry the module tag <code>patrol</code> — tenant, client, zone, hazard, unit, site, fix, tour, point, key, movement, camera, incident, alarm, step, event, note, report — and the engine holds them: one SQLite file per org, every call taking the org as an argument. There is no tenant column, because the tenant boundary is the storage boundary.</p>
<p>Every read and write on this prefix goes through the engine&#x27;s in-process API. A second store here would be a second answer to where a unit is, and the whole product is that there is one.</p>
<p>Geography is plain: latitude and longitude are floats and distance is a haversine. The engine holds no geo index and answers no range query, so nearest-unit is a linear scan — correct for an estate of hundreds of sites and dozens of units, and the reason every list route is bounded rather than paged.</p>
<h3>§2 The addresses</h3>
<p>Twenty-nine operations under <code>/v1/patrol</code>, composed from the module name so the prefix and the tag cannot disagree.</p>
<p>Twenty-seven are typed ops, each one registry entry carrying its route, its schema, its MCP tool, its CLI command and its generated SDK method. Two are not, and the ledger of exemptions is closed with the wire fact for each:</p>
<ul><li><code>GET /v1/patrol/feed</code> is an open Server-Sent Events response written by a loop</li></ul>
<p> that outlives the handler. A typed op answers one marshalled value, and a feed has no such value.</p>
<ul><li><code>GET /v1/patrol/report/{name}</code> is bytes under a filename — a PDF, or plain text</li></ul>
<p> when the caller asks for it. No input and output pair describes either.</p>
<p>The shape of the surface:</p>
<p> /tenant/:org the public face of one operation /snapshot the whole screen, in one read /site /site/:name the estate, and one premises /unit /unit/near who is out, and who is closest /unit/:name/fix a position report /unit/:name/state on shift, on break, off /tour /point/:name/confirm the walk, and a point confirmed on it /key /key/:name/move the key register, and custody moving /camera what can be opened /camera/:name/stream mint an address for one camera /incident /incident/:name the interruptions, and one of them /incident/:name/step an act against the state machine /event /note the trail, and what someone wrote on it /alarm intake /report file one</p>
<p><code>GET /tenant/:org</code> is the one anonymous route, so the group carries no blanket scope and admission is asked per route. The org on it is a name a stranger supplied, and resolving a store creates one — so the read checks that the deployment already holds that tenant before it opens anything, and answers absence otherwise. Without that check a caller naming a fresh org per request would leave a database per name they invented.</p>
<h3>§3 The incident state machine</h3>
<p>Nine states, forward only:</p>
<p> received → verified → dispatched → enroute → onsite → checked → secured → filed → closed</p>
<p>Nine acts move between them — VERIFY, DISPATCH, ROLL, ARRIVE, CHECK, SECURE, FILE, CLOSE, ESCALATE — and one table decides all of it: the states an act leaves, the state it lands in, the timestamp it stamps, and the roles admitted to it. Nothing else MAY decide what an incident does next.</p>
<ul><li>An act from a state it does not leave is refused with 409 naming the state the</li></ul>
<p> incident is in. Not 400: the request was well formed and the answer is about the record.</p>
<ul><li>ESCALATE stamps without moving, which is why the table carries the landing</li></ul>
<p> state rather than inferring it from the act.</p>
<ul><li>CLOSE leaves <code>secured</code> or <code>filed</code>, and only the supervisor and above hold it.</li><li>Every act appends one step. An incident and its first step are written</li></ul>
<p> together, because an incident whose trail does not say it was opened is not a record — a failed step takes the incident with it.</p>
<p>One act holds an incident under a short lease. The lease is the crash net and nothing more: an act is a handful of writes, so a holder that has not finished within its life is gone, and a caller that has waited its turn is told the incident is busy.</p>
<h3>§4 Alarm intake</h3>
<p>One intake, <code>POST /v1/patrol/alarm</code>, and two callers: the receiving centre&#x27;s own machine credential, and a controller keying an activation in by hand. A DC-09 receiver, where there is one, normalizes into this same body and calls this same path.</p>
<p>An activation is never dropped, and the two answers say which happened. A body that matches a site opens an incident in <code>received</code> carrying that site&#x27;s tier and SLA, and answers 201. A body that matches no site is still recorded, raises an amber event, and answers 202 — so an unmatched panel is visible in the trail instead of absent from it.</p>
<p>The body is capped: a reference, a zone, a trigger phrase and the panel&#x27;s own payload, each bounded, because anything longer is noise and the caller is a panel.</p>
<h3>§5 The feed</h3>
<p>A write publishes one frame on the org&#x27;s own bus subject. <code>GET /v1/patrol/feed</code> subscribes to that subject and nothing else, and writes each frame as a Server-Sent Events record.</p>
<p>The bus rather than a map of subscribers in this process, because a control room runs behind more than one replica: an officer&#x27;s position posted to one pod has to reach a controller watching from another. Delivery is best effort — the GET routes are the truth, and a dropped frame costs one refresh.</p>
<p>A stream costs a goroutine, a subscription and a socket for as long as it is held, so it is counted twice. A reader is bounded by what that reader holds, and the tenant&#x27;s ceiling sits above it. One bound would be paid by the wrong caller: counted against the org alone, a customer opening tabs in their portal closes the control room&#x27;s wall, and the count has no term that could tell them apart.</p>
<h3>§6 Roles</h3>
<p>Seven roles, each an IAM role in the tenant&#x27;s own org: owner, manager, supervisor, controller, officer, client, and centre. The last is the receiving centre&#x27;s machine credential — a third party whose whole business with the operation is one POST, and which reads nothing.</p>
<p>Admission is asked in one place, and it asks two questions: is there a validated principal with an org, and does it hold one of the roles this route admits. The org is the identity boundary&#x27;s (HIP-0026) and MUST NOT come from a path, query or body. A principal holding a set of orgs that does not include the resolved one is refused. The engine&#x27;s System Manager passes every route, which is how an owner configures the operation before any role is assigned.</p>
<p>The role sets are named for what they do rather than listed per route — everyone, staff, control, crew, shift, intake, audience — and the same values build the document permissions, so who may do a thing is answered once.</p>
<p>The role read is bounded. A slower answer than its deadline denies, because that is the direction to fail.</p>
<h3>§7 Camera streams</h3>
<p>A camera&#x27;s credential is not a field on the camera. It is a path in KMS, and the stream address is minted rather than stored: <code>GET /camera/:name/stream</code> answers an address carrying a ticket, and <code>GET /camera/:name/stream/:ticket</code> is what the player opens.</p>
<p>The ticket names the tenant it was minted in and carries a tag over that tenant, that camera and one expiry, signed under a key kept in the org&#x27;s own KMS namespace and minted the first time that org mints a ticket. So a ticket verifies in exactly one org, for one camera, for a few minutes, and a made-up one verifies nowhere.</p>
<p>A deployment with no KMS serves no stream, and says so. It does not serve one without a credential.</p>
<h3>§8 Money, events, telemetry</h3>
<p>Free, said in those words: the plugin declares <code>Price: cloud.Free</code>. No meter runs behind any route.</p>
<p>It publishes no events on the platform bus, so a customer&#x27;s webhooks (HIP-1310) receive no <code>patrol.*</code> event. The <code>event</code> in §2 is a document in this module&#x27;s own trail, read through this prefix, and the frames in §5 are the org&#x27;s bus subject for screens — neither is an outbound platform event.</p>
<p>Notifications leave through <code>notify</code> (HIP-0061): a filed report tells the controllers, and an amber intake raises against the trail. Beyond the request span every route gets, it emits nothing to observability.</p>
<h3>§9 Stage</h3>
<p><code>ga</code>. The manifest row declares no stage, and absent is <code>ga</code> (HIP-0139 §8).</p>
<h3>§10 Upstream</h3>
<p>It forks nothing. The PDF renderer is <code>pdfcpu</code> (Apache 2.0), used to set a filed report&#x27;s stored body; the body is composed at file time and the PDF produced on read, so a report reads the same a month later as it did the minute it was filed. Three kinds — shift, incident, client — through one renderer.</p>
<h2>Rationale</h2>
<p><strong>Why a prefix at all, when <code>crm</code> gets none.</strong> The test is whether the capability has behaviour the generic document surface cannot express. crm has records and a lifecycle field, so it is a module and nothing more (HIP-1120). patrol has a transition table, an anonymous intake with two answers, a minted stream credential and an open feed. Those are four things a DocType cannot hold, and they are exactly what this prefix serves — the records stayed where they were.</p>
<p><strong>Why the state machine is a table and not a set of routes.</strong> One route per transition would put the order in the router, where it is read by no one and enforced nine times. The single <code>step</code> operation takes the act and the table answers whether it is legal, so adding a state is one row and the audit trail is uniform by construction.</p>
<p><strong>Why nearest-unit is a scan.</strong> The engine has no geo index. An estate is hundreds of sites; the scan is bounded and measured, and a spatial index here would be a second store with a second answer about where a unit is. If an estate ever outgrows the scan, the index belongs in the engine, once, for every module.</p>
<p><strong>Why intake answers 202 rather than 404.</strong> A panel is not a caller that can be told to try again. An unmatched activation is a real event with an unknown subject, and the useful record is the activation plus an amber flag a controller will see — not a refusal at the door and nothing written down.</p>
<h2>Security Considerations</h2>
<p>The wrong implementation opens another company&#x27;s premises. Three things stand in the way, and each is a construction rather than a check.</p>
<p>The store is per-org and the org is the identity boundary&#x27;s verdict, so there is no query a caller can shape that reaches another tenant&#x27;s estate. Admission asks for a role as well as an org, so a client reading their own sites cannot read the key register. And the stream ticket is bound to one org, one camera and one expiry under a key that lives in that org&#x27;s own KMS namespace, so a leaked address ages out and a forged one verifies nowhere.</p>
<p>The anonymous route is the deliberate hole, and it is one document: the public face an operation chooses to publish — brand, company, the terminology its screens use. It answers only for a tenant the deployment already holds, and absence for everything else, so it is not an oracle for which orgs exist beyond those that published a face on purpose.</p>
<p>The remaining exposure is the receiving centre&#x27;s credential. It is a machine identity in the tenant&#x27;s org holding one role that may post an activation and read nothing, so a compromised centre can raise false alarms — which a controller verifies before dispatching, and which the trail records either way — and cannot read a site, a key or a camera.</p>
<h2>References</h2>
<ul><li>HIP-0026 — Identity and Access Management</li><li>HIP-0061 — Notification and Messaging</li><li>HIP-0106 — The Hanzo Plugin Contract</li><li>HIP-0139 — Capability</li><li>HIP-1120 — CRM: a module that needs no prefix</li><li>HIP-1126 — Framework: the document engine behind the records</li><li>HIP-1310 — Webhooks: outbound delivery</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-1331.md">This page as plain text</a> · <a href="/llms.txt">Index for agents</a></div>
</footer>
</div></body></html>