| title | L9 Governance | ||||||
|---|---|---|---|---|---|---|---|
| version | 2.0.0 | ||||||
| created | 2025-01-27 | ||||||
| updated | 2026-07-19 | ||||||
| owner | Igor Beylin | ||||||
| source | Post-Suite-6, Graphiti-native governance | ||||||
| tags |
|
||||||
| domain | system-governance | ||||||
| type | documentation | ||||||
| production_ready | true |
Centralized, IDE-agnostic governance system for L9/Quantum-L9 repos. The clone at
~/.cursor-governance/ is the governance root β there is no nested
GlobalCommands/ subfolder. Every coding workspace exposes it through a single
symlink: .cursor-commands β ~/.cursor-governance/.
See CANONICAL_LAW.md for the authoritative, binding contract this README
summarizes, and AGENTS.md for exactly how a session activates this
governance layer.
Activation is automatic β one hook, no manual step:
ops/hooks/session_start_bootstrap.sh β installed at
~/.cursor/hooks/session-start-bootstrap.sh β registered in
~/.cursor/hooks.json under sessionStart. It syncs this clone, reconciles
the declared Claude Code plugin set (ops/scripts/setup_claude_code_plugins.sh),
reconciles the IDE profile (environment/ide/ β Biome/Ruff/Pyright extensions plus
a managed-key merge into .vscode/settings.json), auto-wires symlinks, checks Graphiti
(activated and round-trip verified as of 2026-07-27 β see AGENTS.md Β§2.3), and reads
memory-bank/activeContext.md. See AGENTS.md Β§2
for the full activation contract and manual/repair commands. start-session.yaml
(the old YAML "protocol") was retired 2026-07-19 β the .sh hook above is now
the sole activation mechanism.
To trigger that same pipeline by hand β synchronously, with visible output:
make -C "$HOME/.cursor-governance" start WS="$(pwd)"~/.cursor-governance/ (this repo)
βββ skills/ # l9-* agent skills (SKILL.md per skill)
βββ commands/ # Slash commands (/gmp, /plan, /end-session, ...)
βββ rules/ # Global .mdc rules, symlinked as @.cursor-commands/rules
βββ workflows/ # DAG definitions + executors
βββ ops/
β βββ scripts/ # Active automation (setup, validation, backup, sync)
β βββ scripts/_archived/ # Retired pre-Graphiti / Suite-6 scripts (do not depend on)
β βββ hooks/ # sessionStart / sessionEnd hooks
β βββ graphiti/ # Graphiti memory client + activation runbooks
β βββ logs/ # Runtime logs
βββ intelligence/ # Active signal corpus β chat exports, distillation, mining
βββ environment/ # Runtime environment adapters (IDE-neutral policy + per-target renderers)
β βββ ide/ # Editor profile: policy.json + render.cursor.json (Cursor/VS Code)
β βββ claude-code/ # Claude Code environment (CLI Β· Web Β· Mobile) β committed .claude/ + account env
βββ profiles/ # DEPRECATED β content ported into skills/ + rules/; pending retirement
βββ learning/ # Curated lessons, repeated-mistakes, quick-fixes
βββ protocols/ # GMP protocol contracts and templates
βββ security/ # Security governance docs
βββ integrity/ # Integrity verification docs/scripts
βββ pipeline/ # Pipeline orchestration & validation docs
βββ reports/ # GMP execution reports
βββ C_GOV_FILES/ # Legacy duplicate tree β pending removal (see hygiene PRs)
βββ ORG_INVARIANTS.yaml # Canonical Quantum-L9 org policy
βββ CANONICAL_LAW.md # Authoritative governance contract (read first)
βββ AGENTS.md # Activation contract + agent operating rules (read second)
βββ README.md # This file
execution-governance/, foundation/, operations/, environment/,
telemetry/, key components/, prompts/, current_work/, and logs/
hold supporting docs, in-progress notes, and legacy scaffolding; treat
CANONICAL_LAW.md and skills/*/SKILL.md as the sources of truth over any
directory listing, including this one.
.cursor-commands/β the sole symlink target in every coding repo@.cursor-commands/skills/...,@.cursor-commands/rules/...,@.cursor-commands/commands/...
~/.cursor-governance
CANONICAL_LAW.mdβ SSOT, symlink law, memory layer, anti-patternsAGENTS.mdβ activation contract, change policy, agent operating rulesORG_INVARIANTS.yamlβ canonical Quantum-L9 org policy
skills/l9-gmp-protocol/SKILL.mdβ locked phase-0β6 executionskills/l9-structured-reasoning/SKILL.mdβ planning/debugging reasoning stackskills/l9-graphiti-memory/SKILL.mdβ Graphiti memory wiring
learning/repeated-mistakes.mdβ critical mistakes to never repeatlearning/quick-fixes.mdβ fast solution patterns
ops/scripts/setup_workspace_symlinks.shβ install symlinks in a workspaceops/scripts/validate_governance_symlinks.shβ verify symlink wiringops/scripts/backup_to_github.shβ commit + push SSOT to GitHubops/scripts/backup_gate.shβ gate the sessionEnd backup (reason filter, debounce, activity guard)
@.cursor-commands/learning/repeated-mistakes.md
@.cursor-commands/skills/l9-structured-reasoning/SKILL.md
@.cursor-commands/rules/00-global.mdcbash .cursor-commands/ops/scripts/setup_workspace_symlinks.sh
bash .cursor-commands/ops/scripts/validate_governance_symlinks.shOrigin: Quantum-L9/Cursor-Governance (GitHub is the SSOT remote; this
clone at ~/.cursor-governance/ is the SSOT working copy β see
CANONICAL_LAW.md Β§1, Β§5).
Last Updated: 2026-07-19 Version: 2.0.0
environment/program-execution/ contains the sealed Program Execution core,
replaceable execution adapters, conformance contracts, routing policy, and bridges
to existing Cursor-Governance runtimes. Mutable program state remains outside Git
under $HOME/.l9/programs/.