LeapFlow 0.2.0 — Teacher/Student World-Model Self-Evolution - #46
Merged
Merged
Conversation
Signed-off-by: 班扬 <[email protected]>
Two-agent split: the world model (cold path) grades each session and distils what it learned into the student's next-turn context. It answers four-value adaptation verdicts (absorb / rebind / acquire / escalate), each carrying knowledge for the acting agent. - C1 distilled-knowledge channel with supersede/expire/retract retirement - C2 rebind recommendation as a resolver preference (never a gate) - C3 acquire -> queued plugin proposal, behind the evolution.enabled switch - degradation feedback loop wires plugin health into capability evidence; recovery retires stale knowledge - evolution.enabled switch (default off), own config category, announced at startup in both states - fix: lifecycle governor / durable trust ledger / proposal sink were never wired in production; one clamp point for model-authored risk - remove the unused Thompson/UCB1/Bucketed selection policies; keep the seam - inert-wiring audit tool; repository-wide copyright headers Verified: 3733 mock tests, journeys/regression/leapspace green, real-LLM S9 teacher accuracy with four-action discrimination.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A two-agent architecture: the world model (cold path) reviews each session and distils what it learned into the student's next-turn context. It never acts — it changes what the agent knows. Self-evolution (writing new capabilities) is a separate, off-by-default switch.
Feature
absorb/rebind/acquire/escalate— each carrying knowledge for the acting agent.acquireverdict becomes a queued plugin proposal, behind the new switch; queued still passes generation, validation, approval, sandbox, and trust.evolution.enabledswitch (default off) in its ownSelf-Evolutionconfig category, announced at startup in both states.Fix
getattragainst unassigned attributes) — Progressive Trust and acquisition were inert; now wired, with a startup audit to prevent regressions.requested_max_risk_levelfor audit.rebindguard no longer rejects a provider the teacher was itself shown; retry-owned failure classes are filtered from the teacher;failure_classpersisted.Refactor
SelectionPolicyseam andGreedyPolicy.intentsare derived fromacquireverdicts (single source of truth); one shared capability-name rule; one switch admits world-model evidence (was two knobs).Enhance
tools/audit_inert_wiring.py) added to CI.Documentation