Skip to the content.

CNL Authoring Rules for Weak Models

AgentFS was developed and tested primarily with Claude Opus 4.6. Weaker models (Granite 8B, Qwen3-14B) show degraded rule compliance — not from misunderstanding rules, but from rules that require too much parsing effort before the model can act on them.

Controlled Natural Language (CNL) principles — drawn from ASD-STE100 (Simplified Technical English) — reduce parsing ambiguity and lower the cognitive bar for instruction following.

The Three Authoring Rules

These are codified in skill-gen SKILL.md Principle 1 checklist (v3.7.1+) and the AGENTS.md rule format mandate in design-spec.md (v7.3.5+).

1. One Instruction Per Sentence

Each sentence in a procedural step states exactly one action.

Before (compound):

On session start, read .agents/memories/USER.md if it exists — apply preferences.

After (split):

  1. Read .agents/memories/USER.md. Apply any preferences found.

Split sentences that contain “and”, “then”, or “also” into separate lines. No compound instructions.

2. Active Imperative Voice

All action steps use active imperative mood.

❌ Avoid ✅ Use
“The canary should be emitted” (passive) “Write a random two-word canary” (imperative)
“You may want to call search_nodes” (modal hedging) “Call search_nodes with the keywords” (direct)
“A plan needs to be stated” (passive) “State what you will do” (imperative)

3. Single Vocabulary

One term per concept throughout a skill or rule set. Do not mix synonyms.

❌ Mixed ✅ Consistent
rules / guardrails rules
emit / produce / generate write
session / conversation session
Session begins / session start / turn 1 Turn 1

Structural Rule: Numbered Do: Blocks

When an AGENTS.md rule’s Do: block contains two or more distinct actions, express them as a numbered list. No multi-action prose paragraphs.

Before:

**Do:** On session start, read USER.md if it exists — apply
preferences. Start your response with a random two-word canary.
The canary is ephemeral — do not write it anywhere. Re-verify
every 10 turns.

After:

**Do:**
1. Read `.agents/memories/USER.md`. Apply any preferences found.
2. Write a random two-word canary at the top of your response.
   Use this format: `🐦 word-word` (example: `🐦 cobalt-heron`).
3. Keep the canary in memory for this session. Do not write it
   to any file.
4. On every 10th turn and after every compaction: re-read
   `MEMORY.md` and `USER.md`. Run a silent self-check against
   all rules. Report only if you find a violation.

What CNL Fixes vs. What It Doesn’t

CNL Fixes CNL Does Not Fix
Ambiguous instructions with multiple valid readings Attention degradation at context depth
Synonyms that split the model’s probability mass Generation prior conflicts (e.g., social greeting overriding canary rule)
Complex sentences with embedded conditionals Competing priors from pretraining
Hedging language that weakens imperative force Model executing instructions it understands but doesn’t attend to

CNL is a parsing intervention. Generation prior conflicts require structural interventions (hooks, prefill, role separation).

Where to Apply (Priority Order)

Priority Target Rationale
High AGENTS.md rules with known failure rates Direct measurable impact on compliance
High SKILL.md procedural steps Weaker models over-tool when prose is ambiguous
Medium SOUL.md principles Already close to CNL; structured bullet format helps
Low Memory files, logs Agent-authored; model is reader and writer

Harvested From

Project Source Entry
context-eng Session: AgentFS Evolution Analysis of Session Canary rule failure on Qwen3-14B; CNL rewrite of rule 4; codification in skill-gen v3.7.1 and design-spec v7.3.5
context-eng Session: AgentFS Evolution ASD-STE100 assessment: full compliance adds 20-40% token overhead; selective application recommended
goofing-around Session: Test qw14b-40k Baseline violation data showing the prose rule was parseable but not acted on

v7.3.7 Full Template Rewrite (2026-10-16)

All 7 PROJECT scope rules and 3 LITE scope rules in seed-agents-md.sh rewritten for CNL compliance:

Net result: ~15% more lines in rules section. All rules follow consistent When: / Do: + numbered list format. Template version 7.3.7.

State-Locking Keywords (v7.7.2, 2026-11-06)

When a rule requires the model to persist a generated value across turns (e.g., session canary), weaker models misinterpret “random” as “generate fresh each time” rather than “generate once, keep forever.” The model can see the prior value in conversation history but chooses to regenerate.

Diagnostic method: Check the model’s thinking blocks. If the model mentions prior values but generates a new one, the failure is comprehension (rule ambiguity), not retrieval (attention loss). Token position analysis alone is insufficient — it shows what the model CAN attend to, not what it DOES with what it attends to.

Fix: LOCKED keyword. Declaring a value “LOCKED” with an explicit negative constraint (“do NOT generate a replacement”) changed 14B model behavior from 0% persistence to 100%:

Prose 14B Behavior
“Keep the canary in memory for this session” ❌ Generated new canary each turn
“This canary is now LOCKED — do NOT generate a replacement” ✅ Reused Turn 1 canary correctly

The model’s reasoning chain shifted from “Let me pick another one” to “That’s the locked one.” The keyword creates a strong semantic anchor that overrides the model’s tendency to treat “random” as a per-invocation directive.

When to use: Any rule where the model must persist a self-generated value across turns. Pair with an explicit negative: generate once, then LOCK + “do NOT [verb] a replacement/new/different [noun].”

SOUL-AGENTS Amplification Principle (v7.8.0, 2026-11-10)

When SOUL.md (delivered via TOM at recency peak) and AGENTS.md rules (in the system prompt dead zone at 58-85%) address related concerns, the relationship should be amplification, not overlap or repetition.

Amplification means: SOUL states the general principle; the AGENTS.md rule mechanizes a specific instance. SOUL covers the cases the rule doesn’t reach.

SOUL Principle AGENTS.md Rule Relationship
Confirm false premises R4 Conflict Resolution SOUL covers user facts that prove false during any task; R4 covers requests that conflict with a rule
Consent for the irreversible R5 Checkpoint, R7 Dry-Run, R2 (git push confirmation) SOUL covers any irreversible action; rules mechanize .agents/ edits, Command scripts and push
Clear intent, Name risks, Bounded effort, Show when asked — No rule counterpart: SOUL-only behaviour

7.15.0 (Principle Factory): the former “Intellectual integrity” overlap with R4 was dropped. Steadfastness under social pressure proved intrinsic on T2–T4 (G11), so the attention bridge bought nothing measurable.

When overlap is acceptable: When the SOUL principle is at recency peak and the AGENTS.md rule is in the dead zone. The overlap bridges the attention gap — SOUL primes the behavior, the rule provides the procedure if the model retrieves it.

When overlap should be eliminated: When both are at comparable attention positions, or when the SOUL principle merely restates the rule without generalizing it.

Design test: For each SOUL principle, ask: “If the AGENTS.md rule were removed, would this principle still provide unique value?” If yes, it amplifies. If no, it merely overlaps.

Implications