Skip to content

orphan census counts non-function shapes on non-call-graph languages, making orphan→api conversion unauditable #2547

Closed

Description

@squid-protocol

Summary

Observability gap mapped by the #1096 control corpus: on languages without a same-file call graph, the orphan census counts non-function shapes, so the Contextual Baseline Fix's orphan→api conversion produces totals that can't be audited against visible functions.

Evidence

  • shell: a.sh/b.sh convert 4 with 3 functions each (the extra tracks the . ./x.sh source line); c.sh (no source line) converts exactly 3.
  • sqlite: main.sql records orphaned_logic = 7 for 4 CREATE INDEX statements; imported files convert 2/4/3 with 3 indexes each.

Impact

Not necessarily wrong — but currently unverifiable, which is the same auditability gap as #2536: with no raw pre-adjustment recording, nobody can say what the 7 orphans in a 4-index file are.

Ask

Either #2536's raw hit_vector recording (which makes this auditable and closes it), or a debug surface listing what the orphan census counted per file.

References

#1096 ledger orphan-conversion-opaque-counts; #2536.

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-engine

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions