Open-source document signature platform. Not affiliated with DocuSign.
TypeScript
Traceability matrix
Each requirement in Requirements, where SignuDoc meets it, and how it is tested. Paths are relative to the repository root.
Three kinds of test evidence back the matrix:
- Automated tests, which run on every pull request and every push to
main(see Release and change control):npm test: unit tests;npm run test:db: database tests against a real Postgres;npm run test:e2e: a browser test of the whole product.
- OQ scripts, which a person runs on your own install: Operational qualification.
- Procedures, for requirements the software can't meet: Procedures.
| Requirement | Where it is met | Automated test | OQ script |
|---|---|---|---|
| SYS-01 copies | src/lib/audit-export.ts, src/app/api/envelopes/[id]/audit/route.ts, src/app/api/admin/audit/route.ts, src/lib/services/pdf-finalize.ts |
part11.test.ts: "a CSV cell never runs as a spreadsheet formula…"; e2e: "in Part 11 mode a verified account signs…" (step "the audit trails record it and export as CSV") |
OQ-08 |
| SYS-02 retention | src/lib/retention.ts (AND NOT e.part11), src/lib/signer-data.ts (keptPart11), src/lib/organization-settings.ts |
signature-evidence.dbtest.ts: "the retention period never warns about or deletes a Part 11 record"; part11.dbtest.ts: "a data request does not erase a finished Part 11 envelope" |
OQ-10 |
| SYS-03 access | src/lib/auth/, admin routes under src/app/api/admin/ |
e2e: "a new install is set up…" (step "log in": an ordinary account gets 403 on admin routes) | OQ-01 |
| SYS-04 envelope audit trail | src/lib/services/audit.ts, src/lib/signing.ts, src/lib/envelopes.ts |
signature-evidence.dbtest.ts: "the audit chain verifies, and shows an edited row" |
OQ-08 |
| SYS-05 install audit trail | src/lib/services/system-audit.ts, src/lib/part11.ts, src/lib/people.ts, src/app/api/admin/settings/route.ts |
part11.dbtest.ts: "five wrong passwords lock signing…"; e2e Part 11 test (site audit has part11_mode_changed, identity_verified) |
OQ-09 |
| SYS-06 hash chain | computeAuditRowHash, computeSystemAuditRowHash, verifyAuditChain, verifySystemAuditChain |
part11.dbtest.ts: "the install audit trail is one hash chain that shows a changed row"; part11.test.ts: "the install audit hash changes…" |
OQ-09 |
| SYS-07 void reason | voidSentEnvelope in src/lib/envelopes.ts, void dialog in src/components/envelopes/envelope-detail-shell.tsx |
none yet: covered by the OQ | OQ-11 |
| SYS-08 signing order | sign_order in src/lib/envelopes.ts and src/lib/signing.ts |
none that signs out of order: covered by the OQ (copy-recipients.dbtest.ts checks only that the order is saved) |
OQ-06 |
| SYS-09 seal | src/lib/services/pdf-seal.ts |
pdf-seal.test.ts: "a sealed PDF verifies, and any change to it is detected" |
OQ-07 |
| SYS-10 rules kept per record | envelopes.part11, signers.user_id set at send in sendDraftEnvelope |
none yet: covered by the OQ | OQ-12 |
| SIG-01 own account | sendDraftEnvelope binds signers.user_id; findSignerAccounts in src/lib/part11.ts |
part11.test.ts: "a send is refused for each missing Part 11 condition…" |
OQ-03 |
| SIG-02 identity confirmed | describePart11SignerProblem, setIdentityVerification |
part11.test.ts (same test); e2e Part 11 test (step "it is not sent until an administrator confirms who the signer is") |
OQ-02, OQ-03 |
| SIG-03 re-checked | checkSigningCredentials in src/lib/part11.ts |
part11.dbtest.ts: "an identity confirmation taken back after send stops the signature" |
OQ-05 |
| SIG-04 two components | verifySignerCheck (method account) and reauthenticatePart11Signer in src/lib/signing.ts |
part11.dbtest.ts: "a right password signs…", "a right password with someone else's email address is a miss"; part11.test.ts: "a signer bound to an account must pass the account check first"; e2e Part 11 test |
OQ-04 |
| SIG-05 manifestation | buildSignatureManifestation in src/lib/signature-meanings.ts, stampSignatureManifestation and describeSignerEvidence in src/lib/services/pdf-finalize.ts |
part11.test.ts: "the manifestation gives the name, the UTC time and the meaning" |
OQ-07 |
| SIG-06 meaning confirmed | Finish dialog in src/components/signing/signing-live-shell.tsx; meaningConfirmed: true in src/lib/schemas/field.ts |
e2e Part 11 test (Finish stays disabled until the meaning is confirmed) | OQ-04 |
| SIG-07 signature linked to record | the seal (SYS-09) and the signature's metadata in the signed audit event |
pdf-seal.test.ts |
OQ-07 |
| SIG-08 password quality | minPasswordLength: 15 and the breach check in src/lib/auth/server.ts |
none in Part 11 tests: covered by the OQ | OQ-01 |
| SIG-09 lock and alert | checkSigningCredentials, alertAdministrators, unlockSigning |
part11.dbtest.ts: "five wrong passwords lock signing, tell the administrators and are audited" |
OQ-05 |
| PRO-01 to PRO-07 | Your procedures | Procedures, Installation qualification, FDA letter |
When a release changes any file named here, re-run the OQ scripts for that row (see Release and change control).