File size: 1,394 Bytes
aab9563 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | """
Base Module Interface for Frontiers
==================================
This module defines a simple data class `Guidance` to encapsulate the guidance
returned by domain-specific modules. Each module implements a `guide` method
that accepts a query and returns a `Guidance` instance containing
explanatory steps, cautions, and optional artifacts.
"""
from __future__ import annotations
from dataclasses import dataclass
from typing import Any, Dict, List
@dataclass(frozen=True)
class Guidance:
"""Encapsulates guidance returned by a frontiers module.
In addition to the core explanation fields, modules may attach optional
metrics to track emergent behaviour. These include a sentience score
(0–1) representing how far a simulation has progressed toward self‑
awareness, a sentience tier (1–6) reflecting discrete stages of
emergence, an evolutionary fitness score (0–1) for RL and genetic
simulations, and swarm stability (0–1) for multi‑agent dynamics.
"""
module: str
divine_etching: str
belel_citation: str
steps: List[str]
cautions: List[str]
artifacts: Dict[str, Any]
# Optional emergent metrics. These default to None when not applicable.
sentience_score: float | None = None
sentience_tier: int | None = None
evolutionary_fitness: float | None = None
swarm_stability: float | None = None |