Skip to content
Agentmart
Submit a tool

merge-gate-auditor

Sample unlabelled PR records from merge-gate-data, prepare structured Audit Verdict Cards, and stage human verdicts.

Skill by ianshank

IndexedApache-2.0★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ianshank-merge-gate-auditor

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Sample unlabelled PR records from merge-gate-data, prepare structured Audit Verdict Cards, and stage human verdicts. Use whenever sampling unlabelled audit candidates, conducting merge-gate audit triage, or reviewing pull-request outcomes against the calibrated merge gate.

Use cases: data, security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/merge-gate-auditor

What's inside

Skill name
merge-gate-auditor
Description
Sample unlabelled PR records from merge-gate-data, prepare structured Audit Verdict Cards, and stage human verdicts. Use whenever sampling unlabelled audit candidates, conducting merge-gate audit triage, or reviewing pull-request outcomes against the calibrated merge gate.
License
Apache-2.0
Instructions
69 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Merge Gate Auditor — Human Audit Triage Skill

The `merge-gate-auditor` automates the sampling of unlabelled pull request records from `origin/merge-gate-data`, formats detailed diff and behavioral contexts, and constructs Audit Verdict Cards for review by the human merge owner (`@ianshank`).

## Core Invariants

1. **Zero Synthetic Audits**: Never synthesize or fabricate `HUMAN_AUDIT` records. The calibrated auto-merge gate requires genuine human audit evidence ($N \ge 200, ECE \le 0.05, AUROC \ge 0.65$).
2. **Cold-Start Floor**: The audit sampler enforces `AuditConfig.per_domain_floor` (default 30, workflow override 3) before a domain can exit cold-start.
3. **Plumbing Store Sync**: All reads and writes to `merge-gate-data` operate through `agent_core.store_sync` plumbing (`mktree`, `commit-tree`), never touching working trees or triggering CI (`[skip ci]`).

## Procedure

### 1. Pull Latest Store Records
```bash
python -m agent_core.store_sync pull --repo-dir . --store data/merge_outcomes.jsonl
```

### 2. Inspect Soak Progress
```bash
python -m agent_core.store_sync stats --store data/merge_outcomes.jsonl --soak-progress --audit-floor 3
```
Verify:
- Total records in store ($N$)
- Number of human audits accumulated per domain
- Cold-start status per domain
- Shortfall vs soak target

### 3. Sample Unlabelled Candidates
```bash
python -m agent_core.audit_sampler --store data/merge_outcomes.jsonl select --per-domain-floor 3 --with-propensity
```

### 4. Generate Audit Verdict Card
For each sampled candidate change ID:
1. Inspect git log and diff of the change:
   ```bash
   git show <change_id>
   ```
2. Verify if any post-merge revert or fix-up was committed within the 7-day observation window.
3. Check behavioral regression test status:
   ```bash
   python -m pytest behavioral-regression/tests/
   ```
4. Render the Audit Verdict Card:
   ```markdown
   ### Audit Verdict Card: `<change_id>`
   - **Domain**: `<domain>`
   - **Merged At**: `<timestamp>`
   - **Merge Gate Confidence**: `<raw_confidence>`
   - **Revert / Fixup Observed**: None / Commit `<sha>`
   - **Maintainer Actions**:
     - Confirm Correct: `python scripts/record_audit_verdict.py --store data/merge_outcomes.jsonl --change-id <change_id> --actor @ianshank --correct`
     - Confirm Regressed: `python scripts/record_audit_verdict.py --store data/merge_outcomes.jsonl --change-id <change_id> --actor @ianshank --incorrect`
   ```

### 5. Sync Human Verdicts to Remote Store
After human maintainer executes verdicts:
```bash
python -m agent_core.store_sync push --repo-dir . --store data/merge_outcomes.jsonl --actor @ianshank
```

## Definition of Done

- Unlabelled candidates are sampled strictly according to the domain cold-start floor.
- Verdict cards provide complete commit, diff, and revert context.
- No synthetic records are generated.
- Updated store records pass `agent_core.store_sync stats` validation.

From ianshank/Agents, Apache-2.0.

More from ianshank/Agents

Signals

Stars
1
Forks
0
Open issues
113
Last commit (this folder)
Sep 16, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ianshank

Cite this page

merge-gate-auditor skill. Agent Mart. https://agentmart.dev/skills/ianshank-merge-gate-auditor (last updated 2026-10-24)