UNPKG

universal-life-protocol-core

Version:

Revolutionary AI framework implementing living, conscious digital reality with meta-cognitive reasoning, attention economics, and autonomous learning

66 lines 1.84 kB
/** * Represents the state of an entity in a single MDU domain. */ export interface MduState { A: number; B: number; } /** * Represents an entity's complete state, now supporting multiple domains and * historical path-dependency. This implements a system with "historical memory". */ export interface EntityState { entityId: string; currentL: number; multiDomainState: Map<string, MduState>; baseHistory: number[]; } /** * Represents a state in the Weighted MDU model, turning the state space * into a "cost landscape". */ export interface WeightedMduState extends MduState { L: number; w: number; } /** * Represents a pattern-matching rule for the CEP Engine. * The pattern can now check against the history of events. */ export interface CepRule { id: string; pattern: (event: CUE_Event, history: CUE_Event[]) => boolean; action: (matchedEvents: CUE_Event[]) => void; } /** * Represents an explicit, symbolic rule learned by a CLARION-MDU agent. * This is "minted" during an L-transition from successful implicit knowledge. */ export interface ExplicitRule { condition: { L: number; A: number; }; action: string; } export type KeyPair = { publicKey: string; privateKey: string; }; export interface SignedMessage<T> { payload: T; sourceCredentialId: string; signature: string; } export type ConsensusLevel = 'LOCAL' | 'PEER_TO_PEER' | 'GROUP' | 'GLOBAL'; /** * The top-level CUE event, broadcast across the network. * It now includes types for the new protocol enhancements. */ export interface CUE_Event { type: 'STATE_CHANGED' | 'HARMONIC_RESONANCE_TRIGGER' | 'CTL_QUORUM_ACTIVATED' | 'AGENT_ACTION' | 'AGENT_LEARNED_RULE'; level: ConsensusLevel; payload: any; timestamp: number; } //# sourceMappingURL=types.d.ts.map