This repository is SovTech Git, a fork of GitWorkshop
by DanConwayDev (MIT). It must keep taking upstream updates cheaply, so almost
every rule here protects mergeability. Read SOVTECH.md for the full picture.
The implementation plan lives in Cameron's
~/.claude/plans/i-want-to-fork-streamed-ritchie.md.
- Put SovTech code in new paths only:
src/sovtech/**,ci/sovtech/**,SOVTECH.md,NOTICE.md,CHANGELOG.sovtech.md,.gitlab-ci.yml. - Edit an upstream file only at a seam listed in
ci/sovtech/touched-upstream.txt, within its line budget. The gate fails on any other upstream change. - Never edit
CHANGELOG.md,AGENTS.md,src/AppRouter.tsx,src/pages/repo/*,src/pages/PRPage.tsx,src/pages/Settings.tsx,src/pages/Dashboard.tsx,src/services/nostr.tsorsrc/lib/nip34.ts. They change almost every week upstream. - Never rename functional identifiers: the NIP-78 d-tags
(
gitworkshop-repo-selections-v1,git-notifications-state,git-notifications-nsec), the IndexedDB names, thegitworkshop:*localStorage keys,gitworkshop-reload,gitworkshop/namecoin-nip05,BUZZ_SOFTWARE_URL, or the Android namespace. Renaming breaks interop and orphans users' data. - Paths in
ci/sovtech/fork-deleted.txtstay deleted; the sync script re-deletes them.
AGENTS.md is upstream's file. Use it as a code-style and architecture
reference only. Its release, CHANGELOG, MCP, auto-commit and pre-commit
instructions do not apply here. Where it conflicts with this file, this file
wins.
- Never run
pnpm install,pnpm test,pnpm devor any upstream script on the laptop. Dependency install scripts and upstream code run only in the fresh-VM GitLab CI runners. Preview CI-builtdistartifacts with a static server instead. - Laptop tooling that is not upstream code is fine:
git,gitleaks,shellcheck,node --check, Python scripts underci/sovtech/. ci/sovtech/stays bash and Python 3 standard library only, so it can be checked here withbash -n,shellcheckand a bytecode-free parse (python3 -B -c 'import ast,sys; [ast.parse(open(f).read(), f) for f in sys.argv[1:]]' ci/sovtech/*.py;py_compilewould write__pycache__, which the gate refuses). Run its Python scripts aspython3 -I; they refuse to run otherwise.
- Commit as
sovITxyz <git@sovit.xyz>(set locally). Merge commits pushed to GitHub or ngit aresovtech <git@sovit.xyz>: usegit -c user.name=sovtech -c user.email=git@sovit.xyz merge …, then checkgit log -1 --format='%an <%ae>'. - No AI attribution in commits, MR text or files.
- Upstream commits are Dan's history: never rewrite them.
- Run
git statusimmediately before every commit.
mainis push-protected; every change is an MR. The project is fast-forward only with squash disabled, so squash feature branches locally before pushing.- Merge only through the API, pinned to the SHA the gate passed:
glab api -X PUT projects/88/merge_requests/<iid>/merge -f sha=<sha>. - Never use the web UI's Merge, Rebase, Apply suggestion, Web IDE, Revert or Cherry-pick buttons: they create commits authored by the GitLab user.
- Upstream-sync MRs are merge commits: never squash them, never rebase
them. If
mainmoved, regenerate the sync branch.
- Never push to the
upstreamremote (Dan's repository). - Never run
ngit initfrom this checkout: it rewritesoriginand signs every ref it sees. Announcements run from a throwaway clone with noorigin. - Only
mainandsovtech-v*tags go to thenostrremote. - Never list git config without
--name-only.