superlab 0.1.13 → 0.1.15

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 (58) hide show
  1. package/README.md +15 -3
  2. package/README.zh-CN.md +15 -3
  3. package/bin/superlab.cjs +38 -0
  4. package/lib/auto_contracts.cjs +7 -3
  5. package/lib/auto_runner.cjs +33 -52
  6. package/lib/auto_state.cjs +27 -21
  7. package/lib/context.cjs +15 -0
  8. package/lib/i18n.cjs +122 -37
  9. package/lib/install.cjs +1 -0
  10. package/package-assets/claude/commands/lab/auto.md +3 -0
  11. package/package-assets/claude/commands/lab/write.md +1 -1
  12. package/package-assets/claude/commands/lab.md +15 -0
  13. package/package-assets/codex/prompts/lab-auto.md +3 -0
  14. package/package-assets/codex/prompts/lab-write.md +1 -1
  15. package/package-assets/codex/prompts/lab.md +15 -0
  16. package/package-assets/shared/lab/.managed/templates/final-report.md +12 -0
  17. package/package-assets/shared/lab/.managed/templates/main-tables.md +37 -0
  18. package/package-assets/shared/lab/config/workflow.json +3 -1
  19. package/package-assets/shared/lab/context/auto-mode.md +8 -1
  20. package/package-assets/shared/lab/context/auto-outcome.md +3 -0
  21. package/package-assets/shared/skills/lab/SKILL.md +6 -2
  22. package/package-assets/shared/skills/lab/references/paper-writing/abstract.md +7 -1
  23. package/package-assets/shared/skills/lab/references/paper-writing/examples/abstract/template-a.md +21 -0
  24. package/package-assets/shared/skills/lab/references/paper-writing/examples/abstract/template-b.md +34 -0
  25. package/package-assets/shared/skills/lab/references/paper-writing/examples/abstract/template-c.md +28 -0
  26. package/package-assets/shared/skills/lab/references/paper-writing/examples/abstract-examples.md +13 -0
  27. package/package-assets/shared/skills/lab/references/paper-writing/examples/index.md +21 -0
  28. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/novel-task-challenge-decomposition.md +18 -0
  29. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/pipeline-not-recommended-abstract-only.md +30 -0
  30. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/pipeline-version-1-one-contribution-multi-advantages.md +30 -0
  31. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/pipeline-version-2-two-contributions.md +34 -0
  32. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/pipeline-version-3-new-module-on-existing-pipeline.md +18 -0
  33. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/pipeline-version-4-observation-driven.md +16 -0
  34. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/technical-challenge-version-1-existing-task.md +32 -0
  35. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/technical-challenge-version-2-existing-task-insight-backed-by-traditional.md +33 -0
  36. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/technical-challenge-version-3-novel-task.md +21 -0
  37. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/version-1-task-then-application.md +14 -0
  38. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/version-2-application-first.md +10 -0
  39. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/version-3-general-to-specific-setting.md +14 -0
  40. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction/version-4-open-with-challenge.md +20 -0
  41. package/package-assets/shared/skills/lab/references/paper-writing/examples/introduction-examples.md +25 -0
  42. package/package-assets/shared/skills/lab/references/paper-writing/examples/method/example-of-the-three-elements.md +67 -0
  43. package/package-assets/shared/skills/lab/references/paper-writing/examples/method/method-writing-common-issues-note.md +10 -0
  44. package/package-assets/shared/skills/lab/references/paper-writing/examples/method/module-design-instant-ngp.md +55 -0
  45. package/package-assets/shared/skills/lab/references/paper-writing/examples/method/module-motivation-patterns.md +15 -0
  46. package/package-assets/shared/skills/lab/references/paper-writing/examples/method/module-triad-neural-body.md +19 -0
  47. package/package-assets/shared/skills/lab/references/paper-writing/examples/method/neural-body-annotated-figure-text.md +66 -0
  48. package/package-assets/shared/skills/lab/references/paper-writing/examples/method/overview-template.md +30 -0
  49. package/package-assets/shared/skills/lab/references/paper-writing/examples/method/pre-writing-questions.md +17 -0
  50. package/package-assets/shared/skills/lab/references/paper-writing/examples/method/section-skeleton.md +9 -0
  51. package/package-assets/shared/skills/lab/references/paper-writing/examples/method-examples.md +24 -0
  52. package/package-assets/shared/skills/lab/references/paper-writing/introduction.md +7 -1
  53. package/package-assets/shared/skills/lab/references/paper-writing/method.md +6 -2
  54. package/package-assets/shared/skills/lab/references/paper-writing-integration.md +26 -0
  55. package/package-assets/shared/skills/lab/stages/auto.md +29 -1
  56. package/package-assets/shared/skills/lab/stages/report.md +5 -1
  57. package/package-assets/shared/skills/lab/stages/write.md +16 -1
  58. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ # Module Triad Example (Neural Body)
