docs(scanner): add signed manifest reporting examples - #42
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds scanner signed-manifest reporting examples and regression coverage now that scanner check IDs have landed.
Context
verifyManifestSignature()+ test vectorsvalidate --require-signature,agentbridge verify, key generation), so this PR avoids CLI runtime/test files.Why this is parallel-safe
This PR is limited to scanner docs/tests, examples, and the examples validation script. It does not touch CLI command implementation, core signing/verifier implementation, specs, or MCP runtime code.
Files added
examples/scanner-signature-reporting/README.mdexamples/scanner-signature-reporting/reporting.tspackages/scanner/src/tests/signature-reporting-example.test.tsFiles modified
CHANGELOG.mdexamples/README.mdpackages/scanner/README.mdscripts/validate-examples.mjsReport/check IDs demonstrated
The reporting example covers:
requireSignature:manifest.signature.missingmanifest.signature.verifiedmanifest.signature.invalidmanifest.signature.expiredCommands run
npx vitest run packages/scanner/src/tests— passed, 4 files / 46 testsnpm run typecheck:clean— passednpm test— passed, 26 files / 412 testsnpm run build— passednpm run pack:dry-run— passed, all packages OKnpm run validate:examples— passed, including scanner signature reporting check IDsnpm run validate:mcp-config-examples— passednpx tsx examples/scanner-signature-reporting/reporting.ts— passed live reporting smokeLive scanner/reporting smoke
npx tsx examples/scanner-signature-reporting/reporting.tsemitted the expected scenario IDs:unsigned-default:[]unsigned-require-signature:manifest.signature.missingsigned-valid-key-set:manifest.signature.verifiedsigned-tampered-key-set:manifest.signature.invalidsigned-expired-key-set:manifest.signature.expiredThe output is a compact report only; it does not print full manifests, key sets, signature bytes, or private key material.
Browser/computer-use status
No UI/browser surface changed. This is scanner/docs/examples coverage, so command-level scanner/reporting smoke was the appropriate validation.
Confirmations
packages/cli/src/*avoided).packages/core/src/*avoided).apps/mcp-server/src/*avoided).package-lock.jsonchanges.