forked from gsd-build/get-shit-done
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
Description
Problem
Manual additions to code-trace-index.json (marking files as traced via the traced_files field) are silently overwritten when the solve pipeline regenerates the index. The C→R residual never decreases because user-acknowledged traces are lost.
Reproduction
- C→R scanner reports
bin/aggregate-requirements.cjsas untraced (residual=2) - User adds it to
code-trace-index.json:{ "traced_files": { "bin/aggregate-requirements.cjs": { "traced_to": "TOOL-INTERNAL", "reason": "nForma toolchain" } } } - Next solve run or hook regenerates the file, resetting
traced_filesto{} - C→R residual stays at 2
Expected Behavior
traced_filesentries added by users should be preserved across regeneration- The regeneration logic should merge new data with existing user entries, not overwrite
- Alternatively, provide a separate
acknowledged-traces.jsonfile that is user-owned and never auto-generated
Impact
Users cannot reduce C→R residual. The "trace a module to a requirement" workflow is broken because the persistence layer doesn't respect manual entries.
Reactions are currently unavailable