You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context\n\nconfig.py is currently 310 lines — 10 over the ≤300-line module guideline (the only exempt modules are types.py, envelope.py, and __main__.py, per AGENTS.md).\n\nThis was flagged in a review comment on PR #178 (feat(config): add RoutingConfig and ProfileConfig with named presets).\n\nThe file will grow further when ContextPolicy serialisation is added (a planned follow-up from PR #178, since ContextPolicy contains enum-keyed dicts not currently serialisable).\n\n## Suggested decomposition\n\nMove RoutingConfig + ProfileConfig + _ROUTING_PRESETS into a new src/contextweaver/profiles.py module, keeping ContextBudget, ContextPolicy, and ScoringConfig in config.py.\n\nRe-export from config.py and __init__.py so the public API is unchanged.\n\n## Acceptance criteria\n\n- [ ] config.py ≤ 300 lines after move\n- [ ] ProfileConfig, RoutingConfig still importable from contextweaver and contextweaver.config\n- [ ] make ci passes (all 6 targets)\n- [ ] AGENTS.md module map updated to reflect the new file\n- [ ] CHANGELOG.md updated under ## [Unreleased]\n\n## References\n\n- PR #178 — adds RoutingConfig and ProfileConfig; overage flagged in review\n- AGENTS.md — module size guideline (≤300 lines, §Coding Style)
Context\n\n
config.pyis currently 310 lines — 10 over the ≤300-line module guideline (the only exempt modules aretypes.py,envelope.py, and__main__.py, perAGENTS.md).\n\nThis was flagged in a review comment on PR #178 (feat(config): add RoutingConfig and ProfileConfig with named presets).\n\nThe file will grow further whenContextPolicyserialisation is added (a planned follow-up from PR #178, sinceContextPolicycontains enum-keyed dicts not currently serialisable).\n\n## Suggested decomposition\n\nMoveRoutingConfig+ProfileConfig+_ROUTING_PRESETSinto a newsrc/contextweaver/profiles.pymodule, keepingContextBudget,ContextPolicy, andScoringConfiginconfig.py.\n\nRe-export fromconfig.pyand__init__.pyso the public API is unchanged.\n\n## Acceptance criteria\n\n- [ ]config.py≤ 300 lines after move\n- [ ]ProfileConfig,RoutingConfigstill importable fromcontextweaverandcontextweaver.config\n- [ ]make cipasses (all 6 targets)\n- [ ]AGENTS.mdmodule map updated to reflect the new file\n- [ ]CHANGELOG.mdupdated under## [Unreleased]\n\n## References\n\n- PR #178 — addsRoutingConfigandProfileConfig; overage flagged in review\n-AGENTS.md— module size guideline (≤300 lines, §Coding Style)