GUARDRAILS.md
Rules for human contributors and AI agents working on this codebase or publishing artifacts. These complement AGENTS.md / CLAUDE.md (which focus on GitNexus-in-GitNexus workflows).
When automating changes in this repository, treat scope as least privilege:
Adjust explicitly if the maintainer defines a different scope for a task.
.env with real values, private URLs, or session cookies. Use .env.example with placeholders only.rename MCP tool with dry_run: true first, then review graph vs text_search edits. (There is no separate gitnexus rename CLI; renaming goes through MCP or editor integration.)impact (upstream) for functions/classes/methods others call; do not ignore HIGH / CRITICAL risk without maintainer sign-off.detect_changes before commit — confirm diffs map to expected symbols/processes when the graph is available..gitnexus/meta.json shows embeddings, run npx gitnexus analyze --embeddings when refreshing the index; plain analyze can drop them.Use this format: Trigger → Instruction → Reason.
Append new Signs here when the same mistake repeats (e.g. CI broken twice the same way).
HEAD, or code search doesn’t match latest commit.npx gitnexus analyze from the repo root (plus --embeddings if the project used them).stats.embeddings in .gitnexus/meta.json is 0 after a refresh.npx gitnexus analyze --embeddings and confirm meta.json reflects stored embeddings.npx gitnexus analyze in the target repository; verify npx gitnexus list shows it.~/.gitnexus/registry.json, populated by analyze.list_repos, then pass repo on subsequent tools (or use per-workspace MCP config)..gitnexus/lbug while MCP and analyze both run.package.json.package.json; run tests and CI after lockfile updates.Stop and ask a human maintainer when:
clean, forced migrations, schema changes).