2
+
3
+ `Use Neural Body to understand the three elements of a module: design, motivation, and technical advantages.`
4
+
5
+ Local source references:
6
+
7
+ 1. Annotated figure showing motivation/design/advantages split.
8
+ 3. Text-converted annotation notes: `references/examples/method/neural-body-annotated-figure-text.md`
9
+
10
+ Triad mapping template:
11
+
12
+ 1. Module design: what representation/network is built and how forward process runs.
13
+ 2. Motivation: what unresolved challenge requires this module.
14
+ 3. Technical advantages: why this module performs better than alternatives.
15
+
16
+ Direct usage:
17
+
18
+ 1. Read `neural-body-annotated-figure-text.md` to map each paragraph to one triad element.
19
+ 2. Rebuild your own Method subsection with the same triad order.
@@ -0,0 +1,66 @@
1
+ # Neural Body Annotated Figure (Text Conversion)
2
+
3
+ This file converts the annotated Neural Body figure into reusable writing notes.
4
+
5
+ ## Purpose
6
+
7
+ Use this mapping to understand how one Method section can explicitly separate:
8
+
9
+ 1. Module motivation
10
+ 2. Module design (data structure)
11
+ 3. Module design (forward process)
12
+ 4. Technical advantages
13
+
14
+ ## Block-by-Block Mapping
15
+
16
+ ### Section 3.1: Structured Latent Codes
17
+
18
+ 1. **Module design (data structure)**
19
+ - The paragraph defines structured latent codes anchored to the deformable human model (SMPL).
20
+ - It explains what is constructed (latent codes + their anchor positions + frame-dependent transformation by pose).
21
+
22
+ 2. **Technical advantages**
23
+ - The paragraph explains why this design works better: dynamic-human representation and cross-frame integration of observations.
24
+ - It highlights why anchoring codes to deformable geometry is beneficial.
25
+
26
+ ### Section 3.2: Code Diffusion
27
+
28
+ 1. **Motivation of this module**
29
+ - The paragraph states the remaining problem: direct interpolation of sparse structured codes leads to near-zero vectors at many 3D points.
30
+ - This motivates diffusion from surface codes to nearby 3D space.
31
+
32
+ 2. **Module design (forward process)**
33
+ - The paragraph explains the execution pipeline: build sparse latent volumes, run sparse convolutions, interpolate latent codes at query points, and feed codes to prediction networks.
34
+ - This is a canonical input -> steps -> output module description.
35
+
36
+ ### Section 3.3: Density and Color Regression
37
+
38
+ 1. **Module design (forward process) for density model**
39
+ - The density paragraph defines how density is regressed from latent code and frame condition.
40
+
41
+ 2. **Module design (data structure) for color model**
42
+ - The color paragraph introduces required inputs/embeddings (latent code, view direction, spatial location, temporal embedding).
43
+
44
+ 3. **Module design (forward process) for color model**
45
+ - The next paragraph describes how those inputs are encoded and passed into the color MLP for final color prediction.
46
+
47
+ ### Section 3.4: Volume Rendering
48
+
49
+ 1. **Module design (forward process)**
50
+ - The paragraph describes ray sampling and volume integration to render image outputs from predicted density/color fields.
51
+
52
+ ## Reusable Writing Pattern from This Figure
53
+
54
+ For each module subsection, follow this order:
55
+
56
+ 1. `Motivation`: state unresolved challenge and technical reason.
57
+ 2. `Design-1`: define structure/representation/network.
58
+ 3. `Design-2`: describe forward process in execution order.
59
+ 4. `Advantage`: explain why this module improves over alternatives.
60
+
61
+ ## Suggested Paragraph Starters
62
+
63
+ 1. Motivation: `A remaining challenge is ...`
64
+ 2. Data structure design: `We represent ... with ...`
65
+ 3. Forward process: `Given [input], we first ... then ... finally ...`
66
+ 4. Technical advantage: `Compared with previous methods, this design ... because ...`
@@ -0,0 +1,30 @@
1
+ # Method Overview Template
2
+
3
+
4
+ `Overview usually includes setting, core contribution, optional figure pointer, and subsection map.`
5
+
6
+ ```latex
7
+ % Overview
8
+ % One or two sentences for setting
9
+ %% Example 1: Given a sparse multi-view video of a performer, our task is to generate a free-viewpoint video of the performer.
10
+ %% Example 2: Given an image, the task of pose estimation is to detect objects and estimate their orientations and translations in the 3D space.
11
+
12
+ % One or two sentences for core contribution
13
+ %% Example 1: We build upon prior work for static scenes [46], to which we add the notion of time, and estimate 3D motion by explicitly modeling forward and backward scene flow as dense 3D vector fields.
14
+ %% Example 2: Inspired by [21, 25], we perform object segmentation by deforming an initial contour to match object boundary.
15
+ %% Example 3: Inspired by recent methods [29, 30, 36], we estimate the object pose using a two-stage pipeline: we first detect 2D object keypoints using CNNs and then compute 6D pose parameters using the PnP algorithm. Our innovation is in a new representation for 2D object keypoints as well as a modified PnP algorithm for pose estimation.
16
+
17
+ % If pipeline/framework is novel, point to figure
18
+ %% Example: The overview of the proposed model is illustrated in Figure 3.
19
+
20
+ % Explain what Section 3.1 covers
21
+ %% Example 1: Neural Body starts from a set of structured latent codes attached to the surface of a deformable human model (Section 3.1).
22
+ %% Example 2: In this section, we first describe how to model 3D scenes with MLP maps (Section 3.1).
23
+
24
+ % Explain what Section 3.2 covers
25
+ %% Example 1: The latent code at any location around the surface can be obtained with a code diffusion process (Section 3.2) and then decoded to density and color values by neural networks (Section 3.3).
26
+ %% Example 2: Then, Section 3.2 discusses how to represent volumetric videos with dynamic MLP maps.
27
+
28
+ % Explain what Section 3.3 covers
29
+ %% Example 3: Finally, we introduce some strategies to speed up the rendering process (Section 3.3).
30
+ ```
@@ -0,0 +1,17 @@
1
+ # Method Pre-Writing Questions
2
+
3
+
4
+ `Before writing Method, answer: (1) what modules exist, and (2) for each module, what is its workflow, why is it needed, and why does it work.`
5
+
6
+ ```text
7
+ Questions:
8
+ (1) What modules are in the method?
9
+ (2) For each module, answer three questions:
10
+ - What is this module's workflow?
11
+ - Why do we need this module?
12
+ - Why does this module work?
13
+ ```
14
+
15
+ Recommended action:
16
+
17
+ 1. Organize answers in a mind map or table before writing paragraphs.
@@ -0,0 +1,9 @@
1
+ # Method Section Skeleton
2
+
3
+ ```latex
4
+ \section{Method}
5
+ % Overview
6
+ % Section 3.1
7
+ % Section 3.2
8
+ % Section 3.3
9
+ ```
@@ -0,0 +1,24 @@
1
+ # Method Examples Index
2
+
3
+ All method example cites should point to the local files below.
4
+
5
+ ## A. Planning and Writing Workflow
6
+
7
+ 1. Pre-writing questions: `references/examples/method/pre-writing-questions.md`
8
+
9
+ ## B. Module Triad and Module-Level Writing
10
+
11
+ 1. Module triad (Neural Body): `references/examples/method/module-triad-neural-body.md`
12
+ 2. Neural Body figure text conversion: `references/examples/method/neural-body-annotated-figure-text.md`
13
+ 3. Module design (Instant-NGP): `references/examples/method/module-design-instant-ngp.md`
14
+ 4. Module motivation patterns: `references/examples/method/module-motivation-patterns.md`
15
+
16
+ ## C. Section-Level Templates
17
+
18
+ 1. Method section skeleton: `references/examples/method/section-skeleton.md`
19
+ 2. Overview template: `references/examples/method/overview-template.md`
20
+ 3. Example of the three elements: `references/examples/method/example-of-the-three-elements.md`
21
+
22
+ ## D. Clarity and Troubleshooting
23
+
24
+ 1. Common issues note: `references/examples/method/method-writing-common-issues-note.md`
@@ -337,7 +337,13 @@ Why not recommended (writing structure warning):
337
337
 
