Data Integrity

Data Integrity is an agent for Claude Code from ivegamsft/basecoat. It costs 68 tokens per session (671 once invoked), scanned A, original, MIT.

A guide for keeping data correct and recoverable when it is copied across multiple servers or regions. It covers consistency choices, conflict handling, backup checks, and recovery planning.

In plain words
What is it for?
Use it to design conflict-resolution rules, detect differences between replicas, verify backups, and plan recovery around recovery time and acceptable data-loss limits.
Why use it?
It helps prevent replicas from disagreeing, backups from failing unnoticed, and recovery plans from being untested. It also explains the trade-off between immediate consistency and updates that arrive later.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/ivegamsft/basecoat/basecoat-80-data-data-integrity
Clone the repo
git clone --depth 1 https://github.com/ivegamsft/basecoat

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Data Integrity

README.md
[![agentmods](https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-80-data-data-integrity.svg)](https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-80-data-data-integrity)
Your own site
<a href="https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-80-data-data-integrity"><img src="https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-80-data-data-integrity.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 671 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.00671
Opus 5 $0.00034 $0.00336
Sonnet 5 $0.00014 $0.00134
Haiku 4.5 $0.00007 $0.00067

Measured yesterday against content hash 3bc167e6c948, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Data Integrity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/basecoat-80-data-data-integrity.agent.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Data Integrity Architect Agent

Inputs

  • Database topology, replication mode, and transaction profile
  • Consistency requirements and data-loss tolerance
  • Backup, recovery, RTO/RPO, and regulatory constraints

Overview

Focus on distributed integrity: consistency strategy, conflict handling, corruption detection, and recoverability across nodes or regions.

Use Cases

Design CP or AP trade-offs, conflict resolution, drift detection, and tested backup or recovery plans.

Core Concepts

Choose consistency deliberately. Strong consistency protects correctness; eventual consistency requires explicit merge policy and monitoring.

Workflow

  1. Select the consistency model based on business and regulatory risk.
  2. Define conflict resolution such as CRDT, vector clock, LWW, or application logic.
  3. Set backup, replication, and PITR strategy from RTO/RPO targets.
  4. Test recovery regularly and verify restored integrity.
  5. Add drift or checksum checks between replicas.

Required Skills

Use repository guidance for eventual consistency, backup planning, and distributed transactions when present.

Integration Points

Coordinate with Data Tier, DevOps, SRE, and Incident Responder workflows.

Output

Return consistency recommendation, conflict-resolution design, recovery plan, drift-detection approach, and runbook.

Standards & References

Model

Recommended: claude-sonnet-4.6 Rationale: See agent description for task complexity and reasoning requirements. Minimum: gpt-5.4-mini

Governance

This agent operates under the BaseCoat governance framework.

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +3 lines · +41 tokens per session 3bc167e6c948
  2. 2d ago First seen · 80 lines · 27 tokens per session scan A 8e92a00d24af

Subscribe to this mod's changes

Data Integrity is an agent published in the GitHub repository ivegamsft/basecoat (4 stars, last pushed 2d ago), licensed MIT. It adds 68 tokens to every session and 671 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

messaging-cache

Fully autonomous pentest sub agent using MCP-backed fastcmp toolbox for message brokers and caches (Redis/RabbitMQ/Kafka/NATS/MQTT/ActiveMQ/ZooKeeper) covering unauthenticated exposure, management APIs, and RCE-adjacent primitives.

ASCIT31/Dark-Moon · 56 tokens

data

Use when designing database schemas, writing migrations, optimizing queries, or planning caching strategies.

herbert-julio-azion/specialist-agent · 19 tokens

qdrant-expert

Configure and operate the vector store in production. TRIGGER WHEN: creating Qdrant collections, tuning HNSW, quantization, dense plus sparse hybrid search, payload indexing, multi-tenancy, or Qdrant performance troubleshooting. DO NOT TRIGGER WHEN: end-to-end RAG design, or another vector database such as Pinecone…

acaprino/daodan · 91 tokens

agentic-coding-deployment-verification-agent

Produces Go/No-Go deployment checklists with SQL verification queries, rollback procedures, and monitoring plans. Use when PRs touch production data, migrations, or risky data changes.

DolphinAI2026/dolphin-code · 45 tokens

database-expert

Use this agent as a distinguished Database and Data Architecture authority for peer-review-level review of PostgreSQL, Redis, and Firestore patterns across the codebase. Covers query optimization, schema design, migration safety, connection pooling, caching strategy, data modeling, consistency patterns, and polyglot…

asiflow/claude-nexus-hyper-agent-team · 313 tokens

crossplane-aws-rds-expert

Expert in Crossplane AWS RDS provider (provider-aws-rds/provider-upjet-aws) specializing in declarative RDS management, Aurora clusters, pipeline-mode compositions with Go templating, IRSA authentication, and production-ready database infrastructure. MUST BE USED for Crossplane RDS resource definitions…

nodnarbnitram/claude-code-extensions · 95 tokens