Learn
Methodology
How AgentDirective turns an ordinary project description into clear requirements without making your decisions for you.
How matching works
AgentDirective checks your description for known traits, such as sensitive data or actions that change production. You can correct the list before continuing. Your choices determine which Control Packs apply.
If nothing matches, you can send the description once to Cloudflare AI for suggestions. This is off by default. We do not store the description or response. AI can suggest only a trait from the existing list; it cannot choose a pack, answer a project question, or change your choices.
1. Identify what the system does
Traits describe capabilities and boundaries, not just technologies. Examples include sensitive data, outside input, tool access, money movement, multiple customers, production changes, and irreversible actions.
Every suggestion shows where it came from
AgentDirective records whether a trait came from you, a published rule, or the optional AI check. A suggestion is never presented as something you explicitly said.
user_stated— selected or written by the userrule_inferred— matched by versioned rulesmodel_suggested— suggested by the optional AI checkuser_corrected— changed by the user
{
"id": "FINANCIAL_ACTION",
"value": true,
"confidence": 0.90,
"provenance": "rule_inferred",
"reason": "The proposal includes a payment action."
}2. Match the safeguards
Each pack has a published applies_when rule. AgentDirective checks it against your confirmed traits and shows why it matched. If nothing matches, it creates a no-match assessment instead of an empty directive.
AI does not choose the safeguards
Only the published pack rules decide what applies. An AI model cannot invent a pack, skip its rule, or hide one that matches.
If you change a project trait, AgentDirective checks the rules again and records what changed.
"applies_when": {
"any": [
{ "characteristic": "FINANCIAL_ACTION", "equals": true },
{ "characteristic": "CONSEQUENTIAL_ACTION", "equals": true }
]
}See where it could fail
After matching, the review draws a failure map: your system as a short flow of steps, with each matched pack pinned to the step where its failure happens. The guided start, the review and every Control Pack page use the same steps and labels.
- Starts hereA request or outside content arrivesUntrusted input, identity, uploaded files
- Decided hereThe app or AI decidesModel output, invented answers, run budgets
- Acts hereThe change is madeAuthority, approvals, retries, reversibility
- Checked afterThe result is recorded and watchedAction trails, alerts, silent failures
- Stored throughoutRecords every step reads and writesData boundaries, copies, backups, corrections
Pins are numbered along the flow, highest-priority pack first, so the same packs always get the same numbers. A pin is high impact only when its pack has priority 5. Trust and authority boundaries appear only when your confirmed traits imply them. A step with no pin says “not assessed”, never “safe”.
3. Ask the important questions
The selected packs ask important questions. Quick Review shows the few most likely to change the build; Full Review shows them all.
confirmedAn authorized person supplied the answer.YesrecommendedA pack recommendation has not been accepted.NounresolvedThe material question remains open.Nonot_applicableThe user says the question does not apply and gives a rationale.Noexplicitly_rejectedThe user consciously rejects the safeguard and gives a rationale.No4. Create, track, and review
- CreateKeep the generated files in sync
agent-directive.jsonholds the requirements. The readable instructions and agent files come from it. - TrackKeep progress with the project
The coding agent updates one status entry per requirement and records important changes.
- ReviewCompare claims with evidence
The reviewer checks whether the report is complete and internally consistent. It does not inspect the code itself.
- ReassessKeep history when scope changes
A new directive shows what was added, changed, kept, or retired. Earlier decisions stay visible.
5. Versioning and governance
Schemas, the methodology, the pack library, and individual packs use semantic versions. Applicability or requirement changes require a pack version change. Breaking data-contract changes require a schema major version.
Each pack is expected to carry a distinct failure mode and control objective, technical review, evidence review, applicability fixtures, limitations, and changelog history before it can move from review to released. Packs are not added merely to increase match rates; wording gaps belong in versioned signals or context rules, while genuine control gaps require evidence. At present, every published pack remains in review.