Preface¶
When using OpenAI-compatible routing in DSH (DeepSeek Harness), it is often necessary to check logs or perform packet capture after the fact to determine which checkpoint the model actually landed on or if the gateway has silently switched upstream. While the system_fingerprint in the official response corresponds to the checkpoint, it is usually not displayed directly in the UI; furthermore, when using third-party gateways, the fingerprint field may not exist at all.
The following introduces the community plugin dsh-system-fingerprint (Maintainer: Mizumic, Category: Model Inference). It displays the current model checkpoint or gateway request-level provenance at the session header, actively probes system_fingerprint and maps it to a readable name, while intercepting response metadata for evidentiary storage and endpoint registration; raw response bytes are not written to disk by default. The plugin is distributed as a standalone bundle, does not write local absolute paths to the repository, and supplier mapping is configurable.
Directory Page: https://www.skillhub.cn/plugins/Mizumic/dsh-system-fingerprint
Source Code: https://github.com/Mizumic/dsh-system-fingerprint (MIT, current package version 0.3.0)
What is this¶
dsh-system-fingerprint is a DSH Web plugin: the host side registers APIs and response interception, while the browser side injects a “Checkpoint / Gateway Provenance” badge into the session header.
The two information pathways can be summarized as follows:
Session Model Routing (provider/model)
├─ (Primary Path) Active Probing: POST <Same-origin endpoint root>/chat/completions → response.system_fingerprint
│ └─ Built-in MD5 mapping table → Checkpoint Name
└─ (Evidence/Fallback) fetch Interception: Clone before model response decoding, parse metadata (raw bytes not saved by default)
└─ Parse system_fingerprint / model / x-ds-trace-id; Record actual conversation URL / host
└─ If upstream does not return fingerprint, parse gateway provenance headers in response headers
└─ Only write raw bytes to $DSH_HOME/storages/system-fingerprint/raw/ when captureRaw: true
The plugin is a passive layer: it works upon installation alone; optional external behavior monitoring tools only read this plugin’s artifacts, and not installing them does not affect the badge or evidentiary storage.
Environment Requirements¶
| Item | Requirement |
|---|---|
| DSH | >= 0.2.0-rc.2 (Requires bundle patch and plugin management capabilities; README verified end-to-end on 0.2.0-rc.2) |
| Node.js | >= 20 (Host side uses only Node built-in modules) |
| Model Endpoint | OpenAI-compatible endpoint (optional); system_fingerprint is ideal, otherwise falls back to gateway provenance or “Not Applicable” |
| Credentials | Environment variables or DSH credentials ref (e.g., DEEPSEEK_API_KEY); do not write into config files or repository |
Core Features¶
Badge and Interaction¶
- Known Fingerprint: Displays the mapped checkpoint name, e.g.,
flash 1017from the built-in table. - Not in Mapping Table: Displays the raw 32-bit
system_fingerprint(md5), without guessing or pretending. - Gateway Routing (Upstream does not return fingerprint): The badge directly displays the upstream endpoint name; the hover card provides the backend pool, upstream route, request id, and explicitly marks “This is not a model fingerprint”. Falls back to “Gateway Provenance” if the endpoint name cannot be obtained; displays “Not Applicable” if no real response has been captured yet.
- Hover: Custom card displays model, checkpoint, fingerprint, plaintext, source, probe endpoint, same-origin confidence, trace id, stability, evidentiary switch status, etc.; long fields wrap automatically.
- Click: Bypasses cache to force re-probing; polls approximately every 10 minutes when visible (probing involves real billable requests).
- Optional Behavior Alerts: Configure
externalAlertFileto read external read-only alert JSON; appends a warning marker to the badge on warn/critical, silently degrading if the file is missing or corrupted.
When same-origin probe confidence is not high, the dot turns to a warning color and explains the reason in the card.
Privacy by Default¶
Distribution semantics prioritize privacy (README since 2026-10):
| Switch | Default | Meaning |
|---|---|---|
capture |
On | Intercept response, retain metadata/headers; do not save model body |
captureRaw |
Off | Only write raw bytes before decoding to raw/ when explicitly enabled |
captureHeaders |
On | Raw headers go into evidence; credentials like Authorization are always recorded as <redacted> |
The request body only parses the model field and does not save prompts. Under default configuration, the raw/ directory should contain 0 files (locked by test assertions).
External Contract (v1)¶
| Contract | Path / Form |
|---|---|
| HTTP Status | GET /api/system-fingerprint/state?sessionId=…&provider=…&model=…&refresh=1, response includes apiVersion: 1 |
| Endpoint Registry | $DSH_HOME/storages/system-fingerprint/endpoints.json |
| Read-only Config Export | $DSH_HOME/storages/system-fingerprint/config.json (Whitelist, no credentials) |
Plugin code does not reference external monitoring projects, only writes to its own storage directory; meta.json / raw/ are internal artifacts.
Built-in Checkpoint Mapping (Default Values)¶
| Checkpoint | Description |
|---|---|
| v4-pro | Built-in fingerprint / plaintext |
| v4f 0908 (Beta) | Same as above |
| flash 0910 (Unified Version) | Same as above |
| flash 1017 | Same as above |
See repository README for complete plaintext and md5; checkpointTable config can be replaced when switching suppliers.
Installation and Activation¶
The plugin is a DSH bundle (package.json dsh.bundle.patch points to cordis.patch.yml) and injects the browser module lib/client.js. Machine-specific paths are defined via symbol mapping; see repository docs/SYMBOLS.md and docs/AGENT-INSTALL.md (including offline verification, installation, and rollback steps) for details.
After obtaining the distribution package or local directory, install the bundle in DSH, for example:
# Install via plugin manager in DSH (absolute path or npm package name both work)
# plugin_manager install_bundle('/absolute/path/to/dsh-system-fingerprint')
Or reference this directory with link: in the profile’s dsh.profile.bundles (for development).
Once installed:
- After re-enabling the bundle, the host side takes effect immediately, but the browser side requires a page refresh.
- A badge appears at the top right of the session header; displays “Missing Credentials” if no credentials are present.
- Uninstallation: Remove this package from the profile’s bundles and refresh the page.
README Note: Do not write file:// absolute paths in distribution configurations; during development, hot-loading of host single-file modules can be achieved by incrementing ?v=N in the patch.
Configuration Essentials¶
Override the config for this plugin line in the profile’s cordis.patch.yml (the cordis.patch.yml inside the package is a template). Common items:
| Config | Default | Description |
|---|---|---|
provider |
deepseek-official |
Target routing for active probing |
model |
deepseek-flash |
Fallback model when projection is missing |
openaiBaseURL |
https://api.deepseek.com |
Fallback probe endpoint when same-origin root is unavailable |
apiKeyEnv |
DEEPSEEK_API_KEY |
Credential environment variable name |
timeoutMs |
15000 |
Single probe timeout |
cacheTtlMs |
60000 |
Success result cache TTL |
capture / captureRaw / captureHeaders |
See table above | Interception and evidentiary storage |
gatewayHosts |
[opencode.ai] |
Hosts requiring gateway provenance interception |
gatewayHeaders |
Default 6 roles | Gateway response header semantic mapping; false disables gateway provenance |
checkpointTable |
Built-in 4 rows | Replaceable fingerprint mapping |
externalAlertFile |
Empty | Optional external alert JSON path |
Routing not configured as provider: If the response actually contains system_fingerprint, the badge still prioritizes it; if neither fingerprint is returned nor gateway provenance headers are configured, it displays “Not Applicable” and will not borrow checkpoints from other routes.
Typical Usage¶
- Configure
DEEPSEEK_API_KEY(or the variable pointed to byapiKeyEnv), install the bundle, and refresh the Web page. - Initiate at least one real model conversation in the target session to allow the interception layer to record the same-origin endpoint; observe if the header badge shows a checkpoint name or md5.
- Hover to view probe endpoint, same-origin confidence, and time difference from the last conversation response; click the badge to force a refresh if needed.
- If using a gateway without
system_fingerprint, ensuregatewayHosts/gatewayHeadersmatch the supplier’s response headers; the badge should display the endpoint name or “Gateway Provenance”. - If scripts or monitoring tools need to consume state, request:
GET /api/system-fingerprint/state?sessionId=…&provider=…&model=…&refresh=1
Model resolution priority: query > session modelSelection > intercepted llm/stream > default model > config.
If evidentiary storage or auditing requires retaining the raw response body, explicitly set captureRaw: true in the config, and pay attention to storage limits maxRawBytes (default 524288) and maxRawFiles (default 120).
Use Cases and Notes¶
Who it is for: Developers who need to visually confirm the checkpoint or gateway routing at a glance in the DSH session interface; teams that need endpoint registry and metadata evidentiary storage without defaulting to writing full response bodies to disk; can work with read-only consumers of endpoints.json / config.json, though the plugin itself does not depend on these tools.
Overhead: Active probing sends real chat/completions requests (billable) to the configured endpoint; polls every 10 minutes when the page is visible.
Security and Trust: The plugin runs with the current DSH process permissions, intercepts model traffic via connection.fetch, and writes to $DSH_HOME/storages/system-fingerprint/. Please read the source code and MIT license before installation to ensure capture / captureRaw and the gateway host list comply with local requirements; credentials should not appear in the config.json export.
Ecosystem Note: The DSH community plugin directory (SkillHub) is an independent site with no official affiliation with DeepSeek / High-Flyer; this repository README indicates it is a distributable independent repository and does not modify DSH host source code.
Verification Status: Repository CI and README record 218 passing offline/host tests (subject to the repository’s current badge).
Conclusion¶
dsh-system-fingerprint consolidates system_fingerprint probing, configurable gateway provenance, and response metadata evidentiary storage into a single badge in the session header, without writing raw model response bytes to disk by default. If you are already using OpenAI-compatible routing in a DSH 0.2.0-rc.2 or higher environment, you can follow docs/AGENT-INSTALL.md to install the bundle and override config in your profile as needed.