Skip to content

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 IDPytest Node IDStart (UTC)Duration (s)Executed Assertions & Evidence SummaryVerdict
TC-01gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_01_services_and_non_default_credentials2026-11-11T02:40:34.260233+00:000.1255Verified 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-02gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_02_postgres_extensions_and_schema2026-11-11T02:40:34.397388+00:000.0116Verified 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-03gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_03_clickhouse_compression_codecs2026-11-11T02:40:34.419637+00:000.005Verified ClickHouse pi_historian.sensor_data column codecs (Delta, DoubleDelta, Gorilla, T64 + ZSTD(1)) and AggregatingMergeTree 1m rollup engines.PASS
TC-04gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_04_clickhouse_postgres_dictionary_sync2026-11-11T02:40:34.438319+00:000.0392Verified all 5 seeded GxP tags and ISA-95 ltree paths resolve in ClickHouse pg_asset_tags dictionary and /api/v1/assets/tree.PASS
TC-05gxp-validation-package/tests/test_01_iq_infrastructure.py::test_iq_05_edge_collector_wal_and_deadband2026-11-11T02:40:34.479239+00:000.0049Verified disk-backed WAL buffer configuration, Stage 1 ExceptionDeadbandFilter, BACnet Status_Flags quality mapper, and OPC DA local JSONL store-and-forward spooler.PASS
TC-06gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_01_reject_mutations_without_actor_or_reason2026-11-11T02:40:34.501725+00:000.1129Confirmed PostgreSQL PL/pgSQL trigger across all 10 GxP tables and FastAPI reject unattributed mutations.PASS
TC-07gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_02_worm_audit_log_immutability2026-11-11T02:40:34.624221+00:000.0034Verified UPDATE, DELETE, and TRUNCATE on part11_audit_log unconditionally raise 21 CFR Part 11 WORM Violation.PASS
TC-08gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_03_electronic_signature_rejects_invalid_credentials2026-11-11T02:40:34.635484+00:000.1143Verified POST /api/v1/event-frames/{id}/sign rejects invalid password with HTTP 401.PASS
TC-09gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_04_electronic_signature_approval_and_hmac2026-11-11T02:40:34.757445+00:000.0732Verified dual-challenge electronic signature execution, HMAC-SHA256 binding, and audit trail logging.PASS
TC-10gxp-validation-package/tests/test_02_oq_part11_compliance.py::test_oq_05_cryptographic_hash_chain_verification2026-11-11T02:40:34.836591+00:000.1062Verified 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-11gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_06_multi_protocol_telemetry_ingestion2026-11-11T02:40:34.950511+00:000.0917Verified 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-12gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_07_bad_quality_exclusion_in_rollup2026-11-11T02:40:35.049606+00:000.0096Proved mv_sensor_rollup_1m excludes quality=0 fault spike (9999.0), computing exact GMP rollup avg=37.5, max=38.0.PASS
TC-13gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_08_datalink_linear_and_locf_step_interpolation2026-11-11T02:40:35.073198+00:000.0797Verified exact linear midpoint (37.0) on BR201_TEMP_PV (JSON + CSV) and integer LOCF ([1, 1, 2]) on BR201_AGIT_STATE.PASS
TC-14gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_09_lttb_downsampling_preserves_local_peak2026-11-11T02:40:35.165529+00:000.0184Verified ClickHouse LTTB 10x downsampling (100 -> 10 points) preserved exact peak magnitude (845.75 mAU) and timestamp (12:00:50Z).PASS
TC-15gxp-validation-package/tests/test_03_oq_historian_core.py::test_oq_10_event_frame_excursion_and_parquet_lakehouse_export2026-11-11T02:40:35.190378+00:000.2812Verified Event Frame evaluation and Apache Parquet export with 100% row/value fidelity via pyarrow.PASS
TC-16gxp-validation-package/tests/test_04_ai_agent_and_mcp.py::test_oq_11_pydantic_ai_deviation_investigator_and_mcp2026-11-11T02:40:35.478086+00:005.1535Verified Pydantic AI gxp_deviation_investigator_agent produces a validated DeviationInvestigationBrief with part11-forensics capability and gxphistorian-mcp manifest.PASS
TC-17gxp-validation-package/tests/test_04_ai_agent_and_mcp.py::test_oq_12_pydantic_ai_part11_human_in_the_loop_tag_approval2026-11-11T02:40:40.637153+00:000.1094Verified Pydantic AI ApprovalRequired (DeferredToolRequests / DeferredToolResults), args_validator ModelRetry recovery, and 21 CFR Part 11 WORM audit logging.PASS
TC-18gxp-validation-package/tests/test_05_oq_aveva_pi_parity.py::test_oq_13_pi_datalink_and_streamsets_parity2026-11-11T02:40:40.758674+00:000.5933Verified 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-19gxp-validation-package/tests/test_05_oq_aveva_pi_parity.py::test_oq_14_pi_analytics_mkt_f0_sqc_and_golden_batch2026-11-11T02:40:41.364677+00:000.1316Verified 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-20gxp-validation-package/tests/test_05_oq_aveva_pi_parity.py::test_oq_15_pi_af_template_uom_digital_states_and_manual_logger2026-11-11T02:40:41.501657+00:000.1442Verified 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-21gxp-validation-package/tests/test_05_oq_aveva_pi_parity.py::test_oq_16_swinging_door_truefor_backfill_multisig_and_notifications2026-11-11T02:40:41.662449+00:000.3138Verified 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 IDRecorded At (UTC)Actor IDChange ReasonTarget TableRecord PKOpprev_hash Prefixrow_hash Prefix
12026-11-11 02:39:03.641477+00system_bootstrapInitial GxP Qualification Seedasset_templates1INSERTGENESIS_000000000000...f60cbe201c153e50e277...
22026-11-11 02:39:03.64323+00system_bootstrapInitial GxP Qualification Seedasset_templates2INSERTf60cbe201c153e50e277...cef806f502c9dc6a1838...
32026-11-11 02:39:03.643313+00system_bootstrapInitial GxP Qualification Seedasset_templates3INSERTcef806f502c9dc6a1838...a2cda6a80a9060a8447a...
42026-11-11 02:39:03.64468+00system_bootstrapInitial GxP Qualification Seedassets1INSERTa2cda6a80a9060a8447a...79e209d061b8218fe291...
52026-11-11 02:39:03.645258+00system_bootstrapInitial GxP Qualification Seedassets2INSERT79e209d061b8218fe291...50738bc7930b1ffaafe1...
62026-11-11 02:39:03.645364+00system_bootstrapInitial GxP Qualification Seedassets3INSERT50738bc7930b1ffaafe1...b662f14b0553b2a1845c...
72026-11-11 02:39:03.646469+00system_bootstrapInitial GxP Qualification Seedtags101INSERTb662f14b0553b2a1845c...912cf2ea54d4dcc98ad2...
82026-11-11 02:39:03.647078+00system_bootstrapInitial GxP Qualification Seedtags102INSERT912cf2ea54d4dcc98ad2...77fe340b63421bbf50f2...
92026-11-11 02:39:03.647231+00system_bootstrapInitial GxP Qualification Seedtags103INSERT77fe340b63421bbf50f2...fad0672e3524833e0bf9...
102026-11-11 02:39:03.647355+00system_bootstrapInitial GxP Qualification Seedtags301INSERTfad0672e3524833e0bf9...a40ae496f03cbbe7bffc...
112026-11-11 02:39:03.647474+00system_bootstrapInitial GxP Qualification Seedtags401INSERTa40ae496f03cbbe7bffc...5382bce5e511d215ddb2...
122026-11-11 02:39:03.648764+00system_bootstrapInitial GxP Qualification Seeddigital_state_sets1INSERT5382bce5e511d215ddb2...d9114f4c91b17ef1f405...
132026-11-11 02:39:03.649513+00system_bootstrapInitial GxP Qualification Seeddigital_state_sets2INSERTd9114f4c91b17ef1f405...39a9d59590243ac4d9e0...
142026-11-11 02:39:03.649609+00system_bootstrapInitial GxP Qualification Seeddigital_state_sets3INSERT39a9d59590243ac4d9e0...ef793cbe6a946f0043ac...
152026-11-11 02:39:03.65045+00system_bootstrapInitial GxP Qualification Seedevent_frame_templates1INSERTef793cbe6a946f0043ac...6105530000729692a263...

