Skip to content
Kevin Liu's WikiSearch

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: true always gates a page.
  • private: false cannot 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.md or SKILL.md beside 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 (never skills/installed) or wiki/, 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, or private: true in its SKILL.md).
  • Source-only research may be public only after review and an explicit entry in the shared publicSlugs allowlist; 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: true marker 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, /me and 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: or relationships entry;
  • 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