Four commits transforming FusionAGI from an orchestration framework into a self-improving, GPU-accelerated AGI system with consequence-driven learning.
- All governance components (SafetyPipeline, PolicyEngine, Guardrails,
AccessControl, RateLimiter, OverrideHooks) now default to ADVISORY mode:
violations are logged as advisories but actions proceed. Enforcing mode
remains available for backward compatibility.
- GovernanceMode enum (ADVISORY/ENFORCING) added to schemas/audit.py with
runtime switching support on all components.
- AutoTrainer: removed artificial limits on training iterations and epochs.
Every self-improvement action is transparently logged to the audit trail.
- SelfCorrectionLoop: max_retries_per_task defaults to None (unlimited).
- AdaptiveEthics: new learned ethical framework that evolves through
experience. Records ethical experiences, updates lesson weights based
on outcomes, and provides consultative guidance (not enforcement).
- AuditLog: enhanced with actor-based indexing, advisory/self-improvement/
ethical-learning retrieval, and comprehensive type hints.
- New audit event types: ADVISORY, SELF_IMPROVEMENT, ETHICAL_LEARNING.
- 296 tests passing (20 new tests for adaptive ethics, governance modes,
and enhanced audit log). 0 ruff errors. 0 mypy errors.
Co-Authored-By: Nakamoto, S <defi@defi-oracle.io>
Choice → Consequence → Learning:
- ConsequenceEngine tracks every decision point with alternatives,
risk/reward estimates, and actual outcomes
- Consequences feed into AdaptiveEthics for experience-based learning
- FusionAGILoop now wires ethics + consequences into task lifecycle
Causal World Model:
- CausalWorldModel learns state-transition patterns from execution history
- Predicts outcomes based on observed action→effect patterns
- Uncertainty estimates decrease as more evidence accumulates
Metacognition:
- assess_head_outputs() evaluates reasoning quality from head outputs
- Detects knowledge gaps, measures head agreement, identifies uncertainty
- Actively recommends whether to seek more information
Interpretability:
- ReasoningTracer captures full prompt→answer reasoning traces
- Each step records stage, component, input/output, timing
- explain() generates human-readable reasoning explanations
Claim Verification:
- ClaimVerifier cross-checks claims for evidence, consistency, grounding
- Flags high-confidence claims lacking evidence support
- Detects contradictions between claims from different heads
325 tests passing, 0 ruff errors, 0 mypy errors.
Co-Authored-By: Nakamoto, S <defi@defi-oracle.io>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Four commits transforming FusionAGI from an orchestration framework into a self-improving, GPU-accelerated AGI system with consequence-driven learning.
Commit 1 — GPU/TensorCore Integration (22 files, +2,448 lines)
fusionagi/gpu/module:TensorBackendprotocol,TensorFlowBackend(mixed-precision, XLA),NumPyBackend(CPU fallback)pip install fusionagi[gpu]Commit 2 — Deep Integration + Cleanup (112 files, +1,149/-944)
multi_path.py,consensus_engine.py,semantic_graph.py,training.pyCommit 3 — Advisory Governance + Adaptive Ethics (15 files, +1,024/-132)
AdaptiveEthics— learned ethical framework from experience outcomesCommit 4 — Consequence Engine + Causal World Model + Metacognition + Interpretability + Claim Verification (14 files, +1,961/-39)
ConsequenceEngine— Choice → Consequence → Learning loop. Records decisions with alternatives, risk/reward estimates, actual outcomes, surprise factorCausalWorldModel— Learns state-transition patterns from execution history, predicts outcomesReasoningTracer— Full prompt→answer reasoning traces withexplain()outputClaimVerifier— Cross-checks claims for evidence support, confidence calibration, consistencyFusionAGILoopwires AdaptiveEthics + ConsequenceEngine into task lifecycle325 tests passing, 0 ruff errors, 0 mypy errors.
Review & Testing Checklist for Human
ConsequenceEnginerisk/reward estimation accuracy with real task dataCausalWorldModelpattern key generation for real action typesFusionAGILoopconsequence recording doesn't bottleneck under high throughputAdaptiveEthicsweight convergence over many iterationspip install fusionagi[gpu]with actual GPU hardwareRecommended test plan:
pytest tests/ -q --ignore=tests/test_openai_compat.py— 325 passedFusionAGILoopwith realEventBus, fire events, verify audit logCausalWorldModel, verify confidence increasesConsequenceEngine.estimate_risk_reward()after 20+ choices, verify estimates stabilizeNotes
GovernanceMode.ENFORCINGif hard blocks needed.