+5
−7
+2
−2
+26
−31
Loading
Stanford GitLab is not approved for High Risk Data and Protected Health Information (PHI). For more information, see FAQ.
Why: keeping OTICA_VERSION in sync across many consumer repos was real
toil — the version string was duplicated in every project's env.mk, so
"get everyone current" meant editing N files. The pin was also only ever
partly real: all consumers share one ~/.otica checkout, so two projects
could never be on different framework versions at the same time anyway.
New model: ~/.otica is a plain git checkout that only moves when someone
runs `make update-otica`. It then stays on that ref (a sticky checkout)
until the next update — there is no per-build re-checkout and no
per-project OTICA_VERSION variable.
make update-otica # -> newest v* release tag
make update-otica VERSION=<ref> # -> a specific tag/branch/sha, sticks
What changed:
- otica-update.sh: no <ref> now resolves the newest v* tag (falls back to
main only if the repo has no releases); existing branch-ff / tag-detached
logic unchanged.
- help.mk: removed the OTICA_VERSION default; update-otica passes VERSION=;
`make help` prints "OTICA checked out: <ref>" instead of OTICA_VERSION=.
- otica-upgrade-check.sh: one "release available" notice for any
behind-latest state, pointing at `make update-otica` /
`make update-otica VERSION=<ref>`; silent only when on latest.
- envs/otica-env.mk: dropped the pin block (kept OTICA_REPO / OTICA_DIR).
- Docs (README, CLAUDE.md, GUIDE, technical reference, CONTRIBUTING) and
the agentic docs/scripts: rewrote the pin-via-variable + per-build
re-checkout narrative to the sticky-checkout model. The README
integration snippet is now clone-if-missing only, matching what the
generator skills already emit.
Note: generator skills (otica-new-project, otica-migrate-*) already emit
clone-if-missing with no OTICA_VERSION, so they needed no change. Existing
consumer Makefiles still carrying the old `git checkout ${OTICA_VERSION}`
re-assert line keep their behavior until hand-edited.
Changelog: changed
Co-Authored-By:
Claude Opus 4.8 <noreply@anthropic.com>