AGENTS.md@src/meta-srvA

AGENTS.md@src/meta-srv from greptimeteam/greptimedb is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add greptimeteam/greptimedb/src/meta-srv/AGENTS.md@git:20261105.4a85e6f

Pins git:20261105.4a85e6f in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
greptimeteam/greptimedb
Path
src/meta-srv/AGENTS.md
Versions recorded
8
Latest version
git:20261105.4a85e6f, committed Nov 5, 2026
First version recorded
Jun 24, 2026
Size
6,963 bytes
Repository stars
6,792
License
Apache-2.0

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# meta-srv — Agent & Contributor Guide

Navigation aid for `src/meta-srv`. Keep it short and point to code. Paths are
relative to the repo root.

Repo-wide rules that apply here: [`.agents/architecture-invariants.md`](../../.agents/architecture-invariants.md).

## What this crate does

Metasrv is the metadata and coordination service for distributed mode: it
persists cluster/table/region metadata, runs leader election, drives the
heartbeat loop that tracks cluster topology, and orchestrates distributed
procedures (DDL, region migration, repartition). Data models, the KV backend
abstraction, election, key encoding, and the DDL manager live in `common-meta`;
`meta-srv` implements the server, state machine, and control logic on top.

## Module map

| Module | Path | Purpose |
| --- | --- | --- |
| `bootstrap` | `src/meta-srv/src/bootstrap.rs` | Wires up KV backend, election, gRPC services, procedure manager |
| `metasrv` | `src/meta-srv/src/metasrv.rs`, `src/meta-srv/src/metasrv/builder.rs` | `Metasrv` struct, `MetasrvOptions`, `MetasrvBuilder`, startup |
| `state` | `src/meta-srv/src/state.rs` | Leader/Follower state machine and transitions |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add greptimeteam/greptimedb/src/meta-srv/AGENTS.md@sha256:46dc621817c806aa

The line at the top of this page pins the label git:20261105.4a85e6f, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_mkyljx4gv6tb5obs.svg)](https://markdownregistry.com/a/art_mkyljx4gv6tb5obs)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 8 versions of this file, between Jun 24, 2026 and Nov 5, 2026, about one every 19 days.

versioncommittedcommitsizeaudit
git:20261105.4a85e6f latest2026-11-05 4a85e6f 6,963 BA view · diff
git:20261104.351f4202026-11-04 351f420 6,595 BA view · diff
git:20261026.6f5c0642026-10-26 6f5c064 6,465 BA view · diff
git:20261016.98f79d02026-10-16 98f79d0 5,857 BA view · diff
git:20261015.4859e572026-10-15 4859e57 5,676 BA view · diff
git:20261015.cbfbad42026-10-15 cbfbad4 5,500 BA view · diff
git:20261008.65b9a352026-10-08 65b9a35 5,062 BA view · diff
git:20260624.3b8f55e2026-06-24 3b8f55e 4,707 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (6963 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

greptimeteam/greptimedb · 6,792 stars · license Apache-2.0 · pushed 2026-11-07 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_mkyljx4gv6tb5obs
GET https://markdownregistry.com/api/v1/resolve?ref=greptimeteam/greptimedb/src/meta-srv/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/46dc621817c806aabfeb892c0dba3f14c15cf279364acd5efd0dd7881fca2e2a

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from greptimeteam/greptimedb

greptimedb-development-docker-image SKILL.md skill
greptimeteam/greptimedb · .agents/skills/greptimedb-development-docker-image/SKILL.md · Builds a development-only GreptimeDB Docker image from a local debug binary for local-cluster testing, and optionally…
git:20260714.073ae1b · audit B · 6,792 stars
greptimedb-fuzz-ci-failure-investigation SKILL.md skill
greptimeteam/greptimedb · .agents/skills/greptimedb-fuzz-ci-failure-investigation/SKILL.md · Investigate a failed GreptimeDB fuzz CI target link by downloading GitHub Actions job logs plus fuzz artifacts such as…
git:20260803.a6107fb · audit A · 6,792 stars
greptimedb-release-note SKILL.md skill
greptimeteam/greptimedb · .agents/skills/greptimedb-release-note/SKILL.md · Generate a GreptimeDB release changelog (minor, patch, or alpha/beta/rc pre-release) with git cliff (correct range…
git:20261016.a0188c8 · audit A · 6,792 stars
greptimedb-release SKILL.md skill
greptimeteam/greptimedb · .agents/skills/greptimedb-release/SKILL.md · Runbook for publishing a new GreptimeDB version (tag + GitHub release + docs release-note PR) on the upstream…
git:20260619.b365e0d · audit A · 6,792 stars
AGENTS.md AGENTS.md file
greptimeteam/greptimedb · AGENTS.md
git:20260928.43eaea7 · audit A · 6,792 stars
CLAUDE.md CLAUDE.md file
greptimeteam/greptimedb · CLAUDE.md
git:20260626.de873a9 · audit B · 6,792 stars
AGENTS.md@src/common/meta AGENTS.md file
greptimeteam/greptimedb · src/common/meta/AGENTS.md
git:20261015.cbfbad4 · audit A · 6,792 stars
AGENTS.md@src/flow AGENTS.md file
greptimeteam/greptimedb · src/flow/AGENTS.md
git:20260921.66d38e8 · audit A · 6,792 stars
AGENTS.md@src/frontend AGENTS.md file
greptimeteam/greptimedb · src/frontend/AGENTS.md
git:20261104.fd74b92 · audit A · 6,792 stars
AGENTS.md@src/metric-engine AGENTS.md file
greptimeteam/greptimedb · src/metric-engine/AGENTS.md
git:20261021.f866ef2 · audit A · 6,792 stars
AGENTS.md@src/mito2 AGENTS.md file
greptimeteam/greptimedb · src/mito2/AGENTS.md
git:20261106.a0d7981 · audit A · 6,792 stars
AGENTS.md@src/operator AGENTS.md file
greptimeteam/greptimedb · src/operator/AGENTS.md
git:20261030.f2d7465 · audit A · 6,792 stars

Every file in greptimeteam/greptimedb

Browse by kind, by grade A, or by owner.