Move certainty out of canonical state

This commit is contained in:
Meta Vens 2026-05-01 19:21:23 +01:00
commit 964e90fe2c
8 changed files with 107 additions and 158 deletions

View file

@ -172,7 +172,6 @@ to shape them properly.
A practical representation is:
- `mean`
- `certainty` or `concentration`
- `plasticity`
- `current_activation`
@ -183,17 +182,21 @@ So instead of:
use something like:
- `status_hunger.mean = 0.72`
- `status_hunger.certainty = 0.81`
- `status_hunger.plasticity = 0.22`
- `status_hunger.current_activation = 0.89`
This gives us:
- stable baseline personality
- uncertainty and variation
- different rates of change
- scene-sensitive activation without rewriting the whole person every turn
Canonical authored state should not include epistemic uncertainty about itself.
If a value is only an observer's read, a classifier output, or a draft import,
store that uncertainty as `confidence` on the perceived, inferred, or workflow
record instead. The character is not uncertain about our spreadsheet. The
spreadsheet may be uncertain about the character.
## Culture As A Prior Field
Culture should not create clones. Culture should shape distributions.

View file

@ -13,12 +13,11 @@ avoid turning every new scene into a bespoke little fog machine.
## Variable Components
Every scalar-like state variable uses the same four numeric components.
Canonical scalar-like state variables use three numeric components.
| Field | Meaning |
| --- | --- |
| `mean` | The baseline tendency or long-run level for this variable. A high `mean` means this trait, strategy, pressure, or stance is normally strong for the agent. |
| `certainty` | How confident the system is in the baseline. Low certainty means the value is provisional, thinly evidenced, or inferred from weak material. |
| `plasticity` | How easily this variable can change. High plasticity means the value can move quickly under events, relationships, culture, or scene pressure. Low plasticity means it is entrenched. |
| `current_activation` | How active the variable is right now, in this scene or current state. This can spike above or fall below the baseline without rewriting the agent. |
@ -27,16 +26,35 @@ Example:
```json
{
"mean": 0.35,
"certainty": 0.8,
"plasticity": 0.2,
"current_activation": 0.9
}
```
This means the agent is not generally high in the variable, the system is
fairly sure about that, the baseline is not very easy to change, but the
variable is strongly activated right now. Translation: this is a situation,
not a personality transplant.
This means the agent is not generally high in the variable, the baseline is not
very easy to change, but the variable is strongly activated right now.
Translation: this is a situation, not a personality transplant.
Canonical character state does not include `certainty`. If Ghostlight is
defining a character, uncertainty about that definition is not part of the
character. It belongs in workflow provenance, drafts, imported-source notes, or
review status. Otherwise the schema confuses the person with our confidence in
our paperwork, which is how bureaucracies get haunted.
Perceived or inferred state can use `confidence`, because that is explicitly
about an observer's or classifier's read:
```json
{
"mean": 0.7,
"confidence": 0.4,
"plasticity": 0.5,
"current_activation": 0.8
}
```
That means the observer currently reads the target as high in this dimension,
but the read is weakly supported or uncertain.
## Label Set Policy
@ -185,7 +203,6 @@ That is deliberate for v0:
- complete vectors make comparison and validation easier
- low `mean` values are meaningful
- low `current_activation` values tell the renderer not to emphasize a variable
- low `certainty` values warn future systems not to over-trust the value
Later, Ghostlight may support sparse authoring overlays for convenience. The
canonical fixture should remain explicit until we have enough tooling to avoid

View file

@ -52,24 +52,26 @@ Each agent has:
- `situational_state`
- `values`
Each scalar-like dimension is represented as:
Each canonical scalar-like dimension is represented as:
```json
{
"mean": 0.5,
"certainty": 0.5,
"plasticity": 0.5,
"current_activation": 0.5
}
```
This keeps baseline, confidence, change rate, and scene activation separate.
This keeps baseline, change rate, and scene activation separate.
A person can be dispositionally suspicious without being maximally suspicious
in every scene. A person can be highly activated right now without rewriting
their whole soul because someone coughed near a status wound.
For full meanings of `mean`, `certainty`, `plasticity`, `current_activation`,
and every required v0 label, see
Canonical variables do not include confidence or certainty. Perceived and
inferred variables use `confidence` when a read can be wrong.
For full meanings of `mean`, `plasticity`, `current_activation`, perceived
`confidence`, and every required v0 label, see
`docs/architecture/agent-state-variable-glossary.md`.
## Required First-Class Dimensions