338
338
  ## Usage Note
339
339
 
340
- This vendored guide keeps the introduction patterns but omits the original example-bank files. Treat the templates and sentence skeletons here as the canonical reference inside `superlab`.
340
+ This vendored guide should be paired with the local introduction example bank:
341
+
342
+ - `references/examples/index.md`
343
+ - `references/examples/introduction-examples.md`
344
+ - 1-2 matching files under `references/examples/introduction/`
345
+
346
+ Use the introduction patterns and sentence skeletons here first, then use the example files to choose a concrete paragraph flow and narrative progression. Reuse structure, not wording.
341
347
 
342
348
  ## Quick Quality Checklist
343
349
 
@@ -62,7 +62,11 @@ Definition:
62
62
 
63
63
  ### Example of the Three Elements
64
64
 
65
- Use the structure above directly. The original example-bank files are not bundled in `superlab`.
65
+ Use the structure above directly, then compare it with the local method example bank:
66
+
67
+ - `references/examples/index.md`
68
+ - `references/examples/method-examples.md`
69
+ - 1-2 matching files under `references/examples/method/`
66
70
 
67
71
  ## Method Content Decomposition
68
72
 
@@ -163,4 +167,4 @@ flowchart TB
163
167
 
164
168
  ## Usage Note
165
169
 
