DeepSeek Harness

DeepSeek Harness: Review a Schema Dump Before Sharing

· 7 min read · 中文版

A DeepSeek Harness schema dump describes declarations rather than the live configuration values, but declared defaults and raw plugin errors can still expose sensitive information. Review both the JSON and diagnostics before sharing, and preserve enough context to explain any redaction and projection limits.

DeepSeek Harness: what can a schema dump reveal?

The CLI reference says --dump-config-schema emits a JSON Schema 2020-12 document describing the selected composed tree. It projects plugin Config fields, descriptions, declared defaults and supported constraints. The root x-cordis annotation includes the profile, entries and diagnostics. Entries may include paths, names, ids, statuses and references. A recipient can therefore learn details of the composition even though the output is not a dump of actual configured values.

The reference explicitly warns that defaults and raw plugin errors can contain sensitive data. A schema can also disclose names or descriptions that the owner does not wish to publish. The plugin config catalog is a useful public comparison: it describes declared plugin configuration, whereas your dump is produced for the selected local composition. Do not assume that every installed plugin has only the same public declarations or that local diagnostics contain no private details.

Collect separately, inspect declarations and errors, then share only the necessary excerpt

MaterialWhat it may containReview focus
Schema JSON on stdoutDeclarations, defaults, names, paths and diagnosticsSecrets and identifying details in values and annotations
stderrWarnings and raw plugin errorsCredentials, local paths and error text
Process statusSuccess or failure/partial outcomePreserve it alongside any excerpt
Config dumpComposed configuration, a different artifactActual values may require separate, stricter review

DeepSeek Harness: how should you collect and review it?

The documented command for the shipped Web profile is:

dsh --profile web --dump-config-schema

Choose the profile relevant to the question. The schema dump uses the same bundle, profile, home and command-line patch layers as --dump-config; it can include disabled declarations. The three dump flags are mutually exclusive, reject application arguments and reject the reserved desktop profile. Dump preparation can initialize missing profile files. The command can also import modules and call Config getters or lazy builders, so it is not merely passive text inspection.

  1. Decide who needs the artifact and which plugin or diagnostic they need to see. Record the profile and relevant DSH/plugin versions so the recipient can interpret a pre-stable, regenerable reference.
  2. Collect stdout and stderr separately using your environment's normal capture method. Record the exit status even if stdout is valid JSON. Do not automatically attach both streams to a public issue.
  3. Inspect the JSON itself, including descriptions, defaults, x-cordis.entries, x-cordis.diagnostics and referenced definitions. Look for credentials, private paths, hostnames, identifiers and other organization-specific information. The CLI specifically identifies defaults and raw errors as possible sensitive material; the rest are review categories, not a claim that every dump contains them.
  4. Inspect stderr and any copied error messages independently. Raw errors can reproduce values, and a clean-looking schema does not establish that diagnostics are clean.
  5. Share the smallest useful reviewed excerpt, or a reviewed complete document when the recipient genuinely needs it. State where content was removed or replaced, and retain the status and relevant limitations. If redaction changes JSON, verify its syntax and any references needed by the recipient.

Redaction is a review process, not a guarantee that all sensitive information has been found. If the artifact contains a credential, follow the applicable response process for that credential instead of assuming removal from the copy undoes an earlier exposure.

DeepSeek Harness: what should stay with a useful excerpt?

The root schema describes the parsed entry list corresponding to --dump-config; $defs.patchList describes overlay fragments. The CLI reference says to retain the document's $defs when validating a fragment, because references can depend on them. Follow $ref and configRef when selecting a subset; cutting out a referenced definition can leave a syntactically valid document unusable for the recipient's validation task. A small excerpt may be best for discussing a field, while a validation question may require more of the document.

Explain the scope of any excerpt. Include the selected profile, relevant entry status and diagnostics when those are needed to interpret the issue, after reviewing them for sensitive information. Preserve whether output was partial and whether the exit status was nonzero. If a value was replaced, mark it as a replacement rather than allowing a reader to mistake it for a declared default. Avoid retaining real secrets merely to make an example executable.

Schema defaults are JSON Schema annotations; they do not by themselves cause a validator to fill values. The native plugin schema can supply defaults during loading. The catalog and CLI reference describe declarations and projection, not the effective values in a running deployment. If the question is about an actual runtime value, a schema excerpt may not answer it; obtain only the additional evidence required and review that evidence separately.

DeepSeek Harness: what do status and diagnostics mean?

Preparation, patch parsing, composition or resolver setup failures exit nonzero without a schema. Collection or projection failures can leave partial output and exit 1. Even valid JSON can have partial projections or omitted non-JSON annotations. The root x-cordis.complete is false for error diagnostics, partial, unsupported or error entries, and ambiguous Config definitions under the same plugin name. Sharing only a successful JSON parse hides this distinction.

Some constraints cannot be fully projected. The CLI reference cites callback validation and unsupported regular-expression semantics as examples marked partial. !!js values are represented as inert expression markers and are not evaluated. Runtime-generated trees and plugin startup checks are outside the schema reference, and complete does not guarantee successful startup. Tell a recipient when the question depends on behavior that the projected schema does not establish.

For source-labelled unmatched-target warnings, the CLI recommends --dump-config with the same layers; schema-dump warnings do not include layer labels. That is a different output with actual configuration information. Do not attach it unreviewed merely because it helped interpret the schema. The existing comparison explains the distinction between config dump modes.

DeepSeek Harness: what are the execution and sharing limits?

The collector imports trusted modules and may invoke Config getters and lazy builders. It does not apply plugins, run transform callbacks or evaluate configuration expressions. Imports may nevertheless block or retain handles; the reference recommends an external timeout for automated callers. Ordinary writes to stdout by imports or builders are redirected to stderr, but direct file-descriptor writes are not intercepted. Preserve and inspect the actual streams rather than assuming every byte is schema JSON.

--from-default-profile is accepted by dump modes, but the CLI documents that it replaces a custom target with a fresh template and can remove its old dependencies and user patch. Do not add it to an inspection command without understanding that effect. Schema validity and a reviewed excerpt do not establish that a plugin, configuration or deployment is safe. Check native validation and the actual behavior separately when the task requires them.

DeepSeek Harness: what do the terms mean?

  • Schema dump: a generated description of declarations in a selected composition, rather than the current configured values.
  • Declared default: a value supplied by a schema declaration; it can itself be sensitive.
  • $defs: reusable definitions needed by references in the schema.
  • x-cordis: annotations containing composition and projection information, including diagnostics.
  • Partial projection: a documented gap between native schema behavior and what the JSON Schema can express.

Frequently asked questions

Does a schema dump include actual configuration values?

The CLI describes schema declarations rather than actual values, but declared defaults and raw errors can still contain sensitive data.

Should stderr be checked too?

Yes. Review warnings and raw errors separately before sharing them.

Does valid JSON mean the projection is complete?

No. A partial projection can produce valid JSON and exit 1; inspect status, completeness and diagnostics.

Sources

Every claim in this article was checked against the sources below. Community discussions are user reports, not official behavior.

  1. CLI schema dump reference
  2. Plugin config catalog

This is an independent community article, not official DeepSeek documentation. Listing a plugin in the registry is not a security review.

← Back to all articles

DeepSeek Harness: Review a Schema Dump Before Sharing