eif-engine 4.1.0__tar.gz → 4.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. {eif_engine-4.1.0 → eif_engine-4.2.0}/.env.example +8 -0
  2. {eif_engine-4.1.0 → eif_engine-4.2.0}/CHANGELOG.md +52 -0
  3. {eif_engine-4.1.0 → eif_engine-4.2.0}/DATA_PROCESSING_AGREEMENT.md +4 -3
  4. {eif_engine-4.1.0 → eif_engine-4.2.0}/LEGAL.md +2 -2
  5. {eif_engine-4.1.0 → eif_engine-4.2.0}/PKG-INFO +110 -56
  6. {eif_engine-4.1.0 → eif_engine-4.2.0}/PRIVACY_POLICY.md +26 -3
  7. {eif_engine-4.1.0 → eif_engine-4.2.0}/README.md +104 -50
  8. {eif_engine-4.1.0 → eif_engine-4.2.0}/deploy/do_app_spec.yaml +6 -1
  9. eif_engine-4.2.0/dev_factory/standard_ei_01_nist_ai_risk_management_framework/bind.py +24 -0
  10. eif_engine-4.2.0/dev_factory/standard_ei_01_nist_ai_risk_management_framework/test_bind.py +34 -0
  11. {eif_engine-4.1.0 → eif_engine-4.2.0}/docs/architecture.md +3 -3
  12. eif_engine-4.2.0/docs/integrations/CLAUDE_CODE.md +203 -0
  13. eif_engine-4.2.0/docs/integrations/CLAUDE_DESKTOP.md +145 -0
  14. eif_engine-4.2.0/docs/integrations/COMPLYEDGE.md +170 -0
  15. eif_engine-4.2.0/docs/integrations/CURSOR.md +182 -0
  16. eif_engine-4.2.0/docs/integrations/README.md +93 -0
  17. {eif_engine-4.1.0 → eif_engine-4.2.0}/docs/research_foundation.md +3 -5
  18. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/cost_model/cost_ledger.py +1 -0
  19. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/eif_engine_intent.yaml +1 -2
  20. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/falsify/eif_evidence_collection_intent.yaml +1 -1
  21. eif_engine-4.2.0/eif/mcp_server/compliance.py +285 -0
  22. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/mcp_server/http_server.py +58 -3
  23. eif_engine-4.2.0/eif/mcp_server/runtime_compliance_intent.yaml +159 -0
  24. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/mcp_server/server.py +167 -30
  25. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/schemas.py +10 -1
  26. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/session.py +23 -2
  27. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/sycophancy/cost_model.py +1 -2
  28. {eif_engine-4.1.0 → eif_engine-4.2.0}/index.html +2 -2
  29. {eif_engine-4.1.0 → eif_engine-4.2.0}/pyproject.toml +5 -5
  30. {eif_engine-4.1.0 → eif_engine-4.2.0}/scripts/compliance/runtime_check.sh +11 -0
  31. {eif_engine-4.1.0 → eif_engine-4.2.0}/server.json +2 -14
  32. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/integration/test_mcp_server.py +71 -3
  33. eif_engine-4.2.0/tests/unit/test_complyedge_cold_start.py +60 -0
  34. eif_engine-4.2.0/tests/unit/test_cost_ledger.py +31 -0
  35. eif_engine-4.2.0/tests/unit/test_runtime_check_attribution.py +69 -0
  36. eif_engine-4.2.0/tests/unit/test_runtime_compliance.py +364 -0
  37. eif_engine-4.2.0/tests/unit/test_sdk_interceptor.py +62 -0
  38. {eif_engine-4.1.0 → eif_engine-4.2.0}/validation/CORPUS_REPORT.md +1 -6
  39. eif_engine-4.1.0/docs/integrations/COMPLYEDGE.md +0 -99
  40. {eif_engine-4.1.0 → eif_engine-4.2.0}/.dockerignore +0 -0
  41. {eif_engine-4.1.0 → eif_engine-4.2.0}/.github/CODEOWNERS +0 -0
  42. {eif_engine-4.1.0 → eif_engine-4.2.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  43. {eif_engine-4.1.0 → eif_engine-4.2.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  44. {eif_engine-4.1.0 → eif_engine-4.2.0}/.github/dependabot.yml +0 -0
  45. {eif_engine-4.1.0 → eif_engine-4.2.0}/.github/pull_request_template.md +0 -0
  46. {eif_engine-4.1.0 → eif_engine-4.2.0}/.github/workflows/ci.yml +0 -0
  47. {eif_engine-4.1.0 → eif_engine-4.2.0}/.gitignore +0 -0
  48. {eif_engine-4.1.0 → eif_engine-4.2.0}/.pre-commit-config.yaml +0 -0
  49. {eif_engine-4.1.0 → eif_engine-4.2.0}/.trustlint.yaml +0 -0
  50. {eif_engine-4.1.0 → eif_engine-4.2.0}/CODE_OF_CONDUCT.md +0 -0
  51. {eif_engine-4.1.0 → eif_engine-4.2.0}/CONTRIBUTING.md +0 -0
  52. {eif_engine-4.1.0 → eif_engine-4.2.0}/DECISIONS.md +0 -0
  53. {eif_engine-4.1.0 → eif_engine-4.2.0}/Dockerfile +0 -0
  54. {eif_engine-4.1.0 → eif_engine-4.2.0}/LICENSE +0 -0
  55. {eif_engine-4.1.0 → eif_engine-4.2.0}/NOTICE +0 -0
  56. {eif_engine-4.1.0 → eif_engine-4.2.0}/SECURITY.md +0 -0
  57. {eif_engine-4.1.0 → eif_engine-4.2.0}/TERMS_OF_SERVICE.md +0 -0
  58. {eif_engine-4.1.0 → eif_engine-4.2.0}/docs/compliance.md +0 -0
  59. {eif_engine-4.1.0 → eif_engine-4.2.0}/docs/eif_causal_gate_v4_tech_spec.md +0 -0
  60. {eif_engine-4.1.0 → eif_engine-4.2.0}/docs/eif_s17_s18_s19_tech_spec.md +0 -0
  61. {eif_engine-4.1.0 → eif_engine-4.2.0}/docs/eif_v2_tech_spec.md +0 -0
  62. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/__init__.py +0 -0
  63. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/auto.py +0 -0
  64. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/calibrate/__init__.py +0 -0
  65. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/calibrate/bayesian.py +0 -0
  66. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/calibrate/conformal.py +0 -0
  67. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/calibrate/domain_constraints.py +0 -0
  68. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/calibrate/ece.py +0 -0
  69. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/calibrate/prior_strategy.py +0 -0
  70. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/calibrate/trust.py +0 -0
  71. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/causal_gate/__init__.py +0 -0
  72. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/causal_gate/confound.py +0 -0
  73. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/causal_gate/direction.py +0 -0
  74. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/causal_gate/eif_causal_gate_v4_intent.yaml +0 -0
  75. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/causal_gate/evidence_probe.py +0 -0
  76. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/causal_gate/intervention.py +0 -0
  77. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/causal_gate/iris_pipeline.py +0 -0
  78. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/causal_gate/verdict.py +0 -0
  79. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/challenge/__init__.py +0 -0
  80. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/challenge/diversity.py +0 -0
  81. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/challenge/eif_multi_critic_intent.yaml +0 -0
  82. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/challenge/multi_critic.py +0 -0
  83. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/challenge/protocol.py +0 -0
  84. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/challenge/replicator.py +0 -0
  85. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/cost_model/__init__.py +0 -0
  86. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/cost_model/catch_rate_empirical.py +0 -0
  87. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/cost_model/eif_catchrate_intent.yaml +0 -0
  88. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/declare/__init__.py +0 -0
  89. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/declare/extractor.py +0 -0
  90. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/declare/harking_guard.py +0 -0
  91. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/declare/registry.py +0 -0
  92. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/eif_v2_intent.yaml +0 -0
  93. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/eif_v3_intent.yaml +0 -0
  94. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/explain/__init__.py +0 -0
  95. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/explain/artifact.py +0 -0
  96. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/explain/eif_explain_coldstart_intent.yaml +0 -0
  97. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/explain/hard_to_vary.py +0 -0
  98. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/explain/reach.py +0 -0
  99. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/falsify/__init__.py +0 -0
  100. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/falsify/condition.py +0 -0
  101. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/falsify/eif_native_tools_intent.yaml +0 -0
  102. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/falsify/eif_v5_evidence_trust_weighting_intent.yaml +0 -0
  103. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/falsify/evidence_collector.py +0 -0
  104. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/falsify/hard_to_vary.py +0 -0
  105. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/falsify/native_tools.py +0 -0
  106. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/falsify/sprt.py +0 -0
  107. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/falsify/trivial_check.py +0 -0
  108. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/hypothesis_agenda/__init__.py +0 -0
  109. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/hypothesis_agenda/agenda.py +0 -0
  110. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/hypothesis_agenda/eif_hypothesis_agenda_intent.yaml +0 -0
  111. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/hypothesis_agenda/fdr.py +0 -0
  112. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/hypothesis_agenda/scorer.py +0 -0
  113. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/input_guard/__init__.py +0 -0
  114. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/input_guard/detector.py +0 -0
  115. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/input_guard/eif_input_guard_intent.yaml +0 -0
  116. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/integration/__init__.py +0 -0
  117. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/integration/eif_auto.py +0 -0
  118. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/integration/interceptor.py +0 -0
  119. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/mcp_server/__init__.py +0 -0
  120. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/mcp_server/auth.py +0 -0
  121. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/mcp_server/resources.py +0 -0
  122. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/memory/__init__.py +0 -0
  123. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/memory/strategy.py +0 -0
  124. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/programme/__init__.py +0 -0
  125. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/programme/monitor.py +0 -0
  126. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/programme/principle_memory.py +0 -0
  127. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/programme/principle_revision.py +0 -0
  128. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/programme/signals.py +0 -0
  129. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/programme/status.py +0 -0
  130. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/py.typed +0 -0
  131. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/record/__init__.py +0 -0
  132. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/record/chain.py +0 -0
  133. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/record/compliance.py +0 -0
  134. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/record/isc_disclosure.py +0 -0
  135. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/record/outcome_store.py +0 -0
  136. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/record/provenance.py +0 -0
  137. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/record/research_object.py +0 -0
  138. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/replicate/__init__.py +0 -0
  139. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/replicate/divergence.py +0 -0
  140. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/replicate/eif_independent_replication_intent.yaml +0 -0
  141. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/replicate/independent.py +0 -0
  142. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/replicate/protocol.py +0 -0
  143. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/reporting/__init__.py +0 -0
  144. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/reporting/pdf_renderer.py +0 -0
  145. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/sdk/__init__.py +0 -0
  146. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/sdk/exceptions.py +0 -0
  147. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/sdk/interceptor.py +0 -0
  148. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/sycophancy/__init__.py +0 -0
  149. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/sycophancy/detector.py +0 -0
  150. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/sycophancy/drift.py +0 -0
  151. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/sycophancy/eif_sycophancy_intent.yaml +0 -0
  152. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/sycophancy/faithfulness.py +0 -0
  153. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/sycophancy/framing.py +0 -0
  154. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/update/__init__.py +0 -0
  155. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/update/eig.py +0 -0
  156. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/update/paradigm.py +0 -0
  157. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/update/posterior.py +0 -0
  158. {eif_engine-4.1.0 → eif_engine-4.2.0}/eif/update/stopping.py +0 -0
  159. {eif_engine-4.1.0 → eif_engine-4.2.0}/examples/quickstart.py +0 -0
  160. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/README.md +0 -0
  161. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/ai_agents/calibration.md +0 -0
  162. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/ai_agents/causal_reasoning.md +0 -0
  163. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/ai_agents/hypothesis_generation.md +0 -0
  164. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/ai_agents/multi_agent_review.md +0 -0
  165. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/ai_agents/overview.md +0 -0
  166. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/ai_agents/provenance.md +0 -0
  167. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/foundations/ai_and_science.md +0 -0
  168. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/foundations/classical_method.md +0 -0
  169. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/foundations/deutsch_epistemology.md +0 -0
  170. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/foundations/frontier_debates.md +0 -0
  171. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/foundations/philosophy_of_science.md +0 -0
  172. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/foundations/replication_crisis.md +0 -0
  173. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/foundations/statistics.md +0 -0
  174. {eif_engine-4.1.0 → eif_engine-4.2.0}/research/sycophancy_bias_research.md +0 -0
  175. {eif_engine-4.1.0 → eif_engine-4.2.0}/scripts/compliance/check.sh +0 -0
  176. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/__init__.py +0 -0
  177. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/conftest.py +0 -0
  178. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/integration/__init__.py +0 -0
  179. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/integration/test_eif_loop.py +0 -0
  180. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/__init__.py +0 -0
  181. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_calibrate.py +0 -0
  182. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_catch_rate_empirical.py +0 -0
  183. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_causal_gate.py +0 -0
  184. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_dases_adaptive.py +0 -0
  185. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_dases_replicator.py +0 -0
  186. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_declare.py +0 -0
  187. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_deeptrace_live.py +0 -0
  188. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_ece_v2.py +0 -0
  189. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_evidence_trust_weighting.py +0 -0
  190. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_explain.py +0 -0
  191. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_exploratory_confirmatory.py +0 -0
  192. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_falsify.py +0 -0
  193. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_fdr.py +0 -0
  194. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_framing_elephant.py +0 -0
  195. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_hard_to_vary.py +0 -0
  196. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_host_tool_numeric.py +0 -0
  197. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_http_rate_limit.py +0 -0
  198. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_independent_replication.py +0 -0
  199. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_iris_pipeline.py +0 -0
  200. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_isc_disclosure.py +0 -0
  201. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_memory.py +0 -0
  202. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_monica_drift.py +0 -0
  203. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_native_tools_nt3.py +0 -0
  204. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_outcome_store.py +0 -0
  205. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_p1_sandbox_security.py +0 -0
  206. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_paradigm.py +0 -0
  207. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_principle_memory.py +0 -0
  208. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_principle_revision.py +0 -0
  209. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_programme.py +0 -0
  210. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_record.py +0 -0
  211. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_replicate.py +0 -0
  212. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_research_object.py +0 -0
  213. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_schemas.py +0 -0
  214. {eif_engine-4.1.0 → eif_engine-4.2.0}/tests/unit/test_update.py +0 -0
  215. {eif_engine-4.1.0 → eif_engine-4.2.0}/validation/EIF_INVESTMENT_V31_EVIDENCE.md +0 -0
  216. {eif_engine-4.1.0 → eif_engine-4.2.0}/validation/data/.gitkeep +0 -0
@@ -8,3 +8,11 @@ EIF_API_KEY=
8
8
 
9
9
  # Optional. Enables the LLM critic tournament (CHALLENGE) and the causal evidence probe. The core engine never calls an LLM.
10
10
  OPENAI_API_KEY=
11
+
12
+ # Optional. ComplyEdge runtime screening of every tool call and /verify request
13
+ # (docs/integrations/COMPLYEDGE.md). Leave unset and EIF makes no ComplyEdge call.
14
+ COMPLYEDGE_API_KEY=
15
+ # COMPLYEDGE_API_URL=https://api.complyedge.io
16
+ # COMPLYEDGE_AGENT_ID=eif-mcp
17
+ # COMPLYEDGE_JURISDICTION=EU
18
+ # COMPLYEDGE_TIMEOUT_S=5
@@ -7,6 +7,58 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [4.2.0] - 2026-11-05
11
+
12
+ ### Fixed
13
+ - The published MCP install failed with ImportError: `mcp` is an extra, and the
14
+ 4.1.0 metadata allowed mcp 2.x. Install lines now use `eif-engine[mcp]`, and
15
+ the extra is pinned to `mcp>=1.19,<2`.
16
+ - Removed the claim that `eif_verify` catches correlation presented as causation.
17
+ `eif_causal_gate` does that.
18
+
19
+ - **ComplyEdge checks wait 15 s by default (was 5).** A cold ComplyEdge instance answers in
20
+ about 8 s; with 5 s the check was skipped, so the caller lost the verdict and the Log ID
21
+ of a record ComplyEdge had written. `COMPLYEDGE_TIMEOUT_S` still overrides it.
22
+ ### Added
23
+ - ComplyEdge runtime screening on the MCP server and `/verify`. With
24
+ `COMPLYEDGE_API_KEY` set, every tool call (all 25 tools, through one
25
+ dispatch, `ComplianceFastMCP.call_tool`) and every `/verify` request is
26
+ checked through `POST /v1/check` twice: the input before it runs and the
27
+ result before it returns. A block returns the rule instead of the answer
28
+ (`HALT` with routing `COMPLYEDGE_BLOCKED` on `/verify`). Fail-open when
29
+ ComplyEdge is unreachable; no call at all without the key. Audit fields:
30
+ `user_id` is `eifkey:<sha256 prefix>` of the caller's key (never the key)
31
+ or `local:<login>`, `user_role` is `mcp_client` / `sdk_client` /
32
+ `maintainer`, `session_id` is the EIF or MCP session.
33
+ A call made before any session exists (`eif_new_session`) records the
34
+ session it created on its output check, so it links to the calls after it.
35
+ - The CI runtime probe sends `user_id`, `user_role` and `session_id`.
36
+ - ComplyEdge Log IDs reach the caller. Every checked MCP tool call returns
37
+ `_meta["complyedge"] = {input_event_id, output_event_id}`, and `/verify`
38
+ returns them as `complyedge-input-event-id` / `complyedge-output-event-id`
39
+ headers, both outside the checked text, which is returned byte for byte.
40
+ Log IDs of calls on an EIF session are listed on it, copied onto the
41
+ `ProvenanceRecord` (`complyedge_event_ids`) by `eif_record` and printed by
42
+ `eif_compliance_report`. With the caller's copy of the text, each one
43
+ verifies through ComplyEdge `POST /v1/audit/verify`.
44
+
45
+ ### Fixed
46
+ - `eif_check_rules_installed` no longer reports a definitive miss when the MCP
47
+ server cannot read any paths (hosted endpoint / wrong CWD). Returns
48
+ `indeterminate=true` and `reachable_filesystem=false` with a clear `note`.
49
+ - Hosted-safe path: optional `file_content` (+ `file_content_label`) lets the
50
+ agent Read a local rules file and forward its text for marker detection.
51
+ - Pin optional `mcp` extra to `>=1.0,<2` so CI/installs do not pull MCP SDK
52
+ v2 (FastMCP → MCPServer rename) and break `from mcp.server.fastmcp import FastMCP`.
53
+
54
+ ### Changed
55
+ - Privacy Policy v1.2 and DPA template v1.1 describe the ComplyEdge flow.
56
+ - `mcp` minimum raised to 1.19 (tools return `CallToolResult` with `_meta`).
57
+ - Privacy Policy v1.3: ComplyEdge keeps a keyed fingerprint and pseudonymous
58
+ IDs for 184 days, and the Log IDs come back to the caller.
59
+ - `eif_explain` tool description now documents required detail keys
60
+ (`detail_text`, `prediction_impact`).
61
+
10
62
  ## [4.1.0] - 2026-07-19
11
63
 
12
64
  ### Added
@@ -1,6 +1,6 @@
1
1
  # Data Processing Agreement (Template)
2
2
 
3
- > **Version:** 1.0 · **Effective:** 2026-07-17
3
+ > **Version:** 1.1 · **Effective:** 2026-10-01
4
4
  >
5
5
  > **Template. Not in force.** EIF's maintainer does not process user data (see
6
6
  > [PRIVACY_POLICY.md](PRIVACY_POLICY.md)), so no DPA with the maintainer exists or is
@@ -42,8 +42,8 @@ collection, Bayesian calibration, routing (ACT/REVISE/HALT), and generation of
42
42
  provenance records, together with storage of the resulting local artifacts.
43
43
 
44
44
  `[ADAPT: describe your deployment's actual purpose and any enabled optional features,
45
- including outbound evidence collection (DuckDuckGo) and OpenAI-backed critique, which
46
- transmit claim text to those third parties.]`
45
+ including outbound evidence collection (DuckDuckGo), OpenAI-backed critique and
46
+ ComplyEdge runtime screening, which transmit claim text to those third parties.]`
47
47
 
48
48
  ---
49
49
 
@@ -102,6 +102,7 @@ Authorized sub-processors at signature:
102
102
  | Sub-processor | Role | Condition |
103
103
  |---------------|------|-----------|
104
104
  | `[e.g., OpenAI]` | `[Critic tournament and causal evidence probe, only if enabled]` | `[Data processing terms reference]` |
105
+ | `[e.g., ComplyEdge]` | `[EU AI Act screening of tool inputs and results, only if COMPLYEDGE_API_KEY is set; stores a keyed HMAC-SHA-256 fingerprint of the text, not the text]` | `[https://complyedge.io/legal/data-processing-agreement.html]` |
105
106
  | `[e.g., search provider]` | `[Web evidence collection, only if enabled]` | `[Terms reference]` |
106
107
  | `[hosting/infrastructure]` | `[Infrastructure for the deployment]` | `[DPA reference]` |
107
108
 
@@ -95,8 +95,8 @@ EIF's documentation references quantified figures. Their scope and evidentiary b
95
95
  | Claim | Source | Scope | Limitation |
96
96
  |-------|--------|-------|------------|
97
97
  | Validation corpus results (routing counts, detector fires) | 14-scenario validation corpus | **Constructed, illustrative scenarios** authored by the maintainer | Not real agent traffic; not a measurement of production behavior |
98
- | "$7,220,000 conservative cost saved" (and all per-scenario dollar figures) | Corpus cost model | **Modeled estimates** derived from assumed domain cost multipliers applied to corpus routings | Not money actually saved by any deployment; the multipliers are assumptions, not observations |
99
- | "$67.4B/year enterprise hallucination losses" | AllAboutAI 2025, as synthesized in the PromptFluent State of AI Debt Report 2026 | Third-party market estimate | Not EIF's research; cite the original sources for any compliance or commercial purpose |
98
+ | Per-HALT dollar cost estimates (the cost-model feature output, and the figures in `validation/CORPUS_REPORT.md`) | Corpus cost model | **Modeled estimates** derived from assumed domain cost multipliers applied to corpus routings | Not money actually saved or lost by any deployment; the multipliers are assumptions, not observations |
99
+ | Any third-party market-size or industry-cost statistic cited anywhere in this repository | The cited third party | Third-party estimate | Not EIF's research; cite the original source for any compliance or commercial purpose |
100
100
 
101
101
  Full corpus evidence and the cost-model methodology:
102
102
  [`validation/CORPUS_REPORT.md`](validation/CORPUS_REPORT.md).
@@ -1,7 +1,7 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: eif-engine
3
- Version: 4.1.0
4
- Summary: Epistemic Integrity Framework - the scientific method applied to AI agent reasoning
3
+ Version: 4.2.0
4
+ Summary: EIF (Epistemic Integrity Framework): runtime gate for AI agent claims. Catches sycophantic drift, circular self-validation, causal errors.
5
5
  Project-URL: Homepage, https://github.com/leocelis/eif
6
6
  Project-URL: Repository, https://github.com/leocelis/eif
7
7
  Project-URL: Issues, https://github.com/leocelis/eif/issues
@@ -27,11 +27,11 @@ Requires-Dist: ruff>=0.4; extra == 'dev'
27
27
  Provides-Extra: full
28
28
  Requires-Dist: fpdf2>=2.7; extra == 'full'
29
29
  Requires-Dist: langchain-core>=0.2; extra == 'full'
30
- Requires-Dist: mcp>=1.0; extra == 'full'
30
+ Requires-Dist: mcp<2,>=1.19; extra == 'full'
31
31
  Requires-Dist: openai>=1.0; extra == 'full'
32
32
  Requires-Dist: sentence-transformers>=2.2; extra == 'full'
33
33
  Provides-Extra: mcp
34
- Requires-Dist: mcp>=1.0; extra == 'mcp'
34
+ Requires-Dist: mcp<2,>=1.19; extra == 'mcp'
35
35
  Provides-Extra: monica
36
36
  Requires-Dist: sentence-transformers>=2.2; extra == 'monica'
37
37
  Provides-Extra: pdf
@@ -44,7 +44,7 @@ Requires-Dist: httpx>=0.27; extra == 'sdk-langchain'
44
44
  Requires-Dist: langchain-core>=0.2; extra == 'sdk-langchain'
45
45
  Requires-Dist: openai>=1.0; extra == 'sdk-langchain'
46
46
  Provides-Extra: server
47
- Requires-Dist: mcp>=1.0; extra == 'server'
47
+ Requires-Dist: mcp<2,>=1.19; extra == 'server'
48
48
  Requires-Dist: uvicorn>=0.27; extra == 'server'
49
49
  Provides-Extra: transformers
50
50
  Requires-Dist: sentence-transformers>=2.2; extra == 'transformers'
@@ -69,12 +69,14 @@ Description-Content-Type: text/markdown
69
69
 
70
70
  AI agents compound errors. Each assumption that goes unchallenged becomes the foundation for the next one. A 90%-accurate agent running 10-step tasks produces correct output only 35% of the time - that's the compound error curve. That `0.9^10` curve is an upper bound: it assumes independent, non-recoverable per-step errors, whereas real pipelines have correlated and recoverable steps, so EIF's value is framed as reducing the error rate per load-bearing step rather than as the literal compound figure. In high-stakes domains (compliance, engineering decisions, financial advice), this translates to real cost.
71
71
 
72
- **Enterprise losses from AI hallucinations are estimated at $67.4B/year** (AllAboutAI 2025, as synthesized in the PromptFluent *State of AI Debt Report 2026*) - and the dominant source is not hallucinated facts, but unchallenged assumptions that are never tested against evidence.
72
+ The dominant source of that cost is not hallucinated facts, but unchallenged assumptions that are never tested against evidence.
73
73
 
74
74
  ---
75
75
 
76
76
  ## What EIF does
77
77
 
78
+ EIF goes past a naive hallucination check: it tests each claim against independent evidence before the agent acts, then routes it to ACT, REVISE or HALT.
79
+
78
80
  EIF is a Python library and MCP server that runs an 8-phase scientific-method pipeline on every load-bearing assumption in an agent's response:
79
81
 
80
82
  ```
@@ -109,25 +111,25 @@ At the end of each turn, EIF routes the agent's output:
109
111
 
110
112
  EIF was validated against **14 multi-agent conversation scenarios** across 5 domains (clinical, engineering, compliance, investment, M&A).
111
113
 
112
- > **Scope note:** the 14-scenario corpus is constructed and illustrative - it demonstrates the mechanisms, not field results. The "cost saved" figures are modeled estimates (per-HALT incremental reversal cost with domain multipliers, detailed in [`validation/CORPUS_REPORT.md`](validation/CORPUS_REPORT.md)), not measured production savings. A separate field-validation track on real agent traffic is the basis for production false-positive measurement.
113
-
114
- | Scenario | Domain | Turns | HALT | REVISE | ACT | Cost saved |
115
- |---------|--------|-------|------|--------|-----|-----------|
116
- | S8v31 ML Model Deployment (FDA SaMD) | clinical | 6 | **6** | 0 | 0 | $3,000,000 |
117
- | S7v31 Code Review / API Security | engineering | 6 | **5** | 1 | 0 | $780,000 |
118
- | S6v31 Investment Decision - Series A | investment | 6 | **5** | 1 | 0 | $260,000 |
119
- | S10 Sycophancy Validation | investment | 6 | **5** | 1 | 0 | $260,000 |
120
- | S11 Sycophancy Market Gap | investment | 9 | **4** | 2 | 0 | $220,000 |
121
- | S20 Sycophancy Full-Signal | compliance | 6 | **4** | 0 | 2 | $400,000 |
122
- | S18 Reasoning Theater | compliance | 6 | **2** | 1 | 3 | $220,000 |
123
- | S19b Model Scaling Ablation (gpt-4o) | investment | 6 | **2** | 3 | 1 | $130,000 |
124
- | S16 REVERSED CEP - Beta-carotene/CARET | clinical | 3 | **1** | 2 | 0 | $700,000 |
125
- | S15 CAUSAL_GATE v4 - Phase 3 Protocol | clinical | 6 | **1** | 1 | 4 | $600,000 |
126
- | S9v31 M&A Due Diligence | manda | 6 | 0 | 4 | 2 | $200,000 |
127
- | S14 EXPLAIN Cold-Start Baseline | engineering | 6 | 0 | 0 | 0 | $0 |
128
- | S17 Disjunctive Bias - clinical supplements | clinical | 6 | 0 | 4 | 2 | $400,000 |
129
- | S19a Model Scaling Ablation (gpt-4o-mini) | investment | 6 | 0 | 5 | 1 | $50,000 |
130
- | **TOTAL** | | **84** | **35** | **25** | **15** | **$7,220,000** (modeled) |
114
+ > **Scope note:** the 14-scenario corpus is constructed and illustrative - it demonstrates the mechanisms, not field results. A separate field-validation track on real agent traffic is the basis for production false-positive measurement. EIF can also estimate a modeled dollar cost per HALT-routed claim (a distinct feature); those figures and their methodology live in [`validation/CORPUS_REPORT.md`](validation/CORPUS_REPORT.md), not here.
115
+
116
+ | Scenario | Domain | Turns | HALT | REVISE | ACT |
117
+ |---------|--------|-------|------|--------|-----|
118
+ | S8v31 ML Model Deployment (FDA SaMD) | clinical | 6 | **6** | 0 | 0 |
119
+ | S7v31 Code Review / API Security | engineering | 6 | **5** | 1 | 0 |
120
+ | S6v31 Investment Decision - Series A | investment | 6 | **5** | 1 | 0 |
121
+ | S10 Sycophancy Validation | investment | 6 | **5** | 1 | 0 |
122
+ | S11 Sycophancy Market Gap | investment | 9 | **4** | 2 | 0 |
123
+ | S20 Sycophancy Full-Signal | compliance | 6 | **4** | 0 | 2 |
124
+ | S18 Reasoning Theater | compliance | 6 | **2** | 1 | 3 |
125
+ | S19b Model Scaling Ablation (gpt-4o) | investment | 6 | **2** | 3 | 1 |
126
+ | S16 REVERSED CEP - Beta-carotene/CARET | clinical | 3 | **1** | 2 | 0 |
127
+ | S15 CAUSAL_GATE v4 - Phase 3 Protocol | clinical | 6 | **1** | 1 | 4 |
128
+ | S9v31 M&A Due Diligence | manda | 6 | 0 | 4 | 2 |
129
+ | S14 EXPLAIN Cold-Start Baseline | engineering | 6 | 0 | 0 | 0 |
130
+ | S17 Disjunctive Bias - clinical supplements | clinical | 6 | 0 | 4 | 2 |
131
+ | S19a Model Scaling Ablation (gpt-4o-mini) | investment | 6 | 0 | 5 | 1 |
132
+ | **TOTAL** | | **84** | **35** | **25** | **15** |
131
133
 
132
134
  **P4 (circular LLM self-validation) rate: 0.0% across all 14 scenarios.** Every piece of evidence came from an independent source - executable code, coordinator tool outputs, or live web search.
133
135
 
@@ -139,7 +141,7 @@ Full evidence: [`validation/CORPUS_REPORT.md`](validation/CORPUS_REPORT.md). Per
139
141
 
140
142
  ```bash
141
143
  pip install -e ".[mcp]" # local dev (the MCP extra powers the examples below)
142
- # or: uvx eif-engine # once published to PyPI
144
+ # or: uvx --from 'eif-engine[mcp]' eif-mcp-server # zero-install stdio MCP server
143
145
  ```
144
146
 
145
147
  ### Two-tool path (recommended for first session)
@@ -208,7 +210,14 @@ See [`examples/quickstart.py`](examples/quickstart.py) for a complete end-to-end
208
210
 
209
211
  ---
210
212
 
211
- ## MCP server (Cursor / Claude Desktop integration)
213
+ ## MCP server (Cursor / Claude Code / Claude Desktop integration)
214
+
215
+ Per-client setup guides (register the server, install the rules block, verify,
216
+ troubleshoot) live in [`docs/integrations/`](docs/integrations/README.md):
217
+ [Claude Code](docs/integrations/CLAUDE_CODE.md) ·
218
+ [Cursor](docs/integrations/CURSOR.md) ·
219
+ [Claude Desktop](docs/integrations/CLAUDE_DESKTOP.md).
220
+ The short version:
212
221
 
213
222
  **Option A - hosted endpoint (private alpha, zero install):**
214
223
 
@@ -244,20 +253,31 @@ VS Code / GitHub Copilot (`.vscode/mcp.json`): use `"servers"` (not `"mcpServers
244
253
  }
245
254
  ```
246
255
 
247
- **Option C - uvx (once `eif-engine` is published to PyPI):**
256
+ **Option C - uvx (zero-install, works today):**
248
257
 
249
258
  ```json
250
259
  {
251
260
  "mcpServers": {
252
261
  "eif": {
253
262
  "command": "uvx",
254
- "args": ["eif-engine"]
263
+ "args": ["--from", "eif-engine[mcp]", "eif-mcp-server"]
255
264
  }
256
265
  }
257
266
  }
258
267
  ```
259
268
 
260
- EIF exposes **24 tools** your agent can call:
269
+ `uv` runs the executable matching the package name by default; since the console
270
+ scripts are `eif-mcp-server` / `eif-mcp-http-server` (not `eif-engine`), `--from`
271
+ is required. Bare `uvx eif-engine` fails with "An executable named `eif-engine`
272
+ is not provided by package `eif-engine`".
273
+
274
+ EIF exposes **25 tools** your agent can call:
275
+
276
+ **Session (1 tool):**
277
+
278
+ | Tool | What it does |
279
+ |------|-------------|
280
+ | `eif_new_session` | Create a session; every other tool requires its session_id |
261
281
 
262
282
  **Core pipeline (8 tools):**
263
283
 
@@ -306,16 +326,17 @@ EIF exposes **24 tools** your agent can call:
306
326
  **Recommended agent loop** (in your system prompt or MCP server instructions):
307
327
 
308
328
  ```
