orchestrata_ultimate.orchestrator.intent_enums

Reference › orchestrata_ultimate › orchestrator › intent_enums

ValidationOutcome is the four-valued verdict an intent receives from validation: ALLOWED, DENIED, REQUIRES_APPROVAL and ESCALATED. It is kept in its own tiny module so that intent_results (the ValidationResult record) and intent_types can both import it without a cycle. It is traced to spec 003, story US-003.

At a glance

Source src/orchestrata_ultimate/orchestrator/intent_enums.py
Lines of code 21
Classes 1
Functions 0
Imports (internal) orchestrata_ultimate.core.base.traces
Imported by orchestrata_ultimate.orchestrator.intent_results, orchestrata_ultimate.orchestrator.intent_types
Tests that import it tests/generated_recovery/test_orchestrator_intent_enums.py, tests/orchestrator/test_intent_enums.py, tests/orchestrator/test_intent_results.py, tests/orchestrator/test_intent_types_behavioral.py, tests/test_orchestrator.py

Class diagram

Class diagram orchestrata_ultimate.orchestrator.intent_enums

Dependency diagram

Dependency diagram orchestrata_ultimate.orchestrator.intent_enums

API

Classes

ValidationOutcome (enum)

Bases: Enum · Decorators: traces(spec='003', story='US-003', reqs=['REQ-003-US-003-021']) · Line 15

Result of intent validation.

Member Value
ALLOWED 'allowed'
DENIED 'denied'
REQUIRES_APPROVAL 'requires_approval'
ESCALATED 'escalated'

Source

Permalink: https://gitlab.com/MSamy/orchestrata-ultimate-architecture/-/blob/a4cbc2bdf/src/orchestrata_ultimate/orchestrator/intent_enums.py

"""Intent validation outcome enums.

Extracted into a standalone module to break the circular import
between intent_types and intent_results.

Spec: 003-intent
"""

from enum import Enum

from orchestrata_ultimate.core.base.traces import traces


@traces(spec="003", story="US-003", reqs=["REQ-003-US-003-021"])
class ValidationOutcome(Enum):
    """Result of intent validation."""

    ALLOWED = "allowed"
    DENIED = "denied"
    REQUIRES_APPROVAL = "requires_approval"
    ESCALATED = "escalated"