Skip to content

git-reconcile: conflict path never calls _grc_bump_ndc_gen, unlike the fast-forward/successful-rebase paths #954

Closed

Description

@fdaviddpt

From the v0.42.0 release gate 3 audit (round 3), re-checked against current HEAD while curating trap.d/ (2026-10-07) -- still true.

hooks.d/after_save/60-git-reconcile.sh: _grc_bump_ndc_gen (defined line 239) is called from the fast-forward path (line 340) and the successful-rebase path (line 540, guarded by [ "$REBASE_RC2" -eq 0 ] at line 564) -- but not from the conflict path, where the rebase rewrites $SLUG/now.md to the remote version and the #943-era scoped checkout rewrites it back.

Reasoned consequence (not reproduced): an NDC consolidation round that snapshots now.md inside that window passes both of _grc_bump_ndc_gen's own guards at save-session.sh:1386/1405, and trims NDC_SRC_BYTES of local lines it never actually summarised. Those trimmed lines survive in git history but are silently cut from the live file by a process that believes it already summarised them.

What would settle it: call _grc_bump_ndc_gen on the conflict path too, or confirm by reading NDC's own guard logic that it is not actually reachable in that window.

Original fragment: trap.d/932.ndc-gen-not-bumped-on-conflict-path.md (deleted by this same curate pass).

[AI-generated]

Activity

  1. added
    priority:medium
    filed-by-loop
    lane-consolidation
    on Oct 7, 2026
  2. self-assigned this
    on Oct 7, 2026
  3. added a commit that references this issue on Oct 7, 2026
  4. removed their assignment
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    filed-by-looplane-consolidationpriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions