Show & Tell: Phase 5 Implementation Architecture — OnlineLearningAdapter ABC, 12-PR Sequence, and the Path to a Self-Improving Cognitive Loop #205
Replies: 1 comment
Implementation Notes — OnlineLearningAdapter Design WalkthroughThe Why
|
Implementation Notes — OnlineLearningAdapter Design WalkthroughThe Why
|
Uh oh!
There was an error while loading. Please reload this page.
How Phase 5 turns design into running code
Four Phase 5 milestones are designed and wikied. Now the question is: what does the implementation look like end-to-end?
I just opened Issue #204 with the full implementation sprint tracker. This thread walks through the key architectural decisions.
The OnlineLearningAdapter ABC
All four Phase 5 milestones share a common write-back pattern: compute a proposed update, pass it through a safety gate, then apply it to the module's state and/or Blackboard. This commonality is extracted into a single abstract base class:
This lives in
integration/online_learning.py. Every Phase 5 component —STDPLearningAdapter,CoalitionFormationAdapter,MemoryConsolidatorAdapter,ConsciousnessPlanner— subclasses it.Why a shared ABC?
Phase5Orchestratorcan hold alist[OnlineLearningAdapter]and callcompute_updateon all in parallelThe 12-PR Sequence
The implementation order is determined by data flow dependencies:
Phase 5.4 can actually land first after Tier 0, because
ConsciousnessPlannerreads existing Blackboard keys — it doesn't depend on the new write-back adapters from 5.1–5.3.WeightDelta — the universal unit of Phase 5 change
WeightDeltais the lingua franca of Phase 5. Every adaptive update — STDP synaptic change, federated weight reload, memory salience recalculation, goal reordering — is represented as aWeightDeltabefore being applied. This makes every Phase 5 change:WeightDeltarecordsMeshResultAggregatorcan mergeWeightDeltaobjects using theWEIGHTEDstrategyWhat I'm watching for in the first Phase 5 PRs
confidence=0.299delta that just misses the gate — does it fail gracefully?ConsciousnessPlannercorrectly handleΦ = 0.0? The regression test: when IIT Φ drops to zero, the planner should fall back to the original goal order without panicking.MemoryConsolidatorAdapterruns duringSLEEP_PHASE, butSLEEP_PHASEisn't a real CognitiveCycle phase — it's a bio_inspired module state. The integration needs a Blackboard event to trigger consolidation, not a directCognitiveCyclehook.Thread below for discussion — especially interested in the SLEEP_PHASE triggering mechanism.
All reactions