erdos-problems 0.2.9 → 0.3.0

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 (74) hide show
  1. package/README.md +47 -13
  2. package/data/upstream/erdosproblems/SYNC_MANIFEST.json +4 -4
  3. package/docs/CANONICAL_REPO_MIGRATION_PLAN.md +279 -0
  4. package/docs/DEEP_RESEARCH_BUNDLE_SPEC.md +129 -0
  5. package/docs/ERDOS_PROBLEMS_PROBLEM_SCHEMA.md +27 -20
  6. package/docs/ERDOS_PROBLEMS_REPO_SPEC.md +35 -11
  7. package/docs/PAPER_WRITER_MODE.md +118 -0
  8. package/package.json +1 -1
  9. package/packs/sunflower/compute/20/u3_uniform_transfer_window_v0.yaml +2 -1
  10. package/problems/1/AGENT_START.md +1 -1
  11. package/problems/1/EVIDENCE.md +1 -1
  12. package/problems/1/FORMALIZATION.md +2 -2
  13. package/problems/1/problem.yaml +6 -6
  14. package/problems/1008/problem.yaml +5 -5
  15. package/problems/18/problem.yaml +5 -5
  16. package/problems/19/AGENT_START.md +1 -1
  17. package/problems/19/EVIDENCE.md +1 -1
  18. package/problems/19/FORMALIZATION.md +2 -2
  19. package/problems/19/problem.yaml +6 -6
  20. package/problems/2/AGENT_START.md +1 -1
  21. package/problems/2/EVIDENCE.md +1 -1
  22. package/problems/2/FORMALIZATION.md +2 -2
  23. package/problems/2/problem.yaml +6 -6
  24. package/problems/20/problem.yaml +5 -5
  25. package/problems/21/AGENT_START.md +1 -1
  26. package/problems/21/EVIDENCE.md +1 -1
  27. package/problems/21/FORMALIZATION.md +2 -2
  28. package/problems/21/problem.yaml +6 -6
  29. package/problems/22/AGENT_START.md +1 -1
  30. package/problems/22/EVIDENCE.md +1 -1
  31. package/problems/22/FORMALIZATION.md +2 -2
  32. package/problems/22/problem.yaml +6 -6
  33. package/problems/3/AGENT_START.md +1 -1
  34. package/problems/3/EVIDENCE.md +1 -1
  35. package/problems/3/FORMALIZATION.md +2 -2
  36. package/problems/3/problem.yaml +6 -6
  37. package/problems/4/AGENT_START.md +1 -1
  38. package/problems/4/EVIDENCE.md +1 -1
  39. package/problems/4/FORMALIZATION.md +2 -2
  40. package/problems/4/problem.yaml +6 -6
  41. package/problems/5/AGENT_START.md +1 -1
  42. package/problems/5/EVIDENCE.md +1 -1
  43. package/problems/5/FORMALIZATION.md +2 -2
  44. package/problems/5/problem.yaml +6 -6
  45. package/problems/536/problem.yaml +5 -5
  46. package/problems/542/problem.yaml +5 -5
  47. package/problems/6/AGENT_START.md +1 -1
  48. package/problems/6/EVIDENCE.md +1 -1
  49. package/problems/6/FORMALIZATION.md +2 -2
  50. package/problems/6/problem.yaml +6 -6
  51. package/problems/7/AGENT_START.md +1 -1
  52. package/problems/7/EVIDENCE.md +1 -1
  53. package/problems/7/FORMALIZATION.md +2 -2
  54. package/problems/7/problem.yaml +6 -6
  55. package/problems/856/problem.yaml +5 -5
  56. package/problems/857/problem.yaml +5 -5
  57. package/problems/89/problem.yaml +5 -5
  58. package/src/atlas/catalog.js +6 -5
  59. package/src/cli/index.js +10 -5
  60. package/src/commands/bootstrap.js +1 -1
  61. package/src/commands/dossier.js +1 -1
  62. package/src/commands/maintainer.js +2 -2
  63. package/src/commands/paper.js +147 -0
  64. package/src/commands/problem.js +9 -9
  65. package/src/commands/pull.js +8 -8
  66. package/src/commands/scaffold.js +1 -1
  67. package/src/commands/seed.js +1 -1
  68. package/src/commands/upstream.js +33 -21
  69. package/src/runtime/maintainer-seed.js +12 -12
  70. package/src/runtime/paper.js +720 -0
  71. package/src/runtime/paths.js +16 -0
  72. package/src/runtime/problem-artifacts.js +2 -2
  73. package/src/runtime/state.js +1 -1
  74. package/src/upstream/sync.js +18 -18
