2.9 KiB
ADR-0145: Energy-Modulated Vault Surface Readback
Status: Proposed Date: 2026-05-25 Related: ADR-0006 (field energy operator), ADR-0004 (vault), W-004 (rethaw)
Context
Under the current architecture:
- Vault recall re-thaws to energy class
E2(defined in W-004). - The realized output surface currently ignores the energy class of the grounded turn.
- ADR-0006 §Integration Points explicitly specifies that surface readback should be modulated by the energy class of the grounding source.
This creates a gap where vault-grounded turns are realized without their appropriate energy-modulated prefix, violating the specification of ADR-0006.
Decision
To align surface readback with the energy-modulation requirements of ADR-0006:
-
Energy Modulation Function: Implement
energy_modulated_surface(base: str, energy_class: EnergyClass | str | None) -> strin realizer.py. This function will prepend the appropriate prefix based on the energy class:Energy Class Prefix Example Output E0"From memory: ""From memory: {surface}"E1"I seem to recall: ""I seem to recall: {surface}"E2"I recall: ""I recall: {surface}"E3,E4None "{surface}"If the base string is empty, the returned value remains empty.
-
Threading the Energy Class:
- Add
recall_energy_class: str | NonetoCognitiveTurnResultin result.py. - Thread the
recall_energy_classfrom the pipeline toChatResponsein runtime.py.
- Add
-
Modulation Application: Apply the modulation explicitly in runtime.py on grounding pathways where
grounding_source == "vault".
What is NOT done
- E3/E4 Vault Modulation: While the prefix table handles
E3andE4by prepending nothing, no current vault recall pathways produce energy states reachingE3orE4. - Readback from Intent: Rules relating to
readback_from_intentinruntime_rules.pyare deferred to W-006 scope.
Consequences
- Surfaces retrieved from the vault (which default to
E2on re-thaw) will now be prefixed with"I recall: ". - Pack-grounded and teaching-grounded surfaces remain unaffected and will not receive energy modulation prefixes.
recall_energy_classis exposed as an inspectable property onChatResponseandCognitiveTurnResult.
References
- ADR-0006: Field Energy Operator
- ADR-0004: Vault Design
- W-004: Vault Re-thaw