一键导入
resmax-survey
Normalize external AI/human survey outputs into reproducible, falsifiable, provenance-tracked research assets with bounded local verification.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Normalize external AI/human survey outputs into reproducible, falsifiable, provenance-tracked research assets with bounded local verification.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Compile a validated ROI-aware ResearchPack into evidence-grounded IdeaCards, lineage, closest-work checks, experiment planning inputs, and structured negative memory.
Review a validated idea portfolio with standard evidence packages, heterogeneous raw reviews, blocker-first aggregation, and pairwise tournament traces.
在 GPU 服务器上为 accepted_index.csv 构建或刷新论文 embedding 缓存,供 resmax-survey 的语义检索使用。
构建、规范化和验证 AI 顶会/顶刊基础文献库。产出 paper_database/accepted_index.csv,并维护 manifest、review/cache/schema 覆盖率。
Summarize Resmax daily work from the fixed Codex conversation log into the fixed Obsidian work log. Use when the user says "总结今天工作", "今天工作日志", "记录今天工作", "把今天工作写到工作日志", or asks to summarize today's work from .codex/response-summary-log.md.
Initialize a freshly cloned Resmax checkout. Use when Codex needs to guide first-time setup, materialize local env files from templates, collect required API keys or machine config through questions, restore or build paper_database artifacts, explain hard vs soft requirements, and verify the repo is ready for resmax-database, resmax-embedding, or resmax-survey.
| name | resmax-survey |
| description | Normalize external AI/human survey outputs into reproducible, falsifiable, provenance-tracked research assets with bounded local verification. |
resmax-survey is now a survey normalizer by default. It accepts external AI or human research outputs and converts them into structured assets that are reproducible, verifiable, falsifiable, provenance-tracked, evidence-pointed, explicit about missing evidence, and ready for resmax-idea, resmax-review, or experiment planning.
External inputs are candidate material, not verified facts. paper_database/accepted_index.csv is used as a high-quality accepted-paper whitelist and falsification base. Embedding/keyword retrieval is used as novelty falsifier, closest-work checker, and deterministic sanity checker, not as an open-domain discovery engine.
The unique human-facing entrypoint for a normalizer run is:
literature_research/<topic>/survey_report.md
JSON, JSONL, CSV, and manifest.json are the factual assets and downstream contract.
Provide one or more of:
external_report.md
seed_papers.csv
seed_papers.jsonl
seed_papers.md
seed_claims.jsonl
seed_gaps.jsonl
seed_ideas.jsonl
Recommended layout before running:
survey_inputs/<topic>/
external_report.md
seed_papers.csv
seed_claims.jsonl
seed_gaps.jsonl
seed_ideas.jsonl
Default command:
python3 .agents/skills/resmax-survey/scripts/survey_normalizer.py run-all \
--topic <topic> \
--input-dir survey_inputs/<topic> \
--accepted paper_database/accepted_index.csv \
--out-dir literature_research/<topic>
python3 .agents/skills/resmax-survey/scripts/validate_normalized_survey.py validate \
--dir literature_research/<topic>
survey_normalizer.py validate --dir literature_research/<topic> is also supported.
resmax-database, resmax-embedding, resmax-review, or resmax-idea beyond the minimal contract handoff.Each stage has a bounded contract:
| Stage | Input | Output | LLM allowed | Local DB / embedding | Source materialization | Failure handling | Degraded mode | Required |
|---|---|---|---|---|---|---|---|---|
| 1. Preflight | external inputs, accepted_index, optional caches | inputs/input_manifest.json, initial manifest.json fields | No | Existence/hash checks only | No | Stop if no external input; mark missing accepted_index as parse-only | Missing embedding falls back to keyword; missing reviews/sources recorded | Yes |
| 2. Input normalization | report and seed files | normalized/*, provenance_spans.jsonl, parse_errors.jsonl | Optional extraction only; must mark model extraction | No | No | Bad rows go to parse_errors.jsonl; do not silently drop | Empty asset class is skipped | Yes |
| 3. Paper list audit | normalized seed papers, accepted_index | audit/paper_audit.csv, identity map, verified/external-only/uncertain/dropped sets | No by default | accepted_index identity match | No | Ambiguous rows become uncertain; duplicates become dropped | No accepted_index means no verified local facts | Yes |
| 4. Retrieval as falsification | claims, gaps, ideas, audit sets | retrieval/* traces and candidates | No | accepted_index; embedding optional | No | Every target records trace, ranking reason, drop reason | Keyword fallback if embedding unavailable | Yes |
| 5. Source materialization for critical evidence | verified/candidate papers needing content facts | sources/source_manifest.jsonl, missing source records | No | Source cache status only unless explicitly materialized | Required for content-level facts | Missing source does not stop run; writes missing evidence | Metadata-only identity allowed | Yes |
| 6. Per-paper secondary asset extraction | accepted metadata, source status, seed notes | assets/paper_assets.jsonl, asset_mentions.jsonl, asset_stats.csv | Optional extractor only, must cite source spans | accepted metadata; source cache optional | Required for verified content fields | Unknown fields stay empty and enter missing_evidence | Low confidence metadata extraction allowed | Yes |
| 7. Claim / gap normalization | seed claims/gaps, evidence, retrieval checks | claim_graph.json, gap_map.jsonl, falsification summary | Optional classification only | closest-work traces | Required before verified content claim | External claims stay unverified; gaps without closest work blocked | Follow-up query generated | Yes |
| 8. Report compilation | all structured artifacts | survey_report.md | Optional wording only, no new facts | No new retrieval | No | Report must link assets and missing evidence | Report may say evidence unavailable | Yes |
| 9. Downstream contract generation | assets, gaps, retrieval, missing evidence | downstream/survey_contract.json, compat pack | No | No | No | Blocking missing evidence prevents downstream readiness | Legacy compat emitted with explicit warnings | Yes |
| 10. Validation | full run directory | validation/validation_report.json/.md | No | No | No | FAIL blocks downstream use | Warnings allowed; errors must be fixed | Yes |
Default run output:
literature_research/<topic>/
survey_report.md
manifest.json
inputs/
input_manifest.json
external_report.md
seed_papers.csv
seed_papers.jsonl
seed_papers.md
seed_claims.jsonl
seed_gaps.jsonl
seed_ideas.jsonl
normalized/
normalized_inputs.json
provenance_spans.jsonl
seed_papers.normalized.jsonl
seed_claims.normalized.jsonl
seed_gaps.normalized.jsonl
seed_ideas.normalized.jsonl
parse_errors.jsonl
audit/
paper_audit.csv
paper_identity_map.jsonl
verified_paper_set.jsonl
external_only_papers.jsonl
uncertain_papers.jsonl
dropped_papers.jsonl
audit_summary.json
retrieval/
retrieval_requests.jsonl
retrieval_trace.jsonl
closest_work_candidates.jsonl
falsification_checks.jsonl
infra_search_results.jsonl
followup_queries.jsonl
sources/
source_manifest.jsonl
source_materialization_report.json
missing_sources.jsonl
assets/
paper_assets.jsonl
asset_mentions.jsonl
evidence_cards.jsonl
claim_graph.json
gap_map.jsonl
asset_stats.csv
falsification_summary.csv
missing_evidence.jsonl
downstream/
survey_contract.json
research_pack_compat/
manifest.json
evidence_cards.jsonl
claim_graph.json
gap_map.json
closest_work_candidates.jsonl
missing_evidence.jsonl
validation/
validation_report.json
validation_report.md
Rules:
survey_report.md is the only top-level human main report.manifest.json records inputs, outputs, hashes, cache status, coverage, retrieval modes, provenance summary, degradation summary, validation status, and downstream contract path.Retrieval is bounded. Every request must include target_type, target_id, purpose, query, retrieval_mode, candidate list, ranking reason, drop reason, and trace_id. Per-target top-k must stay capped.
Supported modes:
seed-list verifier: match seed papers to accepted_index, dedupe, align IDs.local omission checker: find obvious accepted-index papers omitted from the external report or seed set.closest-work search: find nearest accepted papers for a claim, gap, idea, method description, or asset text.claim falsifier: flag claims that may be overstrong, outdated, or contradicted by accepted work.gap falsifier: check whether a gap may already be covered by accepted work.infra search: retrieve and count dataset, benchmark, baseline, metric, base model, codebase, and task mentions.follow-up query suggester: generate bounded queries when local evidence is insufficient.Required retrieval outputs:
retrieval/retrieval_requests.jsonl
retrieval/retrieval_trace.jsonl
retrieval/closest_work_candidates.jsonl
retrieval/falsification_checks.jsonl
retrieval/infra_search_results.jsonl
retrieval/followup_queries.jsonl
Retrieval must not automatically expand into full-field paper discovery.
Metadata is sufficient only for:
Readable source evidence is required for:
If PDF, TeX, OpenReview, or other readable source evidence is unavailable:
sources/missing_sources.jsonl;assets/missing_evidence.jsonl;Do not mechanically chase a fixed readable-source coverage percentage. Coverage is measured by critical claim evidence, critical asset evidence, closest-work trace coverage, and explicit missing evidence.
paper_assets.jsonl must include at least:
paper_id, canonical_title, audit_status, venue, year, source_status,
tasks, problem_settings, method_types, base_models, backbones,
datasets, benchmarks, metrics, baselines, experimental_protocols,
ablations, compute_cost, data_cost, annotation_cost,
code_availability, data_availability, claimed_contributions,
limitations, failure_cases, reviewer_signals, reuse_opportunities,
implementation_barriers, missing_fields, evidence_card_ids,
confidence, provenance
asset_mentions.jsonl must include:
mention_id, paper_id, asset_type, normalized_name, surface_form,
role, evidence_card_id, confidence, source_span, provenance
evidence_cards.jsonl must include:
evidence_id, paper_id, source_id, source_type, locator, quote_hash,
target_id, target_type, evidence_kind, support_relation,
content_summary, confidence, extraction_method, provenance
claim_graph.json must contain schema_version, claims, and edges. Each claim includes:
claim_id, text, claim_type, origin, status, paper_ids,
evidence_ids, counter_evidence_ids, confidence
gap_map.jsonl, closest_work_candidates.jsonl, missing_evidence.jsonl, asset_stats.csv, and manifest.json follow the schemas enforced by validate_normalized_survey.py.
survey_report.md must include:
resmax-ideaThe report should be dense and navigable. It must link structured files, avoid dumping every row, avoid generating full ideas or experiment plans, and avoid promoting external assumptions to verified conclusions.
The normalizer writes:
downstream/survey_contract.json
Required fields:
schema_version, topic, verified_paper_set_path, claim_graph_path,
gap_map_path, closest_work_candidates_path, paper_assets_path,
asset_stats_path, evidence_cards_path, missing_evidence_path,
implementation_constraints, reviewer_blocker_hints, seed_opportunities,
warnings, provenance_summary, validation_status
Downstream consumers must distinguish:
Blocking missing evidence prevents downstream_ready. A gap without closest-work candidates must not enter review-ready idea generation.
Run the validator after every normalizer run:
python3 .agents/skills/resmax-survey/scripts/validate_normalized_survey.py validate \
--dir literature_research/<topic>
The validator checks:
Outputs:
validation/validation_report.json
validation/validation_report.md
If validation is FAIL, do not hand off to resmax-idea except as a debugging fixture.
The old survey_v2 macro discovery and ResearchPack path is retained as legacy/optional. Use it only when the user explicitly wants local corpus-driven direction discovery, subdirection selection, ResearchPack generation, or ROI-lens artifacts.
Legacy command shape:
PYTHONPATH=.agents/skills/resmax-survey/scripts python3 -m resmax_survey_v2 compile-spec \
--intent "research intent" \
--out-dir literature_research/<topic>
PYTHONPATH=.agents/skills/resmax-survey/scripts python3 -m resmax_survey_v2 plan-queries \
--spec literature_research/<topic>/survey_v2/spec/research_spec.json \
--agent-output literature_research/<topic>/survey_v2/spec/query_planner_agent_output.json \
--out literature_research/<topic>/survey_v2/spec/query_families.jsonl
PYTHONPATH=.agents/skills/resmax-survey/scripts python3 -m resmax_survey_v2 retrieve-macro \
--spec literature_research/<topic>/survey_v2/spec/research_spec.json \
--accepted paper_database/accepted_index.csv \
--embedding-cache paper_database/embedding_cache/qwen3_8b.npz \
--embedding-provider ssh \
--require-embedding \
--out-dir literature_research/<topic>
Legacy rules:
survey_report.md.Only use for the old research_index.csv / literature_list.md workflow:
SKILL_ROOT=.agents/skills/resmax-survey
python3 $SKILL_ROOT/scripts/search_literature.py \
--accepted paper_database/accepted_index.csv \
--direction "research direction description" \
--keywords "keyword1,keyword2,keyword3" \
--out-dir literature_research/<topic>
python3 $SKILL_ROOT/scripts/stage5_5_deepcheck.py \
--dir literature_research/<topic> \
--accepted paper_database/accepted_index.csv \
--grades S
This path is legacy. Do not use it for the default normalizer flow.