commit_context_patch
Applies a proposed ContextPatch as a new immutable Context version after revalidating its base, rejecting stale patches and preserving cited evidence for an atomic commit.
Instructions
Apply a proposed ContextPatch as a new Context version. The base version is revalidated first, so a patch whose base_context_version is no longer current is rejected; the commit is atomic and keeps the cited evidence. Call it only after reading the diff from propose_context_patch. Committed versions are immutable; read them with get_context_history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch_id | Yes | Id returned by propose_context_patch, for example PATCH-0123abcd. | |
| project_id | Yes | Registered project id, as returned by list_projects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||