# Design proposals and PRDs

> The canonical bilingual home for OINK PRDs and designs that remain under evaluation.

---

LLMS index: [llms.txt](/llms.txt)

---

> [!WARNING] Non-normative material
> A proposal describes behavior that may not exist. The contracts, accepted
> decisions, implementation, and owning checkers define current behavior.
> Never use a proposal as a configuration reference.

This section contains the authoritative OINK product requirement documents,
RFC-style designs, and unresolved maintainer proposals. Do not create a local
`plan/`, `plans/`, `proposal/`, or parallel design tree in the theme repository
or the documentation repository.

## Active proposals {#active-proposals}

| Proposal                                                                 | Current boundary                                                                                                     |
| ------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- |
| [Local search without Lunr](/docs/design/proposals/local-search-engine/) | Accepted for v1.6.0. All three stages ship in v1.6.0 (scanning BM25 engine with CJK bigrams, split index with staged loading of page text, and fields as search entries) and now live in the [Shell](/docs/design/shell/#search-engine) and [Components](/docs/design/components/#steps-cards-fields-and-tables) contracts; open tuning questions and a later database backend remain non-normative |
| [Backlinks and knowledge graph](/docs/design/proposals/knowledge-graph/) | G1 (static backlinks) is accepted, implemented on the theme's main branch, and ships with OINK 0.8.0; the local and global graphs (G2/G3) remain draft |
| [Media convergence](/docs/design/proposals/media-convergence/)           | Partially implemented; the media-result contract and Landing resource metadata shipped, M3 resolved for native-image processing, retirement (M4) open |
| [Theme roadmap: the Sass exit and the next product stage](/docs/design/proposals/theme-roadmap/) | Draft for R1–R3, drafted 2026-11-21. R0 is accepted for v1.6.0: plain CSS assembled by Hugo with no compiler, SCSS hooks retired, and Bootstrap JS removed; no other stage accepted. Orders the exit from Hugo's removed LibSass, small reader gaps, version lifecycle, and a static API reference |
| [Content components expansion](/docs/design/proposals/content-components-expansion/) | Accepted and shipped in v1.7.0. All six components — [Timeline](/docs/design/proposals/component-timeline/), [Update](/docs/design/proposals/component-update/), [Social posts](/docs/design/proposals/component-social/), [Video](/docs/design/proposals/component-video/), [Audio](/docs/design/proposals/component-audio/), and [Map](/docs/design/proposals/component-map/) — expand the catalog from 21 to 27 components with no new shortcode (quoted social posts use `> [!SOCIAL]` in v1.8.0), one fence (`map`), and branches in the image, blockquote, and heading hooks; normative behavior now lives in the [Components](/docs/design/components/#timeline-media-social-and-maps) and [Architecture](/docs/design/architecture/#configuration-and-diagnostics) contracts |
| [OINK CLI and the next product stage](/docs/design/proposals/oink-cli-roadmap/) | Independent Go repository and first-stage boundary accepted; local CLI candidate implemented, not publicly released; later theme, migration, adoption, versioning, OpenAPI, and platform stages remain proposals |
| [Visual presets and appearance switching](/docs/design/proposals/visual-presets/) | Paper/Slate ship in v1.2.0 and all six presets (`paper`, `slate`, `github`, `ink`, `news`, `terminal`) ship in v1.8.0 (see [Ink and Terminal stabilization](/docs/design/proposals/ink-terminal-stabilization/)); GitHub, Ink, News and Terminal remain explicit opt-ins; see the accepted decision and dated acceptance record |
| [Ink and News: the written page and the printed page](/docs/design/proposals/ink-news-presets/) | Written 2026-11-28 and partly implemented in OINK v1.8.0. Ink is the written style (Kai and Fangsong, Palatino, headings at text weight, two inks) and News the printed style (newsprint, rules, one spot color), with gold-on-indigo and darkroom dark modes; Japanese and Korean stacks, a kicker and Blog list columns remain open |
| [oink: preview and multi-version serving](/docs/design/proposals/oink-serve/) | Draft PRD, written 2026-11-28. One `oink` binary that embeds Hugo and OINK for local preview, Git-aware multi-version serving and `.oink` packages, with SQLite-backed search, accounts, comments and page views; would supersede the CLI contract and the CLI roadmap's versioning stage if accepted; nothing is implemented |

Component refinement, unified diagram reading and local search refinement ship in 1.4.0 and now live under [accepted decisions](/docs/design/decisions/). Translation comparison ships in 1.5.0 as an [accepted decision](/docs/design/decisions/document-comparison/); its draft is retired.

The table-reading draft is also retired: the [accepted decision](/docs/design/decisions/large-table-reading/)
and [component contract](/docs/design/components/#table-reading) define the narrower,
`.expand` behavior released in OINK 1.4.0.

The bulk agent-index proposal was retired after its outputs were released.
[Architecture](/docs/design/architecture/#outputs-and-runtime) defines the accepted
behavior. [Agent-ready output](/docs/customize/agents/) gives the user steps.
The Book publication proposal was retired after `BookManifest` and the
EPUB/PDF tools were released. The accepted behavior is documented in
[Architecture](/docs/design/architecture/#outputs-and-runtime) and
[Writing a book](/docs/write/book/#print); dated downstream adoption evidence
is recorded in [Consumer evidence](/docs/design/research/consumer-evidence/#publication-adoption).
Pending consumer adoption does not keep an upstream design proposal active.
Git history retains both proposal drafts.

The generated-configuration-schema proposal completed its lifecycle and was
retired: [Configuration](/docs/customize/config/#editor-schema) defines the
required behavior, the
[generated configuration schema decision](/docs/design/decisions/config-schema/)
records the accepted rationale, and Git history retains the draft text.

## CLI workspaces and adapters {#cli-maintenance-candidate}

Explicit workspaces and optional adapters remain in the current reduced CLI.
The [current contract](/docs/design/decisions/cli/#workspace-registry) defines the command boundary,
and the [R1–R8 and A18 record](/docs/design/research/2026-10-03-cli-maintenance-acceptance/)
preserves the historical acceptance evidence. The finite maintenance
roadmap remains retired from active navigation.

## Where a new PRD goes {#where-a-new-prd-goes}

Create one English-primary page and its Simplified Chinese peer:

```text
content/docs/design/proposals/<slug>.md
content/docs/design/proposals/<slug>.zh.md
```

Use explicit, stable English heading IDs in both files. Keep code, keys, paths,
versions, and API names unchanged in Chinese. A proposal begins with visible
draft status and includes:

1. status, owner, date, and affected contract surface;
2. context and evidence;
3. goals and explicit non-goals;
4. proposed behaviour and output/accessibility/security boundaries;
5. compatibility and migration impact;
6. implementation and owning-checker plan;
7. acceptance criteria and open decisions;
8. a decision log for later changes to the proposal itself.

For a large experiment, you may add a dated page under
[`../research/`](/docs/design/research/). Keep temporary logs and generated
artifacts outside Hugo content and Git.

## Lifecycle {#lifecycle}

```text
draft proposal
    ├── rejected/superseded → remove from the active tree; preserve Git history
    └── accepted
          ├── implementation + owning checker
          ├── affected EN/ZH contract
          ├── accepted Design decision when rationale is durable
          └── changelog, migration, and user docs when their audiences need them
```

Acceptance does not make the PRD a second contract. Move accepted behavior
to the owning contract, stable rationale to Decisions, and user steps to the
applicable guide, then retire the proposal from active navigation.

## Review gate {#review-gate}

Before implementation, confirm that the proposal does not duplicate an existing
shell, resolver, component family, or data authority. If the design changes
during implementation, update this bilingual proposal before changing the code.
Acceptance requires the focused theme checker and the real documentation site.
It also requires rendered EN/ZH, applicable outputs, accessibility checks, and
responsive review.

## Read-only Studio candidate {#cli-studio-candidate}

Studio is removed from the current CLI on 2026-10-04. Use `oink dev`,
an ordinary editor, and structured `inspect`/`check` reports. The
[R7 record](/docs/design/research/2026-10-03-cli-maintenance-acceptance-r6-r8/#r7)
preserves historical acceptance of the earlier browser implementation.

## Reviewed editing {#cli-editing-candidate}

General source editing is removed from the current CLI. Guarded `new`,
`move`, review records, and baseline plans remain. Old editing plans are
rejected. The [R8 record](/docs/design/research/2026-10-03-cli-maintenance-acceptance-r6-r8/#r8)
remains historical evidence rather than the current command API.

---

Section pages:

- [Backlinks and knowledge graph](/docs/design/proposals/knowledge-graph/): A draft three-stage design to generate backlinks and local or global graph views from ordinary Hugo links.
- [Local search without Lunr](/docs/design/proposals/local-search-engine/): A draft that replaces Lunr with one scanning engine, ranks by BM25, and reads CJK text by script instead of by language tag.
- [Media convergence](/docs/design/proposals/media-convergence/): A draft for the remaining convergence between content images, numbered figures, Landing media, and featured-image selection.
- [Theme roadmap: the Sass exit and the next product stage](/docs/design/proposals/theme-roadmap/): A draft roadmap that puts leaving Hugo's removed LibSass first, then closes small reader gaps, version lifecycle, and a static API reference.
- [Content components expansion: review and shared design](/docs/design/proposals/content-components-expansion/): The reviewed plan for six new content components (Timeline, Update, offline X, Video, Audio, and Map), the shared decisions behind them, and their delivery order.
- [Timeline component](/docs/design/proposals/component-timeline/): A native definition-list timeline for dated or ordered events in prose, with no shortcode and no runtime.
- [Update component](/docs/design/proposals/component-update/): Changelog entries as ordinary headings marked .update, with a date and tags, so every entry joins the outline, search, and Print without a shortcode.
- [Audio component](/docs/design/proposals/component-audio/): Audio through ordinary Markdown image syntax — a titled player with the theme's control row for podcasts, voice samples, and recordings, with transcripts in a folded callout and shared single-active playback when multiple players appear on a page.
- [Video component](/docs/design/proposals/component-video/): Video through ordinary Markdown image syntax — local or object-storage files, muted looping demos that replace GIFs, and privacy-first cards for YouTube, Bilibili, and Vimeo.
- [Map component](/docs/design/proposals/component-map/): A map data fence whose place list is always the content, progressively enhanced with an opt-in OpenStreetMap-ecosystem map through vendored Leaflet and a site-chosen tile service.
- [Social post component](/docs/design/proposals/component-social/): A static, offline card for quoting a post from X or another social platform, written as a `> [!SOCIAL]` callout — author, handle, avatar, date, link, and a Markdown body — with no build-time fetch and no runtime.
- [OINK CLI and the next product stage](/docs/design/proposals/oink-cli-roadmap/): The accepted independent CLI boundary and local first-stage scope, with later adoption, theme, migration, and content-model work still proposed.
- [oink: preview and multi-version serving from a docs repository](/docs/design/proposals/oink-serve/): A draft PRD for one oink binary that embeds Hugo and OINK and runs directly on a Git documentation repository for local preview, production serving, multi-version publishing, single-file packages and online features, with the theme changes it needs.
- [OINK CLI maintenance roadmap](/docs/design/proposals/oink-cli-maintenance-roadmap/): Historical R1–R8 requirements for documentation maintenance and Oink Studio, distinct from acceptance evidence and the current reduced CLI contract.
- [Visual presets and appearance switching](/docs/design/proposals/visual-presets/): Paper and Slate ship in 1.2.0; Ink and Terminal are explicitly enabled experiments awaiting design acceptance.
- [Stabilizing Ink and Terminal for reading](/docs/design/proposals/ink-terminal-stabilization/): A conditional stabilization plan for two distinct reading styles, with a shared footer blocker and explicit bilingual accessibility gates.
- [Ink and News: the written page and the printed page](/docs/design/proposals/ink-news-presets/): A partly implemented proposal that makes Ink the written style and News the printed style, with font coverage, light and dark palettes, detail specifications and acceptance gates.

---

Backlinks:

- [Contributing](/docs/about/contributing/)
- [Design](/docs/design/)
- [Decisions](/docs/design/decisions/)
- [Research](/docs/design/research/)
