Skip to main content
Glama

Matrix Scroll

Matrix Scroll is signed commit-time provenance for agent-assisted Git, verified offline, with hardware as an optional preview trust upgrade.

This repository is the canonical SDK, verifier contract, fixture set, and release surface for the product.

Matrix Scroll is a cryptographic evidence layer for Git. When an agent, CI workflow, or human operator produces a commit, a signed commit envelope can record the actor, tool, and optional bounded scope. Anyone can verify that envelope locally, in CI, or in the browser without trusting the editor session that produced it.

Keep GitHub Advanced Security, Semgrep, Snyk, branch protection, and artifact attestations. Matrix Scroll adds signed commit-time authorship proof before merge, and it keeps the same offline verification contract across the CLI, browser, CI, and the SE050 preview path.

The reference SDK ships pure Ed25519 over canonical manifest bytes today. The SSX360 / NXP SE050 path is the compatible next trust layer and remains a preview path until device acceptance is complete.

Honest limits

  • Shipping now: PyPI matrixscroll==0.2.6, Git post-commit hooks, matrixscroll envelope-verify, Scroll Gate PR verification, browser verifier, the GitHub Action, and a USB CDC host transport preview for the SE050 rollout path. Emulated mode is the default evaluation path.

  • In progress: RP2350 + SE050 firmware validation, external Ed25519-capable hardware key backends, and transparency-log integrations.

  • Not: IAM, sandboxing, prompt filtering, or an agent runtime.

Related MCP server: git-steer

Where it fits

  • Scanners and branch protection catch code and policy issues; Matrix Scroll records who or what signed the change before push.

  • Hardware keys and build attestations remain complementary roots and downstream proofs; Matrix Scroll covers commit-time provenance.

  • The public contract stays pure Ed25519 over canonical manifest bytes, whether the signer is emulated today or hardware-backed later.

Common questions

What is Matrix Scroll and how does it secure Git?

Matrix Scroll is signed commit-time provenance for agent-assisted Git. It secures Git by attaching an Ed25519-signed commit envelope to a commit, recording the actor, tool, and optional bounded scope, then letting reviewers verify that proof offline in the CLI, browser, or CI before merge.

How do hardware and emulated modes differ in Matrix Scroll?

Emulated mode ships today and keeps the signing key on disk with owner-only permissions so teams can evaluate the full workflow now. Hardware mode keeps the same verifier contract and commit envelope schema, but moves the private key into the SE050 secure element so the host cannot export it; that path remains preview-only until device acceptance is complete.

How can I integrate Matrix Scroll into a CI/CD workflow?

Install the SDK and hooks in your repo, publish commit envelopes to refs/notes/matrixscroll before PR review, and use SSX360/matrixscroll-verify-action@v1 to verify the full PR commit range in GitHub Actions. Protected branches can then require Matrix Scroll proof alongside your existing scanners, branch protection, and build attestations.

Quickstart

pip install "matrixscroll==0.2.6"
matrixscroll hook-install
matrixscroll hook-status

export MATRIXSCROLL_ACTOR_TYPE=agent
export MATRIXSCROLL_TOOL=agent-runner
git commit -m "feat: agent-assisted change"

matrixscroll envelope-verify "$(git rev-parse HEAD)"

See docs/quickstart-git.md and run examples/demo/agent-commit-demo.sh.

CI verify

Scroll Gate for a PR commit range

- uses: actions/checkout@v4
  with:
    fetch-depth: 0
- uses: SSX360/matrixscroll-verify-action@v1
  with:
    head-ref: ${{ github.event.pull_request.head.sha }}
    base-ref: ${{ github.event.pull_request.base.sha }}
    source: notes
    matrixscroll-version: "0.2.6"
    require-mode: emulated

Publish envelopes to git notes before review:

matrixscroll envelope-publish-notes --base origin/main --head HEAD
git push origin refs/notes/matrixscroll
- uses: actions/checkout@v4
  with:
    fetch-depth: 0
- uses: SSX360/matrixscroll-verify-action@v1
  with:
    head-ref: ${{ github.event.pull_request.head.sha }}
    base-ref: ${{ github.event.pull_request.base.sha }}
    source: notes
    matrixscroll-version: "0.2.6"
    summary-output: provenance-summary.json

See docs/quickstart-git.md and examples/ci/protected-branch.yml.

The --require-mode, --trusted-keys, and actor or delegation policy checks are available in the 0.2.x line; the examples in this README pin 0.2.6.

Why it is different from Sigstore

Sigstore, GitHub artifact attestations, and SLSA answer "what was built in CI?" Matrix Scroll answers "who signed this commit before push?" The systems are complementary: Matrix Scroll signs commit envelopes at commit time, while artifact-attestation systems sign build outputs later in the delivery chain.

Matrix Scroll does not compete with general authentication keys on their home field. Existing hardware roots can become Matrix Scroll signing backends only when they preserve the same pure Ed25519 byte contract.

Python API

pip install "matrixscroll==0.2.6"
import matrixscroll

print(matrixscroll.status())
# {'schema': 'matrixscroll.identity.v1', 'available': True,
#  'mode': 'emulated', 'device_id': 'MS-A3F2-9C81', ...}

signed = matrixscroll.sign_manifest({"release": "v1.0.0", "artifacts": [...]})

assert matrixscroll.verify_manifest(signed)

CLI

$ matrixscroll status
{
  "available": true,
  "device_id": "MS-A3F2-9C81",
  "mode": "emulated",
  "public_key": "...",
  "schema": "matrixscroll.identity.v1"
}

$ matrixscroll sign release.json > release.signed.json
$ matrixscroll verify release.signed.json
{"device_id": "MS-A3F2-9C81", "mode": "emulated", "ok": true, "signed_at": "..."}

matrixscroll verify exits 0 on a valid signature and 2 on failure (tampered manifest, missing signature block, wrong schema or algorithm, mismatched device ID, malformed public key, unreadable file).

How it works

your IDE / agent / CI
         |
         |  commit envelope, release manifest, evidence pack, SBOM
         v
matrixscroll.sign_manifest(...)  /  post-commit hook
         |
         |  canonical JSON (sorted keys, ASCII-escaped, no NaN,
         |  signature block excluded from input)
         v
IdentityProvider          -->  Ed25519 signature
(L1 emulated today,
 SSX360 / SE050 roadmap)
         |
         v
signed document  -->  matrixscroll.verify_manifest(...)
                      (anyone, anywhere, offline)

Switch providers with MATRIXSCROLL_MODE. Hardware mode includes a USB CDC host transport preview and a mock path for CI; real SE050 signing still depends on device firmware validation. External-key backends stay out of the mainline until they can sign the same canonical bytes with Ed25519.

For rollout order, start with MATRIXSCROLL_MODE=emulated for evaluation, layer in external Ed25519-capable signers only when they stay verifier compatible, and treat hardware as the SE050 preview path until device acceptance is complete.

Compliance levels

Level

Provider

Backed by

Status

L1 Emulated

EmulatedProvider

Software key, file-backed (0600)

Shipping

L2 Hardware

HardwareProvider

NXP SE050 secure element (SSX360)

In progress

L3 Attested

future

L2 + remote attestation

Roadmap

status() exposes the active level via the mode and available fields.

Storage and trust boundaries

  • Emulated key store: ~/.matrixscroll/device.json (override with MATRIXSCROLL_HOME).

  • The directory is created 0700; the seed file is opened 0600 with O_CREAT|O_EXCL so the private seed is never momentarily world-readable.

  • A corrupt or truncated store fails loud (IdentityError) rather than silently minting a fresh identity.

  • The planned hardware path holds nothing private on disk; the seed is sealed in the secure element.

Reference implementation, not the only one

Matrix Scroll is a protocol. This Python package is the reference. We welcome implementations in Rust, Go, TypeScript, and embedded C. Run them against vectors/ to self-certify. See CONTRIBUTING.md.

Agentic AI guidance proof

The repo includes a machine-readable control matrix at controls/agentic_ai_controls.json, an example bounded-agent evidence manifest at examples/agentic_ai_evidence_manifest.json, and executable checks in tests/test_agentic_guidance.py.

Model Context Protocol (MCP) Server

Matrix Scroll includes an optional Model Context Protocol (MCP) server that exposes commit-time provenance, trust auditing, and configuration tools directly to AI agents and IDEs (such as Cursor, VS Code, and Claude Desktop).

Installation

Install the package with the optional [mcp] dependencies:

pip install "matrixscroll[mcp]"

Running the Server

Start the MCP server over standard input/output (stdio):

python -m matrixscroll.mcp

Exposed Tools

The server registers 10 Model Context Protocol tools:

  1. analyze_workspace(workspace: str): Scans a local workspace directory and returns its project profile (languages, frameworks, notable SDKs).

  2. brainstorm_workspace(workspace: str, goal: str): Generates file-grounded development ideas and next-steps for the workspace.

  3. recommend_ecosystem(workspace: str, goal: str): Recommends appropriate MCP servers, skills, repositories, and APIs.

  4. build_usecase_blueprint(workspace: str, goal: str): Synthesizes a structured build, integration, and foundation blueprint.

  5. scan_research_radar(workspace: str, goal: str): Surfaces relevant papers, preprints, and models.

  6. scan_market_radar(workspace: str, goal: str): Surfaces launch signals and developer-discussion references.

  7. benchmark_openhuman(workspace: str): Evaluates project-first safety and telemetry stance.

  8. audit_trust_surface(workspace: str, target: str): Audits naming consistency, naming drifts, and active proof links.

  9. scaffold_editor_integration(workspace: str, editor: str, write: bool): Previews or writes the workspace configuration (.cursor/mcp.json or .vscode/mcp.json).

  10. plan_matrixscroll_rollout(workspace: str, audience: str, goal: str): Packages a rollout guide with proof assets and verifier steps.

The default posture is read-only. File writing occurs only when using scaffold_editor_integration with write=True.

License

  • Code: Apache-2.0 (LICENSE).

  • Specification text (SPEC.md, vectors/): CC0 1.0 - public domain.

Security

See SECURITY.md. Report vulnerabilities privately to security@matrixscroll.com or via a GitHub Security Advisory.

Install Server
A
license - permissive license
A
quality
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
8Releases (12mo)
Commit activity

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SSX360/matrixscroll'

If you have feedback or need assistance with the MCP directory API, please join our Discord server