Public Wiki Privacy
The public site is an allow-through view of a private repository. Relationship, career, employer-specific, interview, incident, decision, inbox, private research, and operational-log content must not be exposed to locked visitors.
Enforcement Boundary
ui/src/lib/privacy-policy.json is the shared policy source for the runtime and production bundler. ui/src/lib/gating.ts applies it to page, search, graph, embed, asset-API, sitemap, and agent discovery decisions. ui/scripts/bundle-wiki.mjs uses the same manifest when compiling deployment indexes.
The policy is fail-closed:
private: truealways gates a page.private: falsecannot override a protected category, slug, token, or tag.- People, career, finance, interview prep, postmortems, decisions, inbox, and private research are gated as categories.
- The finance category is restricted because provider inventory, retirement plans, benefits elections, insurance state, and tax-source locations are private even when they omit credentials and account identifiers.
- Generated agent packs and the operational log are gated because they can quote or summarize private source pages. Public pages name pack families, not pack files or counts.
- The site serves only the agent docs (an
AGENTS.md,CLAUDE.md,README.mdorSKILL.mdbeside the wiki) that one checked-in list names,ui/src/lib/agent-doc-list.json. Each entry is judged by what its file is, not by the slug the list gives it. The build fails, naming the entry, when the file sits outside root Markdown,ui/,scripts/, a reviewed skill's folder (neverskills/installed) orwiki/, when it is a symlink or spelled otherwise, or when its owner is private: a wiki file goes by its page, and a skill's file by its skill (a dedalus origin, orprivate: truein itsSKILL.md). - Source-only research may be public only after review and an explicit entry in the shared
publicSlugsallowlist; frontmatter cannot grant that exception. - A public page must not depend on a password wall. A reviewed project
contract may remove its page-level
private: truemarker only after private raw captures and personal material are excluded; protected slugs, tokens, tags, and categories still win. - Career-bearing USER companion pages are gated individually.
- The wiki has no portfolio. Since 2026-11-17,
/meand every path under it 308 to Kevin's portfolio at https://www.kevinliu.studio/, and the old portfolio image URLs answer exactly like a missing file. - Private pages are removed from locked search, navigation, graph results, sitemaps,
llms.txt, and structured discovery. - The production bundle emits only image assets referenced by public pages. Private-only assets are absent from the static deployment rather than relying on an application redirect gate.
Naming Private Pages On Public Pages
A public page names a private page only in a unit the site can drop whole for a viewer who cannot open it:
- a bullet or table row of its own, linked by
[[page-name]], such as- [[page-name]]: uses this pattern for X; - a
related:orrelationshipsentry; - one part of a citation,
[Source: [[page-name]]; other source].
Anywhere else, don't name it: not in a sentence, a heading, a numbered list, a shared table cell, a code span, a path or a URL. Don't count, number or total a list or table that holds such a row, and don't let other text point back at it ("both", "these", "the latter"). Rewording a sentence after its link is cut cannot be done safely by pattern: six review rounds kept finding counts, back-references and parallel lists that showed the cut. So the site drops only these units and leaves prose as written (Decision 9, Kevin, 2026-11-06).
A check enforces the rule. pnpm --dir ui report:public-mentions --fail runs before every build and in the commit and merge hooks. It fails on a mention outside such a unit, on a gap or wrong count a visitor would see after the drops (a numbered list or labelled sequence that skips, a count or total that equals the units before the drop), on a list, table or section the drops would empty, and on a private pack's name, which carries a prefix no public page's name may have, so it fails anywhere a page serves it (a pack's name without the prefix still fails after packs/, and as a file when it has a hyphen or a digit, no public page has it, and the file is not deep in another project's folders). It also renders each page as the site does and fails when the served HTML or excerpt would link or print a private page, so a check that reads a page differently from the renderer fails closed. It names the file, line and form, never the private page. --preview <slug> prints a page as a locked visitor gets it. Frontmatter that does not parse fails the build, so a broken private: true cannot serve a page as public.
Verification
Run:
pnpm --dir ui test:privacy-gating
pnpm --dir ui test:gate-passwords
pnpm --dir ui report:public-mentions --fail
npm run build
The privacy regression test covers relationship pages, career pages, employer-specific slugs, user-profile pages, and the operational log. A production build additionally proves that the bundler and runtime can consume the shared manifest.
The GitHub repository itself is private. Website gating is still required because the deployed reader intentionally serves a public subset. Source: gh repo view Kevin-Liu-01/Kevin-Wiki --json visibility,isPrivate, 2026-07-14
Timeline
- 2026-11-17 | Retired the gated
/meportfolio instead of moving its public images behind the gate:/meand/me/*now 308 to https://www.kevinliu.studio/, and the 39 images it served as public static files are deleted, so their URLs answer like any missing file. Source: Kevin, 2026-11-17; commit 06cb54b4f; production check of/me, 2026-11-17 - 2026-11-11 | Every private pack's file name now carries a prefix that no public page's name may have, so the mentions check fails a pack's name anywhere a page serves it, and its reading of the words around an ordinary file name is gone. Source: pack name cutover lane, lane/pack-cutover-20261111
- 2026-11-11 | The site serves only the agent docs one checked-in list names, each judged by what its file is, so the two private config docs unlocked viewers could open are no longer served. The mentions check renders each page as the site does and fails on any private link or name the served page would show. A page under a private page's folder is private, and a public page in the folder of a private root page of the same name fails the check, since its address spells that page's name. Source: UI privacy lane rounds 12 to 19, merged as 66eef1f13; review workflows wf_af506334-512, wf_f2b02d11-da5, wf_9e33886c-011, wf_efc13bec-f02, wf_03d73932-fa6, wf_0c81bb67-494, wf_9b1f48e6-d36 and wf_7e70160a-313
- 2026-11-09 | Agent docs are served only when their source may be public, the check fails a private pack's file name where a page speaks of packs, and it flags only the gaps and counts a visitor would see. Source: UI privacy lane round 11, merged as 978d90413
- 2026-11-08 | The commit and merge hooks run the same check, so a commit or a clean merge that breaks the rule stops before it lands. Source: UI privacy lane round 10, merged as 14ca87e0b
- 2026-11-08 | The build now enforces the naming rule:
report:public-mentionsruns before every build and fails on a mention the site cannot drop whole. Source: UI privacy lane rounds 8 to 10, merged as 1a6265aa4 - 2026-11-06 | Added the rule for naming private pages on public pages: only in a bullet or row of its own, a related entry or a citation part, so the site can drop the unit whole and never edits prose. Source: Kevin, chat 2026-11-06 (Decision 9); UI privacy lane review of round 6
- 2026-11-03 | Retired with the typed brain graph: the gate no longer reads public flags from brain objects;
publicSlugsis the only allowlist, and no page changed visibility. Source: Kevin, 2026-11-03; Wiki Brain Operating Model - 2026-08-11 | Published the reviewed Fieldwork product contract after
rendered verification found that the public
project:fieldworkobject linked to a password wall. The regression keeps the project contract public while the existing employer/internal project cases remain gated. Source: User public-system visibility instruction; rendered/systemverification;ui/scripts/test-privacy-gating.ts - 2026-08-10 | Added the first reviewed public-research exception for the agent-native memory synthesis so a public
/systemobject cannot route into a password wall; the research category remains private by default and the exception is regression-tested. Source: rendered/systemverification;ui/src/lib/privacy-policy.json;ui/scripts/test-privacy-gating.ts - 2026-07-22 | Added the entire
financecategory to the shared private policy and regression suite so personal financial and benefits records remain gated by default. Source: User request, 2026-07-22 - 2026-07-14 | Consolidated runtime and bundler privacy rules into one manifest; gated generated packs, the operational log, career-bearing USER pages, and the
/meportfolio; added fail-closed regression coverage. Source: User request, 2026-07-14