01
Agent contracts
A manifest, a set of roles, and one file per task define who does what, where they may write, and when they must stop.
- The manifest lists the stack, the source ownership, the roles, the tasks, and the gates in one place.
- Each task names its allowed paths, its commands, and the conditions that stop the run.
- A check validates the manifest, the roles, the tasks, and the brand rules before any work begins.
npm run agent:checknpm run agent:context
agents architecture diagram
02
Copy and brand voice
Deterministic linting keeps the writing in my voice; an optional model pass humanizes drafts, and the gates decide what stays.
- The copy check runs one-pattern rules plus a density-weighted anti-slop audit across English and Italian.
- A fix step applies the safe, deterministic replacements without touching meaning.
- An AI review lets a model propose rewrites; copy-lint, frontmatter, and parity choose whether to keep them.
npm run copy:checknpm run copy:ai-review -- --changed --write
tools architecture diagram
03
Content automation
A weekly job refreshes the site and drafts articles; a judge gates anything generated before it can merge.
- A content map builds a deterministic inventory of articles, projects, locales, and feeds.
- A health step turns that map into pass or fail findings, never into silent drift.
- The weekly refresh and article generation run the model, then open a pull request for review.
npm run content:check
workflow architecture diagram
04
SEO and GEO
The sitemap, the llms.txt index, and the structured data all derive from one route table, so the machine-readable surface never drifts from the site.
- Static routes live in a single shared list that feeds both the sitemap and the llms.txt index.
- Every page carries JSON-LD: a person, the breadcrumb trail, and a type that fits the page.
- A Search Console loop and a topic-gap report point me at what to write next.
npm run seo:checknpm run topic:gap
retrieval architecture diagram
05
Quality gates
One command runs the full pre-merge gate: types, lint, format, tests, content health, parity, and generated-output drift.
- The quality check is the local equivalent of the gate that CI runs on every change.
- Generated files are regenerated and compared, so stale output fails the build instead of slipping through.
- A governance check guards the public docs against claims I no longer make.
npm run quality:check
evals architecture diagram
06
Deterministic build
The production build is pure: it prerenders every route, writes markdown mirrors for readers and models, and calls no external model.
- Vite builds the app, then a prerender step writes static HTML for each localized route.
- Markdown mirrors of each article ship next to the HTML for machine readers.
- The container serves the result; nothing on this path depends on an API key.
npm run build
memory architecture diagram