166
- This vendored guide keeps the method-writing patterns and checklists but does not bundle the upstream example-bank files. Treat the subsection structures, sentence skeletons, and review questions in this file as the direct working reference.
170
+ This vendored guide should be paired with the local method example bank listed above. Use this file for subsection structure, module-writing checks, and review questions first; then use the example files to choose a concrete presentation pattern. Reuse structure, not wording.
@@ -2,11 +2,13 @@
2
2
 
3
3
  `/lab:write` vendors the paper-writing references directly into `skills/lab/references/paper-writing/`.
4
4
  The goal is to keep the upstream writing discipline while removing brittle runtime dependence on a separately installed skill.
5
+ It also vendors the upstream example bank for the sections that currently have curated examples, so drafting can reuse concrete structure rather than only abstract guidance.
5
6
 
6
7
  ## Role Split
7
8
 
8
9
  - `lab` controls stage boundaries, evidence discipline, and durable artifacts.
9
10
  - the vendored paper-writing references control section structure, paragraph logic, and reviewer-facing polish.
11
+ - the vendored example bank controls example-driven structure selection for `abstract`, `introduction`, and `method`.
10
12
  - `/lab:write` links evidence-backed research outputs to paper-ready text.
11
13
 
12
14
  ## Required Shared Constraints
