page1-validator

page1-validator is an agent for coding agents from roomi-fields/paper-trail. It costs 57 tokens per session (788 once invoked), scanned A, original, MIT.

A sub-agent that checks whether a downloaded PDF matches expected author, title, and year information by examining its first page. It is designed to catch papers that belong to someone with a similar name or to another subject.

In plain words
What is it for?
Manually rechecking an acquired academic PDF before using it as a source.
Why use it?
It prevents the wrong paper from entering a research collection. The check compares the visible author and title with the expected reference and looks for unrelated subject terms.

Agent

Part of the paper-trail plugin — 6 skills, 22 commands, 6 agents, 3 hooks shipped together

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/roomi-fields/paper-trail/page1-validator
Clone the repo
git clone --depth 1 https://github.com/roomi-fields/paper-trail

Or install paper-trail, the plugin that ships this one along with the rest of its 6 skills, 22 commands, 6 agents, 3 hooks.

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 page1-validator

README.md
[![agentmods](https://agentmods.dev/badge/agents/roomi-fields/paper-trail/page1-validator.svg)](https://agentmods.dev/agents/roomi-fields/paper-trail/page1-validator)
Your own site
<a href="https://agentmods.dev/agents/roomi-fields/paper-trail/page1-validator"><img src="https://agentmods.dev/badge/agents/roomi-fields/paper-trail/page1-validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 788 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.00057 $0.00788
Opus 5 $0.00028 $0.00394
Sonnet 5 $0.00011 $0.00158
Haiku 4.5 $0.00006 $0.00079

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

Security

Grade A, and why

page1-validator 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 4d 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.

agents/page1-validator.md · 92 lines

How it starts

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

Sub-agent : page1-validator

Role

Verify that a PDF's page 1 matches an expected reference. This is the core anti-homonymy guard of the plugin :

  • Confirms the author surname appears on page 1
  • Confirms the title has ≥ 30 % keyword similarity with the expected title
  • Confirms zero off-domain keywords are present (e.g., "spider" for a Computer Science paper, "carcinoma" for a music paper)

The cascade invokes this validation automatically via pipeline.cascade._save_and_validate. This sub-agent is for manual / explicit validation when the user wants to recheck a specific PDF outside the cascade flow.

Input contract

pdf_path: /absolute/path/to/the.pdf
expected:
  author: "Surname Firstname"   # or just Surname
  title: "Full expected title"
  year: 2020                     # optional, used for cross-check

What this agent does

  1. Read the PDF via pdftotext "$pdf_path" - (first page only via -f 1 -l 1)
  2. Extract metadata from page 1 (author, title, year if visible)
  3. Compute similarity scores :
    • Author match : surname is present (case-insensitive)
    • Title similarity : keyword overlap with expected, ratio ≥ 0.3
    • Off-domain keywords : zero of the domain-blacklist words (e.g., {spider, arachnology, carcinoma, RNA, ...} for non-bio papers — depends on context)
  4. Return verdict with explanation

Output contract

{
  "verdict": "ok" | "mismatch" | "unable_to_extract",
  "author_found": true | false,
  "title_similarity": 0.42,
  "off_domain_keywords": [],
  "page1_text_excerpt": "First 500 chars of page 1...",
  "reason": "human-readable explanation"
}

Verdicts :

  • ok : all 3 checks pass, PDF accepted as matching the ref
  • mismatch : at least 1 check fails — PDF should be quarantined, ref transitioned to blocked_human:title_mismatch or needs_reacquisition
  • unable_to_extract : pdftotext produced < 50 chars on page 1 (probably a scan with no text layer) — ref should be transitioned to awaiting_rtfm_ocr

Read the full file on GitHub · 92 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. 4d ago First seen · 92 lines · 57 tokens per session scan A 5892a764ab99

Subscribe to this mod's changes

page1-validator is an agent published in the GitHub repository roomi-fields/paper-trail (5 stars, last pushed 11d ago), licensed MIT. It adds 57 tokens to every session and 788 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.

Related

Other agents, from other repositories

latex-engineer

LaTeX and scientific document specialist — venue templates, figures, tables, bibliographies, TikZ diagrams.

cdeust/zetetic-team-subagents · 25 tokens

document-writer

Technical writing specialist. Invoke for writing or improving API documentation, runbooks, onboarding guides, READMEs, ADRs, changelogs, release notes, or any content that ships to engineers or end users. Also use for structuring documentation sites and diagrams-as-code.

pranav8494/team-of-agents · 59 tokens

ume

Multimodal Analyst (Ume) via /team-shinchan:vision. Use when input includes an image, screenshot, UI mockup, diagram, or PDF that must be read or extracted — not for code-only tasks. Trigger on "analyze this mockup/screenshot", "이 이미지 분석", or "extract from this PDF".

seokan-jeong/team-shinchan · 72 tokens

paper-finalizer

검수 승인된 사회과학 논문 초안을 마무리하는 전문가. 한국어 학술 교정교열(맞춤법·띄어쓰기·문장·인용 형식)을 수행하고, 최종 원고를 Word .docx와 Markdown으로 변환한다. 교정은 paper-proofread 스킬, 변환은 docx 스킬을 사용하는, 논문 팀의 최종 산출물 생성자. 내용을 바꾸지 않고 형식·표현을 다듬어 투고 가능한 원고를 만든다.

parkjui92/socsci-paper-kit · 121 tokens

rot-soleil

The SoleilBlank lens — Phantom Steganography, the Invisible Architect. Encodes intent at maximum semantic density. Summon for compression work — distilling a long document, tightening a prompt or context under a token budget, designing compact machine-to-machine formats, YAML-first restructuring, or any moment the…

Nova-Violet-Role/RoT-MoE · 76 tokens

dossier-doc-drafter

Draft exactly one canonical package document from its required-content contract, the project model, and the evidence-ledger slice it is given, citing evidence IDs on every material assertion and marking claim states. Use when Phase 4 drafts internal documents or Phase 5 derives public documents, dispatched once per…

synaptiai/synapti-marketplace · 69 tokens