Skip to content

Design proposals and PRDs

The canonical bilingual home for OINK PRDs and designs that remain under evaluation.
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

Proposal Current boundary
Local search without Lunr 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 and Components contracts; open tuning questions and a later database backend remain non-normative
Backlinks and 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 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 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 Accepted and shipped in v1.7.0. All six components — Timeline, Update, Social posts, Video, Audio, and 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 and Architecture contracts
OINK CLI and the next product stage 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 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); 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 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 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. Translation comparison ships in 1.5.0 as an accepted decision; its draft is retired.

The table-reading draft is also retired: the accepted decision and component contract define the narrower, .expand behavior released in OINK 1.4.0.

The bulk agent-index proposal was retired after its outputs were released. Architecture defines the accepted behavior. Agent-ready output 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 and Writing a book; dated downstream adoption evidence is recorded in Consumer evidence. 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 defines the required behavior, the generated configuration schema decision records the accepted rationale, and Git history retains the draft text.

CLI workspaces and adapters

Explicit workspaces and optional adapters remain in the current reduced CLI. The current contract defines the command boundary, and the R1–R8 and A18 record preserves the historical acceptance evidence. The finite maintenance roadmap remains retired from active navigation.

Where a new PRD goes

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

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/. Keep temporary logs and generated artifacts outside Hugo content and Git.

Lifecycle

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

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

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 preserves historical acceptance of the earlier browser implementation.

Reviewed editing

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 remains historical evidence rather than the current command API.