From 690b438a8794378ce5afbab116556c3de5092d92 Mon Sep 17 00:00:00 2001 From: Florent Pollet Date: Wed, 11 Nov 2026 14:10:56 -0500 Subject: [PATCH] docs: add explicit raw-data access guard to implementation prompt The implementation prompt restricted label access and required approvals for demo/full-data runs, but never explicitly forbade the agent from directly inspecting raw patient-level records. Add an explicit guard that applies across all profiles, modes and stages, mirror it in the workflow docs and prompt builder, and assert it in the prompt builder tests. Co-Authored-By: Claude Opus 5.5 --- docs/implementation-prompt.md | 13 +++++++++++++ docs/prompt-builder.md | 1 + docs/tests/prompt_builder.test.cjs | 3 +++ docs/workflow.md | 8 ++++++-- 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/docs/implementation-prompt.md b/docs/implementation-prompt.md index dc7a713..9224403 100644 --- a/docs/implementation-prompt.md +++ b/docs/implementation-prompt.md @@ -74,6 +74,19 @@ without the existing approvals. Record the mode, routine defaults, unresolved qu and explicit decisions in IMPLEMENTATION_REPORT.md under "Scientific assumptions and decisions"; update the existing report rather than creating another specification file. +RAW-DATA ACCESS GUARD (all profiles, modes and stages): Do not directly open, read, sample, +preview, print, grep, query, dump, export or otherwise inspect real patient-level records, raw MEDS +event files or underlying clinical tables through the agent session, shell commands, notebooks or +ad hoc scripts. A supplied data path, credentials, exploratory mode or implementation request is +NOT authorization to inspect raw data. Use synthetic fixtures for implementation and local tests; +source code, documentation, schemas and non-sensitive metadata may be inspected. Only after explicit +human approval for a specific demo or full-data gate may the approved, auditable algorithm pipeline +process real MEDS inputs programmatically for that run. Approval to execute the pipeline does not +authorize the agent to browse records or expose raw rows in output, logs, reports, chat or commits. +If direct record inspection seems necessary for debugging, stop and request separate, narrowly scoped +human approval before doing so. Keep evaluation outcomes out of scoring and use the core key-only +index reader for prediction keys when the relevant data access is authorized. + For automatic profile selection, choose one or more profiles supported by documented source behavior: supervised, finetune, probe, zero_shot_direct, zero_shot_materialized or predict_only. Record evidence for each choice and proceed when the evidence is clear. Do not add speculative capabilities merely because diff --git a/docs/prompt-builder.md b/docs/prompt-builder.md index 9f302ee..cc09011 100644 --- a/docs/prompt-builder.md +++ b/docs/prompt-builder.md @@ -74,6 +74,7 @@ You can edit the result before copying. Demo and full-data execution retain thei

Preparing for full evaluation does not authorize a demo, dataset download or cluster run. The existing review gates still apply.

+

Raw-data access guard: Do not inspect real patient-level records or raw MEDS files directly, even if a path or credentials are supplied. Use synthetic local tests. Only a specifically human-approved pipeline run may process real inputs; do not preview, print, log or copy raw rows.

Off by default. The agent normally asks before implementing a major unresolved scientific choice, such as unspecified feature construction; routine defaults may proceed with documentation. When enabled, provisional design choices must be recorded and reviewed before claiming faithful reproduction. Leakage, cohort/target definitions, evaluation validity and execution approvals still require resolution.