refactor(learning): VRE as knowledge linter; integrators own the loop#60
Merged
anormang1992 merged 2 commits intomainfrom May 8, 2026
Merged
refactor(learning): VRE as knowledge linter; integrators own the loop#60anormang1992 merged 2 commits intomainfrom
anormang1992 merged 2 commits intomainfrom
Conversation
Removes VRE's auto-learning orchestration. The engine identifies gaps and persists validated fills; loop control, decision tracking, and metrics are the integrator's responsibility. The langchain demo's new learn_gaps tool is the reference implementation. Core changes: - Remove VRE.learn_all, on_learn from vre_guard, learning metrics, CandidateDecision, LearningResult, LearningCallback ABC - LearningEngine.learn_gap(gap, candidate, source=LEARNED) replaces callback-driven learn_at - Validation moves from engine persist methods onto candidate models via validate_for_gap - ReachabilityCandidate gains explicit source_name; either side may match the gap primitive - New reachability_prerequisites() returns DepthGaps that must be filled before edge placement, replacing the invisible _learn_missing_depths nested callback - contiguous_max_depth becomes a property on Primitive, shared by grounding and learning engines Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…dge-linter paradigm
- pyproject: 0.5.0 -> 0.6.0
- README: replace Auto-Learning section with integrator-owned Learning;
drop on_learn from guard parameters and execution flow; update project
structure for the new learning module layout; refresh wiring example
- docs/index.html: rewrite LEARNING section around the integrator-owned
loop (check / fill / persist / re-check) and reachability prerequisites;
drop on_learn from vre_guard parameter list; fix stale depth claim
("Planning requires D2 / Execution requires D3") to reflect that depth
requirements are graph-derived with min_depth as an optional override
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Removes VRE's auto-learning loop orchestration. VRE now identifies gaps and persists validated fills; loop control, decision tracking, and metrics are the integrator's responsibility. The langchain demo's new `learn_gaps` tool is the reference implementation.
Test plan
🤖 Generated with Claude Code