Class ExportStage

java.lang.Object
com.tnsai.quality.security.harness.ExportStage
All Implemented Interfaces:
PipelineStage

public final class ExportStage extends Object implements PipelineStage
The export stage (TNS-291). Reads every ReviewFinding from the state store and serialises it to one of ExportFormat.

Output goes to reports/findings.<ext> via PipelineStateStore.writeReport(String, byte[]). The ext is derived from the format (.sarif, .json, .md). For multiple-format runs, register multiple ExportStage instances each with a different format.

Since:
0.10.0 (TNS-291)
  • Constructor Details

  • Method Details

    • id

      public String id()
      Description copied from interface: PipelineStage
      Stable id, e.g. "scan", "process".
      Specified by:
      id in interface PipelineStage
    • execute

      public StageResult execute(PipelineContext ctx)
      Description copied from interface: PipelineStage
      Execute the stage. Reads from / writes to ctx.stateStore().

      Stages SHOULD respect Thread.interrupted() — long-running stages (process, revalidate) check periodically so the pipeline can be cancelled cleanly.

      Specified by:
      execute in interface PipelineStage