@orbit-build/cli 0.8.3 → 0.8.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.
Files changed (45) hide show
  1. package/README.md +4 -1
  2. package/commands/cumcm-draft.md +3 -1
  3. package/dist/index.js +1158 -310
  4. package/package.json +1 -1
  5. package/skills/cumcm-draft/SKILL.md +102 -48
  6. package/skills/cumcm-draft/agents/openai.yaml +1 -1
  7. package/skills/cumcm-draft/assets/project-template/{code → .cumcm}/finalize.py +33 -4
  8. package/skills/cumcm-draft/assets/project-template/{paper/contest-profile.json → .cumcm/profile.json} +9 -6
  9. package/skills/cumcm-draft/assets/project-template/code/requirements.txt +1 -11
  10. package/skills/cumcm-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 +1 -11
  11. package/skills/cumcm-draft/assets/project-template/paper/main.tex +70 -11
  12. package/skills/cumcm-draft/references/code-and-output-style.md +9 -14
  13. package/skills/cumcm-draft/references/cumcm-compliance.md +28 -25
  14. package/skills/cumcm-draft/references/latex-figures-tables.md +1 -1
  15. package/skills/cumcm-draft/references/modeling-quality.md +1 -1
  16. package/skills/cumcm-draft/references/paper-architecture.md +3 -3
  17. package/skills/cumcm-draft/references/project-architecture.md +70 -89
  18. package/skills/cumcm-draft/scripts/audit_paper.py +37 -9
  19. package/skills/cumcm-draft/scripts/bootstrap_project.py +198 -56
  20. package/skills/cumcm-draft/scripts/build_paper.py +38 -23
  21. package/skills/cumcm-draft/scripts/capture_environment.py +3 -1
  22. package/skills/cumcm-draft/scripts/clean_project.py +7 -2
  23. package/skills/cumcm-draft/scripts/evidence_freeze.py +8 -4
  24. package/skills/cumcm-draft/scripts/finalize_project.py +16 -0
  25. package/skills/cumcm-draft/scripts/inspect_inputs.py +6 -4
  26. package/skills/cumcm-draft/scripts/package_support.py +41 -15
  27. package/skills/cumcm-draft/scripts/project_utils.py +40 -8
  28. package/skills/cumcm-draft/scripts/validate_project.py +394 -57
  29. package/skills/cumcm-draft/assets/project-template/code/always/__init__.py +0 -1
  30. package/skills/cumcm-draft/assets/project-template/code/always/config.py +0 -18
  31. package/skills/cumcm-draft/assets/project-template/code/always/data.py +0 -24
  32. package/skills/cumcm-draft/assets/project-template/code/always/plotting.py +0 -25
  33. package/skills/cumcm-draft/assets/project-template/code/always/validation.py +0 -21
  34. package/skills/cumcm-draft/assets/project-template/paper/sections/abstract.tex +0 -6
  35. package/skills/cumcm-draft/assets/project-template/paper/sections/ai-disclosure.tex +0 -3
  36. package/skills/cumcm-draft/assets/project-template/paper/sections/appendix.tex +0 -3
  37. package/skills/cumcm-draft/assets/project-template/paper/sections/assumptions.tex +0 -5
  38. package/skills/cumcm-draft/assets/project-template/paper/sections/data.tex +0 -19
  39. package/skills/cumcm-draft/assets/project-template/paper/sections/evaluation.tex +0 -9
  40. package/skills/cumcm-draft/assets/project-template/paper/sections/problem-analysis.tex +0 -3
  41. package/skills/cumcm-draft/assets/project-template/paper/sections/problem-restatement.tex +0 -3
  42. package/skills/cumcm-draft/assets/project-template/paper/sections/references.tex +0 -12
  43. package/skills/cumcm-draft/assets/project-template/paper/sections/source-code.tex +0 -1
  44. package/skills/cumcm-draft/assets/project-template/paper/sections/support-files.tex +0 -3
  45. /package/skills/cumcm-draft/assets/project-template/{paper → .cumcm}/ai-use-log.md +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbit-build/cli",
