propose_update
Propose corrections or additions to knowledge documents as a git branch and pull request for human review. Ensures served content remains unchanged until merged.
Instructions
Propose a change to a knowledge document — fix an outdated rule, add a missing decision, create a document — for humans to review. Commits the complete new file to a git branch briefd/proposal- (and opens a pull request when a forge is configured); returns branch, commit and PR URL. Never changes what briefd serves until a human merges. Use it for knowledge that is wrong, stale ('code changed since' in bundles) or missing, not for scratch notes. Fails without a writable git source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_path | Yes | Repository-relative path of the document to change or create, inside a scope folder, e.g. domain/rules/refunds.md or projects/ledger-service/notes.md. Must end in .md. | |
| new_content | Yes | The complete new content of the file as Markdown, including front matter if the document has any — not a diff or a fragment. Fetch the current content with get_document first when editing. | |
| change_description | Yes | Why this change is needed and what evidence you have, written for the human reviewer (becomes the commit message and pull request description). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| commit | Yes | ||
| pr_url | No | ||
| pushed | Yes | ||
| proposal_id | Yes |