GUARDRAILS.md
Rules for human contributors and AI agents. Complements AGENTS.md (workflows) and CONTRIBUTING.md (PR process).
Maintainer may widen scope per task.
.env values, private URLs, session cookies. Use .env.example with placeholders.rename MCP tool with dry_run: true first, review graph vs text_search edits. No separate gitnexus rename CLI exists.impact (upstream) for functions/classes/methods others call. Do not ignore HIGH/CRITICAL without maintainer sign-off.detect_changes before commit — confirm diffs map to expected symbols/processes when the graph is available.npx gitnexus analyze now preserves any embeddings recorded in .gitnexus/meta.json (the previous behavior wiped them). Use --embeddings to also generate vectors for new/changed nodes; use --drop-embeddings only when an explicit wipe is intended (e.g., model swap).Format: Trigger → Instruction → Reason. Append new Signs when the same mistake repeats.
HEAD, or search doesn't match latest commit.npx gitnexus analyze (plus --embeddings if used).stats.embeddings in meta.json is 0 after refresh.npx gitnexus analyze --embeddings to regenerate. Check the analyze log for a Warning: could not load cached embeddings line — if present, the cache restore failed (corrupt DB / schema mismatch) and the rebuild had nothing to preserve. If you intentionally passed --drop-embeddings, this is expected.analyze preserves prior vectors by re-inserting them after the rebuild; the only ways to end up at zero are an explicit --drop-embeddings, a cache-load failure (now logged), or a model/dimension change that invalidates the cache.npx gitnexus analyze in the target repo; verify npx gitnexus list shows it.~/.gitnexus/registry.json, populated by analyze.list_repos, then pass repo on subsequent tools..gitnexus/lbug while MCP and analyze both run.package.json.package.json changes; run tests and CI after lockfile updates.Stop and ask a human maintainer when:
clean, forced migrations, schema changes).