Confirm and submit a schema registry contribution (step 2 of 2)
submit_registry_contributionSubmits a registry contribution after strict validation: confirmation phrase, report hash, independent privacy scan, and content integrity; then writes files and opens a PR (or saves locally).
Instructions
Step 2: after the patient has reviewed get_registry_contribution_report's output IN FULL and typed its exact confirmation phrase themselves, call this with that phrase and the report's reportHash to actually write and submit the contribution. Runs the full gating sequence: exact-match phrase check, an INDEPENDENT second privacy scan (does not trust discover.js's own redaction — re-checks against a hard allowlist), a content-integrity hash check (refuses if the archive changed since the report was reviewed — re-call get_registry_contribution_report and re-confirm if this happens), then writes to schema-registry/ and opens a PR via the GitHub CLI if it is installed and authenticated.
If gh is not available, or nothing needs submitting, or the PR step fails, files are still written and hash-verified locally — nothing is ever lost, and this is reported clearly rather than silently.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reportHash | Yes | The `reportHash` value from the get_registry_contribution_report call the patient actually reviewed, passed through verbatim. | |
| confirmationPhrase | Yes | EXACTLY what the patient themselves typed in response to the required phrase from get_registry_contribution_report — not your own paraphrase or judgement call. |