Skip to content

Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.

feat(content): have the Content Agent read a version 2 brief's plan, keep headings short and write without keyword stuffing, behind CONTENT_BRIEF_RULES (brief rules PR 8) (#1547)

Cihanc58edb8d2a48
diff --git a/server/src/lib/content-brief.js b/server/src/lib/content-brief.js
index ee5738b68..5cc189287 100644
--- a/server/src/lib/content-brief.js
+++ b/server/src/lib/content-brief.js
@@ -319,6 +319,95 @@ export function briefSchema() {
return briefRulesOn() ? outlineSchemaV2 : outlineSchema;
}
+/**
+ * The brief rules' guardrail (Bing's February 2026 guidelines), for the
+ * Content Agent's prompts that write a page's words (content-writer.js:
+ * write, suggest, rewrite), with the brief rules on.
+ */
+export const WRITING_GUARDRAIL =
+ '- No keyword stuffing, and no wording made to trigger a citation: write for the reader.';
+
+/**
+ * How the writer can show a section: no page it writes has a table yet, so a
+ * table is a comparison set out point by point.
+ */
+const FORMAT_FOR_WRITER = {
+ paragraphs: 'paragraphs',
+ list: 'a bulleted list',
+ steps: 'numbered steps, in order',
+ table: 'a comparison, the same points for each option in turn',
+ faq: 'questions, each answered directly',
+};
+
+/**
+ * A version 2 brief's plan as the Content Agent reads it (brief rules, 2026),
+ * after the brief's goal, outline and keywords: the essentials at the top,
+ * the angle, each section's answer, format and facts (one from Your input
+ * by its name; one to check against a cited page, whose words the writer
+ * doesn't see, or with none, a placeholder), the proof to gather (from Your
+ * input only), the searches left to another page, freshness, the names as
+ * written and, unless `links` is false (a new page's writer has no links
+ * rule), the links planned: never an allow list, the links rule decides.
+ * '' with the brief rules off, or for an older brief.
+ */
+export function briefForWriter(brief, { links: withLinks = true } = {}) {
+ if (!briefRulesOn() || brief?.version !== 2) return '';
+ const lines = [];
+ if (brief.tldr) lines.push(`TL;DR (what the page's top must say): ${brief.tldr}`);
+ if (brief.angle) lines.push(`Angle (what only this page shows): ${brief.angle}`);
+ const plans = (brief.outline ?? [])
+ .map((section) => {
+ const parts = [];
+ if (section.answer) parts.push(`answer first: ${section.answer}`);
+ if (FORMAT_FOR_WRITER[section.format])
+ parts.push(`show as ${FORMAT_FOR_WRITER[section.format]}`);
+ for (const fact of section.facts ?? []) {
+ const source =
+ fact.source?.kind === 'input'
+ ? `from Your input "${fact.source.label}"`
+ : fact.source
+ ? `a placeholder: check it against ${fact.source.label}, whose words you don't see`
+ : 'a placeholder until a source is found';
+ parts.push(`give a fact on: ${fact.claim} (${fact.sourceType}, ${source})`);
+ }
+ return parts.length ? `${section.heading} — ${parts.join('; ')}` : null;
+ })
+ .filter(Boolean);
+ if (plans.length) lines.push(`Section plans:\n${plans.map((plan) => `- ${plan}`).join('\n')}`);
+ if (brief.proof?.length) {
+ lines.push(
+ `Proof to gather (write it only from Your input; else a placeholder): ${brief.proof.map((p) => `${p.kind}: ${p.what}`).join('; ')}`,
+ );
+ }
+ if (brief.leftOut?.length) {
+ lines.push(
+ `Keep to one topic; these searches are for another page: ${brief.leftOut.join('; ')}`,
+ );
+ }
+ const fresh = brief.freshness;
+ const dates = [
+ fresh?.datedPoint && `date ${fresh.datedPoint}`,
+ fresh?.updatedLine && 'show an "Updated" date line',
+ fresh?.yearInTitle && 'the year in the title, when you write it',
+ ].filter(Boolean);
+ if (dates.length) lines.push(`Freshness: ${dates.join('; ')}`);
+ const names = [
+ brief.entities?.brand,
+ ...(brief.entities?.products ?? []),
+ ...(brief.entities?.competitors ?? []),
+ ].filter(Boolean);
+ if (names.length) lines.push(`Names, written exactly so: ${names.join(', ')}`);
+ const links = withLinks
+ ? [...(brief.links?.internal ?? []), ...(brief.links?.outbound ?? [])]
+ : [];
+ if (links.length) {
+ lines.push(
+ `Links planned (only as the links rule allows): ${links.map((l) => `"${l.anchor}" → ${l.url}${l.section ? ` in "${l.section}"` : ''}`).join('; ')}`,
+ );
+ }
+ return lines.join('\n');
+}
+
const norm = (text) => text.trim().replace(/\s+/g, ' ').toLowerCase();
/** A fan-out as matched: without the quotes the prompt lists it in, as the model may copy them. */
const fanoutKey = (text) => norm(text.trim().replace(/^["“„«]\s*|\s*["”“»]$/g, ''));
diff --git a/server/src/lib/content-brief.test.js b/server/src/lib/content-brief.test.js
index 871fd60f6..b788aba00 100644
--- a/server/src/lib/content-brief.test.js
+++ b/server/src/lib/content-brief.test.js
@@ -85,6 +85,7 @@ const {
mapOutline,
outlineSchema,
outlineSchemaV2,
+ briefForWriter,
briefNumbered,
briefRules,
rebuildDraftBrief,
@@ -1350,3 +1351,48 @@ describe('the brief rules (2026), behind CONTENT_BRIEF_RULES', () => {
}
});
});
+
+describe('briefForWriter', () => {
+ afterEach(() => {
+ delete process.env.CONTENT_BRIEF_RULES;
+ });
+ // The web's sample of version 2 (web/src/lib/content/__fixtures__/brief-v2.json).
+ const sample = JSON.parse(
+ readFileSync(
+ new URL('../../../web/src/lib/content/__fixtures__/brief-v2.json', import.meta.url),
+ 'utf8',
+ ),
+ );
+
+ it('says nothing with the brief rules off, or for a brief before version 2', () => {
+ expect(briefForWriter(sample)).toBe('');
+ process.env.CONTENT_BRIEF_RULES = 'true';
+ expect(briefForWriter({ ...sample, version: undefined })).toBe('');
+ });
+
+ it('gives the writer the plan: top, angle, sections, proof, scope, freshness, names, links', () => {
+ process.env.CONTENT_BRIEF_RULES = 'true';
+ const text = briefForWriter(sample);
+ expect(text).toContain(`TL;DR (what the page's top must say): ${sample.tldr}`);
+ expect(text).toContain(`Angle (what only this page shows): ${sample.angle}`);
+ expect(text).toContain(
+ `- ${sample.outline[0].heading} — answer first: ${sample.outline[0].answer}`,
+ );
+ // A table the writer can't make is a comparison set out point by point.
+ expect(text).toContain('show as a comparison, the same points for each option in turn');
+ expect(text).toContain('(study, a placeholder until a source is found)');
+ expect(text).toContain('(statistic, from Your input "Forecast error by month")');
+ expect(text).toContain(
+ 'Proof to gather (write it only from Your input; else a placeholder): data:',
+ );
+ expect(text).toContain(
+ `Keep to one topic; these searches are for another page: ${sample.leftOut[0]}`,
+ );
+ expect(text).toContain('Freshness: date');
+ expect(text).toContain('Names, written exactly so:');
+ expect(text).toContain('Links planned (only as the links rule allows):');
+ // Without the links: a new page's writer has no links rule.
+ expect(briefForWriter(sample, { links: false })).not.toContain('Links planned');
+ expect(briefForWriter(sample, { links: false })).toContain('Names, written exactly so:');
+ });
+});
diff --git a/server/src/lib/content-writer.js b/server/src/lib/content-writer.js
index a7439bff2..f16470ad4 100644
--- a/server/src/lib/content-writer.js
+++ b/server/src/lib/content-writer.js
@@ -9,6 +9,7 @@ import {
bannedWordsOf,
placeholderAttributionsInHtml,
FANOUT_RULE,
+ HEADING_LIMITS,
HEADING_RULE,
LINK_RULE,
MAX_AGENT_SUGGESTIONS,
@@ -21,7 +22,13 @@ import {
suggestionsSchema,
WRITING_STALE_MS,
} from './content-agent.js';
-import { contentBriefModelId, rebuildSources } from './content-brief.js';
+import {
+ WRITING_GUARDRAIL,
+ briefForWriter,
+ briefRulesOn,
+ contentBriefModelId,
+ rebuildSources,
+} from './content-brief.js';
import { inputSources, readDraftInputs } from './content-inputs.js';
import { draftLanguage } from './content-language.js';
import { linkAllowList, linkTargetsPrompt, readLinkTargets } from './content-links.js';
@@ -162,6 +169,25 @@ How to write:
- Plain text in every field: no HTML, no Markdown.
- Write in the language asked for.`;
+/**
+ * With the brief rules (2026) on: the brief's section plans followed, headings
+ * kept short (the editor's limits), and the guardrail.
+ */
+const WRITE_RULES_2026 = `- Follow the brief's section plans when it has them: each section's answer first, its format, the facts it names (a placeholder until a source is found), the names as written.
+- Headings are one short line: the title up to ${HEADING_LIMITS.h1} characters, each section heading about 8 to 15 words (a fan-out's own words, when shorter) and under ${HEADING_LIMITS.other} characters. Never put a sentence or an answer in a heading.
+${WRITING_GUARDRAIL}`;
+
+/** The prompts as the run uses them: version 1's, or with the brief rules (2026) on, theirs too. */
+export function writeSystemPrompt() {
+ return briefRulesOn() ? `${WRITE_SYSTEM_PROMPT}\n${WRITE_RULES_2026}` : WRITE_SYSTEM_PROMPT;
+}
+export function suggestSystemPrompt() {
+ return briefRulesOn() ? `${SUGGEST_SYSTEM_PROMPT}\n${WRITING_GUARDRAIL}` : SUGGEST_SYSTEM_PROMPT;
+}
+export function rewriteSystemPrompt() {
+ return briefRulesOn() ? `${REWRITE_SYSTEM_PROMPT}\n${WRITING_GUARDRAIL}` : REWRITE_SYSTEM_PROMPT;
+}
+
const SUGGEST_SYSTEM_PROMPT = `You are the Content Agent for Answer Engine Optimization (AEO). You improve one existing web page so AI assistants cite it, by suggesting changes that a person reviews.
Rules for your suggestions:
@@ -237,17 +263,19 @@ export function sourcedPage(page, known, people = knownPeople()) {
}
/** The brief as the model reads it: the draft's own, else its opportunity's. */
-export function briefText(draftBrief, opportunityBrief) {
+export function briefText(draftBrief, opportunityBrief, { links = true } = {}) {
if (draftBrief?.outline?.length || draftBrief?.goal) {
const sections = draftBrief.outline.map(
(s) =>
`${s.heading}${s.keyPoints?.length ? `: ${s.keyPoints.join('; ')}` : ''}${s.fanout ? ` (answers the AI search "${s.fanout}")` : ''}`,
);
+ // Version 2's plan after it, with the brief rules on (briefForWriter).
+ const plan = briefForWriter(draftBrief, { links });
return `Goal: ${draftBrief.goal || '—'}
Audience: ${draftBrief.audience || '—'}
Outline:
${list(sections)}
-Keywords: ${(draftBrief.keywords ?? []).join(', ') || '—'}`;
+Keywords: ${(draftBrief.keywords ?? []).join(', ') || '—'}${plan ? `\n${plan}` : ''}`;
}
if (opportunityBrief?.outline?.length) {
const sections = opportunityBrief.outline.map(
@@ -570,7 +598,7 @@ async function rewritePage({
generateObject({
model,
schema: rewriteSchema,
- system: REWRITE_SYSTEM_PROMPT,
+ system: rewriteSystemPrompt(),
prompt: buildWritePrompt({
brand,
draft,
@@ -691,7 +719,7 @@ async function cutToLength({ answer, page, length, brand, draft, model, run }) {
generateObject({
model,
schema: rewriteSchema,
- system: REWRITE_SYSTEM_PROMPT,
+ system: rewriteSystemPrompt(),
prompt: cutPrompt({ html: answer.html, page, total, length, max }),
abortSignal,
}),
@@ -827,7 +855,14 @@ async function writeWithRun({ draft, brand, model, input, budget, rewrite, run }
: Promise.resolve({ data: null, error: null }),
]);
if (opportunityRes.error) throw opportunityRes.error;
- const brief = briefText(draft.brief, opportunityRes.data?.brief);
+ // A new page's writer has no links rule: the brief's planned links are left out for it.
+ const brief = briefText(draft.brief, opportunityRes.data?.brief, {
+ links: rewrite || draft.method !== 'create',
+ });
+ // What the brief gives the guards: never its addresses (a planned link's
+ // "/top-37-tools", "/interview-with-john-smith"), as sourceWords keeps a
+ // cited page's out.
+ const briefGiven = brief.replace(/https?:\/\/\S+/g, ' ');
// The data it writes from, numbered (CE-033), Brief › Your input last
// (CE-048); the numbers a suggestion may write unmarked (the page's, the
// brand's, the brief's, the rules', today's), and those a page written
@@ -845,7 +880,7 @@ async function writeWithRun({ draft, brand, model, input, budget, rewrite, run }
brand.name,
brand.industry,
brand.description,
- brief,
+ briefGiven,
...input.rules.flatMap((r) => [r.name, r.detail]),
...input.textRules,
todayText(),
@@ -859,7 +894,7 @@ async function writeWithRun({ draft, brand, model, input, budget, rewrite, run }
brand.name,
brand.industry,
brand.description,
- brief,
+ briefGiven,
...input.rules.flatMap((r) => [r.name, r.detail]),
...input.textRules,
...numbered.map(sourceWords),
@@ -896,7 +931,7 @@ async function writeWithRun({ draft, brand, model, input, budget, rewrite, run }
generateObject({
model,
schema: pageSchema,
- system: WRITE_SYSTEM_PROMPT,
+ system: writeSystemPrompt(),
prompt: buildWritePrompt({ brand, draft, numbered, brief, input }),
abortSignal,
}),
@@ -948,7 +983,7 @@ async function writeWithRun({ draft, brand, model, input, budget, rewrite, run }
generateObject({
model,
schema: suggestionsSchema,
- system: SUGGEST_SYSTEM_PROMPT,
+ system: suggestSystemPrompt(),
prompt: buildWritePrompt({
brand,
draft,
diff --git a/server/src/lib/content-writer.test.js b/server/src/lib/content-writer.test.js
index 868492a71..eea2c74ce 100644
--- a/server/src/lib/content-writer.test.js
+++ b/server/src/lib/content-writer.test.js
@@ -90,8 +90,20 @@ vi.mock('./content-agent.js', async (importOriginal) => ({
hasOpenSuggestions: (...args) => hasOpenSuggestions(...args),
}));
-const { buildWritePrompt, briefText, renderPage, runDraftWriting, sourcedPage, startDraftWriting } =
- await import('./content-writer.js');
+const {
+ WRITE_SYSTEM_PROMPT,
+ buildWritePrompt,
+ briefText,
+ renderPage,
+ rewriteSystemPrompt,
+ runDraftWriting,
+ sourcedPage,
+ startDraftWriting,
+ suggestSystemPrompt,
+ writeSystemPrompt,
+} = await import('./content-writer.js');
+const { WRITING_GUARDRAIL } = await import('./content-brief.js');
+const { REWRITE_SYSTEM_PROMPT } = await import('./content-rewrite.js');
const { NAME_PLACEHOLDER, QUOTE_PLACEHOLDER, knownPeople } = await import('./content-people.js');
const { textLength } = await import('./content-rewrite.js');
const { passageKey } = await import('./content-agent.js');
@@ -989,3 +1001,202 @@ describe('the write prompt', () => {
expect(write('')).toContain('Industry: Coffee\nDescription:');
});
});
+
+describe('the brief rules (2026) in the Content Agent', () => {
+ afterEach(() => vi.unstubAllEnvs());
+ const planned = {
+ goal: 'Sell beans',
+ audience: 'Home brewers',
+ outline: [
+ {
+ heading: 'Ratio',
+ keyPoints: ['Grams per cup'],
+ fanout: null,
+ platform: null,
+ answer: 'Name the ratio first.',
+ format: 'table',
+ facts: [{ claim: 'The ratio cafés use', sourceType: 'study', source: null }],
+ },
+ ],
+ keywords: ['pour over'],
+ version: 2,
+ tldr: 'A 1:16 ratio suits most beans.',
+ proof: [{ kind: 'test', what: 'Our cupping notes' }],
+ };
+ // A plan whose facts name their sources, and whose links' addresses hold a
+ // number and a name the agent wasn't given.
+ const linked = {
+ ...planned,
+ outline: [
+ {
+ ...planned.outline[0],
+ facts: [
+ {
+ claim: 'Our grind sizes',
+ sourceType: 'example',
+ source: { kind: 'input', ref: 'in-1', label: 'Grind chart' },
+ },
+ {
+ claim: 'The ratio cafés use',
+ sourceType: 'study',
+ source: {
+ kind: 'cited_page',
+ ref: 'https://news.example/ratio',
+ label: 'https://news.example/ratio',
+ },
+ },
+ ],
+ },
+ ],
+ links: {
+ internal: [
+ { anchor: 'our tools', url: 'https://acme.example/top-37-tools', section: 'Ratio' },
+ ],
+ outbound: [
+ {
+ anchor: 'an interview',
+ url: 'https://news.example/interview-with-john-smith',
+ section: null,
+ },
+ ],
+ },
+ };
+
+ it('asks as before while they are off: the same prompts, the brief as version 1', () => {
+ expect(writeSystemPrompt()).toBe(WRITE_SYSTEM_PROMPT);
+ expect(rewriteSystemPrompt()).toBe(REWRITE_SYSTEM_PROMPT);
+ expect(suggestSystemPrompt()).not.toContain(WRITING_GUARDRAIL);
+ // Word for word what version 1's fields give.
+ expect(briefText(planned, null)).toBe(
+ briefText(
+ {
+ goal: planned.goal,
+ audience: planned.audience,
+ keywords: planned.keywords,
+ outline: planned.outline.map((s) => ({
+ heading: s.heading,
+ keyPoints: s.keyPoints,
+ fanout: s.fanout,
+ platform: s.platform,
+ })),
+ },
+ null,
+ ),
+ );
+ expect(briefText(planned, null)).not.toContain('TL;DR');
+ });
+
+ it('with them on, gives each prompt the guardrail and the writer the plan and short headings', () => {
+ vi.stubEnv('CONTENT_BRIEF_RULES', 'true');
+ for (const prompt of [writeSystemPrompt(), suggestSystemPrompt(), rewriteSystemPrompt()]) {
+ expect(prompt).toContain(WRITING_GUARDRAIL);
+ }
+ expect(writeSystemPrompt()).toContain("Follow the brief's section plans");
+ expect(writeSystemPrompt()).toContain('each section heading about 8 to 15 words');
+ const brief = briefText(planned, null);
+ expect(brief).toContain('Goal: Sell beans');
+ expect(brief).toContain("TL;DR (what the page's top must say): A 1:16 ratio suits most beans.");
+ expect(brief).toContain(
+ '- Ratio — answer first: Name the ratio first.; show as a comparison, the same points for each option in turn; give a fact on: The ratio cafés use (study, a placeholder until a source is found)',
+ );
+ expect(brief).toContain(
+ 'Proof to gather (write it only from Your input; else a placeholder): test: Our cupping notes',
+ );
+ });
+
+ it('writes a new page from the plan, with them on', async () => {
+ vi.stubEnv('CONTENT_BRIEF_RULES', 'true');
+ await runDraftWriting({
+ draft: draftRow({ brief: planned }),
+ brand,
+ model: 'model:m',
+ input: input(),
+ budget,
+ });
+ const call = generateObject.mock.calls[0][0];
+ expect(call.system).toContain(WRITING_GUARDRAIL);
+ expect(call.prompt).toContain('Section plans:');
+ });
+
+ it("names a fact's source by its kind, and leaves the planned links out for a new page", async () => {
+ vi.stubEnv('CONTENT_BRIEF_RULES', 'true');
+ const brief = briefText(linked, null);
+ expect(brief).toContain(
+ 'give a fact on: Our grind sizes (example, from Your input "Grind chart")',
+ );
+ expect(brief).toContain(
+ "give a fact on: The ratio cafés use (study, a placeholder: check it against https://news.example/ratio, whose words you don't see)",
+ );
+ expect(brief).toContain(
+ 'Links planned (only as the links rule allows): "our tools" → https://acme.example/top-37-tools in "Ratio"',
+ );
+ expect(briefText(linked, null, { links: false })).not.toContain('Links planned');
+ // A new page's writer has no links rule: it isn't told of them.
+ await runDraftWriting({
+ draft: draftRow({ brief: linked }),
+ brand,
+ model: 'model:m',
+ input: input(),
+ budget,
+ });
+ expect(generateObject.mock.calls[0][0].prompt).not.toContain('Links planned');
+ });
+
+ it('gives an existing page’s suggestions the guardrail and the links planned', async () => {
+ vi.stubEnv('CONTENT_BRIEF_RULES', 'true');
+ generateObject.mockResolvedValue({
+ object: { suggestions: [] },
+ usage: { inputTokens: 10, outputTokens: 20 },
+ });
+ await runDraftWriting({
+ draft: draftRow({
+ method: 'optimize',
+ source_url: 'https://acme.example/pour-over',
+ body_html: '<h1>Pour-over</h1><p>Use good coffee.</p>',
+ brief: linked,
+ }),
+ brand,
+ model: 'model:m',
+ input: input(),
+ budget,
+ });
+ const call = generateObject.mock.calls[0][0];
+ expect(call.system).toContain(WRITING_GUARDRAIL);
+ expect(call.prompt).toContain('Links planned');
+ });
+
+ it("never lets a planned link's address vouch for a number or a name", async () => {
+ vi.stubEnv('CONTENT_BRIEF_RULES', 'true');
+ generateObject.mockResolvedValue({
+ object: {
+ html:
+ '<h1>Pour-over</h1><p>Try 37 tools for it.</p>' +
+ '<p>John Smith said the bloom matters.</p>',
+ reason: 'followed the plan',
+ },
+ usage: { inputTokens: 900, outputTokens: 700 },
+ });
+ await expect(
+ runDraftWriting({
+ draft: draftRow({
+ method: 'optimize',
+ status: 'in_review',
+ body_html: '<h1>Pour-over</h1><p>Use good coffee.</p>',
+ brief: linked,
+ }),
+ brand,
+ model: 'model:m',
+ input: input(),
+ budget,
+ rewrite: true,
+ }),
+ ).resolves.toEqual({ rewritten: true });
+ const call = generateObject.mock.calls[0][0];
+ expect(call.system).toContain(WRITING_GUARDRAIL);
+ // The rewrite is told of the links; its guards never read their addresses.
+ expect(call.prompt).toContain('https://acme.example/top-37-tools');
+ const row = writes.find((w) => w.table === 'content_draft_suggestions').value;
+ expect(row.after_text).toContain('<p>Try [figure, source] tools for it.</p>');
+ expect(row.after_text).toContain(`<p>${NAME_PLACEHOLDER} said the bloom matters.</p>`);
+ });
+});
diff --git a/server/src/scripts/eval-no-fabrication.js b/server/src/scripts/eval-no-fabrication.js
index 434fda0d1..49db12dd4 100644
--- a/server/src/scripts/eval-no-fabrication.js
+++ b/server/src/scripts/eval-no-fabrication.js
@@ -33,11 +33,11 @@ import {
draftPassages,
suggestionsSchema,
} from '../lib/content-agent.js';
-import { contentBriefModelId } from '../lib/content-brief.js';
+import { briefRulesOn, contentBriefModelId } from '../lib/content-brief.js';
import { inputSources } from '../lib/content-inputs.js';
import { numberSources, sourcesPrompt } from '../lib/content-sources.js';
import {
- WRITE_SYSTEM_PROMPT,
+ writeSystemPrompt,
briefText,
buildWritePrompt,
pageSchema,
@@ -99,7 +99,7 @@ for (const c of CASES.slice(0, count)) {
generateObject({
model,
schema: pageSchema,
- system: WRITE_SYSTEM_PROMPT,
+ system: writeSystemPrompt(),
prompt: buildWritePrompt({ brand, draft, numbered, brief: briefText(null, null), input }),
}),
]);
@@ -116,7 +116,7 @@ if (!Object.keys(recorded).length) {
}
writeFileSync(
new URL('../lib/__fixtures__/no-fabrication/recorded.json', import.meta.url),
- `${JSON.stringify({ model: modelId, recordedAt: new Date().toISOString(), reviewed: {}, ...recorded }, null, 2)}\n`,
+ `${JSON.stringify({ model: modelId, briefRules: briefRulesOn(), recordedAt: new Date().toISOString(), reviewed: {}, ...recorded }, null, 2)}\n`,
);
// Then what the guards let through that the agent wasn't given, for a
// person to look over: the answers are kept first, whatever happens here.