Skip to content

the packed manual: .gitignore forbids what CI requires — every documenting branch conflicts on chat.pack.gz #283

Closed

Description

@santoshkumarradha

Parent: #228 follow-up (process debt the wave measured, not a family defect).

Problem (measured)

.gitignore lists internal/manual/*.pack.gz with the comment that committing these shared binaries makes every branch that documents a feature conflict with every other one — yet the file is git-tracked, and the check gate requires the committed archive to match internal/manual/chat/ ("the packed corpora build from their folders"). The two rules contradict, and both costs were paid in one day (2026-09-01):

Decision wanted (owner ruling)

Either:

  1. Untrack the pack (git rm --cached, keep .gitignore): make build regenerates it for the release binary (internal/packed selects it), plain go build/go test embed the Markdown directly, and the check gate builds the pack from the folders instead of comparing against a committed copy. No shared binary, no conflicts, no staleness class.
  2. Track it deliberately: remove the .gitignore lines and add a CI step (or pre-merge bot) that regenerates the pack on dev after every merge touching internal/manual/, so no PR ever inherits a stale archive.

Option 1 looks strictly better unless the release workflow cannot run make build; the issue is filed so the choice is made once instead of re-paid per wave.

Acceptance

  • A branch that edits only internal/manual/chat/*.md passes check without touching any .pack.gz.
  • Two branches editing different manual pages merge without a binary conflict.
  • The shipped binary still carries the packed corpus (make test-packed-manual green).

Drafted with CodeAF · reviewed and owned by the author

Activity

  1. santoshkumarradha commented on Sep 2, 2026

    @santoshkumarradha
    MemberAuthor

    Evidence that the instruction is wrong, not only the ignore rule — measured on PR #297 (2026-09-01):

    CLAUDE.md says "Edit and commit only the Markdown" for internal/manual/, but the check job's step "The packed corpora build from their folders" runs go generate over the packed packages and then git diff --exit-code — so a branch that edits a page and does not commit the regenerated internal/manual/chat.pack.gz fails CI with "A tracked packed corpus disagrees with its source folder". The door lane tried exactly what CLAUDE.md says (dropped the regenerated pack), CI failed, and it had to re-commit the binary.

    So today every lane is forced to do what .gitignore's comment warns against, and CLAUDE.md tells them not to do the thing CI demands. The ruling here should settle three things together: the ignore rule, the tracking, and the CLAUDE.md sentence (which is the owner's file to change).

  2. santoshkumarradha commented on Sep 2, 2026

    @santoshkumarradha
    MemberAuthor

    Ruled and done. Generated manual packs are build products: ignored, untracked, regenerated by make build, and the build refuses to proceed while one sits in the git index.

    Landed as #299 (c04d6ef). The four manual fixes for #293 then rebased and took the deletion, one mechanical conflict each: #297, #298, #301, #295.

    Why this way. The archive had flipped between tracked and untracked twice, and every branch touching documentation conflicted on a 586KB binary — three lanes paid that cost in a single evening. Freshness no longer rests on a committed file matching its folders: embed regenerates on every build, the packed path is exercised by its own test, and the release build embeds the folders directly without a pack at all. Verified: two build paths, neither able to ship a stale pack.

    CLAUDE.md's "edit and commit only the Markdown" is true again and needs no edit.

  3. added
    bug
    on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions