Skip to content

Main content

Protective Role Source Gap Tool

Compare supplied protective-role provenance only; no access bypass or operational biological detail.

Loading tool…

Description

Compare protective-role source labels and current flags.

Biosecurity administration records training assertions, custody, access purposes, inventories and document handling. Local counts, time checks and permission predicates describe supplied metadata; they do not authenticate people or items, enforce access or establish actual protective conditions.

Compare protective-role source labels and current flags.

When to use this tool

Use Protective Role Source Gap when checking the stated benign biosecurity record, inventory, support or authorization convention.

How to use the tool and how it works

  1. Enter roleIds, requiredSourceIds, recordedSourceIds, current. Follow any array-alignment requirements below. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read sourceMismatches, notCurrent, supportedRoles. Use the output convention below.

Compare protective-role source labels and current flags. Require aligned arrays; count source mismatches, noncurrent records and rows with both current true and matching source IDs.1

Input fieldMeaning and unitsAccepted input
roleIdsRole IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
requiredSourceIdsRequired Source IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
recordedSourceIdsRecorded Source IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
currentSupplied current-status assertion or current value under the stated convention; not independently verified.Required. Array of boolean; maximum items 256.
Output fieldInterpretationReturned shape
sourceMismatchesSource MismatchesRequired. Safe integer.
notCurrentNot CurrentRequired. Safe integer.
supportedRolesSupported RolesRequired. Safe integer.
json
{
  "input": {
    "roleIds": [
      "a",
      "b"
    ],
    "requiredSourceIds": [
      "s1",
      "s2"
    ],
    "recordedSourceIds": [
      "s1",
      "s1"
    ],
    "current": [
      true,
      true
    ]
  },
  "output": {
    "sourceMismatches": 1,
    "notCurrent": 0,
    "supportedRoles": 1
  }
}

Limitations and assumptions

  • Records are counted per row; source assertions do not verify competence, adequate staffing or actual authorization.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Verify actual records, permissions and conditions through the responsible organization's procedures; use qualified risk assessment and appropriate professional oversight for practical decisions.

References

  1. Calculation and input contract: biosecurity/protective-role-source-gap — tool.io

Similar or alternative tools