Documentation
Configuration reference
Everything Heddle knows about your company, and how far it may act, lives in a heddle/ folder in your own site's repository, so every change goes through a pull request you can review. company.json holds the facts it may claim, people.json who approves what, autonomy.json how far each agent may act and site.json how your build is read, among 17 files. heddle validate tells you when something is missing.
Four files are required. heddle/company.json, heddle/people.json, heddle/autonomy.json, heddle/personas.json.
The rest are optional, and every optional field has a default. heddle validate checks them all.
heddle/company.json
Company facts, required. The company's facts with their evidence, covering what it sells, where, to whom, and what may and may not be said about it. Every agent and check reads it, and nothing Heddle writes may claim what is not here.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
name |
string | yes | The company's name as readers see it. Used in titles, llms.txt, JSON-LD, reports and every agent prompt. | |
legalName |
string | The registered legal name, when it differs from name. The brand kit and the Organization markup use it. | ||
url |
string | yes | The live site's address, https://. The audit, the agents and llms.txt read the site from it. | |
kind |
one of: service, product, both | yes | service, product or both. Decides which page patterns suit the company and how llms.txt lists the offerings. | |
market |
object | yes | Where the buyers are. Research reads search volume and results pages for this country and language. | |
market.country |
string | yes | Two-letter country code, such as US. Search data is read for this country. | |
market.language |
string | yes | Two-letter language code, such as en. | |
market.regions |
list of strings | Regions inside the country the company serves, when it serves only some. | ||
description |
object | yes | How the company describes itself, in two lengths. llms.txt and the agents use them verbatim. | |
description.oneLine |
string | yes | One sentence: what the company does and for whom. The quote line of llms.txt. | |
description.short |
string | yes | A 70 to 160 character description, for meta descriptions and directory listings. | |
offerings |
list of objects | yes | What the company sells, each with the phrases buyers type. Research, strategy and the page planners start from these. | |
offerings[].id |
string | yes | A short stable id for the offering. | |
offerings[].name |
string | yes | The offering's name as buyers see it. | |
offerings[].kind |
one of: service, product | yes | service or product. | |
offerings[].page |
string | The site path that sells this offering. llms.txt lists it under Services or Product. | ||
offerings[].buyerPhrases |
list of strings | yes | What a buyer types the week before they get in touch. | |
offerings[].price |
object | Only a price the site itself states. Agents may quote it; none is ever estimated. | ||
offices |
list of objects | yes | Where the company has offices. llms.txt lists them, and location pages may only claim a presence listed here. | |
offices[].city |
string | yes | The office's city. | |
offices[].region |
string | The state or region. | ||
offices[].country |
string | yes | The country. | |
offices[].headquarters |
boolean | true for the head office. The headquarters city is pinned into every location family's sibling list. | ||
claims |
object | yes | What may be said with evidence, and wording that is never allowed. The claims check fails a page with a forbidden pattern, and the agents may only state allowed claims. | |
claims.allowed |
list of objects | yes | Claims the company may make, each with its evidence. | |
claims.forbidden |
list of objects | yes | Patterns that fail the build wherever they appear, each with the reason. | |
clients |
object | yes | Which clients may be named, what may be said about each, and engagements that may be described without a name. Agents never name a client not listed here. | |
clients.nameable |
list of objects | yes | Clients that may be named, with exactly what may be said and the evidence. | |
clients.unnamed |
list of objects | Engagements that may be described but never attributed to a named client. | ||
partners |
list of objects | Partner relationships, what may be said about each and what never, with evidence. The claims and voice checks and the writing agents hold copy to it. | ||
partners[].evidence |
string | yes | A URL, a document, or who confirmed it and when. No evidence, no claim. | |
competitors |
list of strings | Competitors' domains. The authority, paid and research agents compare against them; propose --competitors reads what they rank for. | ||
search |
object | How the company is read in search tools. | ||
search.searchConsoleProperty |
string | The Search Console property, sc-domain:<domain> or a URL prefix. Default: sc-domain: and the site's domain. | ||
search.brandPattern |
string | Regex matching branded queries, so they are split from non-brand. | ||
search.indexnowKey |
string | An IndexNow key kept with the company's facts. site.json indexing.key is where heddle indexing key writes it. |
heddle/people.json
People, required. Who approves the agents' work, who writes, who signs outreach and who gets the reports. An agent above report with no approver here only reports.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
approvers |
list of objects | yes | People who approve agents' pull requests and drafts through signed links, each with the agents they approve for. | |
approvers[].name |
string | yes | The approver's name. | |
approvers[].email |
string | yes | Where the approval links are sent. | |
approvers[].approves |
list of values | yes | Agent ids this person approves. validate fails an agent at propose or merge that nobody approves. | |
authors |
list of objects | People who write under their own name. The author pages, bylines and Person markup come from here. | ||
authors[].id |
string | yes | A short id used in post front matter and the author page's path. | |
authors[].name |
string | yes | The author's name as it appears in the byline. | |
authors[].role |
string | yes | The author's role, shown on the author page. | |
authors[].sameAs |
list of strings | The author's own profiles elsewhere (LinkedIn, GitHub), for the Person's sameAs. The author page on the site is the Person's url. | ||
outreachSigner |
object | The person whose name signs pitches to publications. Required before the authority agent runs at propose or merge. | ||
reportsTo |
list of strings | yes | Email addresses that get every run's report, the watchdog's alerts and the canary's failures. |
heddle/autonomy.json
Autonomy and budget, required. How far each agent may act (off, report, propose, merge), its kill switch and schedule, the monthly budget and floors, and where the agents' models and approvals run. playbook/autonomy.md explains each level.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
budget |
object | yes | Money the agents may spend. They read the remaining credit before each run, stop at the floor and never top up. | |
budget.monthlyUsd |
number | yes | The monthly budget for model and data spend, all agents together. | |
budget.floorUsd |
number | yes | Agents stop drafting when the AI Gateway's credit is at or under this. 0 (the default since 16 October 2026) spends credit until none is left. Must be below monthlyUsd. | |
budget.lowCreditUsd |
number | 15 |
Under this balance, with credit still left, the watchdog warns the owner once a day that a top-up is due soon. Nothing is paused. | |
budget.dataFloorUsd |
number | Agents skip paid search data when DataForSEO's prepaid balance falls under this, and say so. | ||
budget.spend |
object | The AI spend governor's caps for this site, in dollars (lib/agents/spend.mjs). A person's work is never paused by a cap, only by the ceiling; agent work degrades at degradeAt of its tightest cap and defers at 100%; a check (checks) is never held. agents (each agent's daily cap, by id), other (an agent not named), daily and monthly (this site's share of the gateway, tagged spend only), units (a unit of work's budget, by agent), fallbacks (the cheaper model an agent may degrade to, by agent), fleetMonthly (every site's budget), fleetDaily (every site's 24-hour alert line, never a stop), ceiling (the multiple of the monthly budget that stops everything), runaway (the line past which a unit's calls are refused), fleetAlerts (this install emails the fleet's alerts). The AI_SPEND_CAPS variable overrides them. Unset: small defaults until someone sets them. | ||
promoteAfterCleanRuns |
integer | 5 |
How many clean runs in a row an agent configured at merge needs before it merges; until then it proposes. One unclean run resets the count. Default 5. | |
recommendations |
object | The recommendations ledger, heddle/recommendations.json (playbook/recommendations.md) | ||
recommendations.maxOpenDays |
integer | 7 |
The watchdog flags a recommendation still open after this many days | |
agents |
object | yes | One entry per agent in lib/agents/suite.mjs. heddle validate warns when one is missing. | |
runtime |
object | Where the agents' models and approvals run. Only environment variable names live here, never values. | ||
runtime.gateway |
object | Cloudflare AI Gateway on unified billing, through which the agents reach Claude. | ||
runtime.route |
object | Optional, off by default: where the agents' Claude calls go before the AI Gateway (lib/agents/route.mjs, playbook/agents-runtime.md). Active only when the MODEL_ROUTE variable is "databricks" and the call's {repo, agent} has an endpoint here; anything else goes straight to the gateway. | ||
runtime.models |
object | Claude model per role. seo, writer and editor have defaults (Sonnet 5.5, chosen by dollars per publishable draft: playbook/models.md); any agent id may name its own, and falls back to editor. Never an Opus model for an agent loop. | ||
runtime.effort |
one of: low, medium, high, none | "low" |
Thinking effort for agent model calls: adaptive thinking at this effort on models that take it. Low unless a bake-off measured a lower dollars per publishable draft at another level. "none" sends no thinking fields (only for a model that rejects them; Sonnet 5.5 refuses thinking disabled). | |
runtime.approvals |
object | Signed approval links. The secret is shared with the install's Worker (templates/worker). | ||
runtime.notify |
object | How reports and approval links reach people. Without a key they are written to the report and the pull request only. | ||
runtime.leads |
object | Where the follow-up agent reads new enquiries: the site Worker endpoint and the bearer token variable. | ||
runtime.video |
object | The video agent's settings. Secrets are named by variable, never written here. playbook/video.md lists the accounts an install needs. | ||
runtime.ideas |
object | Blog ideas by email (playbook/ideas-by-email.md). Authors are people.json authors with an email; only they may file ideas. | ||
runtime.gate |
object | The required gates check. With the Site Agents app (lib/agents/identity), an agent's pull request runs heddle-check.yml like anyone's and a merge waits for the checks the base branch requires (merge-when-green); context is the check waited for when the protection cannot be read. Without the app (the fallback), the agent runs it on its own pull request before anything merges (lib/agents/gate.mjs): the build, then heddle check --strict, then a gates commit status. |
||
runtime.runner |
object | The Workflow runner (agents.json runner "workflow"): the site Worker starts each slot's job, waits for its signed report and records what it saw. See playbook/agents-runtime.md. | ||
runtime.mcp |
object | The site's MCP server (playbook/mcp-server.md). | ||
publish |
object | How agent-sourced posts (the writer's drafts of the content agent's briefs) publish. Since 12 October 2026 none publishes itself unless selfPublishExplainers opts the content agent's explainers in (2 November 2026): each waits for the head of content's signed approval, after a preview, the Google-guidelines panel and a reply that can correct it (playbook/content-policy.md). A post a person asked for (ideas by email, an MCP draft) waits for that person, under every setting. | ||
publish.agentSourced |
one of: auto, approve | "approve" |
approve: the head of content approves each one. "auto" is retired (12 October 2026) and read as approve; heddle doctor fails it. | |
publish.selfPublishExplainers |
boolean | false |
Off by default. true: the content agent's own explainers (never a post a person asked for, an answer to a search or a landing page) merge themselves, with the writer at merge level and within the pace budget, once every check is green: every house gate ran and passed, the helpful-content floors, the Google-guidelines panel on the final text (calibrated), the fact-check's clean reading of the exact bytes, indexable, no overlap. No draft verdict is recorded, so the site's own checks run every publish gate on the commit, and the idea's record is read again just before the merge. A draft that is not green goes back to the writer with what failed, with no email; the third failed attempt goes to the owner once (the review email with what still fails, or held with an email when its house gates failed) and waits for them, never drafted again on its own (decided 2 November 2026, playbook/content-policy.md rule 2). | |
publish.dailyFloor |
integer | 0 |
Posts the writer aims to publish a day. A day's queue that cannot reach it is reported, so the content agent's briefs are looked at. | |
publish.bylines |
list of strings | Retired (12 October 2026): a person's name goes only on a page that person reviewed, so standing consent is ignored and heddle doctor warns while it is set. | ||
publish.informationGain |
object | What happens to an agent-sourced post that only restates its sources: read beside its sources and the company's first-hand material (company.json claims with evidence, its counts, the brief's firstHand notes) by the helpful gate's information-gain question. Such a post never ships indexable. | ||
publish.fresh |
object | Automated content is fresh commentary only (12 October 2026): the content agent drafts from a story, release or announcement only inside this window, and reports measured demand as gaps for the ideas inbox. | ||
pace |
object | The publishing pace governor (lib/agents/pace.mjs): one budget for new indexable pages and substantial edits to live pages, shared by every agent that merges its own work. Over the budget an agent's pull request waits for a person; it never merges. A person's merge is never blocked or counted. Defaults: 1 a day, 3 a week, 1 substantial edit per run, less on a young site. | ||
pace.perDay |
integer | 1 |
New pages plus substantial edits that agents may merge in any rolling 24 hours, across every agent. | |
pace.perWeek |
integer | 3 |
The same, in any rolling 7 days. | |
pace.editsPerRun |
integer | 1 |
Substantial edits to pages that are already live one agent run may merge. A substantial edit adds a heading, adds or removes edits.words words, or changes edits.changedShare of a page's paragraphs; a retitle or a link is not one. | |
pace.queue |
object | The release queue (heddle release, lib/agents/release-queue.mjs): pull requests a person labels go live oldest first, at most perRun a run, each only when this pace budget has room. | ||
pace.launched |
string | The day the domain went live, for the young-site budget. Default: site.json surface.launched. | ||
pace.young |
object | The lower budget for a young site: under ageDaysUnder days old, or under indexedShareBelow of the sitemap indexed (from the watchdog's index-health record), or with neither known. | ||
pace.edits |
object | What makes an edit to a live page substantial, so it counts against the budget. | ||
indexHealth |
object | The watchdog's daily index-health watch (lib/agents/index-health.mjs): the site's Search Console impressions on final days, and URL Inspection of every sitemap URL once a week. A site-level drop pauses every publishing agent at pauseTo, sends one email naming the evidence and the step only a person can take (Manual Actions), and holds until resumedAt. Needs a Search Console reader; without one it reports unknown. | ||
indexHealth.enabled |
boolean | true |
Run the watch. Default true. | |
indexHealth.maxInspectPerDay |
integer | 300 |
URL Inspection calls a day at most; the slice is the sitemap divided by seven, so every URL is read within a week. Google allows 2,000 a day per property. | |
indexHealth.lagDays |
integer | 3 |
The last this many days are never read as final, whatever Search Console says, so its normal lag is never read as a drop. | |
indexHealth.impressions |
object | The impressions drop, against the median of the baseDays final days before, on a site whose median is at least minMedian: sharp, the last final day at or under sharpShare of it; or sustained, days final days in a row at or under dropShare. | ||
indexHealth.index |
object | The index-side drop: pages that were indexed and are not now, or the share not indexed jumping over a week. | ||
indexHealth.pauseTo |
one of: off, report, propose | "report" |
The level every publishing agent is held at while paused. | |
indexHealth.resumedAt |
string or null | Set by a person, the day publishing resumes: a pause recorded on or before it is lifted, and the watch reads only evidence from that day on. | ||
indexHealth.unreadableDays |
integer | 3 |
Days Search Console may be unreadable before a person is told. | |
review |
object | Who may sign off page copy in the review gate (site.json review). Read from the base branch. | ||
review.content |
one of: person, model | "person" |
"model": a clean model editor reading of the added prose against company.json (the content editor's must-change question) stands in for the content-reviewed label, and an agent's pull request is labelled when it passes. Positioning always needs a person. |
heddle/personas.json
Personas, required. The readers the site is written for. The buyer and helpful gates read each page as its persona (site.json pagePersonas says which), and the writing agents draft for them.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
id |
string | yes | A short id that site.json pagePersonas refers to. | |
who |
string | yes | Who this reader is, in a sentence: role, company size, situation. | |
wants |
string | yes | What they came to the page to get done. | |
knows |
string | What they already know, so pages do not explain it to them. | ||
doesNotKnow |
string | What they do not know yet, so pages explain it instead of assuming it. |
heddle/targets.json
Tracked search targets, optional. The searches the site is tracked on, each with the page meant to win it and its measured demand. heddle research track and the SEO agent read positions for these.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
term |
string | yes | The search, exactly as people type it. | |
page |
string | yes | The site path built to win it. A different page of ours ranking instead is reported. | |
location |
string | For place terms, the location to read from, e.g. 'Dallas,Texas,United States'. | ||
volume |
integer or null | yes | null when the tool returned nothing: unknown, never zero. | |
cpc |
number or null | Cost per click when measured, in US dollars; null when unknown. | ||
measuredOn |
string | yes | The day the volume and cost were read, YYYY-MM-DD. | |
unverified |
string | Why the volume is not trusted yet: a close-variant bucket it shares with phrasings that mean something else, or an acronym whose results page is another meaning. The number stays as measured; the note stops it steering. |
heddle/known-errors.json
Known errors, optional. Mistakes that have shipped before, what is true instead and where each was seen. The known-errors check fails a page that repeats one with a pattern, and the writing agents are given the list so they avoid it.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
id |
string | yes | A short stable id for the mistake. | |
when |
string | yes | The situation the mistake turns up in, such as describing partner status. | |
truth |
string | yes | What is true instead. The agents are told this. | |
pattern |
string | Optional case-insensitive regular expression that finds the mistake. Without one, it is a judgement for a reader and is listed as unchecked. | ||
seen |
list of strings | yes | Where and when it shipped or was caught, as evidence. |
heddle/topics.json
Content beats, optional. What the content agents watch and write about, with the beats and their feeds, the commercial phrases, what to leave out, the questions buyers ask and the pages to link to.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
beats |
list of objects | yes | Subjects the content agent watches, each with the feeds it reads and the question that decides whether a story fits. | |
commercialTerms |
list of strings | The company's own commercial phrases. The content agent seeds from them (else from targets.json), and the SEO and strategy agents add them to their plans. | ||
exclude |
list of strings | Words that rule a topic out. The content agent drops any suggestion containing one. | ||
buyerQuestions |
list of objects | The questions buyers put to answer engines ("best X for Y", "how do I..."), each with the page that answers it. agent-ready fails a page that does not ask the question in a heading or an FAQ, and warns about a question no page answers yet. | ||
buyerQuestions[].volume |
integer or null | Monthly searches where measured; null when unknown, never 0 for unknown. | ||
buyerQuestions[].source |
string | Where the question came from: a measured search, a prompt seen in an answer engine, a sales call. | ||
priorityPages |
list of objects | Pages posts should send in-text links to (the SEO agent's link editor), each with the searches it is built to win. Without it, every page in targets.json is a priority page. |
heddle/voice.json
Voice, optional. How the company talks and the words it avoids. The voice check fails public pages that use internal language or avoided spellings, and the writing agents are given the same lists.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
internalLanguage |
list of objects | Words the company uses about itself that buyers do not, each with what to say instead. The voice check fails them on public pages. | ||
nameAvoid |
list of strings | Wrong spellings of the company's or products' names. The voice check fails them. | ||
ownSpend |
list of strings | The kinds of the company's own spend ("AI", "cloud", "tooling", "supplier"), which a post states as shares, ratios and changes, never amounts (the editorial pack's claims.md). The own-spend check reads "our <kind> spend", "our <kind> bill" and the like, then an amount; "we spent" and "cost us" are read whatever the kind. Default: a general list (lib/editorial/lints/perspective.mjs SPEND_KINDS). | ||
reader |
object | The general leadership reader every post has (lib/editorial/lints/reader-tells.mjs). | ||
reader.jargon |
list of objects | The company's own terms a general leadership reader wouldn't know, each with a plain-words gloss. Added to the built-in list; the undefined-jargon lint fails a post that uses one without saying what it means. | ||
notes |
string | Free notes on the house voice, for the people and agents who write. | ||
doorClosers |
list of objects | Phrases that turn work away, added to the built-in list in lib/checks/voice.mjs. State the preference, never the condition. | ||
clientDown |
list of strings | Words that write a client down ("chaos", "nobody owned"), checked on clientRoutes. Replaces the built-in list. | ||
clientRoutes |
list of strings | Route regexes for pages that describe a client's work. Default: case studies. | ||
we |
object | Who "we" is in what the agents write (12 October 2026): the whole piece is in that first-person plural, as what we'd do on a client project, what we'd watch for and where we'd use it or not, never neutral documentation with the voice only in the opening. Default: the company's team. | ||
we.who |
string | Who "we" are, as the writer is told it, e.g. "Acme's data engineers". | ||
engineerFacing |
object | Reference and engineering content that stays free of pitching: no "contact us", "book a call" or sales line in the body. The writer is told, and the voice check fails it on these pages. | ||
engineerFacing.site |
boolean | false |
Every page on the site is engineer-facing. | |
engineerFacing.routes |
list of strings | Route regexes of engineer-facing pages. | ||
engineerFacing.families |
list of strings | Page families whose pages are engineer-facing (their generated routes). | ||
skills |
list of strings | Replaced by the editorial pack (heddle/editorial/): every agent's model call carries the pack, so the house rules live there, one reviewable section per rule. Kept so an older install still validates; heddle doctor warns while it is set. The writers carried the named files verbatim after their own mechanics; a named file that is missing fails the run. | ||
companyVoice |
always false or object | The company voice (lib/editorial/lints/company-voice.mjs, lib/checks/company-voice.mjs and company-work.mjs). Present (heddle update seeds {}), there is no house first sentence: each post opens the way its story opens, with one of twelve devices, brings the company in as the one who did the work by its second paragraph, uses no device or first words of the site's last ten posts, keeps launch openings for its own launches, rests on the company's recorded work, invents nothing as real, and is judged against the site's own voice guide (site.json voiceGuide) for specifics, rhythm and formula. false turns it off, and heddle doctor warns. |
heddle/site.json
How Heddle reads this site's build, optional. Every field has a default, so a site that builds to out/ needs no file at all.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
outDir |
string | "out" |
Built HTML, relative to the site repository. | |
host |
one of: cloudflare-worker, cloudflare-pages, vercel, netlify, other | Where the site is hosted, read by heddle install from the host's own config in the repository (wrangler, vercel.json, netlify.toml). Only a site on a Cloudflare Worker gets Heddle's Worker and deploy workflow; every other host deploys the site itself, and heddle launch checks the Cloudflare areas only for cloudflare-worker. Absent means not known yet. | ||
framework |
one of: next, astro, vite, static, other | How the site is built, read by heddle install from package.json and the files. The Next.js build, its attribution and analytics components come only with next. | ||
buildCommand |
string | The site's own build command (package.json build), recorded so Heddle runs the site's build rather than its own. | ||
defaultBranch |
string | The repository's default branch, read from git at install. Agents and the Workflow runner target it instead of assuming main. | ||
deployWorkflow |
string | The site's own deploy workflow in .github/workflows, for a site Heddle does not deploy. After an agent's merge that starts no workflow (the fallback identity), heddle-agents.yml dispatches it, so it needs a workflow_dispatch trigger. heddle install records it when it finds exactly one. | ||
contentDirs |
list of strings | [] |
Markdown and MDX sources, relative to the site repository. Prose checks read these as well as the built pages. | |
contentRoutes |
list of strings | [] |
Route regexes for pages built from contentDirs. Prose checks judge those once, as source, and read every other built page as HTML. | |
pagesDir |
string | Where the writer puts a landing page a person asked for (an idea whose brief kind is "page"), relative to the site repository. Kept out of contentDirs: these are pages at the site root, not posts. | ||
proseExempt |
list of arrays | [route, reason] pairs for pages whose text nobody here may rewrite (legal terms). Left out of every prose check. | ||
counts |
object | For a site that describes Heddle itself. The counts check fails a page or company.json claim that states a count of Heddle's checks, page families or agents other than the catalog's. A Markdown page in pagesDir or a claim may write the count as a token instead ({{checks}}, {{families}}, {{agents}}, {{levels}}, {{stages}}; add :words for the number in words), rendered from this catalog by heddle generate and for the agents, so a Heddle update changes the number without an edit to the page or the claim. |
||
counts.catalog |
string | yes | A JSON file, relative to the site repository, with a counts object written from Heddle's lib/counts.mjs machineryCounts(). |
|
counts.except |
list of strings | Phrases that make a match acceptable when they appear in the same sentence, for a sentence counting something else with the same noun. | ||
baseUrl |
string | Defaults to company.json url. | ||
model |
object | Where the judging model runs. Only the environment variable names live here, never values. | ||
model.gatewayEnv |
string | Names the AI Gateway, for agents that bill through one. The checks call Workers AI directly. | ||
model.hitl |
one of: client, gateway | "gateway" |
Who runs the model while a person is in the loop (lib/agents/ideas/hitl.mjs). "gateway", the default: the hosted writer drafts and revises, billed through the AI Gateway. "client", for a site whose authors have their own coding agents: an author's emailed idea or change goes to their own coding agent (Fabric Agents, Claude Code, Codex), which writes it in this repository on their own subscription and opens its pull request; replying "draft it for me" has the hosted writer take one idea. | |
pagePersonas |
list of objects | Which reader each page is written for, first match wins, so a rule for one route placed before a broader one overrides it. Without it, the first persona in personas.json reads every page. Posts (site.json surface.posts, else /blog/, /posts/, /articles/, /news/) are read with the buyer test's post question and never held to 'talk'. | ||
pagePersonas[].match |
string | yes | Regular expression over the route. | |
pagePersonas[].persona |
string or null | yes | A personas.json id, or null to exempt the page (then why is required). | |
pagePersonas[].sells |
boolean | true |
false: the page is there to be believed, not to ask for the call, so the buyer test skips 'talk'. | |
pagePersonas[].kind |
one of: sales, reference, post | reference: the page answers a search (a comparison, a definition, a catalog entry) rather than selling. The buyer test holds it only to the internal-language question; the answers check judges whether it answers its search. post: the page is an article; the buyer test asks whether its reader can tell what it is about and why it matters to their own work, and never holds it to 'talk'. Unset: post on a post route, sales elsewhere. | ||
pagePersonas[].byTags |
list of objects | Pick the reader from the post's own front-matter tags: the first entry sharing a tag with the post wins, and persona reads the post otherwise. To override the tags for one post, put a rule for its route before this one. | ||
meta |
object | Options for the meta check: titles, descriptions, canonicals, breadcrumbs and Markdown twins on the built pages. | ||
meta.exempt |
list of arrays | [route, reason] pairs. | ||
meta.requireMarkdownTwin |
boolean | false |
Fail a page with no <route>.md beside it, for sites that publish Markdown mirrors for answer engines. | |
meta.runtimePaths |
list of strings | Path prefixes served at runtime rather than from the build, so an og:image there is not looked for on disk. | ||
meta.thinWords |
integer | 120 |
A page whose body (its <main>, or its one <article>) has fewer words than this is thin: the meta check warns unless it carries noindex. | |
meta.titleSuffix |
string | The brand suffix the layout adds to titles (" · Brand"). With it set, a route matching bareTitles fails if its title ends with it: a post spends every character on its topic. | ||
meta.bareTitles |
list of strings | Route regexes whose titles never carry titleSuffix. Default: surface.posts. | ||
density |
object | Options for the density check, which fails long paragraphs outside articles. | ||
density.articles |
list of strings | Route regexes for authored articles, exempt from the paragraph-length rule. Default: blog, case studies, legal pages. | ||
humanizer |
object | Options for the humanizer check: rules the house style does not use, exempt pages, and names it must not flag. | ||
humanizer.disable |
list of strings | Rule ids this company's house style does not use, e.g. em-dash. | ||
humanizer.exempt |
list of arrays | [file or route, reason]: whole-document rules off, for generated reference pages. | ||
humanizer.names |
list of strings | Product and company names that match a banned word ("Profound"); matched case-sensitively and skipped. | ||
editorial |
object | How heddle doctor reads the site's own code for model calls that write without the editorial pack (lib/editorial/loaders.mjs). Heddle's own agents always carry it. | ||
editorial.agentDirs |
list of strings | The directories that hold the site's own agents and scripts. Default: scripts, worker, agents, lib, src. | ||
editorial.disable |
object | Editorial lints the house style does not use, each with why ({ "faq": "our posts are release notes" }). The check passes saying so, the writers stop holding drafts to it, and heddle doctor warns while it is off. Take the rule out of heddle/editorial/ too, or give it another enforcer. | ||
editorial.exempt |
object | Model calls that write no prose, as "<file>:<function>": why ("worker/triage.ts:classify": "labels an email as JSON; writes no copy"). A call goes without the pack only with a written reason, and an entry that names nothing fails doctor. | ||
answers |
object | Options for the answers gate, which asks the model whether openings and FAQ answers answer their question. | ||
answers.gate |
boolean | false |
false reports weak openings without failing, as on the source site. | |
searchSurface |
object | Options for the search-surface check, which holds titles, H1s and canonicals to a recorded surface. | ||
searchSurface.record |
string | "search-surface.json" |
The recorded surface, relative to heddle/. Rewritten by heddle check --only search-surface --update. | |
searchSurface.ownerPattern |
string | Regular expression over a title whose groups 1 and 2 are the service and the place the page owns. Default: "<Service> in <Place>, ST". | ||
urls |
object | Options for the urls check: the legacy URLs that must still resolve and the redirects the server makes. | ||
urls.legacy |
string | "heddle/legacy-urls.txt" |
Every path the site has been indexed at, one per line, relative to the site repository. A floor, not a census: add paths found in Search Console by hand. | |
urls.redirects |
list of strings | Paths the server redirects: exact, or a prefix ending in /*. | ||
urls.unverified |
list of strings | Path prefixes served at runtime rather than from the build, so a link into them is not called dead. | ||
orphans |
object | Options for the orphans check: pages the navigation must link, exemptions and inbound-link floors per family. | ||
orphans.navRequired |
list of strings | Route regexes for pages the navigation must link to, e.g. every service page. | ||
orphans.exempt |
list of arrays | [route, reason] pairs for pages meant to be reached only from outside, such as a campaign landing page. | ||
orphans.familyFloors |
object | Per page family, the fewest inbound links its worst-linked page and its median page should have. Under either warns. | ||
brand |
object | Where heddle brand writes the kit and where the site serves it. | ||
brand.kitDir |
string | "public/brand/kit" |
Relative to the site repository. | |
brand.page |
string | "/brand" |
The brand page's route. | |
brand.stem |
string | Prefix for every kit file name. Defaults to the brand name, lower case and hyphenated. | ||
playbook |
object | Publish Heddle's playbook on this site (lib/playbook/pages.mjs): heddle generate writes heddle/generated/playbook.json for the pages and the public Agent Skill under the route; heddle aeo lists the skill in llms.txt. templates/next/playbook/ renders it. | ||
playbook.publicDir |
string | "public" |
The folder the site serves as-is; the skill goes in <publicDir><route>/. | |
playbook.checks |
string | Where this site publishes Heddle's checks, one page per check id; the checklist links each check there. Leave out when it does not. | ||
playbook.patterns |
string | Where this site lists the page families, when it does. | ||
playbook.agents |
string | Where this site describes the agents, when it does. | ||
playbook.pages |
object | Copy overrides per page, measured titles above all. {tactics}, {lessons}, {enforced}, {sources}, {families}, {checks} and {agents} are filled with the counts. | ||
docs |
object | Publish Heddle's documentation on this site (lib/docs/pages.mjs): heddle generate writes heddle/generated/docs.json with the getting-started, install, command, agents, configuration and troubleshooting pages, all generated from Heddle. templates/next/docs/ renders it. | ||
docs.enabled |
boolean | true |
false keeps the block without publishing. | |
docs.route |
string | "/docs" |
Where the documentation lives on the site; each page is a path under it. | |
docs.pages |
object | Per page (hub, getting-started, install, commands, agents, configuration, troubleshooting), copy that replaces the default: title, h1, description, answer, faqs. {commands}, {agents} and the other counts are filled in. | ||
aeo |
object | Options for heddle aeo: what the Markdown twins leave out, the twin size floor, the _headers file and extra llms.txt sections. | ||
aeo.chromeClasses |
list of strings | CSS classes on kickers, chips and labels that are page furniture, left out of the Markdown twins. | ||
aeo.exclude |
list of strings | Route regexes that get no twin. | ||
aeo.minBytes |
integer | 400 |
A twin shorter than this means the extraction missed the page; nothing is written. | |
aeo.requireQuestions |
boolean | false |
Fail a page whose twin has no questions section. | |
aeo.headers |
boolean | false |
Also write _headers (Cloudflare and Netlify format) with a Link header to each page's twin. | |
aeo.headLinks |
boolean | true |
Write <link rel="alternate" type="text/markdown"> into each page's head, announcing its twin to a crawler that reads HTML and never headers. | |
aeo.llmsSections |
list of objects | Extra sections for llms.txt, for files that are not pages (a published Agent Skill, an API spec). Each link's url is absolute or a path on the site, and a path must exist in the build. | ||
agentReady |
object | The agent-ready check: whether an assistant can read the site without a browser. | ||
agentReady.crawlers |
list of strings | User agents robots.txt must let fetch /. Defaults to GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, PerplexityBot, Google-Extended. | ||
agentReady.answerMin |
integer | 40 |
Fewest words in the paragraph under the H1. | |
agentReady.answerMax |
integer | 80 |
Most words in the paragraph under the H1. | |
agentReady.minWords |
integer | 50 |
Fewer words than this in the HTML's main content means it is rendered by JavaScript. | |
agentReady.linkHeaders |
one of: headers, runtime | "headers" |
Where the Link header announcing each Markdown twin comes from: one _headers rule a page (headers), or the Worker at runtime (runtime: heddle aeo writes heddle-twins.json for templates/worker/heddle-twins.ts). Cloudflare reads 100 _headers rules, so a site past about 80 pages needs runtime. | |
agentReady.exempt |
list of arrays | [route, reason] pairs for pages with nothing to offer an assistant. | ||
agentReady.blocked |
list of arrays | [crawler, reason] pairs: answer-engine or training crawlers robots.txt blocks on purpose. Blocking one is a business decision, allowed when written down. | ||
legacy |
object | heddle legacy: where the inventory of every URL the site was ever indexed at comes from. | ||
legacy.from |
string | The live site whose sitemap is read. Defaults to company.json url. | ||
legacy.gscDays |
integer | 480 |
Days of Search Console pages to read when credentials exist. | |
launch |
object | Settings for heddle launch (playbook/launch.md). Every field has a default read from the site. | ||
launch.worker |
string | The Worker config, relative to the site. Default wrangler.jsonc. | ||
launch.repo |
string | GitHub Owner/name. Default: the origin remote. | ||
covers |
object | Where the covers agent reads posts and writes covers (lib/covers/site.mjs). | ||
covers.posts |
string | The folder of Markdown posts. Default: the first contentDirs entry. | ||
covers.dir |
string | "public/covers" |
Where <slug>.svg and the 1200x630 <slug>-og.png are written. | |
covers.publicPath |
string | "/covers" |
The URL the dir is served at. | |
covers.shareField |
string | A frontmatter field the site reads as the post's share image (e.g. "image"). When set, the proposal writes it into the post. | ||
covers.fallback |
object | The deterministic fallback cover (heddle covers --fallback). | ||
helpful |
object | The helpful-content gate (lib/checks/helpful.mjs). Floors default to the source site's measured ones. | ||
helpful.articles |
list of strings | Route patterns judged as articles (teach or show work); the rest are pages. | ||
helpful.exempt |
list of strings | Route patterns not judged (legal, forms, listings). proseExempt routes are exempt too. | ||
helpful.tolerance |
number | 0.12 |
How far under its recorded score a baselined page may read. Capped at 0.13, and never more than half the recorded score. | |
helpful.minReads |
integer | 1 |
Readings a page gets the first time it is read, before the mean counts. | |
helpful.base |
string | The git ref strict mode compares the record with when neither --base nor the pull request names one. Default origin/main. | ||
helpful.labels |
object | Pull-request labels for the two exceptions to the record check. Read from the base branch. | ||
helpful.heldRoutes |
list of strings | Route patterns a held-content pull request may excuse. Default: the article routes. | ||
helpful.nearCopy |
object | Near-copy between pages of one family (lib/checks/near-copy.mjs). | ||
helpful.sources |
list of objects | How a route maps to its own source files, for the held exception and the writer's under-floor posts. Each item is a glob pair ({ "route": "/blog/", "file": "content/posts/.md" }: * is one slug segment, no slash or dot, matched whole, with as many * in the file as in the route) or a regular expression and a path where $1.. are its groups. Default: the route's path under each contentDir. A non-empty list replaces the default, so heddle install, when it adds a pair, also writes pairs that keep every other content directory's default mapping. heddle install fills it from the content directories and the built routes; heddle doctor warns when the writer's posts have none. Read from the base branch. |
||
indexing |
object | Getting changed pages crawled (lib/indexing): IndexNow and the Search Console indexing request a computer-use bot performs. | ||
indexing.key |
string | The IndexNow key. Public by design: it only lets this host ask for a recrawl. heddle indexing key creates it and writes <key>.txt into publicDir. | ||
launchRamp |
object | The launch ramp (lib/ramp.mjs): on a young site the sitemap, and so IndexNow, carries the core pages first and the programmatic families in batches, each once enough of what was submitted is indexed. Held pages stay live and linked. heddle aeo filters the built sitemap and writes /heddle-ramp.json; the watchdog admits the next batch into heddle/ramp.json. | ||
launchRamp.enabled |
boolean | On or off. Default: on while the site is under youngDays old by surface.launched; off when older or the launch day is unknown. | ||
launchRamp.youngDays |
integer | 90 |
How long the ramp is on by default after surface.launched. | |
launchRamp.programmatic |
list of strings | Route regexes of the families held back. Default: pages under /compare, /alternatives, /vs, /tools, /learn, /patterns, /checks, /integrations, /locations, /cities, /glossary and /templates (their hubs are core). | ||
launchRamp.batchSize |
integer | 10 |
Programmatic pages admitted to the sitemap per batch. | |
launchRamp.advanceAtShare |
number | 0.5 |
The share of submitted URLs Google has indexed (the watchdog's index-health record) before the next batch. | |
launchRamp.minKnown |
integer | 10 |
Submitted URLs inspected before that share is trusted (fewer when the sitemap has fewer). | |
launchRamp.minDays |
integer | 7 |
Days between batches, and from the ramp's start to the first. | |
launchRamp.templateRule |
object | When a programmatic template's weekly reading holds its pages out of the next batch (lib/pseo/measure.mjs, templateVerdict): windowDays after its day-1 baseline, a template with minIndexedShare of at least minInspected inspected pages indexed and no Search Console impressions in 28 days gets no new batches, and its pages are listed for rewriting (never pruned blind). Clicks or leads let it grow. | ||
surface |
object | The surface check (lib/checks/surface.mjs, playbook/seo-aeo-geo.md). | ||
surface.posts |
list of strings | Route patterns for posts, which need BlogPosting, dates, a card of their own and a visible date. Default ["^/blog/[^/]+$"]. | ||
surface.allowRatings |
boolean | Only when real reviews or ratings are shown on the page they are marked up on. | ||
surface.timezone |
string | The site's IANA time zone (America/Phoenix). Every date with a time must carry the offset this zone has on that day. | ||
surface.launched |
string | The launch day. A build on that day may date every sitemap URL with it; on any other day, every lastmod equal to the build date fails. | ||
surface.feed |
string | The feed's path in the build, when it is not one of rss.xml, feed.xml, atom.xml, index.xml or blog/rss.xml. | ||
pseo |
object | The programmatic-pages check (pseo): how a page names its template. The templates themselves are heddle/templates/<id>.json. | ||
pseo.meta |
string | "heddle-template" |
The <meta name> a programmatic page names its template with. Default heddle-template. | |
pseo.burnDown |
one of: weekly, daily | "weekly" |
How often the families and site agents work through heddle/templates/known.json (lib/agents/burn-down.mjs). Both are scheduled daily and do their whole job on their weekday. "weekly": nothing on the other days. "daily": on the other days the families agent rewrites flagged FAQs (perRun.repairs) and the site agent adds flagged in-content links (perRun.links), and nothing else, so the list shrinks at about the pace new pages go out. | |
pseo.volumeSources |
list of strings | ["dataforseo"] |
The search-volume sources the pseo check accepts as demand evidence, by the source of heddle/templates/evidence/*.json. Default DataForSEO (heddle templates measure --volumes); another tool's export comes in with heddle templates measure --import <file> --source <name>. |
|
checks |
object | Which opt-in checks run on every build for this install. | ||
checks.include |
list of values | Opt-in checks (they fetch the pages a post cites) that heddle check runs on every build for this install, not only with --only. |
||
restatement |
object | Limits for the restatement check (lib/checks/restatement.mjs). Default: the source site's calibration, the highest an approved explainer reached plus half again. | ||
outbound |
object | The opt-in outbound check (heddle check --only outbound): every link to another site resolves. | ||
outbound.skip |
list of arrays | [host, reason] pairs never fetched (a host that bans scripts). | ||
outbound.pauseMs |
integer | 2000 |
Wait before the second, slower attempt. | |
a11y |
object | The a11y check: WCAG 2.1 A and AA on the built pages, axe-core in Chromium at 1280 and 375px with reflow at 320px (lib/checks/a11y.mjs). | ||
a11y.pages |
one of: sample, all | sample (the default): one page of every template and kind of content, plus the pages a change reaches. all: every built page (the audit). | ||
a11y.exempt |
object | Routes spared the a11y check, each with the written reason it is spared. | ||
a11y.ignore |
list of objects | Rules not counted (axe:<id> or a Heddle rule such as link-text), on one route or all, each with its written reason. The findings that say a page was not checked (not-run, axe, load, http, unstyled) are never ignorable; unchecked (a changed source that reaches no built page) is spared only for the one source file its route names. | ||
a11y.colorScheme |
one of: light, dark | The colour scheme read first; a page that answers prefers-color-scheme is read for contrast in the other too. | ||
a11y.concurrency |
integer | Pages read at a time (default 4). | ||
phone |
object | The phone check: every built page measured at 375px in Chromium. | ||
phone.exempt |
object | Routes spared the phone check, each with the written reason it is spared. | ||
diagrams |
object | Mermaid diagrams (heddle diagrams, lib/diagrams, the diagrams check). | ||
diagrams.dir |
string | "content/diagrams" |
Where rendered SVGs are committed, <key>.svg, plus index.json (key -> caption and source). | |
diagrams.sources |
list of strings | Folders or files scanned for ```mermaid blocks, Markdown and JSON. Default: contentDirs plus heddle/families. | ||
diagrams.since |
string | Posts dated on or after this day may not embed an SVG image or raw <svg>. Default: every post. | ||
diagrams.colors |
object | Colour role -> brand hex. Default: read from brand.json tokens. | ||
diagrams.font |
string | The label face. Default: brand.json's Body type family. | ||
diagrams.fontStack |
string | The font-family the inlined SVG asks the page for, e.g. "var(--font-inter), Inter, sans-serif" when next/font hashes the family name. | ||
diagrams.fonts |
list of objects | Faces the renderer loads before measuring labels. | ||
diagrams.require |
one of: either, diagram, image, both, off | "either" |
What every post must carry in its body. On by default: a post with no diagram and no image fails. | |
diagrams.requireSince |
string | Apply require only to posts dated on or after this day (for an install with an archive). | ||
diagrams.captionedFrom |
string | From this day, every post dated or updated on or after it, every post new on the branch, and every post rewritten on the branch (more than a mechanical fix of up to three paragraphs) must carry a ```mermaid diagram with a %% caption: line; an image does not count. Older posts gain one when they are next rewritten. heddle install sets it to the install day; unset, the rule is off (playbook/visuals.md). | ||
images |
object | The images check and heddle images. | ||
images.publicDir |
string | "public" |
Where site-relative image paths are found on disk. | |
assets |
object | The assets check: hosts a page may load from. | ||
assets.allow |
list of arrays | [host, reason] pairs a page may load assets from. | ||
assets.banned |
list of arrays | [pattern, reason] pairs for hosts known dead or leaving; failed even as a link. | ||
analytics |
object | Opt-in measurement, off unless set: Cloudflare Web Analytics (cookieless page views) and a first-party count of clicks on the calls to action. The analytics check holds the build and the privacy page to it (playbook/measuring.md). | ||
analytics.provider |
one of: cloudflare-web-analytics | Load Cloudflare's beacon on every page (components/heddle-analytics.tsx). | ||
analytics.siteToken |
string | The Web Analytics site's public token. heddle launch --apply finds or creates the site for the domain and writes it here. | ||
analytics.ctaClicks |
boolean | Count clicks on elements carrying data-cta="<id>" per id and route, in the Worker's CTA_CLICKS KV (worker/heddle-cta.ts). No cookie, no IP stored. | ||
analytics.ctaPath |
string | Where the Worker takes clicks and answers the counts. Default /heddle/cta. | ||
analytics.privacyPage |
string | The route of the privacy page the analytics check reads. Default /privacy. | ||
analytics.exclude |
list of strings | Route patterns (regular expressions) that never load the beacon, such as the free tool pages, which the tools check holds to no script from another host. A navigation across the line is a full page load. | ||
media |
object | Binary media in object storage (heddle media, lib/media). Only for media too large or too many for git. | ||
media.dir |
string | "public/media" |
Local media, relative to the site repository. Not a mirror of the bucket. | |
media.bucket |
string | yes | The R2 bucket name. | |
media.prefix |
string | "media" |
Key prefix in the bucket, and the URL path the Worker serves it at. | |
media.cacheHeader |
string | A response header that only the bucket path sets (e.g. x-media-cache), so --headers can tell an R2 answer from a bundled fallback. | ||
data |
object | Where the agents' search data comes from (lib/data). Agents ask for a capability (keyword volume, positions, backlinks, Core Web Vitals...); the providers named here answer. Only environment variable names live here, never values. Without this block an install keeps DataForSEO, Search Console and anonymous PageSpeed at their default variable names. | ||
data.prefer |
object | Per capability, the providers to try in order, e.g. { "rankTracking": ["openseo", "dataforseo"] }. | ||
contact |
object | The contact form's endpoint in the site Worker (templates/worker/heddle-contact.ts). Every field has a default. | ||
contact.probe |
object | The form monitor (heddle forms, .github/workflows/heddle-forms.yml): which page carries the form and what it fills in. Every field has a default. |
||
contact.path |
string | "/api/contact" |
Where the form posts. | |
contact.cors |
object | Other origins whose pages may post the form, for a site whose pages are served elsewhere (Vercel, say) and post to the Worker across origins (templates/worker/heddle-cors.ts). Unset, the endpoint sends no CORS headers. Set, an allowed Origin is reflected exactly (never "") and its OPTIONS preflight answers 204; any other origin gets no Access-Control- header and a 403 preflight. A site's own endpoints can use the same setting through heddle-cors.ts. | ||
contact.defaultTopic |
string | "Enquiry" |
The topic when the form sends none. | |
contact.needMore |
string | The error shown when neither a site nor a message of minMessage characters was given. | ||
contact.accent |
string | The internal email's accent colour; brand.json's --spot colour when unset. | ||
worker |
object | Optional routes of the site Worker (templates/worker/heddle.ts). | ||
worker.tools |
boolean | false |
Mount the free tools' fetch route, POST /api/tools/fetch (templates/worker/heddle-tools.ts). | |
worker.sitecheck |
boolean or object | The free site check (worker/heddle-sitecheck.ts): true, or { monthly, ai } where monthly is the month's paid checks (150 by default) and ai is "open" (the default: anyone's check may spend them) or "plan" (an anonymous check spends nothing, and its Google and AI sections come back locked). With ai "plan", signin: true (false by default) lets a visitor sign in by an emailed link (POST /api/check/signin, GET and POST /api/check/verify, GET /api/check/session, POST /api/check/signout) and gives a signed-in visitor's check one sample AI answer a day per address, a tenth of a check out of the same monthly budget; it needs the Worker secret HEDDLE_SESSION_SECRET and the contact form's PLUNK_API_KEY and MAIL_FROM, and without the secret nobody can sign in. Needs the SITECHECK KV, the HEDDLE_SITECHECK Workflow and the SITECHECK_DB D1 database, with HeddleSiteCheck exported from the Worker's main module. | ||
worker.setup |
boolean or object | Self-serve setup (worker/heddle-setup.ts): a visitor drafts and confirms the five setup steps from their own site at /start/<id>. true, or { monthly } for the month's setups with a model and search data (30 by default); past it a setup drafts from the pages alone. Needs the HEDDLE_SETUP Workflow (class_name HeddleSetup, exported from the Worker's main module) and a D1 database, SETUP_DB, or the site check's SITECHECK_DB. | ||
worker.githubBroker |
object | The agents' GitHub token broker (worker/heddle-github.ts), on the site that hosts the public Heddle Agents app: its id and slug, which heddle app create-public writes. The app's private key is the Worker secret HEDDLE_GITHUB_APP_KEY (PKCS#8). Client repositories' agent jobs exchange their GitHub Actions ID token here for a token scoped to their own repository. | ||
review |
object | The review gate (heddle check, strict mode; playbook/quality-gates.md, Review labels): page copy needs a content review, positioning its approver, a video a watch. Read from the BASE branch in a pull request. Leave out to keep it off; {} switches it on with the defaults for Heddle's Next template. Content directories are never copy (posts have their own gates). Whether a model may stand in for the content review is autonomy.json review.content. | ||
review.enabled |
boolean | true |
false turns the gate off while keeping the settings. | |
review.copy |
list of strings | Regular expressions over repository-relative paths that hold page copy. Default: ^app/, ^components/, ^lib/ and the pagesDir. | ||
review.positioning |
object | What the company says it is. Only the positioning label satisfies it; no model or agent can. | ||
review.video |
object | Video registry files; an added src, captions, poster or text line needs a person watching or the video agent's pass. | ||
review.labels |
object | Label names; heddle review labels . --apply creates them. | ||
identity |
object | How this site's agents get their GitHub identity when the repository has no Site Agents app of its own (HEDDLE_AGENT_APP_ID and HEDDLE_AGENT_APP_PRIVATE_KEY win when set): the public Heddle Agents app, installed on the repository, through a broker. heddle launch --apply sets the repository variable HEDDLE_AGENT_BROKER from it. | ||
identity.broker |
string | yes | The broker's origin, such as https://heddle.example: the agent jobs exchange their GitHub Actions ID token (audience: this origin) at <broker>/heddle/github/token. | |
unique |
object | The unique check (lib/checks/unique.mjs): every indexable page says something no other page says, and its FAQs are its own across the site. | ||
unique.ownShare |
number | 0.3 |
The least share of a page's five-word runs (furniture left out) that may be on no other page. | |
unique.faqSimilarity |
number | 0.85 |
Content-word overlap at which two pages' questions are the same question. | |
unique.answerShare |
number | 0.8 |
Share of an answer's six-word runs, in another answer or its own page's body, at which it is a copy. | |
unique.minShingles |
integer | 40 |
Pages with fewer five-word runs than this are left to the thin-pages check. | |
unique.exempt |
list of strings | Route regexes the check does not read. Default the helpful check's exemptions (contact, legal, index pages). | ||
voiceGuide |
string | "heddle/voices.md" |
The site's own voice guide, a "Voices of <Company>" Markdown document relative to the site (heddle install seeds heddle/voices.md from Heddle's starter). The company-work check's voice reading, the writers, the editor assistant (heddle voice --mode) and heddle mcp --site all read this one file. | |
mcp |
object | The site's MCP server at /mcp (playbook/mcp-server.md, playbook/mcp-read.md): anyone reads the site, and its authors draft, check and publish from their own agents. Off unless enabled is true. | ||
mcp.enabled |
boolean | Turns the server on. heddle doctor then fails on anything it needs that is missing. | ||
mcp.origin |
string | The server's own origin, such as https://mcp.example.com, when /mcp on company.json url's host belongs to another app or the pages are served elsewhere: https, a lowercase host name (no reserved label such as xn--), no port, path or trailing slash, and not company.json url's own host or its www twin. The server, its sign-in (the OAuth issuer and the provider's redirect URI <origin>/oauth/callback), the job's API and the registry's remote then answer on that host alone, and nothing of the server answers on company.json url's host or its www twin. Pages and links stay on company.json url, and the registry's proof stays there too. Unset: company.json url and its www twin. | ||
mcp.auth |
object | Who signs in, and with what. Writing also needs a people.json author with this address, unless openAuthorship is on; reading needs no sign-in. | ||
mcp.kinds |
object | Kinds of writing beyond a post. | ||
mcp.deny |
list of strings | Route prefixes the read tools never index, added to the built-in private list. | ||
mcp.pageTypes |
list of objects | Each route prefix's kind, first match wins. A post is decided by the site's own post prefix, and a type here can't be post. | ||
mcp.serviceTypes |
list of strings | The kinds get_services lists. Default service and solution. | ||
mcp.registry |
object | The official MCP Registry listing. The private key stays with the operator, never in the repository. | ||
mcp.frontmatter |
list of strings | Frontmatter fields an author's agent may set, beyond the plain list (title, metaTitle, description, tags, sector, stack, client). Anything the server sets, or the checks read as evidence or a post's kind, can't be added. | ||
mcp.mdx |
boolean | The site compiles its .md posts as MDX. Then a draft is held to MDX's rules as well: no expression in braces and no import or export, anywhere in it. |
heddle/brand.json
Brand, optional. Everything the /brand page shows and the downloadable kit carries, written once. heddle brand builds the kit from it; the site's brand page renders from it.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
name |
string | Defaults to company.json name. Set it when the brand is a product of the company, not the company. | ||
legalName |
string | Who owns the mark. Defaults to company.json legalName. | ||
founded |
integer | The year the company was founded, shown on the brand page and in the kit's manifest. | ||
contact |
string | yes | Where to ask for permission or a file that is not in the kit. | |
press |
object | Optional. A named press contact, when it is not the general contact. | ||
permissions |
string | What may be done with the files without asking, and what needs a conversation. Defaults to a neutral statement naming the contact. | ||
tagline |
string | The brand line, if there is one. Not a description: the description is boilerplate. | ||
boilerplate |
object | yes | The canonical descriptions of the company, in a long and a short form, for press and directories. | |
boilerplate.long |
string | yes | The canonical paragraph, identical on GitHub, npm, LinkedIn, directories and the site's metadata. | |
boilerplate.short |
string | yes | Must equal company.json description.short. | |
boilerplate.oneLine |
string | Must equal company.json description.oneLine when both are set. | ||
naming |
object | yes | How the name is written, and spellings to avoid. | |
naming.avoid |
list of strings | yes | Spellings a reader will meet that are wrong. | |
naming.note |
string | How to write the name, in a sentence. | ||
partnerships |
object | Approved wording for a partnership, and the words that are banned. Only when there is one. | ||
logo |
object | yes | The wordmark and mark files, clear space, minimum size and what never to do with them. | |
logo.description |
string | What the logo is, in a sentence or two, for the page. | ||
logo.donts |
list of strings | yes | Short 'please do not' lines shown beside the logo. | |
logo.pngWidth |
integer | 2048 |
Width of the wordmark PNGs. Marks are rendered 1024 high. | |
background |
object | yes | The hero image the site ships, and how to put text on it. | |
background.file |
any | yes | The hero image the site already ships. | |
background.use |
string | yes | How to put text on it. | |
banners |
object | Banner and share images for the kit: reuse a file the build makes, or draw one. | ||
banners.cover |
boolean | true |
Also compose a 1584x396 LinkedIn cover. | |
colors |
list of objects | yes | The brand colours, each with its hex value and what it is used for. Diagrams and covers draw only in these. | |
colors[].use |
string | yes | Its one job. Where two similar colours exist, say how their jobs differ. | |
colors[].token |
string | The CSS custom property that carries it on the site, if any. | ||
type |
list of objects | yes | The typefaces, each with its role, weight, source and a sample. | |
type[].stack |
string | The CSS font stack, when the family is a system stack rather than one face. | ||
type[].source |
any | yes | Where to get it. | |
type[].file |
string | Optional. The font file the site serves itself, relative to the site repository and inside its public folder (public/brand/fonts/Display-700.woff2), at this weight. The pages the Worker writes itself (the MCP sign-in, the site check's sign-in) load it from there; without it they use system fonts. | ||
voice |
list of objects | yes | Three to six do and don't pairs on how the brand writes, shown on the brand page. | |
family |
list of objects | Sibling products that share the mark, if any. | ||
family[].script |
string or null | The name as set in a lockup script, or null for the parent brand. | ||
lockups |
string | How a family product's lockup is built. | ||
rules |
list of strings | yes | Eight at most, verbatim on the page, in the manifest and in the README. | |
facts |
list of objects | The facts table for a press mention: licence, website, source, and so on. | ||
faqs |
list of objects | Questions and answers shown on the brand page, with FAQPage markup. | ||
copy |
object | Optional headings for the page's sections. The reference page has neutral defaults for every one. |
heddle/agents.json
Agent manifest, optional. What each agent must produce and by when, the failures it can emit, and the smoke checks a deploy must pass. Optional. An install without heddle/agents.json is held to the defaults in lib/agents/manifest.mjs. See playbook/reliability.md.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
owner |
string | The email of the person who answers for the agents. Gets the daily digest and every alert. Left out, it is people.json reportsTo[0], so an address is kept in one place. | ||
notify |
list of strings | Others who get alerts. people.json reportsTo is always added. | ||
systemic |
object | When repeated failures become one systemic alert. | ||
systemic.perAgent |
integer | 2 |
The same normalised reason on this many attempts or items of one agent inside the window. | |
systemic.acrossAgents |
integer | 3 |
The same normalised reason this many times across two or more agents inside the window. | |
digest |
object | The watchdog's daily digest email: when it is sent and what its first line counts. | ||
digest.hourUtc |
integer | 13 |
The first watchdog run at or after this hour sends the day's digest. | |
digest.headline |
list of objects | The counts in the digest's first line. Defaults to posts published, drafts waiting and ideas filed. | ||
deploy |
object | What the post-deploy smoke and the config-change check hold the site Worker to. | ||
deploy.config |
string | "wrangler.jsonc" |
The site Worker's wrangler config, relative to the repository root. | |
deploy.previewRequired |
boolean | true |
An upload must print a preview URL. True whenever an agent drafts against previews. | |
agents |
object | yes | One entry per agent. An agent left out keeps its default entry. | |
approvals |
one of: gated, ungated | "gated" |
The install's approval setting. gated: a named person approves each post before it publishes, so a draft waiting for them is an acceptable end state. ungated: agents publish once every check passes and revise against failed checks, so only published or declined ends an item. See playbook/reliability.md. |
heddle/install.json
What heddle install put into this site, optional. json, written by heddle install and heddle update and read by heddle doctor. Not edited by hand.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
heddle |
string | yes | The Heddle version that wrote it. | |
ref |
string | The Heddle commit that wrote it, in full. Every managed workflow checks Heddle out at this commit, so the site runs the Heddle it was last updated with; the update agent proposes the move to Heddle's main. Absent: the workflows use Heddle's default branch, with a warning. | ||
version |
string | The published release of @fabricorg/heddle that holds ref, when ref is a release. Every managed workflow downloads this version from the broker (vars.HEDDLE_AGENT_BROKER, with its ID token) or, on Heddle's own sites, from npm with HEDDLE_NPM_TOKEN instead of checking its repository out. Absent: the workflows check Heddle out at ref with HEDDLE_DEPLOY_KEY or HEDDLE_REPO_TOKEN. | ||
features |
list of values | yes | The features installed: worker, next, agents, deploy, config-check, gates, ideas, approvals, smoke, forms, mcp. heddle update and doctor read them. | |
files |
object | yes | Each managed file, by its path in the site: the template it came from and the SHA-256 of the template's text as installed (header excluded), so doctor can tell a stale copy from an edited one. | |
declined |
list of values | Features Heddle added for every install that this one turned down with --without, so heddle update leaves them out. | ||
ownCheck |
boolean | The site had its own npm check script when Heddle was installed into it (a brownfield app). Install never rewrites that script; heddle-config-check.yml runs heddle doctor on every pull request instead, and doctor accepts it. |
heddle/recommendations.json
Recommendations ledger, optional. Every recommendation an agent made and what became of it. Written by the agents (lib/agents/recommendations.mjs) and by people closing entries by hand. playbook/recommendations.md says how.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
id |
string | yes | <agent>-<hash of the agent's key>; stable, so the same finding is one entry | |
agent |
string | yes | The agent that raised it, or "person" for one a person added | |
date |
string | yes | The day it was first raised | |
recommendation |
string | yes | What to do, in one sentence. | |
evidence |
string or object or array or null | What the agent measured or read: a string, or the agent's own record | ||
source |
one of: agent, proposal, person | agent: raised in result.recommendations; proposal: a draft the agent produced; person: added by hand | ||
status |
one of: open, implemented, rejected, needs-person | yes | open, implemented, rejected or needs-person. implemented needs a pr, commit or verifiedBy; rejected needs a reason; needs-person needs the step. | |
pr |
string | The pull request that implements it, or that a person must review | ||
commit |
string | The commit that implemented it. | ||
verifiedBy |
string | The run that re-read the finding and no longer found it | ||
recheck |
string | The agent's check that re-reads this finding every run | ||
reason |
string | Why it was rejected | ||
step |
string | Exactly what a person must do | ||
lastSeen |
string | The last day a run raised it again. | ||
updated |
string | The last day the entry changed. | ||
closedOn |
string | The day it left open. |
heddle/calendar.json
Content calendar, optional. The planned posts, one slot each, written by heddle setup's first-month step and confirmed by a person. How many slots a week is set by autonomy.json pace, and the reason is kept beside them.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
perWeek |
integer | yes | New posts a week while this plan runs. | |
why |
string | yes | Why that many, in plain words. | |
confirmedBy |
string | Who confirmed the plan in setup; the posts are theirs and wait for an approver. | ||
confirmedOn |
string | The day they confirmed it. | ||
slots |
list of objects | yes | One planned post each, in date order. The content agent files a slot for the writer once it is due within a week. | |
slots[].topic |
string | yes | The post, as a working title. | |
slots[].term |
string | The search it is written to win. | ||
slots[].volume |
integer or null | Monthly searches, or null when not measured. Unknown is not zero. | ||
slots[].source |
string | Where the topic came from (an offering's buyer phrase, a question buyers ask assistants, a search the site ranks near). |
heddle/editorial/rules.json
Editorial pack, optional. json: the index of the site's house writing rules (heddle/editorial/*.md). One entry per ## rule section, with the one-line summary agents read, what enforces it and examples that pass and fail. Every agent's model call carries the pack (lib/editorial), and heddle check . --only editorial holds each rule to its enforcer.
Heddle seeds it from templates/company/editorial/ and never overwrites it. The facts the rules point at stay in their own files, each validated by its own schema (voice.json, known-errors.json, company.json and the rest). data names them, and the rules never repeat them.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
version |
integer | The format's version: 1. | ||
about |
string | What the file is, for the person who opens it. | ||
principle |
string | The governing rule, which every pack form carries first: everything published is written for people, and a rule that only serves search is wrong. | ||
files |
list of strings | yes | The rule files in heddle/editorial/, in the order agents read them. Each is a Markdown file in that folder, never a path out of it. | |
data |
object | Which data file each rule reads, as a path in the site's repository ("heddle/voice.json": ["claims.own-spend"]). The files keep their own schemas; this only says where a rule's facts live, and the rules never repeat them. | ||
rules |
list of objects | yes | One entry per ## section of the rule files. |
|
rules[].id |
string | yes | <file>.<rule>, stable: briefs and repairs name rules by it. | |
rules[].file |
string | yes | The rule file that holds its section. | |
rules[].heading |
string | yes | The section's ## heading, exactly as written. |
|
rules[].summary |
string | yes | The one line the summary form carries into every edit, repair and short-copy call. | |
rules[].enforcer |
any or list of values | yes | What holds the rule: one enforcer or a list. At least one must be active. | |
rules[].examples |
object | yes | Text that keeps the rule and text that breaks it. A lint's examples go through the lint and must come out as labelled. |
heddle/families/<family>.json
Family dataset, optional. The rows of one family, which are the data each of its programmatic pages is built from. heddle generate writes the publishable rows and their sibling links into heddle/generated/.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
family |
string | yes | The page pattern this dataset fills (heddle families lists them). | |
only |
list of strings | Publish only these row ids, where demand measures. | ||
hub |
string | Index page every row in this family links to, and the page that should link to every row. | ||
ownPages |
list of strings | Paths on the company's own site the families agent reads for every row, so what a row says about the company's own product comes from its own pages, cited like any other source. | ||
fields |
object | Fields this site's pages carry beyond the family's own (an answer under the H1, a meta description, FAQs), each with a note for the drafter. A row without one is skipped like a row without a required field, because its page would build broken. | ||
rows |
list of objects | yes | One row per page, with an id, its slug and the fields the family requires. A row missing a required field is left out. | |
rows[].sources |
list of values | Where the row's facts come from: URLs, or { id, url, checked } that items cite by id. heddle validate fails a citation to a source not listed here. | ||
rows[].visual |
object | The row's own drawing (comparisons, alternatives). | ||
rows[].intentReviewed |
object | The intent gate (lib/families/intent.mjs): a person read page one for this row's search, found it is not the family's kind of page, and decided the row answers it anyway. The row passes the gate and the reason stays on it. | ||
pinned |
list of objects | Pages kept outside this dataset that belong in its sibling lists, such as the headquarters metro's own page. Each carries a path, an anchor, and the row fields the family groups and clusters by. |
heddle/templates/<id>.json
Programmatic template manifest, optional. One programmatic template, in <site>/heddle/templates/<id>.json. The pseo check requires one for every generated family, and for any route family of three or more pages. It says which searches the pages are built for and why that demand is real, with dated evidence.
It also records what makes each page unique and how it is linked. Every page is listed with its own searches. heddle templates init scaffolds one from a generated family.
| Field | Type | Required | Default | What it is |
|---|---|---|---|---|
id |
string | yes | The template id: the file's name, and the value of <meta name="heddle-template"> on its pages. | |
name |
string | yes | What the template is, in words. | |
routes |
string | An anchored regular expression matching the template's routes. Give this or family, not both. |
||
family |
string | A generated family (heddle/generated/index.json) whose paths are the template's routes. Give this or routes, not both. |
||
intent |
one of: informational, commercial, local, transactional | yes | The intent the template is built for. | |
allowedIntents |
list of values | yes | Every intent a page of the template may target, its own included. | |
querySet |
string | yes | Which searches the template is built for and why they are real demand (eight words or more). | |
evidence |
list of strings | yes | The evidence files (evidence/<name>.json under heddle/templates/) its demand is read from. | |
zeroDemand |
object | A dated allowance for pages no reading shows demand for. While it is current they are not flagged for review. | ||
zeroDemand.reason |
string | yes | Why the pages stay although no reading shows demand (eight words or more). | |
zeroDemand.reviewed |
string | yes | When a person last read the evidence. | |
zeroDemand.until |
string | yes | When it must be read again; after it the allowance lapses and the pages are flagged. | |
serpMatch |
object or null | Optional: what page one looks like for this template's searches, replacing the family spec's serpMatch for its pages in the intent gate (lib/families/intent.mjs). null opts its pages out of the gate. | ||
uniquenessPlan |
string | yes | What each page has that no sibling has (twelve words or more). | |
faqPlan |
string | yes | How each page's questions are its own (twelve words or more). | |
rowFaqs |
one of: appended | Optional, for pages whose component writes some of their questions: "appended" says it shows each row's faqs after its own, so the families agent may add questions to a row (read with the component's, from the build) when the pseo check finds too few. Without it, a row with no faqs is a person's to change. |
||
hubs |
list of strings | yes | The hub pages that link to every page of the template from their content. | |
linksOut |
list of strings | yes | The service or hub pages every page links to from its content. | |
thresholds |
object | yes | The template's thresholds (the rules in lib/pseo/core.mjs). | |
thresholds.minUniqueWords |
number | yes | Words a page must have in blocks no sibling has. | |
thresholds.minOwnBlocks |
number | yes | Blocks of twelve words or more a page must have that no sibling has. | |
thresholds.maxSameness |
number | yes | Most of a page's prose that may be on its closest sibling, names masked. | |
thresholds.maxMaskedSimilarity |
number | yes | At or above this share, the whole page with names masked is its sibling: a token swap. | |
thresholds.minFaqs |
number | yes | FAQs each page needs. | |
thresholds.faqReuseMax |
number | yes | Most pages one question-and-answer pair may be on with only the name changed. | |
thresholds.minFaqEntityShare |
number | yes | Share of a page's FAQs that must name its own subject. | |
thresholds.minContextualInbound |
number | yes | In-content links each page needs from a hub or a hand-written page. | |
thresholds.maxDepth |
number | yes | Most clicks from the home page, and from a hub through in-content links. | |
thresholds.maxAnchorShare |
number | yes | Most of the in-content links to the template that may share one anchor, names masked. | |
pages |
object | yes | Every page by route: its intent, the searches it is built to win (queries), the names that make it this page (entities, masked by the uniqueness and FAQ rules), optionally the names its FAQs should carry (mention) and why it stays without demand (zeroDemand). |
Generated from the Heddle repository at 4ccdf8b.
Questions
How do I know my configuration is valid?
Run heddle validate with the site's path. It checks every file against its schema and the rules a schema cannot express, such as an agent above report with no approver, and exits 1 on any error.