generalization-gate

generalization-gate is a skill for Codex from MiaoY0uShan/FP. It costs 64 tokens per session (1,064 once invoked), scanned A, original, MIT.

A review gate for deciding whether a proposed checklist, rule, skill, or automation works beyond the examples that led to it. It tests for memorization, missing cases, leaked test information, and harmful effects on other tasks.

In plain words
What is it for?
Use it after adaptive learning or when considering a reusable workflow change. It helps evaluate candidates against training cases, hidden holdout cases, and negative cases before promotion.
Why use it?
It prevents a rule inferred from a small sample of runs from being promoted as if it were generally reliable. It requires frozen candidates, separate evaluators, hidden cases, and evidence that can be checked again.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents.

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 skills/miaoy0ushan/fp/generalization-gate
Any agent
npx skills add MiaoY0uShan/FP --skill generalization-gate
Clone the repo
git clone --depth 1 https://github.com/MiaoY0uShan/FP

Made for: Codex.

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 generalization-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/miaoy0ushan/fp/generalization-gate.svg)](https://agentmods.dev/skills/miaoy0ushan/fp/generalization-gate)
Your own site
<a href="https://agentmods.dev/skills/miaoy0ushan/fp/generalization-gate"><img src="https://agentmods.dev/badge/skills/miaoy0ushan/fp/generalization-gate.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,064 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.00064 $0.01064
Opus 5 $0.00032 $0.00532
Sonnet 5 $0.00013 $0.00213
Haiku 4.5 $0.00006 $0.00106

Measured 5d ago against content hash 6197c3cfbe1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

generalization-gate 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.

fp/generalization-gate/SKILL.md · 82 lines

How it starts

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

FP: Generalization Gate

Promote a reusable policy only after it survives evidence it was not built to memorize. This gate evaluates external skills, checklists, and automation; it does not train model weights.

Required Inputs

Require a canonical Evidence Ledger, a bounded candidate diff or content hash plus freeze time, a rollback, and cases with recomputable canonical source-ledger snapshot hashes plus task/session identity. Reject unverifiable summaries. Every observed command used by the gate must bind the frozen candidate hash, producer, stage, subject, and variant; a generic passing command cannot prove a learning claim.

Separate three roles:

  • candidate agent: sees only the training fold and proposes one bounded semantic change;
  • evaluator: read-only, receives the frozen candidate plus hidden holdout/negative cases;
  • parent/integrator: verifies evidence, decides state, and is the only actor allowed to promote.

The candidate agent and evaluator must be different delegations. Do not leak expected answers, prior reviewer conclusions, or holdout contents into the candidate context.

Finite-Evidence Protocol

Count independent task instances, not prompts or agents. Paraphrases, noise injection, and multiple subagents from one run are robustness variants, not independent evidence.

  • Zero independent cases: reject.
  • One case: keep an observation, or a narrow expiring shadow checklist for a clearly evidenced severe risk. Never promote it to a cross-task schema or automation.
  • Two to four positive cases: run leave-one-case-out. Freeze the candidate from n-1 cases, let an independent evaluator test the unseen case, rotate until every case was held out once, and keep only the smallest semantic intersection that passes every fold.
  • Five or more cases: use bounded folds, but require every case to appear in a holdout at least once and keep task/session independence.

Every promotion set also requires:

  1. at least one near-neighbor negative control that must abstain or preserve behavior;
  2. invariant checks for authority, scope, safety, cancellation, idempotency, and other zero-tolerance boundaries that apply;
  3. a baseline-versus-candidate measurement on each fold with the same metric and unit; derive improved, non_inferior, or regressed from direction, scores, and tolerance instead of trusting a prose verdict;
  4. a public behavior seam and a separately evidenced oracle, with baseline, candidate, and oracle all returned by the same blind evaluator;
  5. a predeclared complexity unit and delta, with distinct bound baseline/candidate measurements, so examples do not each add permanent exception text.

Read the full file on GitHub · 82 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 82 lines · 64 tokens per session scan A 6197c3cfbe1d

Subscribe to this mod's changes

generalization-gate is a skill published in the GitHub repository MiaoY0uShan/FP (3 stars, last pushed 1mo ago), licensed MIT. It adds 64 tokens to every session and 1,064 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 skills, from other repositories

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

fs-editorial-forest

Art-directing a fashion house's annual report — the editorial system, the photography rhythm, and the data spreads. Built as a decision-grade design craft deck for brand stakeholders, exec audience.

nexu-io/open-design · 44 tokens

html-ppt-zhangzara-stencil-tablet

A workplace-safety compliance review for a manufacturing regulator — findings, the evidence chain, and the corrective mandate. Built as a decision-grade policy briefing deck for regulator, plant leadership.

nexu-io/open-design · 49 tokens

simple-deck

OpenDesign's operating review: growth, burn, and the concrete path to sustainability without losing the open ethos. Built as a decision-grade corporate strategy deck for leadership team.

nexu-io/open-design · 38 tokens

html-ppt-zhangzara-coral

OpenDesign's community-growth campaign across GitHub, Discord, and X: the loops, the content calendar, and the pipeline math. Built as a decision-grade marketing & GTM deck for growth team, community lead.

nexu-io/open-design · 55 tokens

html-ppt-zhangzara-retro-zine

A neighborhood zine on the disappearing corner shops — portraits, voices, and what a block loses when they close. Built as a decision-grade story deck for community, local readers.

nexu-io/open-design · 49 tokens