Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CommitLayer client packages

The SDKs, the MCP recorder and the framework and workflow-runtime integrations for CommitLayer: record what an agent is about to do as an action under a contract, then read the verdict CommitLayer reaches by checking the systems of record. The agent's own result is never the evidence.

Package What it is Install
commitlayer (PyPI) Python SDK: client, @action decorator, watermarks, contract drafting pip install commitlayer
commitlayer (npm) TypeScript/JavaScript SDK, standard library only npm install commitlayer
commitlayer-mcp-recorder A stdio proxy in front of any MCP server that records a mapped tool call as an action before forwarding it (Python) pip install commitlayer-mcp-recorder
@commitlayer/mcp-recorder The same recorder in TypeScript npm install -g @commitlayer/mcp-recorder
commitlayer-integrations LangGraph and LangChain, CrewAI, OpenAI Agents SDK, Pydantic AI, Temporal and Inngest (Python) pip install 'commitlayer-integrations[langgraph]' and so on
@commitlayer/integrations Temporal and Inngest (TypeScript) npm install @commitlayer/integrations

Every package does the same two things in its runtime's own terms:

  1. Record the intent before the work runs: POST /v1/actions with the contract, the subject and the parameters taken from the call's own arguments. The result of the work is never sent.
  2. Read the verdict: GET /v1/actions/{ref} until the verification settles, then branch on PASS, FAIL or UNKNOWN. UNKNOWN means the systems of record could not be read, never that the action probably worked.

The agent may declare its intent and may read the verdict. It never controls the facts, the governing contract or the final evidence.

Documentation

Development

Python 3.10+ and Node 20+. The Python tests run without any framework or runtime SDK installed; the two optional runtimes are needed only for their own test files.

python -m venv .venv && . .venv/bin/activate
pip install pytest ./sdk/python ./recorder/python './integrations/python[temporal,inngest]'
python -m pytest -q integrations/python/tests recorder/python/tests

for d in sdk/js recorder/js integrations/js; do (cd $d && npm ci && npm run build && npm test); done

An API key is read from COMMITLAYER_API_KEY and is never logged, printed or written to a fixture. Nothing in this repository needs one: the tests use a fake transport.

Releases

Releases follow the versions, not tags. Every push to main publishes each package whose pyproject.toml or package.json version is not yet on PyPI or npm, through Trusted Publishing on PyPI and npm with provenance, and tags it <package>-v<version>; no registry token exists anywhere. Each CommitLayer API release also starts an automated check of what the packages use, and, when they must follow the API, an update that is tested against the real API and merged on green CI. RELEASING.md describes the whole flow, the one-time setup, how to run a stage again and how to publish by hand (a tag <package>-v<version> still works).

Security

To report a vulnerability, email [email protected]. See SECURITY.md.

Licence

MIT, see LICENSE. Copyright Asterfold Labs, Inc.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages