PGMem 1.2.1: Reference implementation, synthetic dataset and Colab notebook for "Provenance-governed agentic AI for personal knowledge and memory support: a framework and rule-level demonstration"
Abstract
PGMem is the reference implementation accompanying the paper "Provenance-governed agentic AI for personal knowledge and memory support: a framework and rule-level demonstration". It turns the paper's framework into working, tested Python code and a self-contained Google Colab notebook. The package implements a personal event base with typed evidence (plan, self-report, observation), record versioning, disputes and corrections; an access-policy engine that re-checks consent at retrieval, at release and at dispatch; a graded-assistance escalation gate with agreed adaptation; and a grounded-recall component with an evidence-aware release rule. Four invariants are enforced and tested: I1, no contact or disclosure without valid consent; I2, no overstatement of evidence (e.g. a calendar plan is never reported as attendance); I3, silence is never turned into an invented outcome; I4, corrected or stale records are never released. A synthetic cohort generator (default: 240 participants with memory impairment, 28 days, fixed seed) produces participants, task episodes, event-base records, recall questions and a reference history, all described and validated by a datapackage.json schema. The same simulated people and days are run under three conditions: a fixed reminder app, a single agent with retrieval-augmented generation, and the proposed framework. The analysis reports task success rate, false-prompt rate, independence, invented-outcome rate, external recall faithfulness (F_ext) and coverage, with participant-cluster bootstrap intervals, paired differences, exploratory association tests, recall results by stratum, and a development/held-out calibration of the release threshold. The notebook runs end to end on a free CPU runtime in about 1–2 minutes. It needs no external data, API keys or GPU. It produces tables, static and interactive figures, conclusions computed from the current run, a run manifest and a results ZIP. By default the text-recall step uses an explicitly labelled lexical scorer. Optionally, pretrained models (mDeBERTa-v3-base-xnli-multilingual and multilingual-e5-small) can be enabled. The architecture diagrams also describe proposed components (ASR, TTS, LLM, OPA, PostgreSQL) that are not run here. All data are synthetic. Results show how the programmed rules behave under generator assumptions. They are not clinical estimates or evidence of benefit to real people. Contents: pgmem/ Python package; 33 regression tests; synthetic data and schema; results (CSV); figures (PNG and offline interactive HTML); PGMem_Colab.ipynb (with saved outputs) and PGMem_Colab.py; rebuild and verification scripts. Інші поля: Resource type: Software (або Dataset, якщо головне — дані) Version: 1.2.1 Language: English Keywords: agentic AI; memory support; dementia; mild cognitive impairment; personal knowledge management; provenance; consent; grounded recall; retrieval-augmented generation; assistive technology; synthetic data; simulation; Google Colab Related identifiers: «is supplement to» → DOI статті (коли буде) License: я не знайшов ліцензії в проєкті, тож її треба вибрати вам. Для коду зазвичай беруть MIT або Apache-2.0, для даних CC-BY-4.0. Files: pgmem_project_en.zip, PGMem_Colab.ipynb, PGMem_Colab.py