Skip to content

Research / CONTRACT-DISCOVERY-ML-01: weak-label unknown API effect candidates vs deterministic heuristics (kill-first) #469

Backlog

Description

@PhysShell

Status / question

P1 methodology / P2 bounded research backlog / REUSE-FIRST / KILL-FIRST / NOT ADOPTED / NO IMPLEMENTATION OR EXECUTION AUTHORIZED. 2026-11-28.
GitHub CodeQL + ML (2022) learns candidate sinks from manually modeled examples. Historical evaluation relative to updated CodeQL models is not independent vulnerability truth. Transfer candidate discovery, not security classifier weights. Can a small model propose previously unmodeled ownership effects more usefully than signature/name/type heuristics?
Related #425 effect contract testing, #430 lowering fidelity, #426 evidence completeness, #452 preparation, #460 evidence tiers, #433 independent oracle. This issue owns candidate discovery, not proof or analyzer rewrite.

Gate 0 / probe

Read-only inventory existing reviewed summaries, one contract family (e.g. acquisition or ownership transfer), independent oracle and rights-cleared APIs. Exact library/overload/version; preserve UNKNOWN/conditional/callback/alias cases. Whole library families held out; no near-duplicate leakage or label-derived feature. Compare deterministic rules/name+type baseline vs simple logistic/tree model with normalized signature and available OwnIR call features. No production contracts as automatic labels without review. Independently adjudicate candidates by documented/source semantics or concrete fixture. Record per-class precision/recall, abstention and coverage, verified useful contracts per review hour, downstream missed/false diagnostics. Negative controls ambiguous conditional transfer, misleading names, overloads, unknown dispatch and unrelated family.
GO-NARROW only if independent review confirms meaningful marginal value and no weakened contract/evidence boundary. STOP if inadequate distinct library families/labels. ML outputs proposals ONLY; never automatically inject summaries, silence findings, alter ownership semantics or publish source. Research Archive / ML: ML System Design — Nine Practical Research Directions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions