Compliance and audit / AI usage records
AI usage records
The compliance question the mergecat Claude Code plugin asks before it sends repository data to Claude, and the audit records it keeps on your computer.
Before the mergecat Claude Code plugin sends any data of your repository to Claude, it asks a compliance question and records the answer. This page lists the exact questions, when they are asked, every field of the record, where the records are stored and how to collect them for an audit.
Evidence of a declaration
A record documents what the user declared at the time of use: the account type and, if needed, the decision to proceed. mergecat does not verify the account type with the AI provider. For the legal context, see EU AI Act and NIS2.
When the question is asked
- Only in AI assistants, through the mergecat MCP server: Claude Code, and GitHub Copilot, OpenAI Codex or GitLab Duo. The desktop app, the VS Code extension and the command line never send data to an AI service, so they never ask.
- Once per session. Claude Code (like the other assistants) starts one mergecat MCP server process per session, and the answer lives in the memory of that process. A new session asks again.
- Before the first repository data is read. The skills
/mergecat:tagsand/mergecat:changelogcallcompliance_statusfirst. If Claude calls a repository tool before the question is answered, the tool refuses to run and returns the questions instead. - Again after a “no”. When you chose not to proceed, the repository tools stay locked for the session. If you later ask for mergecat data in the same session, Claude asks again and a new record is written.
The questions
Claude asks the questions translated into the language of the conversation, as yes/no questions, and waits for your answer: the skills and the server’s instructions tell Claude never to answer for you. The record stores the English text below, the language the questions were asked in and your answers as you wrote them.
-
Always asked:
Are you using a Claude Team or Enterprise account? mergecat is about to send data of this Git repository to Claude (commit messages, authors, dates, branch and tag names, and pull request data when available). Your answer is recorded for EU AI Act and NIS2 compliance. Please answer yes or no.
-
Asked only when the first answer is no:
You are not using a Claude Team or Enterprise account. Are you aware of the EU AI Act and the NIS2 directive, and do you want to proceed anyway? Please answer yes or no.
These are the questions in Claude Code. With another assistant they name its service and its business plans, for example “Are you using a GitHub Copilot Business or Enterprise license? mergecat is about to send data of this Git repository to GitHub Copilot …” (see Other AI assistants); the record stores the questions as asked, and its AI service field names the service and the client application.
Outcomes
| Answers | Outcome | Repository tools | Copy in the conversation |
|---|---|---|---|
| 1: yes | proceed | unlocked for the session | full record |
| 1: no, 2: yes | proceed | unlocked for the session | full record |
| 1: no, 2: no | stopped | stay locked; no repository data is sent to Claude | redacted record (see below) |
The tools that enforce it
Two MCP tools handle the question. Neither reads the history of the repository. The full reference is on MCP server and tools.
compliance_status
No parameters. Returns whether the session is confirmed and what to ask.
| Field | Meaning |
|---|---|
confirmed | true once an answer with outcome proceed was recorded in this session |
askedThisSession | true if any answer was recorded in this session |
lastOutcome | proceed, stopped or null |
lastRecordedAt | Date and time of the last record, or null |
lastRecordFile | Path of the last Markdown record, or null |
questions.account | The first question |
questions.proceedIfNotTeamOrEnterprise | The second question |
recordsFolder | The folder where records are written |
record_compliance_answer
Writes the record and, on outcome proceed, unlocks the repository tools for the session.
| Parameter | Type | Required | Description |
|---|---|---|---|
team_or_enterprise_account | boolean | yes | Answer to the first question |
aware_and_proceed | boolean | when the first answer is false | Answer to the second question; the call fails without it when the first answer is false |
requested_action | string | yes | What you asked mergecat for, e.g. changelog v1.2.0..v1.3.0 (up to 500 characters are kept) |
answers_verbatim | string | no | Your answers as you wrote them, or the options you chose (up to 2,000 characters are kept) |
language | string | no | Language of the questions, ISO 639-1 (e.g. it) |
ai_model | string | no | The Claude model that asked |
repository | string | no | Path of the repository; default: the Claude Code project |
It returns the outcome, the record ID, the paths of the Markdown record and of the log, and the record as Markdown for the conversation.
What a record contains
Each decision produces two entries with the same content: a Markdown document and one line in the JSON Lines log.
Markdown record
The record is a table followed by the questions and the answers.
| Field | Content |
|---|---|
| Record ID | Random UUID of this record |
| Date and time (UTC) | When the answer was recorded (ISO 8601) |
| Outcome | Proceeded with a Team or Enterprise account, proceeded with another account after confirming awareness of the EU AI Act and NIS2, or stopped |
| Requested action | What you asked mergecat for |
| User (operating system) | Your user name on this computer |
| User (Git configuration) | user.name and user.email from the Git configuration of the repository |
| Computer | Host name of this computer |
| Repository | Name of the repository |
| Repository folder | Path of the repository on this computer |
| Repository remote | URL of origin (or of the first remote) |
| AI service | The service and the client application, e.g. Claude (Anthropic) through Claude Code 2.1.0 and the mergecat MCP server or GitHub Copilot through Visual Studio Code 1.106.0 and the mergecat MCP server |
| AI model | The model ID Claude reported |
| Data sent to the AI service | The categories of data the mergecat tools send to the AI service |
| Language of the questions | ISO 639-1 code |
| Session | Random ID of the MCP server process (one per Claude Code session) and when it started |
| mergecat version | Version of the MCP server |
Below the table: each question with the answer (Yes or No), your answers as written, the paths where the record is stored, and the sentence “This record documents the declaration of the user at the time of use; it is not a legal assessment.”
Sample record
All values below are fictional.
# AI usage compliance record (EU AI Act, NIS2)
Declaration collected by mergecat before repository data was sent to an AI service.
| Field | Value |
|---|---|
| Record ID | 3f6c2a9e-8d41-4b7a-9c35-0e2f5d7a1b64 |
| Date and time (UTC) | 2026-03-31T09:14:22.418Z |
| Outcome | Proceeded: the user declared using a Claude Team or Enterprise account. |
| Requested action | changelog v1.2.0..v1.3.0 |
| User (operating system) | jdoe |
| User (Git configuration) | Jane Doe <jane.doe@example.com> |
| Computer | JDOE-MBP |
| Repository | web-shop |
| Repository folder | /Users/jdoe/src/web-shop |
| Repository remote | https://github.com/example-org/web-shop.git |
| AI service | Claude (Anthropic) through Claude Code 2.1.0 and the mergecat MCP server |
| AI model | claude-sonnet-4-5 |
| Data sent to the AI service | Git history metadata of the repository: commit messages, author and committer names and e-mail addresses, dates, branch and tag names, commit SHAs; pull request (merge request) titles, numbers, labels and linked issues when a GitHub, GitLab or Azure DevOps token is configured. |
| Language of the questions | en |
| Session | 7b1e0c55-2f9a-4d8e-a6b3-91c4e7d2f0aa (started 2026-03-31T09:12:03.977Z) |
| mergecat version | 0.3.0 |
## Questions and answers
1. **Are you using a Claude Team or Enterprise account? mergecat is about to send data of this Git repository to Claude (commit messages, authors, dates, branch and tag names, and pull request data when available). Your answer is recorded for EU AI Act and NIS2 compliance. Please answer yes or no.**
Answer: **Yes**
**Answers as written by the user:**
> Yes, we use the company Team plan
---
Stored on this computer in `/Users/jdoe/Library/Application Support/mergecat/compliance/2026-03-31T09-14-22-418Z-web-shop-proceed.md` and appended to `/Users/jdoe/Library/Application Support/mergecat/compliance/compliance-log.jsonl`.
This record documents the declaration of the user at the time of use; it is not a legal assessment.
JSON Lines log
Every decision also appends one line (one JSON object) to compliance-log.jsonl in the same folder. mergecat only appends to the log and never rewrites it, which makes it easy to count, filter and export decisions.
| JSON field | Content |
|---|---|
id | Record ID |
recordedAt | Date and time (UTC, ISO 8601) |
outcome | proceed or stopped |
teamOrEnterpriseAccount | Answer to the first question |
plan | The business or enterprise plan the first question asked about, e.g. a Claude Team or Enterprise account |
awareAndProceed | Answer to the second question; absent when it was not asked |
questions.account, questions.proceed | The questions as asked; proceed is absent when the second question was not asked |
answersVerbatim | Your answers as written, when Claude passed them |
language | Language of the questions |
requestedAction | What you asked mergecat for |
aiService, aiModel | The AI service and the model |
dataSent | The categories of data sent to the AI service |
user.osUser, user.gitName, user.gitEmail | Operating-system user and Git identity |
host | Computer name |
repository.name, repository.root, repository.remote | Repository name, folder and remote |
session.id, session.startedAt | MCP server session |
mergecatVersion | Version of the MCP server |
files.markdown, files.log | Paths of the Markdown record and of the log |
The sample above as a log line, formatted here for reading (in the file it is a single line):
{
"id": "3f6c2a9e-8d41-4b7a-9c35-0e2f5d7a1b64",
"recordedAt": "2026-03-31T09:14:22.418Z",
"outcome": "proceed",
"teamOrEnterpriseAccount": true,
"plan": "a Claude Team or Enterprise account",
"questions": { "account": "Are you using a Claude Team or Enterprise account? …" },
"answersVerbatim": "Yes, we use the company Team plan",
"language": "en",
"requestedAction": "changelog v1.2.0..v1.3.0",
"aiService": "Claude (Anthropic) through Claude Code 2.1.0 and the mergecat MCP server",
"aiModel": "claude-sonnet-4-5",
"dataSent": "Git history metadata of the repository: …",
"user": { "osUser": "jdoe", "gitName": "Jane Doe", "gitEmail": "jane.doe@example.com" },
"host": "JDOE-MBP",
"repository": { "name": "web-shop", "root": "/Users/jdoe/src/web-shop", "remote": "https://github.com/example-org/web-shop.git" },
"session": { "id": "7b1e0c55-2f9a-4d8e-a6b3-91c4e7d2f0aa", "startedAt": "2026-03-31T09:12:03.977Z" },
"mergecatVersion": "0.3.0",
"files": {
"markdown": "/Users/jdoe/Library/Application Support/mergecat/compliance/2026-03-31T09-14-22-418Z-web-shop-proceed.md",
"log": "/Users/jdoe/Library/Application Support/mergecat/compliance/compliance-log.jsonl"
}
}
Where records are stored
Records are written on the computer that runs Claude Code, in the mergecat data folder of the user:
~/Library/Application Support/mergecat/compliance/%APPDATA%\mergecat\compliance\$XDG_DATA_HOME/mergecat/compliance/Without XDG_DATA_HOME: ~/.local/share/mergecat/compliance/.
Each Markdown record is named after the time, the repository and the outcome, for example 2026-03-31T09-14-22-418Z-web-shop-proceed.md (no-repository when the folder is not a Git repository). On macOS and Linux the files are created readable and writable by your user only.
Use another folder
Set MERGECAT_COMPLIANCE_DIR to an absolute folder before you start Claude Code; the plugin passes it to the MCP server. mergecat creates the folder if it does not exist.
export MERGECAT_COMPLIANCE_DIR="$HOME/Compliance/mergecat"
claudeAdd the export line to ~/.zshrc to keep it.
setx MERGECAT_COMPLIANCE_DIR "D:\Compliance\mergecat"setx applies to terminals opened afterwards: open a new terminal, then start claude.
export MERGECAT_COMPLIANCE_DIR="$HOME/compliance/mergecat"
claudeAdd the export line to your shell profile (for example ~/.bashrc) to keep it.
Central collection
If your organisation collects the records centrally, point MERGECAT_COMPLIANCE_DIR at a backed-up or synchronised folder, one folder per user. The records contain names, e-mail addresses, computer names and repository paths: make sure only authorised people can read that folder.
The copy in the conversation
record_compliance_answer also returns the record as Markdown, and Claude gives it to you as a document of the conversation: a Markdown artifact, a file sent in the chat named compliance-record-<repository>-<YYYY-MM-DD>.md, or a Markdown block in the reply. It is never written into your project. Claude also tells you in one line where the record is stored on your computer.
When the outcome is stopped, you did not agree to send data to Claude, so the copy in the conversation leaves out these rows: User (operating system), User (Git configuration), Computer, Repository, Repository folder and Repository remote. A note says that these details are only in the copy stored on your computer. The stored record is always complete.
Collect the records for an audit
Find the folder
Use the folder for your operating system shown above, or the value of MERGECAT_COMPLIANCE_DIR. compliance_status also returns it as recordsFolder.
Copy or archive it
The folder contains one Markdown file per decision and the log compliance-log.jsonl. Copy the whole folder, or archive it:
cd ~/Library/Application\ Support/mergecat
zip -r ~/Desktop/mergecat-compliance.zip complianceCompress-Archive -Path "$env:APPDATA\mergecat\compliance" -DestinationPath "$HOME\Desktop\mergecat-compliance.zip"tar -czf ~/mergecat-compliance.tar.gz -C "${XDG_DATA_HOME:-$HOME/.local/share}/mergecat" complianceQuery the log
One JSON line per decision makes the log easy to summarise.
cd ~/Library/Application\ Support/mergecat/compliance # Linux: ~/.local/share/mergecat/compliance
# Decisions per outcome
jq -s 'group_by(.outcome) | map({outcome: .[0].outcome, count: length})' compliance-log.jsonl
# Every "stopped" decision
jq -c 'select(.outcome == "stopped") | {recordedAt, requestedAction, user: .user.osUser, host}' compliance-log.jsonl
# Decisions in the first quarter of 2026
jq -c 'select(.recordedAt >= "2026-01-01" and .recordedAt < "2026-04-01")' compliance-log.jsonl
# CSV for a spreadsheet
jq -rs '(["recordedAt","outcome","teamOrEnterprise","awareAndProceed","requestedAction","osUser","computer","repository","aiModel"] | @csv),
(.[] | [.recordedAt, .outcome, .teamOrEnterpriseAccount, .awareAndProceed, .requestedAction, .user.osUser, .host, .repository.name, .aiModel] | @csv)' \
compliance-log.jsonl > compliance-log.csv$log = "$env:APPDATA\mergecat\compliance\compliance-log.jsonl"
$records = Get-Content -Path $log -Encoding UTF8 | ForEach-Object { $_ | ConvertFrom-Json }
# Decisions per outcome
$records | Group-Object outcome | Select-Object Name, Count
# Every "stopped" decision
$records | Where-Object { $_.outcome -eq 'stopped' } | Select-Object recordedAt, requestedAction, host
# CSV for a spreadsheet
$records | Select-Object recordedAt, outcome, teamOrEnterpriseAccount, awareAndProceed, requestedAction,
@{ Name = 'osUser'; Expression = { $_.user.osUser } }, host,
@{ Name = 'repository'; Expression = { $_.repository.name } }, aiModel |
Export-Csv -Path compliance-log.csv -NoTypeInformation -Encoding UTF8Hand over the evidence
Give the auditor the log (or the CSV) for the overview and the Markdown records for individual decisions. The Markdown files are readable as they are and can be printed or converted to PDF.
Retention
mergecat never deletes records; how long you keep them is up to your organisation. Some suggestions:
- Keep the records at least as long as your AI policy, your audit cycle or your other security logs require. As a reference point, the AI Act asks deployers of high-risk AI systems to keep the logs of those systems for at least six months.
- The records contain personal data (names, e-mail addresses, computer names). Under the GDPR, keep them no longer than you need them, and restrict who can read them.
- Archive the folder together with the release documentation or the audit evidence of the period, and delete local copies according to your retention schedule.