PhilosophyFacade class
Thin facade over PhilosophyPort / PhilosophyEngine.
All methods first check that the engine (or a bare PhilosophyPort)
is configured. Throws StateError when nothing is wired.
Constructors
- PhilosophyFacade({required KnowledgeSystem system})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAvailable → bool
-
Whether a philosophy port is wired (engine or bare port).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- system → KnowledgeSystem
-
Access the orchestrator.
no setter
Methods
-
checkProhibitions(
ProhibitionCheckRequest request) → Future< ProhibitionCheckResult> - Check prohibitions against a proposed action or output.
-
detectTensions(
MultiLayerContext context) → Future< List< Tension> > - Detect tensions between Philosophy and other layers.
-
evaluate(
PhilosophyEvaluationContext context) → Future< PhilosophyGuidance> - Evaluate context against the active Ethos.
-
evaluateAndAdjust(
PhilosophyEvaluationContext context, StateWeighting stateWeighting) → Future< (PhilosophyGuidance, StateWeightingImpact)> - Evaluate context and adjust guidance by state weighting.
-
getEthos(
) → Future< Ethos> - Retrieve the currently active Ethos.
-
getEthosById(
String? id) → Future< Ethos> - Retrieve an Ethos by id from the wired EthosStorePort, with a graceful fallback to the active ethos.
-
intervene(
InterventionPoint point, PipelineContext context) → Future< InterventionResult> - Apply philosophy intervention at a pipeline stage.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
proposeFeedback(
FeedbackEvent event) → Future< EvolutionProposal?> - Generate an evolution proposal from action feedback.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited