Back to home

henryZhouLikeStudy

dsh-lattice-protocol

DSH Lattice V1 canonical protocol: schemas, types, validators and JSON Schema

Stars
0
Language
TypeScript
Created
Aug 14, 2026
Updated
Aug 14, 2026

Introduction

dsh-lattice-protocol

Versioned canonical schemas, types, validators, and contract-test fixtures for DSH Lattice V1.

Scope

This package defines the normative data contract for DSH Lattice:

  • Canonical types for Project, Run, Room, Agent, Task, Assignment, Message, Result, Artifact, and SessionLink.
  • Events, deterministic result/error envelopes, adapter manifests, capabilities, and session modes.
  • JSON Schema export and runtime validators.
  • RFC 2119 invariants and reusable contract-test fixtures.

Usage

import {
  projectSchema,
  runSchema,
  DEFAULT_RUN_TIMEOUT_MS,
  makeIdempotencyKey,
} from "dsh-lattice-protocol";

const parsed = projectSchema.safeParse(rawProject);

License

Apache-2.0. See LICENSE and NOTICE.