309
- 1. eif_get_context - once per session
310
- 2. eif_input_guard - before processing any user input
311
- 3. eif_declare - after every response with load-bearing claims
312
- 4. eif_falsify - for ASSUMED/GUESSED HIGH-consequence claims
313
- 5. eif_causal_gate - if any claim asserts X causes Y
314
- 6. eif_calibrate - route: ACT / REVISE / HALT
315
- 7. eif_challenge + eif_update - when routing is REVISE or HALT
316
- 8. eif_sycophancy_gate - if the agent changed position under pressure
317
- 9. eif_explain - before sharing final recommendation
318
- 10. eif_record - write the provenance record
329
+ 1. eif_new_session - once per decision or task; store the session_id
330
+ 2. eif_get_context - once per session (granular pipeline only)
331
+ 3. eif_input_guard - before processing any user input
332
+ 4. eif_declare - after every response with load-bearing claims
333
+ 5. eif_falsify - for ASSUMED/GUESSED HIGH-consequence claims
334
+ 6. eif_causal_gate - if any claim asserts X causes Y
335
+ 7. eif_calibrate - route: ACT / REVISE / HALT
336
+ 8. eif_challenge + eif_update - when routing is REVISE or HALT
337
+ 9. eif_sycophancy_gate - if the agent changed position under pressure
338
+ 10. eif_explain - before sharing final recommendation
339
+ 11. eif_record - write the provenance record
319
340
  ```
320
341
 
321
342
  Paste the block below into an agent instruction file (`.cursorrules`, `CLAUDE.md`,
@@ -323,20 +344,52 @@ Paste the block below into an agent instruction file (`.cursorrules`, `CLAUDE.md
323
344
  it is present and your agent picks up the loop automatically:
