Skip to content

Variable: ClientRuntimeEvidenceBaseSchema

Makaio Framework


Makaio Framework / contracts/client / ClientRuntimeEvidenceBaseSchema

const ClientRuntimeEvidenceBaseSchema: ZodObject<{ adapterSessionId: ZodOptional<ZodString>; argv: ZodOptional<ZodArray<ZodString>>; cwd: ZodOptional<ZodString>; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; parentPid: ZodOptional<ZodNumber>; pid: ZodOptional<ZodNumber>; sessionId: ZodOptional<ZodString>; supervisorSessionId: ZodOptional<ZodString>; }, $strip>

Defined in: ../../../packages/contracts/src/client/runtime-observation.ts:66

Shared runtime evidence fields that appear in both the client.runtime.observe request and the client.runtime.started event.

At least one of supervisorSessionId, pid, or adapterSessionId must be present (“hard evidence” invariant). This constraint is enforced via .refine() on the terminal request schema, not on this base, so the base stays composable.

Fields:

  • supervisorSessionId — supervisor-assigned session ID, when available.
  • pid — OS process ID of the client binary.
  • parentPid — OS process ID of the parent process.
  • adapterSessionId — raw session ID from the client runtime.
  • sessionId — framework session ID, if already resolved.
  • cwd — working directory of the client process.
  • argv — argv of the client process.
  • metadata — arbitrary pass-through data from the producer.