Research Lead Generation
Responsibility
Generate research leads: unresolved questions or directions worth investigating next, grounded in existing findings, mechanism evidence, conflicts, or explicit gaps.
This Skill owns only research_lead_generation.
A research lead is not a finding, hypothesis, prediction, experiment plan, or final recommendation.
Input contract
input.schema.json is authoritative.
Required:
task_id: non-empty invocation identifier. It is copied toaudit.task_idand included ininput_fingerprint; it never changesresearch_lead_id.research_context.findings_packet.
Optional:
mechanism_packet, supplied only when mechanism explanation ran. Its absence is accepted without fabricating mechanism content; any supplied packet must satisfyinput.schema.json.generation_config. If omitted,max_research_leadsis deterministically8.- If
generation_configis present,max_research_leadsis required and must be an integer from0through8. focus_questionsmay guide the model but cannot relax provenance or claim-layer rules.
max_research_leads is executed by finalization:
0→ final output contains zero leads;1→ at most one unique validated lead;N→ at mostNunique validated leads.
LLM draft contract
The LLM must emit draft.schema.json, not the final output schema.
The draft contains only scientific-semantic content:
- lead kind, title, research question, investigation target, rationale;
- finding / mechanism / gap / evidence references;
- boundary conditions, scientific significance, uncertainties, confidence;
semantic_boundary_judgment, where the model explicitly classifies the proposed content as eitherwithin_research_lead_boundaryor a forbidden downstream claim type;- generation warnings.
The LLM must not generate research_lead_id, local_lead_key, claim_type, novelty_boundary, summary, audit, or input_fingerprint.
Wrong JSON types, unknown fields, missing required fields, malformed references, and duplicate upstream finding_id / edge_id values are rejected. They are never coerced, overwritten, or repaired.
Scientific boundaries
The model owns this semantic judgment. For every proposed lead it must set semantic_boundary_judgment to one of:
within_research_lead_boundary;hypothesis;prediction;expected_direction;recommendation;experiment_plan;causal_conclusion.
Only within_research_lead_boundary may enter a successful final output. The deterministic runtime checks the declared enum and rejects violation judgments; it does not scan the scientific text with keywords, regex, or other semantic heuristics.
The model must classify content as a violation when it has become an expected outcome/direction, hypothesis, prediction, experiment plan, parameterized instruction, recommendation, or causal conclusion. Gap edges may motivate a lead, but they do not support an established scientific effect.
Finalization pipeline
scripts/runtime_guard.py executes one straight contract path:
- validate the input schema;
- validate the LLM draft schema strictly;
- validate the model-declared semantic boundary judgment and deterministic provenance;
- deterministically create identity and metadata;
- deduplicate, apply
max_research_leads, and build summary/audit; - validate the final object against
output.schema.json.
scripts/identity.py owns only deterministic research_lead_id and input_fingerprint generation.
Empty, degraded, and failed behavior
max_research_leads = 0: successful empty output;summary.degraded = false.- No usable finding/mechanism/gap basis with a positive limit: empty degraded output;
summary.degraded = true. - A valid draft may also produce no leads; with a positive limit this is degraded, not fabricated into success content.
- Invalid input, invalid draft, invalid provenance, or claim-layer leakage raises
ContractRejected; no successful final output is returned.
Deterministic fields
The runtime, never the LLM, creates:
local_lead_key;research_lead_id;claim_type;novelty_boundary;summary;audit.task_id;audit.input_fingerprint.