::nsmcp::Object ::nsmcp::Object destroy dict getdef ::nx::Object ::nx::Object ::nsmcp::Object->::nx::Object ::nsmcp::QuestionPayloadAudit ::nsmcp::QuestionPayloadAudit cleanup init write ::nsmcp::QuestionPayloadAudit->::nsmcp::Object

Class ::nsmcp::QuestionPayloadAudit

::nsmcp::QuestionPayloadAudit[i] create ... \
           [ -directory:required directory:required ] \
           [ -maxBytes (default "268435456") ] \
           [ -maxEntryBytes (default "16777216") ] \
           [ -mutex mutex ] \
           [ -retention (default "604800") ]

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

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nsmcp::Object[i]

Methods (to be applied on instances)

  • write (scripted, public)

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

    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.