Skip to content

Eagle Eye πŸ¦… β€” Structure Accuracy: Do the Signals Measure What They Say?

Open
No due date
β€’Last updated Nov 27, 2026

Does each structure signal count what its name says? GitGalaxy's per-function signals (I/O, regex, time, decorators, bitwise, closures, ...) are keyword families, written per language. This milestone measures them against an independent reading of the same code and fixes what the measurement finds.

How: a parser (Python ast now, tree-sitter next) says what each function does; the family-validity tool (tests/tools/family_oracle.py, #8864) scores each family on recall, precision and rank correlation and lists the tokens the family missed. A written one-sentence definition per family is what it is scored against (#8862). The first pass on GitGalaxy's own 72,044 Python functions: eight families measure what they say, and the rest miss constructs (regex methods, perf_counter, Path I/O, check_output), over-count (about 97% of bitwise_ops hits are not operators) or never fill (struct_decorators).

In scope: the validity test and its parsers per language; the cross-language consistency check on keyword-rosetta; missing-keyword mining; the fixes, each timed in CPU seconds on keyword-rosetta and language-crucible; written family definitions.
Out of scope: new families, archetype retraining (after the families settle), the call graph (milestone Compiler call-graph comparison).

Related: Friendly Fire (rules that count the wrong thing, found one at a time: #8009, #8012 are the same class), Hitbox Accuracy (closed: extraction measured against tree-sitter and ctags), Does It Actually Crit (do signals predict defects). Epic #8863.

72% complete

Issues