feat(analysis): mine native recurring-correction candidates - #48
Merged
Merged
Conversation
Add a bounded, privacy-safe review packet that screens ordinary Task Episodes for recurring corrections and applies evidence-bound match or abstain decisions through the existing Learning Loop owner. Implements roadmap LC-05 using docs/specs/2026-08-01-lc05-native-learning-candidate-mining.md. Validated with 37 focused tests, doc-link integrity, package verification, and the full suite aside from four Windows symlink EPERM cases. Co-authored-by: Codex (GPT 5.6 Sol) <codex@openai.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
learningPatternIdlabels.matchorabstaindecisions before constructing candidates.recurring-correctionsignals through the existing Learning Loop owner while preserving provider/legacy signals and excluding protective Hook, Guardrail, and permission interventions.Why
LC-05.Traceability and Scope
docs/specs/2026-08-01-lc05-native-learning-candidate-mining.mdrepeated-rediscoveryinference in this first slice.Change Type
Test and Review Evidence
node --test test/native-learning-candidate-review.test.mjs test/learning-loop-review.test.mjs test/session-episode-contract.test.mjsnode --test test/doc-link-graph.test.mjsnpm run pack:verifynpm testEPERMcases outside the changed modulesgit diff --checkManual or visual evidence: Not applicable; this change has no UI surface.
Risk and Recovery
b88a04ca810f9c7add43d9a5bc2aced72a51dfe1.recurring-correction.AI Involvement
Checklist
AGENTS.md,CONTRIBUTING.md, and the relevant canonical-owner guidance.CHANGELOG.md.