Skip to content

Verification

The default suite uses injected transports and does not contact Discord:

Terminal window
npm run metadata:check
npm run config:schema:check
npm run typecheck
npm test
npm run test:coverage
npm run build
npm run pack:verify
npm run mcpb:verify
npm run container:verify
npm run container:index:verify
npm run security:check

pack:verify rebuilds and packs twice under one npm toolchain, requires byte-identical archives, enforces the published-file allowlist, scans for sensitive environment values, installs the archive without lifecycle scripts, runs the installed credential-free catalog check and HTML export twice without a token, exercises the packaged operational CLI, negotiates the installed MCP catalogs, verifies the static safety and tool-access resources, and requires a clean operational child exit after stdin closes in both supported protocol eras before invoking the MCP client's termination fallback. It requires the two standalone explorers to be byte-identical, privately written, bound to the same catalog, access, and safety digests, and free of ambient secret values. With --output DIRECTORY, it emits the verified archive and its deterministic catalog-evidence.json. CI requires byte-identical decompressed tar payloads and catalog evidence across supported Node lines because npm patch releases can encode the same payload with different gzip bytes.

mcpb:verify builds the bundle twice from fresh directories and requires identical archive bytes. It validates the pinned model-neutral manifest schema, exact entry allowlist, path safety, Unix file modes, normalized timestamps, compression fields, local and central ZIP agreement, embedded privacy and dependency evidence, secret absence, model- and harness-neutral bytes, and the exact SHA-256 declared in server.json. It then unpacks the result and negotiates the real MCP tool, prompt, resource, and template catalogs through stdio with an isolated placeholder token and strict policy. CI additionally requires the complete MCPB bytes to match across supported Node and npm toolchains. The command contacts no Discord endpoint.

container:verify builds from the exact digest-pinned Node.js base, checks the non-root image configuration and secret-free history, and exercises it with no network, a read-only root filesystem, no Linux capabilities, no privilege escalation, and a bounded process count. It compares repeated catalog output byte-for-byte with the source contract, negotiates the complete MCP catalogs, proves the catalog-only tool guard, verifies a read-only mounted standalone policy through the packaged CLI, and requires an explicit operational start without a credential to fail safely on stderr. With --output DIRECTORY, it emits the same deterministic catalog evidence plus a content-free container report and the reviewed Dockerfile. Neither package verification nor container verification contacts Discord.

container:index:verify builds the release shape for every supported architecture with a digest-pinned SBOM generator, exports an OCI layout without publishing it, verifies every referenced blob digest and size, and requires the exact index annotations, runnable platform set, release labels, root-filesystem layer binding, and one provenance plus SPDX evidence pair for each platform. CI and release automation additionally pin the BuildKit and architecture-emulation images by digest. With --output DIRECTORY, the command emits a content-free oci-index-evidence.json. It contacts only the public image registries needed for pinned build inputs and never contacts Discord.

Generate and validate an SPDX production-dependency SBOM with npm run --silent sbom -- --output sbom.spdx.json. The release workflow attests the verified archive with that SBOM.

Provenance, SBOM, and attestation boundaries

Section titled “Provenance, SBOM, and attestation boundaries”

Build provenance is a machine-readable build receipt, not a security certificate. Each platform manifest carries BuildKit mode=max provenance describing its source revision, builder, build platform, materials, timestamps, build arguments, low-level build definition, Dockerfile bytes, and mappings between build steps and image layers. max names BuildKit's most detailed recording mode; it does not assert a maximum SLSA level, byte-for-byte reproducibility, or freedom from malicious inputs. The mode exposes build-argument values, so every argument in the release Dockerfile is public base-image, version, or revision metadata and credentials must never be passed as build arguments. See Docker's provenance-attestation documentation.

An SPDX software bill of materials is a machine-readable parts list. The digest-pinned container scanner inventories packages detected in the final runtime stage for each supported platform and attaches the statement to that platform's exact manifest. The npm and embedded MCPB SBOMs instead cover the root package and exact production dependency set; validation requires their package URLs, registry origins, and SHA-512 checksums to agree with the lockfile and explicitly requires filesAnalyzed: false so they never claim file-by-file analysis. The bundle also carries exact third-party notices generated from the same installed production graph. An SBOM enables later vulnerability and license queries as databases change, but it is not itself a vulnerability scan or legal-compliance verdict. Notices expose declared licenses and their texts but do not decide legal compatibility. An omitted component may reflect scanner or package-metadata limits rather than proof of absence. See Docker's SBOM-attestation documentation.

