Skip to content

Bridge contract OD-4/5/6: positional identity fallbacks, evidence-blind dedup, anchorless "?" SARIF URIs #295

Description

@PhysShell

From the #258 bridge-contract inventory (spec/Bridge.md §9). Three smaller ambiguities, each currently documented as-is in the spec; settle Python-first if any should change before the #259 port freezes them:

  • OD-4 — positional identity fallbacks. A nameless component/function defaults to Component<gid> / Fn<loc> using the running global counter, so an unrelated earlier record shifts a later record's identity (and therefore its finding's component and dedup key). A stable fallback (per-list index, or the file stem) would decouple identity from document position.
  • OD-5 — dedup is blind to evidence. BR-V7's dedup key excludes related/flow: two findings identical in all primary fields but with different evidence slices collapse to the first. Intended for the multi-exit OWN001 collapse; unclear whether evidence-divergent duplicates can occur and, if so, which slice should win (first-wins today, by construction order).
  • OD-6 — anchorless findings emit ? artifact URIs. OWN052/OBL005 use file="?", line=0; SARIF omits the region correctly but emits a literal ? as artifactLocation.uri. Consumers tolerate it today; a spec-blessed convention (omit locations, or a well-known URI) would be cleaner for code-scanning ingestion.

Per #258's rule these stay documented-as-is until decided; none blocks the spec.

Refs #258, #259.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions