vx.bindHarness(...) after await initVerifiedX() to promote your own methods into named VerifiedX surfaces.
Basic usage
This is the raw TypeScript path. You keep your existing harness and declare which methods should be treated as LLM calls, retrievals, protected actions, durable memory writes, or general tools.
Parameters
The object whose methods you want VerifiedX to wrap in place.
Optional LLM method bindings.You can use either:
- string shorthand:
{ callModel: "gpt-5.4-mini" } - object form:
{ callModel: { modelName: "gpt-5.4-mini" } }
Optional retrieval bindings for reads and lookups that should contribute decision context.You can use:
- string shorthand:
{ lookupInternalWorkflow: "internal workflow evidence" } - tuple-style shorthand:
{ searchPublicWeb: ["public web context", "external_retrieval"] } - object form with
queryand optionalobjectType
Optional high-impact business method bindings such as record mutations, workflow updates, or message sends.You can use either:
- string shorthand:
{ setWorkflowStatus: "set_workflow_status" } - object form:
{ setWorkflowStatus: { toolName: "set_workflow_status" } }
schema and docstring metadata.Optional durable memory-write bindings.You can use either:
- string shorthand:
{ rememberCustomerPreference: "remember_customer_preference" } - object form:
{ rememberCustomerPreference: { toolName: "remember_customer_preference" } }
schema and docstring metadata.Optional general tool bindings for helper methods and tool history.If a method is definitely a durable memory write or another high-impact effect, prefer
memories or actions.What it does
bindHarness(...) wraps the methods you name and turns them into first-class VerifiedX surfaces.
That means you can give your own business methods clearer names and better receipts, instead of relying only on lower-seam runtime capture.
High-impact methods bound under actions are protected before they execute. Durable writes bound under memories are protected as memory writes.
initVerifiedX() already installs lower-seam runtime fallbacks by default. bindHarness(...) is how you add cleaner business-level boundaries on top of that runtime capture.Return value
Returns the same VerifiedX runtime object, so you can keep using it after binding.Example
- observe
callModelas an LLM call - record
lookupInternalWorkflowas retrieval context - protect
setWorkflowStatusas a high-impact boundary - protect
rememberCustomerPreferenceas a durable memory write