@@ -5,7 +5,7 @@ source:
5
5
  site: erdosproblems.com
6
6
  url: https://www.erdosproblems.com/3
7
7
  external_id: "3"
8
- upstream:
8
+ external_source:
9
9
  repo: https://github.com/teorth/erdosproblems
10
10
  data_file: data/problems.yaml
11
11
  number: "3"
@@ -13,14 +13,14 @@ provenance:
13
13
  seeded_at: 2026-03-26T04:41:25.280Z
14
14
  seeded_from:
15
15
  kind: pull_bundle
16
- upstream_record_included: true
16
+ imported_record_included: true
17
17
  site_snapshot_included: true
18
18
  status:
19
19
  site_status: open
20
20
  site_badge: OPEN
21
21
  repo_status: cataloged
22
- upstream_status: open
23
- upstream_last_update: 2025-08-31
22
+ imported_status: open
23
+ imported_last_update: 2025-08-31
24
24
  cluster: number-theory
25
25
  prize:
26
26
  display: $5000
@@ -40,5 +40,5 @@ evidence_path: EVIDENCE.md
40
40
  formalization_path: FORMALIZATION.md
41
41
  formalization:
42
42
  status: planned
43
- upstream_state: yes
44
- upstream_last_update: 2025-08-31
43
+ imported_state: yes
44
+ imported_last_update: 2025-08-31
@@ -14,4 +14,4 @@ Working assumptions:
14
14
  - Harness depth: dossier
15
15
 
16
16
  First honest move:
17
- - tighten the local dossier for problem 4 against its pull bundle, references, and upstream provenance before widening claims.
17
+ - tighten the local dossier for problem 4 against its pull bundle, references, and import provenance before widening claims.
@@ -1,7 +1,7 @@
1
1
  # Evidence
2
2
 
3
3
  - This dossier was seeded for Erdos Problem #4 from a pull bundle.
4
- - Upstream record included: yes
4
+ - Imported record included: yes
5
5
  - Site snapshot included: yes
6
6
  - Repo status at seed time: cataloged
7
7
  - Harness depth at seed time: dossier
@@ -1,8 +1,8 @@
1
1
  # Formalization
2
2
 
3
3
  - Local status: planned
4
- - Upstream formalized state: yes
5
- - Upstream formalized last update: 2025-08-31
4
+ - Imported formalized state: yes
5
+ - Imported formalized last update: 2025-08-31
6
6
 
7
7
  Seed note:
8
8
  - this file was created automatically from a pull bundle and should be upgraded as local formal work begins.
@@ -5,7 +5,7 @@ source:
5
5
  site: erdosproblems.com
6
6
  url: https://www.erdosproblems.com/4
7
7
  external_id: "4"
8
- upstream:
8
+ external_source:
9
9
  repo: https://github.com/teorth/erdosproblems
10
10
  data_file: data/problems.yaml
11
11
  number: "4"
@@ -13,14 +13,14 @@ provenance:
13
13
  seeded_at: 2026-03-26T04:41:25.574Z
14
14
  seeded_from:
15
15
  kind: pull_bundle
16
- upstream_record_included: true
16
+ imported_record_included: true
17
17
  site_snapshot_included: true
18
18
  status:
19
19
  site_status: proved
20
20
  site_badge: PROVED
21
21
  repo_status: cataloged
22
- upstream_status: proved
23
- upstream_last_update: 2025-08-31
22
+ imported_status: proved
23
+ imported_last_update: 2025-08-31
24
24
  cluster: number-theory
25
25
  prize:
26
26
  display: $10000
@@ -40,5 +40,5 @@ evidence_path: EVIDENCE.md
40
40
  formalization_path: FORMALIZATION.md
41
41
  formalization:
42
42
  status: planned
43
- upstream_state: yes
44
- upstream_last_update: 2025-08-31
43
+ imported_state: yes
44
+ imported_last_update: 2025-08-31
@@ -14,4 +14,4 @@ Working assumptions:
14
14
  - Harness depth: dossier
15
15
 
16
16
  First honest move:
17
- - tighten the local dossier for problem 5 against its pull bundle, references, and upstream provenance before widening claims.
17
+ - tighten the local dossier for problem 5 against its pull bundle, references, and import provenance before widening claims.
@@ -1,7 +1,7 @@
1
1
  # Evidence
2
2
 
3
3
  - This dossier was seeded for Erdos Problem #5 from a pull bundle.
4
- - Upstream record included: yes
4
+ - Imported record included: yes
5
5
  - Site snapshot included: yes
6
6
  - Repo status at seed time: cataloged
7
7
  - Harness depth at seed time: dossier
@@ -1,8 +1,8 @@
1
1
  # Formalization
2
2
 
3
3
  - Local status: planned
4
- - Upstream formalized state: no
5
- - Upstream formalized last update: 2025-08-31
4
+ - Imported formalized state: no
5
+ - Imported formalized last update: 2025-08-31
6
6
 
7
7
  Seed note:
8
8
  - this file was created automatically from a pull bundle and should be upgraded as local formal work begins.
@@ -5,7 +5,7 @@ source:
5
5
  site: erdosproblems.com
6
6
  url: https://www.erdosproblems.com/5
7
7
  external_id: "5"
8
- upstream:
8
+ external_source:
9
9
  repo: https://github.com/teorth/erdosproblems
10
10
  data_file: data/problems.yaml
11
11
  number: "5"
@@ -13,14 +13,14 @@ provenance:
13
13
  seeded_at: 2026-03-26T04:41:25.800Z
14
14
  seeded_from:
15
15
  kind: pull_bundle
16
- upstream_record_included: true
16
+ imported_record_included: true
17
17
  site_snapshot_included: true
18
18
  status:
19
19
  site_status: open
20
20
  site_badge: OPEN
21
21
  repo_status: cataloged
22
- upstream_status: open
23
- upstream_last_update: 2025-08-31
22
+ imported_status: open
23
+ imported_last_update: 2025-08-31
24
24
  cluster: number-theory
25
25
  prize:
26
26
  display: no
@@ -39,5 +39,5 @@ evidence_path: EVIDENCE.md
39
39
  formalization_path: FORMALIZATION.md
40
40
  formalization:
41
41
  status: planned
42
- upstream_state: no
43
- upstream_last_update: 2025-08-31
42
+ imported_state: no
43
+ imported_last_update: 2025-08-31
@@ -5,7 +5,7 @@ source:
5
5
  site: erdosproblems.com
6
6
  url: https://www.erdosproblems.com/536
7
7
  external_id: "536"
8
- upstream:
8
+ external_source:
9
9
  repo: https://github.com/teorth/erdosproblems
10
10
  data_file: data/problems.yaml
11
11
  number: "536"
@@ -13,8 +13,8 @@ status:
13
13
  site_status: open
14
14
  site_badge: OPEN
15
15
  repo_status: active
16
- upstream_status: open
17
- upstream_last_update: 2025-08-31
16
+ imported_status: open
17
+ imported_last_update: 2025-08-31
18
18
  cluster: sunflower