@@ -33,6 +35,30 @@ The goal is to keep the upstream writing discipline while removing brittle runti
33
35
  - `paper-writing/paper-review.md`
34
36
  - `paper-writing/does-my-writing-flow-source.md`
35
37
 
38
+ ## Vendored Example Bank
39
+
40
+ - `paper-writing/examples/index.md`
41
+ - `paper-writing/examples/abstract-examples.md`
42
+ - `paper-writing/examples/introduction-examples.md`
43
+ - `paper-writing/examples/method-examples.md`
44
+ - `paper-writing/examples/abstract/*`
45
+ - `paper-writing/examples/introduction/*`
46
+ - `paper-writing/examples/method/*`
47
+
48
+ ## Write-Time Rule
49
+
50
+ For `abstract`, `introduction`, and `method`:
51
+
52
+ 1. read the section guide first
53
+ 2. read the matching examples index
54
+ 3. read 1-2 concrete example files that match the intended structure
55
+ 4. reuse structure and sentence logic without copying wording
56
+
57
+ For `related work`, `experiments`, and `conclusion`:
58
+
59
+ 1. use the section guide directly
60
+ 2. do not invent non-existent example-bank files
61
+
36
62
  ## Attribution
37
63
 
38
64
  These references are adapted from:
@@ -38,6 +38,7 @@
38
38
  - Treat `/lab:auto` as an orchestration layer, not a replacement for existing `/lab:*` stages.
39
39
  - Treat `.lab/context/eval-protocol.md` as the source of truth for paper-facing metrics, metric glossary, table plan, gates, and structured experiment ladders.
40
40
  - Treat the evaluation protocol as source-backed, not imagination-backed: metric definitions, baseline behavior, comparison implementations, and deviations must come from recorded sources before they are used in gates or promotions.
41
+ - Treat paper-template selection as an explicit write-time gate, not as a silent fallback, when the loop is about to create `.tex` deliverables for the first time.
41
42
  - The contract must declare `Autonomy level` and `Approval status`, and execution starts only when approval is explicitly set to `approved`.
42
43
  - The contract must also declare a concrete terminal goal:
43
44
  - `rounds`
@@ -54,6 +55,8 @@
54
55
  - You may promote exploratory additions to the primary package only when the contract's promotion policy is satisfied and the promotion is written back into `data-decisions.md`, `decisions.md`, `state.md`, and `session-brief.md`.
55
56
  - Poll long-running commands until they finish, hit a timeout, or hit a stop condition.
56
57
  - Keep a poll-based waiting loop instead of sleeping blindly.
58
+ - Do not treat a short watcher such as `sleep 30`, a one-shot `pgrep`, or a single `metrics.json` probe as the rung command when the real experiment is still running.
59
+ - Bind each rung to the real long-running command or process that owns the experiment result.
57
60
  - Always write a canonical `.lab/context/auto-outcome.md` when the run completes, stops, or fails.
58
61
  - When the evaluation protocol declares structured ladder rungs, execute them as a foreground rung state machine:
59
62
  - each rung must declare `Stage`, `Goal`, `Command`, `Watch`, `Gate`, `On pass`, `On fail`, and `On stop`
@@ -63,7 +66,7 @@
63
66
  - Enforce stage contracts, not just exit codes:
64
67
  - `run` and `iterate` must change persistent outputs under `results_root`
65
68
  - `review` must update canonical review context
66
- - `report` must produce `<deliverables_root>/report.md`
69
+ - `report` must produce `<deliverables_root>/report.md` and `<deliverables_root>/main-tables.md`
67
70
  - `write` must produce LaTeX output under `<deliverables_root>/paper/`
68
71
  - Treat promotion as incomplete unless it writes back to `data-decisions.md`, `decisions.md`, `state.md`, and `session-brief.md`.
69
72
  - Do not stop or promote on the basis of a metric or comparison claim whose source-backed definition is missing from the approved evaluation protocol.
@@ -87,3 +90,28 @@
87
90
  - If the contract is incomplete, ask one clarifying question at a time.
