Publication
The three gates a value must clear to reach a built page, the selection lock, the assets allowlist, and why assetViewerExclude is not privacy.
Adding evidence to a bundle never publishes it. Publication is default-zero and opt-in: a value reaches a built page only if it clears three independent gates, enforced structurally rather than by convention.
The three gates
| Gate | What it checks | Enforced by |
|---|---|---|
| INSTANCE | The record's ID (and, for a source, its source ID) appears in the project's committed InstanceSelection (circuit/) | An ID not listed is simply never read; an ID listed but absent from the evidence is a fatal STALE_SELECTION |
| FIELD | The value's FieldKey is PUBLISH in the publication matrix | PublicationMatrix is Record<FieldKey, FieldDecision> — adding a field to the view model without recording a decision is a compile error, not a runtime gap |
| VALUE | The value survives text-safety and URL-classification checks at render time | Applied uniformly, regardless of the first two gates |
Repository visibility is irrelevant to all three: a field that is readable in the evidence bundle you have checked out is still unpublished until it clears INSTANCE, FIELD and VALUE. The default matrix denies a handful of fields outright regardless of selection — for example source.sha256, source.evidenceExtract, pinMap.reviewedBy and the routing prompt lists — so that hashes, raw extract text, reviewer names and search-avoidance prompts never reach a built page even for a fully selected record.
Audited candidates and their owned sources stay outside the publication projection: candidate record or source IDs are rejected if added to selection.json, and candidates are never published or counted in its selected record/source totals.
The built-site scan
zudo-circuit-doc scan checks artifacts the package owns against the full denied-value canary set in its OWNED tier. Its SITE tier checks the built site (and an optional docs-to-agent mirror) after subtracting canaries already present in the host's authored documentation. Generated component pages under the configured docs.generatedContent are never part of that authored subtraction corpus. After that subtraction, scan.publicCanonicalFootprints provides the only additional SITE exemption: an exact match for a denied sha256 value backed by a public footprint manifest. OWNED keeps the full canary set. See the scan config for the footprint and built-manifest provenance checks.
The selection lock
circuit/ is the reviewed publication lock:
{
"schema_version": 1,
"recordIds": [],
"sourceIds": [],
"linkableSourceIds": [],
"documentSelections": [],
"documentExceptions": [],
"expect": { "records": 0, "sources": 0, "integrationRules": 0, "packages": 0 }
}recordIds/sourceIds— which records and sources clear the INSTANCE gate.linkableSourceIds— selecting a source publishes its metadata; an outbound link is published only for source IDs also listed here.documentSelections— reviewed document choices with arecordId,sourceIdanddocumentKind(datasheet,specification,drawingorsource-record). The first three kinds explicitly describe PDFs.source-recorddisplays Source record for a reviewed non-PDF source; it does not promote source authority or exact-part applicability.documentExceptions— optional{ recordId, reason }entries for selected records with no document to publish. The reason is shown as the document's availability on the component page, through the existing publication-matrix keyreference.document.availability. Write a concise, reviewed reason that says what was checked and what remains unavailable. Do not describe distributor evidence as a manufacturer document or invent a URL. Keep relevant evidence insourceIdsso it remains in Sources; add its URL tolinkableSourceIdsonly when that outbound link is approved.Partition rule: each ID in
recordIdsmust appear in exactly one ofdocumentSelectionsordocumentExceptions. The lists cannot overlap, and together they must cover every selected record. IfdocumentExceptionsis omitted, it is treated as[].expect— a reviewed count lock (records,sources,integrationRules,packages), each of which may be0. It gatesgenerate/check/buildand is never serialized into the preflight report.cad.enabledis a separate capability flag — a selected PCB record while CAD is disabled is an explicit error, never a silent skip, except the one declared-zero exception described in CAD fidelity.
Selection and assets-allowlist edits happen in the same task as the evidence change they publish, and the diff is the review — no separate per-part conversational permission prompt is expected.
The assets allowlist
Raw evidence and CAD files never belong under a built site's public directory by accident. The public-scope check fails on any such file under doc/public/, with exactly two exceptions:
generator-owned previews under
assets/component-previews/**(footprint SVGs, published WRL models), andfiles listed in
circuit/, the deliberate-publication allowlist:publication/ assets. json
{
"schema_version": 1,
"assets": [
{ "path": "favicon.svg", "reason": "Site favicon shipped by the zudo-doc scaffold; not component evidence or CAD." }
]
}Each entry names a path relative to publicRoot, a human reason, and an optional source_id. A file placed under doc/public/ for any other reason fails the scan.
The check only restricts file types that are plausible raw evidence or CAD/manufacturing exports — it doesn't scan every file under doc/public/. A restricted extension outside the exempt preview root always needs either the allowlist entry above or to not be there at all:
.pdf .step .stp datasheets, drawings, mechanical exports
.kicad_mod .kicad_sym .kicad_pcb .kicad_sch KiCad library/board/schematic files
.kicad_pro .kicad_prl KiCad project files
.zip .7z .json .wrl .svg archives, raw evidence bundles, preview formats
.stl .3mf .obj .glb .gltf 3D meshes
.gbr .gtl .gbl .gto .gbo .gts .gbs .gtp .gbp .gko .gm1 Gerber fabrication layers
.drl .xln drill files
.csv BOM exports .svg and .wrl are also the preview generator's own output formats, which is why they're on this list and exempted under assets/component-previews/** specifically — anywhere else on the public root they're exactly as unreviewed as any other restricted type.
assetViewerExclude is not privacy
zudo-doc's generated asset viewer can hide a file from its own index with assetViewerExclude. That setting changes visibility in one navigation surface — it does not make the file private, does not remove it from the built output, and does not exempt it from the public-scope check above. A file under doc/public/ is public the moment it is built, whether or not the asset viewer lists it. If a file should not be public, it should not be under publicRoot at all — or it needs a genuine entry (with a genuine reason) in assets.json, not an exclusion flag.
Denying owner skills and package membership
A custom publication matrix may DENY record.ownerSkill or integration.ownerSkill only when docs.agentResources is false. With agent resources enabled, the config loader rejects those decisions because generated output publishes the owner-skill inventory and / routes. Remove claudeResources from the doc host's zfb.config.ts as well, so the host does not publish those bundle routes independently of generated component pages. Remove any navigation link to those routes too; a stale / link makes the doc host's strict link check fail after claudeResources is removed.
When owner skills are denied, generated component pages omit the Owner skill row and any / link. Where an owner would otherwise be identified, the page says: “No owning bundle is identified in the published model.” The zudo-circuit-doc scan command treats denied owner names as canaries, including component bundle names found under owner_skill or its manifest alias skill, and the integration owner name supplied by config.
The reference.package.recordIds decision is independent of docs.agentResources: it can be DENY while agent resources remain enabled. DENY removes recordIds from the public footprint-preview manifest. The component-evidence-v1 package preset keeps record.ownerSkill, integration.ownerSkill and reference.package.recordIds at PUBLISH.