Skip to content

chore(trust): npm provenance attestation + privacy policy + unknown-server FAQ#320

Merged
raccioly merged 2 commits into
mainfrom
chore/provenance-and-privacy
Jul 16, 2026
Merged

chore(trust): npm provenance attestation + privacy policy + unknown-server FAQ#320
raccioly merged 2 commits into
mainfrom
chore/provenance-and-privacy

Conversation

@raccioly

Copy link
Copy Markdown
Owner

Summary

Fixes the trust gaps behind "DocGuard is unknown, needs a legitimacy check" when installing via an AI agent:

  • npm provenance: publish-npm job now runs npm publish --provenance with id-token: write — every future release tarball carries a Sigstore attestation binding it to this repo's GitHub Actions build (verifiable by npm's Provenance badge, Claude Code's unknown-package check, socket.dev).
  • PRIVACY.md: the short honest policy (no telemetry, all-local, explicit user-initiated outbound paths enumerated). Ships in the npm tarball; also the hard requirement for a future Anthropic Connectors Directory submission.
  • README Privacy & Supply Chain section + FAQ entry explaining the unknown-server prompt and how to pre-trust (.mcp.json, Always allow, managed settings).
  • .agent skill copies version-synced to 0.33.0 (missed the release PR).

Takes effect on the next release (provenance applies at publish time).

Test plan

  • 1018/1018 tests passing; self-guard clean
  • Workflow YAML change is publish-job-scoped only (permissions + flag)

🤖 Generated with Claude Code

raccioly and others added 2 commits July 16, 2026 13:02
…erver FAQ

Why: installing docguard-cli through an AI agent (Claude Code) trips the
default unknown-package/unknown-MCP legitimacy check. Two of the three
trust signals it can verify were missing:

- release.yml publish-npm: `npm publish --provenance` + OIDC id-token
  permission — every future tarball carries a Sigstore attestation
  binding it to this repo's GitHub Actions build.
- PRIVACY.md: DocGuard collects nothing; all analysis local; the three
  explicit user-initiated outbound paths enumerated. Ships in the npm
  package (files list) and satisfies the Anthropic Connectors Directory
  hard requirement (missing policy = instant rejection).
- README: Privacy & Supply Chain section; FAQ: why agents flag unknown
  servers + how to pre-trust (.mcp.json / Always allow / managed
  settings).
- .agent skill copies version-synced to 0.33.0 (missed the release PR).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
npm 11 auto-corrects these at publish with a warning ('bin script name
was invalid and removed' — the published result was fine under npm 10,
but bug-198 precedent says npm 11 turns lenient warnings fatal). Fixed
at the source: bin without the ./ prefix, repository.url in canonical
git+…git form.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@raccioly
raccioly merged commit 4139ca9 into main Jul 16, 2026
8 checks passed
@raccioly
raccioly deleted the chore/provenance-and-privacy branch July 16, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant