nsmcp::QuestionPayloadAudit method write (public)

 <instance of nsmcp::QuestionPayloadAudit[i]> write handle turn \
    scope payload [ label ]

Defined in /usr/local/ns/tcl/nsmcp/question-payload-audit.tcl

Persist exact UTF-8 payload bytes before the backend handoff. A write or quota failure prevents that handoff. The metadata is separate so the .payload file can be compared byte-for-byte with a captured body.

Parameters:
handle (required)
Owned conversation identifier.
turn (required)
Owned turn identifier.
scope (required)
One of the documented AI handoff boundaries.
payload (required)
Serialized JSON body about to cross that boundary.
label (optional)
Bounded MCP method or tool label, when applicable.
Returns:
Payload byte count and SHA-256 digest.

Testcases:
No testcase defined.
[ show source ]
Show another procedure: