ContextBase class abstract

The foundational implementation of the Operational Environment, providing the core logic for Prototype-based Inheritance and Ontological Resolution.

ContextBase serves as the metabolic engine for all specialized contexts (such as DeputyContext or PulseContext). It handles the hierarchical lookups and state management required to maintain the Causal Trace of a Cell's authority and identity.

When to use

You rarely interact with this directly. Use the Context factory methods like Context.module(), Context.secureEnclave(), or Context.system. This class is the base that powers those factories.

How it works

  • Stores governance metadata (like domains, constraints, compliance) in a memory-efficient record.
  • Supports prototype-based inheritance: if a property isn't found locally, it walks up the parent chain.
  • All state is immutable – to change a context, you create a new one via evolve().
Implemented types
Implementers

Constructors

ContextBase(Iterable<GovernanceEntry<Governance, dynamic>> entries, {Map<String, dynamic>? others, Context? parent})
Synthesizes an Operational Environment from a collection of strongly-typed governance entries.
ContextBase.fromRecord(Record record)
The foundational initializer that anchors the context to a memory-optimised record.

Properties

compliance → String?
The regulatory standards or compliance frameworks (e.g., GDPR, PCI-DSS) governing this context.
no setteroverride
constraints → Map<String, dynamic>?
Operational guardrails and logic parameters governing resource usage and agent behavior.
no setteroverride
dataSources → String?
The origins of information (synthetic or organic) that this context is permitted to ingest.
no setteroverride
domains → String?
The primary high-level functional areas or business namespaces this context belongs to.
no setteroverride
hashCode → int
Generates a unique hash derived from the Ontological Footprint of the context.
no setteroverride
identity → String?
The unique instance name or specific label assigned to this context.
no setteroverride
isNot → String?
Explicit prohibitions defining what this context is strictly forbidden from becoming or accessing.
no setteroverride
partOf → String?
The parent system module or container that this context represents a logical slice of.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stakeholders → String?
The entities, users, or autonomous agents responsible for or impacted by this context's execution.
no setteroverride
subDomains → String?
Granular subdivisions of the primary domains, used for precise scoping of authority.
no setteroverride
taxonomy → String?
The fundamental categorical identity or functional archetype of this context.
no setteroverride
topology → String?
The structural position or network role of this context within the organizational hierarchy.
no setteroverride
type → String?
The categorical archetype or "Kind" of functional operation this context represents.
no setteroverride
version → String?
The schema or ontological version used to interpret the metadata within this context.
no setteroverride

Methods

evolve(covariant GovernanceEntry<Governance, dynamic>? resolver(Governance evolvable), {Map<String, dynamic>? others}) → Context
Synthesizes an Ontological Specialization of the current Context, refining its governance dimensions to create a new branch in the system's Causal Trace.
inherited
lineage(covariant Ontology dimension) → List<String>
Traverses the hierarchical tree to produce a Causal Trace of a specific knowledge dimension associated with this context.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
Performs Identity Synthesis by comparing the structural convergence of two Somatic Signatures.
override
operator [](Governance dimension) → dynamic
Accesses a specific Governance Pillar or ontological dimension by its type-level marker, supporting the Flyweight Pattern and generic reasoning.
override