OCI provenance and SBOM statements are records attached to the image index and platform manifests in the registry, not files added to the running container filesystem. A GitHub artifact attestation adds a signed identity-and-integrity claim tying an exact subject digest to the repository, workflow, source ref, and source commit that issued it. Successful verification establishes that binding and detects changed artifact or statement bytes under the verifier's trust in GitHub's identity and signing infrastructure. It does not independently prove that the statement is complete or true: a compromised workflow, builder, scanner, source tree, or dependency can produce a validly signed record for unsafe software. Attestations therefore do not guarantee freedom from defects, vulnerabilities, malware, license problems, scanner omissions, or irreproducibility. See GitHub's artifact-attestation model.

After building, verify the compiled CLI and selected policy without contacting Discord:

Terminal window
node dist/bin.js catalog --check --json > catalog-evidence.json
node dist/bin.js catalog --html ./guildcontrol-contract.html
node dist/bin.js doctor --config ./guildcontrol.json
node dist/bin.js help
node dist/bin.js version

Run the catalog evidence command twice and compare the complete JSON documents when reproducibility matters. Matching contractDigest values identify the same normalized instructions, tool schemas and annotations, prompt declarations, resource declarations, templates, static safety response, and fixed execution guard. The exact inventories and accounting fields make additions, removals, and classification changes reviewable without credentials or Discord access.

The online doctor and MCP smoke verify the token, expected application ID, bot identity, complete bounded ID-only installed-guild inventory, exact configured-scope drift, privileged-intent flags, content-free MCP catalogs, and read-only protocol path without returning guild names, icons, ownership, permissions, features, or raw guild payloads; requesting approximate member or presence counts; listing application emojis, guild members, guild bans, reaction users, scheduled-event subscribers, guild integrations, guild invites, guild vanity URLs, Guild Templates, guild onboarding, Welcome Screens, guild profiles, named guild settings, guild Community state, guild incident actions, authenticated widget settings, Discord channels, member voice states, soundboard sounds, AutoMod rules, or scheduled events; requesting a guild-prune estimate; calling anonymous widget routes; reading messages, ban reasons, or local files; changing application emojis or reactions; moderating reactions; creating or editing static component or rich-embed messages; sending attachments; deleting integrations; revoking invites; creating, synchronizing, editing, or deleting Guild Templates; replacing onboarding, a Welcome Screen, a guild profile, guild settings, guild Community routing, guild incident actions, or widget settings; changing soundboard sounds, AutoMod rules, scheduled events, permission overwrites, member nicknames, member roles, or member voice state; creating threads, channels, or roles; performing member moderation; or beginning a guild prune:

Terminal window
node dist/bin.js doctor --config ./guildcontrol.json --online
node dist/bin.js smoke --config ./guildcontrol.json

Neither command queries or changes voice-channel status or application linked-role metadata. The offline doctor reports only the configured exact metadata-scope candidate count and derived projection policy. Smoke validates the catalog through the normal stdio runner, including any Gateway behavior selected by the policy.

npm run probe:live -- --config ./guildcontrol.json remains an alias for the online doctor JSON report. Operator reports print identifiers, configured counts, effective policy diagnostics, intent state, tool names, resource URIs, template URIs, and prompt names but never print the token. Online doctor does not fetch application-emoji, member, member voice, reaction-user, ban, guild-prune, integration, invite, vanity URL, Guild Template, onboarding, Welcome Screen, guild-profile, guild-settings, guild Community, guild-incident-action, widget-settings, message, or search evidence, read local application-emoji files, call anonymous widget routes, change an application emoji or reaction, moderate reactions, or start the optional Gateway. Smoke performs the same bounded catalog and identity reads after exercising the selected policy's normal startup runtime.

Canonical source: docs/reference.md

Documentation generated for guildctl@2.3.9. Canonical source and edit history remain in the public repository. GuildControl is an independent project and is not affiliated with or endorsed by Discord Inc. Discord is used only to identify the platform that GuildControl connects to.