packages/runtime-diagnostics
September 4, 2026 · View on GitHub
English | 中文
Summary
The runtime-diagnostics group provides runtime self-checking for DeepSeek Harness compositions: one package, invariants, runs package-owned checks that verify each package's durable event and data relationships while the composition is live. A violation surfaces as an error attributed to the package that owns the relationship; a global switch and package-name filters control which checks run. Use this group's package when a composition should verify its own runtime contracts as part of normal operation.
Table of Contents
Packages
| Package | Role | ctx key |
|---|---|---|
invariants | Runs package-owned runtime checks and reports each failure by owning package | registers on ctx.invariants |
Related documentation
- Runtime invariants subsystem — the generated service reference: selection, installer, and companion contract.
- Package-owned invariant service Agent Note — why checks live beside their owners and the registry owns selection and lifecycle.
- Invariant runtime contracts Agent Note — what a runtime invariant may assert and the mechanical gate enforcing companion wiring.
- Package conventions — the
./invariantcompanion rule every package follows.
Dev Note
Working context for maintainers — click to expand
None.