pub fn class_is_generated(
doc: &PlanDocument,
generated: &HashSet<&str>,
class: &ClassEntry,
) -> boolExpand description
Whether a class is generated content: every member hunk lives in a file the classification pass marked generated.
This is the noise tier’s whole definition (ADR 0006), and it decides two
separate things that must agree. The grouping stage uses it to choose what
never reaches the model. dfr agent uses it to choose what the model is not
shown when it asks without naming ids (ADR 0022). If those drift, the model
reads a class it is then not allowed to name, and the audit throws its
answer away as a hallucination.
There is no mixed case any more. generated is part of the shape-class
key (shape::shape_hash), so a class is wholly generated or wholly not and
this test cannot come back half true. It used to: one shaped edit made in
both a lockfile and a source file was one class, which answered “no” here
and went to the model, taking its lockfile hunk into whatever group the
model chose.