Skip to content

graphify update should pin PYTHONHASHSEED like the hooks do #3641

Description

@lkiii

The generated post-commit and post-checkout hooks export PYTHONHASHSEED=0 with a comment explaining that Louvain community assignments churn per process otherwise. The update subcommand does not, so a bare graphify update . (which the claude install CLAUDE.md template tells agents to run after every code change) re-clusters differently on each run. In our repo one such run flipped 24% of node-community assignments and changed about 100k lines in graphify-out with no code change, which also triggers the GitHub diff timeout in #3413.

Related: #2817 (still open). Proposal: set the seed inside the CLI for update, extract and cluster-only when the caller has not set it, so hook and CLI output agree. Until then the template's graphify update . advice produces exactly the churn the hooks were written to avoid.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions