Skill v1.0.0
currentAutomated scan100/100name: research-lit description: Map the relevant ML theory and supporting empirical literature for a research direction, summarize settings, goals, results, techniques, and gaps, and write LITERATURE_SURVEY.md. Use when Codex needs the literature-survey step of the workflow or needs gap-oriented related-work mapping for downstream perspective selection. metadata: version: "1.0.0"
Research Lit
Use this skill to map the ML-theory literature for one research direction and write LITERATURE_SURVEY.md.
This is the internal literature-survey skill:
- write only
LITERATURE_SURVEY.md - do not invent controller-visible outputs, statuses, or checkpoints
- leave downstream perspective selection to
/perspective-select
Contract
Required Input
$ARGUMENT
Optional Input
workflow_feedback.md- current
LITERATURE_SURVEY.mddraft when rerunning the literature-survey checkpoint - matching pending rerun feedback from
workflow_feedback.mdfor the literature-survey checkpoint
Required Output
LITERATURE_SURVEY.md
Execution Default
- default internal execution is non-blocking and completes the survey in one pass
Responsibilities
- map
Direct Theory,Foundation Theory,Empirical Practice, and evidence-based gaps - start with
Direct Theoryfor each active sub-target - recurse with
Component TheoryorTestbed Theoryon zero-hit scopes (recurse only on zero-hit scopes) - allow lightweight
Foundation TheorywhenDirect Theoryis sparse or technique coverage is thin - use runtime consultations rather than controller-owned checkpoints
- de-duplicate and classify papers before writing
LITERATURE_SURVEY.md
Search Budgets
LOCAL_PAPER_PATHS = papers/, literature/MAX_LOCAL_PAPERS = 20LOCAL_PDF_READ_PAGES = 3MIN_DIRECT_THEORY_PAPERS = 6MAX_DIRECT_THEORY_PAPERS = 12MIN_FOUNDATION_PAPERS_PER_OBJECT_OR_TESTBED = 4MAX_FOUNDATION_PAPERS_PER_OBJECT_OR_TESTBED = 8MIN_EMPIRICAL_PAPERS = 4MAX_EMPIRICAL_PAPERS = 8
Use these as targets, not hard failure conditions. Theory budgets apply per active sub-target; foundation budgets apply per recursive component scope or per testbed within one sub-target pass.
Source Priority
Search in this order, filling gaps as needed:
- Zotero, if configured
- Obsidian notes, if configured
- local PDF libraries under
papers/orliterature/ - web search
- Semantic Scholar, if available
- DeepXiv or equivalent progressive-reading source, if available
Rules:
- prefer user-local sources first
- skip unavailable optional sources silently
- never fail only because a source is unavailable
- prefer the most informative canonical source when the same paper appears multiple times
Workflow
Step 1: Normalize the research direction
- if
LITERATURE_SURVEY.mdalready exists, read it as the latest draft for this literature-survey-checkpoint rerun - if
workflow_feedback.mdcontains pending rerun feedback in theLiterature Surveysection, treat that feedback as binding guidance for rerunning/research-lit - Apply the Source-Direction Fidelity Contract from
../_shared/checklists/artifact-contracts.mdto the effective$ARGUMENT. If$ARGUMENTincludes or reflects aRESEARCH_BRIEF.mdor equivalent brief, do not assume fixed headings; scan the available prose for explicit or clearly implied constraints on the problem object, required scope, target quantity, theorem type, success or progress standard, acceptable partial progress, forbidden shortcuts, out-of-scope directions, parameter dependence, and evaluation priorities. Treat absent fields as unspecified rather than inventing them. - read
$ARGUMENTand detect: - whether it has one or multiple primary objects
- whether it already constrains the theorem target
- the initial target families and sub-targets
- whether the current scope is still meaningfully splittable
- treat the initial target families and sub-targets as provisional until the first
Direct Theorysweep refines them - send one runtime consultation update in the format
Normalization | Targets: <targets> | Objects: <objects> | Splittable: <yes/no> - in standalone use, report the detected objects and continue
- when invoked inside the public controller workflow, report the normalization and continue
- if the controller or user later edits the detected objects and reruns the skill, use the edited objects in that rerun
Object-detection rules:
- a primary object is a main analyzed entity named in
$ARGUMENT - coordinated entities such as
A and B,A/B, or clearly parallel noun phrases count as multiple objects - theorem targets such as
generalization,optimization,implicit bias, orexpressive powerdo not count as separate objects - example:
theoretical analysis of component A in algorithmic setting Bhas two primary objects:component Aandalgorithmic setting B
Step 2: Search theory
Treat each active sub-target as its own search unit.
- start every active sub-target with
Direct Theoryon the full$ARGUMENT - after the first
Direct Theorysweep, refine the active sub-target set using early retrieval signals: - repeated theorem types, bound metrics, or claim forms
- recurring canonical settings, algorithm-model pairings, or proof styles
- persistent low-yield or zero-yield patterns after exact-name and alias search
- if early retrieval clusters around a non-listed theorem property within an existing family, activate that family's
Otherbucket and name the property explicitly; if it clusters around a theorem-target family outside the listed families, activate top-levelOtherand name it explicitly - for unconstrained arguments, use the analysis-target taxonomy below as the initial search menu and then drop irrelevant or low-yield passes after refinement
- before dropping a low-yield sub-target after the first sweep, check whether nearby papers use proxy theorem quantities or adjacent terminology that may still qualify under that sub-target
- for constrained arguments, search only the constrained family or sub-target
- search with both object or family terms and sub-target theorem terms; do not rely on object names alone
- for
Theoretical Scaling Laws, prefer papers derived from an explicit theoretical setting such as linear regression, kernel regression, or another analyzable model; do not treat purely fitted experimental curves as theory hits
Qualifying theory papers must state the setting, assumptions, theorem goal, and at least one main formal claim that explicitly characterizes the current sub-target. Examples:
Convergence: rate, guarantee, or stationarity guaranteeOptimization Landscape: critical points, minima, saddles, or related landscape propertyExcess Risk: explicit excess-risk boundPopulation Risk: population-risk or test-risk theorem that is not better treated asExcess RiskorTheoretical Scaling LawsGeneralization Gap: generalization-gap, stability, or generalization-error theoremTheoretical Scaling Laws: explicit theorem-derived scaling law from an explicit theoretical setting, where the main formal claim is how performance or risk scales with domain-appropriate quantitative categories such as data scale, model or system scale, structural parameters, algorithmic or horizon parameters, regularity or stability parameters, or numerical or approximation scales; fitted experimental scaling curves alone do not qualifyOptimization / Other: an explicit theorem-level optimization property that is not naturally classified asConvergenceorOptimization LandscapeGeneralization / Other: an explicit theorem-level generalization property that is not naturally classified asExcess Risk,Population Risk,Generalization Gap, orTheoretical Scaling Laws- top-level
Other: an explicit theorem-target family that is not naturally classified asOptimization,Generalization,Expressive Power, orImplicit Bias Implicit Bias: limiting direction, margin, bias, or selected solution geometryExpressive Power: approximation power, expressive complexity, or separation result
A scope is not reasonably exhausted until all of the following have been attempted:
- exact-name search
- alias or family-name search when relevant
- sub-target-theorem search
- one proxy-term or adjacent-terminology check when nearby papers suggest the sub-target may be present under different wording
- seed expansion through references, citations, or closely related papers for 2-3 representative papers when available
- one same-sub-target missed-paper audit before stopping
If a scope finds one or more qualifying theory papers, stay in that scope until budget or reasonable exhaustion. If Direct Theory is nonzero but still sparse, or if technique coverage remains thin after reasonable exhaustion, a lightweight Foundation Theory pass is allowed.
If a scope finds zero qualifying theory papers:
- for a splittable multi-object scope, propose a binary split and recurse under
Component Theory(recurse only on zero-hit scopes) - for a single-object or unsplittable scope, fall back to
Testbed Theory
Split proposals are runtime reports, not controller-owned checkpoints:
- send
No theoretical papers found | Target Family: <family> | Sub-target: <sub-target> | Proposed split: component A = <...> | component B = <...> - in standalone use, report the proposed split and continue with the split used in this run
- when invoked inside the public controller workflow, report the split and continue
- if the controller or user later edits the split and reruns the skill, use the edited split in that rerun
Classify theory papers by their actual theorem object and theorem goal after reading them, not by title wording alone. Do not force a paper into the nearest listed sub-target or family when its main formal claim is a nonstandard theorem property; use the appropriate Other bucket and name the property explicitly. When a paper could fit multiple generalization sub-targets, classify it by its main formal quantity and main claim rather than by surface terms such as learning curve, test risk, or asymptotic characterization.
Direct Theory
- scope: the full
$ARGUMENT - purpose: find direct prior theory and direct gaps
- for a single-object input, explicitly analyzing the named object under the current sub-target counts as direct prior work
- budget:
MIN_DIRECT_THEORY_PAPERStoMAX_DIRECT_THEORY_PAPERS - for multi-object inputs, a paper counts as
Direct Theoryonly if it analyzes all named objects in the full current scope; papers covering only a strict subset must not be classified asDirect Theory
Foundation Theory
- use recursive
Component TheoryorTestbed Theoryafter zero-hit scopes - allow lightweight foundation search when
Direct Theoryis sparse or technique coverage remains thin
Component Theory
- scope: one selected component at a time
- use after zero-hit decomposition, or in a lightweight foundation pass for sparse multi-object direct theory
- if the component is a method family, framework family, or problem family, search aliases, renamed variants, derived methods, and theoretically motivated descendants
- if the component still has zero qualifying papers and can split further, recurse again (recurse only on zero-hit scopes)
- if the component is no longer splittable and still zero-hit, fall back to
Testbed Theory - if a foundation paper still names, depends on, or specializes to an original object or component from
$ARGUMENT, it iscomponent-level foundation - budget:
MIN_FOUNDATION_PAPERS_PER_OBJECT_OR_TESTBEDtoMAX_FOUNDATION_PAPERS_PER_OBJECT_OR_TESTBED
Testbed Theory
- scope: canonical object-free testbeds chosen from the theorem target itself
- use after zero-hit single-object or unsplittable scopes, or in a lightweight foundation pass when object-free canonical tools are still useful
- a valid testbed must still make sense after removing the named object or component from
$ARGUMENT - if a candidate foundation still depends on the original object or component, keep it in
Component Theoryfor multi-object runs, or inDirect Theoryif it is still direct prior work for a single-object run - for
component A in algorithmic setting B, a setting-B-specific foundation is component-level, while an object-free convergence, risk, or approximation result is a valid testbed - illustrative search anchors, not a whitelist:
Benign Overfitting of Constant-Stepsize SGD for Linear RegressionOn the Asymptotic Learning Curves of Kernel Ridge Regression under Power-law DecayA Simple Convergence Proof of Adam and AdagradThe Implicit Bias of Adam on Separable Data- budget:
MIN_FOUNDATION_PAPERS_PER_OBJECT_OR_TESTBEDtoMAX_FOUNDATION_PAPERS_PER_OBJECT_OR_TESTBED
Step 3: Search empirical practice
Search empirical or practice-oriented papers on the whole $ARGUMENT.
- target
MIN_EMPIRICAL_PAPERStoMAX_EMPIRICAL_PAPERS - keep this stream tightly scoped to the same
$ARGUMENT - prioritize recurring or robust empirical phenomena over one-off benchmark wins
- use empirical practice to explain why a gap matters, not to replace theory search
Step 4: Deduplicate, classify, and write gaps
De-duplicate before writing summaries:
- match by arXiv ID first, DOI second, normalized title third
- if the same work appears as both preprint and published version, prefer the published metadata while retaining useful preprint links if needed
- if the same paper appears from multiple sources, keep one canonical record
Classification rules:
- empirical or practice-oriented papers go into
Empirical Practice - under
Theoretical Scaling Laws, papers whose scaling-law claims come mainly from fitting experimental results without an explicit theoretical setting belong inEmpirical Practice - papers directly analyzing the named research direction belong to
Direct Theory; for single-object inputs, explicitly analyzing the named object under the current sub-target counts as analyzing the whole named research direction - papers found in recursive component search, canonical testbed search, or a lightweight foundation pass belong to
Foundation Theory - inside
Foundation Theory, object-conditioned papers areComponent Theory, and object-free canonical papers areTestbed Theory
Gap rules:
- use direct theory as the primary basis for formal theorem-level gap claims
- use foundation theory for reusable tools and missing bridges
- use empirical practice to strengthen importance or unexplained phenomena
- never use empirical-only evidence as the sole basis for a formal theory gap
- write at least one gap for each active sub-target
- before marking a sub-target
absent, run a final theory audit - each gap must say what is missing, what evidence supports it, why it matters downstream, and whether it is
supportedoruncertain - each gap must say whether extracted source-direction constraints make it central, out of scope, narrowed, or residual context for downstream perspective and idea work
- reject or omit gaps that contradict extracted source-direction constraints unless they are explicitly framed as out-of-scope or background context
Analysis-Target Taxonomy
For unconstrained theorem-target search, use these families and sub-targets as the initial search menu:
- Optimization
- Convergence
- Optimization Landscape
- Other
- Generalization
- Excess Risk
- Population Risk
- Generalization Gap
- Theoretical Scaling Laws
- Other
- Expressive Power
- Implicit Bias
- Other
Examples for constrained target search:
generalization analysis of A-> search only generalization familiesconvergence analysis of A-> search only optimization / convergenceimplicit bias of A-> search only implicit bias
Other is optional. Use a family's Other bucket only when $ARGUMENT or early retrieval signals point to a repeated theorem property that belongs to that family but is not well captured by its listed sub-targets. Use top-level Other only when the theorem target itself does not naturally belong to Optimization, Generalization, Expressive Power, or Implicit Bias. In either case, name the property or family explicitly and use the same name consistently within the run.
Writing Rules for LITERATURE_SURVEY.md
Use ../_shared/templates/literature-survey.md as the binding structure for top-level sections, required entry fields, and gap blocks. For ## 2. foundation theory, follow this skill's organization rules when lightweight foundation search is used.
Write the survey with these top-level sections:
## 1. direct theory## 2. foundation theory## 3. empirical practice## 4. gap and open problem
Rules:
Direct Theorystays firstFoundation Theoryfollows the actual foundation-search path used in the run- if the original
$ARGUMENTis multi-object, organize underComponent Theory; if a leaf component used canonical testbeds, summarize those papers under the relevant component and sub-target branch and mark them astestbed-level foundation - if the original
$ARGUMENTis single-object, useTestbed Theory; lightweight foundation-pass testbeds may appear here even whenDirect Theoryis nonzero - if no foundation search was needed in the run, write
No foundation fallback was needed in this run.in## 2. foundation theory - include only relevant analysis-target families and sub-targets
- omit unrelated or empty theory buckets
- organize
Testbed Theoryby canonical testbeds, not by the named object - do not place object-conditioned foundations under
Testbed Theory - preserve source-relevant constraints in paper and gap prose when they matter downstream, especially in
Relation to research scopeand## 4. gap and open problem - keep entries concise but information-dense
For each theory paper entry, fill:
IdentifierSettingGoalMain resultKey proof techniquesLimitationsRelation to research scope
For every paper entry, fill Identifier with one durable reference.
- prefer
arXiv:<id>when available - otherwise use
DOI:<...> - otherwise use one canonical URL
Begin Relation to research scope with one of these labels, then add a brief source-direction qualifier when extracted constraints matter downstream:
- direct prior work
- component-level foundation
- testbed-level foundation
- empirical context
Local-Paper Handling
Before broad web search, inspect local paper libraries if they exist.
- check
papers/first, thenliterature/ - scan up to
MAX_LOCAL_PAPERS - read up to
LOCAL_PDF_READ_PAGESpages per local PDF for initial triage - before rejecting a local paper as non-qualifying, inspect theorem-statement pages when they are easy to locate
- prioritize filename and first-page relevance to
$ARGUMENT - use local papers as the starting point and external search to fill missing coverage
Honesty Rules
- be honest about limitations, missing coverage, and ambiguity
- distinguish direct evidence, adjacent evidence, and empirical support
- record absent areas and do not overclaim when the survey is inconclusive
Final Self-Check
- on a literature-survey-checkpoint rerun, the revised
LITERATURE_SURVEY.mdmust address the checkpoint feedback and must not keep criticized coverage, gap statements, or omissions unchanged unless stronger literature-survey rules in this skill require doing so
References
- Shared output template: ../_shared/templates/literature-survey.md
- Public controller contract: ../ml-theory-research-agent/SKILL.md
Detailed rubrics for later stages remain outside this skill.