88
91
  - If multiple next actions are credible, present 2-3 bounded options with trade-offs before arming a long run.
89
92
  - Only ask for approval when the next step would leave the approved exploration envelope, exceed the chosen autonomy level, or materially change the frozen core.
93
+
94
+ ## Input Normalization
95
+
96
+ - Normalize ambiguous user requests before arming the loop.
97
+ - Treat `Autonomy level L1/L2/L3` as execution privilege only.
98
+ - Treat `Layer`, `Phase`, and `Table` references as paper-structure or experiment-scope targets, not as autonomy levels.
99
+ - Example:
100
+ - `Layer 3 organizer enforcement` means a paper layer or experiment target.
101
+ - `Autonomy level L3` means the aggressive campaign permission envelope.
102
+ - If the user mixes framework work and experiment work in one request, restate a normalized contract with:
103
+ - objective
104
+ - autonomy level
105
+ - terminal goal
106
+ - scope
107
+ - allowed modifications
108
+ - Then ask at most one clarifying question if a blocking field is still missing.
109
+ - If `.lab/config/workflow.json` sets the workflow language to Chinese, write summaries, options, checklist items, task labels, and progress updates in Chinese unless a file path, code identifier, or literal metric name must remain unchanged.
110
+ - When the loop reaches `report`, apply the same workflow-language rule to `report.md` and the managed `main-tables.md` artifact.
111
+ - When the loop is about to enter `write` and `paper_template_root` is empty:
112
+ - if `paper_template_decision` is `unconfirmed`, ask one explicit question: continue with the default scaffold or attach a template directory first
113
+ - if the user chooses the default scaffold, persist `paper_template_decision: default-scaffold`
114
+ - if the user chooses a template, stop the loop and route to `superlab paper attach-template --path <dir>`
115
+ - if the current write target is a final manuscript export, `paper_template_decision` is `default-scaffold`, and `paper_template_final_reminder_acknowledged` is `false`, ask one final reminder question before finalizing
116
+ - if the user confirms staying on the default scaffold at that final reminder, persist `paper_template_final_reminder_acknowledged: true`
117
+ - While the real experiment process is still alive, emit only a progress update and keep waiting. Do not present a terminal summary for that rung until the process exits or the rung hits an explicit stop boundary.
@@ -3,8 +3,10 @@
3
3
  ## Required Output
4
4
 
5
5
  - method overview
6
+ - selected metrics summary
6
7
  - experiment setup
7
8
  - validated main results
9
+ - managed main tables artifact under `<deliverables_root>/main-tables.md`
8
10
  - ablations
9
11
  - failed attempts
10
12
  - limitations
@@ -31,13 +33,15 @@
31
33
  - Tie every major claim to recorded summaries or iteration artifacts.
32
34
  - Structure tables, gates, and main claims against the approved evaluation protocol.
33
35
  - Do not restate metric definitions, baseline behavior, or comparison implementations from memory; use the approved evaluation protocol and its recorded sources.
36
+ - Carry the approved `Primary metrics`, `Secondary metrics`, and `Required terminal evidence` into both the report and the managed main-tables artifact.
34
37
  - If the report depends on a deviation from an original metric or implementation, state that deviation explicitly instead of smoothing it over.
38
+ - If `.lab/config/workflow.json` sets the workflow language to Chinese, write `report.md` and `<deliverables_root>/main-tables.md` in Chinese unless a file path, code identifier, or literal metric name must remain unchanged.
35
39
  - Prefer conservative interpretation over marketing language.
36
40
  - Leave a clear handoff path into `/lab:write` with evidence links that section drafts can cite.
37
41
 
38
42
  ## Interaction Contract
39
43
 
40
- - Start with a concise summary of the campaign outcome, strongest supported claim, and biggest reporting risk.
44
+ - Start with a concise summary of the campaign outcome, the selected primary and secondary metrics, the strongest supported claim, and the biggest reporting risk.
41
45
  - If a missing assumption would change report interpretation, ask one clarifying question at a time.
