feat: add conservative code location repair workflow#32
Open
ruirui6946 wants to merge 1 commit into
Open
Conversation
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.
Closes #4
Summary
data/entries.jsonlentry_point,critical_operation, andtracenode at its exact repository commitRepair policy
The resolver checks the recorded location first, then searches in the required order:
Only unique matches are repaired. Whitespace, tabs, and multiline snippets are normalized for matching. Ambiguous, missing, empty, low-information, or unavailable-source cases remain unchanged and are written to
needs_human.csv. Repository commits are batch-fetched into a reusable local bare cache.Results
Prioritized samples:
entry-00103: corrected605-614to606-614and146-155to146-154, including description synchronizationentry-00185: corrected75-82to76-82entry-00320: all 6 locations already exactentry-00511: all 7 locations already exactValidation
python -m unittest discover -s tests -v— 15 tests passedpython scripts/verify_entry_location_outputs.py— 408 entries, 184 reports, 109 fixes, 56 human-review rows, 0 schema errorspython examples/load_dataset.py— 184 reports / 408 entries loadedgit diff --checkpassedThe verifier canonicalizes text newlines so hashes and multiline CSV evidence remain stable across Windows and Linux checkouts.