19
19
  prize:
20
20
  display: no
@@ -35,8 +35,8 @@ evidence_path: EVIDENCE.md
35
35
  formalization_path: FORMALIZATION.md
36
36
  formalization:
37
37
  status: planned
38
- upstream_state: yes
39
- upstream_last_update: 2025-11-12
38
+ imported_state: yes
39
+ imported_last_update: 2025-11-12
40
40
  research_state:
41
41
  open_problem: true
42
42
  active_route: natural_density_lcm_bridge
@@ -5,7 +5,7 @@ source:
5
5
  site: erdosproblems.com
6
6
  url: https://www.erdosproblems.com/542
7
7
  external_id: "542"
8
- upstream:
8
+ external_source:
9
9
  repo: https://github.com/teorth/erdosproblems
10
10
  data_file: data/problems.yaml
11
11
  number: "542"
@@ -13,8 +13,8 @@ status:
13
13
  site_status: solved
14
14
  site_badge: SOLVED
15
15
  repo_status: historical
16
- upstream_status: solved
17
- upstream_last_update: 2025-08-31
16
+ imported_status: solved
17
+ imported_last_update: 2025-08-31
18
18
  cluster: number-theory
19
19
  prize:
20
20
  display: no
@@ -34,5 +34,5 @@ evidence_path: EVIDENCE.md
34
34
  formalization_path: FORMALIZATION.md
35
35
  formalization:
36
36
  status: unstarted
37
- upstream_state: no
38
- upstream_last_update: 2025-08-31
37
+ imported_state: no
38
+ imported_last_update: 2025-08-31
@@ -14,4 +14,4 @@ Working assumptions:
14
14
  - Harness depth: dossier
15
15
 
16
16
  First honest move:
17
- - tighten the local dossier for problem 6 against its pull bundle, references, and upstream provenance before widening claims.
17
+ - tighten the local dossier for problem 6 against its pull bundle, references, and import provenance before widening claims.
@@ -1,7 +1,7 @@
1
1
  # Evidence
2
2
 
3
3
  - This dossier was seeded for Erdos Problem #6 from a pull bundle.
4
- - Upstream record included: yes
4
+ - Imported record included: yes
5
5
  - Site snapshot included: yes
6
6
  - Repo status at seed time: cataloged
7
7
  - Harness depth at seed time: dossier
@@ -1,8 +1,8 @@
1
1
  # Formalization
2
2
 
3
3
  - Local status: planned
4
- - Upstream formalized state: yes
5
- - Upstream formalized last update: 2025-09-18
4
+ - Imported formalized state: yes
5
+ - Imported formalized last update: 2025-09-18
6
6
 
7
7
  Seed note:
8
8
  - this file was created automatically from a pull bundle and should be upgraded as local formal work begins.
@@ -5,7 +5,7 @@ source:
5
5
  site: erdosproblems.com
6
6
  url: https://www.erdosproblems.com/6
7
7
  external_id: "6"
8
- upstream:
8
+ external_source:
9
9
  repo: https://github.com/teorth/erdosproblems
10
10
  data_file: data/problems.yaml
11
11
  number: "6"
@@ -13,14 +13,14 @@ provenance:
13
13
  seeded_at: 2026-03-26T04:41:26.097Z
14
14
  seeded_from:
15
15
  kind: pull_bundle
16
- upstream_record_included: true
16
+ imported_record_included: true
17
17
  site_snapshot_included: true
18
18
  status:
19
19
  site_status: proved
20
20
  site_badge: PROVED
21
21
  repo_status: cataloged
22
- upstream_status: proved
23
- upstream_last_update: 2025-08-31
22
+ imported_status: proved
23
+ imported_last_update: 2025-08-31
24
24
  cluster: number-theory
25
25
  prize:
26
26
  display: $100
