In short.
Gating De-id Leakage is an OpenMed skill for developers who want CI to block de-identification regressions, but passing its checks does not establish privacy protection on unseen patient records. It documents zero-critical-leakage assertions, recall thresholds and release decisions through pytest or a command-line gate. Nothing was executed; API compatibility, actual gate behavior and model performance remain unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
The supplied manifest identifies complete coverage of skills/gating-deid-leakage at commit e8325586e1ce2da73e9e865f34bd0345bb64301a, comprising SKILL.md. Repository-level LICENSE and NOTICE provide related rights evidence outside that folder. Other skills, OpenMed implementation files, model weights, datasets and external references are excluded. Nothing was executed; installation, API compatibility, gate semantics, performance and real-world privacy outcomes remain unassessed.
The overview
Identity
The resource is the gating-deid-leakage skill in maziyarpanahi/openmed. Its metadata declares skill version 1.0 and the project category evaluation-quality. The original folder is [https://github.com/maziyarpanahi/openmed/tree/master/skills/gating-deid-leakage].
It supplies assistant instructions and implementation examples for connecting OpenMed evaluation to continuous integration, or CI: automated checks that run when software changes. The skill is not itself the evaluation engine or a de-identification model.
Assessment
The skill is useful for teams already adopting OpenMed who need a concrete way to make privacy regressions fail a build. Its strongest practical details are explicit leakage and recall assertions, handling evaluation errors as failures, and making the CI job a required merge check.
Its examples are implementation guidance, not demonstrated results. The supplied material does not establish that the referenced APIs behave as described or that any model meets the thresholds.
Users
The intended users are developers, model evaluators and platform engineers maintaining OpenMed de-identification pipelines. De-identification means detecting and removing or transforming information that can identify someone; PHI refers to protected health information.
Beginners get concrete examples, but still need Python testing and CI knowledge. Experienced teams need to supply suitable annotations, approved thresholds and baseline management. The skill does not provide a ready-made evaluation corpus or evidence of clinical suitability.
Capabilities
The pytest example evaluates a held-out dataset, asserts that critical_leakage_count equals zero, checks the reported per-label recall values against a floor, and requires a RELEASABLE decision. Recall measures the proportion of annotated sensitive items that a detector finds.
The command-line example gates an existing candidate report against a baseline store. The documented exit codes distinguish a releasable result, quarantine and an evaluation error. The skill also supplies a pull-request workflow for GitHub Actions and mentions an optional issue-on-failure flag, whose implementation is outside the supplied material.
Using it
Requirements
The examples require an OpenMed checkout or installation exposing openmed.eval, pytest for the test route, and access to the selected model. The GitHub Actions example installs the repository with the hf extra through uv. Compatible Python and OpenMed package versions, complete dependencies, model access requirements and hardware needs are not specified.
Users must provide a synthetic held-out PHI dataset with offsets and labels, kept separate from training and calibration data. The command-line route additionally expects a candidate report and baseline-store path. A merge-blocking setup requires permission to configure the CI job as a required status check.
Mechanism
The pytest fixture calls run_suite with a dataset, model and evaluation metadata, then passes the resulting report to ReleaseGate.evaluate. Tests inspect the returned leakage count, recall values and release decision. A failed assertion makes pytest exit unsuccessfully, which should fail the CI job.
The command-line interface is documented to return 0 for RELEASABLE, 1 for QUARANTINED and 2 for an evaluation error before a report exists. The skill recommends treating both nonzero codes as failures. Definitions and implementation of the underlying G1a–G8 gates are not included.
Setup
The documented pytest route places a test at tests/eval/test_deid_leakage_gate.py and a synthetic fixture at eval/heldout/phi_synthetic.json. Its GitHub Actions example checks out the repository, installs uv and OpenMed with the hf extra, then runs that test on pull requests.
Before adopting the example, confirm the installed APIs and fixture format, pin the model and gate milestone, and use the active policy's published thresholds. Configure the job as a required merge check and manage baseline promotion separately. These setup steps were not executed.
Example
The supplied pytest example selects OpenMed/Privacy-PII-Detection, requests CPU execution, uses the golden suite and evaluates the hipaa_safe_harbor policy at milestone v1.6. It sets an illustrative recall floor of 0.99 and checks every entry returned in per_label_recall.
Under those assertions, a returned recall value of 0.98 would fail the recall test, and a critical_leakage_count of 1 would fail the leakage test. These are explanations of the assertions, not observed results. The source separately instructs users to obtain thresholds from the published policy rather than adopt an arbitrary constant.
Assessment & evidence
Limitations
Zero reported critical leaks on a finite synthetic dataset does not establish zero leakage on unseen records, protection against every identifier type or HIPAA compliance. Dataset coverage and annotation quality constrain what the checks can reveal. Runtime logging exposure requires separate controls.
The example checks recall entries that the report contains; handling of absent labels or empty evaluation sets is unknown without the evaluation implementation. The model name is supplied without a revision pin, although the text recommends pinning the model. Gate-report contents, command-line failure handling and baseline behavior are documented claims rather than verified behavior.
Design rationale
The approach makes privacy-specific conditions explicit instead of relying solely on an aggregate F1 score. A combined score can obscure weak results for an individual label, while a critical-leakage assertion can reject a result despite otherwise strong averages.
Keeping evaluation errors fatal prevents a broken evaluation from appearing successful. Keeping baseline promotion separate reduces the chance of accepting a regression merely by replacing its comparison point. These are reasons the documented design can be useful; their effectiveness depends on the implementation and inputs.
Alternatives
Within the skill, pytest suits teams wanting individual assertions in their existing test suite. The command-line route suits pipelines that already produce candidate evaluation reports and need a release decision through an exit code. Compatibility and performance differences are not established.
The source names evaluating-with-leakage-gates for gate semantics, building-gold-corpus for synthetic fixtures and enforcing-nophi-logging for runtime logging controls. These address adjacent needs; their contents are not supplied here, so they cannot be assessed as replacements.
Evidence
The available material consists of the skill's SKILL.md and the repository-level LICENSE and NOTICE, all identified at commit e8325586e1ce2da73e9e865f34bd0345bb64301a. The original skill text is [https://raw.githubusercontent.com/maziyarpanahi/openmed/e8325586e1ce2da73e9e865f34bd0345bb64301a/skills/gating-deid-leakage/SKILL.md].
The corresponding notices are [https://raw.githubusercontent.com/maziyarpanahi/openmed/e8325586e1ce2da73e9e865f34bd0345bb64301a/LICENSE] and [https://raw.githubusercontent.com/maziyarpanahi/openmed/e8325586e1ce2da73e9e865f34bd0345bb64301a/NOTICE]. No evaluation-engine source, model files, held-out corpus, generated reports or execution results are included.
Access & freshness
Costs
Apache-2.0 grants no-charge copyright permissions for the licensed material. This does not establish the total cost of operating the examples.
CI charges, compute time, memory use, model storage or download costs, and dataset preparation effort are unknown. The CPU setting in the example supplies no measured runtime or evidence of hardware sufficiency.
Rights
The skill declares Apache-2.0, supported by the repository LICENSE and NOTICE. The license permits use, modification and redistribution subject to its conditions. Redistribution requires supplying the license, marking modified files and preserving applicable attribution and NOTICE material. It provides no warranty and grants no general trademark permission.
The repository NOTICE covers broader bundled, optional and planned integrations. It does not establish that those assets are present in this skill folder. In particular, it says SHIELD dataset access and redistribution terms require review; the skill's license does not grant rights to that corpus or to separately acquired models and data.
Freshness
The supplied snapshot was captured on 2026-11-17 at 12:04:17.577 UTC and identifies commit e8325586e1ce2da73e9e865f34bd0345bb64301a. This capture time does not establish when the skill was authored or last changed.
The skill declares version 1.0. Its examples use gate milestone v1.6, while its guidance also mentions v2.0; those references do not establish the required OpenMed package version. Later changes, current API compatibility and maintenance activity are unknown.
Next steps
Confirm the evaluation APIs, input schema, critical-identifier definitions and policy thresholds in the OpenMed version you intend to use. Prepare a representative synthetic held-out set, keep it separate from training and calibration, and pin the model revision and gate milestone.
Before making the job required, verify that a deliberate leak, inadequate recall, missing input and an evaluation error each fail CI. Check that reports and logs expose no fixture text, and promote baselines through a separate reviewed step. Treat a passing result as evidence about that dataset and configuration, with broader privacy suitability still requiring assessment.
