@orbit-build/cli 0.4.4 → 0.4.6
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.
- package/commands/math-draft.md +11 -0
- package/dist/index.js +271 -40
- package/package.json +4 -2
- package/skills/math-model-draft/SKILL.md +216 -0
- package/skills/math-model-draft/agents/openai.yaml +6 -0
- package/skills/math-model-draft/assets/project-template/code/always/__init__.py +1 -0
- package/skills/math-model-draft/assets/project-template/code/always/config.py +17 -0
- package/skills/math-model-draft/assets/project-template/code/always/data.py +23 -0
- package/skills/math-model-draft/assets/project-template/code/always/plotting.py +24 -0
- package/skills/math-model-draft/assets/project-template/code/always/validation.py +20 -0
- package/skills/math-model-draft/assets/project-template/code/finalize.py +55 -0
- package/skills/math-model-draft/assets/project-template/code/requirements.txt +11 -0
- 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
- package/skills/math-model-draft/assets/project-template/paper/ai-use-log.md +7 -0
- package/skills/math-model-draft/assets/project-template/paper/contest-profile.json +25 -0
- package/skills/math-model-draft/assets/project-template/paper/main.tex +53 -0
- package/skills/math-model-draft/assets/project-template/paper/sections/abstract.tex +6 -0
- package/skills/math-model-draft/assets/project-template/paper/sections/ai-disclosure.tex +3 -0
- package/skills/math-model-draft/assets/project-template/paper/sections/appendix.tex +9 -0
- package/skills/math-model-draft/assets/project-template/paper/sections/assumptions.tex +5 -0
- package/skills/math-model-draft/assets/project-template/paper/sections/data.tex +19 -0
- package/skills/math-model-draft/assets/project-template/paper/sections/evaluation.tex +9 -0
- package/skills/math-model-draft/assets/project-template/paper/sections/problem-analysis.tex +3 -0
- package/skills/math-model-draft/assets/project-template/paper/sections/problem-restatement.tex +3 -0
- package/skills/math-model-draft/assets/project-template/paper/sections/references.tex +6 -0
- package/skills/math-model-draft/assets/project-template/paper/sections/source-code.tex +1 -0
- package/skills/math-model-draft/assets/project-template/paper/sections/support-files.tex +3 -0
- package/skills/math-model-draft/references/code-and-output-style.md +91 -0
- package/skills/math-model-draft/references/cumcm-compliance.md +56 -0
- package/skills/math-model-draft/references/latex-figures-tables.md +60 -0
- package/skills/math-model-draft/references/modeling-quality.md +91 -0
- package/skills/math-model-draft/references/paper-architecture.md +125 -0
- package/skills/math-model-draft/references/paper-revision.md +76 -0
- package/skills/math-model-draft/references/project-architecture.md +65 -0
- package/skills/math-model-draft/scripts/audit_paper.py +185 -0
- package/skills/math-model-draft/scripts/bootstrap_project.py +275 -0
- package/skills/math-model-draft/scripts/build_paper.py +226 -0
- package/skills/math-model-draft/scripts/capture_environment.py +46 -0
- package/skills/math-model-draft/scripts/clean_project.py +46 -0
- package/skills/math-model-draft/scripts/finalize_project.py +49 -0
- package/skills/math-model-draft/scripts/inspect_inputs.py +193 -0
- package/skills/math-model-draft/scripts/package_support.py +52 -0
- package/skills/math-model-draft/scripts/project_utils.py +106 -0
- package/skills/math-model-draft/scripts/validate_project.py +313 -0
|
@@ -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.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Existing-paper revision and consistency audit
|
|
2
|
+
|
|
3
|
+
Use this workflow when a project already contains TeX/PDF, code, outputs, or
|
|
4
|
+
reference papers. The objective is to make the submitted paper true, complete,
|
|
5
|
+
and readable while preserving good authored work.
|
|
6
|
+
|
|
7
|
+
## Read before editing
|
|
8
|
+
|
|
9
|
+
Inventory and read, where present:
|
|
10
|
+
|
|
11
|
+
- problem statements, official templates, rules, and attachments;
|
|
12
|
+
- the newest code tree and its configuration/entry points;
|
|
13
|
+
- `results/` machine-readable outputs and `figures/`;
|
|
14
|
+
- all TeX entry points, included sections, bibliography, and current PDF;
|
|
15
|
+
- excellent/reference papers, especially their final results tables.
|
|
16
|
+
|
|
17
|
+
Resolve ambiguous “latest” directories by modification time plus entry-point
|
|
18
|
+
references. Do not infer currency from a folder name alone.
|
|
19
|
+
|
|
20
|
+
## Question-by-question completeness
|
|
21
|
+
|
|
22
|
+
Each question should form a traceable argument:
|
|
23
|
+
|
|
24
|
+
1. what the question asks and what is delivered;
|
|
25
|
+
2. variables, targets, units, constraints, and upstream inputs;
|
|
26
|
+
3. why the chosen model fits better than plausible alternatives;
|
|
27
|
+
4. equations and parameter provenance;
|
|
28
|
+
5. solver/algorithm steps matching the actual implementation;
|
|
29
|
+
6. numerical results sourced from JSON/CSV/XLSX;
|
|
30
|
+
7. interpretation in the problem's terms;
|
|
31
|
+
8. appropriate validation, sensitivity, uncertainty, or baseline comparison;
|
|
32
|
+
9. direct conclusion and link to the next question.
|
|
33
|
+
|
|
34
|
+
Thin prose is repaired with local evidence-backed additions. Do not add a
|
|
35
|
+
method simply because another paper uses it.
|
|
36
|
+
|
|
37
|
+
## Numerical cross-check
|
|
38
|
+
|
|
39
|
+
Build a ledger for every material value: source path and field, paper locations,
|
|
40
|
+
unit, transformation, precision, and status. Compare abstract, body, tables,
|
|
41
|
+
captions, figures, conclusions, and appendices. Check negative signs, percentage
|
|
42
|
+
versus fraction, coordinate/order conventions, constraint directions, and
|
|
43
|
+
rounding. A program-generated JSON/CSV value wins over a hand-entered TeX value
|
|
44
|
+
unless code/output is proven stale and rerun.
|
|
45
|
+
|
|
46
|
+
## Figures and tables
|
|
47
|
+
|
|
48
|
+
Confirm each figure was produced by current code, appears near first discussion,
|
|
49
|
+
has a preceding textual reference, and receives interpretation beyond repeating
|
|
50
|
+
its caption. Check Chinese fonts, legends, units, resolution, clipping, overlap,
|
|
51
|
+
float drift, cross-question placement, and blank-page/whitespace effects. Remove
|
|
52
|
+
obsolete figures only when provenance proves they are generated duplicates and
|
|
53
|
+
the deletion is safe; otherwise report them.
|
|
54
|
+
|
|
55
|
+
For comparisons with excellent papers, use their final result table as the
|
|
56
|
+
paper's authoritative value and verify that aliases such as “论文1/2/3” match
|
|
57
|
+
table columns, prose, and bibliography entries.
|
|
58
|
+
|
|
59
|
+
## Editing boundaries
|
|
60
|
+
|
|
61
|
+
- Preserve the abstract's information density. Each question should retain its
|
|
62
|
+
model, algorithm, key numerical result, and conclusion.
|
|
63
|
+
- Prefer localized additions, factual corrections, and float placement fixes.
|
|
64
|
+
- Do not change global spacing or reformat the entire paper unless a verified
|
|
65
|
+
layout defect requires it.
|
|
66
|
+
- Regenerate pasted code appendices from current source; do not hand-maintain
|
|
67
|
+
stale listings.
|
|
68
|
+
- Do not delete important or unknown materials. Ask only when a model direction
|
|
69
|
+
would change or a deletion cannot be proven safe.
|
|
70
|
+
|
|
71
|
+
## Final QA
|
|
72
|
+
|
|
73
|
+
Compile with local TeX Live. Inspect the actual final PDF page by page and the
|
|
74
|
+
log for missing glyphs, undefined citations/references, overfull/underfull boxes,
|
|
75
|
+
blank pages, orphan headings, table/figure overflow, and abnormal whitespace.
|
|
76
|
+
Clean only deterministic caches and temporary page renders after QA.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Project architecture
|
|
2
|
+
|
|
3
|
+
Use one stable project root. Keep inputs, code, paper, results, and figures
|
|
4
|
+
separate so a human can replace any layer without reorganizing the project.
|
|
5
|
+
|
|
6
|
+
```text
|
|
7
|
+
project-root/
|
|
8
|
+
├── question/ # Immutable problem PDF/DOCX and source data
|
|
9
|
+
├── code/
|
|
10
|
+
│ ├── requirements.txt
|
|
11
|
+
│ ├── run_all.py
|
|
12
|
+
│ ├── always/ # Shared configuration, data, plotting, checks
|
|
13
|
+
│ ├── q1/
|
|
14
|
+
│ ├── q2/
|
|
15
|
+
│ └── ...
|
|
16
|
+
├── results/
|
|
17
|
+
│ ├── q1/ # Tables, metrics, filled workbooks, models
|
|
18
|
+
│ ├── q2/
|
|
19
|
+
│ └── ...
|
|
20
|
+
├── figures/
|
|
21
|
+
│ ├── q1/ # Final paper-ready figures only
|
|
22
|
+
│ ├── q2/
|
|
23
|
+
│ └── ...
|
|
24
|
+
└── paper/
|
|
25
|
+
├── main.tex
|
|
26
|
+
├── references.bib
|
|
27
|
+
├── evidence-map.yaml
|
|
28
|
+
├── sections/
|
|
29
|
+
│ ├── q1.tex
|
|
30
|
+
│ ├── q2.tex
|
|
31
|
+
│ └── ...
|
|
32
|
+
└── build/ # LaTeX intermediates and final PDF
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Ownership rules
|
|
36
|
+
|
|
37
|
+
- `question/` is read-only. Never normalize, rename, fill, or save over input.
|
|
38
|
+
- Ignore blank workbooks/sheets unless the statement explicitly assigns them a
|
|
39
|
+
role. Record that they were blank.
|
|
40
|
+
- A required filled table belongs in `results/qN`, even when its blank template
|
|
41
|
+
came from `question/`.
|
|
42
|
+
- `code/always` contains only logic used by two or more subproblems.
|
|
43
|
+
- Each `code/qN/main.py` must run independently after its prerequisites exist.
|
|
44
|
+
- `code/run_all.py` runs subproblems in dependency order.
|
|
45
|
+
- `results/qN` owns numeric and tabular evidence for subproblem N.
|
|
46
|
+
- `figures/qN` owns final visuals for subproblem N. Put diagnostic-only images
|
|
47
|
+
in a temporary build directory and remove them before handoff.
|
|
48
|
+
- `paper/sections/qN.tex` may consume only declared evidence from matching or
|
|
49
|
+
explicitly upstream result directories.
|
|
50
|
+
|
|
51
|
+
## Naming
|
|
52
|
+
|
|
53
|
+
- Use `q1`, `q2`, ... exactly; do not mix `Q1`, `question1`, or Chinese folder
|
|
54
|
+
names.
|
|
55
|
+
- Prefer descriptive Chinese artifact names when they improve hand editing.
|
|
56
|
+
- Use stable ASCII Python module names.
|
|
57
|
+
- Use UTF-8 for text and UTF-8 with BOM for CSV intended for Excel.
|
|
58
|
+
- Include units in column labels or metadata.
|
|
59
|
+
|
|
60
|
+
## Compatibility with legacy reproduction folders
|
|
61
|
+
|
|
62
|
+
Some existing projects place `question/` next to a `reproduce/` directory.
|
|
63
|
+
Read those inputs in place, but do not move them automatically. For a new
|
|
64
|
+
project, make `question/` a peer of `code/`, `results/`, `figures/`, and
|
|
65
|
+
`paper/` as the canonical structure above.
|