Workspace template guide¶
The workspace template creates the private research record around a methodology repository: theory, literature reviews, baseline notes, experiment configurations, result placeholders, presentations, advisor logs, and the project's dataset registry.
Generate and update¶
cruft create https://github.com/kaustubhharapanahalli/research-foundry --directory workspace
From the generated repository:
cruft check
cruft update
make template-check
cruft check and make template-check report whether the template has moved on;
cruft update brings its changes into the generated repository for review.
Check a workspace's layout¶
Run make layout-check in a generated workspace to compare its paths with the
shipped template contract. It is read-only and is not part of make ci; the
target uses uvx and may need network access. A path in backticks in the
## Local rules section of AGENTS.md counts as an addition. A required path
that moved or was dropped needs an explicit rule:
- Moved: `advisor-logs/` to `meetings/`, because meeting notes live elsewhere.
- Dropped: `baselines/`, because this workspace has no baselines.
research-foundry layout <workspace-path> runs the same check from anywhere.
The command exits 0 when the layout matches, 1 when it reports findings, and
2 when the repository is not recognized as a workspace. See
ADR 0012 for the path contract.
make layout-check needs research-foundry 0.2.0 or later. Until 0.2.0 is
released, uv stops with "no solution" rather than running an older release
that has no layout command. The contract and the checker are recorded in
the workspace path contract.
Questions and output¶
Where workspace/cookiecutter.json has no custom prompt, Cookiecutter displays
the key shown in backticks. A value in braces is rendered from an earlier answer.
| Key | Prompt | Choices | Default | What the answer produces |
|---|---|---|---|---|
project_name |
Project name, as people write it | Text | My Project |
Human-readable name in the README and local guidance. |
project_slug |
Project slug (the board label and session names use it) | Text | {project_name in lowercase with spaces replaced by hyphens} |
Stable project identifier in generated guidance and metadata. |
repo_base |
Repository base name (may differ from the slug) | Text | {project_slug} |
Base used to derive the workspace repository name. |
repo_name |
repo_name |
Text | {repo_base}-workspace |
Name of the generated root directory and project metadata. |
description |
description |
Text | Research notes, theory, literature reviews and experiment configs. |
Description in the README and pyproject.toml. |
python_version |
python_version |
Text | 3.14 |
Writes .python-version and selects the development interpreter; support still begins at Python 3.12. |
github_owner |
github_owner |
Text | your-github-user |
Repository ownership references in generated guidance. |
The internal _python_floor key fixes the supported floor at 3.12, and
_template_kind records workspace; neither is a question.
Every valid answer set produces the same tree: shared editor, Git, pre-commit,
continuous integration, and Make files; datasets/registry.yaml;
advisor-logs/, baselines/, experiments/configs/, lit-reviews/,
methodology/theory/, presentations/, and results/; and the workspace layout
architectural decision. The template has no optional directories to remove.
Deck masters in presentations/ are tracked through Git LFS; install Git LFS,
then run make install in the generated workspace to set it up.
Moving an existing workspace's decks to Git LFS¶
A workspace made before deck masters moved to Git LFS gets the LFS rules in
.gitattributes from cruft update. Install Git LFS and run make install,
which runs git lfs install --local. The rules cover every .pptx and
.potx in the repository, not only presentations/. A deck committed before
the rules, anywhere in the repository, is still an ordinary Git file, and
git status shows it as modified. Start from a clean working tree, because
git add --renormalize . also stages any other change to a tracked file, then
convert every such deck in one new commit:
git add --renormalize .
git commit -m "Track deck masters with Git LFS"
Earlier commits are not rewritten, so the old copies stay in history. Removing them from history means rewriting every commit and every collaborator re-cloning, which is a separate decision from the update.
Refused combinations¶
The pre-generation hook rejects a python_version below 3.12 with:
python_version must be 3.12 or newer. No other combination is refused.