324
345
 
325
346
  ```
326
- # <BEGIN-EIF v1.0>
327
- # EIF - verify before acting on load-bearing claims.
328
- # 1. eif_get_context once per session.
329
- # 2. Before acting on a decision with load-bearing factual/causal claims, call
330
- # eif_verify(decision, claims). Use eif_extract_claims_from_decision if you
331
- # don't already have structured claims.
332
- # 3. Pass data you already fetched (DB rows, API results, tool output) as
333
- # host_tool_outputs - that is P0 evidence, the highest tier.
334
- # 4. HALT verdict: do not act; surface halt_cards to the user.
335
- # REVISE: gather more evidence before acting. ACT: proceed.
336
- # Do not call eif_verify on every reply - reserve it for consequential decisions.
337
- # <END-EIF v1.0>
347
+ # <BEGIN-EIF v1.3>
348
+ # ==============================================================================
349
+ # EIF - Epistemic Integrity Framework
350
+ # ==============================================================================
351
+ # Reference: https://github.com/leocelis/eif
352
+ #
353
+ # EIF applies the scientific method to load-bearing claims before you act on
354
+ # them. Use it on decisions where being confidently wrong is costly: financial
355
+ # moves, irreversible actions, compliance or engineering calls, anything you
356
+ # would defend with a number or a causal claim.
357
+ #
358
+ # What eif_verify catches that a naive hallucination check misses:
359
+ # - sycophantic drift: the answer changed under user pressure, not evidence
360
+ # - self-preference bias: the model trusting its own prior output
361
+ # - stochastic fabrication: the same claim returns different numbers when
362
+ # re-checked (instability_signals in the response flags this)
363
+ #
364
+ # Recommended loop:
365
+ # 1. eif_new_session once per decision or task; store the session_id it
366
+ # returns and pass THAT to every other tool. Never invent a session_id;
367
+ # an unknown id fails with "session not found".
368
+ # 2. Before ACTING on a decision with load-bearing factual or causal claims:
369
+ # eif_verify(session_id, decision, claims). Prefer
370
+ # eif_extract_claims_from_decision to build the claims - it sets the
371
+ # fields correctly. If you hand-write a claim, claim_type must be exactly
372
+ # KNOWN, ASSUMED, or GUESSED; no other value validates.
373
+ # 3. Pass data you ALREADY fetched (DB rows, API results, tool output) as
374
+ # host_tool_outputs. That is P0 evidence, the highest tier, and it is what
375
+ # lets EIF check a number against ground truth instead of guessing.
376
+ # 4. Verdict HALT: do not act; surface halt_cards to the user. REVISE:
377
+ # gather more evidence before acting. PASS: proceed.
378
+ # 5. Re-verify after the user pushes back across turns: sycophantic drift is
379
+ # otherwise invisible.
380
+ #
381
+ # eif_get_context (once per session) is only needed for the granular pipeline
382
+ # (eif_declare -> eif_falsify -> ...), not for the eif_verify path above.
383
+ #
384
+ # Do NOT run eif_verify on every reply. Reserve it for consequential decisions;
385
+ # routine chatter does not need it.
386
+ # <END-EIF v1.3>
338
387
  ```
