@orbit-build/cli 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/commands/math-draft.md +11 -0
  2. package/dist/index.js +103 -10
  3. package/package.json +4 -2
  4. package/skills/math-model-draft/SKILL.md +216 -0
  5. package/skills/math-model-draft/agents/openai.yaml +6 -0
  6. package/skills/math-model-draft/assets/project-template/code/always/__init__.py +1 -0
  7. package/skills/math-model-draft/assets/project-template/code/always/config.py +17 -0
  8. package/skills/math-model-draft/assets/project-template/code/always/data.py +23 -0
  9. package/skills/math-model-draft/assets/project-template/code/always/plotting.py +24 -0
  10. package/skills/math-model-draft/assets/project-template/code/always/validation.py +20 -0
  11. package/skills/math-model-draft/assets/project-template/code/finalize.py +55 -0
  12. package/skills/math-model-draft/assets/project-template/code/requirements.txt +11 -0
  13. package/skills/math-model-draft/assets/project-template/paper/AI/345/267/245/345/205/267/344/275/277/347/224/250/350/257/246/346/203/205.tex +34 -0
  14. package/skills/math-model-draft/assets/project-template/paper/ai-use-log.md +7 -0
  15. package/skills/math-model-draft/assets/project-template/paper/contest-profile.json +25 -0
  16. package/skills/math-model-draft/assets/project-template/paper/main.tex +53 -0
  17. package/skills/math-model-draft/assets/project-template/paper/sections/abstract.tex +6 -0
  18. package/skills/math-model-draft/assets/project-template/paper/sections/ai-disclosure.tex +3 -0
  19. package/skills/math-model-draft/assets/project-template/paper/sections/appendix.tex +9 -0
  20. package/skills/math-model-draft/assets/project-template/paper/sections/assumptions.tex +5 -0
  21. package/skills/math-model-draft/assets/project-template/paper/sections/data.tex +19 -0
  22. package/skills/math-model-draft/assets/project-template/paper/sections/evaluation.tex +9 -0
  23. package/skills/math-model-draft/assets/project-template/paper/sections/problem-analysis.tex +3 -0
  24. package/skills/math-model-draft/assets/project-template/paper/sections/problem-restatement.tex +3 -0
  25. package/skills/math-model-draft/assets/project-template/paper/sections/references.tex +6 -0
  26. package/skills/math-model-draft/assets/project-template/paper/sections/source-code.tex +1 -0
  27. package/skills/math-model-draft/assets/project-template/paper/sections/support-files.tex +3 -0
  28. package/skills/math-model-draft/references/code-and-output-style.md +91 -0
  29. package/skills/math-model-draft/references/cumcm-compliance.md +56 -0
  30. package/skills/math-model-draft/references/latex-figures-tables.md +60 -0
  31. package/skills/math-model-draft/references/modeling-quality.md +91 -0
  32. package/skills/math-model-draft/references/paper-architecture.md +125 -0
  33. package/skills/math-model-draft/references/paper-revision.md +76 -0
  34. package/skills/math-model-draft/references/project-architecture.md +65 -0
  35. package/skills/math-model-draft/scripts/audit_paper.py +185 -0
  36. package/skills/math-model-draft/scripts/bootstrap_project.py +275 -0
  37. package/skills/math-model-draft/scripts/build_paper.py +226 -0
  38. package/skills/math-model-draft/scripts/capture_environment.py +46 -0
  39. package/skills/math-model-draft/scripts/clean_project.py +46 -0
  40. package/skills/math-model-draft/scripts/finalize_project.py +49 -0
  41. package/skills/math-model-draft/scripts/inspect_inputs.py +193 -0
  42. package/skills/math-model-draft/scripts/package_support.py +52 -0
  43. package/skills/math-model-draft/scripts/project_utils.py +106 -0
  44. package/skills/math-model-draft/scripts/validate_project.py +313 -0
@@ -0,0 +1,34 @@
1
+ \documentclass[UTF8,12pt,a4paper]{ctexart}
2
+
3
+ \usepackage[a4paper,margin=2.5cm]{geometry}
4
+ \usepackage{longtable,array,xcolor,hyperref}
5
+ \hypersetup{hidelinks}
6
+ \setlength{\parindent}{2em}
7
+ \pagestyle{plain}
8
+ \newcommand{\TODO}[1]{\textcolor{red}{\textbf{TODO[#1]}}}
9
+ \newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
10
+
11
+ \begin{document}
12
+ \begin{center}
13
+ {\zihao{2}\bfseries AI工具使用详情}
14
+ \end{center}
15
+
16
+ \section{工具与使用范围}
17
+ \TODO{逐项填写实际工具名称、版本、模型、提供方,以及使用阶段和用途。}
18
+
19
+ \section{主要提示方式与过程}
20
+ \TODO{概述如何提供题目、代码和证据约束,可列典型提示词;不得虚构未发生的交互。}
21
+
22
+ \section{采纳、人工修改与核验}
23
+ \renewcommand{\arraystretch}{1.3}
24
+ \begin{longtable}{@{}L{0.06\textwidth}L{0.13\textwidth}L{0.15\textwidth}L{0.23\textwidth}L{0.25\textwidth}@{}}
25
+ \hline
26
+ 序号\newline 时间 & 工具、版本\newline 与模型 & 目的\newline 与阶段 & 采纳内容及人工修改 & 核验方式与结果 \\
27
+ \hline
28
+ 1 & \TODO{填写} & \TODO{填写} & \TODO{填写} & \TODO{填写} \\
29
+ \hline
30
+ \end{longtable}
31
+
32
+ \section{责任确认}
33
+ \TODO{确认核心建模与分析由团队主导,AI输出均经人工复核,论文、代码、数据与本记录一致。}
34
+ \end{document}
@@ -0,0 +1,7 @@
1
+ # AI 工具使用记录
2
+
3
+ 比赛期间每次使用后立即追加,不要在交稿前凭记忆补写。
4
+
5
+ | 日期时间 | 工具、版本与提供方 | 使用目的 | 关键提示词/输入 | 输出摘要 | 采纳内容与人工修改 | 核验方式 |
6
+ | --- | --- | --- | --- | --- | --- | --- |
7
+ | TODO | TODO | TODO | TODO | TODO | TODO | TODO |
@@ -0,0 +1,25 @@
1
+ {
2
+ "schema_version": 1,
3
+ "profile": "cumcm-2026",
4
+ "rules_checked_at": "2026-08-05",
5
+ "paper": {
6
+ "max_pdf_mb": 20,
7
+ "max_body_pages": 30,
8
+ "include_support_file_list": true,
9
+ "include_source_appendix": true
10
+ },
11
+ "support": {
12
+ "max_archive_mb": 20,
13
+ "include_ai_log": false
14
+ },
15
+ "ai": {
16
+ "policy": "cumcm-2026",
17
+ "used": true,
18
+ "declaration_before_references": true,
19
+ "details_pdf_required": true
20
+ },
21
+ "sources": [
22
+ "https://www.mcm.edu.cn/html_cn/node/4cd596519c9eb9fbd866398f6df0caa3.html",
23
+ "https://www.mcm.edu.cn/html_cn/node/fef94648f2836ab6cc81586f4c38512b.html"
24
+ ]
25
+ }
@@ -0,0 +1,53 @@
1
+ \documentclass[UTF8,12pt,a4paper]{ctexart}
2
+
3
+ \usepackage[a4paper,margin=2.5cm]{geometry}
4
+ \usepackage{amsmath,amssymb,bm}
5
+ \usepackage{booktabs,longtable,tabularx,array,multirow}
6
+ \usepackage{graphicx,float,caption,subcaption}
7
+ \usepackage{siunitx}
8
+ \usepackage{enumitem}
9
+ \usepackage{xcolor}
10
+ \usepackage{fancyhdr}
11
+ \usepackage{fvextra}
12
+ \usepackage{hyperref}
13
+
14
+ \hypersetup{hidelinks}
15
+ \urlstyle{same}
16
+ \IfFontExistsTF{Microsoft YaHei}
17
+ {\setCJKmonofont{Microsoft YaHei}}
18
+ {\setCJKmonofont{FandolFang-Regular}}
19
+ \graphicspath{{../figures/}}
20
+ \captionsetup{font=small,labelsep=quad}
21
+ \setlength{\parindent}{2em}
22
+ \setlength{\parskip}{0pt}
23
+ \setlist{nosep}
24
+ \pagestyle{plain}
25
+ \newcommand{\TODO}[1]{\textcolor{red}{\textbf{TODO[#1]}}}
26
+ \newcommand{\papertitle}{TODO[填写能够概括方法与对象的论文标题]}
27
+
28
+ \begin{document}
29
+
30
+ \begin{center}
31
+ {\zihao{2}\bfseries \papertitle}
32
+ \end{center}
33
+
34
+ \vspace{1.2em}
35
+ \input{sections/abstract}
36
+
37
+ \clearpage
38
+ \setcounter{page}{2}
39
+ \input{sections/problem-restatement}
40
+ \input{sections/problem-analysis}
41
+ \input{sections/assumptions}
42
+ \input{sections/data}
43
+ \input{sections/questions}
44
+ \input{sections/evaluation}
45
+ \input{sections/ai-disclosure}
46
+ \input{sections/references}
47
+ \label{body-end}
48
+
49
+ \clearpage
50
+ \appendix
51
+ \input{sections/appendix}
52
+
53
+ \end{document}
@@ -0,0 +1,6 @@
1
+ \noindent\textbf{摘要:}
2
+ \TODO{写清研究对象、每问采用的方法、关键数值结果及主要检验;不写背景套话。}
3
+
4
+ \vspace{0.8em}
5
+ \noindent\textbf{关键词:}
6
+ \TODO{填写3--5个能够检索模型与研究对象的关键词}
@@ -0,0 +1,3 @@
1
+ \section*{AI工具使用声明}
2
+
3
+ 本参赛队在竞赛过程中使用了AI工具,主要用于\TODO{如实简述用途,例如代码调试、论文一致性检查等},详细使用情况见支撑材料。
@@ -0,0 +1,9 @@
1
+ \IfFileExists{sections/support-files.tex}{%
2
+ \section{支撑材料文件列表}
3
+ \input{sections/support-files}
4
+ }{}
5
+
6
+ \IfFileExists{sections/source-code.tex}{%
7
+ \section{程序代码}
8
+ \input{sections/source-code}
9
+ }{}
@@ -0,0 +1,5 @@
1
+ \section{模型假设}
2
+
3
+ \begin{enumerate}
4
+ \item \TODO{给出必要假设,并说明它会排除什么情形或带来何种偏差。}
5
+ \end{enumerate}
@@ -0,0 +1,19 @@
1
+ \section{符号说明与数据预处理}
2
+
3
+ \subsection{主要符号}
4
+
5
+ \begin{table}[H]
6
+ \centering
7
+ \caption{主要符号及含义}
8
+ \begin{tabular}{cll}
9
+ \toprule
10
+ 符号 & 含义 & 单位 \\
11
+ \midrule
12
+ \TODO{符号} & \TODO{含义} & \TODO{单位} \\
13
+ \bottomrule
14
+ \end{tabular}
15
+ \end{table}
16
+
17
+ \subsection{数据审计与预处理}
18
+
19
+ \TODO{报告数据规模、缺失/异常/重复情况、单位转换和预处理原则。保留关键诊断证据。}
@@ -0,0 +1,9 @@
1
+ \section{模型评价与推广}
2
+
3
+ \subsection{模型优点}
4
+
5
+ \TODO{结合本题证据说明可解释性、精度、稳健性或计算效率,避免空泛形容。}
6
+
7
+ \subsection{模型局限与改进}
8
+
9
+ \TODO{指出假设、数据、算法或外推范围造成的具体限制,并给出可执行改进方向。}
@@ -0,0 +1,3 @@
1
+ \section{问题分析}
2
+
3
+ \TODO{说明各小题之间的数据流、约束关系与总体求解路线。若依赖关系复杂,插入一张信息密度足够的流程图。}
@@ -0,0 +1,3 @@
1
+ \section{问题重述}
2
+
3
+ \TODO{用自己的语言凝练任务、对象、输入与交付物,不逐句抄写题面。}
@@ -0,0 +1,6 @@
1
+ \begin{thebibliography}{99}
2
+
3
+ \bibitem{todo-reference}
4
+ \TODO{按正文首次引用顺序补充真实、可核验的参考文献。}
5
+
6
+ \end{thebibliography}
@@ -0,0 +1 @@
1
+ \TODO{运行构建脚本后自动生成代码附录}
@@ -0,0 +1,3 @@
1
+ \begin{itemize}
2
+ \item \TODO{运行构建脚本后自动生成支撑材料列表}
3
+ \end{itemize}
@@ -0,0 +1,91 @@
1
+ # Code and output style
2
+
3
+ ## Python structure
4
+
5
+ Use:
6
+
7
+ ```text
8
+ code/
9
+ ├── requirements.txt
10
+ ├── run_all.py
11
+ ├── always/
12
+ │ ├── __init__.py
13
+ │ ├── config.py
14
+ │ ├── data.py
15
+ │ ├── plotting.py
16
+ │ └── validation.py
17
+ └── qN/
18
+ ├── __init__.py
19
+ ├── main.py
20
+ ├── model.py
21
+ ├── output.py
22
+ └── domain_specific.py
23
+ ```
24
+
25
+ Create only domain modules that carry real logic. Keep `main.py` orchestral.
26
+
27
+ ## Comments
28
+
29
+ - Prefer short `#` comments.
30
+ - Comment the reason, invariant, unit conversion, or numerical safeguard.
31
+ - Do not restate the following line.
32
+ - Do not use decorative separators or paragraph-length comments.
33
+ - Use clear names instead of comments when naming solves the problem.
34
+ - Preserve necessary source/citation notes beside implemented formulas.
35
+
36
+ Example:
37
+
38
+ ```python
39
+ # Fit preprocessing on training folds to prevent leakage.
40
+ pipeline = make_pipeline(transformer, estimator)
41
+ ```
42
+
43
+ ## Reproducibility
44
+
45
+ - Resolve paths from `Path(__file__)`, never the current shell directory alone.
46
+ - Fix all library random seeds through one `RANDOM_STATE`.
47
+ - Save environment/package versions.
48
+ - Make the default entry point non-interactive.
49
+ - Put expensive optional analyses behind explicit flags.
50
+ - Keep plotting headless and deterministic.
51
+ - Close figures after saving.
52
+ - Fail early with a concise message when required columns or units are absent.
53
+
54
+ ## Results
55
+
56
+ For each `results/qN` prefer:
57
+
58
+ - `summary.json`: primary claims, units, sample sizes, method, seed;
59
+ - `.csv`: tidy tables and diagnostics;
60
+ - `.txt` or `.md`: short model rules or readable explanations;
61
+ - serialized model only when later questions need it;
62
+ - completed `.xlsx` only when the problem requests a filled workbook.
63
+
64
+ Use UTF-8-SIG for user-facing Chinese CSV files. Never write outputs into
65
+ `question/`.
66
+
67
+ ## Figures
68
+
69
+ For each `figures/qN`:
70
+
71
+ - save only figures used or directly useful in the paper;
72
+ - prefer vector PDF for line art plus a high-resolution PNG fallback;
73
+ - use Chinese-capable fonts and minus-sign handling;
74
+ - label axes and colorbars with units;
75
+ - choose perceptually appropriate palettes;
76
+ - avoid 3D charts unless the third dimension is essential;
77
+ - avoid titles that duplicate the LaTeX caption;
78
+ - keep legends outside dense data when possible.
79
+
80
+ ## Console behavior
81
+
82
+ Print:
83
+
84
+ - `[RUN]` for a running subproblem;
85
+ - `[OK]` for completion;
86
+ - `[WARN]` for a documented fallback;
87
+ - `[ERROR]` for a concise failure.
88
+
89
+ Do not dump full dataframes or stack traces during normal runs. Save detailed
90
+ diagnostics under the matching `results/qN`. ASCII status tags also remain
91
+ legible in a LaTeX source-code appendix without relying on symbol fonts.
@@ -0,0 +1,56 @@
1
+ # CUMCM 2026 compliance profile
2
+
3
+ Checked against official pages on 2026-08-05. If the organizer publishes a
4
+ newer rule or the project supplies its own rule file, the newer supplied source
5
+ wins and `paper/contest-profile.json` must record the change.
6
+
7
+ ## Paper and support material
8
+
9
+ - A4 paper; all margins at least 2.5 cm.
10
+ - The electronic first page contains the title, abstract, and keywords; no
11
+ table of contents.
12
+ - Main body is at most 30 pages and the paper PDF at most 20 MB.
13
+ - Support material is ZIP/RAR at most 20 MB, contains a file list, and includes
14
+ complete runnable source code when code is used.
15
+ - Do not expose team identity, school, instructor, or other identifying data in
16
+ paper or support material.
17
+
18
+ Source: <https://www.mcm.edu.cn/html_cn/node/4cd596519c9eb9fbd866398f6df0caa3.html>
19
+
20
+ ## AI tools — rules effective 2026-09-01
21
+
22
+ The rule covers large-language models, generative AI, code assistants, and AI
23
+ agents. Core modeling and analysis must be team-led, and all AI output used in
24
+ the work must be manually reviewed.
25
+
26
+ Immediately before references, include an `AI工具使用声明`:
27
+
28
+ - If used: `本参赛队在竞赛过程中使用了AI工具,主要用于〖简要用途,如语言润色、代码调试等〗,详细使用情况见支撑材料。`
29
+ - If unused: use the official unused declaration. Do not choose this path if
30
+ this Skill or another AI system contributed to the submitted work.
31
+
32
+ When AI was used, support material must include `AI工具使用详情.pdf` stating:
33
+
34
+ 1. tool name, version, and model;
35
+ 2. purpose and stage;
36
+ 3. main prompting method and process (typical examples may be included);
37
+ 4. adopted content, manual changes, and verification (language polishing is
38
+ excepted from the detailed adoption/verification description).
39
+
40
+ Concealment, false declarations, unreviewed AI output, or handing core work to
41
+ AI can affect or cancel awards.
42
+
43
+ Source: <https://www.mcm.edu.cn/html_cn/node/fef94648f2836ab6cc81586f4c38512b.html>
44
+
45
+ ## Interpretation guardrails
46
+
47
+ - AI is auxiliary; the team remains responsible for originality, legality,
48
+ truthfulness, and accuracy.
49
+ - Do not discuss a live problem with outsiders or on public platforms.
50
+ - The frequently repeated “AIGC/AIDC below 20%” suggestion is not present in
51
+ the official 2026 AI-use rule above. It may be a risk-management heuristic,
52
+ but must not be encoded or reported as an official threshold unless a newer
53
+ primary rule explicitly adds it.
54
+
55
+ Participation source:
56
+ <https://www.mcm.edu.cn/html_cn/node/9d8e511fe7a1447b35f53a82c908e2e0.html>
@@ -0,0 +1,60 @@
1
+ # LaTeX, figures, and tables
2
+
3
+ ## Page system
4
+
5
+ - Use `ctexart` with XeLaTeX for Chinese.
6
+ - Use the supplied contest template and `paper/contest-profile.json`; for the
7
+ bundled CUMCM 2026 profile use A4 and margins of at least 2.5 cm.
8
+ - Keep the electronic first page as title, abstract, and keywords only.
9
+ - Center Arabic page numbers in the footer starting at 1.
10
+ - Do not add a contents page for CUMCM.
11
+ - Keep the body visually restrained: black text, consistent hierarchy, and
12
+ minimal decorative color.
13
+
14
+ ## Equations
15
+
16
+ - Introduce the purpose of an equation before displaying it.
17
+ - Number only equations referenced later.
18
+ - Define symbols and units near first use.
19
+ - Use aligned environments for multi-line derivations.
20
+ - Check dimensional consistency.
21
+ - Do not use screenshots of formulas.
22
+
23
+ ## Tables
24
+
25
+ - Use `booktabs`; avoid full cell grids unless the data requires them.
26
+ - Put units in headers.
27
+ - Align decimals and use meaningful precision.
28
+ - Report sample size and metric definition with evaluation tables.
29
+ - Keep tables within text width; use landscape or appendix for genuinely wide
30
+ data rather than shrinking to unreadable text.
31
+ - Do not paste raw intermediate tables into the body.
32
+
33
+ ## Figures
34
+
35
+ - Prefer PDF vector output for plots and diagrams.
36
+ - Use PNG at 300 dpi or higher for raster images.
37
+ - Make labels readable at final printed size.
38
+ - Use consistent sizes and palette across questions.
39
+ - Distinguish series by more than color when grayscale printing is plausible.
40
+ - Avoid legends that cover data.
41
+ - Place a figure after its first textual reference.
42
+ - Write captions that state object, condition, and takeaway without making an
43
+ unsupported causal claim.
44
+
45
+ ## Cross-references and citations
46
+
47
+ - Use `\label` and `\ref`/`\eqref`; do not hardcode figure/table numbers.
48
+ - Use BibTeX or a consistently formatted manual bibliography.
49
+ - Cite methods at first substantive use.
50
+ - Cite data definitions and external parameter values.
51
+ - Never leave raw URLs in body prose when a reference entry is appropriate.
52
+
53
+ ## Build and visual QA
54
+
55
+ - Compile twice or use `latexmk -xelatex`.
56
+ - Treat undefined references, missing citations, overfull/underfull boxes,
57
+ missing glyphs, and duplicate labels as failures in the final build.
58
+ - Render the final PDF and inspect every page.
59
+ - Check the abstract page, dense equations, wide tables, multi-panel figures,
60
+ appendix transitions, page numbers, and final blank pages.
@@ -0,0 +1,91 @@
1
+ # Modeling and evidence quality
2
+
3
+ ## Translate the task
4
+
5
+ For every subproblem record:
6
+
7
+ - target quantity or decision;
8
+ - observational unit and time/space scale;
9
+ - controllable and uncontrollable variables;
10
+ - constraints, units, and required deliverable;
11
+ - dependence on earlier subproblems;
12
+ - acceptable error or comparison criterion.
13
+
14
+ ## Audit data before modeling
15
+
16
+ - Inventory sheets, tables, row counts, columns, units, formulas, and blanks.
17
+ - Preserve identifiers as strings when leading zeros matter.
18
+ - Distinguish structural zeros, measured zeros, missing values, and below-limit
19
+ values.
20
+ - Check duplicate entities, inconsistent units, impossible ranges, leakage,
21
+ and repeated measurements.
22
+ - Explain every exclusion or imputation and save an audit table.
23
+ - Fit preprocessing on training data only when evaluating predictions.
24
+ - Use compositional-data methods for constrained proportions when ordinary
25
+ correlations or Euclidean distances would be misleading.
26
+
27
+ ## Select models by the problem
28
+
29
+ Start with a transparent baseline. Add complexity only when it improves a
30
+ defined criterion or resolves a structural limitation.
31
+
32
+ Compare candidates on:
33
+
34
+ - compatibility with assumptions and data volume;
35
+ - interpretability required by the question;
36
+ - constraint handling;
37
+ - uncertainty quantification;
38
+ - stability and computational cost;
39
+ - out-of-sample or scenario performance.
40
+
41
+ Do not combine algorithms merely to appear innovative.
42
+
43
+ ## Validate at the right level
44
+
45
+ Choose evidence appropriate to the claim:
46
+
47
+ - regression: residual structure, error metrics, intervals, collinearity;
48
+ - classification: class counts, confusion matrix, per-class precision/recall,
49
+ F1, calibration, stratified or grouped validation;
50
+ - clustering: stability, silhouette or domain separation, sensitivity to k;
51
+ - optimization: feasibility, optimality gap/bounds, baseline comparison,
52
+ parameter sensitivity, multiple starts;
53
+ - time series: rolling-origin validation, residual autocorrelation, intervals;
54
+ - simulation: convergence, Monte Carlo error, scenario coverage;
55
+ - mechanistic model: dimensional checks, conservation, limiting cases,
56
+ parameter identifiability;
57
+ - ranking/evaluation: weight sensitivity, rank stability, consistency checks.
58
+
59
+ Respect grouped, temporal, or spatial dependence. Do not randomly split rows
60
+ that share the same entity or leak future information.
61
+
62
+ ## Quantify uncertainty and robustness
63
+
64
+ - Perturb influential inputs over defensible ranges.
65
+ - Refit or rerun the full pipeline rather than perturbing only the final table.
66
+ - Report which conclusions are invariant and which change.
67
+ - Use bootstrap or simulation when analytic intervals are unavailable.
68
+ - Distinguish parameter uncertainty, measurement error, model-form error, and
69
+ scenario uncertainty.
70
+
71
+ ## Maintain evidence lineage
72
+
73
+ Every paper claim must map to:
74
+
75
+ - generating module/function;
76
+ - input dataset or upstream result;
77
+ - result file and field/table;
78
+ - validation evidence;
79
+ - paper section and figure/table label.
80
+
81
+ Keep this mapping in `paper/evidence-map.yaml`. Do not type important numbers
82
+ into LaTeX from memory.
83
+
84
+ ## Prevent unsupported output
85
+
86
+ - Never invent sample sizes, parameter values, citations, or performance.
87
+ - Never call a result significant without a defined statistical test.
88
+ - Never infer causality from association without an identification argument.
89
+ - Never claim generalization beyond observed conditions without scenarios or
90
+ external evidence.
91
+ - Preserve an explicit `TODO` when evidence cannot be obtained.
@@ -0,0 +1,125 @@
1
+ # Paper architecture and writing standard
2
+
3
+ ## Contents
4
+
5
+ 1. [Observed strong-paper pattern](#observed-strong-paper-pattern)
6
+ 2. [Required section sequence](#required-section-sequence)
7
+ 3. [Abstract contract](#abstract-contract)
8
+ 4. [Subproblem microstructure](#subproblem-microstructure)
9
+ 5. [Reasoning and prose rules](#reasoning-and-prose-rules)
10
+ 6. [Final evaluation](#final-evaluation)
11
+
12
+ ## Observed strong-paper pattern
13
+
14
+ The reviewed 2025 A/B/C national papers consistently:
15
+
16
+ - state each subproblem's method and numerical conclusion in the abstract;
17
+ - convert the statement into a visible dependency map before solving;
18
+ - separate assumptions and notation from model derivation;
19
+ - organize the core by subproblem rather than by a generic algorithm catalog;
20
+ - show equations, algorithms, tables, and figures close to their interpretation;
21
+ - validate with sensitivity, residuals, confidence intervals, cross-validation,
22
+ stability, or comparative methods;
23
+ - discuss limitations and extension after completing all subproblems;
24
+ - place long code and support-file inventories in appendices.
25
+
26
+ Use these as quality attributes, not a rigid imitation. Avoid their occasional
27
+ weaknesses: decorative background text, unsupported adjectives, excessive
28
+ symbol density, code screenshots, and AI tools cited as evidence for factual
29
+ claims.
30
+
31
+ ## Required section sequence
32
+
33
+ For CUMCM-style papers use:
34
+
35
+ 1. Title, abstract, keywords on the first electronic page.
36
+ 2. Problem restatement:
37
+ background only as needed, then precise requested outputs.
38
+ 3. Problem analysis:
39
+ dependency diagram and one compact analysis subsection per qN.
40
+ 4. Model assumptions:
41
+ assumption, rationale, consequence, and failure risk.
42
+ 5. Symbol explanation:
43
+ symbol, meaning, unit, scope; omit trivial one-use notation.
44
+ 6. Data understanding and preprocessing:
45
+ schema, missingness, anomalies, units, transformations, exclusions.
46
+ 7. Model preparation or shared mechanism:
47
+ only content genuinely reused across questions.
48
+ 8. One major section per qN.
49
+ 9. Model evaluation, limitations, and possible extensions.
50
+ 10. AI-use declaration when required by the active contest profile.
51
+ 11. References.
52
+ 12. Appendix:
53
+ support-file list and complete runnable source when required by the active
54
+ contest profile. A separately submitted AI-use details PDF is not duplicated
55
+ as a long appendix unless the rules explicitly request that.
56
+
57
+ Do not include a table of contents when CUMCM rules prohibit it.
58
+
59
+ ## Abstract contract
60
+
61
+ Write the abstract last. Keep it within one page including title and keywords.
62
+
63
+ Use this logic:
64
+
65
+ 1. One or two sentences: decision context and the central modeling challenge.
66
+ 2. For each qN:
67
+ - name the constructed model or transformation;
68
+ - identify the decisive data/constraint;
69
+ - report the primary quantitative result with units;
70
+ - state the validation or robustness evidence.
71
+ 3. One sentence: overall value, boundary, or recommendation.
72
+ 4. Three to five discriminative keywords.
73
+
74
+ Reject an abstract that:
75
+
76
+ - merely says "a model was established";
77
+ - lists algorithms without explaining their role;
78
+ - contains no quantitative result where the problem permits one;
79
+ - reports precision without sample size or evaluation design;
80
+ - introduces facts absent from code/results;
81
+ - uses "good", "accurate", "reasonable", or "significant" without evidence.
82
+
83
+ ## Subproblem microstructure
84
+
85
+ Use the following internal order for each `qN`:
86
+
87
+ 1. **Objective and inputs**: what is computed, for whom, and under which units.
88
+ 2. **Method choice**: candidate methods and why the chosen one fits.
89
+ 3. **Model construction**: variables, assumptions, equations, constraints.
90
+ 4. **Solution procedure**: algorithm or estimation steps.
91
+ 5. **Results**: one primary table/figure plus exact output path.
92
+ 6. **Interpretation**: practical meaning, not a second description of the plot.
93
+ 7. **Validation**: error, uncertainty, robustness, sensitivity, or comparison.
94
+ 8. **Sub-conclusion**: directly answer the statement in two or three sentences.
95
+
96
+ For dependent questions, begin by declaring which upstream artifacts are used
97
+ and why error propagation is acceptable.
98
+
99
+ ## Reasoning and prose rules
100
+
101
+ - Lead each paragraph with its claim; follow with evidence and implication.
102
+ - Explain why a model fits before presenting formulas.
103
+ - Define each symbol at first use and keep notation stable.
104
+ - State units in prose, tables, axes, and results.
105
+ - Distinguish observed, estimated, predicted, optimized, and assumed values.
106
+ - Report sample size, split strategy, random seed, and metric definition.
107
+ - Separate statistical significance from practical importance.
108
+ - Use calibrated precision; do not print more decimals than data justify.
109
+ - Reference every figure/table before it appears.
110
+ - Give captions enough context to stand without surrounding prose.
111
+ - Avoid tutorial-style explanations of standard algorithms; explain only the
112
+ customization, assumptions, and effect on this problem.
113
+ - Use `TODO[missing evidence: ...]` rather than fabricating transitions.
114
+
115
+ ## Final evaluation
116
+
117
+ Evaluate:
118
+
119
+ - model strengths tied to problem structure;
120
+ - limitations tied to assumptions, data, computation, or external validity;
121
+ - realistic improvements with expected effect;
122
+ - generalization conditions and situations where the model should not be used.
123
+
124
+ Do not use generic claims such as "high accuracy", "strong innovation", or
125
+ "wide applicability" without a test or concrete boundary.