Class EnrichStage
java.lang.Object
com.tnsai.quality.security.harness.EnrichStage
- All Implemented Interfaces:
PipelineStage
The
enrich stage (TNS-291). Walks every ReviewFinding
and adds CWE-catalog metadata: human-readable name + the
https://cwe.mitre.org/data/definitions/<n>.html reference URL.
Idempotent and side-effect-free except for the metadata mutation — already-enriched findings are skipped.
- Since:
- 0.10.0 (TNS-291)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(PipelineContext ctx) Execute the stage.id()Stable id, e.g.
-
Constructor Details
-
EnrichStage
public EnrichStage()
-
-
Method Details
-
id
Description copied from interface:PipelineStageStable id, e.g."scan","process".- Specified by:
idin interfacePipelineStage
-
execute
Description copied from interface:PipelineStageExecute the stage. Reads from / writes toctx.stateStore().Stages SHOULD respect
Thread.interrupted()— long-running stages (process, revalidate) check periodically so the pipeline can be cancelled cleanly.- Specified by:
executein interfacePipelineStage
-