Skip to content

Import coverage files as runtime evidence #54

Closed

Description

@vsn411

The easiest way to get runtime evidence: many projects already produce coverage data from their test suites or staging runs. Turn it into #53 events, with no sensor needed.

secfoo runtime import-coverage <file> --watchlist watchlist.json -o events.ndjson

  • Python: a coverage.py JSON report (coverage json, ideally with --show-contexts). Coverage must have been collected with dependencies included (--source or [run] include), since site-packages are omitted by default. Explain this in the command's error message when no dependency files appear in the report.
  • Node: V8 coverage directories (NODE_V8_COVERAGE=dir node app.js). These already include function-level ranges for node_modules.
  • Count a watched symbol as a hit when its function range has a non-zero count. Fill app_functions_total/executed in the session line from the app's own files.
  • Coverage has no stack traces, so leave entry_frame and stack_sample empty.

Done when: small committed fixture coverage files for both formats are tested end to end (import → ingest → evidence rows).

Activity

  1. added
    enhancementNew feature or request
    hackathonOpen for the Secfoo hackathon
    difficulty: lowLeaderboard: 3 points when the PR closing this is merged
    on Nov 8, 2026
  2. karthickmk2001 commented on Nov 12, 2026

    @karthickmk2001
    Collaborator

    I'd like to take this (the earlier PR #85 was closed). It'll emit the #53 format now on main. PR to follow.

  3. added a commit that references this issue on Nov 12, 2026
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

    difficulty: lowLeaderboard: 3 points when the PR closing this is mergedenhancementNew feature or requestgood first issueGood for newcomershackathonOpen for the Secfoo hackathon

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions