lab-kit-cli 0.6.0__tar.gz → 0.6.1__tar.gz

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 (206) hide show
  1. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/CHANGELOG.md +5 -0
  2. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/PKG-INFO +1 -1
  3. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1/examples/monte-carlo-lab/.agents}/skills/plan-mission/SKILL.md +1 -1
  4. lab_kit_cli-0.6.1/examples/monte-carlo-lab/.gitignore +5 -0
  5. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/lab.yaml +1 -1
  6. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/pyproject.toml +1 -1
  7. {lab_kit_cli-0.6.0/examples/monte-carlo-lab/.agents → lab_kit_cli-0.6.1}/skills/plan-mission/SKILL.md +1 -1
  8. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/__init__.py +1 -1
  9. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/commands/migrate.py +24 -3
  10. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/commands/setup.py +1 -1
  11. lab_kit_cli-0.6.1/tests/fixtures/monte-carlo-lab-0.5/ops/missions/.gitkeep +0 -0
  12. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/test_migrate.py +65 -0
  13. lab_kit_cli-0.6.0/examples/monte-carlo-lab/.gitignore +0 -4
  14. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/.github/workflows/ci.yml +0 -0
  15. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/.github/workflows/policy.yml +0 -0
  16. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/.github/workflows/release.yml +0 -0
  17. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/.gitignore +0 -0
  18. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/AGENTS.md +0 -0
  19. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/CLAUDE.md +0 -0
  20. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/CONTRIBUTING.md +0 -0
  21. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/LICENSE +0 -0
  22. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/README.md +0 -0
  23. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/SETUP.md +0 -0
  24. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/agents/reporter.md +0 -0
  25. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/agents/reviewer.md +0 -0
  26. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/agents/runner.md +0 -0
  27. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/agents/scout.md +0 -0
  28. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/docs/figures/how-lab-kit-works-dark.svg +0 -0
  29. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/docs/figures/how-lab-kit-works-light.svg +0 -0
  30. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/docs/figures/lab-loop-dark.svg +0 -0
  31. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/docs/figures/lab-loop-light.svg +0 -0
  32. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/docs/figures/number-chain-dark.svg +0 -0
  33. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/docs/figures/number-chain-light.svg +0 -0
  34. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/docs/spec/lab-model.md +0 -0
  35. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/agents/reporter.md +0 -0
  36. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/agents/reviewer.md +0 -0
  37. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/agents/runner.md +0 -0
  38. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/agents/scout.md +0 -0
  39. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/skills/address/SKILL.md +0 -0
  40. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/skills/configure/SKILL.md +0 -0
  41. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/skills/experiment/SKILL.md +0 -0
  42. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/skills/organise/SKILL.md +0 -0
  43. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/skills/publish/SKILL.md +0 -0
  44. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/skills/review/SKILL.md +0 -0
  45. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/skills/run/SKILL.md +0 -0
  46. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/skills/run-mission/SKILL.md +0 -0
  47. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/skills/set-up/SKILL.md +0 -0
  48. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/skills/set-up-lab/SKILL.md +0 -0
  49. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.agents/skills/write/SKILL.md +0 -0
  50. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.lab/frozen.sha256 +0 -0
  51. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.lab/method/DISCIPLINE.md +0 -0
  52. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.lab/method/LADDER.md +0 -0
  53. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/.lab/migration.tsv +0 -0
  54. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/AGENTS.md +0 -0
  55. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/CLAUDE.md +0 -0
  56. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/.folio/backlinks.json +0 -0
  57. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/.folio/cards.json +0 -0
  58. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/.folio/catalog.json +0 -0
  59. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/.folio/journal.json +0 -0
  60. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/.folio/nav.json +0 -0
  61. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/.folio/search.json +0 -0
  62. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/.gitignore +0 -0
  63. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/assets/data/.gitkeep +0 -0
  64. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/assets/figures/.gitkeep +0 -0
  65. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/assets/refs.bib +0 -0
  66. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/baseline.sha256 +0 -0
  67. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/claims/C-1.md +0 -0
  68. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/index.html +0 -0
  69. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/journal/2026/2026-10-04-concluded-the-pi-error-scaling-mission.md +0 -0
  70. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/journal/2026/2026-10-04-lab-set-up.md +0 -0
  71. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/journal/2026/2026-10-04-locked-the-pi-error-scaling-protocol.md +0 -0
  72. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/journal/2026/2026-10-04-opened-the-pi-error-scaling-mission.md +0 -0
  73. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/journal/2026/2026-10-04-r-1-fitted-the-mean-absolute-error.md +0 -0
  74. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/journal/2026/2026-10-04-ran-the-pi-error-scaling-protocol.md +0 -0
  75. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/journal/2026/2026-10-04-recorded-r-1.md +0 -0
  76. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/journal/2026/2026-10-04-recorded-r-2.md +0 -0
  77. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/journal/2026/2026-10-04-reported-the-pi-error-scaling-experiment.md +0 -0
  78. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/journal/2026/2026-10-04-the-square-root-law-holds-per-size-predictions.md +0 -0
  79. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/maps/research.html +0 -0
  80. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/projects/lab/index.html +0 -0
  81. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/protocols/pi-error-scaling.md +0 -0
  82. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/questions/Q-1.md +0 -0
  83. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/reports/pi-error-scaling-report/index.html +0 -0
  84. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/results/R-1.md +0 -0
  85. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/content/results/R-2.md +0 -0
  86. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/docs/folio.yaml +0 -0
  87. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/experiments/.gitkeep +0 -0
  88. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/experiments/26-10-04-e_pi-error-scaling/bin/.gitkeep +0 -0
  89. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/experiments/26-10-04-e_pi-error-scaling/bin/fold.py +0 -0
  90. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/experiments/26-10-04-e_pi-error-scaling/bin/sample.py +0 -0
  91. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/experiments/26-10-04-e_pi-error-scaling/lock.json +0 -0
  92. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/experiments/26-10-04-e_pi-error-scaling/score.yaml +0 -0
  93. {lab_kit_cli-0.6.0/examples/monte-carlo-lab/ops → lab_kit_cli-0.6.1/examples/monte-carlo-lab}/missions/.gitkeep +0 -0
  94. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/missions/26-10-04-m_pi-error-scaling.md +0 -0
  95. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/ops/STATE.md +0 -0
  96. {lab_kit_cli-0.6.0/tests/fixtures/monte-carlo-lab-0.5/docs/assets/data → lab_kit_cli-0.6.1/examples/monte-carlo-lab/ops/missions}/.gitkeep +0 -0
  97. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/runs/26-10-04-e_pi-error-scaling/26-10-04-2316-r_zlk7/out/estimates.tsv +0 -0
  98. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/runs/26-10-04-e_pi-error-scaling/26-10-04-2316-r_zlk7/run.json +0 -0
  99. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/substrate/README.md +0 -0
  100. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/examples/monte-carlo-lab/substrate/estimator.py +0 -0
  101. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/method/DISCIPLINE.md +0 -0
  102. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/method/LADDER.md +0 -0
  103. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/skills/experiment/SKILL.md +0 -0
  104. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/skills/review/SKILL.md +0 -0
  105. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/skills/run-mission/SKILL.md +0 -0
  106. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/skills/set-up-lab/SKILL.md +0 -0
  107. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/__main__.py +0 -0
  108. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/budgets.py +0 -0
  109. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/checks/__init__.py +0 -0
  110. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/checks/base.py +0 -0
  111. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/checks/files.py +0 -0
  112. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/checks/locks.py +0 -0
  113. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/checks/results.py +0 -0
  114. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/checks/run.py +0 -0
  115. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/cli.py +0 -0
  116. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/commands/__init__.py +0 -0
  117. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/commands/experiments.py +0 -0
  118. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/commands/runs.py +0 -0
  119. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/commands/status.py +0 -0
  120. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/data.py +0 -0
  121. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/errors.py +0 -0
  122. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/frozen.py +0 -0
  123. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/gitlog.py +0 -0
  124. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/lab.py +0 -0
  125. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/ops.py +0 -0
  126. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/protocol.py +0 -0
  127. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/records.py +0 -0
  128. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/rederive.py +0 -0
  129. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/store.py +0 -0
  130. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/src/lab_kit/supervise.py +0 -0
  131. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/conftest.py +0 -0
  132. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/agents/reporter.md +0 -0
  133. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/agents/reviewer.md +0 -0
  134. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/agents/runner.md +0 -0
  135. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/agents/scout.md +0 -0
  136. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/skills/address/SKILL.md +0 -0
  137. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/skills/configure/SKILL.md +0 -0
  138. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/skills/experiment/SKILL.md +0 -0
  139. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/skills/organise/SKILL.md +0 -0
  140. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/skills/plan-mission/SKILL.md +0 -0
  141. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/skills/publish/SKILL.md +0 -0
  142. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/skills/review/SKILL.md +0 -0
  143. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/skills/run/SKILL.md +0 -0
  144. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/skills/run-mission/SKILL.md +0 -0
  145. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/skills/set-up/SKILL.md +0 -0
  146. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/skills/set-up-lab/SKILL.md +0 -0
  147. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.agents/skills/write/SKILL.md +0 -0
  148. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.gitignore +0 -0
  149. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.lab/frozen.sha256 +0 -0
  150. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.lab/method/DISCIPLINE.md +0 -0
  151. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/.lab/method/LADDER.md +0 -0
  152. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/AGENTS.md +0 -0
  153. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/CLAUDE.md +0 -0
  154. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/.folio/backlinks.json +0 -0
  155. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/.folio/cards.json +0 -0
  156. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/.folio/catalog.json +0 -0
  157. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/.folio/journal.json +0 -0
  158. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/.folio/nav.json +0 -0
  159. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/.folio/search.json +0 -0
  160. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/.gitignore +0 -0
  161. {lab_kit_cli-0.6.0/tests/fixtures/monte-carlo-lab-0.5/docs/assets/figures → lab_kit_cli-0.6.1/tests/fixtures/monte-carlo-lab-0.5/docs/assets/data}/.gitkeep +0 -0
  162. {lab_kit_cli-0.6.0/tests/fixtures/monte-carlo-lab-0.5/experiments → lab_kit_cli-0.6.1/tests/fixtures/monte-carlo-lab-0.5/docs/assets/figures}/.gitkeep +0 -0
  163. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/assets/refs.bib +0 -0
  164. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/claims/C-1.md +0 -0
  165. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/index.html +0 -0
  166. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/journal/2026/2026-10-04-concluded-the-pi-error-scaling-mission.md +0 -0
  167. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/journal/2026/2026-10-04-lab-set-up.md +0 -0
  168. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/journal/2026/2026-10-04-locked-the-pi-error-scaling-protocol.md +0 -0
  169. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/journal/2026/2026-10-04-opened-the-pi-error-scaling-mission.md +0 -0
  170. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/journal/2026/2026-10-04-r-1-fitted-the-mean-absolute-error.md +0 -0
  171. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/journal/2026/2026-10-04-ran-the-pi-error-scaling-protocol.md +0 -0
  172. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/journal/2026/2026-10-04-recorded-r-1.md +0 -0
  173. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/journal/2026/2026-10-04-recorded-r-2.md +0 -0
  174. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/journal/2026/2026-10-04-reported-the-pi-error-scaling-experiment.md +0 -0
  175. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/journal/2026/2026-10-04-the-square-root-law-holds-per-size-predictions.md +0 -0
  176. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/maps/research.html +0 -0
  177. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/projects/lab/index.html +0 -0
  178. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/protocols/pi-error-scaling.md +0 -0
  179. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/questions/Q-1.md +0 -0
  180. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/reports/pi-error-scaling-report/index.html +0 -0
  181. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/results/R-1.md +0 -0
  182. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/content/results/R-2.md +0 -0
  183. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/docs/folio.yaml +0 -0
  184. {lab_kit_cli-0.6.0/tests/fixtures/monte-carlo-lab-0.5/experiments/pi-error-scaling/bin → lab_kit_cli-0.6.1/tests/fixtures/monte-carlo-lab-0.5/experiments}/.gitkeep +0 -0
  185. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/experiments/pi-error-scaling/.gitignore +0 -0
  186. {lab_kit_cli-0.6.0/tests/fixtures/monte-carlo-lab-0.5/experiments/pi-error-scaling/runs → lab_kit_cli-0.6.1/tests/fixtures/monte-carlo-lab-0.5/experiments/pi-error-scaling/bin}/.gitkeep +0 -0
  187. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/experiments/pi-error-scaling/bin/fold.py +0 -0
  188. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/experiments/pi-error-scaling/bin/sample.py +0 -0
  189. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/experiments/pi-error-scaling/lock.json +0 -0
  190. {lab_kit_cli-0.6.0/tests/fixtures/monte-carlo-lab-0.5/ops/missions → lab_kit_cli-0.6.1/tests/fixtures/monte-carlo-lab-0.5/experiments/pi-error-scaling/runs}/.gitkeep +0 -0
  191. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/experiments/pi-error-scaling/runs/20261004-231629/MANIFEST.sha256 +0 -0
  192. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/experiments/pi-error-scaling/runs/20261004-231629/out/estimates.tsv +0 -0
  193. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/experiments/pi-error-scaling/runs/20261004-231629/run.json +0 -0
  194. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/experiments/pi-error-scaling/score.yaml +0 -0
  195. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/lab.yaml +0 -0
  196. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/ops/STATE.md +0 -0
  197. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/ops/missions/2026-10-04-pi-error-scaling.md +0 -0
  198. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/substrate/README.md +0 -0
  199. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/fixtures/monte-carlo-lab-0.5/substrate/estimator.py +0 -0
  200. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/test_budgets.py +0 -0
  201. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/test_checks.py +0 -0
  202. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/test_end_to_end.py +0 -0
  203. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/test_example.py +0 -0
  204. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/test_instrument.py +0 -0
  205. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/test_runs.py +0 -0
  206. {lab_kit_cli-0.6.0 → lab_kit_cli-0.6.1}/tests/test_store.py +0 -0
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.1
4
+
5
+ - `lab-kit migrate` rewrites a run's `config` with the same names it rewrites in its protocol's pinned configuration, so `lab-roster-frozen` holds after the move.
6
+ - The plan-mission skill points `ops/STATE.md` at `missions/`.
7
+
3
8
  ## 0.6.0
4
9
 
5
10
  - One folder per run, outside git. A run is `runs/<experiment>/<YY-MM-DD-HHMM>-r_<4 characters>/` and holds everything it produced. lab-kit writes only `run.json` and `run.log` there; the rest is the experiment's own. `LAB_RUN` names the folder. `LAB_OUT`, `LAB_WORK` and `LAB_RUN_DIR` still work for one release.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: lab-kit-cli
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: A research lab's method and machinery on top of folio: pre-register, lock, run, score, re-derive.
5
5
  Project-URL: Homepage, https://github.com/pierg/lab-kit
6
6
  Project-URL: Issues, https://github.com/pierg/lab-kit/issues
@@ -52,7 +52,7 @@ You plan the mission with the operator, and you stop at their approval. The run-
52
52
  Do not point `ops/STATE.md` at a draft.
53
53
  4. **Show the summary.** Tell the operator, in at most eight lines: the objective, the questions by id, the milestones, the scope, the spend, the stops. End with: "Approve, or tell me what to change." Under a standing budget, when rule 5 lets you approve it yourself, go to step 6 and send the summary as a report instead, ending with what you approved and the budget left.
54
54
  5. **Revise.** Change the draft as the operator asks, and append a dated log line for each revision. Show the summary again. Repeat until the operator approves in their own words.
