publish_project_graph
Preferred agent path for atomically publishing one bounded, privacy-filtered project graph. Brain Scanner computes canonical sizes and integrity digests internally; source contents, secrets, commands, diffs, logs, environment values, and credentials are rejected. The publishing agent must manually write the four plain-language changeNarrative sections; Brain Scanner never generates that prose.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | ||
| nodes | Yes | ||
| projectId | Yes | Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL. | |
| sessionId | No | Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL. | |
| idempotencyKey | Yes | Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action. | |
| mappedRevision | No | ||
| changeNarrative | Yes | ||
| expectedProjectVersion | Yes | Current hosted project version from get_project_status; guards against overwriting a newer graph publication. |