attuned-core
Core types and traits for Attuned - human state representation for LLM systems.
Overview
This crate provides the foundational types for representing human state as interpretable vectors across 23 canonical axes. It includes:
- StateSnapshot - Point-in-time human state representation
- RuleTranslator - Converts state to LLM-consumable
PromptContext - Canonical Axes - 23 validated axes across 6 categories with governance metadata
Quick Start
use ;
// Create a state snapshot
let state = builder
.user_id
.source
.axis
.axis
.axis
.build?;
// Translate to prompt context
let translator = default;
let context = translator.to_prompt_context;
// Use context.guidelines in your LLM system prompt
println!;
println!;
println!;
Axis Categories
| Category | Axes | Purpose |
|---|---|---|
| Cognitive | 4 | Mental load, decision fatigue, complexity tolerance, focus |
| Emotional | 4 | Stress, frustration, confidence, enthusiasm |
| Social | 5 | Formality, warmth, assertiveness, patience, trust |
| Preferences | 4 | Verbosity, detail level, example preference, pacing |
| Control | 4 | Autonomy, agency, transparency, override |
| Safety | 2 | Vulnerability, crisis indicators |
Design Principles
- No Actions: Produces context, never executes actions
- No Persuasion: No engagement optimization or nudging
- Transparent: All axes have declared governance metadata
- Self-Report Priority: User-declared state always overrides inference
License
Apache-2.0