3
- "version": "0.8.3",
3
+ "version": "0.8.6",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Local-first AI coding agent CLI, TUI, Web UI, diagnostics, and LSP runtime",
6
6
  "keywords": [
@@ -6,6 +6,10 @@ description: Build, revise, or audit a CUMCM Chinese mathematical-modeling proje
6
6
  # Build or revise a CUMCM paper
7
7
 
8
8
  Deliver a compilable, evidence-backed project, not an outline or generic prose.
9
+ An end-to-end AI-generated project is a training artifact, not automatically a
10
+ submission-eligible contest entry. Claim submission readiness only when the
11
+ active profile records formal intent, team-led core modeling, and completed
12
+ manual review under the official AI rule.
9
13
  Never invent a model, algorithm, datum, parameter, numerical result, validation,
10
14
  or figure that the current code and artifacts do not support. Mark unresolved
11
15
  facts visibly with `TODO[reason]`.
@@ -22,21 +26,28 @@ After one project inventory, begin implementation immediately:
22
26
  3. Start the first substantive write within five tool calls after inventory.
23
27
  Work in bounded batches: at most four write/edit calls per model response,
24
28
  no giant all-project tool call, and leave enough output budget for valid
25
- tool-call closure. Implement code/results first, then paper sections in
29
+ tool-call closure. Implement code/results first, then `paper/main.tex` in
26
30
  coherent groups; do not spend turns on cosmetic inspection between them.
27
- 4. Run `code/run_all.py`, repair its evidence, then call the finalizer without
28
- reading the finalizer's implementation.
31
+ 4. Run `code/run_all.py`, repair and freeze its evidence, then perform one
32
+ evidence-to-paper synchronization pass before calling the finalizer without
33
+ reading the finalizer's implementation. The finalizer is a terminal gate,
34
+ not a discovery tool: do not launch it while known code/result/paper
35
+ mismatches remain.
29
36
  5. Spend remaining turns only on failed checks and rendered-page defects.
30
37
 
31
- When the project-local finalizer exits with code 0, the strict build, audit,
32
- page rendering, packaging, and validation are already complete. Stop tool use
33
- immediately and return the required final report. Do not write scratch verifier
34
- scripts, inspect build caches, re-parse the PDFs, or rerun checks after a
35
- successful finalizer. A successful finalizer is the terminal condition.
38
+ When the project-local finalizer exits with code 0 and prints
39
+ `[ORBIT_TERMINAL_SUCCESS]`, the strict build, audit, page rendering, packaging,
40
+ and validation are already complete. Stop tool use immediately and return the
41
+ required final report. Do not edit code, evidence, figures, or paper sources;
42
+ write scratch verifier scripts; inspect build caches; re-parse the PDFs; or
43
+ rerun checks after a successful finalizer. A successful finalizer is the
44
+ terminal condition. If any source is intentionally changed afterward, the old
45
+ PDF, evidence freeze, and support archive are stale: return to the appropriate
46
+ earlier phase and run the finalizer again before claiming completion.
36
47
 
37
48
  Do not repeat environment, path, template, or helper probes that already
38
49
  succeeded. A progress plan must not delay the first substantive write.
39
- If `paper/input-inventory.json`, `paper/contest-profile.json`, `code/qN`, and
50
+ If `.cumcm/input-inventory.json`, `.cumcm/profile.json`, `code/qN`, and
40
51
  `paper/main.tex` already exist, the scaffold is ready: do not read the Skill
41
52
  directory, helper sources, or every placeholder section. Read only the problem
42
53
  inventory/data and the target files needed for the next bounded write batch.
@@ -79,6 +90,16 @@ Inspect the project before editing and choose one mode automatically:
79
90
  - **Audit**: the user asks only for findings. Run read-only checks and report;
80
91
  do not change project files.
81
92
 
93
+ Also classify submission intent in `.cumcm/profile.json`:
94
+
95
+ - `training`: Orbit may build an end-to-end rehearsal artifact, but the final
96
+ report must state that AI-led core modeling cannot be submitted as team-led
97
+ work without an independent team redo and review.
98
+ - `formal`: set this only after the team supplies or approves the core model,
99
+ assumptions, objective, validation design, and conclusions. Record
100
+ `core_modeling_led_by_team: true` and `manual_review_completed: true` only
101
+ after those facts are true. The finalizer rejects a formal profile otherwise.
102
+
82
103
  For revision, read every relevant problem/attachment, latest code directory,
83
104
  `results/`, `figures/`, current TeX/PDF, and any excellent-paper directory.
84
105
  Reference papers guide structure and comparison only; they are never a source
@@ -137,13 +158,13 @@ the canonical layout.
137
158
  The bootstrap is additive and idempotent. It may add missing q-folders and
138
159
  orchestrator entries, but must not overwrite authored content. Confirm the
139
160
  current official CUMCM format, participation, and AI-use sources before each
140
- new contest cycle, record them in `paper/contest-profile.json`, and use the
161
+ new contest cycle, record them in `.cumcm/profile.json`, and use the
141
162
  bundled `cumcm-2026` profile only while those sources remain current.
142
163
 
143
164
  ### 2. Plan evidence before prose
144
165
 
145
- Maintain `paper/evidence-map.yaml`. Every material claim needs an identifier,
146
- an in-project `results/` source, a target `paper/sections/` file, and status
166
+ Maintain `.cumcm/evidence-map.yaml`. Every material claim needs an identifier,
167
+ an in-project `results/` source, `paper/main.tex` as its paper target, and status
147
168
  `TODO` or `verified`. Define each subproblem's variables, units, constraints,
148
169
  parameter sources, candidate methods, selection reason, data dependencies,
149
170
  outputs, and validation. For decision or forecasting tasks, classify every
@@ -152,8 +173,9 @@ the outcome. Record explicit upstream artifact contracts between subproblems.
152
173
 
153
174
  ### 3. Implement and run
154
175
 
155
- - Put cross-question configuration/loading/plotting/validation in
156
- `code/always`, but give every generated artifact one producing subproblem and
176
+ - Create a shared code module only after two or more questions actually reuse
177
+ the same configuration/loading/plotting/validation logic. Do not scaffold an
178
+ empty `always` or `common` package pre-emptively. Give every generated artifact one producing subproblem and
157
179
  store it in `results/qN`. Downstream questions may read an upstream qN result;
158
180
  do not create `results/always`, `results/shared`, or another ownerless result
159
181
  directory. Keep each `main.py` orchestral. After reading the problem, name
@@ -196,29 +218,44 @@ the outcome. Record explicit upstream artifact contracts between subproblems.
196
218
  column headers, Excel worksheet names, and Excel table headers in Chinese;
197
219
  include units in the header when applicable; and retain standard symbols or
198
220
  abbreviations only after the Chinese meaning, such as `均方根误差(RMSE)`.
199
- Encode CSV/TSV with UTF-8-SIG for reliable Excel display. Stable machine
200
- control files such as `summary.json` and `environment.json` may keep their
201
- documented ASCII names.
221
+ Encode CSV/TSV with UTF-8-SIG for reliable Excel display. Do not emit a
222
+ generic `summary.json` into results merely to satisfy the workflow; evidence
223
+ claims must point to the real Chinese-named result artifact. Workflow state
224
+ and reproducibility metadata belong under `.cumcm/`, not `results/`.
225
+ - Give every final figure a descriptive Chinese filename that states what is
226
+ shown. Names such as `summary.png`, `plot.png`, `figure.png`, `output.png`,
227
+ or `final.png` are invalid even when the graphic itself is correct.
202
228
  - Preserve a non-Chinese filename, header, or worksheet name only when the
203
229
  problem statement or supplied fill-in template fixes it. Do not translate or
204
230
  silently reshape that prescribed schema. Register the exact output path,
205
231
  immutable `question/` source (or root-level problem input), reason, and only
206
232
  the necessary allowances in
207
- `paper/contest-profile.json.result_artifacts.fixed_schema_exceptions` so the
233
+ `.cumcm/profile.json.result_artifacts.fixed_schema_exceptions` so the
208
234
  finalizer can distinguish a contest requirement from an accidental English
209
235
  artifact. The finalizer requires every waived field to match that cited
210
236
  source; citation without schema congruence is rejected. Internal convenience
211
237
  and cross-question code contracts are not
212
238
  exceptions; use a Chinese persisted schema and validate it explicitly.
213
- - In a compact handoff, place only explicitly required submission artifacts
214
- (final PDFs and required filled Excel/Word files) at project root. Keep
239
+ - Keep `paper/` compact throughout the workflow: `main.tex`,
240
+ `AI工具使用详情.tex`, their final PDFs, and `支撑材料.zip` only (plus
241
+ unavoidable compiler files when an external editor creates them). Never
242
+ expose `paper/sections/` or `paper/build/`; generated appendices and build
243
+ caches belong under `.cumcm/`. Keep
215
244
  internal CSV/JSON evidence under `results/qN`. Package code, necessary
216
245
  machine-readable results, larger intermediate figures, and the AI details PDF
217
246
  into the support ZIP before removing any reproducible workspace figures.
218
- After both PDF and ZIP are verified, remove figure/build folders only when the
219
- user requests a minimal delivery tree. Collapse authoring-only TeX
220
- sections into one root `main.tex`; do not retain a `sections/` directory in a
221
- single-author compact handoff.
247
+ Do not remove reproducible figures that are cited by the paper or required by
248
+ the support archive.
249
+ - Treat `paper/` as the human-facing delivery area, not a build workspace. The
250
+ hidden `.cumcm/finalize.py` is only a workspace-scoped launcher for Orbit's
251
+ trusted build/audit/package gate. It is not modeling code, never belongs under
252
+ `code/`, never appears in the source appendix or support ZIP, and may be
253
+ ignored by users reviewing the model implementation.
254
+ - A completed `code/qN` must never contain only `main.py`. The entry point must
255
+ remain orchestral while responsibility-named sibling modules contain the
256
+ actual preprocessing, model/optimization, validation, and reporting logic
257
+ that the question needs. The finalizer rejects main-only and TODO scaffold
258
+ projects before spending time on LaTeX compilation.
222
259
 
223
260
  ```powershell
224
261
  python <project-root>/code/run_all.py
@@ -226,11 +263,19 @@ python "<skill-root>/scripts/capture_environment.py" <project-root>
226
263
  ```
227
264
 
228
265
  Once numerical outputs and figures have been accepted, treat them as a frozen
229
- phase. The finalizer records their hashes in `paper/evidence-freeze.json`.
266
+ phase. The finalizer records their hashes in `.cumcm/evidence-freeze.json`.
230
267
  After that file exists, `--run-code` fails closed instead of silently changing
231
268
  accepted facts. Recalculation requires an explicit user request and the paired
232
269
  flags `--run-code --refresh-evidence`.
233
270
 
271
+ Before finalization, do exactly one bounded evidence-to-paper synchronization
272
+ pass: compare the generated summaries and material result tables with the
273
+ abstract, every numbered-question section, conclusion, evidence map, and
274
+ AI-use record. Resolve every stale value, filename, unit, and claim before
275
+ launching the finalizer. If code or evidence changes during paper authoring,
276
+ rerun the affected producer and repeat this synchronization pass; never leave a
277
+ newer TeX source paired with an older PDF or support archive.
278
+
234
279
  ### 4. Write or revise from evidence
235
280
 
236
281
  Use one major `\section` per numbered question so the paper maps directly to
@@ -277,20 +322,22 @@ temporary caches unless the problem explicitly requires them.
277
322
 
278
323
  ### 5. Audit, build, package, and inspect every page
279
324
 
280
- Use the one-command finalizer after the substantive code and paper are complete:
325
+ Use the `run_tests` tool—not the generic shell tool—for the one-command
326
+ finalizer after the substantive code and paper are complete. `run_tests`
327
+ records verification evidence and the trusted terminal-completion contract:
281
328
 
282
329
  ```powershell
283
- python <project-root>/code/finalize.py --run-code --strict-layout --render-pages
330
+ python <project-root>/.cumcm/finalize.py --run-code --strict-layout --render-pages
284
331
  ```
285
332
 
286
333
  Use `--run-code` for the first finalization only. For later typography,
287
334
  appendix, disclosure, packaging, or audit repairs, omit it:
288
335
 
289
336
  ```powershell
290
- python <project-root>/code/finalize.py --strict-layout --render-pages
337
+ python <project-root>/.cumcm/finalize.py --strict-layout --render-pages
291
338
  ```
292
339
 
293
- The project-local launcher executes the active Skill's trusted finalizer without
340
+ The private project-local launcher under `.cumcm/` executes the active Skill's trusted finalizer without
294
341
  requiring a shell command outside the workspace. It records the environment,
295
342
  rebuilds with local TeX Live, audits and optionally
296
343
  renders every page, packages support materials, and runs strict validation. Its
@@ -319,22 +366,28 @@ TeX sources, final PDFs, or unknown files.
319
366
 
320
367
  ## AI-use compliance
321
368
 
322
- Using this Skill is itself AI assistance. Apply the official 2025 trial AI rule
323
- unless a newer primary CUMCM source has replaced it: mark AI-generated or
324
- AI-revised content at the corresponding body locations, list each used tool in
325
- the references as tool name, version/model, provider, and date, and include
326
- `AI工具使用详情.pdf` inside the support ZIP. The details PDF must record tool and
327
- model, purpose and stage, key prompt-and-response interactions, adoption and
328
- manual changes, and verification. A generic declaration paragraph is optional
329
- and never substitutes for inline marks, the reference entry, or the details
330
- PDF. If no AI was used, place the exact official unused declaration after the
331
- references; this path is impossible when this Skill contributed to the work.
332
-
333
- Do not rewrite deep AI participation as team-independent core modeling. If AI
334
- performed core modeling or analysis in a training artifact, disclose that fact
335
- and warn that the artifact cannot be submitted as an independently completed
336
- contest entry without being independently redone. Never present an unofficial
337
- AIGC/AIDC percentage as an official threshold.
369
+ Using this Skill is itself AI assistance. Apply the official 2026 trial AI
370
+ rule: place a dedicated `AI工具使用声明` immediately before the references. For
371
+ this Skill, use the official used-AI sentence exactly, replacing only its
372
+ bracketed purpose:
373
+
374
+ `本参赛队在竞赛过程中使用了AI工具,主要用于〖简要用途,如语言润色、代码调试等〗,详细使用情况见支撑材料。`
375
+
376
+ Include `AI工具使用详情.pdf` inside the support ZIP. It must record the actual
377
+ tool and model, purpose and stage, major prompting approach and usage process,
378
+ and the principal adoption, manual changes, and verification; typical
379
+ interactions may be included but are not mandatory. The 2026 rule does not
380
+ require per-paragraph AI markers or an AI-tool bibliography entry, so do not
381
+ invent those as official gates. The unused declaration is impossible when this
382
+ Skill contributed to the work.
383
+
384
+ Do not rewrite deep AI participation as team-independent core modeling. The
385
+ official rule requires the team to lead core modeling and analysis and manually
386
+ review and verify every AI-assisted contribution. If AI performed core modeling
387
+ or analysis in a training artifact, disclose that fact and warn that the
388
+ artifact cannot be submitted as an independently completed contest entry
389
+ without being independently redone and verified by the team. Never present an
390
+ unofficial AIGC/AIDC percentage as an official threshold.
338
391
 
339
392
  ## Completion gate
340
393
 
@@ -343,8 +396,9 @@ all q1/q2/... paths align; code runs; every reported number is evidence-linked;
343
396
  assumptions, units, limitations, and validation are explicit; figures and code
344
397
  appendix are current; TeX compiles under local TeX Live; the final PDF passes
345
398
  page-by-page inspection; package contents satisfy the active profile; and every
346
- remaining TODO or manual decision is reported.
399
+ remaining TODO or manual decision is reported. A formal profile additionally
400
+ requires truthful team-led core modeling and completed manual AI review flags.
347
401
 
348
402
  The final response should contain only: material changes, defects fixed,
349
- numerical consistency result, compile/layout verification, remaining TODOs, and
350
- absolute paths to final files.
403
+ numerical consistency result, compile/layout verification, submission
404
+ intent/eligibility, remaining TODOs, and absolute paths to final files.
@@ -1,6 +1,6 @@
1
1
  interface:
2
2
  display_name: "CUMCM Draft"
3
3
  short_description: "Complete CUMCM paper, code, PDF, AI record, and support ZIP"
4
- default_prompt: "Use $cumcm-draft to audit the current official CUMCM rules, read every problem and attachment, complete the modeling and runnable q1/q2 code, generate verified evidence and figures, write the full Chinese LaTeX paper with current AI-use marks, compile and inspect every page, and package a matching submission PDF and support ZIP."
4
+ default_prompt: "Use $cumcm-draft to audit the current official CUMCM rules, read every problem and attachment, build runnable responsibility-based q1/q2 code and Chinese-named evidence/figures, keep paper/ limited to main.tex, AI details, and final deliverables, write and inspect the full Chinese paper, and package the matching PDF/ZIP pair. Treat AI-led core modeling as training work unless team leadership and manual review are documented for formal submission."
5
5
  policy:
6
6
  allow_implicit_invocation: false
@@ -18,8 +18,33 @@ def resolve_finalizer() -> Path:
18
18
  candidate = Path(development_root).resolve() / "scripts" / "finalize_project.py"
19
19
  if candidate.is_file() and not candidate.is_symlink():
20
20
  return candidate
21
- personal = Path.home() / ".orbit" / "skills" / "cumcm-draft" / "scripts" / "finalize_project.py"
22
- if personal.is_file():
21
+ configured_roots = (
22
+ os.environ.get("ORBIT_SKILLS_DIRS")
23
+ or os.environ.get("ORBIT_SKILLS_DIR")
24
+ or ""
25
+ )
26
+ for raw_root in configured_roots.replace(",", ";").split(";"):
27
+ if not raw_root.strip():
28
+ continue
29
+ root = Path(os.path.expanduser(raw_root.strip())).resolve()
30
+ candidates = (
31
+ [root / "cumcm-draft", root]
32
+ if root.name != "cumcm-draft"
33
+ else [root]
34
+ )
35
+ for skill_root in candidates:
36
+ candidate = skill_root / "scripts" / "finalize_project.py"
37
+ if candidate.is_file() and not candidate.is_symlink():
38
+ return candidate
39
+ personal = (
40
+ Path.home()
41
+ / ".orbit"
42
+ / "skills"
43
+ / "cumcm-draft"
44
+ / "scripts"
45
+ / "finalize_project.py"
46
+ )
47
+ if personal.is_file() and not personal.is_symlink():
23
48
  return personal
24
49
  orbit = shutil.which("orbit")
25
50
  if orbit:
@@ -41,8 +66,12 @@ def resolve_finalizer() -> Path:
41
66
  for skill in payload.get("skills", []):
42
67
  if skill.get("name") != "cumcm-draft":
43
68
  continue
44
- candidate = Path(str(skill.get("path", ""))).resolve().parent / "scripts" / "finalize_project.py"
45
- if candidate.is_file():
69
+ candidate = (
70
+ Path(str(skill.get("path", ""))).resolve().parent
71
+ / "scripts"
72
+ / "finalize_project.py"
73
+ )
74
+ if candidate.is_file() and not candidate.is_symlink():
46
75
  return candidate
47
76
  raise SystemExit(
48
77
  "Active cumcm-draft finalizer is missing. Run `orbit skills list` "
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema_version": 1,
3
3
  "profile": "cumcm-2026",
4
- "rules_checked_at": "2026-08-12",
4
+ "rules_checked_at": "2026-08-15",
5
5
  "rules_expires_at": "2026-09-30",
6
6
  "paper": {
7
7
  "max_pdf_mb": 20,
@@ -17,20 +17,23 @@
17
17
  "require_chinese_filenames": true,
18
18
  "require_chinese_headers": true,
19
19
  "require_chinese_sheet_names": true,
20
+ "require_chinese_figure_filenames": true,
20
21
  "require_utf8_sig_csv": true,
21
22
  "fixed_schema_exceptions": []
22
23
  },
23
24
  "ai": {
24
- "policy": "cumcm-2025-trial",
25
+ "policy": "cumcm-2026-trial",
25
26
  "used": true,
26
- "inline_markers_required": true,
27
- "reference_entry_required": true,
28
- "reference_key": "ai-tool",
27
+ "submission_intent": "training",
28
+ "core_modeling_led_by_team": false,
29
+ "manual_review_completed": false,
30
+ "declaration_required": true,
31
+ "declaration_before_references": true,
29
32
  "details_pdf_required": true
30
33
  },
31
34
  "sources": [
32
35
  "https://www.mcm.edu.cn/html_cn/node/4cd596519c9eb9fbd866398f6df0caa3.html",
33
36
  "https://www.mcm.edu.cn/html_cn/node/9d8e511fe7a1447b35f53a82c908e2e0.html",
34
- "https://en.mcm.edu.cn/html_en/node/b87f1a9b1dbbd987f56513609f416722.html"
37
+ "https://www.mcm.edu.cn/html_cn/node/fef94648f2836ab6cc81586f4c38512b.html"
35
38
  ]
36
39
  }
@@ -1,11 +1 @@
1
- matplotlib
2
- numpy
3
- openpyxl
4
- pandas
5
- pypdf
6
- python-docx
7
- PyYAML
8
- scikit-learn
9
- scipy
10
- seaborn
11
- xlrd
1
+ # 只填写实际求解代码直接使用的第三方依赖;不要保留未使用的工具箱。
@@ -17,17 +17,7 @@
17
17
  \TODO{逐项填写实际工具名称、版本、模型、提供方,以及使用阶段和用途。}
18
18
 
19
19
  \section{主要提示方式与过程}
20
- \TODO{概述如何提供题目、代码和证据约束;不得虚构未发生的交互。}
21
-
22
- \section{关键交互记录}
23
- \renewcommand{\arraystretch}{1.15}
24
- \begin{longtable}{@{}L{0.06\textwidth}L{0.26\textwidth}L{0.31\textwidth}L{0.25\textwidth}@{}}
25
- \hline
26
- 序号 & 重要提示词(摘要) & AI回复(摘要) & 采纳及人工修改 \\
27
- \hline
28
- 1 & \TODO{填写真实提示词} & \TODO{填写真实回复要点} & \TODO{填写采纳与修改} \\
29
- \hline
30
- \end{longtable}
20
+ \TODO{概述如何提供题目、代码和证据约束以及实际使用过程;不得虚构未发生的交互。必要时可附典型交互示例。}
31
21
 
32
22
  \section{采纳、人工修改与核验}
33
23
  \renewcommand{\arraystretch}{1.3}
@@ -56,7 +56,6 @@
56
56
  \pagestyle{plain}
57
57
  \newcommand{\TODO}[1]{\textcolor{red}{\textbf{TODO[#1]}}}
58
58
  \newcommand{\papertitle}{TODO[填写能够概括方法与对象的论文标题]}
59
- \newcommand{\AIUseMark}{\textsuperscript{\cite{ai-tool}}}
60
59
 
61
60
  \begin{document}
62
61
 
@@ -65,22 +64,82 @@
65
64
  \end{center}
66
65
 
67
66
  \vspace{1.2em}
68
- \input{sections/abstract}
67
+ \noindent\textbf{摘要:}
68
+ \TODO{写清研究对象、每问采用的方法、关键数值结果及主要检验;不写背景套话。}
69
+
70
+ \vspace{0.8em}
71
+ \noindent\textbf{关键词:}
72
+ \TODO{填写3--5个能够检索模型与研究对象的关键词}
69
73
 
70
74
  \clearpage
71
75
  \setcounter{page}{2}
72
- \input{sections/problem-restatement}
73
- \input{sections/problem-analysis}
74
- \input{sections/assumptions}
75
- \input{sections/data}
76
- \input{sections/questions}
77
- \input{sections/evaluation}
78
- \input{sections/ai-disclosure}
79
- \input{sections/references}
76
+
77
+ \section{问题重述}
78
+
79
+ \TODO{用自己的语言凝练任务、对象、输入与交付物,不逐句抄写题面。}
80
+
81
+ \section{问题分析}
82
+
83
+ \TODO{说明各小题之间的数据流、约束关系与总体求解路线。若依赖关系复杂,插入一张信息密度足够的流程图。}
84
+
85
+ \section{模型假设}
86
+
87
+ \begin{enumerate}
88
+ \item \TODO{给出必要假设,并说明它会排除什么情形或带来何种偏差。}
89
+ \end{enumerate}
90
+
91
+ \section{符号说明与数据预处理}
92
+
93
+ \subsection{主要符号}
94
+
95
+ \begin{table}[H]
96
+ \centering
97
+ \caption{主要符号及含义}
98
+ \begin{tabular}{cll}
99
+ \toprule
100
+ 符号 & 含义 & 单位 \\
101
+ \midrule
102
+ \TODO{符号} & \TODO{含义} & \TODO{单位} \\
103
+ \bottomrule
104
+ \end{tabular}
105
+ \end{table}
106
+
107
+ \subsection{数据审计与预处理}
108
+
109
+ \TODO{报告数据规模、缺失、异常、重复、单位转换和预处理原则,并保留关键诊断证据。}
110
+
111
+ % ORBIT:QUESTIONS:BEGIN
112
+ % 问题分节由 bootstrap_project.py 在此处增补;完成后直接在本文件中写作。
113
+ % ORBIT:QUESTIONS:END
114
+
115
+ \section{模型评价与推广}
116
+
117
+ \subsection{模型优点}
118
+
119
+ \TODO{结合本题证据说明可解释性、精度、稳健性或计算效率,避免空泛形容。}
120
+
121
+ \subsection{模型局限与改进}
122
+
123
+ \TODO{指出假设、数据、算法或外推范围造成的具体限制,并给出可执行改进方向。}
124
+
125
+ \section*{AI工具使用声明}
126
+
127
+ 本参赛队在竞赛过程中使用了AI工具,主要用于\TODO{简要填写实际用途,如语言润色、代码调试等},详细使用情况见支撑材料。
128
+
129
+ {\footnotesize
130
+ \begin{thebibliography}{99}
131
+ \setlength{\itemsep}{0.2em}
132
+
133
+ \bibitem{todo-reference}
134
+ \TODO{按正文首次引用顺序补充真实、可核验的参考文献。}
135
+
136
+ \end{thebibliography}
137
+ }
80
138
  \label{body-end}
81
139
 
82
140
  \clearpage
83
141
  \appendix
84
- \input{sections/appendix}
142
+ \IfFileExists{../.cumcm/generated/support-files.tex}{\input{../.cumcm/generated/support-files.tex}}{}
143
+ \IfFileExists{../.cumcm/generated/source-code.tex}{\input{../.cumcm/generated/source-code.tex}}{}
85
144
 
86
145
  \end{document}
@@ -8,25 +8,19 @@ Use responsibility-based modules after reading the actual problem. For example:
8
8
  code/
9
9
  ├── requirements.txt
10
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
11
+ ├── qN/
19
12
  ├── main.py
20
13
  ├── preprocessing.py
21
14
  ├── forecasting.py
22
15
  ├── evaluation.py
23
16
  └── reporting.py
17
+ └── common/ # only after real cross-question reuse exists
24
18
  ```
25
19
 
26
20
  The names above are examples, not a fixed template. Another question may need
27
21
  `simulation.py`, `policy_search.py`, or `sensitivity.py`. Create only modules
28
22
  that carry real logic, keep `main.py` orchestral, and keep dependencies one-way:
29
- `main -> domain logic -> always`.
23
+ `main -> domain logic -> optional shared logic`.
30
24
 
31
25
  Avoid these patterns:
32
26
 
@@ -74,8 +68,7 @@ pipeline = make_pipeline(transformer, estimator)
74
68
 
75
69
  For each `results/qN` prefer:
76
70
 
77
- - `summary.json`: primary claims, units, sample sizes, method, seed;
78
- - `.csv`: tidy tables and diagnostics;
71
+ - Chinese-named `.csv`/`.xlsx`: primary claims, tidy tables, and diagnostics;
79
72
  - `.txt` or `.md`: short model rules or readable explanations;
80
73
  - serialized model only when later questions need it;
81
74
  - completed `.xlsx` only when the problem requests a filled workbook.
@@ -90,13 +83,13 @@ All leaf tabular evidence is Chinese-facing by default:
90
83
  - use Chinese Excel worksheet names and Chinese table headers for generated
91
84
  workbooks;
92
85
  - write CSV and TSV with UTF-8-SIG so Chinese text opens correctly in Excel;
93
- - keep fixed machine-control artifacts such as `summary.json` and
94
- `environment.json` at their documented stable paths.
86
+ - keep workflow state, evidence maps, environment capture, and freeze manifests
87
+ under `.cumcm/`; do not leak a synthetic `summary.json` into final results.
95
88
 
96
89
  Do not translate a filename, field, column order, or worksheet name that the
97
90
  problem or a supplied fill-in template explicitly fixes. Record that exact
98
91
  exception in
99
- `paper/contest-profile.json.result_artifacts.fixed_schema_exceptions`:
92
+ `.cumcm/profile.json.result_artifacts.fixed_schema_exceptions`:
100
93
 
101
94
  ```json
102
95
  {
@@ -121,6 +114,8 @@ write outputs into `question/`.
121
114
  For each `figures/qN`:
122
115
 
123
116
  - save only figures used or directly useful in the paper;
117
+ - use descriptive Chinese filenames; reject generic names such as
118
+ `summary.png`, `plot.png`, `figure.png`, `output.png`, and `final.png`;
124
119
  - prefer vector PDF for line art plus a high-resolution PNG fallback;
125
120
  - use Chinese-capable fonts and minus-sign handling;
126
121
  - label axes and colorbars with units;
@@ -1,6 +1,6 @@
1
1
  # CUMCM compliance profile
2
2
 
3
- Checked against the official CUMCM site on 2026-08-12. Recheck the official
3
+ Checked against the official CUMCM site on 2026-08-15. Recheck the official
4
4
  site at the start of every contest cycle; newer organizer material and supplied
5
5
  regional requirements outrank this reference.
6
6
 
@@ -30,37 +30,40 @@ Official format source:
30
30
 
31
31
  ## Current AI-use rule
32
32
 
33
- The official site still lists the “2025 trial” AI-use rule alongside the 2026
34
- format and participation rules. Until a newer primary rule replaces it:
33
+ The organizer published the Chinese “2026 trial” AI-use rule on 2026-08-03,
34
+ effective from 2026-09-01. It supersedes inconsistent earlier rules:
35
35
 
36
- 1. Treat language models, generative AI, code assistants, agents, and intelligent
37
- mathematical software as AI tools.
38
- 2. Keep core modeling and analysis team-led; the team remains responsible for
39
- originality, truthfulness, and accuracy.
40
- 3. Mark AI-generated content at the corresponding locations in the body.
41
- 4. Add each used tool to the references in the form: tool name, version/model,
42
- provider/company, use date.
43
- 5. Put `AI工具使用详情.pdf` in the support archive. Record the actual tool/model,
44
- purposes and stages, key prompt-and-response interactions, and adopted content
45
- plus manual changes.
46
- 6. If no AI was used, place `本参赛队未使用任何 AI 工具` after the references.
47
- Never claim this when an AI Skill or agent contributed.
36
+ 1. Treat large language models, generative AI, code assistants, and AI agents
37
+ as AI tools.
38
+ 2. Keep core modeling and analysis team-led. Manually review and verify every
39
+ AI-assisted contribution; the team remains responsible for originality,
40
+ truthfulness, and accuracy.
41
+ 3. Put an `AI工具使用声明` immediately before the references and use exactly one
42
+ official branch:
43
+ - unused: `本参赛队在竞赛过程中未使用任何AI工具。`
44
+ - used: `本参赛队在竞赛过程中使用了AI工具,主要用于〖简要用途,如语言润色、代码调试等〗,详细使用情况见支撑材料。`
45
+ 4. For used AI, put `AI工具使用详情.pdf` in the support archive. Record tool
46
+ name and version/model, purpose and stage, major prompting approach and
47
+ usage process, and principal adoption, manual modification, and verification.
48
+ Typical interaction examples are optional.
49
+ 5. The 2026 rule does not require inline body markers or an AI-tool bibliography
50
+ entry. Do not mislabel those older requirements as current official gates.
51
+ 6. Concealment, a false declaration, or directly submitting unreviewed AI core
52
+ modeling/analysis can cancel award eligibility.
48
53
 
49
- The Chinese rules index still lists the 2025 trial AI rule, and the 2026
50
- participation rule continues to require it. The Chinese detail URL returned 404
51
- when rechecked on 2026-08-12, so use the accessible official English mirror for
52
- the full text until the organizer restores or replaces the Chinese page:
53
- <https://en.mcm.edu.cn/html_en/node/b87f1a9b1dbbd987f56513609f416722.html>
54
+ Official 2026 AI-use rule:
55
+ <https://www.mcm.edu.cn/html_cn/node/fef94648f2836ab6cc81586f4c38512b.html>
54
56
 
55
- Official Chinese rules index:
56
- <https://www.mcm.edu.cn/html_cn/block/44e92058f537729c6b6a62a3662ee417.html>
57
-
58
- The 2026 participation rule explicitly allows AI only as an auxiliary tool and
59
- requires compliance with the AI-use rule:
57
+ The 2026 participation rule permits AI as an auxiliary tool and requires
58
+ compliance with the current AI-use rule:
60
59
  <https://www.mcm.edu.cn/html_cn/node/9d8e511fe7a1447b35f53a82c908e2e0.html>
61
60
 
62
61
  ## Guardrails
63
62
 
63
+ - Keep `ai.submission_intent` as `training` for end-to-end AI-led rehearsal
64
+ work. Change it to `formal` only when the team actually led the core model and
65
+ analysis and completed item-by-item manual review; record both facts in the
66
+ active contest profile.
64
67
  - A training artifact substantially modeled or written by AI cannot truthfully
65
68
  be relabeled as team-independent core work. Preserve the disclosure and require
66
69
  an independent redo before formal submission.