ADR 0012 — Content lives in lifehacker.dev: five content sites leave this repository for its agencies, and zer0-CMS is the platform that manages them¶
lifehacker.dev becomes the content source and zer0-CMS the platform: the five content sites under
sites/(1987, 2005, drsai, irony-works and wargames) move to lifehacker.dev'sagencies/, their ledger rows becomespecified, the platform's tests read them from there, and the zer0 demo sites stay.
- Status: accepted 2026-11-24, when the owner merged the pull request that carried it (#107), after lifehacker.dev's import (bamr87/lifehacker.dev#829) as decision 8 required; proposed 2026-11-22. It is numbered 0012 because 0011 is taken by a record on a local branch that has not merged (
feat/design-system, the design-system tokens), so the two cannot collide whichever lands first. - Amends: ADR 0002 — decision 1 ("zer0-CMS is the only place work happens"), decision 4 (the one Pages deploy, which listed
/drsai/and hadyear-of-ai.github.iobuildsites/2005from here) and decision 5 (DB-first, site by site), for these five sources only. ADR 0006 — decision 10 (a source directory goes only when its capabilities have moved; ADR 0008 addedspecifiedfor a source the owner deleted, and this record adds a source the owner moved) and decision 13 (a site's files are generated from the database and committed so that git keeps the history: for these five, the git that keeps it is lifehacker.dev's), for these five sources only. Every other decision of both records stands, and for every other source both stand unchanged. - Inputs: the owner's direction of 2026-11-22, in their words: "review the site directory in zer0-cms, and consolidate/migrate all the content into lifehacker.dev as different sub-agencies. the goal is to transform lifehacker as the content source, and zer0-CMS is the platform. year-of-ai and ai-world-view should also be under lifehacker. the zer0 demosites should stay in zer0-cms."
- Where:
sites/1987,sites/2005,sites/drsai,sites/irony-worksandsites/wargames(removed); their projects inworkspace.yml; the workflowsdrsai.ymlandirony-works.yml(deleted),sites.yml,pages.ymlandcontent.yml; thesite-1987,site-2005,site-drsai,site-irony-worksandsite-wargamesrows of../plan/capabilities.yml;../plan/agencies-spec.md;content/tests/agencies.pyand the tests that read through it.
Context¶
ADR 0002 made this repository the only home of everything merged into it, and ADR 0006 absorbs every merged repository with its content and capabilities, holds content in the database and generates each site's files. The nine sites under sites/ were treated alike, and they are two different things. Four are the zer0 stack's own demonstration sites — zer0-pages, zer0-pages-remote and the two installer demos — which exist to exercise the platform and the Jekyll-theme option. Five are bodies of content with a subject, a readership and tooling of their own: a knowledge base that grows itself, another from the year-of-ai lineage, a picture-book site with a story engine, an encyclopedia with a germination engine, and a study site re-synced from an upstream.
Keeping those five here made the platform's repository the place their content is written, and made every content change a change to the platform. The owner separates the two roles: one repository is the content source, one is the platform. The platform already has that relationship with other site repositories — a checkout under SITES_DIR that it registers, syncs, writes back under a stale-write guard and checks with the doctor (PLAN G4) — so the five become what those are: external sites.
Two facts about the state on 2026-11-22 shaped the record. The original repositories of four of the five no longer exist (the GitHub API answers 404 for bamr87/1987, bamr87/drsai, bamr87/irony-works and bamr87/wargames; year-of-ai/2005 is archived and still serves its last build), so this repository held the only copy of those trees. And this repository's Pages deploy was never switched on (no Pages site, no PAGES_DEPLOY_ENABLED variable), so the sites it routed were built and checked on every pull request and served from nowhere.
The owner's direction also places year-of-ai and ai-world-view under lifehacker.dev. Neither is held here beyond sites/2005, so that part is lifehacker.dev's own record.
Decisions¶
| # | Decision | Mechanism that enforces it |
|---|---|---|
| 1 | lifehacker.dev is the content source; zer0-CMS is the platform. A content site's file tree lives in bamr87/lifehacker.dev, each a self-contained tree under agencies/, registered in that repository's _data/agencies.yml. zer0-CMS imports, round-trips, renders and manages those trees as external sites, reached through SITES_DIR like any other site repository, and no longer holds them in its monorepo. |
bin/zer0 check (containers_registered): a directory under sites/ that workspace.yml does not register fails, and the five are no longer projects. tools/check_absorption.py: their theme_ratchet: prefixes are gone, so a configuration file naming the theme under sites/2005/, sites/drsai/, sites/irony-works/ or sites/wargames/ is new theme dependency outside the ratchet and fails. Beyond that, review: this record and the ledger say where each tree belongs. |
| 2 | What moves, and where. Whole, from this repository at 9b68af57 — content, site configuration and each site's own tooling: sites/1987 → agencies/1987; sites/2005 → agencies/year-of-ai/2005; sites/drsai → agencies/drsai; sites/irony-works → agencies/irony-works; sites/wargames → agencies/wargames. |
The import and its record are lifehacker.dev's (_data/agencies.yml: source commit, file count and digest per tree). Here the trees are removed, and agencies-spec.md § Where each source lives keeps the mapping; they stay recoverable from this repository's history (git archive 9b68af57 sites/<name>). |
| 3 | What stays. sites/zer0-demo-cookbook, sites/zer0-demo-garden, sites/zer0-pages and sites/zer0-pages-remote, and everything under apps/ and packages/, untouched. ADR 0002 and ADR 0006 hold for them as before. |
Their workspace.yml projects, workflows and ledger rows are unchanged; bin/zer0 check and tools/workspace/tests/test_real_manifest.py. |
| 4 | The five sources' open rows are specified. Each of the 14 rows names this decision in decided_by and its section of agencies-spec.md in spec: what the capability did here, where its source lives now, where the platform stands and what it still owes. Each keeps its target: the platform owes it. specified therefore widens from "the owner deleted the source" (ADR 0008) to "the owner took the source out of this repository — deleted it, or moved it to another one". A source's path: keeps naming the directory this repository held; it never points at the new home, because its absence is what the deletion rule tests. |
tools/check_absorption.py, its code unchanged: a specified row needs decided_by, a spec file that exists and a target that is still a platform capability; a source whose path is gone with a row missing or partial fails. tools/tests/test_check_absorption.py. |
| 5 | The platform keeps its corpus, outside its repository. The cases that round-trip the moved sites, cut their bodies into blocks, hold their URLs to the Ruby lane's recording and check an ABC export with drsai's own tool stay in the platform's suite. They read the trees from an agencies directory — ZER0_AGENCIES_DIR, else a sibling checkout ../lifehacker.dev/agencies — resolved in one place. content.yml checks agencies/ out of bamr87/lifehacker.dev (a public repository, at its default branch) in both of its jobs. A tree that is absent skips its cases with a reason that names the variable. |
content/tests/agencies.py; content/tests/importers/test_jekyll.py::test_the_real_sites_round_trip_byte_for_byte, content/tests/importers/test_blocks.py, content/tests/distribution/test_lane.py::test_every_site_gets_the_urls_the_ruby_lane_gave_it and content/tests/books/test_abc.py; content.yml, which prints the trees it found. |
| 6 | The recorded builds stay, as the parity record. web/site/fixtures/{2005,drsai,irony-works,wargames}/ are kept unedited. Nothing here rebuilds those sites, so nothing compares against them; whoever publishes one next reproduces its recording or re-records it and says why. |
AGENTS.md (a recording is re-recorded with tools/site_manifest.py, never edited); tools/site_manifest.py compare. |
| 7 | The workspace and CI follow. The five projects leave workspace.yml; drsai.yml and irony-works.yml are deleted; sites.yml builds the three sites that remain in it; pages.yml, whose plan is workspace.yml's routes, no longer builds /drsai/ and /wargames/. Every site left on the Jekyll-theme option is routed, so pages.yml is the one comparison with a recording. |
bin/zer0 check (workflows, routes, paths_exist); tools/tests/test_site_manifest.py (test_a_difference_fails_a_pull_request_for_every_site_on_the_option, which now fails if a site on the option is not routed). |
| 8 | Landing order: lifehacker.dev's import merges first, this change second. CI here is green in both states — before agencies/ is on lifehacker.dev's main the corpus cases skip, afterwards they run — so the order is the owner's to keep. It is a safety rule, not a convenience: until the import is on lifehacker.dev's main, this repository is the only place four of the trees exist outside history. |
None in CI, by design. Before merging this change: gh api repos/bamr87/lifehacker.dev/contents/agencies lists the trees. content.yml prints a notice for each tree it does not find. |
Consequences¶
What it costs, plainly:
- This repository's CI no longer builds those five sites. Gone with them: their builds through the Jekyll-theme option; the comparison of each build with its recording (
sites.ymlfor 2005,irony-works.yml,pages.ymlfor drsai and wargames); drsai's story-engine lint and tests on three Pythons and its ABC drift check. None of that runs anywhere until lifehacker.dev, or the platform over an external checkout, runs it. /drsai/and/wargames/leave this repository's Pages plan. No public URL changes, because the deploy never ran.- The round-trip corpus for those sites lives in another repository. It floats on lifehacker.dev's default branch: a change there can turn
content.ymlred here with no change here, and nothing in this repository's history says which bytes a past run read. Where a tree is absent — before the import lands, or after lifehacker.dev renames an agency — its cases skip rather than fail, visible as a notice and in pytest's count. And the suite now runs one script from that branch, drsai'stools/import_abc_book.py, as the oracle of the ABC export: code this repository's review no longer sees, run in a job that holds a read-only token. - Publishing the agencies from lifehacker.dev is not built yet, and is the owner's next decision. Until it is made, drsai, irony-works, wargames and 1987 have no public site at all, and 2005 is served, frozen, by the archived
year-of-ai/2005. - The Jekyll-theme option cannot build an external checkout. It builds a project
workspace.ymlnames from the files this repository's git tracks. Rendering an agency through the platform is owed (agencies-spec.md). - The moved trees still name commands that resolved into this repository (
python3 ../../tools/jekyll_theme.py build drsai). They were moved unedited; correcting them belongs where they live. - Two recordings still describe the five sites as they were here: the workspace tool's golden recordings, frozen at commit
40c904b9, and the distribution lane's recording of the Ruby lane. Both are records of a past tree and are unchanged. - ADR 0002's cutover ends for these five. C1, C4, C6 and C7 have nothing left to do for them here, and their rows leave
../MONOREPO.md§ What still depends on the original repositories.
Open — the owner's decisions¶
- Where the agencies publish, and at which URLs — lifehacker.dev's own Pages, the platform's Jekyll-theme option over an external checkout, or the React renderer — and whether drsai, irony-works and wargames return at the URLs their recordings hold. lifehacker.dev has since answered for one of them: on 2026-11-23 it published Wargames as a collection of its own site under
/wargames/(its ADR 0003), soagencies/wargamesis a back office with no pages, and the Wargames cases left this suite (agencies-spec.md). - Pin or float.
content.ymlreads lifehacker.dev's default branch. Pinning a commit (as the theme's docs fixture is pinned at a tag) would make a run reproducible, a corpus change deliberate and the one script the suite runs from there a reviewed one, at the price of a bump per change. - Skip or fail. Once the import has landed, a missing tree could fail the suite instead of skipping.
- Discovery depth. The platform discovers Jekyll roots one or two levels under
SITES_DIR. From a lifehacker.dev checkoutagencies/year-of-ai/2005is three levels down: it registers by path and is not discovered (agencies-spec.md§ How the platform reaches an agency today). - 1987's shape. It has no
_config.yml, so the platform can neither register nor import it.