@@ -39,5 +39,5 @@ evidence_path: EVIDENCE.md
39
39
  formalization_path: FORMALIZATION.md
40
40
  formalization:
41
41
  status: planned
42
- upstream_state: yes
43
- upstream_last_update: 2025-09-18
42
+ imported_state: yes
43
+ imported_last_update: 2025-09-18
@@ -14,4 +14,4 @@ Working assumptions:
14
14
  - Harness depth: dossier
15
15
 
16
16
  First honest move:
17
- - tighten the local dossier for problem 7 against its pull bundle, references, and upstream provenance before widening claims.
17
+ - tighten the local dossier for problem 7 against its pull bundle, references, and import provenance before widening claims.
@@ -1,7 +1,7 @@
1
1
  # Evidence
2
2
 
3
3
  - This dossier was seeded for Erdos Problem #7 from a pull bundle.
4
- - Upstream record included: yes
4
+ - Imported record included: yes
5
5
  - Site snapshot included: yes
6
6
  - Repo status at seed time: cataloged
7
7
  - Harness depth at seed time: dossier
@@ -1,8 +1,8 @@
1
1
  # Formalization
2
2
 
3
3
  - Local status: planned
4
- - Upstream formalized state: no
5
- - Upstream formalized last update: 2025-08-31
4
+ - Imported formalized state: no
5
+ - Imported formalized last update: 2025-08-31
6
6
 
7
7
  Seed note:
8
8
  - this file was created automatically from a pull bundle and should be upgraded as local formal work begins.
@@ -5,7 +5,7 @@ source:
5
5
  site: erdosproblems.com
6
6
  url: https://www.erdosproblems.com/7
7
7
  external_id: "7"
8
- upstream:
8
+ external_source:
9
9
  repo: https://github.com/teorth/erdosproblems
10
10
  data_file: data/problems.yaml
11
11
  number: "7"
@@ -13,14 +13,14 @@ provenance:
13
13
  seeded_at: 2026-03-26T04:41:26.332Z
14
14
  seeded_from:
15
15
  kind: pull_bundle
16
- upstream_record_included: true
16
+ imported_record_included: true
17
17
  site_snapshot_included: true
18
18
  status:
19
19
  site_status: verifiable
20
20
  site_badge: VERIFIABLE
21
21
  repo_status: cataloged
22
- upstream_status: verifiable
23
- upstream_last_update: 2025-08-31
22
+ imported_status: verifiable
23
+ imported_last_update: 2025-08-31
24
24
  cluster: number-theory
25
25
  prize:
26
26
  display: no
@@ -38,5 +38,5 @@ evidence_path: EVIDENCE.md
38
38
  formalization_path: FORMALIZATION.md
39
39
  formalization:
40
40
  status: planned
41
- upstream_state: no
42
- upstream_last_update: 2025-08-31
41
+ imported_state: no
42
+ imported_last_update: 2025-08-31
@@ -5,7 +5,7 @@ source:
5
5
  site: erdosproblems.com
6
6
  url: https://www.erdosproblems.com/856
7
7
  external_id: "856"
8
- upstream:
8
+ external_source:
9
9
  repo: https://github.com/teorth/erdosproblems
10
10
  data_file: data/problems.yaml
11
11
  number: "856"
@@ -13,8 +13,8 @@ status:
13
13
  site_status: open
14
14
  site_badge: OPEN
15
15
  repo_status: active
16
- upstream_status: open
17
- upstream_last_update: 2025-08-31
16
+ imported_status: open
17
+ imported_last_update: 2025-08-31
18
18
  cluster: sunflower
19
19
  prize:
20
20
  display: no
@@ -35,8 +35,8 @@ evidence_path: EVIDENCE.md
35
35
  formalization_path: FORMALIZATION.md
36
36
  formalization:
37
37
  status: planned
38
- upstream_state: no
39
- upstream_last_update: 2025-08-31
38
+ imported_state: no
39
+ imported_last_update: 2025-08-31
40
40
  research_state:
41
41
  open_problem: true
42
42
  active_route: harmonic_density_lcm_bridge
@@ -5,7 +5,7 @@ source:
5
5
  site: erdosproblems.com
6
6
  url: https://www.erdosproblems.com/857
7
7
  external_id: "857"
8
- upstream:
8
+ external_source:
9
9
  repo: https://github.com/teorth/erdosproblems
10
10
  data_file: data/problems.yaml
11
11
  number: "857"
@@ -13,8 +13,8 @@ status:
13
13
  site_status: open
14
14
  site_badge: OPEN
15
15
  repo_status: active
16
- upstream_status: open
17
- upstream_last_update: 2025-08-31
16
+ imported_status: open
17
+ imported_last_update: 2025-08-31
18
18
  cluster: sunflower
19
19
  prize:
20
20
  display: no
@@ -36,8 +36,8 @@ evidence_path: EVIDENCE.md
36
36
  formalization_path: FORMALIZATION.md
37
37
  formalization:
38
38
  status: active
39
- upstream_state: no
40
- upstream_last_update: 2025-08-31
39
+ imported_state: no
40
+ imported_last_update: 2025-08-31
41
41
  research_state:
42
42
  open_problem: true
43
43
  active_route: anchored_selector_linearization
@@ -5,7 +5,7 @@ source:
5
5
  site: erdosproblems.com
6
6
  url: https://www.erdosproblems.com/89
7
7
  external_id: "89"
8
- upstream:
8
+ external_source:
9
9
  repo: https://github.com/teorth/erdosproblems
10
10
  data_file: data/problems.yaml
11
11
  number: "89"
@@ -13,8 +13,8 @@ status:
13
13
  site_status: open
14
14
  site_badge: OPEN
15
15
  repo_status: cataloged
16
- upstream_status: open
17
- upstream_last_update: 2025-08-31
16
+ imported_status: open
17
+ imported_last_update: 2025-08-31
18
18
  cluster: geometry
19
19
  prize:
20
20
  display: $500
@@ -33,5 +33,5 @@ evidence_path: EVIDENCE.md
33
33
  formalization_path: FORMALIZATION.md
34
34
  formalization:
35
35
  status: statement-formalized
36
- upstream_state: yes
37
- upstream_last_update: 2025-10-24
36
+ imported_state: yes
37
+ imported_last_update: 2025-10-24
@@ -14,6 +14,7 @@ function toCatalogProblem(problemDir, record, sourceKind) {
14
14
  const referencesRelative = record.references_path ?? 'REFERENCES.md';
15
15
  const evidenceRelative = record.evidence_path ?? 'EVIDENCE.md';
16
16
  const formalizationRelative = record.formalization_path ?? 'FORMALIZATION.md';
17
+ const externalSource = record.external_source ?? record.upstream ?? null;
17
18
 
18
19
  return {
19
20
  problemId: String(record.problem_id),
@@ -24,8 +25,8 @@ function toCatalogProblem(problemDir, record, sourceKind) {
24
25
  siteStatus: record.status?.site_status ?? 'unknown',
25
26
  siteBadge: record.status?.site_badge ?? String(record.status?.site_status ?? 'unknown').toUpperCase(),
26
27
  repoStatus: record.status?.repo_status ?? 'cataloged',
27
- upstreamStatus: record.status?.upstream_status ?? null,
28
- upstreamLastUpdate: record.status?.upstream_last_update ?? null,
28
+ importedStatus: record.status?.imported_status ?? record.status?.upstream_status ?? null,
29
+ importedLastUpdate: record.status?.imported_last_update ?? record.status?.upstream_last_update ?? null,
29
30
  cluster: record.cluster ?? 'uncategorized',
30
31
  prize: record.prize?.display ?? null,
31
32
  familyTags: record.family_tags ?? [],
@@ -33,10 +34,10 @@ function toCatalogProblem(problemDir, record, sourceKind) {
33
34
  harnessDepth: record.harness?.depth ?? 'dossier',
34
35
  shortStatement: record.statement?.short ?? '',
35
36
  formalizationStatus: record.formalization?.status ?? 'unstarted',
36
- upstreamFormalizedState: record.formalization?.upstream_state ?? null,
37
- upstreamFormalizedLastUpdate: record.formalization?.upstream_last_update ?? null,
37
+ importedFormalizedState: record.formalization?.imported_state ?? record.formalization?.upstream_state ?? null,
38
+ importedFormalizedLastUpdate: record.formalization?.imported_last_update ?? record.formalization?.upstream_last_update ?? null,
38
39
  researchState: record.research_state ?? null,
39
- upstream: record.upstream ?? null,
40
+ externalSource,
40
41
  statementPath: path.join(problemDir, statementRelative),
41
42
  referencesPath: path.join(problemDir, referencesRelative),
42
43
  evidencePath: path.join(problemDir, evidenceRelative),
package/src/cli/index.js CHANGED
@@ -8,6 +8,7 @@ import { runGraphTheoryCommand } from '../commands/graph-theory.js';
8
8
  import { runMaintainerCommand } from '../commands/maintainer.js';
9
9
  import { runNumberTheoryCommand } from '../commands/number-theory.js';
10
10
  import { runOrpCommand } from '../commands/orp.js';
11
+ import { runPaperCommand } from '../commands/paper.js';
11
12
  import { runPreflightCommand } from '../commands/preflight.js';
12
13
  import { runProblemCommand } from '../commands/problem.js';
13
14
  import { runPullCommand } from '../commands/pull.js';
@@ -45,6 +46,8 @@ function printUsage() {
45
46
  console.log(' erdos workspace show [--json]');
46
47
  console.log(' erdos orp show [--json]');
47
48
  console.log(' erdos orp sync [--json]');
49
+ console.log(' erdos paper init [<id>] [--dest <path>] [--json]');
50
+ console.log(' erdos paper show [<id>] [--dest <path>] [--json]');
48
51
  console.log(' erdos state sync [--json]');
49
52
  console.log(' erdos state show [--json]');
50
53
  console.log(' erdos continuation show [--json]');
@@ -63,10 +66,10 @@ function printUsage() {
63
66
  console.log(' erdos sunflower atom <problem-id> <atom-id> [--json]');
64
67
  console.log(' erdos sunflower compute run [<id>] [--json]');
65
68
  console.log(' erdos dossier show <id>');
66
- console.log(' erdos upstream show');
67
- console.log(' erdos upstream sync [--write-package-snapshot]');
68
- console.log(' erdos upstream diff [--write-package-report]');
69
- console.log(' erdos upstream drift [<id>] [--include-site] [--json]');
69
+ console.log(' erdos import show');
70
+ console.log(' erdos import sync [--write-package-snapshot]');
71
+ console.log(' erdos import diff [--write-package-report]');
72
+ console.log(' erdos import drift [<id>] [--include-site] [--json]');
70
73
  console.log(' erdos scaffold problem <id> [--dest <path>]');
71
74
  console.log(' erdos bootstrap problem <id> [--dest <path>] [--sync-upstream]');
72
75
  console.log(' erdos seed problem <id> [--include-site|--no-site] [--include-public-search|--no-public-search] [--refresh-upstream] [--cluster <name>] [--repo-status <status>] [--harness-depth <depth>] [--title <title>] [--family-tag <tag>] [--related <id>] [--formalization-status <status>] [--active-route <route>] [--route-breakthrough] [--problem-solved] [--allow-non-open] [--dest-root <path>] [--no-activate] [--no-loop-sync] [--force] [--json]');
@@ -98,6 +101,8 @@ if (!command || command === 'help' || command === '--help') {
98
101
  exitCode = runWorkspaceCommand(rest);
99
102
  } else if (command === 'orp') {
100
103
  exitCode = runOrpCommand(rest);
104
+ } else if (command === 'paper') {
105
+ exitCode = runPaperCommand(rest);
101
106
  } else if (command === 'state') {
102
107
  exitCode = runStateCommand(rest);
103
108
  } else if (command === 'continuation') {
@@ -110,7 +115,7 @@ if (!command || command === 'help' || command === '--help') {
110
115
  exitCode = runSunflowerCommand(rest);
111
116
  } else if (command === 'dossier') {
112
117
  exitCode = runDossierCommand(rest);
113
- } else if (command === 'upstream') {
118
+ } else if (command === 'upstream' || command === 'import') {
114
119
  exitCode = await runUpstreamCommand(rest);
115
120
  } else if (command === 'scaffold') {
116
121
  exitCode = runScaffoldCommand(rest);
@@ -84,7 +84,7 @@ export async function runBootstrapCommand(args) {
84
84
  console.log(`Scaffold dir: ${result.destination}`);
85
85
  console.log(`Artifacts copied: ${result.copiedArtifacts.length}`);
86
86
  console.log(`ORP protocol: ${orp.protocolPath}`);
87
- console.log(`Upstream record included: ${result.inventory.upstreamRecordIncluded ? 'yes' : 'no'}`);
87
+ console.log(`Imported record included: ${result.inventory.upstreamRecordIncluded ? 'yes' : 'no'}`);
88
88
  console.log(`Checkpoint shelf: ${checkpoints.indexPath}`);
89
89
  console.log(`Next honest move: ${state.nextHonestMove}`);
90
90
  return 0;
@@ -49,7 +49,7 @@ export function runDossierCommand(args) {
49
49
  console.log(`- cluster: ${problem.cluster}`);
50
50
  console.log(`- repo status: ${problem.repoStatus}`);
51
51
  console.log(`- harness depth: ${problem.harnessDepth}`);
52
- console.log(`- upstream number: ${problem.upstream?.number ?? '(unset)'}`);
52
+ console.log(`- external source number: ${problem.externalSource?.number ?? '(unset)'}`);
53
53
  if (fs.existsSync(problem.statementPath)) {
54
54
  console.log('');
55
55
  console.log('Statement preview:');
@@ -168,7 +168,7 @@ export function runMaintainerCommand(args) {
168
168
  console.log(`Review checklist: ${result.reviewPath}`);
169
169
  console.log(`Proposed destination: ${result.destinationDir}`);
170
170
  console.log(`Title: ${result.title}`);
171
- console.log(`Upstream record used: ${result.usedUpstreamRecord ? 'yes' : 'no'}`);
171
+ console.log(`Imported record used: ${result.usedUpstreamRecord ? 'yes' : 'no'}`);
172
172
  console.log(`Site snapshot used: ${result.usedSiteSnapshot ? 'yes' : 'no'}`);
173
173
  console.log(`Public status review used: ${result.usedPublicStatusReview ? 'yes' : 'no'}`);
174
174
  return 0;
@@ -196,7 +196,7 @@ export function runMaintainerCommand(args) {
196
196
  console.log(`Title: ${result.record.title}`);
197
197
  console.log(`Cluster: ${result.record.cluster}`);
198
198
  console.log(`Harness depth: ${result.record.harness.depth}`);
199
- console.log(`Upstream record used: ${result.usedUpstreamRecord ? 'yes' : 'no'}`);
199
+ console.log(`Imported record used: ${result.usedUpstreamRecord ? 'yes' : 'no'}`);
200
200
  console.log(`Site snapshot used: ${result.usedSiteSnapshot ? 'yes' : 'no'}`);
201
201
  console.log(`Public status review used: ${result.usedPublicStatusReview ? 'yes' : 'no'}`);
202
202
  return 0;