3. Live Signed ISA-88 Event Frames (event_frames)

Event IDEvent NameTemplateSeverityStart TimeSigned BySignature MeaningHMAC-SHA256 Signature Hash
a60964ee-7e64-4940-88c9-a87b38f71c09BR201_TEMP_PV_High_Limit_ExcursionTemp_ExcursionCRITICAL2026-11-11 02:37:13.855+00qa_approver_01Batch Release Approval4746152bebc9ed3f54ba772f...
4af43193-a957-410f-a632-e1c81c5f9b75BR201_TEMP_PV_Temp_Excursion_TrueFor_30sTemp_Excursion_TrueFor_30sCRITICAL2026-01-16 18:05:00+00qa_approver_01QA Final Disposition Approval — Batch Released7872170e14cbf0e58581609e...
a95b670f-5379-462c-b386-c7db6b66a447BR201_TEMP_PV_Temp_Excursion_TrueFor_30sTemp_Excursion_TrueFor_30sCRITICAL2026-01-16 18:05:00+00qa_approver_01QA Final Disposition Approval — Batch Released8b47b25a0b58e030dac22479...
251127ba-2603-49e8-9b50-7b3014d2210aBR201_TEMP_PV_Temp_Excursion_TrueFor_30sTemp_Excursion_TrueFor_30sCRITICAL2026-01-16 18:05:00+00qa_approver_01QA Final Disposition Approval — Batch Released6e96ebb9f3b68b34b314b024...
d2beb67e-fec9-49c6-8121-3562ea616403USP_Batch_2026_BR201_001Fermentation_BatchINFO2026-11-11 02:36:31.85+00UNSIGNED--...
8c4d3738-3624-4ca2-bb38-1bb42b28cb14BR201_TEMP_PV_High_Limit_ExcursionTemp_ExcursionCRITICAL2026-11-11 02:37:13.855+00UNSIGNED--...
Need Turnkey GxPHistorian Implementation, Legacy OSIsoft PI Migration, or Site IQ/OQ/PQ Validation?

Saram Consulting (saram.io) delivers end-to-end OT/IT skid connectivity (Xcellerex, Biostat, ÄKTA, Raman PAT, BACnet EMS), lossless PI Data Archive backfill, and QA-signed 21 CFR Part 11 & GAMP 5 qualification packages.

Diagram Viewer