#[unsafe(no_mangle)]pub unsafe extern "C" fn agent_doc_write_ack_content(
project_root: *const c_char,
patch_id: *const c_char,
content: *const c_char,
) -> boolExpand description
Write the final applied document content to the ack-content sidecar file.
The binary reads this after receiving IPC ACK to use as snapshot content, eliminating the 200ms sleep + re-read. If the plugin doesn’t call this, the binary falls back to the 200ms sleep heuristic.
Sidecar path: <project_root>/.agent-doc/ack-content/<patch_id>.md
§Safety
All three pointers must be valid, NUL-terminated UTF-8 strings.