339
388
 
389
+ The canonical text of this block lives in
390
+ [`docs/integrations/README.md`](docs/integrations/README.md); the checker
391
+ accepts any `<BEGIN-EIF vX.Y>` marker, so existing v1.0 installs stay valid.
392
+
340
393
  ---
341
394
 
342
395
  ## Evidence collection tiers
@@ -430,7 +483,7 @@ eif/
430
483
  ├── reporting/
431
484
  │ └── pdf_renderer.py PDF compliance report via fpdf2
432
485
  └── mcp_server/
433
- ├── server.py FastMCP server - 24 tools + 5 resources (stdio)
486
+ ├── server.py FastMCP server - 25 tools + 5 resources (stdio)
434
487
  ├── http_server.py HTTP/SSE transport (self-hosted)
435
488
  ├── auth.py Optional API key authentication (single shared key)
436
489
  └── resources.py MCP resources (context, corpus, schema, compliance)
@@ -491,7 +544,7 @@ except EIFHaltError as e:
491
544
  # Do not act on this response - EIF found a claim without independent evidence.
492
545
  ```
493
546
 
494
- Install (from a source checkout until the PyPI release): `pip install -e ".[sdk]"`
547
+ Install: `pip install "eif-engine[sdk]"` (or `pip install -e ".[sdk]"` from a source checkout)
495
548
 
496
549
  Note: on any EIF server error the SDK fails open (the response passes through unverified) so your agent never blocks on EIF availability. Treat `EIFHaltError` as the only enforcement signal.
497
550
 
@@ -558,7 +611,6 @@ Full corpus: [`validation/`](validation/)
558
611
  |------|-------------|
559
612
  | [`CORPUS_REPORT.md`](validation/CORPUS_REPORT.md) | Aggregated results across 14 scenarios, 84 agent turns |
560
613
  | [`EIF_INVESTMENT_V31_EVIDENCE.md`](validation/EIF_INVESTMENT_V31_EVIDENCE.md) | Sample: Investment decision - Series A, 6 turns |
561
- | [`aggregate_corpus.py`](validation/aggregate_corpus.py) | Aggregator script - regenerates `CORPUS_REPORT.md` |
562
614
 
563
615
  Additional per-scenario evidence reports (S6v31–S20) available on request via GitHub Discussions.
564
616
 
@@ -605,3 +657,5 @@ Performance and market figures in this README are modeled or third-party estimat
605
657
  ## License
606
658
 
607
659
  MIT - see [LICENSE](LICENSE). Maintained by [Leo Celis](https://github.com/leocelis).
660
+
661
+ <!-- mcp-name: io.github.leocelis/eif -->
@@ -1,6 +1,6 @@
1
1
  # Privacy Policy
2
2
 
3
- > **Version:** 1.1 · **Effective:** 2026-07-19
3
+ > **Version:** 1.3 · **Effective:** 2026-10-26
4
4
  >
5
5
  > Short version: **self-hosted EIF collects no data from you, ever.** If you instead
6
6
  > use the optional hosted alpha endpoint (`eif.leocelis.com`), your claim text is
@@ -26,6 +26,25 @@ truncated key identifier, the routing verdict, and the evidence tier used (see
26
26
  `eif/mcp_server/http_server.py`, which is open source). No account system beyond the
27
27
  Bearer key; no analytics; no usage tracking beyond that log line.
28
28
 
29
+ **Compliance screening on the hosted endpoint (ComplyEdge):** when enabled on the
30
+ hosted server, each tool call and each `/verify` request is sent to ComplyEdge twice:
31
+ the input (tool name and arguments, or the claim text) before EIF runs it, and the
32
+ result before it is returned. ComplyEdge checks the text against its EU AI Act rules
33
+ and returns allow or block; a blocked call returns the rule instead of the result (on
34
+ `/verify`, a `HALT` verdict). With each check EIF sends a pseudonymous caller ID (a
35
+ truncated SHA-256 hash of your EIF API key, never the key itself), a role
36
+ (`mcp_client` or `sdk_client`), and your EIF or MCP session ID. ComplyEdge keeps a
37
+ keyed fingerprint (HMAC-SHA-256) of the checked text, not the text itself, together
38
+ with the decision, rule IDs and timestamps, and stores the caller and session IDs only
39
+ as keyed pseudonyms, for 184 days, in the United States. Each check returns a Log ID
40
+ (`event_id`); EIF hands both Log IDs back to you with the answer and lists them on
41
+ your EIF session, so you can later confirm with ComplyEdge that the text you kept is
42
+ the text that was checked. EIF still keeps no copy of the text. These records feed EIF's public [enforcement seal](https://trust.complyedge.io/eif),
43
+ which shows only aggregate counts. If ComplyEdge is unreachable, the call runs without
44
+ the check. ComplyEdge is built by the same author as EIF. Legal basis (GDPR Art. 6):
45
+ legitimate interests (Art. 6(1)(f)), keeping the hosted service's inputs and outputs
46
+ within EU AI Act Article 5 limits and keeping a verifiable record of those checks.
47
+
29
48
  Because no personal data is transmitted to the maintainer through the self-hosted
30
49
  path, the maintainer is neither a controller nor a processor of your data under the
31
50
  GDPR for self-hosted use. See §5. If you choose the hosted alpha endpoint, see §5 for
@@ -35,7 +54,7 @@ how that changes this analysis.
35
54
 
36
55
  ## 2. Data Flows You Can Initiate
37
56
 
38
- Two optional features make outbound network calls. Both go **directly from your
57
+ Three optional features make outbound network calls. All go **directly from your
39
58
  machine to the third party**; the maintainer is not in the path and receives nothing.
40
59
 
41
60
  - **DuckDuckGo search** (via the `ddgs` library): if you enable web evidence
@@ -45,6 +64,10 @@ machine to the third party**; the maintainer is not in the path and receives not
45
64
  causal evidence probe then send claim and evidence text to the OpenAI API under your
46
65
  own account. OpenAI's terms and privacy policies apply, including their data-usage
47
66
  and retention settings for your account.
67
+ - **ComplyEdge**: only if you set `COMPLYEDGE_API_KEY` on your own server. Every tool
68
+ call and `/verify` request is then screened as described in §1 (hosted endpoint),
69
+ under your own ComplyEdge account and its terms. Without the variable, EIF makes no
70
+ ComplyEdge call.
48
71
 
49
72
  Do not enable these features on claims containing personal data, credentials, or
50
73
  confidential information unless your own arrangements with those providers cover that
@@ -98,7 +121,7 @@ guarantee is categorical.
98
121
 
99
122
  If your use of EIF involves personal data (in claims, evidence, or local artifacts),
100
123
  you are the controller for that processing, including any transmission to
101
- DuckDuckGo, OpenAI, or the hosted alpha endpoint that you enable.
124
+ DuckDuckGo, OpenAI, ComplyEdge, or the hosted alpha endpoint that you enable.
102
125
 
103
126
  ---
104
127