Skip to content

fix: preserve triage scope across sense reloads#639

Draft
ApexWorm wants to merge 1 commit into
peteromallet:mainfrom
ApexWorm:fix/sense-check-reload-scope
Draft

fix: preserve triage scope across sense reloads#639
ApexWorm wants to merge 1 commit into
peteromallet:mainfrom
ApexWorm:fix/sense-check-reload-scope

Conversation

@ApexWorm

Copy link
Copy Markdown

Problem

Sense-check content batches correctly use the active triage scope, but post-update plan reloads gave the structure and value batches the full historical plan. On a large tracker this sends an oversized prompt to Codex and aborts the stage before its global checks run.

Fix

Reapply triage_scoped_plan after each reload and seed the value batch from the already scoped plan. A regression covers a reload that includes a legacy cluster and verifies that the rebuilt structure and value prompts retain only the active cluster.

Validation

  • python3 -m pytest -q desloppify/tests/commands/plan/test_triage_split_modules_direct.py (44 passed)
  • Ruff and compile checks for the changed test file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant