motte

module
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: MIT

README

motte

motte is a version control store and a set of virtual workspaces for coding agents. It is built on jj.

Status: early. The repository holds milestone M1: the specification, the grant format, the wire types and the store primitives. The store service, the client, the workspace daemon and the jj backend follow.

Run it with no other service: go test ./... runs the tests that need no database, and the section Run locally of docs/architecture.md starts the service on SQLite and a directory. The metadata store and the object store are interfaces (meta, bucket) with PostgreSQL, SQLite, Cloud Storage and filesystem backends.

Read docs/architecture.md for the design. Read AGENTS.md before you change the repository.

The GitHub repository is a read-only mirror. Changes land in the canonical motte repository through ward, which mirrors its branches and tags to GitHub. Pull requests on GitHub cannot merge. Open an issue to propose a change.

License: MIT. The jj/ crate is Apache-2.0, because it adapts code from jj-lib.

Directories

Path Synopsis
Package api holds the wire types and error codes of the /v1 routes.
Package api holds the wire types and error codes of the /v1 routes.
Package bucket is the object store seam of the store service.
Package bucket is the object store seam of the store service.
buckettest
Package buckettest is the conformance suite of bucket.Store.
Package buckettest is the conformance suite of bucket.Store.
fs
Package fs backs the bucket seam with a directory.
Package fs backs the bucket seam with a directory.
gcs
Package gcs backs the bucket seam with Google Cloud Storage.
Package gcs backs the bucket seam with Google Cloud Storage.
s3
Package s3 backs the bucket seam with an S3-compatible object store: AWS S3, Cloudflare R2 or MinIO.
Package s3 backs the bucket seam with an S3-compatible object store: AWS S3, Cloudflare R2 or MinIO.
Package client is the typed Go client of the motte store and control planes.
Package client is the typed Go client of the motte store and control planes.
cmd
motte command
Command motte is the store service.
Command motte is the store service.
motte-vfsd command
Command motte-vfsd is the node daemon of the virtual workspace.
Command motte-vfsd is the node daemon of the virtual workspace.
Package grant signs and verifies the bearer grants of the store.
Package grant signs and verifies the bearer grants of the store.
internal
clock
Package clock aliases the quartz Clock and adds Real, Or and Wait.
Package clock aliases the quartz Clock and adds Real, Or and Wait.
gitpack
Package gitpack reads git pack files and v2 pack indexes by ranged reads.
Package gitpack reads git pack files and v2 pack indexes by ranged reads.
gitproto
Package gitproto speaks the git smart HTTP protocol over an object reader: ref advertisement, protocol v2 fetch and ls-refs, and the commands and report of receive-pack.
Package gitproto speaks the git smart HTTP protocol over an object reader: ref advertisement, protocol v2 fetch and ls-refs, and the commands and report of receive-pack.
land
Package land rebases a linear range of commits onto the tip of a ref by applying its tree changes, with a file-level conflict check.
Package land rebases a linear range of commits onto the tip of a ref by applying its tree changes, with a file-level conflict check.
leaklint command
Command leaklint fails when a tracked file or a commit message holds a term of the denylist.
Command leaklint fails when a tracked file or a commit message holds a term of the denylist.
lint/cmd/lint command
Command lint runs the repository analyzers.
Command lint runs the repository analyzers.
lint/paralleltests
Package paralleltests reports a top-level test that does not call t.Parallel and is not listed in testdata/serial-tests.txt.
Package paralleltests reports a top-level test that does not call t.Parallel and is not listed in testdata/serial-tests.txt.
lint/wallclock
Package wallclock reports time.Sleep and time.After in test files outside a testing/synctest.Test bubble.
Package wallclock reports time.Sleep and time.After in test files outside a testing/synctest.Test bubble.
pgtest
Package pgtest gives a test a pool on a private migrated schema.
Package pgtest gives a test a pool on a private migrated schema.
pktline
Package pktline reads and writes the pkt-line framing of the git wire protocols.
Package pktline reads and writes the pkt-line framing of the git wire protocols.
refname
Package refname holds the ref name rule of the store.
Package refname holds the ref name rule of the store.
release/cmd/release command
Command release builds and publishes release artifacts with no CI provider.
Command release builds and publishes release artifacts with no CI provider.
release/publish
Package publish is the seam of the release destination.
Package publish is the seam of the release destination.
release/publish/dir
Package dir publishes release artifacts to a directory, such as a mounted bucket.
Package dir publishes release artifacts to a directory, such as a mounted bucket.
release/publish/github
Package github publishes release artifacts as assets of a GitHub release through the gh CLI.
Package github publishes release artifacts as assets of a GitHub release through the gh CLI.
release/publish/publishtest
Package publishtest is the conformance suite of publish.Publisher.
Package publishtest is the conformance suite of publish.Publisher.
repos
Package repos holds the rules of a repository that the store keeps.
Package repos holds the rules of a repository that the store keeps.
seams
Package seams enforces the provider seam rules of AGENTS.md.
Package seams enforces the provider seam rules of AGENTS.md.
server
Package server is the HTTP surface of the store: the store plane that the node daemon and the jj backend call, and the control plane of the caller.
Package server is the HTTP surface of the store: the store plane that the node daemon and the jj backend call, and the control plane of the caller.
store
Package store keeps the git objects of a repository in packs and the operation objects of a workspace, in one object store.
Package store keeps the git objects of a repository in packs and the operation objects of a workspace, in one object store.
testcount
Package testcount counts the expensive operations that test helpers start and prints the counts of a package at the end of its test run, for internal/testtime to check against testdata/test-time-budget.txt.
Package testcount counts the expensive operations that test helpers start and prints the counts of a package at the end of its test run, for internal/testtime to check against testdata/test-time-budget.txt.
testtime command
Command testtime reads the output of go test -json on standard input, prints the readable test log, and fails when a test or a package is slower than the budget of testdata/test-time-budget.txt.
Command testtime reads the output of go test -json on standard input, prints the readable test log, and fails when a test or a package is slower than the budget of testdata/test-time-budget.txt.
vfs/ctl
Package ctl serves the control protocol of a workspace: one JSON object for each line over a unix socket.
Package ctl serves the control protocol of a workspace: one JSON object for each line over a unix socket.
vfs/lower
Package lower is a lazy read-only file system over one commit of the version control store: the lower layer of a kernel overlay, with the dirty set read from the upper directory.
Package lower is a lazy read-only file system over one commit of the version control store: the lower layer of a kernel overlay, with the dirty set read from the upper directory.
vfs/nodegrant
Package nodegrant mints the node grants of the CSI plugin.
Package nodegrant mints the node grants of the CSI plugin.
vfs/tel
Package tel carries the correlation attributes, spans and log records of the node daemon.
Package tel carries the correlation attributes, spans and log records of the node daemon.
vfs/upperdir
Package upperdir reads the upper directory of the kernel overlay that serves a mount-mode workspace and reports which paths differ from the base tree that the read-only lower layer serves.
Package upperdir reads the upper directory of the kernel overlay that serves a mount-mode workspace and reports which paths differ from the base tree that the read-only lower layer serves.
Package meta is the metadata seam of the store service: repositories, workspaces and their epoch fence, op heads, refs and the pack listing.
Package meta is the metadata seam of the store service: repositories, workspaces and their epoch fence, op heads, refs and the pack listing.
metatest
Package metatest is the conformance suite of meta.Store.
Package metatest is the conformance suite of meta.Store.
postgres
Package postgres is the PostgreSQL backend of meta.Store.
Package postgres is the PostgreSQL backend of meta.Store.
sqlite
Package sqlite is the SQLite backend of meta.Store, for tests and for a service that runs with no other process.
Package sqlite is the SQLite backend of meta.Store, for tests and for a service that runs with no other process.
Package testserver starts a real motte server in the process of a caller's test.
Package testserver starts a real motte server in the process of a caller's test.
Package volume is the contract between a caller's sandbox driver and the node plugin: the volume attributes of a workspace.
Package volume is the contract between a caller's sandbox driver and the node plugin: the volume attributes of a workspace.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL