
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@cesteral/contract-hash
Advanced tools
Canonical MCP tool-definition hash shared by Cesteral MCP servers and governance
The canonical tool-definition hash for the Cesteral MCP ecosystem.
computeDefinitionHash(tool) returns a SHA-256 (lowercase hex, no prefix)
over the sorted-key JSON projection of an MCP tool's governance-relevant
fields: name, description, inputSchema, outputSchema, annotations.
Both cesteral-mcp-servers (per-release attestation manifest generation)
and cesteral-intelligence governance import this function. The two MUST
produce bit-identical output — the golden-vector tests are the contract.
import { computeDefinitionHash } from "@cesteral/contract-hash";
const hash = computeDefinitionHash({ name: "meta_update_entity", inputSchema, annotations });
Parity is now single-sourced: both repos consume computeDefinitionHash and the
CROSS_REPO_DEFINITION_HASH_GOLDEN vector from this one published package, so
there is no hand-copied fixture to drift. The residual failure mode is a
version skew — the two repos resolving different releases of this package.
Each repo's golden test only proves its installed package is internally
consistent, so a one-sided bump to a release that changed the canonicalization
would pass on both sides while the repos silently computed different hashes,
halting every tool's promotion to attested.
To prevent that:
@cesteral/contract-hash to an exact version (no ^/~).
cesteral-intelligence enforces this with a version-pin test
(contract-hash-version-pin.test.ts) that fails if the declared or installed
version drifts from its parity-validated constant.src/cross-repo-golden.ts (expectedDefinitionHash)
in the same release — the producer self-test
(tests/cross-repo-definition-hash.test.ts) enforces that pairing — then
upgrade both repos in lockstep and update the consumer's pinned constant.A canonicalization change therefore cannot silently reach attested admission:
the consumer's pin test trips on the version bump, and its golden test then
forces a re-validation against the package's re-pinned golden.
FAQs
Canonical MCP tool-definition hash shared by Cesteral MCP servers and governance
The npm package @cesteral/contract-hash receives a total of 160 weekly downloads. As such, @cesteral/contract-hash popularity was classified as not popular.
We found that @cesteral/contract-hash demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.