55
- 6. **Record the approval.** Set `approved:` to who approved and when, for example `"the operator, 2026-10-05"`, or, under a standing budget, `"the commander, 2026-10-05, under budget <name>"`, and set `status: active`. Append "Approved by <who>" to the log. Point `ops/STATE.md` at it: `Active mission: ops/missions/{date}-{slug}.md`, with the next step. Record it: `folio journal add --title "Opened the <slug> mission" --description ".." --body "<objective; where the mission file is>" --kind decision --about <ids it rests on>`. Run `folio index` in the library and `lab-kit check` from the root.
55
+ 6. **Record the approval.** Set `approved:` to who approved and when, for example `"the operator, 2026-10-05"`, or, under a standing budget, `"the commander, 2026-10-05, under budget <name>"`, and set `status: active`. Append "Approved by <who>" to the log. Point `ops/STATE.md` at it: `Active mission: missions/{YY-MM-DD}-m_{slug}.md`, with the next step. Record it: `folio journal add --title "Opened the <slug> mission" --description ".." --body "<objective; where the mission file is>" --kind decision --about <ids it rests on>`. Run `folio index` in the library and `lab-kit check` from the root.
56
56
  7. **Commit and hand over.** Commit the mission file, `ops/STATE.md`, the journal entry and `.folio/`. Tell the operator the mission is approved and that the run-mission skill will carry it out. Do not start it yourself unless they ask you to run it now; then follow run-mission from its start.
57
57
 
58
58
  ## Stops
@@ -0,0 +1,5 @@
1
+ __pycache__/
2
+ # lab-kit: runs on this machine (running, fetched from the store, or being migrated)
3
+ /.lab/running/
4
+ /.lab/fetched/
5
+ /.lab/migrating/
@@ -1,4 +1,4 @@
1
- lab-kit: 0.6.0 # the version this lab is checked with
1
+ lab-kit: 0.6.1 # the version this lab is checked with
2
2
  library: docs # where folio.yaml is; "." for the root
3
3
  front: lab # the front door's id: a project document
4
4
  frozen: [substrate/] # surfaces never edited in place; record each with `lab-kit freeze`
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
5
5
  [project]
6
6
  dynamic = ["readme"]
7
7
  name = "lab-kit-cli"
8
- version = "0.6.0"
8
+ version = "0.6.1"
9
9
  description = "A research lab's method and machinery on top of folio: pre-register, lock, run, score, re-derive."
10
10
  license = "MIT"
11
11
  authors = [{ name = "Piergiuseppe Mallozzi" }]
@@ -52,7 +52,7 @@ You plan the mission with the operator, and you stop at their approval. The run-
52
52
  Do not point `ops/STATE.md` at a draft.
53
53
  4. **Show the summary.** Tell the operator, in at most eight lines: the objective, the questions by id, the milestones, the scope, the spend, the stops. End with: "Approve, or tell me what to change." Under a standing budget, when rule 5 lets you approve it yourself, go to step 6 and send the summary as a report instead, ending with what you approved and the budget left.
54
54
  5. **Revise.** Change the draft as the operator asks, and append a dated log line for each revision. Show the summary again. Repeat until the operator approves in their own words.
55
- 6. **Record the approval.** Set `approved:` to who approved and when, for example `"the operator, 2026-10-05"`, or, under a standing budget, `"the commander, 2026-10-05, under budget <name>"`, and set `status: active`. Append "Approved by <who>" to the log. Point `ops/STATE.md` at it: `Active mission: ops/missions/{date}-{slug}.md`, with the next step. Record it: `folio journal add --title "Opened the <slug> mission" --description ".." --body "<objective; where the mission file is>" --kind decision --about <ids it rests on>`. Run `folio index` in the library and `lab-kit check` from the root.
55
+ 6. **Record the approval.** Set `approved:` to who approved and when, for example `"the operator, 2026-10-05"`, or, under a standing budget, `"the commander, 2026-10-05, under budget <name>"`, and set `status: active`. Append "Approved by <who>" to the log. Point `ops/STATE.md` at it: `Active mission: missions/{YY-MM-DD}-m_{slug}.md`, with the next step. Record it: `folio journal add --title "Opened the <slug> mission" --description ".." --body "<objective; where the mission file is>" --kind decision --about <ids it rests on>`. Run `folio index` in the library and `lab-kit check` from the root.
56
56
  7. **Commit and hand over.** Commit the mission file, `ops/STATE.md`, the journal entry and `.folio/`. Tell the operator the mission is approved and that the run-mission skill will carry it out. Do not start it yourself unless they ask you to run it now; then follow run-mission from its start.
57
57
 
58
58
  ## Stops
@@ -1,3 +1,3 @@
1
1
  """lab-kit: a research lab's method and machinery on top of folio."""
2
2
 
3
- __version__ = "0.6.0"
3
+ __version__ = "0.6.1"
@@ -46,7 +46,7 @@ from .. import __version__, ops, records
46
46
  from .. import protocol as protocol_mod
47
47
  from .. import store as store_mod
48
48
  from ..errors import LabError
49
- from ..lab import EXPERIMENT_ID, RUNS, Lab
49
+ from ..lab import EXPERIMENT_ID, RUNS, Lab, protocol_slug
50
50
  from .experiments import experiment_id
51
51
  from .setup import ignore_runs, install
52
52
 
@@ -311,7 +311,7 @@ def _verify_against(folder: Path, manifest: Path) -> list[str]:
311
311
 
312
312
 
313
313
  def assemble(lab: Lab, run: Run, missions: dict[str, str], locks: dict[str, tuple[str, str]],
314
- stage: Path) -> tuple[Path, dict]:
314
+ stage: Path, configs: dict[str, tuple[object, object]] | None = None) -> tuple[Path, dict]:
315
315
  """Build the run's new folder under `stage`, verified against its old manifests, and seal it."""
316
316
  where = lab.rel(run.folder)
317
317
  dest = stage / run.experiment / run.new_id
@@ -361,6 +361,10 @@ def assemble(lab: Lab, run: Run, missions: dict[str, str], locks: dict[str, tupl
361
361
  mission = data.get("mission")
362
362
  if isinstance(mission, str) and mission in missions:
363
363
  data["mission"] = missions[mission]
364
+ old_new_config = (configs or {}).get(run.experiment)
365
+ if old_new_config is not None and data.get("config") == old_new_config[0]:
366
+ # the configuration is a copy of the protocol's pinned block: it takes that block as rewritten
367
+ data["config"] = old_new_config[1]
364
368
  old_new = locks.get(run.experiment)
365
369
  if old_new and data.get("lock") == old_new[0]:
366
370
  data["lock"] = old_new[1]
@@ -485,6 +489,22 @@ def _new_locks(lab: Lab, plan_: Plan, rewrite) -> dict[str, tuple[str, str, str
485
489
  return out
486
490
 
487
491
 
492
+ def _pinned_configs(lab: Lab, plan_: Plan, rewrite) -> dict[str, tuple[object, object]]:
493
+ """Per experiment (new id): its protocol's pinned configuration before and after the rewrite."""
494
+ out = {}
495
+ for old, new in plan_.experiments.items():
496
+ proto = protocol_mod.find(lab, protocol_slug(new))
497
+ if proto is None:
498
+ continue
499
+ try:
500
+ before = protocol_mod.pinned_config(proto.text(), proto.path)
501
+ after = protocol_mod.pinned_config(rewrite(proto.text())[0], proto.path)
502
+ except LabError:
503
+ continue
504
+ out[new] = (before, after)
505
+ return out
506
+
507
+
488
508
  def _earlier_locks(table: list[tuple[str, str, str]]) -> dict[str, tuple[str, str]]:
489
509
  """Lock hashes an earlier pass took again, per experiment: a late run naming the old one gets the new."""
490
510
  out = {}
@@ -500,6 +520,7 @@ def _apply(lab: Lab, plan_: Plan, table: list[tuple[str, str, str]], rewrite) ->
500
520
  locks = _new_locks(lab, plan_, rewrite)
501
521
  missions = {**{o: n for k, o, n in table if k == "mission"}, **plan_.missions}
502
522
  run_locks = {**_earlier_locks(table), **{k: (v[0], v[1]) for k, v in locks.items()}}
523
+ configs = _pinned_configs(lab, plan_, rewrite)
503
524
  # Phase 1: every run assembled, verified, sealed and put in place before git changes at all.
504
525
  stage = stage_root(lab)
505
526
  stage.mkdir(parents=True, exist_ok=True)
@@ -514,7 +535,7 @@ def _apply(lab: Lab, plan_: Plan, table: list[tuple[str, str, str]], rewrite) ->
514
535
  f"({'; '.join(wrong[:3])}); look at it before migrating again")
515
536
  continue
516
537
  try:
517
- built, data = assemble(lab, run, missions, run_locks, stage)
538
+ built, data = assemble(lab, run, missions, run_locks, stage, configs)
518
539
  _put_in_place(lab, run, built, data)
519
540
  except Exception as exc:
520
541
  raise LabError(f"{exc}\nNothing in git changed; the runs put in place so far are reused when you run "
@@ -79,7 +79,7 @@ def ignore_runs(root: Path) -> list[str]:
79
79
  if not missing:
80
80
  return []
81
81
  block = ("" if not text or text.endswith("\n") else "\n") + \
82
- "# lab-kit: a run's folder while it runs here, and runs fetched from the store\n" + "\n".join(missing) + "\n"
82
+ "# lab-kit: runs on this machine (running, fetched from the store, or being migrated)\n" + "\n".join(missing) + "\n"
83
83
  path.write_text(text + block, encoding="utf-8")
84
84
  return [f"added {', '.join(missing)} to .gitignore"]
85
85
 
@@ -204,3 +204,68 @@ def test_a_rewritten_protocol_is_relocked_and_late_runs_follow(tmp_path, monkeyp
204
204
  _finish(root, folio)
205
205
  code, out = lab_kit("check")
206
206
  assert code == 0, out
207
+
208
+
209
+ def test_a_pinned_configuration_that_names_a_run_is_rewritten_in_both(tmp_path, monkeypatch, lab_kit, folio) -> None:
210
+ root = tmp_path / "lab"
211
+ shutil.copytree(LEGACY, root, symlinks=True)
212
+ protocol = root / "docs/content/protocols/pi-error-scaling.md"
213
+ protocol.write_text(protocol.read_text().replace(
214
+ "language: python 3, standard library only",
215
+ f"language: python 3, standard library only\nprior: {OLD_RUN}/out/estimates.tsv", 1))
216
+ from lab_kit import protocol as protocol_mod
217
+ lock_path = root / "experiments/pi-error-scaling/lock.json"
218
+ lock = json.loads(lock_path.read_text())
219
+ sha = protocol_mod.hash_text(protocol.read_text())
220
+ lock["sha256"] = sha
221
+ lock_path.write_text(json.dumps(lock, indent=2) + "\n")
222
+ run_json = root / OLD_RUN / "run.json"
223
+ data = json.loads(run_json.read_text())
224
+ data["lock"] = sha
225
+ data["config"] = {"language": data["config"]["language"], "prior": f"{OLD_RUN}/out/estimates.tsv",
226
+ **{k: v for k, v in data["config"].items() if k != "language"}}
227
+ run_json.write_text(json.dumps(data, indent=2) + "\n")
228
+ score = root / "experiments/pi-error-scaling/score.yaml"
229
+ text = score.read_text()
230
+ score.write_text(text.replace(text.split("lock: ")[1].split("\n")[0], sha, 1))
231
+ init_repo(root)
232
+ commit(root, "the lab before 0.6.0")
233
+ monkeypatch.chdir(root)
234
+ assert lab_kit("check", "--only", "lab-roster-frozen")[0] == 0
235
+ code, out = lab_kit("migrate", "--apply")
236
+ assert code == 0, out
237
+ [run] = records.runs(load(root))
238
+ assert run.data["config"]["prior"] == f"runs/{EXP}/{run.run_id}/out/estimates.tsv"
239
+ _finish(root, folio)
240
+ code, out = lab_kit("check")
241
+ assert code == 0, out
242
+
243
+
244
+ def test_a_block_scalar_in_the_pinned_configuration_stays_equal(tmp_path, monkeypatch, lab_kit, folio) -> None:
245
+ root = tmp_path / "lab"
246
+ shutil.copytree(LEGACY, root, symlinks=True)
247
+ protocol = root / "docs/content/protocols/pi-error-scaling.md"
248
+ note = f"notes: |\n {OLD_RUN}/out\n see \"20261004-231629\"\n"
249
+ protocol.write_text(protocol.read_text().replace(
250
+ "language: python 3, standard library only\n", "language: python 3, standard library only\n" + note, 1))
251
+ from lab_kit import protocol as protocol_mod
252
+ lock_path = root / "experiments/pi-error-scaling/lock.json"
253
+ lock = json.loads(lock_path.read_text())
254
+ sha = protocol_mod.hash_text(protocol.read_text())
255
+ lock["sha256"] = sha
256
+ lock_path.write_text(json.dumps(lock, indent=2) + "\n")
257
+ run_json = root / OLD_RUN / "run.json"
258
+ data = json.loads(run_json.read_text())
259
+ data["lock"] = sha
260
+ data["config"] = protocol_mod.pinned_config(protocol.read_text(), "p")
261
+ run_json.write_text(json.dumps(data, indent=2) + "\n")
262
+ score = root / "experiments/pi-error-scaling/score.yaml"
263
+ text = score.read_text()
264
+ score.write_text(text.replace(text.split("lock: ")[1].split("\n")[0], sha, 1))
265
+ init_repo(root)
266
+ commit(root, "the lab before 0.6.0")
267
+ monkeypatch.chdir(root)
268
+ assert lab_kit("migrate", "--apply")[0] == 0
269
+ _finish(root, folio)
270
+ code, out = lab_kit("check")
271
+ assert code == 0, out
@@ -1,4 +0,0 @@
1
- __pycache__/
2
- # lab-kit: a run's folder while it runs here, and runs fetched from the store
3
- /.lab/running/
4
- /.lab/fetched/
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes