sensitivity changes

Objective

  • --sentivity flag for publish now defaults to true. Can disable with --no-sensitivity.

  • Removes redundant code from scoring algos

    • Left over from adj list MR
  • Adds new --sensitivity flag for trudag score

    • This can be used with the --dump flag to dump the sensitivity scores for each item

CLI Example:

TRUSTABLE-SOFTWARE = 0.0; Missing
  Sensitivity Data:
  - TA-CONFIDENCE: 0.08333
  - TA-FIXES: 0.08333
  - TA-INPUTS: 0.08333
  - TA-METHODOLOGIES: 0.08333
  - TA-SUPPLY_CHAIN: 0.08333
  - TA-UPDATES: 0.08333
  - TA-ANALYSIS: 0.05556
  - TA-DATA: 0.05556
  - TA-ITERATIONS: 0.05556
  - TA-RELEASES: 0.05556
  - TA-TESTS: 0.05556
  - TA-VALIDATION: 0.05556
  - TA-BEHAVIOURS: 0.04167
  - TA-CONSTRAINTS: 0.04167
  - TA-INDICATORS: 0.04167
  - TA-MISBEHAVIOURS: 0.04167

Dump Example:

{
    "scores": [
        {
            "id": "TRUSTABLE-SOFTWARE",
            "score": 0.0,
            "origin": "Missing",
            "sensitivity": {
                "TA-CONFIDENCE": 0.08333,
                "TA-FIXES": 0.08333,
                "TA-INPUTS": 0.08333,
                "TA-METHODOLOGIES": 0.08333,
                "TA-SUPPLY_CHAIN": 0.08333,
                "TA-UPDATES": 0.08333,
                "TA-ANALYSIS": 0.05556,
                "TA-DATA": 0.05556,
                "TA-ITERATIONS": 0.05556,
                "TA-RELEASES": 0.05556,
                "TA-TESTS": 0.05556,
                "TA-VALIDATION": 0.05556,
                "TA-BEHAVIOURS": 0.04167,
                "TA-CONSTRAINTS": 0.04167,
                "TA-INDICATORS": 0.04167,
                "TA-MISBEHAVIOURS": 0.04167
            }
        },

Closes #509 (closed)

Software Review

  • Achieves the stated objective of the change
  • Actually addresses linked issue(s)
  • Where applicable, changes to trustable directory meet Software Reviewer conditions

Trustable/Safety Review

  • Achieves the stated objective of the change
  • Actually addresses linked issue(s)
  • Where applicable, changes to trustable directory meet Trustable Reviewer conditions

Commit History Review

  • Included commits only relate to this MR
  • Commit messages are well-formatted and clearly describe changes, Please see guide
Edited by Lucas Biaggi

Merge request reports

Loading