jjjjjjjjnnjnn/dsh-triage--packages-core ↗★ 1

@dsh-triage/core

Judgment engine for DeepSeek Harness plugins: admission parity, environment fingerprint, capability ledger, verdict assembly. Pure, offline, deterministic.

Package
@dsh-triage/core
Compatibility
Unverified
Version
0.3.12
License
MIT
Last updated
Nov 21, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

@dsh-triage/core

Pure, offline judgment engine for DeepSeek Harness plugin compatibility.

Public API

ExportPurpose
evaluateAdmission(manifest, runtime)Mirror upstream admission semantics (engines.dsh wins, else @deepseek-ai/dsh* peers ANDed, prereleases participate, empty/invalid ranges incompatible)
evaluateRange(range, runtime)Single-range evaluation that never throws
loadEnv({ dshHome, profile })Read a profile fingerprint (Result, no throw)
parseProfileManifest(raw)Pure manifest projection
parsePatchYaml(text) / extractEntryClaims(doc, source)Loader row extraction from a patch layer
findEntryIdCollisions(claims)Duplicate loader entry ids (fatal at boot)
verdictFromAdmission(input) / verdictsFromCollisions(input)Verdict assembly
mergeVerdicts(verdicts)Worst-conclusion merge with dedupe
renderVerdict(verdict, locale)Deterministic text rendering (en / zh)

Invariants

  • Only env.ts touches the filesystem; everything else is pure.
  • No clock, no randomness: timestamps are injected by the caller.
  • Conclusions are exactly go | risky | blocked | unknown.
  • blocked/risky always carry remediation; unknown always lists missing evidence.

Parity

Behaviour is locked by data/gold/admission-cases.json (13 synthetic + 8 real npm snapshots) and enforced by scripts/gate_admission_parity.mjs. Change the fixtures and the spec before changing the rules.

MIT.