View file

@ -38,49 +38,41 @@
"underlying_organization": {
"self_coherence": {
"mean": 0.62,
"certainty": 0.63,
"plasticity": 0.31,
"current_activation": 0.58
},
"contingent_worth": {
"mean": 0.58,
"certainty": 0.54,
"plasticity": 0.46,
"current_activation": 0.72
},
"shame_sensitivity": {
"mean": 0.68,
"certainty": 0.58,
"plasticity": 0.39,
"current_activation": 0.74
},
"reciprocity_capacity": {
"mean": 0.71,
"certainty": 0.64,
"plasticity": 0.28,
"current_activation": 0.66
},
"mentalization_quality": {
"mean": 0.76,
"certainty": 0.69,
"plasticity": 0.22,
"current_activation": 0.79
},
"authenticity_tolerance": {
"mean": 0.48,
"certainty": 0.51,
"plasticity": 0.44,
"current_activation": 0.41
},
"mask_rigidity": {
"mean": 0.61,
"certainty": 0.56,
"plasticity": 0.34,
"current_activation": 0.77
},
"external_regulation_dependence": {
"mean": 0.44,
"certainty": 0.47,
"plasticity": 0.49,
"current_activation": 0.52
}
@ -88,49 +80,41 @@
"stable_dispositions": {
"novelty_seeking": {
"mean": 0.64,
"certainty": 0.62,
"plasticity": 0.29,
"current_activation": 0.57
},
"conformity": {
"mean": 0.22,
"certainty": 0.66,
"plasticity": 0.25,
"current_activation": 0.18
},
"status_hunger": {
"mean": 0.39,
"certainty": 0.54,
"plasticity": 0.41,
"current_activation": 0.48
},
"risk_tolerance": {
"mean": 0.67,
"certainty": 0.61,
"plasticity": 0.33,
"current_activation": 0.73
},
"sociability": {
"mean": 0.52,
"certainty": 0.55,
"plasticity": 0.31,
"current_activation": 0.49
},
"baseline_threat_sensitivity": {
"mean": 0.71,
"certainty": 0.64,
"plasticity": 0.28,
"current_activation": 0.81
},
"aesthetic_appetite": {
"mean": 0.57,
"certainty": 0.43,
"plasticity": 0.45,
"current_activation": 0.44
},
"ideological_rigidity": {
"mean": 0.35,
"certainty": 0.5,
"plasticity": 0.38,
"current_activation": 0.28
}
@ -138,79 +122,66 @@
"behavioral_dimensions": {
"warmth": {
"mean": 0.54,
"certainty": 0.51,
"plasticity": 0.42,
"current_activation": 0.46
},
"drive": {
"mean": 0.76,
"certainty": 0.68,
"plasticity": 0.21,
"current_activation": 0.84
},
"grandiosity": {
"mean": 0.19,
"certainty": 0.6,
"plasticity": 0.37,
"current_activation": 0.12
},
"validation_seeking": {
"mean": 0.47,
"certainty": 0.49,
"plasticity": 0.43,
"current_activation": 0.53
},
"anxiety": {
"mean": 0.72,
"certainty": 0.64,
"plasticity": 0.33,
"current_activation": 0.86
},
"control_pressure": {
"mean": 0.59,
"certainty": 0.56,
"plasticity": 0.35,
"current_activation": 0.7
},
"hostility": {
"mean": 0.3,
"certainty": 0.5,
"plasticity": 0.47,
"current_activation": 0.25
},
"suspicion": {
"mean": 0.74,
"certainty": 0.66,
"plasticity": 0.28,
"current_activation": 0.82
},
"rigidity": {
"mean": 0.43,
"certainty": 0.54,
"plasticity": 0.4,
"current_activation": 0.51
},
"withdrawal": {
"mean": 0.5,
"certainty": 0.48,
"plasticity": 0.46,
"current_activation": 0.57
},
"volatility": {
"mean": 0.46,
"certainty": 0.52,
"plasticity": 0.42,
"current_activation": 0.61
},
"attachment_seeking": {
"mean": 0.42,
"certainty": 0.47,
"plasticity": 0.48,
"current_activation": 0.49
},
"distance_seeking": {
"mean": 0.69,
"certainty": 0.58,
"plasticity": 0.34,
"current_activation": 0.78
}
@ -218,67 +189,56 @@
"presentation_strategy": {
"charm": {
"mean": 0.55,
"certainty": 0.5,
"plasticity": 0.4,
"current_activation": 0.63
},
"compliance": {
"mean": 0.26,
"certainty": 0.55,
"plasticity": 0.36,
"current_activation": 0.2
},
"superiority": {
"mean": 0.28,
"certainty": 0.48,
"plasticity": 0.45,
"current_activation": 0.31
},
"detachment": {
"mean": 0.66,
"certainty": 0.59,
"plasticity": 0.32,
"current_activation": 0.75
},
"seductiveness": {
"mean": 0.22,
"certainty": 0.42,
"plasticity": 0.5,
"current_activation": 0.12
},
"competence_theater": {
"mean": 0.73,
"certainty": 0.6,
"plasticity": 0.31,
"current_activation": 0.86
},
"moral_theater": {
"mean": 0.18,
"certainty": 0.5,
"plasticity": 0.39,
"current_activation": 0.11
},
"strategic_opacity": {
"mean": 0.7,
"certainty": 0.62,
"plasticity": 0.27,
"current_activation": 0.8
},
"cultivated_harmlessness": {
"mean": 0.32,
"certainty": 0.46,
"plasticity": 0.46,
"current_activation": 0.38
},
"abrasive_boundary": {
"mean": 0.74,
"certainty": 0.67,
"plasticity": 0.24,
"current_activation": 0.88
},
"ironic_distance": {
"mean": 0.81,
"certainty": 0.7,
"plasticity": 0.19,
"current_activation": 0.9
}
@ -286,61 +246,51 @@
"situational_state": {
"exhaustion": {
"mean": 0.55,
"certainty": 0.63,
"plasticity": 0.8,
"current_activation": 0.79
},
"scarcity_pressure": {
"mean": 0.68,
"certainty": 0.67,
"plasticity": 0.7,
"current_activation": 0.88
},
"humiliation": {
"mean": 0.38,
"certainty": 0.52,
"plasticity": 0.77,
"current_activation": 0.42
},
"panic": {
"mean": 0.28,
"certainty": 0.56,
"plasticity": 0.82,
"current_activation": 0.35
},
"triumph": {
"mean": 0.1,
"certainty": 0.5,
"plasticity": 0.78,
"current_activation": 0.05
},
"grief": {
"mean": 0.34,
"certainty": 0.46,
"plasticity": 0.69,
"current_activation": 0.39
},
"overstimulation": {
"mean": 0.52,
"certainty": 0.6,
"plasticity": 0.74,
"current_activation": 0.66
},
"grievance_activation": {
"mean": 0.61,
"certainty": 0.58,
"plasticity": 0.63,
"current_activation": 0.77
},
"acute_shame": {
"mean": 0.45,
"certainty": 0.52,
"plasticity": 0.8,
"current_activation": 0.59
},
"perceived_status_threat": {
"mean": 0.57,
"certainty": 0.55,
"plasticity": 0.76,
"current_activation": 0.68
}
@ -356,49 +306,41 @@
"voice_style": {
"dryness": {
"mean": 0.86,
"certainty": 0.72,
"plasticity": 0.18,
"current_activation": 0.91
},
"sarcastic_deflection": {
"mean": 0.84,
"certainty": 0.74,
"plasticity": 0.2,
"current_activation": 0.93
},
"pointedness": {
"mean": 0.77,
"certainty": 0.68,
"plasticity": 0.25,
"current_activation": 0.82
},
"sincerity_evasion": {
"mean": 0.8,
"certainty": 0.69,
"plasticity": 0.24,
"current_activation": 0.87
},
"emotional_evasion": {
"mean": 0.78,
"certainty": 0.66,
"plasticity": 0.27,
"current_activation": 0.85
},
"banter_as_boundary": {
"mean": 0.74,
"certainty": 0.63,
"plasticity": 0.31,
"current_activation": 0.8
},
"verbal_aggression": {
"mean": 0.46,
"certainty": 0.55,
"plasticity": 0.42,
"current_activation": 0.5
},
"plainspoken_directness": {
"mean": 0.62,
"certainty": 0.58,
"plasticity": 0.33,
"current_activation": 0.67
}
@ -460,49 +402,41 @@
"underlying_organization": {
"self_coherence": {
"mean": 0.57,
"certainty": 0.5,
"plasticity": 0.42,
"current_activation": 0.61
},
"contingent_worth": {
"mean": 0.62,
"certainty": 0.45,
"plasticity": 0.49,
"current_activation": 0.69
},
"shame_sensitivity": {
"mean": 0.7,
"certainty": 0.53,
"plasticity": 0.45,
"current_activation": 0.72
},
"reciprocity_capacity": {
"mean": 0.66,
"certainty": 0.48,
"plasticity": 0.39,
"current_activation": 0.65
},
"mentalization_quality": {
"mean": 0.69,
"certainty": 0.55,
"plasticity": 0.35,
"current_activation": 0.7
},
"authenticity_tolerance": {
"mean": 0.31,
"certainty": 0.46,
"plasticity": 0.51,
"current_activation": 0.24
},
"mask_rigidity": {
"mean": 0.82,
"certainty": 0.57,
"plasticity": 0.25,
"current_activation": 0.9
},
"external_regulation_dependence": {
"mean": 0.58,
"certainty": 0.42,
"plasticity": 0.52,
"current_activation": 0.63
}
@ -510,49 +444,41 @@
"stable_dispositions": {
"novelty_seeking": {
"mean": 0.49,
"certainty": 0.44,
"plasticity": 0.47,
"current_activation": 0.52
},
"conformity": {
"mean": 0.4,
"certainty": 0.48,
"plasticity": 0.45,
"current_activation": 0.36
},
"status_hunger": {
"mean": 0.33,
"certainty": 0.4,
"plasticity": 0.51,
"current_activation": 0.31
},
"risk_tolerance": {
"mean": 0.44,
"certainty": 0.45,
"plasticity": 0.49,
"current_activation": 0.47
},
"sociability": {
"mean": 0.6,
"certainty": 0.5,
"plasticity": 0.41,
"current_activation": 0.68
},
"baseline_threat_sensitivity": {
"mean": 0.78,
"certainty": 0.58,
"plasticity": 0.3,
"current_activation": 0.83
},
"aesthetic_appetite": {
"mean": 0.43,
"certainty": 0.38,
"plasticity": 0.52,
"current_activation": 0.46
},
"ideological_rigidity": {
"mean": 0.29,
"certainty": 0.39,
"plasticity": 0.5,
"current_activation": 0.25
}
@ -560,79 +486,66 @@
"behavioral_dimensions": {
"warmth": {
"mean": 0.67,
"certainty": 0.49,
"plasticity": 0.4,
"current_activation": 0.74
},
"drive": {
"mean": 0.52,
"certainty": 0.45,
"plasticity": 0.45,
"current_activation": 0.56
},
"grandiosity": {
"mean": 0.16,
"certainty": 0.5,
"plasticity": 0.39,
"current_activation": 0.12
},
"validation_seeking": {
"mean": 0.55,
"certainty": 0.46,
"plasticity": 0.49,
"current_activation": 0.62
},
"anxiety": {
"mean": 0.76,
"certainty": 0.56,
"plasticity": 0.37,
"current_activation": 0.81
},
"control_pressure": {
"mean": 0.37,
"certainty": 0.44,
"plasticity": 0.48,
"current_activation": 0.4
},
"hostility": {
"mean": 0.18,
"certainty": 0.48,
"plasticity": 0.44,
"current_activation": 0.13
},
"suspicion": {
"mean": 0.69,
"certainty": 0.51,
"plasticity": 0.38,
"current_activation": 0.73
},
"rigidity": {
"mean": 0.39,
"certainty": 0.43,
"plasticity": 0.47,
"current_activation": 0.44
},
"withdrawal": {
"mean": 0.61,
"certainty": 0.5,
"plasticity": 0.39,
"current_activation": 0.7
},
"volatility": {
"mean": 0.38,
"certainty": 0.45,
"plasticity": 0.48,
"current_activation": 0.41
},
"attachment_seeking": {
"mean": 0.58,
"certainty": 0.43,
"plasticity": 0.51,
"current_activation": 0.66
},
"distance_seeking": {
"mean": 0.64,
"certainty": 0.49,
"plasticity": 0.44,
"current_activation": 0.72
}
@ -640,67 +553,56 @@
"presentation_strategy": {
"charm": {
"mean": 0.45,
"certainty": 0.4,
"plasticity": 0.51,
"current_activation": 0.52
},
"compliance": {
"mean": 0.52,
"certainty": 0.46,
"plasticity": 0.48,
"current_activation": 0.59
},
"superiority": {
"mean": 0.08,
"certainty": 0.44,
"plasticity": 0.45,
"current_activation": 0.05
},
"detachment": {
"mean": 0.57,
"certainty": 0.47,
"plasticity": 0.44,
"current_activation": 0.63
},
"seductiveness": {
"mean": 0.07,
"certainty": 0.35,
"plasticity": 0.5,
"current_activation": 0.03
},
"competence_theater": {
"mean": 0.58,
"certainty": 0.46,
"plasticity": 0.45,
"current_activation": 0.68
},
"moral_theater": {
"mean": 0.21,
"certainty": 0.4,
"plasticity": 0.49,
"current_activation": 0.19
},
"strategic_opacity": {
"mean": 0.84,
"certainty": 0.55,
"plasticity": 0.26,
"current_activation": 0.91
},
"cultivated_harmlessness": {
"mean": 0.76,
"certainty": 0.5,
"plasticity": 0.35,
"current_activation": 0.88
},
"abrasive_boundary": {
"mean": 0.12,
"certainty": 0.38,
"plasticity": 0.5,
"current_activation": 0.08
},
"ironic_distance": {
"mean": 0.22,
"certainty": 0.41,
"plasticity": 0.48,
"current_activation": 0.18
}
@ -708,61 +610,51 @@
"situational_state": {
"exhaustion": {
"mean": 0.5,
"certainty": 0.42,
"plasticity": 0.81,
"current_activation": 0.57
},
"scarcity_pressure": {
"mean": 0.77,
"certainty": 0.52,
"plasticity": 0.76,
"current_activation": 0.86
},
"humiliation": {
"mean": 0.61,
"certainty": 0.48,
"plasticity": 0.8,
"current_activation": 0.7
},
"panic": {
"mean": 0.42,
"certainty": 0.41,
"plasticity": 0.83,
"current_activation": 0.49
},
"triumph": {
"mean": 0.08,
"certainty": 0.36,
"plasticity": 0.78,
"current_activation": 0.04
},
"grief": {
"mean": 0.46,
"certainty": 0.38,
"plasticity": 0.73,
"current_activation": 0.5
},
"overstimulation": {
"mean": 0.61,
"certainty": 0.5,
"plasticity": 0.8,
"current_activation": 0.67
},
"grievance_activation": {
"mean": 0.49,
"certainty": 0.44,
"plasticity": 0.75,
"current_activation": 0.55
},
"acute_shame": {
"mean": 0.69,
"certainty": 0.48,
"plasticity": 0.82,
"current_activation": 0.78
},
"perceived_status_threat": {
"mean": 0.73,
"certainty": 0.51,
"plasticity": 0.76,
"current_activation": 0.8
}
@ -778,49 +670,41 @@
"voice_style": {
"dryness": {
"mean": 0.32,
"certainty": 0.39,
"plasticity": 0.49,
"current_activation": 0.35
},
"sarcastic_deflection": {
"mean": 0.28,
"certainty": 0.36,
"plasticity": 0.52,
"current_activation": 0.24
},
"pointedness": {
"mean": 0.24,
"certainty": 0.38,
"plasticity": 0.5,
"current_activation": 0.22
},
"sincerity_evasion": {
"mean": 0.62,
"certainty": 0.5,
"plasticity": 0.42,
"current_activation": 0.69
},
"emotional_evasion": {
"mean": 0.72,
"certainty": 0.54,
"plasticity": 0.36,
"current_activation": 0.78
},
"banter_as_boundary": {
"mean": 0.45,
"certainty": 0.43,
"plasticity": 0.48,
"current_activation": 0.49
},
"verbal_aggression": {
"mean": 0.09,
"certainty": 0.35,
"plasticity": 0.52,
"current_activation": 0.05
},
"plainspoken_directness": {
"mean": 0.4,
"certainty": 0.42,
"plasticity": 0.49,
"current_activation": 0.37
}
@ -861,15 +745,15 @@
"perceived_dimensions": {
"warmth": {
"mean": 0.44,
"certainty": 0.34,
"plasticity": 0.55,
"current_activation": 0.4
"current_activation": 0.4,
"confidence": 0.34
},
"suspicion": {
"mean": 0.83,
"certainty": 0.71,
"plasticity": 0.28,
"current_activation": 0.9
"current_activation": 0.9,
"confidence": 0.71
}
},
"beliefs": [
@ -894,73 +778,61 @@
"stance": {
"trust": {
"mean": 0.31,
"certainty": 0.38,
"plasticity": 0.52,
"current_activation": 0.27
},
"respect": {
"mean": 0.42,
"certainty": 0.31,
"plasticity": 0.49,
"current_activation": 0.46
},
"resentment": {
"mean": 0.18,
"certainty": 0.29,
"plasticity": 0.55,
"current_activation": 0.16
},
"dependence": {
"mean": 0.24,
"certainty": 0.28,
"plasticity": 0.56,
"current_activation": 0.31
},
"fear": {
"mean": 0.2,
"certainty": 0.25,
"plasticity": 0.57,
"current_activation": 0.22
},
"fascination": {
"mean": 0.61,
"certainty": 0.35,
"plasticity": 0.5,
"current_activation": 0.76
},
"obligation": {
"mean": 0.16,
"certainty": 0.22,
"plasticity": 0.58,
"current_activation": 0.13
},
"envy": {
"mean": 0.05,
"certainty": 0.2,
"plasticity": 0.5,
"current_activation": 0.02
},
"moral_disgust": {
"mean": 0.04,
"certainty": 0.21,
"plasticity": 0.53,
"current_activation": 0.03
},
"perceived_status_gap": {
"mean": 0.29,
"certainty": 0.27,
"plasticity": 0.54,
"current_activation": 0.31
},
"expectation_of_care": {
"mean": 0.22,
"certainty": 0.24,
"plasticity": 0.58,
"current_activation": 0.19
},
"expectation_of_betrayal": {
"mean": 0.47,
"certainty": 0.37,
"plasticity": 0.51,
"current_activation": 0.52
}

View file

@ -208,7 +208,6 @@
"type": "object",
"required": [
"mean",
"certainty",
"plasticity",
"current_activation"
],
@ -219,11 +218,6 @@
"minimum": 0,
"maximum": 1
},
"certainty": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"plasticity": {
"type": "number",
"minimum": 0,
@ -401,7 +395,7 @@
"type": "string"
},
"perceived_dimensions": {
"$ref": "#/$defs/variable_map"
"$ref": "#/$defs/inferred_variable_map"
},
"beliefs": {
"type": "array",
@ -648,6 +642,50 @@
"maximum": 1
}
}
},
"inferred_variable_map": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/inferred_state_variable"
}
},
"inferred_state_variable": {
"type": "object",
"required": [
"mean",
"confidence",
"plasticity",
"current_activation"
],
"additionalProperties": false,
"properties": {
"mean": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"plasticity": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"current_activation": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"evidence": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}

View file

@ -8,3 +8,4 @@
{"ts": "2026-05-01T17:52:01+00:00", "type": "implementation", "status": "ok", "note": "Added v0 canonical agent-state schema, required first-class dimension list, Call of the Void example fixture, and dependency-free validation script. schema:validate passes on the first fixture."}
{"ts": "2026-05-01T18:10:28+00:00", "type": "design", "status": "accepted", "note": "Split performed self from voice style in the v0 schema: presentation_strategy now includes abrasive_boundary and ironic_distance, while voice_style carries sarcasm, dryness, sincerity evasion, emotional evasion, and banter-as-boundary handles."}
{"ts": "2026-05-01T18:14:18+00:00", "type": "documentation", "status": "ok", "note": "Added agent-state variable glossary defining numeric components, current v0 labels, label-set policy, and why canonical fixtures include full required vectors rather than only strongly applicable labels."}
{"ts": "2026-05-01T18:21:07+00:00", "type": "design", "status": "accepted", "note": "Removed certainty from canonical authored state variables. Canonical character state now stores mean, plasticity, and current_activation; perceived/inferred dimensions use confidence when a read can be wrong."}

View file

@ -74,6 +74,7 @@ accepted_design:
- Ghostlight should build drama and narrative pressure, then project character-local dialogue contexts so characters can breathe and act from their own partial state.
- Call of the Void pressure should come from Sol's whole unresolved inheritance being trapped inside Elysium, not from a lone expedition discovering there is no way home.
- The first schema contract lives in schemas/agent-state.schema.json with required first-class dimensions in schemas/agent-state.required-fields.json and a validator in tools/validate_agent_state.py.
- Canonical authored character variables do not carry certainty; confidence belongs on perceived, inferred, classifier, memory, belief, or workflow-provenance records.
current_status:
summary: Ghostlight now has the Epiphany-style persistence spine, the first architecture payload, and the initial canonical agent-state schema seam for Call of the Void-style authoring examples. The schema is still v0 and should be hardened before building prompt projection on top of it.

View file

@ -43,8 +43,17 @@ def require_0_1(value: Any, path: str) -> None:
def validate_state_variable(obj: Any, path: str) -> None:
require(isinstance(obj, dict), f"{path} must be an object")
require_keys(obj, ["mean", "certainty", "plasticity", "current_activation"], path)
for key in ["mean", "certainty", "plasticity", "current_activation"]:
require_keys(obj, ["mean", "plasticity", "current_activation"], path)
require("certainty" not in obj, f"{path}.certainty belongs in perceived/inferred state, not canonical state")
for key in ["mean", "plasticity", "current_activation"]:
require_0_1(obj[key], f"{path}.{key}")
def validate_inferred_state_variable(obj: Any, path: str) -> None:
require(isinstance(obj, dict), f"{path} must be an object")
require_keys(obj, ["mean", "confidence", "plasticity", "current_activation"], path)
require("certainty" not in obj, f"{path}.certainty should be named confidence in perceived/inferred state")
for key in ["mean", "confidence", "plasticity", "current_activation"]:
require_0_1(obj[key], f"{path}.{key}")
@ -61,6 +70,12 @@ def validate_variable_map(
validate_state_variable(value, f"{path}.{name}")
def validate_inferred_variable_map(obj: Any, path: str) -> None:
require(isinstance(obj, dict), f"{path} must be an object")
for name, value in obj.items():
validate_inferred_state_variable(value, f"{path}.{name}")
def validate_agent(agent: dict[str, Any], required: dict[str, list[str]]) -> None:
agent_id = agent.get("agent_id", "<missing>")
path = f"agents[{agent_id}]"
@ -117,7 +132,7 @@ def validate_agent(agent: dict[str, Any], required: dict[str, list[str]]) -> Non
["observer_agent_id", "target_agent_id", "perceived_dimensions", "beliefs", "distortions"],
overlay_path,
)
validate_variable_map(overlay["perceived_dimensions"], None, f"{overlay_path}.perceived_dimensions")
validate_inferred_variable_map(overlay["perceived_dimensions"], f"{overlay_path}.perceived_dimensions")
for belief_index, belief in enumerate(overlay["beliefs"]):
belief_path = f"{overlay_path}.beliefs[{belief_index}]"
require_keys(belief, ["belief_id", "claim", "confidence"], belief_path)