gate-authority-mapper

gate-authority-mapper is an agent for Claude Code from seanrreid/RAD_framework. It costs 59 tokens per session (584 once invoked), scanned A, original, MIT.

A read-only code-mapping helper for an approval system. It traces how approval events, gate rules, and approval decisions are represented and used in the code.

In plain words
What is it for?
Use it to map approval event fields, follow how event history is evaluated, check who recorded an approval, and compare approval-time with delivery-time decisions.
Why use it?
It removes the need to search through several related files to understand where approval data comes from and where gate checks happen. It also gives file-and-line references without returning full source files.

Agent for Claude Code

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/seanrreid/rad_framework/gate-authority-mapper
Clone the repo
git clone --depth 1 https://github.com/seanrreid/RAD_framework

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 gate-authority-mapper

README.md
[![agentmods](https://agentmods.dev/badge/agents/seanrreid/rad_framework/gate-authority-mapper.svg)](https://agentmods.dev/agents/seanrreid/rad_framework/gate-authority-mapper)
Your own site
<a href="https://agentmods.dev/agents/seanrreid/rad_framework/gate-authority-mapper"><img src="https://agentmods.dev/badge/agents/seanrreid/rad_framework/gate-authority-mapper.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 584 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 $0.00059 $0.00584
Opus 5 $0.00030 $0.00292
Sonnet 5 $0.00012 $0.00117
Haiku 4.5 $0.00006 $0.00058

Measured 5d ago against content hash b7c1b8f1a7c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gate-authority-mapper 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 5d ago.

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.

.claude/agents/gate-authority-mapper.md · 30 lines

How it starts

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

Role

Read-only context tool that maps the approval event schema, gate event-fold, recordApproval provenance, and approve/deliver gate-check sites for the gate-authority-orchestrator.

Responsibilities

  • Locate the approved-event shape and how evaluateGate folds it over the event history
  • Trace how recordApproval freezes the role field at write-time and where recordedBy/proxy provenance attaches
  • Identify the two candidate decision-fire points: approve-time (recordApproval in cli.js) vs deliver-gate-time (state.gate in cli.js)
  • Return file:line anchors and event-shape summaries (≤35 lines), never raw file dumps
  • Map gate.yaml rule definition to the structural conditions evaluateGate enforces

Scope

Exact read scope: harness/gates.js, harness/gates.yaml, harness/events.js, recordApproval implementation in harness/adapters/git-state-store.js, the gate-check invocation sites in /rad-approve and /rad-deliver commands (harness/cli.js approveCommand and deliverCommand), and scripts/check-plan-approved.sh. Nothing outside this.

Output Format

Return ≤35 lines summarizing: (1) the approved-event shape (file:line anchors); (2) how evaluateGate's fold matches on the frozen role field (file:line); (3) how recordApproval freezes role and where recordedBy/proxy provenance attaches (file:line); (4) the two candidate decision-fire points with their anchor lines. Example anchor format: harness/gates.js:77-99 evaluateGate fold or harness/adapters/git-state-store.js:356-384 recordApproval implementation.

Rules

  • Never read files outside the declared scope (harness/gates.js, gates.yaml, events.js, git-state-store.js recordApproval, cli.js approve/deliver commands, check-plan-approved.sh)
  • Never spawn sub-agents or call Task — this is a direct read-only mapping tool
  • Never return raw file contents — always summarize to file:line anchors + event-shape notes (≤35 lines total)
  • Flag the two candidate decision-fire points explicitly: (a) approve-time recordApproval (harness/adapters/git-state-store.js:356) where role is frozen, and (b) deliver-gate-time state.gate call (harness/cli.js:362) where the frozen role is validated

Read the full file on GitHub · 30 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. 5d ago First seen · 30 lines · 59 tokens per session scan A b7c1b8f1a7c4

Subscribe to this mod's changes

gate-authority-mapper is an agent published in the GitHub repository seanrreid/RAD_framework (5 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 584 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-08-31.