Description
Count empty sources, literal role mismatches, and rows with nonempty source, matching role, and verified flag.
Good manufacturing practice records connect materials, actions, people, and source evidence. A local check can expose missing or inconsistent metadata, but it cannot authenticate a record or replace quality-system review.
Count empty sources, literal role mismatches, and rows with nonempty source, matching role, and verified flag.
When to use this tool
Use Batch Signoff Source Gap when you need a literal manufacturing-record or source-support diagnostic.
How to use the tool and how it works
- Enter stepIds, signoffSources, requiredRoles, recordedRoles, sourceVerified. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read steps, missingSources, roleMismatches, verifiedMatchingSignoffs. Use the output convention below.
Require aligned stepIds, signoffSources, roles, and sourceVerified flags with unique step IDs. Count empty sources, literal role mismatches, and rows with nonempty source, matching role, and verified flag.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| stepIds | Step Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| signoffSources | Signoff Sources | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| requiredRoles | Required Roles | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| recordedRoles | Recorded Roles | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| sourceVerified | Source Verified | Required. Array of boolean; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| steps | Steps | Required. Safe integer. |
| missingSources | Missing Sources | Required. Safe integer. |
| roleMismatches | Role Mismatches | Required. Safe integer. |
| verifiedMatchingSignoffs | Verified Matching Signoffs | Required. Safe integer. |
{
"input": {
"stepIds": [
"a",
"b"
],
"signoffSources": [
"s1",
""
],
"requiredRoles": [
"r1",
"r2"
],
"recordedRoles": [
"r1",
"r1"
],
"sourceVerified": [
true,
false
]
},
"output": {
"steps": 2,
"missingSources": 1,
"roleMismatches": 1,
"verifiedMatchingSignoffs": 1
}
} Limitations and assumptions
- Counts describe supplied metadata; sourceVerified is not independently checked and no identity authentication, cryptographic signature, authorized release, or complete signoff compliance is established.
- 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
Use the controlled record system to verify identity, provenance, approvals, and complete audit history. Treat local flags as prompts for investigation rather than release or compliance decisions.
References
Similar or alternative tools
- Batch Line Signoff Count Gap
Return supplied-required as gap.
- GMP Batch Record Page Sequence Gap
Track pages in input order, return missing range labels, distinct duplicate labels in first-repeat order, and all outside-range records.