Document 01 — Validation Master Plan (VMP)
| Document ID | Version | Effective Date (UTC) | System Name | Regulatory Scope | Status |
|---|---|---|---|---|---|
VMP-GXPHISTORIAN-2026-001 | 1.0 | 2026-11-11T02:40:42Z | GxPHistorian GxP Industrial Historian (ClickHouse + PostgreSQL Part 11 Control Plane) | 21 CFR Part 11, EU GMP Annex 11, ISPE GAMP 5 (2nd Ed.), FDA CSA | APPROVED |
1. Purpose & Regulatory Scope
This Validation Master Plan (VMP) establishes the Computerized System Validation (CSV) and Computer Software Assurance (CSA) governance framework for the GxPHistorian GxP Industrial Historian deployed at BioCorp Fremont Biomanufacturing Operations. The platform replaces legacy proprietary OSIsoft PI System components with a 4-Pillar open-source architecture engineered for 21 CFR Part 11, EU EudraLex Volume 4 Annex 11, and ALCOA+ data integrity compliance.
2. System Classification (ISPE GAMP 5 Second Edition)
| Subsystem Pillar | Component | GAMP 5 Category | Validation Strategy |
|---|---|---|---|
| Pillar 1: Edge Collector | Telegraf 1.32 + Disk WAL + Python Deadband Worker | Category 4 / Category 5 | Automated IQ + Scripted OQ on Stage 1 Exception/Deadband logic & WAL persistence |
| Pillar 2: Telemetry Archive | ClickHouse Server 24.8 LTS (MergeTree / AggregatingMergeTree) | Category 4 | Automated IQ on lossless codecs (DoubleDelta, Gorilla) + Scripted OQ on quality >= 192 filtering, LTTB, and interpolation |
| Pillar 3: Control Plane | PostgreSQL 16 + FastAPI (historian-api) | Category 4 / Category 5 | Scripted OQ on PL/pgSQL Part 11 WORM audit triggers, SHA-256 hash chaining, and §11.200 electronic signatures |
| Pillar 4: Operator HMI | Grafana OSS 11.2 + Excel DataLink UDF/Power Query | Category 4 | Automated IQ on provisioned datasources/dashboards + OQ on DataLink CSV/JSON parity |
3. Roles & Responsibilities
| Role | Designated Personnel | GxP Responsibilities |
|---|---|---|
| System Owner | Director of Manufacturing IT/OT | Accountable for system availability, access control, backup/restore drills, and GitOps change control. |
| Process Owner | Head of Upstream & Downstream MSAT | Defines User Requirements (URS), engineering units, alarm limits (low_limit, high_limit), and batch Event Frame templates. |
| Quality Assurance (QA) | Lead CSV / Part 11 Qualified Person (qa_approver_01) | Approves VMP, URS, Risk Assessment, executes/reviews IQ/OQ evidence, and signs batch/excursion Event Frames. |
| Validation Engineering | Senior CSV Automation Engineer | Authors and maintains executable pytest IQ/OQ qualification suites and generates the cryptographic validation binder. |
4. Validation Lifecycle (IQ → OQ → PQ)
- Installation Qualification (IQ): Automated verification (
test_01_iq_infrastructure.py) of container health, non-default credentials, PostgreSQL extensions (ltree,btree_gist,pgcrypto), ClickHouse lossless compression codecs, and dictionary bridging. - Operational Qualification (OQ): Scripted positive and adversarial negative testing (
test_02_oq_part11_compliance.py&test_03_oq_historian_core.py) verifying 21 CFR Part 11 WORM immutability, SHA-256 hash chain verification, electronic signature credential challenges, bad quality (quality < 192) rejection, linear vs. LOCF step interpolation, and LTTB peak preservation. - Performance Qualification (PQ): Continuous multi-protocol plant telemetry ingestion across 5 GxP tags (
101,102,103,301,401), live Event Frame excursion capture, and Apache Parquet lakehouse exports.
5. Backup, Restore, Disaster Recovery & GitOps Change Control SOP
- Database & Telemetry Backups: PostgreSQL
pi_control_plane(includingpart11_audit_log) undergoes daily logicalpg_dumpand continuous WAL archiving to immutable object storage. ClickHousepi_historianpartitions (PARTITION BY toYYYYMM(ts)) are exported to Snappy-compressed Apache Parquet files and backed up via native ClickHouseBACKUP TABLEsnapshots. - GitOps Change Control (
SOP-IT-CHG-014): All infrastructure definitions (docker-compose.yml), database schemas (init-postgres/,init-clickhouse/), and API code (app/main.py,app/pi_parity_engine.py) are version-controlled in Git. Any change requires a pull request, automated execution of the 21-test IQ/OQpytestsuite (100%pass gate), and QA electronic approval prior to production deployment.
6. Hybrid Cloud & Commercial Edition Governance (EU GMP Annex 11 §4.3 & 21 CFR §11.30)
For regulated organizations deploying GxPHistorian Cloud (Managed Single-Tenant Cloud or BYOC Cloud Marketplace across Amazon Web Services, Microsoft Azure, and Google Cloud):
- Purdue Level 2.5 Edge Autonomy (
URS-005): Pillar 1 (edge-collectoror pre-qualified GxPHistorian Edge Box DIN-rail IPC) always executes on-premises with a 100 GB local pSLC NVMe Write-Ahead Log (>14-dayoffline store-and-forward autonomy) and outbound-onlyTLS 1.3/mTLS(:8443) transport. - Change-Controlled LTS Release Channels (
2026.Q4-LTS): Cloud environments never undergo unannounced auto-updates. Every release is promoted to a customer staging environment first, where the 21-testpytestIQ/OQ suite executes automatically and mints a countersigned Validation Summary Report (VSR) prior to production promotion. - Quality Technical Agreement (QTA): Governed by the bidirectional Shared Responsibility Matrix in Document 05 (
SOUP-GXPHISTORIAN-2026-005), granting annual QA postal/on-site supplier audit rights and guaranteeing 15-year21 CFR 211.180WORM retention (AWS S3 Object Lock COMPLIANCE,Azure Immutable Blob Storage, orGCP Bucket Lock).
Document 02 — User Requirements Specification (URS)
Document ID: URS-GXPHISTORIAN-2026-002 | Generated (UTC): 2026-11-11T02:40:42Z | Total Requirements: 21
1. Formal User Requirements Catalog (URS-001 to URS-021)
| URS ID | Requirement Title & Operational Statement | GxP Risk | ALCOA+ Attributes | Regulation Ref | Acceptance Criteria (FRS) |
|---|---|---|---|---|---|
| URS-001 | Multi-Service Container Infrastructure & Non-Default GxP Security Credentials The system shall deploy isolated PostgreSQL Control Plane, ClickHouse Telemetry Archive, Edge Collector, FastAPI Control Plane, and Grafana HMI services using non-default authenticated credentials. | Medium | Attributable, Contemporaneous | 21 CFR §11.10(d), EU GMP Annex 11 §12 | FRS-INFRA-001: All database, API, and HMI endpoints enforce non-default credentials configured via environment variables and pass readiness health checks. |
| URS-002 | PostgreSQL 16 Control Plane Extensions & Core GxP Schema Qualification The PostgreSQL Control Plane shall enable ltree, btree_gist, and pgcrypto extensions and provision tables for asset_templates, assets, tags, event_frames, users, and part11_audit_log. | Medium | Legible, Enduring | 21 CFR §11.10(a), GAMP 5 Appendix M4 | FRS-PG-002: PostgreSQL 16 initializes ltree, btree_gist, and pgcrypto extensions, GiST hierarchy indexes, and all 6 required GxP tables. |
| URS-003 | ClickHouse Lossless Time-Series Compression Codecs Verification The ClickHouse Telemetry Archive shall store high-frequency sensor data using lossless Delta, DoubleDelta, Gorilla, and T64 codecs layered with ZSTD(1). | Low | Original, Accurate, Enduring | 21 CFR §11.10(b), EU GMP Annex 11 §7.1 | FRS-CH-003: Table pi_historian.sensor_data enforces CODEC(Delta, ZSTD(1)) on tag_id, CODEC(DoubleDelta, ZSTD(1)) on ts, CODEC(Gorilla, ZSTD(1)) on val, and CODEC(T64, ZSTD(1)) on quality and status_code. |
| URS-004 | ISA-95 ltree Asset Hierarchy & ClickHouse In-Memory Dictionary Synchronization The system shall synchronize ISA-95 hierarchical asset paths and tag metadata from PostgreSQL into ClickHouse via an in-memory FLAT dictionary. | Medium | Legible, Consistent | ISA-95, 21 CFR §11.10(a) | FRS-DICT-004: ClickHouse dictionary pi_historian.pg_asset_tags resolves all seeded GxP tags and their ISA-95 asset_path strings from PostgreSQL v_clickhouse_tag_dict. |
| URS-005 | Stage 1 Edge Exception/Deadband Filtering & Disk WAL Store-and-Forward Buffer The Edge Collector shall perform Stage 1 Exception/Deadband filtering (ExcDev and ExcMax) and persist outbound batches in a disk-backed Write-Ahead Log (WAL) buffer. | High | Complete, Original, Available | ALCOA+ (Complete, Original), EU GMP Annex 11 §7 | FRS-EDGE-005: Telegraf edge-collector configures buffer_strategy='disk' at /var/lib/telegraf/buffer and applies ExcDev/ExcMax deadband filtering accurately. |
| URS-006 | 21 CFR Part 11 Mandatory Attribution Context Enforcement All INSERT, UPDATE, and DELETE operations on GxP configuration and batch Event Frame tables shall require authenticated actor_id and change_reason context or be rejected. | High | Attributable, Contemporaneous | 21 CFR §11.10(e), ALCOA+ (Attributable) | FRS-P11-006: PL/pgSQL trigger fn_enforce_part11_audit() raises '21 CFR Part 11 Violation: app.actor_id and app.change_reason are mandatory' when session context is missing. |
| URS-007 | 21 CFR Part 11 §11.10(e) WORM Audit Trail Immutability The computer-generated, time-stamped audit trail (part11_audit_log) shall be strictly append-only (Write-Once-Read-Many) and block UPDATE, DELETE, and TRUNCATE operations. | High | Original, Enduring, Complete | 21 CFR §11.10(e), EU GMP Annex 11 §9 | FRS-P11-007: PL/pgSQL trigger fn_prevent_audit_tampering() unconditionally raises '21 CFR Part 11 WORM Violation: Audit trail records are immutable' on UPDATE, DELETE, or TRUNCATE. |
| URS-008 | 21 CFR Part 11 §11.200 Electronic Signature Rejection of Unauthorized Credentials The system shall reject electronic signature attempts with invalid user IDs, wrong passwords, or missing change reasons. | High | Attributable, Accurate | 21 CFR §11.10(d), §11.200(a) | FRS-P11-008: POST /api/v1/event-frames/{event_id}/sign verifies password against pgcrypto bcrypt hash and returns HTTP 401 on invalid credentials without altering the record. |
| URS-009 | 21 CFR Part 11 §11.50 & §11.70 Electronic Signature Manifestation & HMAC Binding Signed Event Frames shall record the signer's user ID, timestamp, signature meaning, and cryptographic HMAC-SHA256 signature hash linked to the audit trail. | High | Attributable, Legible, Enduring | 21 CFR §11.50, §11.70, §11.200 | FRS-P11-009: POST /api/v1/event-frames/{event_id}/sign authenticates qa_approver_01, binds HMAC-SHA256 over (event_id, user_id, signature_meaning, signed_at), and logs to part11_audit_log. |
| URS-010 | 21 CFR Part 11 Cryptographic SHA-256 Audit Hash-Chain Verification Every audit trail entry shall chain the previous record's SHA-256 hash from GENESIS_0000000000000000, and the API shall verify end-to-end cryptographic integrity. | High | Original, Accurate, Enduring | 21 CFR §11.10(e), ALCOA+ (Enduring, Accurate) | FRS-P11-010: GET /api/v1/audit-trail/verify recomputes the SHA-256 hash chain across all part11_audit_log records and confirms chain_valid == true. |
| URS-011 | Multi-Protocol Telemetry Ingestion (OPC UA, BACnet/IP, Siemens S7, Legacy OPC DA) The historian shall ingest and normalize real-time telemetry across OPC UA, BACnet/IP, Siemens S7, and legacy Windows OPC DA bridges into ClickHouse. | Medium | Contemporaneous, Original | 21 CFR §211.68, ALCOA+ (Contemporaneous) | FRS-HIST-011: All 5 multi-protocol tags (101, 102, 103, 301, 401) plus HTTP /ingest batches are archived in pi_historian.sensor_data with UTC millisecond timestamps. |
| URS-012 | Bad OPC Signal Quality (quality < 192) Exclusion from GMP Rollups Telemetry points flagged with Bad (0) or Uncertain (64) OPC quality codes shall be stored in raw history for diagnostics but strictly excluded from 1-minute GMP rollups. | High | Accurate, Consistent | 21 CFR §211.188, ALCOA+ (Accurate) | FRS-HIST-012: Materialized view pi_historian.mv_sensor_rollup_1m filters WHERE quality >= 192, excluding injected quality=0 fault spikes (e.g., val=9999.0) from min/max/avg rollups. |
| URS-013 | PI DataLink Parity: Linear Interpolation vs. Discrete Step (LOCF) Sampling The sampled data endpoint shall linearly interpolate continuous analog tags (is_step_tag=False) and apply Last Observation Carried Forward (LOCF) to discrete step tags (is_step_tag=True). | High | Accurate, Complete | 21 CFR §11.10(b), GAMP 5 | FRS-DL-013: GET /api/v1/datalink/sampled computes exact linear midpoints for continuous tags and strict integer LOCF states for step tags without fractional artifacts. |
| URS-014 | PI Vision PlotValues Parity: LTTB Visual Downsampling Peak Preservation Visual trend downsampling shall use ClickHouse largestTriangleThreeBuckets (LTTB) to preserve exact local excursion peaks and valleys. | Medium | Accurate, Legible | 21 CFR §11.10(b) | FRS-LTTB-014: GET /api/v1/trends/plot-values preserves the exact timestamp and magnitude of a synthetic spike when downsampling high-density telemetry. |
| URS-015 | ISA-88 Event Frame Excursion Capture & Zero-ETL Apache Parquet Lakehouse Export The system shall automatically detect parameter excursions into Event Frames with summary KPIs and export enriched telemetry to Apache Parquet files with 100% fidelity. | High | Available, Enduring, Complete | 21 CFR §11.10(b), ISA-88 | FRS-LAKE-015: POST /api/v1/event-frames/evaluate captures excursion metrics in PostgreSQL and POST /api/v1/lakehouse/export-parquet writes a valid Snappy-compressed Parquet file verified via pyarrow. |
| URS-016 | Pydantic AI Advisory Deviation Investigator & Read-Only Model Context Protocol (gxphistorian-mcp) The AI Co-Pilot and MCP Server shall execute all time-series and audit queries deterministically in ClickHouse (WHERE quality >= 192, LINEAR vs LOCF_STEP) and PostgreSQL while loading specialist forensic capabilities on demand. | High | Accurate, Consistent, Available | ISPE GAMP 5 Appendix D11, 21 CFR §11.10(e) | FRS-AI-016: POST /api/v1/ai/event-frames/{event_id}/investigate and GET /api/v1/ai/mcp/manifest return a validated DeviationInvestigationBrief with part11-forensics capability and unbroken SHA-256 chain verification. |
| URS-017 | Pydantic AI Human-in-the-Loop 21 CFR Part 11 Deferred Tool Approval Gate Any AI-proposed GxP tag provisioning shall validate engineering bounds via args_validator, pause execution with ApprovalRequired (DeferredToolRequests), and require human approval with X-Actor-Id and X-Change-Reason headers. | High | Attributable, Contemporaneous, Original | 21 CFR §11.10(e), EU GMP Annex 11 §11, FDA CSA | FRS-AI-017: POST /api/v1/ai/copilot/propose-tag pauses with approval_required when approved=False, rejects missing Part 11 headers with HTTP 400, and records WORM audit logs upon approved=True. |
| URS-018 | AVEVA PI DataLink & PI Web API StreamSets Analytical Parity (PICurrVal, PIArcVal, PICompDat, PIAdvCalcDat, PITimeFilter) The system shall provide full analytical parity with AVEVA PI DataLink and PI Web API StreamSets, including current snapshot value, exact-timestamp archive value, compressed recorded values, time-weighted vs. event-weighted summary integration, and condition duration time-filtering. | High | Accurate, Complete, Consistent | 21 CFR §11.10(b), ALCOA+ (Accurate, Complete) | FRS-DL-018: GET /api/v1/datalink/{current,archive-value,recorded,calculated,time-filter} and POST /api/v1/streamsets/{end,interpolated} enforce WHERE quality >= 192 and LINEAR trapezoidal vs. LOCF_STEP weighting. |
| URS-019 | PI Analysis Service & GxP Calculation Engine (ICH Q1A MKT, USP <1229> F0 Lethality, SQC SPC & Golden Batch Overlay) The system shall compute ICH Q1A(R2) Mean Kinetic Temperature (MKT), USP <1229> steam sterilization cumulative lethality (F0), Western Electric Statistical Process Control (SQC) rules, and PI BatchView relative-time Golden Batch comparisons. | High | Accurate, Complete, Enduring | ICH Q1A(R2), USP <1079>, USP <1229>, FDA Stage 3 CPV | FRS-AN-019: GET /api/v1/analytics/{mkt,f0-lethality,sqc} and POST /api/v1/batches/compare compute Arrhenius MKT, F0 lethality minutes, 3-sigma SPC rules, and relative batch time residuals. |
| URS-020 | PI Asset Framework Template Auto-Instantiation, Canonical UOM Conversion, Digital State Sets & PI Manual Logger The system shall support template-driven ISA-95 asset and tag auto-instantiation, canonical UOM conversions, Digital State Sets, and 21 CFR Part 11 manual/lab data entry with dual-person verification. | High | Attributable, Contemporaneous, Original | 21 CFR §11.10(e), §11.200, EU GMP Annex 11 §6 | FRS-AF-020: POST /api/v1/assets/instantiate-template, /api/v1/af/uom/convert, /api/v1/af/digital-state-sets, and /api/v1/manual-logger/entries enforce Part 11 attribution, dual-verifier auth, and WORM audit logging. |
| URS-021 | Stage 2 Swinging Door Compression, Event Frame TrueFor Debounce Backfill, Multi-Stage E-Signatures & Multi-Channel PI Notifications (Email, SMS, Mobile Push) The system shall implement Stage 2 Swinging Door Trending (SDT) slope compression, Event Frame historical backfill with TrueFor duration debounce, multi-stage electronic signature chains, and automated multi-channel PI Notifications (Email, SMS, Mobile Push, Webhook) with Escalation Teams, Non-Repetition/Resend intervals, Two-Way SMS ACK, and Send-on-Close. | High | Attributable, Accurate, Available | 21 CFR §11.50, §11.200, ISA-88, ISA-18.2 | FRS-EF-021: POST /api/v1/compression/swinging-door-evaluate, POST /api/v1/event-frames/backfill, GET /api/v1/event-frames/{id}/signatures, and /api/v1/notifications/{channels,rules,preview,evaluate,acknowledge,sms-webhook,deliveries} verify SDT compression, TrueFor spike suppression, multi-signer chains, and multi-channel alert dispatch. |
Document 03 — Functional & Design Specification (FDS)
Document ID: FDS-GXPHISTORIAN-2026-003 | Effective Date (UTC): 2026-11-11T02:40:42Z
1. 4-Pillar System Architecture
- Pillar 1 — Multi-Protocol Edge Collector (
edge-collector): - Built on
telegraf:1.32-alpinewithbuffer_strategy = "disk"at/var/lib/telegraf/buffer(metric_buffer_limit = 1000000). - Exposes
[[inputs.http_listener_v2]]on:8080/ingestfor Windows localhost COM OPC DA forwarders (opcda_windows_forwarder.py) and asyncbacpypes3BACnet/IP workers (bacnet_cov_worker.py). - Executes
multi_protocol_simulator.pyvia[[inputs.execd]]implementing Stage 1 Exception/Deadband filtering (ExcDevandExcMax) and Stage 2 Swinging Door Trending (CompDevandCompMax). - Pillar 2 — Immutable Telemetry Archive (
clickhouse-archive): clickhouse/clickhouse-server:24.8-alpinedatabasepi_historian.- Table
pi_historian.sensor_data(ENGINE = MergeTree() PARTITION BY toYYYYMM(ts) ORDER BY (tag_id, ts)): tag_id UInt32 CODEC(Delta, ZSTD(1))ts DateTime64(3, 'UTC') CODEC(DoubleDelta, ZSTD(1))val Float64 CODEC(Gorilla, ZSTD(1))str_val LowCardinality(String) DEFAULT '' CODEC(ZSTD(1))quality UInt8 DEFAULT 192 CODEC(T64, ZSTD(1))status_code UInt16 DEFAULT 0 CODEC(T64, ZSTD(1))- Real-time 1-minute rollup table
pi_historian.sensor_rollup_1m(AggregatingMergeTree()) populated bymv_sensor_rollup_1m(WHERE quality >= 192). - In-memory dictionary
pi_historian.pg_asset_tags(LAYOUT(FLAT()) LIFETIME(MIN 5 MAX 15)) and external tablepi_historian.pg_event_frames. - Pillar 3 — PostgreSQL 16 Part 11 Control Plane, FastAPI, AVEVA PI Parity Engine & Pydantic AI / MCP (
postgres-control+historian-api): - PostgreSQL 16 extensions:
ltree,btree_gist,pgcrypto. - Tables:
asset_templates,assets(GiST index onasset_path),tags,event_frames,event_frame_templates,event_frame_signatures,digital_state_sets,manual_logger_entries,notification_rules,notification_deliveries,users, andpart11_audit_log. - Trigger
fn_enforce_part11_audit()enforcescurrent_setting('app.actor_id', true)andcurrent_setting('app.change_reason', true)and computesrow_hash = encode(digest(prev_hash || recorded_at::text || actor_id || operation || coalesce(new_payload::text, ''), 'sha256'), 'hex'). - Trigger
fn_prevent_audit_tampering()blocksUPDATE,DELETE, andTRUNCATEonpart11_audit_log. - AVEVA PI System Parity Engine (
pi_parity_engine.py) provides full PI DataLink (PICurrVal,PIArcVal,PICompDat,PIAdvCalcDat,PITimeFilter), PI Web APIStreamSets, GxP calculations (MKT,F0,SQC), Golden Batch overlay, AF Template auto-instantiation, UOM conversion, PI Manual Logger,TrueForEvent Frame backfill, multi-stage e-signatures, and PI Notifications. - Pydantic AI Co-Pilot (
gxp_ai_agent.py) &gxphistorian-mcp(mcp_server.py) provide read-only deterministic tools, progressive disclosure capabilities (part11-forensics,brownfield-onboarding), and human-in-the-loopApprovalRequired(DeferredToolRequests) Part 11 change control. - Pillar 4 — Operator HMI & Excel DataLink (
grafana-vision+excel-datalink-client): - Grafana OSS 11.2.0 pre-provisioned with
clickhouse_coreandpostgres_controldatasources and the asset-relative dashboardGxPHistorian Vision — GxP Bioreactor & Cleanroom HMI. - Excel DataLink UDF module (
gxphistorian_datalink_udf.py) with 8 worksheet functions and native Power Query CSV endpoint (/api/v1/datalink/sampled?format=csv).
Document 04 — FDA CSA Functional Risk Assessment (FRA)
Document ID: FRA-GXPHISTORIAN-2026-004 | Generated (UTC): 2026-11-11T02:40:42Z | Methodology: ISPE GAMP 5 & FDA Computer Software Assurance (CSA)
1. Functional Risk Assessment Matrix
| URS ID | Failure Mode / GxP Hazard | FMEA Score | CSA Risk Class | Required Testing Rigor | Technical Control & Verification Reference |
|---|---|---|---|---|---|
| URS-001 | Unauthorized network access using default vendor credentials | S=3, O=1, D=1 | Medium | Automated IQ Verification | Non-default secrets in .env verified by IQ test_iq_01 |
| URS-002 | Missing database extensions or corrupted control plane schema | S=3, O=1, D=1 | Medium | Automated IQ Verification | Automated DDL init script + IQ schema inspection test_iq_02 |
| URS-003 | Uncompressed storage exhaustion or lossy float precision loss | S=2, O=1, D=1 | Low | Automated IQ Verification | Lossless Gorilla/DoubleDelta codecs verified via system.columns in test_iq_03 |
| URS-004 | Stale or unmapped ISA-95 asset path in analytical queries | S=3, O=2, D=1 | Medium | Automated IQ Verification | ClickHouse FLAT dictionary with 5-15s refresh verified in test_iq_04 |
| URS-005 | Telemetry loss during temporary ClickHouse or network outage | S=4, O=2, D=1 | High | Scripted OQ / IQ Verification | Telegraf disk WAL buffer (/var/lib/telegraf/buffer) + ExcDev/ExcMax verified in test_iq_05 |
| URS-006 | Unattributed modification of GxP tag limits or Event Frames | S=5, O=2, D=1 | High | Scripted OQ (Negative & Positive Testing) | PL/pgSQL fn_enforce_part11_audit() blocks mutations lacking actor_id/change_reason (test_oq_01) |
| URS-007 | Malicious DBA or superuser deletion/alteration of audit trail | S=5, O=1, D=1 | High | Scripted OQ (Adversarial Tamper Challenge) | BEFORE UPDATE/DELETE/TRUNCATE WORM trigger fn_prevent_audit_tampering() (test_oq_02) |
| URS-008 | Spoofed or unauthorized electronic signature on Batch Event Frame | S=5, O=2, D=1 | High | Scripted OQ (Negative Security Testing) | pgcrypto bcrypt password verification returns HTTP 401 on invalid password (test_oq_03) |
| URS-009 | Detached or repudiated electronic signature on batch release | S=5, O=1, D=1 | High | Scripted OQ | HMAC-SHA256 signature binding over (event_id, user_id, meaning, signed_at) (test_oq_04) |
| URS-010 | Undetected offline tampering of historical audit trail rows | S=5, O=1, D=1 | High | Scripted OQ | Continuous SHA-256 hash chain from GENESIS_0000000000000000 verified via API (test_oq_05) |
| URS-011 | Protocol silo dropping OPC DA, BACnet/IP, S7, or OPC UA tags | S=3, O=2, D=1 | Medium | Automated OQ Verification | Unified multi-protocol collector verified across tags 101, 102, 103, 301, 401 (test_oq_06) |
| URS-012 | Broken sensor spike (quality=0, val=9999.0) corrupting batch CQA averages | S=5, O=3, D=1 | High | Scripted OQ (Fault Injection Challenge) | Mandatory WHERE quality >= 192 filter in mv_sensor_rollup_1m verified by fault injection (test_oq_07) |
| URS-013 | Linear interpolation creating invalid fractional states (1.5) on discrete valve/agitator tags | S=4, O=2, D=1 | High | Scripted OQ (Mathematical Boundary Verification) | Metadata-driven LOCF step vs. LINEAR interpolation in /api/v1/datalink/sampled (test_oq_08) |
| URS-014 | Visual trend downsampling hiding brief critical thermal excursion spikes | S=4, O=2, D=1 | Medium | Scripted OQ | ClickHouse largestTriangleThreeBuckets(LTTB) preserves exact local peaks (test_oq_09) |
| URS-015 | Corrupted or incomplete batch telemetry export to enterprise data lakehouse | S=4, O=1, D=1 | High | Scripted OQ | PyArrow Snappy Parquet export verified for 100% row/column fidelity (test_oq_10) |
| URS-016 | AI agent hallucinating time-series statistics or ignoring OPC quality < 192 | S=4, O=2, D=1 | High | Scripted OQ (Deterministic FunctionModel & TestModel Qualification) | All telemetry math executed deterministically in ClickHouse via Pydantic AI tools & gxphistorian-mcp (test_oq_11) |
| URS-017 | Autonomous AI agent mutating GxP tag catalog without human Part 11 attribution | S=5, O=2, D=1 | High | Scripted OQ (Negative & Positive Human-in-the-Loop Gate Testing) | Pydantic AI ApprovalRequired (DeferredToolRequests) + mandatory X-Actor-Id/X-Change-Reason gate (test_oq_12) |
| URS-018 | Event-weighted averaging distorting non-uniformly sampled process totals or durations | S=4, O=2, D=1 | High | Scripted OQ (Mathematical Integration & Boundary Verification) | Trapezoidal & LOCF time-weighted integration in /api/v1/datalink/calculated & time-filter (test_oq_13) |
| URS-019 | Inaccurate stability MKT or autoclave F0 lethality calculation leading to invalid batch release | S=5, O=2, D=1 | High | Scripted OQ (Pharmacopeial Formula & SPC Verification) | ClickHouse ICH Q1A MKT, USP <1229> F0, Western Electric SQC & Golden Batch overlay (test_oq_14) |
| URS-020 | Unverified manual lab entry or unit conversion error corrupting GxP batch records | S=5, O=2, D=1 | High | Scripted OQ (Positive & Negative Dual-Verification Testing) | Part 11 Manual Logger dual-verification, canonical UOM dimension checks & AF template instantiation (test_oq_15) |
| URS-021 | Single-sample sensor noise triggering nuisance excursion alarms or overwriting prior e-signatures | S=4, O=2, D=1 | High | Scripted OQ | Stage 2 Swinging Door compression, TrueFor debounce backfill, multi-stage signatures & PI Notifications (test_oq_16) |
Document 05 — SOUP / Open-Source Software (OSS) Vendor Qualification Dossier
Document ID: SOUP-GXPHISTORIAN-2026-005 | Generated (UTC): 2026-11-11T02:40:42Z | Standard: GAMP 5 Category 3/4 & ISO/IEC 62304 SOUP Qualification
1. Qualified Open-Source Software & Live Container SHA-256 Digest Matrix
| Service Container | Software Component | License | Corporate / Foundation Backing | GAMP Category | Live Container Image @sha256 Digest | Supply-Chain & GxP Controls |
|---|---|---|---|---|---|---|
clickhouse-archive | ClickHouse Server 24.8 LTS | Apache-2.0 | ClickHouse, Inc. | Category 4 (Configured Time-Series Archive) | sha256:b002e56ed5c16e224c312527f6fcba7e77216fec5d7a88a7828f59efc614feb5 | Alpine 3.20 minimal base, pinned @sha256 digest, read-only init mounts, non-default auth |
postgres-control | PostgreSQL 16 (ltree + pgcrypto) | PostgreSQL License (OSI Approved) | PostgreSQL Global Development Group | Category 4 (Configured Relational Control Plane) | sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab | Alpine minimal image, cryptographic pgcrypto SHA-256 & bcrypt triggers, WORM enforcement |
instrument-mock-server | Multi-Protocol Biopharma Instrument Mock Server (OPC UA / Modbus / BACnet / S7 / Serial / OPC DA) | MIT / Apache-2.0 | GxPHistorian / Python Software Foundation | Category 5 (Multi-Protocol Qualification Simulator) | sha256:9f4f81952a21b788e256f6fb4b873ec77e9d32798c430fb84a7a987839a9cb3a | Isolated Docker network listeners (:4840, :5020, :47808/udp, :1102, :4001, :8095), deterministic wire-format verification |
edge-collector | InfluxData Telegraf 1.32 + Python 3.12 Execd Worker | MIT License / PSF License | InfluxData / Python Software Foundation | Category 4 / Category 5 (Custom Deadband Script) | sha256:9de1dcae40fc61806c658969e09fd86aacc5f582955dfb96ede1378cce7b6ae3 | Disk-backed WAL (/var/lib/telegraf/buffer), local localhost COM/HTTP isolation |
historian-api | FastAPI 0.115 / Uvicorn / PyArrow 17 / Psycopg 3 | MIT / Apache-2.0 / LGPL-3.0 | FastAPI / Apache Software Foundation | Category 5 (Custom GxP Application Layer) | sha256:96fb56029e8fd8b05b72abdd1acfc1151b338b76dac180dc25390b747b0bfea0 | Pinned requirements.txt versions, mandatory Part 11 header enforcement, 100% OQ test coverage |
gxphistorian-mcp | Pydantic AI 2.0 + FastMCP Streamable HTTP Server | MIT / Apache-2.0 | Pydantic Services Inc. / Prefect Technologies | Category 5 (Advisory AI Co-Pilot & MCP Server) | sha256:c62392606c8d6cf57cd4167d53aff39afc78a199b11c3810ddaeb19c362d2d62 | Read-only quality >= 192 queries, ApprovalRequired Part 11 mutation gate, zero e-signature bypass |
grafana-vision | Grafana OSS 11.2.0 + ClickHouse Datasource Plugin | AGPL-3.0 / Apache-2.0 | Grafana Labs | Category 4 (Configured HMI Visualization) | sha256:408afb9726de5122b00a2576763a8a57a3c86d5b0eff5305bc994ceb3eb96c3f | Read-only provisioned datasources, non-default admin credentials, zero direct DB write privileges |
2. EU GMP Annex 11 §4.3 Cloud Supplier Qualification & Quality Technical Agreement (QTA) Schedule
| Regulatory Clause | Cloud IaaS/PaaS Provider (AWS / Azure / GCP) | GxPHistorian Cloud Control Plane (Managed or BYOC) | Regulated Pharmaceutical User (QA / OT / MSAT) |
|---|---|---|---|
| 21 CFR §11.30 Open System Controls | Physical data center perimeter, Direct Connect / ExpressRoute / Interconnect fiber encryption, FIPS 140-3 KMS HSMs | Enforces outbound-only TLS 1.3 / mTLS (:8443) from Purdue L2.5 edge-collector, PG_SSLMODE=verify-full, and CH_SECURE=true | Approves plant firewall outbound rule (:8443) and manages corporate IdP (Okta / Entra ID) user lifecycle |
| 21 CFR §11.10(e) & ALCOA+ Contemporaneous Capture | Multi-AZ compute, NVMe block durability, and private VPC/VNet routing | Monitors Purdue L2.5 100 GB Telegraf Disk WAL (>14-day autonomy per URS-005) via /api/v1/cloud/edge-agents/heartbeat | Maintains physical power/UPS to Purdue L2.5 DIN-rail Edge Box (Advantech UNO-2484G / OnLogic Karbon 800) |
| 21 CFR 211.180 & EU Annex 11 §17 15-Year WORM Retention | Hardware-enforced object immutability (AWS S3 Object Lock COMPLIANCE, Azure Locked Immutability, GCP Bucket Lock) | Automates ClickHouse zero-copy cold tiering (gxp_10yr_nvme_15yr_worm) and encrypted pgBackRest PITR snapshots | Retains Customer-Managed KMS Key (CMK/CMEK) ownership and reviews annual restoration drill evidence |
| EU Annex 11 §4.3 & GAMP 5 Change Control | SOC 1/2/3, ISO/IEC 27001, ISO/IEC 27017/27018 continuous compliance attestations | Pins tenant to approved LTS Release Channel (2026.Q4-LTS), runs automated 21/21 pytest IQ/OQ in staging, and issues signed VSR | Countersigns electronic Change Control & Validation Summary Report (VSR-GXPHISTORIAN-2026-008) prior to production promotion |
Document 06 — Executed IQ/OQ Protocol & Cryptographic Evidence Report
Document ID: EPR-GXPHISTORIAN-2026-006 | Session Start (UTC): 2026-11-11T02:40:33.812407+00:00 | Session End (UTC): 2026-11-11T02:40:41.977411+00:00 | Verdict: PASS (21/21 Passed, 100.0%)
1. Executed Automated IQ/OQ Test Results (oq_execution_results.json)
| Test ID | Pytest Node ID | Start (UTC) | Duration (s) | Executed Assertions & Evidence Summary | Verdict |
|---|---|---|---|---|---|
| TC-01 | gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_01_services_and_non_default_credentials | 2026-11-11T02:40:34.260233+00:00 | 0.1255 | Verified PostgreSQL, ClickHouse, FastAPI, gxphistorian-mcp, instrument-mock-server, and Grafana (live ClickHouse/PostgreSQL datasources + 4-panel HMI dashboard) health with non-default GxP secrets. | PASS |
| TC-02 | gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_02_postgres_extensions_and_schema | 2026-11-11T02:40:34.397388+00:00 | 0.0116 | Verified PostgreSQL 16 extensions (btree_gist, ltree, pgcrypto), all 12 GxP tables (including all 10 Part 11 trigger-enforced tables), and seeded Part 11 users. | PASS |
| TC-03 | gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_03_clickhouse_compression_codecs | 2026-11-11T02:40:34.419637+00:00 | 0.005 | Verified ClickHouse pi_historian.sensor_data column codecs (Delta, DoubleDelta, Gorilla, T64 + ZSTD(1)) and AggregatingMergeTree 1m rollup engines. | PASS |
| TC-04 | gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_04_clickhouse_postgres_dictionary_sync | 2026-11-11T02:40:34.438319+00:00 | 0.0392 | Verified all 5 seeded GxP tags and ISA-95 ltree paths resolve in ClickHouse pg_asset_tags dictionary and /api/v1/assets/tree. | PASS |
| TC-05 | gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_05_edge_collector_wal_and_deadband | 2026-11-11T02:40:34.479239+00:00 | 0.0049 | Verified disk-backed WAL buffer configuration, Stage 1 ExceptionDeadbandFilter, BACnet Status_Flags quality mapper, and OPC DA local JSONL store-and-forward spooler. | PASS |
| TC-06 | gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_01_reject_mutations_without_actor_or_reason | 2026-11-11T02:40:34.501725+00:00 | 0.1129 | Confirmed PostgreSQL PL/pgSQL trigger across all 10 GxP tables and FastAPI reject unattributed mutations. | PASS |
| TC-07 | gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_02_worm_audit_log_immutability | 2026-11-11T02:40:34.624221+00:00 | 0.0034 | Verified UPDATE, DELETE, and TRUNCATE on part11_audit_log unconditionally raise 21 CFR Part 11 WORM Violation. | PASS |
| TC-08 | gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_03_electronic_signature_rejects_invalid_credentials | 2026-11-11T02:40:34.635484+00:00 | 0.1143 | Verified POST /api/v1/event-frames/{id}/sign rejects invalid password with HTTP 401. | PASS |
| TC-09 | gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_04_electronic_signature_approval_and_hmac | 2026-11-11T02:40:34.757445+00:00 | 0.0732 | Verified dual-challenge electronic signature execution, HMAC-SHA256 binding, and audit trail logging. | PASS |
| TC-10 | gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_05_cryptographic_hash_chain_verification | 2026-11-11T02:40:34.836591+00:00 | 0.1062 | Verified 100% of part11_audit_log records form an unbroken SHA-256 hash chain from GENESIS_0000000000000000, including 8-thread concurrent write serialization via pg_advisory_xact_lock(21011). | PASS |
| TC-11 | gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_06_multi_protocol_telemetry_ingestion | 2026-11-11T02:40:34.950511+00:00 | 0.0917 | Verified all 6 mock instrument protocol listeners (direct host TCP/UDP sockets + HTTP endpoints + PI UFL SHA-256 CSV drop) and active telemetry ingestion across all 5 GxP tags. | PASS |
| TC-12 | gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_07_bad_quality_exclusion_in_rollup | 2026-11-11T02:40:35.049606+00:00 | 0.0096 | Proved mv_sensor_rollup_1m excludes quality=0 fault spike (9999.0), computing exact GMP rollup avg=37.5, max=38.0. | PASS |
| TC-13 | gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_08_datalink_linear_and_locf_step_interpolation | 2026-11-11T02:40:35.073198+00:00 | 0.0797 | Verified exact linear midpoint (37.0) on BR201_TEMP_PV (JSON + CSV) and integer LOCF ([1, 1, 2]) on BR201_AGIT_STATE. | PASS |
| TC-14 | gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_09_lttb_downsampling_preserves_local_peak | 2026-11-11T02:40:35.165529+00:00 | 0.0184 | Verified ClickHouse LTTB 10x downsampling (100 -> 10 points) preserved exact peak magnitude (845.75 mAU) and timestamp (12:00:50Z). | PASS |
| TC-15 | gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_10_event_frame_excursion_and_parquet_lakehouse_export | 2026-11-11T02:40:35.190378+00:00 | 0.2812 | Verified Event Frame evaluation and Apache Parquet export with 100% row/value fidelity via pyarrow. | PASS |
| TC-16 | gxp-validation-package/tests/test_04_ai_agent_and_mcp.py::test_oq_11_pydantic_ai_deviation_investigator_and_mcp | 2026-11-11T02:40:35.478086+00:00 | 5.1535 | Verified Pydantic AI gxp_deviation_investigator_agent produces a validated DeviationInvestigationBrief with part11-forensics capability and gxphistorian-mcp manifest. | PASS |
| TC-17 | gxp-validation-package/tests/test_04_ai_agent_and_mcp.py::test_oq_12_pydantic_ai_part11_human_in_the_loop_tag_approval | 2026-11-11T02:40:40.637153+00:00 | 0.1094 | Verified Pydantic AI ApprovalRequired (DeferredToolRequests / DeferredToolResults), args_validator ModelRetry recovery, and 21 CFR Part 11 WORM audit logging. | PASS |
| TC-18 | gxp-validation-package/tests/test_05_oq_aveva_pi_parity.py::test_oq_13_pi_datalink_and_streamsets_parity | 2026-11-11T02:40:40.758674+00:00 | 0.5933 | Verified AVEVA PI DataLink & StreamSets parity (REST + all 8 =GXPHISTORIAN_* Excel UDFs): PICurrVal UOM/DigitalState resolution, PIArcVal exact linear/LOCF retrieval, PICompDat bad-quality exclusion, PIAdvCalcDat Time-Weighted (38.0) vs Event-Weighted (37.6667) integration, PITimeFilter duration (360s / 60%), and StreamSets bulk queries. | PASS |
| TC-19 | gxp-validation-package/tests/test_05_oq_aveva_pi_parity.py::test_oq_14_pi_analytics_mkt_f0_sqc_and_golden_batch | 2026-11-11T02:40:41.364677+00:00 | 0.1316 | Verified ICH Q1A MKT (27.821 °C vs 27.5 °C mean), USP <1229> F0 (15.0 min, PASS), Western Electric SQC Rule 1 detection, and PI BatchView relative-time Golden Batch overlay (RMSE=0.4201). | PASS |
| TC-20 | gxp-validation-package/tests/test_05_oq_aveva_pi_parity.py::test_oq_15_pi_af_template_uom_digital_states_and_manual_logger | 2026-11-11T02:40:41.501657+00:00 | 0.1442 | Verified UOM conversion (100 °C -> 212 °F), Digital State Set creation & catalog, PI AF Template auto-instantiation of Bioreactor_202 (4 standard tags), and Part 11 PI Manual Logger with dual-person verification and ClickHouse archival (status_code=5). | PASS |
| TC-21 | gxp-validation-package/tests/test_05_oq_aveva_pi_parity.py::test_oq_16_swinging_door_truefor_backfill_multisig_and_notifications | 2026-11-11T02:40:41.662449+00:00 | 0.3138 | Verified Stage 2 Swinging Door compression (81.82% reduction), Event Frame TrueFor=60s backfill (suppressed 1 transient spike, captured event a95b670f-5379-462c-b386-c7db6b66a447), multi-channel PI Notifications (Email HTML, 160-char SMS, Mobile Push APNs/FCM/PagerDuty, Webhook/Teams), Tier 2 Escalation Team dispatch, Two-Way SMS ACK escalation halt, Send-on-Close recovery, and 2-stage e-signature chain. | PASS |
2. Live 21 CFR Part 11 Cryptographic Audit Trail Evidence (part11_audit_log)
| Audit ID | Recorded At (UTC) | Actor ID | Change Reason | Target Table | Record PK | Op | prev_hash Prefix | row_hash Prefix |
|---|---|---|---|---|---|---|---|---|
1 | 2026-11-11 02:39:03.641477+00 | system_bootstrap | Initial GxP Qualification Seed | asset_templates | 1 | INSERT | GENESIS_000000000000... | f60cbe201c153e50e277... |
2 | 2026-11-11 02:39:03.64323+00 | system_bootstrap | Initial GxP Qualification Seed | asset_templates | 2 | INSERT | f60cbe201c153e50e277... | cef806f502c9dc6a1838... |
3 | 2026-11-11 02:39:03.643313+00 | system_bootstrap | Initial GxP Qualification Seed | asset_templates | 3 | INSERT | cef806f502c9dc6a1838... | a2cda6a80a9060a8447a... |
4 | 2026-11-11 02:39:03.64468+00 | system_bootstrap | Initial GxP Qualification Seed | assets | 1 | INSERT | a2cda6a80a9060a8447a... | 79e209d061b8218fe291... |
5 | 2026-11-11 02:39:03.645258+00 | system_bootstrap | Initial GxP Qualification Seed | assets | 2 | INSERT | 79e209d061b8218fe291... | 50738bc7930b1ffaafe1... |
6 | 2026-11-11 02:39:03.645364+00 | system_bootstrap | Initial GxP Qualification Seed | assets | 3 | INSERT | 50738bc7930b1ffaafe1... | b662f14b0553b2a1845c... |
7 | 2026-11-11 02:39:03.646469+00 | system_bootstrap | Initial GxP Qualification Seed | tags | 101 | INSERT | b662f14b0553b2a1845c... | 912cf2ea54d4dcc98ad2... |
8 | 2026-11-11 02:39:03.647078+00 | system_bootstrap | Initial GxP Qualification Seed | tags | 102 | INSERT | 912cf2ea54d4dcc98ad2... | 77fe340b63421bbf50f2... |
9 | 2026-11-11 02:39:03.647231+00 | system_bootstrap | Initial GxP Qualification Seed | tags | 103 | INSERT | 77fe340b63421bbf50f2... | fad0672e3524833e0bf9... |
10 | 2026-11-11 02:39:03.647355+00 | system_bootstrap | Initial GxP Qualification Seed | tags | 301 | INSERT | fad0672e3524833e0bf9... | a40ae496f03cbbe7bffc... |
11 | 2026-11-11 02:39:03.647474+00 | system_bootstrap | Initial GxP Qualification Seed | tags | 401 | INSERT | a40ae496f03cbbe7bffc... | 5382bce5e511d215ddb2... |
12 | 2026-11-11 02:39:03.648764+00 | system_bootstrap | Initial GxP Qualification Seed | digital_state_sets | 1 | INSERT | 5382bce5e511d215ddb2... | d9114f4c91b17ef1f405... |
13 | 2026-11-11 02:39:03.649513+00 | system_bootstrap | Initial GxP Qualification Seed | digital_state_sets | 2 | INSERT | d9114f4c91b17ef1f405... | 39a9d59590243ac4d9e0... |
14 | 2026-11-11 02:39:03.649609+00 | system_bootstrap | Initial GxP Qualification Seed | digital_state_sets | 3 | INSERT | 39a9d59590243ac4d9e0... | ef793cbe6a946f0043ac... |
15 | 2026-11-11 02:39:03.65045+00 | system_bootstrap | Initial GxP Qualification Seed | event_frame_templates | 1 | INSERT | ef793cbe6a946f0043ac... | 6105530000729692a263... |
3. Live Signed ISA-88 Event Frames (event_frames)
| Event ID | Event Name | Template | Severity | Start Time | Signed By | Signature Meaning | HMAC-SHA256 Signature Hash |
|---|---|---|---|---|---|---|---|
a60964ee-7e64-4940-88c9-a87b38f71c09 | BR201_TEMP_PV_High_Limit_Excursion | Temp_Excursion | CRITICAL | 2026-11-11 02:37:13.855+00 | qa_approver_01 | Batch Release Approval | 4746152bebc9ed3f54ba772f... |
4af43193-a957-410f-a632-e1c81c5f9b75 | BR201_TEMP_PV_Temp_Excursion_TrueFor_30s | Temp_Excursion_TrueFor_30s | CRITICAL | 2026-01-16 18:05:00+00 | qa_approver_01 | QA Final Disposition Approval — Batch Released | 7872170e14cbf0e58581609e... |
a95b670f-5379-462c-b386-c7db6b66a447 | BR201_TEMP_PV_Temp_Excursion_TrueFor_30s | Temp_Excursion_TrueFor_30s | CRITICAL | 2026-01-16 18:05:00+00 | qa_approver_01 | QA Final Disposition Approval — Batch Released | 8b47b25a0b58e030dac22479... |
251127ba-2603-49e8-9b50-7b3014d2210a | BR201_TEMP_PV_Temp_Excursion_TrueFor_30s | Temp_Excursion_TrueFor_30s | CRITICAL | 2026-01-16 18:05:00+00 | qa_approver_01 | QA Final Disposition Approval — Batch Released | 6e96ebb9f3b68b34b314b024... |
d2beb67e-fec9-49c6-8121-3562ea616403 | USP_Batch_2026_BR201_001 | Fermentation_Batch | INFO | 2026-11-11 02:36:31.85+00 | UNSIGNED | - | -... |
8c4d3738-3624-4ca2-bb38-1bb42b28cb14 | BR201_TEMP_PV_High_Limit_Excursion | Temp_Excursion | CRITICAL | 2026-11-11 02:37:13.855+00 | UNSIGNED | - | -... |
Document 07 — Bidirectional Requirements Traceability Matrix (RTM)
Document ID: RTM-GXPHISTORIAN-2026-007 | Generated (UTC): 2026-11-11T02:40:42Z | Coverage: 100.0% (21/21 URS Verified, 0 Gaps)
| URS ID | Requirement Title | FRS / Design Spec | GAMP Cat. | CSA Risk | Automated Pytest Node ID | Executed Timestamp (UTC) | Verdict |
|---|---|---|---|---|---|---|---|
| URS-001 | Multi-Service Container Infrastructure & Non-Default GxP Security Credentials | FRS-INFRA-001 | Category 3 / Category 4 | Medium | gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_01_services_and_non_default_credentials | 2026-11-11T02:40:34.385773+00:00 | PASS |
| URS-002 | PostgreSQL 16 Control Plane Extensions & Core GxP Schema Qualification | FRS-PG-002 | Category 4 | Medium | gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_02_postgres_extensions_and_schema | 2026-11-11T02:40:34.408976+00:00 | PASS |
| URS-003 | ClickHouse Lossless Time-Series Compression Codecs Verification | FRS-CH-003 | Category 4 | Low | gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_03_clickhouse_compression_codecs | 2026-11-11T02:40:34.424626+00:00 | PASS |
| URS-004 | ISA-95 ltree Asset Hierarchy & ClickHouse In-Memory Dictionary Synchronization | FRS-DICT-004 | Category 4 | Medium | gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_04_clickhouse_postgres_dictionary_sync | 2026-11-11T02:40:34.477485+00:00 | PASS |
| URS-005 | Stage 1 Edge Exception/Deadband Filtering & Disk WAL Store-and-Forward Buffer | FRS-EDGE-005 | Category 4 / Category 5 | High | gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_05_edge_collector_wal_and_deadband | 2026-11-11T02:40:34.484170+00:00 | PASS |
| URS-006 | 21 CFR Part 11 Mandatory Attribution Context Enforcement | FRS-P11-006 | Category 5 | High | gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_01_reject_mutations_without_actor_or_reason | 2026-11-11T02:40:34.614643+00:00 | PASS |
| URS-007 | 21 CFR Part 11 §11.10(e) WORM Audit Trail Immutability | FRS-P11-007 | Category 5 | High | gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_02_worm_audit_log_immutability | 2026-11-11T02:40:34.627641+00:00 | PASS |
| URS-008 | 21 CFR Part 11 §11.200 Electronic Signature Rejection of Unauthorized Credentials | FRS-P11-008 | Category 5 | High | gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_03_electronic_signature_rejects_invalid_credentials | 2026-11-11T02:40:34.749754+00:00 | PASS |
| URS-009 | 21 CFR Part 11 §11.50 & §11.70 Electronic Signature Manifestation & HMAC Binding | FRS-P11-009 | Category 5 | High | gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_04_electronic_signature_approval_and_hmac | 2026-11-11T02:40:34.830679+00:00 | PASS |
| URS-010 | 21 CFR Part 11 Cryptographic SHA-256 Audit Hash-Chain Verification | FRS-P11-010 | Category 5 | High | gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_05_cryptographic_hash_chain_verification | 2026-11-11T02:40:34.942746+00:00 | PASS |
| URS-011 | Multi-Protocol Telemetry Ingestion (OPC UA, BACnet/IP, Siemens S7, Legacy OPC DA) | FRS-HIST-011 | Category 4 | Medium | gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_06_multi_protocol_telemetry_ingestion | 2026-11-11T02:40:35.042171+00:00 | PASS |
| URS-012 | Bad OPC Signal Quality (quality < 192) Exclusion from GMP Rollups | FRS-HIST-012 | Category 5 | High | gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_07_bad_quality_exclusion_in_rollup | 2026-11-11T02:40:35.059228+00:00 | PASS |
| URS-013 | PI DataLink Parity: Linear Interpolation vs. Discrete Step (LOCF) Sampling | FRS-DL-013 | Category 5 | High | gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_08_datalink_linear_and_locf_step_interpolation | 2026-11-11T02:40:35.152884+00:00 | PASS |
| URS-014 | PI Vision PlotValues Parity: LTTB Visual Downsampling Peak Preservation | FRS-LTTB-014 | Category 4 / Category 5 | Medium | gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_09_lttb_downsampling_preserves_local_peak | 2026-11-11T02:40:35.183910+00:00 | PASS |
| URS-015 | ISA-88 Event Frame Excursion Capture & Zero-ETL Apache Parquet Lakehouse Export | FRS-LAKE-015 | Category 5 | High | gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_10_event_frame_excursion_and_parquet_lakehouse_export | 2026-11-11T02:40:35.471581+00:00 | PASS |
| URS-016 | Pydantic AI Advisory Deviation Investigator & Read-Only Model Context Protocol (gxphistorian-mcp) | FRS-AI-016 | Category 5 | High | gxp-validation-package/tests/test_04_ai_agent_and_mcp.py::test_oq_11_pydantic_ai_deviation_investigator_and_mcp | 2026-11-11T02:40:40.631587+00:00 | PASS |
| URS-017 | Pydantic AI Human-in-the-Loop 21 CFR Part 11 Deferred Tool Approval Gate | FRS-AI-017 | Category 5 | High | gxp-validation-package/tests/test_04_ai_agent_and_mcp.py::test_oq_12_pydantic_ai_part11_human_in_the_loop_tag_approval | 2026-11-11T02:40:40.746603+00:00 | PASS |
| URS-018 | AVEVA PI DataLink & PI Web API StreamSets Analytical Parity (PICurrVal, PIArcVal, PICompDat, PIAdvCalcDat, PITimeFilter) | FRS-DL-018 | Category 5 | High | gxp-validation-package/tests/test_05_oq_aveva_pi_parity.py::test_oq_13_pi_datalink_and_streamsets_parity | 2026-11-11T02:40:41.351935+00:00 | PASS |
| URS-019 | PI Analysis Service & GxP Calculation Engine (ICH Q1A MKT, USP <1229> F0 Lethality, SQC SPC & Golden Batch Overlay) | FRS-AN-019 | Category 5 | High | gxp-validation-package/tests/test_05_oq_aveva_pi_parity.py::test_oq_14_pi_analytics_mkt_f0_sqc_and_golden_batch | 2026-11-11T02:40:41.496256+00:00 | PASS |
| URS-020 | PI Asset Framework Template Auto-Instantiation, Canonical UOM Conversion, Digital State Sets & PI Manual Logger | FRS-AF-020 | Category 4 / Category 5 | High | gxp-validation-package/tests/test_05_oq_aveva_pi_parity.py::test_oq_15_pi_af_template_uom_digital_states_and_manual_logger | 2026-11-11T02:40:41.645864+00:00 | PASS |
| URS-021 | Stage 2 Swinging Door Compression, Event Frame TrueFor Debounce Backfill, Multi-Stage E-Signatures & Multi-Channel PI Notifications (Email, SMS, Mobile Push) | FRS-EF-021 | Category 5 | High | gxp-validation-package/tests/test_05_oq_aveva_pi_parity.py::test_oq_16_swinging_door_truefor_backfill_multisig_and_notifications | 2026-11-11T02:40:41.976249+00:00 | PASS |
Document 08 — Validation Summary Report (VSR) & Release Certificate
Document ID: VSR-GXPHISTORIAN-2026-008 | Release Date (UTC): 2026-11-11T02:40:42Z | System Release Status: QUALIFIED FOR GxP PRODUCTION USE
1. Executive Qualification Summary
The GxPHistorian GxP Industrial Historian (ClickHouse 24.8 Telemetry Archive, PostgreSQL 16 Part 11 Control Plane, Telegraf 1.32 Edge Collector, FastAPI Control Plane + Pydantic AI / gxphistorian-mcp, and Grafana 11.2 HMI) has completed all Installation Qualification (IQ), Operational Qualification (OQ), and Performance Qualification (PQ) activities in accordance with VMP-GXPHISTORIAN-2026-001.
| Metric | Target Acceptance Criterion | Actual Executed Result | Status |
|---|---|---|---|
| User Requirements Coverage (URS-001..021) | 100% Bidirectional Traceability | 21 / 21 Requirements Mapped & Verified | PASS |
Automated IQ/OQ Test Suite (pytest) | 100% Pass Rate (0 Failures) | 21 / 21 Passed (100.0%) | PASS |
| 21 CFR Part 11 Cryptographic Hash Chain | chain_valid == true from GENESIS | 168 Audit Records Verified (head: 7021277189c36456e2eb69b8...) | PASS |
| Validation Deviations / CAPAs | 0 Open Critical/Major Deviations | 0 Deviations Encountered | PASS |
2. Deviation & Non-Conformance Log
- Open Deviations:
0 - Closed Deviations:
0 - All 21 IQ/OQ test cases passed on execution without protocol exceptions or data integrity discrepancies.
3. Statement of Fitness for Intended GxP Use
Based on the objective cryptographic evidence captured in oq_execution_results.json and the unbroken SHA-256 WORM audit trail in part11_audit_log, the GxPHistorian GxP Industrial Historian is hereby declared fit for its intended GxP manufacturing use under FDA 21 CFR Part 11, EU GMP Annex 11, and ISPE GAMP 5 (Second Edition).
4. 21 CFR Part 11 §11.50 Electronic Release Signatures
| Signer Role | Printed Name | User ID | Signature Meaning | Signed Timestamp (UTC) | Cryptographic Verification |
|---|---|---|---|---|---|
| System Owner (IT/OT) | Sarah Jenkins | operator_01 | System Technical Qualification & Operational Handover Approval | 2026-11-11T02:40:42Z | Verified via pgcrypto & Part 11 Audit Chain |
| Quality Assurance (QP) | Dr. Marcus Vance | qa_approver_01 | Final QA Validation Release & 21 CFR Part 11 Compliance Approval | 2026-11-11T02:40:42Z | HMAC-SHA256 Bound (7021277189c36456e2eb69b880a952ff...) |