Skip to content

distill_run_test.go family reads the machine's global distill config (XDG isolation incomplete) #335

Backlog

Description

@jflowers

Finding 3 (MEDIUM) from the uf-divisor review on PR #332

The rolling_pr handler now calls ReadDistillGroupingConfig on every invocation, so max_new_per_theme resolves from the machine's global config. Five handler tests isolate XDG_CONFIG_HOME, but the distill_run_test.go family (TestDistillRun_RoundTrip, TestDistillRun_CancelledRunRecordsFinishedThemes, TestDistillRun_CancelledRunIDRunRecordsFinishedThemes, TestDistillRun_DryRunByRunIDRecordsNothing, TestDistillRun_RefusedRunIsRecorded) crosses the same read with no isolation. A global distill.max_new_per_theme smaller than a fixture theme's member count changes what those tests synthesize and hold. This is the coupling class that produced six machine-only tools/distill failures for min_theme_size (learning/distill-20261130T213604), with CI green throughout.

Fixture-wide isolation should close the gap without per-test remembering: pin a distill: section into the shared fixture vaults, or centralize the XDG_CONFIG_HOME Setenv in the rolling-PR fixture.

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions