Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

184 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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
governance
skills
commands
rules
ops
graphiti
domain system-governance
type documentation
production_ready true

L9 Governance

🎯 Purpose

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 (TL;DR)

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)"

πŸ“ Directory Structure

~/.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.

πŸ”— Access Methods

In Cursor workspaces

  • .cursor-commands/ β€” the sole symlink target in every coding repo
  • @.cursor-commands/skills/..., @.cursor-commands/rules/..., @.cursor-commands/commands/...

Direct path

  • ~/.cursor-governance

πŸ“‹ Key Files

Governance contract

Skills

Learning

Operations

πŸš€ Usage

Reference in prompts

@.cursor-commands/learning/repeated-mistakes.md
@.cursor-commands/skills/l9-structured-reasoning/SKILL.md
@.cursor-commands/rules/00-global.mdc

Wire a new workspace

bash .cursor-commands/ops/scripts/setup_workspace_symlinks.sh
bash .cursor-commands/ops/scripts/validate_governance_symlinks.sh

πŸ“Š Status

Origin: 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

Program Execution

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/.

About

Cursor-Governance

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages