This repository is intended to be public. Treat every diff, prompt excerpt, fixture, example, log line, and comment as publishable.
- Use a dedicated worktree. Never edit, build, test, commit, or push from the
shared repository root. Start from fresh
origin/mainunless the user gives a different base. - Protect private information. Do not commit or quote secrets, tokens, private forge URLs, local filesystem paths, account IDs, private identities, or environment-specific operational details. Keep examples generic.
- Keep the project dependency-light. This is a small Go service with no external Go dependencies. Do not add one unless it clearly improves correctness or security.
- Validate behavior before declaring done. For code changes run
make lint test build. Documentation-only changes do not need validation unless a docs-specific check exists. - Use independent review for code changes. Before commit/push, run a rubber-duck or code-review pass over the diff. Security-sensitive changes also need a security-focused review.
- Clean up worktrees. Remove task worktrees and local branches after merge or abandonment.
SLUG=<short-task-slug>
BRANCH=<branch-name>
WT="<path-outside-the-shared-repo>/$SLUG"
git fetch origin main --quiet
git worktree add -b "$BRANCH" "$WT" origin/main
cd "$WT"If the user explicitly asks to amend the existing single commit for a pre-publication cleanup, it is acceptable to amend and force-push that commit. Otherwise use a normal branch and pull request.
cmd/shunt— entrypoint, environment configuration, health endpointinternal/forge— Forgejo/Gitea REST API clientinternal/gitops— staging-branch git plumbinginternal/engine— reconcile loop, rollup batching, bisectioninternal/manager— topic discovery and one engine per managed repodocs/design.md— algorithm and Forgejo/Gitea behavior notesexamples/— deploy and gate-workflow examples with placeholders only
make lint test buildUse narrower commands while iterating (GOTOOLCHAIN=go1.25.12 go test ./internal/engine, GOTOOLCHAIN=go1.25.12 go test ./...,
GOTOOLCHAIN=go1.25.12 go vet ./...), but finish with the full command above for
code changes.
Before committing, inspect the diff for:
- private hostnames, usernames, absolute paths, tokens, IDs, logs, or screenshots
- generated or placeholder text that reads like filler
- examples that could encourage committing secrets
- claims that exceed the tested behavior
- broad error swallowing around auth, git pushes, merges, or branch protection
Prefer precise, boring copy over hype. If behavior is unverified, say so plainly in the docs or leave it on the roadmap.