decision-framework DF-TEK-2026-0003
Static research experience — F# HTML projection, Markdig, pinned Forma, evidence-based redirects
DF-TEK-2026-0003 — Static research experience
Decisions
- HTML is a tier-3 projection in F# (
Html.fs,Site.fs), built from the same corpus as the contracts. It has no template engine and no JavaScript. The small HTML model escapes text by construction.Trustedmarkup is accepted only from Markdig. - Markdig 1.4.0 (pinned) with raw HTML disabled renders Markdown bodies.
Research bodies are real CommonMark with tables, so a hand-written
renderer would be a new source of defects. Links are rewritten in the
Markdig AST: resolvable repository links become site links,
http(s)/mailtolinks are kept with no opener privileges, and everything else becomes text. - Forma, consumed and not copied: pinned exactly as a dev dependency.
The host takes
--forma <all.css>and emits it unchanged as an asset. Originally Forma 0.2.0 from npm, because 0.3.0 was unpublished (inventory G10). Since WI-0018 (v1.1) the pin is Forma 0.4.1, theechelon-currentchannel version, as its immutable GitHub release tarball. Forma 0.3.0 added owl margins (--ef-stack-space) to.ef-stackon top of itsgap; the pagemainsets--ef-stack-space: 0sogapstays the single spacing mechanism, and the 404 page wraps its heading in aheaderlike every other page, because the stack now zeroes its children's margins. - Relative links everywhere, so the output works under a project Pages
path, a custom domain, or
file://without a base-path setting. - Legacy URLs come from evidence. The previously published
dist/data/research-catalog.jsonmaps each old URL to its source path. The legacy slug algorithm is not re-implemented, because doing so would reproduce its title-derivation defect and guess where the catalog already knows. Stubs usemeta refreshplusrel=canonical. A collision with an emitted page isLostPublishedUrl(blocking). - The project view shows only declared structure. Its purpose comes only
from artifacts declaring
entryPoint: true. Tekmerion never picks one. There is no activity timeline. - Limen is deferred, not faked. Nothing in the slice needs non-native behaviour, so no JavaScript is shipped. The Limen boundary stays empty and the related acceptance criteria stay open (see the experience document).
Alternatives rejected
- Keep Astro for the new pages. Rejected: the target core is F# (TEK-ARC-001), and Astro would re-introduce the Node rendering path whose data model caused the defects found in discovery. The legacy Astro site still works unchanged (TEK-ARC-006).
- A local stylesheet for gutters and
preoverflow. Rejected: doc 18 §3.3 and §3.7 put this in Forma. The gaps are recorded instead. - Client-side rendering from the JSON contracts. Rejected: TEK-EXP-001 requires pages to be readable without JavaScript.
Reversibility
The renderer and patterns are isolated in Site.fs. Forma can be upgraded by
changing the pin. Redirect stubs are regenerated on every build.