Private
Public Access
0
0

feat(audit): add FunctionRef dataclass (frozen, 4 fields)

fqname, file, line, role. Used in ProducerConsumerGraph edges
and per-aggregate producer/consumer lists. Per error_handling.md
Pattern 1 (immutability for cross-thread safety).
2 unit tests passing.
This commit is contained in:
2026-06-22 01:05:17 -04:00
parent be4ec0a459
commit 1680182953
2 changed files with 38 additions and 2 deletions
+9 -1
View File
@@ -9,6 +9,7 @@ postfix DSL + markdown + prefix tree text. See
conductor/tracks/code_path_audit_20260607/spec_v2.md.
"""
from __future__ import annotations
from dataclasses import dataclass
from typing import Literal
AggregateKind = Literal[
@@ -51,4 +52,11 @@ RecommendedDirection = Literal[
"unify",
"hold",
"insufficient_data",
]
]
@dataclass(frozen=True)
class FunctionRef:
fqname: str
file: str
line: int
role: str