pub struct FafData {Show 16 fields
pub faf_version: String,
pub project: Project,
pub ai_score: Option<String>,
pub ai_confidence: Option<String>,
pub ai_tldr: Option<HashMap<String, String>>,
pub instant_context: Option<InstantContext>,
pub context_quality: Option<ContextQuality>,
pub stack: Option<Stack>,
pub human_context: Option<HumanContext>,
pub preferences: Option<Preferences>,
pub state: Option<State>,
pub tags: Vec<String>,
pub commands: HashMap<String, String>,
pub security: Option<Security>,
pub ai_instructions: Option<AiInstructions>,
pub conventions: Vec<String>,
}Expand description
A complete parsed .faf file — the root of the context document.
Fields§
§faf_version: StringThe .faf format version this file was written against (e.g. "2.5.0").
project: ProjectCore project identity (name, goal, language). Always present.
ai_score: Option<String>Cached AI-readiness score, if one was written by a generator.
ai_confidence: Option<String>Cached confidence band for the score, if present.
ai_tldr: Option<HashMap<String, String>>Short, AI-facing summary lines keyed by topic.
instant_context: Option<InstantContext>The fast-path context an assistant reads first (what/stack/files).
context_quality: Option<ContextQuality>Self-reported completeness metrics for the context.
stack: Option<Stack>The technical stack (frontend, backend, database, build, …).
human_context: Option<HumanContext>The human side — the 6 W’s (who/what/why/how/where/when).
preferences: Option<Preferences>Working preferences (quality bar, testing, docs, code style).
state: Option<State>Where the project is right now (phase, version, focus, milestones).
Free-form classification tags.
commands: HashMap<String, String>Top-level named commands (build/test/lint/dev) → shell invocations.
Some .faf files nest these under instant_context.commands instead;
see FafFile::commands() for the fallback that reads either shape.
security: Option<Security>Secrets handling guidance — what agents must never read or commit.
ai_instructions: Option<AiInstructions>Agent-facing guardrails and working-style notes.
conventions: Vec<String>Real repo conventions an agent should follow (not human↔assistant prefs).