Skip to content

Neural organs wired but UNFED: no caller for Coordinator.force_cycle / Persistence.load_all #274

Closed

Description

@hyperpolymath

Root cause of the token-cost/scattergun symptom. Hypatia.LearningScheduler (supervised, 5-min poll) ingests outcomes but never calls Hypatia.Neural.Coordinator.force_cycle/0; Coordinator.init/1 never calls Hypatia.Neural.Persistence.load_all/0 (zero callers). Result: ESN/RBF/MoE run on init-defaults forever; pattern_analyzer defensively ignores untrained output. Training data is ALREADY sufficient (outcomes: recipe-shell-quote-vars 166-pt series ≥60; patterns/registry.json 9 ≥5) — only the trigger is missing. Fix: LearningScheduler→force_cycle after ingest; Coordinator.init→load_all+hydrate (RBF/MoE/trust restore; ESN/LSM persistence is summary-only — lossless ESN persistence tracked as follow-up). Parent #273.

Activity

  1. hyperpolymath commented on May 20, 2026

    @hyperpolymath
    OwnerAuthor

    Closure recommendation (no self-close per ISSUE-CLOSURE policy)

    The two missing call-sites named in this issue are wired on main:

    • lib/learning_scheduler.ex:125 — run_learning_cycle calls trigger_neural_cycle(), which casts Hypatia.Neural.Coordinator.force_cycle/0 after each ingest tick (5-min poll). Guarded by Process.whereis + rescue → non-fatal if the neural layer is down.
    • lib/neural/coordinator.ex:90 — init/1 calls safe_load_persisted() → Hypatia.Neural.Persistence.load_all/0 and hydrates the RBF network (hydrate_rbf/2) from the persisted store. Cold-start path retained when trained != true.

    Shipped in PR #275 (f5257ef, merged 2026-05-18T09:41:36Z). Net effect:

    • ESN trains on accumulated confidence trajectories every cycle.
    • RBF trains on the pattern registry every cycle, and survives restart.
    • pattern_analyzer is no longer reading init-defaults.

    Follow-ups intentionally not captured here (separate issues if pursued):

    • Lossless ESN persistence (currently summary-only — data/verisim/neural-states/esn-summary.json).
    • LSM persistence (also summary-only).
    • Coordinator does not yet hydrate MoE / trust-graph on restart — both are designed to retrain per cycle, but a warm-cache path would shorten cold-start window.

    Recommend close. Parent epic #273 remains open while gaps (2)–(4) are tracked separately.

  2. hyperpolymath commented on May 25, 2026

    @hyperpolymath
    OwnerAuthor

    Status update — 2026-05-25

    This issue is resolved. Closing summary:

    The neural organs UNFED root cause was addressed across several PRs:

    Boot log now reports which networks restored:

    Neural Coordinator initialised: blackboard architecture, 8 networks, 6 phases
    (RBF restored from persisted state) (MoE restored: 3 experts with training history)
    (trust scores restored for 87 nodes) (gnn/vae/sequence restored)
    

    Operational guidance: with the M9 work in PR #314 the rebalance strategy is now configurable (:hypatia, :neural_rebalance_strategy = :a | :b | :c | :rotate). The longitudinal effectiveness study task (mix hypatia.strategy_effectiveness) lands the answer to whether :rotate outperforms fixed Strategy A once a few weeks of operational data accumulate.

    Closing as completed.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions