from datetime import date
from spotregen.gui.model import context_save_path
print(context_save_path("/work/demo", "core.calc", date(2026, 10, 11)))/work/demo/regen/runs/2026-10-11-core.calc-context.md
Where Save puts the context bundle by default: regen/runs/<date>-<unit>-context.md.
An existing file gets the suffix -2, -3 and so on before .md.
| Name | Type | Description | Default |
|---|---|---|---|
| root | Path | str | The repository root. | required |
| unit | str | The unit name. | required |
| today | date | None | The date. Defaults to today. | None |
| Name | Type | Description |
|---|---|---|
| Path | Path | A file that does not exist yet. |