You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cobol-refractor rewrites NEXT SENTENCE in the target repository's source files in place #3206
Found while running the #3120 differential end to end. process_payload (gitgalaxy/cobol_refractor_controller.py) calls patch_lexical_traps(filepath) on the original source file in the target repository. cobol_lexical_patcher.py does filepath.write_text(patched_content) and rewrites NEXT SENTENCE in place.
Everything else the refractor produces goes to a separate <repo>_gitgalaxy_clean_<ts>/ "clean room". The one write that lands in the customer's source tree is unannounced apart from a console line, and not reversible from the tool.
Consequences:
Running the refractor on a checkout dirties it. On a read-only or audited source library it either fails or silently modifies the system of record.
Suggested fix: write the patched copy into the clean room (e.g. 00_patched_source/) and point the rest of process_payload at that copy, leaving the target untouched. The same should hold for the standalone cobol_lexical_patcher CLI unless given an explicit --in-place.
Activity
feat(#3120): refraction pipeline reads the engine master DB (opt-in I…
fix(refraction): forge parser fixes -- multi-mode OPEN, per-statement…