Content atlas¶
Content observability and editorial direction for the fleet's content sites, and the committed editorial plan in
_data/editorial.yml.
The control plane already watches the fleet's machinery: workflow runs and their cost (Actions analytics), agent spend and turns (the lake, Phoenix), and what CI said (the log plane). None of that answers what the owner of a content site asks: what does this site publish, about what, how fresh is it, which topics are growing and which were dropped, and does the mix still match the story the site is meant to tell?
The content atlas answers those questions for every content site in the fleet. It also works in the other direction. A human records an editorial plan (a narrative plus pillars with target shares), approves or rejects the atlas's suggestions against it, and files the approved directives as issues in each site's own repository, where that site's content loop or a person picks them up.
content repos ──sync──▶ lake (.dash-lake/fleet.sqlite, content_* tables)
(checkout / cached clone) │
▼ report (offline)
_data/editorial.yml ◀── approve / reject ── Harness Console → Content
narrative, pillars, (or `dash content plan`)
directives │
│ ▼
└──────────── file --apply ──▶ one issue per approved directive
in the site's repo (editorial:directive)
trace ◀── the pull request that answers it (see "The topic loop")
The three files¶
| File | Committed | Owner | Holds |
|---|---|---|---|
_data/fleet.yml → content: |
yes | the contract | which sites are watched and how: scan roots, date semantics, hygiene rules, suggestion thresholds, the directive label |
_data/editorial.yml |
yes | a human | per site: narrative, audience, voice, pillars (match rules and target_share), and directives (the decisions) |
.dash-lake/fleet.sqlite → content_sites, content_docs, content_commits |
no (gitignored) | dash content sync |
the extracted corpus: every document's front matter, body metrics and git history, plus each site's commit stream |
The lake is a cache of other repos, so it never enters git. The plan records decisions, so it goes through review like any other decision. The console and the CLI write the plan in the working tree with its comments preserved (a ruamel round-trip, byte-identical outside the edited lines), and committing the change is the approval of record.
Commands¶
tools/dash content sync # every declared site (local checkout, else a cached blob-less clone)
tools/dash content sync --site it-journey # one site; --no-fetch = local checkouts/cache only
tools/dash content report [--site S] [--json]
tools/dash content brief --site lifehacker.dev
tools/dash content plan show [--site S]
tools/dash content plan approve|reject --site S --key pillar-gap:quests
tools/dash content plan add --site S --key human:my-idea --title "…" [--brief …] [--kind write] [--pillar id]
tools/dash content plan status --site S --key K --status done
tools/dash content file --site S # DRY RUN: what would be filed
tools/dash content file --site S --apply # one issue per approved directive, in the site's repo
tools/dash content trace [--site S] # DRY RUN: each filed directive's issue state and pull request
tools/dash content trace [--site S] --apply # …and record `pr` + `pr_state` in the plan
The same operations run as jobs in the Harness Console (tools/dash console, then the Content tab). They are listed under the content group on the Jobs tab, and content-file with apply asks for confirmation like every other GitHub write.
Where a site is read from¶
sync resolves each site in this order. The first match wins.
- An explicit
checkout:path on the site entry. - A sibling checkout named after the site or its repo under any
content.search_rootsentry. The defaults are.., so~/code/lifehacker.devnext to~/code/bamr87is found, andprojects.DASH_CONTENT_ROOTS(anos.pathseplist) is searched first. - The checked-out submodule.
- A blob-less clone (
git clone --filter=blob:none) cached under.dash-lake/content/<site>and re-fetched on each sync. It keeps the whole commit history, which aging depends on, while downloading only the blobs of the current tree. Public repos clone without a token.
A local checkout is read as it stands, uncommitted drafts included, because those drafts are what an editor wants to see.
What is extracted¶
The atlas reads files the same way Jekyll does. Anything under a _name directory is a collection (pages/_posts/hacks/x.md → collection posts, section hacks). A Markdown file without front matter is not a document. _config.yml's exclude list is honoured, except when a site declares explicit roots:. irony-works needs that exception: its vault/ reaches the build through transplant.mjs, so Jekyll's exclude says nothing about it. A site entry's own exclude: skips pages Jekyll does build but that are structure rather than content: each pattern is a directory prefix or a glob matched against the repo-relative path, and a glob's * crosses directories. bash-365.com uses it for its admin settings pages, its search page, its case-study listing and the section indexes under pages/_posts/ (pages/_posts/*-index.md), the same section indexes its own content lint exempts.
A site can live inside another project's repository. registry: zer0-CMS tells the atlas to read the zer0-CMS checkout (or its cached clone) and roots: [sites/irony-works/vault] names the sub-path inside it, so a site merged into a monorepo keeps its own name, narrative and pillars in editorial.yml; irony-works, wargames and 2005 are declared this way since their original repositories were retired (2026-10-20). Git-derived signals (dates: git, authors, bot share) come from the monorepo's history, which the imports preserved.
For every document the atlas records the title, description, author, collection and section, tags and categories, the publication date (front matter, then the filename's YYYY-MM-DD- prefix, then planted/created), lastmod, and draft status. It also measures words, headings, links, wikilinks and images, excluding code fences and Liquid. From one git log pass it takes the first and last commit dates and the commit count. Each commit is classified as human or bot by its author.
Two details matter for correct numbers:
- Shallow clones. The boundary commit of a
--depthclone "adds" every file, which would date the whole site to the day of the clone. The atlas skips boundary commits (it reads.git/shallow), and those files fall back to their front-matter dates. dates: git. In a knowledge base like2005orchina, the front-matterdateis the date of the subject (an article about 2005 is dated 2005). Set on a site,dates: gitdates publication by first commit instead.
What is analyzed¶
The analysis is pure SQL and Python over the lake: offline, deterministic, and fixture-tested.
- Totals: published documents, drafts, words, documents new in the last
recent_days, last published, median age since last update, stale documents (untouched forstale_days), and documents with hygiene issues. - Activity: documents published per month over 24 months, and content commits per week over 26 weeks, split into human and bot/agent. On an autopilot site, the bot share is the number to watch.
- Aging: a histogram over
aging_buckets. - Structure: collections and sections, each with document count, recent count, stale count and newest date. Authors, including the persona bylines on lifehacker.dev.
- Topics: top tags, each with its trend (last window vs the window before), plus rising and fading tags. A shared-topics table lists tags covered by two or more sites: candidates for cross-linking between sister sites, or signs that two narratives are competing for the same reader.
- Hygiene:
frontmatter-invalid,missing-<key>for each key inquality.require,description-lengthoutsidequality.description, andthinbelowquality.min_words.qualitycan be overridden per site because the schemas genuinely differ: irony-works entries have nodescription, it-journey's CI requires 120–160 characters, and bash-365.com's CI requiresdateandtagson dated posts only, so its atlas requires onlytitleanddescriptionand stops asking its evergreen services, toolkit, about and case-study pages for a date or tags. - Pillar coverage: for each pillar, the documents it matches (any of
tags,categories,sections,collections,keywordsin the title or description, andpathsprefixes), its share of all documents, its share of recent work compared withtarget_share, and the age of its newest piece. Documents that match no pillar are reported along with their top tags.
Suggestions and the approval loop¶
Suggestions are deterministic and computed from the numbers above. Each one has a stable key, so a decision stays in force across re-syncs, and a key the plan already carries, in any state, is never suggested again.
| Key | Fires when | Kind |
|---|---|---|
cadence |
nothing published for more than cadence_days |
cadence |
pillar-gap:<id> |
recent share < target × gap_ratio |
write |
pillar-over:<id> |
recent share > target × over_ratio (with ≥ 3 recent pieces) |
hold |
pillar-stale:<id> |
the pillar's newest piece is older than stale_days |
refresh |
define-pillars |
the site has no pillars yet (lists the top observed tags) | pillar |
unmapped |
more than unmapped_share of documents match no pillar |
pillar |
refresh:<path> |
the oldest substantive stale documents (refresh_top per site) |
refresh |
hygiene:<issue> |
any document has that front-matter issue | fix |
A directive moves through these states:
proposed ──approve──▶ approved ──file --apply──▶ filed ──issue closed──▶ done
│ │ │
└──reject──▶ rejected ◀──────reject─────────────┘ (rejected/done → reopen → proposed)
file dedupes on a hidden marker (<!-- editorial-directive key=… site=… -->) against every issue carrying the label, open or closed. A directive filed from another machine, or one whose plan edit was never committed, is re-linked rather than filed twice. A closed issue marks its directive done on the next file --apply pass. The issue body quotes the site's narrative, so whoever picks it up in the site's repo sees the direction along with the task.
The topic loop¶
Filing a directive is half the loop. The other half is the site writing the piece and the hub seeing that it did:
plan add / plan approve ──▶ file --apply ──▶ issue (editorial:directive) in the site's repo
│
the site's gardener ◀─────┤─────▶ a zer0-CMS brief (directives automation)
▼
pull request "Closes #n" ──merge──▶ issue closed
│
trace ◀── issue timeline (cross-referenced PRs) ◀─────────────────────┘
└─▶ plan: pr, pr_state (draft · open · merged · closed); next file --apply: done
To launch a topic:
tools/dash content plan add --site S --key human:<slug> --title "…" --brief "…"(or approve a suggestion withplan approve). Commit_data/editorial.yml.tools/dash content file --site S --applyopens the issue in the site's repo. The same pass runstrace.- The site's own lane takes it. On bash-365.com that is the gardener (bash-365/bash-365.com#73), which needs the repo variable
CONTENT_GARDENER_ENABLEDset totrue. On a zer0-CMS managed site it is adirectivesautomation (bamr87/zer0-CMS#86) (a schedule that pulls the site'seditorial:directiveissues into briefs), which starts paused and has to be resumed by a person. Either way the work comes back as a pull request whose body saysCloses #<n>. - A human reviews and merges the pull request. GitHub closes the issue.
tools/dash content trace --site S --apply(or the nextfile --apply) records the pull request and its state. The nextfile --applysees the closed issue and marks the directivedone.
trace reads each filed directive's issue timeline (gh api repos/<repo>/issues/<n>/timeline) and keeps only cross-references from pull requests in the issue's own repository, under the owner in the issue URL or the site's declared repo, so a hub PR that only mentions the issue does not count. When several pull requests reference the issue, a merged one wins over an open one, open over draft, and draft over closed. Among equals the newest wins. It is read-only toward GitHub. A dry run prints one row per filed directive. --apply writes pr and pr_state into the plan, through the same validated decide path as every other plan write, and only for directives whose issue has such a pull request. A directive that is done with a merged or closed pull request is settled and is not read again.
report, brief and the Content page (the Directives tab, /api/content in_flight) show the result as an "in flight" block with one row per directive that left the hub: the directive, its issue (open while filed, closed once done), the pull request and its state, and whether it is done.
Reach. The hub's issue pipeline sweeps only bamr87-owned repositories. A directive filed in a site under another owner (bash-365.com is owned by bash-365) is worked by that site's own lane, not by the hub's tiers, and trace is the only way the hub sees it come back.
Seeding and tuning the plan¶
The committed _data/editorial.yml was seeded on 2026-09-26 from each site's own CLAUDE.md and its observed mix. The targets are starting values, not measurements. The first report on that seed already showed things worth deciding:
- it-journey: machine-authored quest reports were 77% of new work against a 20% target, and the curriculum (quests) was 22% against 60%. The perfection loop's output was crowding out the curriculum.
- lifehacker.dev: docs made up 25% of recent work against a 10% target, and The Wire was under target.
- irony-works: four nursery drafts had front matter that does not parse as YAML. An unquoted
domain: …colon breaks the whole mapping, so any YAML reader of those entries, Jekyll included, gets nothing from them.
To tune: move a target on the Content tab (Save targets), re-match a pillar, or reject a suggestion that does not apply. The wargames mirror, for example, carries a pre-rejected cadence, because a vendored mirror changes only when upstream does.
Adding a site¶
Add an entry to _data/fleet.yml → content.sites. A registry project needs only name:, because the repo, live URL and branch come from _data/projects.yml. A site outside the registry also needs repo:. Run tools/dash content sync --site <name>, then write its narrative and pillars on the Content tab, which creates the entry in _data/editorial.yml. test_content_atlas.py fails if the plan names a site the contract does not declare.
Limits¶
- Read-only on content. Only
file --applywrites to a site repo, and it writes an issue, never a commit.traceonly reads. The site's own loop and a human still decide what ships. - Local-only. Nothing is published. The lake stays on this machine, like the rest of the local stack (docs/HARNESS-OPS.md, "The local stack").
- Issues are the delivery channel. Issues reach every site today: it-journey's issue autopilot and lifehacker.dev's triage both consume them. A per-site adapter would let a directive feed a site's native queue directly, for example lifehacker.dev's
_data/backlog.ymlor irony-works' domain rotation. None exists yet.