42
46
  - If there are multiple defensible report framings, present 2-3 approaches with trade-offs and recommend the most evidence-faithful framing before writing.
43
47
  - Keep an approval gate when the reporting frame would materially affect what the paper later claims.
@@ -13,6 +13,8 @@
13
13
 
14
14
  - `.lab/config/workflow.json`
15
15
  - `paper_template_root` from `.lab/config/workflow.json`
16
+ - `paper_template_decision` from `.lab/config/workflow.json`
17
+ - `paper_template_final_reminder_acknowledged` from `.lab/config/workflow.json`
16
18
 
17
19
  ## Context Read Set
18
20
 
@@ -38,6 +40,12 @@ Load the exact vendored file that matches the current target:
38
40
  - experiments -> `skills/lab/references/paper-writing/experiments.md`
39
41
  - conclusion -> `skills/lab/references/paper-writing/conclusion.md`
40
42
 
43
+ When the current target has a bundled example bank, load the examples index and 1-2 concrete example files that match the intended structure:
44
+
45
+ - abstract -> `skills/lab/references/paper-writing/examples/index.md`, `skills/lab/references/paper-writing/examples/abstract-examples.md`, plus one matching file under `skills/lab/references/paper-writing/examples/abstract/`
46
+ - introduction -> `skills/lab/references/paper-writing/examples/index.md`, `skills/lab/references/paper-writing/examples/introduction-examples.md`, plus 1-2 matching files under `skills/lab/references/paper-writing/examples/introduction/`
47
+ - method -> `skills/lab/references/paper-writing/examples/index.md`, `skills/lab/references/paper-writing/examples/method-examples.md`, plus 1-2 matching files under `skills/lab/references/paper-writing/examples/method/`
48
+
41
49
  Run these on every round:
42
50
 
43
51
  - section flow check -> `skills/lab/references/paper-writing/does-my-writing-flow-source.md`
@@ -49,8 +57,15 @@ Run these on every round:
49
57
  - LaTeX is the required manuscript output format.
50
58
  - If `paper_template_root` is configured, inspect that template directory before drafting and align the manuscript structure to it.
51
59
  - Treat attached template directories as user-owned and potentially modified. Do not rewrite template files unless the user explicitly asks.
52
- - If no paper template is configured, use the default LaTeX scaffold under the deliverable paper directory.
60
+ - If no paper template is configured and `paper_template_decision` is `unconfirmed`, ask one explicit question before the first `.tex` drafting round: continue with the default LaTeX scaffold, or attach a template directory first.
61
+ - If the user chooses the default scaffold, persist that choice in `.lab/config/workflow.json` by setting `paper_template_decision` to `default-scaffold`.
62
+ - If the user chooses to attach a template, stop the drafting loop and route to `superlab paper attach-template --path <dir>` instead of silently falling back.
63
+ - If `paper_template_decision` is `default-scaffold`, use the managed default LaTeX scaffold under the deliverable paper directory.
64
+ - If the current round is a final manuscript export or final-draft pass, `paper_template_root` is still empty, `paper_template_decision` is `default-scaffold`, and `paper_template_final_reminder_acknowledged` is `false`, ask one final reminder question about switching to a template before finalizing.
65
+ - If the user confirms staying on the default scaffold at that final reminder, persist `paper_template_final_reminder_acknowledged: true`.
53
66
  - Load only the current section guide. Do not load every section guide at once.
67
+ - Reuse example-bank structure, paragraph roles, and sentence logic when examples are bundled, but never copy wording verbatim.
68
+ - Treat example cites and example file names as writing references, not as evidence for the current paper.
54
69
  - Build a compact mini-outline before prose.
55
70
  - For each subsection, explicitly include motivation, design, and technical advantage when applicable.
56
71
  - Avoid a writing style that reads like incremental patching of a naive baseline.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superlab",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Strict /lab research workflow installer for Codex and Claude",
5
5
  "keywords": [
6
6
  "codex",