@orbit-build/cli 1.9.1 → 1.9.2
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/dist/index.js +1632 -952
- package/package.json +1 -1
- package/skills/cumcm-draft/SKILL.md +64 -21
- package/skills/cumcm-draft/agents/openai.yaml +2 -2
- package/skills/cumcm-draft/assets/project-template/.cumcm/profile.json +3 -1
- package/skills/cumcm-draft/references/code-and-output-style.md +30 -6
- package/skills/cumcm-draft/references/cumcm-compliance.md +1 -1
- package/skills/cumcm-draft/references/modeling-quality.md +17 -0
- package/skills/cumcm-draft/references/project-architecture.md +17 -3
- package/skills/cumcm-draft/scripts/project_utils.py +5 -3
- package/skills/cumcm-draft/scripts/validate_project.py +258 -37
- package/skills/cumcm-draft/assets/project-template/code/requirements.txt +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cumcm-draft
|
|
3
|
-
description:
|
|
3
|
+
description: Design, solve, revise, or audit a CUMCM Chinese mathematical-modeling project against the current official result schema, paper, support-archive, anonymity, citation, and AI-use rules. Produces evidence-linked responsibility-based qN code, validated minimal results and paper-ready figures, and—when requested—a complete Chinese LaTeX paper, source appendix, AI-use record, and PDF/ZIP pair. Use explicitly for 全国大学生数学建模竞赛、国赛、CUMCM、分问题建模与代码结果、国赛论文初稿或定稿审查、CUMCM TeX/PDF修订、支撑材料打包及模型—代码—结果—论文一致性核验;do not use for MCM/ICM.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Build or revise a CUMCM paper
|
|
@@ -14,7 +14,14 @@ Never invent a model, algorithm, datum, parameter, numerical result, validation,
|
|
|
14
14
|
or figure that the current code and artifacts do not support. Mark unresolved
|
|
15
15
|
facts visibly with `TODO[reason]`.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Honor the user's requested phase boundary. If the user asks only for design,
|
|
18
|
+
one question's code/results/figures, or an audit, do not expand the task into
|
|
19
|
+
paper generation, packaging, cleanup, or finalization. A demand for “no
|
|
20
|
+
loopholes” means run proportionate independent checks and report residual
|
|
21
|
+
assumptions; it never authorizes hiding limitations or claiming an impossible
|
|
22
|
+
absolute guarantee.
|
|
23
|
+
|
|
24
|
+
## Mandatory execution order for generation or solving
|
|
18
25
|
|
|
19
26
|
After one project inventory, begin implementation immediately:
|
|
20
27
|
|
|
@@ -26,19 +33,20 @@ After one project inventory, begin implementation immediately:
|
|
|
26
33
|
exist, never guess the intended one. Record the selected executable and
|
|
27
34
|
version privately under `.cumcm/`, not in `results/`. Do not install a new
|
|
28
35
|
scientific stack unless the selected model truly requires it.
|
|
29
|
-
3.
|
|
36
|
+
3. In a mode that authorizes changes, start the first substantive write within
|
|
37
|
+
five tool calls after inventory.
|
|
30
38
|
Work in bounded batches: at most four write/edit calls per model response,
|
|
31
39
|
no giant all-project tool call, and leave enough output budget for valid
|
|
32
|
-
tool-call closure. Implement code/results first
|
|
33
|
-
|
|
34
|
-
4. Run `code/run_all.py
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
not a discovery tool: do
|
|
38
|
-
mismatches remain.
|
|
40
|
+
tool-call closure. Implement code/results first; write `happy/main.tex` only
|
|
41
|
+
in an end-to-end generation or paper-revision scope.
|
|
42
|
+
4. Run `code/run_all.py` and repair its evidence. Only for end-to-end generation
|
|
43
|
+
or paper revision, freeze accepted evidence, perform one evidence-to-paper
|
|
44
|
+
synchronization pass, and call the finalizer without reading its
|
|
45
|
+
implementation. The finalizer is a terminal gate, not a discovery tool: do
|
|
46
|
+
not launch it while known code/result/paper mismatches remain.
|
|
39
47
|
5. Spend remaining turns only on failed checks and rendered-page defects.
|
|
40
48
|
|
|
41
|
-
|
|
49
|
+
For an end-to-end scope, when the Skill-root finalizer exits with code 0 and prints
|
|
42
50
|
`[ORBIT_TERMINAL_SUCCESS]`, the strict build, audit, page rendering, packaging,
|
|
43
51
|
and validation are already complete. Stop tool use immediately and return the
|
|
44
52
|
required final report. Do not edit code, evidence, figures, or paper sources;
|
|
@@ -77,14 +85,22 @@ templates always outrank this Skill's defaults.
|
|
|
77
85
|
|
|
78
86
|
## Select the operating mode
|
|
79
87
|
|
|
80
|
-
|
|
81
|
-
(`/math-draft` remains a compatibility alias):
|
|
88
|
+
An unqualified `/cumcm-draft <problem-directory>` defaults to one-request,
|
|
89
|
+
end-to-end generation (`/math-draft` remains a compatibility alias):
|
|
82
90
|
read the problem, model every question, implement and run the code, generate
|
|
83
91
|
results and figures, write the complete paper, compile, inspect, and package it.
|
|
84
92
|
Do not stop after scaffolding, an outline, sample paragraphs, or formatting.
|
|
85
93
|
|
|
86
|
-
|
|
94
|
+
An explicit phase request always outranks that default. Inspect the project
|
|
95
|
+
before editing and choose one mode automatically:
|
|
87
96
|
|
|
97
|
+
- **Design**: read the complete problem and relevant attachments, establish the
|
|
98
|
+
requirement matrix, model alternatives, dependencies, artifact names, and
|
|
99
|
+
module plan. Do not create code, results, figures, or paper files when the
|
|
100
|
+
user says to stop at design.
|
|
101
|
+
- **Solve**: implement the requested question(s), run code, publish validated
|
|
102
|
+
results and paper-ready figures, and stop there. Do not create or revise TeX,
|
|
103
|
+
package support files, or invoke the finalizer unless separately requested.
|
|
88
104
|
- **Generate** (default for a problem directory): create the skeleton and fill
|
|
89
105
|
every substantive section from the problem and computed evidence, then finish
|
|
90
106
|
the PDF and support package in the same run.
|
|
@@ -121,7 +137,8 @@ explains the difference.
|
|
|
121
137
|
|
|
122
138
|
Use this precedence for factual conflicts:
|
|
123
139
|
|
|
124
|
-
1. official problem, supplied data,
|
|
140
|
+
1. official problem, supplied data, prescribed output examples/templates, and
|
|
141
|
+
current contest rules;
|
|
125
142
|
2. current runnable code and configuration;
|
|
126
143
|
3. program-generated JSON/CSV/XLSX and validation artifacts;
|
|
127
144
|
4. figures generated from those artifacts;
|
|
@@ -136,6 +153,11 @@ Numerical traceability is necessary but not sufficient: separately audit the
|
|
|
136
153
|
business meaning of each transformed field, the time at which every feature is
|
|
137
154
|
available, and whether the reported evaluation was isolated from model and
|
|
138
155
|
parameter selection.
|
|
156
|
+
Treat a prescribed submission file as one contract: filename, delimiter,
|
|
157
|
+
header spelling and order, row identity/order, Boolean and path syntax,
|
|
158
|
+
encoding/BOM, and line endings must follow the supplied requirement. Keep
|
|
159
|
+
project-specific row-count and semantic checks in code when a generic finalizer
|
|
160
|
+
cannot infer them from a blank template.
|
|
139
161
|
In TeX, never write raw underscores or other special characters in paths and
|
|
140
162
|
identifiers; use a safe path command such as `\path{code/q1/forecasting.py}` or escape
|
|
141
163
|
the character explicitly. Treat the finalizer's first file/line diagnostic as
|
|
@@ -226,6 +248,16 @@ the outcome. Record explicit upstream artifact contracts between subproblems.
|
|
|
226
248
|
guaranteed improvement. Preserve the original policy or disclose a tradeoff
|
|
227
249
|
when robust improvement is unsupported.
|
|
228
250
|
- Run from a clean entry point and repair failures before asserting results.
|
|
251
|
+
- For expensive searches or simulations, store resumable per-query or
|
|
252
|
+
per-scenario checkpoints under `.cumcm/qN/` with input hashes and an explicit
|
|
253
|
+
algorithm version. Distinguish mathematical infeasibility from timeout,
|
|
254
|
+
memory/capacity exhaustion, numerical failure, and interruption; only an
|
|
255
|
+
independent feasibility check may justify an infeasible output.
|
|
256
|
+
- Publish multi-file formal results through a staging directory and a completion
|
|
257
|
+
manifest: validate every file first, then replace the official set together.
|
|
258
|
+
A default `run_all.py` should verify and reuse accepted outputs; rebuilding,
|
|
259
|
+
independent auditing, and figure-only regeneration may be explicit modes
|
|
260
|
+
when the computation is expensive.
|
|
229
261
|
- Save factual outputs in `results/qN`, paper-ready visuals in `figures/qN`,
|
|
230
262
|
and completed workbook deliverables in `results/qN`.
|
|
231
263
|
- Treat leaf tabular deliverables under `results/qN` as Chinese-facing evidence:
|
|
@@ -233,14 +265,18 @@ the outcome. Record explicit upstream artifact contracts between subproblems.
|
|
|
233
265
|
column headers, Excel worksheet names, and Excel table headers in Chinese;
|
|
234
266
|
include units in the header when applicable; and retain standard symbols or
|
|
235
267
|
abbreviations only after the Chinese meaning, such as `均方根误差(RMSE)`.
|
|
236
|
-
Encode CSV/TSV with UTF-8-SIG for reliable Excel display
|
|
268
|
+
Encode CSV/TSV with UTF-8-SIG for reliable Excel display unless the official
|
|
269
|
+
schema prescribes another encoding, BOM state, or line-ending style. Do not emit a
|
|
237
270
|
generic `summary.json` into results merely to satisfy the workflow; evidence
|
|
238
271
|
claims must point to the real Chinese-named result artifact. Workflow state
|
|
239
272
|
and reproducibility metadata belong under `.cumcm/`, not `results/`.
|
|
240
273
|
- Give every final figure a descriptive Chinese filename and Chinese title,
|
|
241
274
|
axes, legend, annotations, and category labels. Configure a CJK font fallback
|
|
242
275
|
such as Microsoft YaHei, SimHei, or Noto Sans CJK SC. Generate PNG only,
|
|
243
|
-
at 300 dpi or higher,
|
|
276
|
+
at 300 dpi or higher, with sufficient pixel dimensions for its intended paper
|
|
277
|
+
width, and update every paper/support reference. Inspect every final PNG at
|
|
278
|
+
paper scale for clipped labels, overlapping legends/colorbars, unreadable
|
|
279
|
+
Chinese text, misleading scales, abnormal whitespace, and redundant panels. Do not leave
|
|
244
280
|
PDF, SVG, JPG, or EPS siblings in `figures/`; those formats belong to source
|
|
245
281
|
inputs or transient build output, not final figure delivery. Names such as
|
|
246
282
|
`summary.png`, `plot.png`, `figure.png`, `output.png`, or `final.png` are
|
|
@@ -253,7 +289,8 @@ the outcome. Record explicit upstream artifact contracts between subproblems.
|
|
|
253
289
|
`.cumcm/profile.json.result_artifacts.fixed_schema_exceptions` so the
|
|
254
290
|
finalizer can distinguish a contest requirement from an accidental English
|
|
255
291
|
artifact. The finalizer requires every waived field to match that cited
|
|
256
|
-
source; citation without schema congruence is rejected.
|
|
292
|
+
source; citation without schema congruence is rejected. Preserve prescribed
|
|
293
|
+
line endings when they are part of the official example. Internal convenience
|
|
257
294
|
and cross-question code contracts are not
|
|
258
295
|
exceptions; use a Chinese persisted schema and validate it explicitly.
|
|
259
296
|
- Keep `happy/` compact throughout the workflow: `main.tex`,
|
|
@@ -335,9 +372,11 @@ entry point and its modeling dependency closure, but omit empty `__init__.py`,
|
|
|
335
372
|
finalizer launchers, packagers, audit scripts, and caches. Use numbered,
|
|
336
373
|
line-wrapped, thin-framed listings.
|
|
337
374
|
|
|
338
|
-
Before packaging,
|
|
339
|
-
|
|
340
|
-
|
|
375
|
+
Before packaging, create `code/requirements.txt` only when the active submission
|
|
376
|
+
or handoff requires a portable dependency list. Derive it from imports and
|
|
377
|
+
actual file readers used by the runnable model (including engines such as
|
|
378
|
+
`openpyxl`); never retain an empty placeholder, inspection-only dependency, or
|
|
379
|
+
stale package entry. Keep validation-set
|
|
341
380
|
metrics and model-selection evidence, but do not deliver scratch verifiers,
|
|
342
381
|
cleanup/rebuild scripts, contact-sheet generators, nested project archives, or
|
|
343
382
|
temporary caches unless the problem explicitly requires them.
|
|
@@ -416,6 +455,10 @@ unofficial AIGC/AIDC percentage as an official threshold.
|
|
|
416
455
|
|
|
417
456
|
## Completion gate
|
|
418
457
|
|
|
458
|
+
For Design, Solve, Revise, and Audit modes, stop at the requested scope-specific
|
|
459
|
+
gate and state what was not authorized or not yet verified; do not imply that a
|
|
460
|
+
code/results-only delivery is already a submission-ready paper.
|
|
461
|
+
|
|
419
462
|
Finish only when inputs are inventoried; `question/` fingerprint is unchanged;
|
|
420
463
|
all q1/q2/... paths align; code runs; every reported number is evidence-linked;
|
|
421
464
|
assumptions, units, limitations, and validation are explicit; figures and code
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "cumcm-draft"
|
|
3
|
-
short_description: "
|
|
4
|
-
default_prompt: "Use $cumcm-draft
|
|
3
|
+
short_description: "Design, solve, audit, or complete a CUMCM project"
|
|
4
|
+
default_prompt: "Use $cumcm-draft and honor my requested phase boundary. Ask which Python or Conda interpreter to use before execution, read every relevant problem attachment, preserve prescribed output filenames/schemas/encoding, build responsibility-based qN code with shared logic only under code/always, checkpoint expensive work under .cumcm, atomically publish minimal validated results, and visually inspect paper-ready Chinese PNG figures. Generate or package the Chinese paper only when I request an end-to-end delivery."
|
|
5
5
|
policy:
|
|
6
6
|
allow_implicit_invocation: false
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
3
|
"profile": "cumcm-2026",
|
|
4
|
-
"rules_checked_at": "2026-
|
|
4
|
+
"rules_checked_at": "2026-09-01",
|
|
5
5
|
"rules_expires_at": "2026-09-30",
|
|
6
6
|
"paper": {
|
|
7
7
|
"max_pdf_mb": 20,
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"require_chinese_figure_filenames": true,
|
|
21
21
|
"require_png_figures": true,
|
|
22
22
|
"min_png_dpi": 300,
|
|
23
|
+
"min_png_short_edge_px": 600,
|
|
24
|
+
"min_png_long_edge_px": 1000,
|
|
23
25
|
"require_utf8_sig_csv": true,
|
|
24
26
|
"fixed_schema_exceptions": []
|
|
25
27
|
},
|
|
@@ -6,7 +6,7 @@ Use responsibility-based modules after reading the actual problem. For example:
|
|
|
6
6
|
|
|
7
7
|
```text
|
|
8
8
|
code/
|
|
9
|
-
├── requirements.txt
|
|
9
|
+
├── requirements.txt # optional portable-handoff artifact
|
|
10
10
|
├── run_all.py
|
|
11
11
|
├── qN/
|
|
12
12
|
├── main.py
|
|
@@ -64,8 +64,23 @@ pipeline = make_pipeline(transformer, estimator)
|
|
|
64
64
|
comment every non-obvious lag that prevents target leakage.
|
|
65
65
|
- Validate upstream result schemas before downstream use; never silently
|
|
66
66
|
substitute a historical proxy for a missing forecast.
|
|
67
|
-
-
|
|
68
|
-
|
|
67
|
+
- Create `requirements.txt` only when the active submission or handoff needs a
|
|
68
|
+
portable dependency list. Keep it limited to direct imports and required file
|
|
69
|
+
readers; do not retain an empty placeholder or libraries used only by one-off
|
|
70
|
+
inspection and PDF-review tools.
|
|
71
|
+
|
|
72
|
+
For expensive deterministic computations:
|
|
73
|
+
|
|
74
|
+
- checkpoint at the smallest independently reusable unit under `.cumcm/qN/`;
|
|
75
|
+
- bind each checkpoint to immutable input hashes and an algorithm version;
|
|
76
|
+
- distinguish a valid reusable checkpoint from a stale, corrupt, or incomplete
|
|
77
|
+
one before loading its large payload;
|
|
78
|
+
- stage all formal outputs, validate them, and publish the set atomically with a
|
|
79
|
+
completion manifest of output hashes;
|
|
80
|
+
- keep the default `run_all.py` fast by verifying accepted output hashes, while
|
|
81
|
+
explicit rebuild, audit, and figures modes perform their named work;
|
|
82
|
+
- use multiprocessing only across independent ownership units and cap workers by
|
|
83
|
+
measured memory, not CPU count alone.
|
|
69
84
|
|
|
70
85
|
## Results
|
|
71
86
|
|
|
@@ -88,6 +103,10 @@ All leaf tabular evidence is Chinese-facing by default:
|
|
|
88
103
|
- write CSV and TSV with UTF-8-SIG so Chinese text opens correctly in Excel;
|
|
89
104
|
- keep workflow state, evidence maps, environment capture, and freeze manifests
|
|
90
105
|
under `.cumcm/`; do not leak a synthetic `summary.json` into final results.
|
|
106
|
+
- retain only formal deliverables and auxiliary evidence consumed by a paper
|
|
107
|
+
claim, model decision, downstream contract, or independent audit. Remove
|
|
108
|
+
benchmark tables, serial/parallel comparisons, scratch exports, duplicate
|
|
109
|
+
summaries, and generic JSON from `results/qN` when they have no such consumer.
|
|
91
110
|
|
|
92
111
|
Do not translate a filename, field, column order, or worksheet name that the
|
|
93
112
|
problem or a supplied fill-in template explicitly fixes. Record that exact
|
|
@@ -103,13 +122,13 @@ exception in
|
|
|
103
122
|
}
|
|
104
123
|
```
|
|
105
124
|
|
|
106
|
-
Allowed exception scopes are `filename`, `headers`, `sheet_names`,
|
|
107
|
-
`
|
|
125
|
+
Allowed exception scopes are `filename`, `headers`, `sheet_names`, `encoding`,
|
|
126
|
+
and `line_endings`. Grant only what the official requirement fixes. A code-facing
|
|
108
127
|
English schema, a library default, or personal convenience is not an exception;
|
|
109
128
|
persist a Chinese schema and adapt internal variables at the read/write
|
|
110
129
|
boundary. The finalizer compares every waived field against the cited source;
|
|
111
130
|
the source path alone is not evidence. Preserve filename, column order,
|
|
112
|
-
worksheet names,
|
|
131
|
+
worksheet names, encoding markers, and line-ending style exactly where they are waived. Never
|
|
113
132
|
write outputs into `question/`.
|
|
114
133
|
|
|
115
134
|
## Figures
|
|
@@ -120,6 +139,8 @@ For each `figures/qN`:
|
|
|
120
139
|
- use descriptive Chinese filenames; reject generic names such as
|
|
121
140
|
`summary.png`, `plot.png`, `figure.png`, `output.png`, and `final.png`;
|
|
122
141
|
- generate final figures as PNG at 300 dpi or higher;
|
|
142
|
+
- require enough actual pixels for the intended paper width; high-DPI metadata
|
|
143
|
+
on a tiny raster is not a high-resolution figure;
|
|
123
144
|
- remove stale PDF, SVG, JPG, and EPS siblings from `figures/` so the final
|
|
124
145
|
figure contract is unambiguous;
|
|
125
146
|
- write figure titles, axes, legends, annotations, and categories in Chinese;
|
|
@@ -129,6 +150,9 @@ For each `figures/qN`:
|
|
|
129
150
|
- avoid 3D charts unless the third dimension is essential;
|
|
130
151
|
- avoid titles that duplicate the LaTeX caption;
|
|
131
152
|
- keep legends outside dense data when possible.
|
|
153
|
+
- open every final PNG and inspect it at intended paper scale. Reject clipped
|
|
154
|
+
labels, overlapping legends or colorbars, unreadable Chinese text, excessive
|
|
155
|
+
title/whitespace, misleading shared scales, and panels that add no conclusion.
|
|
132
156
|
|
|
133
157
|
## Console behavior
|
|
134
158
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# CUMCM compliance profile
|
|
2
2
|
|
|
3
|
-
Checked against the official CUMCM site on 2026-
|
|
3
|
+
Checked against the official CUMCM site on 2026-09-01. 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
|
|
|
@@ -142,6 +142,23 @@ reported test metric improves.
|
|
|
142
142
|
- Preserve non-ideal but validated outcomes, including zero ensemble weight,
|
|
143
143
|
retained original policies, higher safety stock, or an absent improvement.
|
|
144
144
|
|
|
145
|
+
## Separate infeasibility from computational failure
|
|
146
|
+
|
|
147
|
+
- Report an instance as infeasible only after an independent reachability,
|
|
148
|
+
constraint, or certificate check establishes mathematical infeasibility.
|
|
149
|
+
- Treat timeout, interruption, memory/capacity exhaustion, numerical breakdown,
|
|
150
|
+
and invalid checkpoints as failed computations; never serialize them as an
|
|
151
|
+
infeasible row, an empty optimum, or a zero-cost solution.
|
|
152
|
+
- For approximate Pareto or candidate searches, state the searched space,
|
|
153
|
+
approximation rule, exact anchors, and deterministic tie-break. A selected
|
|
154
|
+
path is optimal within that declared candidate set unless a global proof is
|
|
155
|
+
available.
|
|
156
|
+
- Recompute every formally selected solution from raw inputs with a validation
|
|
157
|
+
path that does not call the producer's scoring or aggregation function.
|
|
158
|
+
- When removing feasible choices makes an apparent metric improve, first test
|
|
159
|
+
whether the new search discovered a previously missing candidate; do not
|
|
160
|
+
attribute that improvement causally to the restriction itself.
|
|
161
|
+
|
|
145
162
|
## Quantify uncertainty and robustness
|
|
146
163
|
|
|
147
164
|
- Perturb influential inputs over defensible ranges.
|
|
@@ -15,7 +15,7 @@ project-root/
|
|
|
15
15
|
│ └── build/ # LaTeX caches, page renders, audit report
|
|
16
16
|
├── question/ # immutable problem and supplied data
|
|
17
17
|
├── code/
|
|
18
|
-
│ ├── requirements.txt #
|
|
18
|
+
│ ├── requirements.txt # optional; only when portable handoff needs it
|
|
19
19
|
│ ├── run_all.py
|
|
20
20
|
│ ├── q1/
|
|
21
21
|
│ │ ├── main.py # orchestration only
|
|
@@ -64,9 +64,15 @@ or `happy/build/`.
|
|
|
64
64
|
`main.py`, `NotImplementedError`, or TODO logic.
|
|
65
65
|
- Keep domain-module dependencies acyclic and add concise Chinese comments where
|
|
66
66
|
a reviewer needs the assumption, unit, leakage guard, or numerical safeguard.
|
|
67
|
-
- `code/run_all.py` runs questions in dependency order.
|
|
67
|
+
- `code/run_all.py` runs questions in dependency order. For expensive projects,
|
|
68
|
+
its default path verifies and reuses accepted outputs; explicit rebuild,
|
|
69
|
+
independent-audit, and figure-only modes may do the costly work.
|
|
68
70
|
- `results/qN` owns numeric and tabular evidence for question N. Do not create a
|
|
69
71
|
synthetic `summary.json`; point `.cumcm/evidence-map.yaml` to real results.
|
|
72
|
+
- Keep only the prescribed submission file and auxiliary tables that support a
|
|
73
|
+
model choice, validation, paper claim, or downstream contract. Timing
|
|
74
|
+
experiments, serial/parallel comparisons, scratch JSON, and duplicate summaries
|
|
75
|
+
belong under `.cumcm/` or should be removed before handoff.
|
|
70
76
|
- `figures/qN` owns final visuals for question N. Diagnostic-only images belong
|
|
71
77
|
in `.cumcm/build/` and must not enter the support archive.
|
|
72
78
|
- `happy/main.tex` consumes only declared evidence from matching or explicitly
|
|
@@ -79,6 +85,9 @@ or `happy/build/`.
|
|
|
79
85
|
include audit reports, evidence freezes, environment notes, or build caches in
|
|
80
86
|
the modeling-code appendix or support archive. Never create a project-local
|
|
81
87
|
`finalize.py`; call the active Skill's `scripts/finalize_project.py` directly.
|
|
88
|
+
- Long-running qN computations may keep hashed, versioned checkpoints and
|
|
89
|
+
completion manifests under `.cumcm/qN/`. Do not rename this control directory
|
|
90
|
+
merely because it is hidden on some platforms.
|
|
82
91
|
|
|
83
92
|
## Naming
|
|
84
93
|
|
|
@@ -95,8 +104,13 @@ or `happy/build/`.
|
|
|
95
104
|
- Preserve a prescribed non-Chinese result schema only when the problem fixes
|
|
96
105
|
it, and document the narrow exception in
|
|
97
106
|
`.cumcm/profile.json.result_artifacts.fixed_schema_exceptions`.
|
|
107
|
+
- Treat the prescribed filename, header/column order, encoding/BOM, delimiter,
|
|
108
|
+
line endings, row identity/order, Boolean spelling, and path syntax as one
|
|
109
|
+
submission contract. Generic validators do not replace problem-specific row
|
|
110
|
+
count and semantic checks.
|
|
98
111
|
- Use stable ASCII Python module names.
|
|
99
|
-
- Use UTF-8 for text and UTF-8 with BOM for CSV intended for Excel
|
|
112
|
+
- Use UTF-8 for text and UTF-8 with BOM for CSV intended for Excel unless the
|
|
113
|
+
official schema or example fixes another representation.
|
|
100
114
|
- Include units in column labels or metadata.
|
|
101
115
|
|
|
102
116
|
## Submission boundary
|
|
@@ -2,9 +2,9 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import json
|
|
4
4
|
import re
|
|
5
|
+
from collections.abc import Iterable
|
|
5
6
|
from pathlib import Path
|
|
6
|
-
from typing import Any
|
|
7
|
-
|
|
7
|
+
from typing import Any
|
|
8
8
|
|
|
9
9
|
CONTROL_DIRECTORY_NAME = ".cumcm"
|
|
10
10
|
DELIVERY_DIRECTORY_NAME = "happy"
|
|
@@ -13,7 +13,7 @@ DELIVERY_DIRECTORY_NAME = "happy"
|
|
|
13
13
|
DEFAULT_PROFILE: dict[str, Any] = {
|
|
14
14
|
"schema_version": 1,
|
|
15
15
|
"profile": "cumcm-2026",
|
|
16
|
-
"rules_checked_at": "2026-
|
|
16
|
+
"rules_checked_at": "2026-09-01",
|
|
17
17
|
"rules_expires_at": "2026-09-30",
|
|
18
18
|
"paper": {
|
|
19
19
|
"max_pdf_mb": 20,
|
|
@@ -29,6 +29,8 @@ DEFAULT_PROFILE: dict[str, Any] = {
|
|
|
29
29
|
"require_chinese_figure_filenames": True,
|
|
30
30
|
"require_png_figures": True,
|
|
31
31
|
"min_png_dpi": 300,
|
|
32
|
+
"min_png_short_edge_px": 600,
|
|
33
|
+
"min_png_long_edge_px": 1000,
|
|
32
34
|
"require_utf8_sig_csv": True,
|
|
33
35
|
"fixed_schema_exceptions": [],
|
|
34
36
|
},
|