refactor: make ClassifiedTimeline.cluster_severities immutable (MappingProxyType) #33
Labels
No labels
compliance
demo
deployment
docs
enhancement
parser
patterns
performance
security
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/turnstone#33
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
ClassifiedTimelineis afrozen=Truedataclass, but itscluster_severities: dict[str, SeverityLabel]field is a mutable dict.frozen=Trueonly prevents field reassignment — the dict contents can be mutated after construction.Fix
Wrap with
types.MappingProxyTypeat construction time inclassifier.py, and update the field type annotation accordingly.Found by
Post-implementation code review of feat/29-multi-agent-diagnose.