Use when working with architectural tenets - project constraints that require human judgment to verify...
Shared reference for the governor plugin. The three user-invocable skills (governor-bootstrap, governor-manage, governor-verify) load this for the tenet format spec and shared vocabulary.
Tenets are architectural constraints that require human judgment to verify. They are not linting rules.
| Tenets | Linting Rules |
|---|---|
| Architectural boundaries | Code style |
| "Domain must not import infrastructure" | "Use 2-space indentation" |
| Require judgment to verify | Machine-checkable |
| Few (3-7 per project) | Many (hundreds) |
| Project-specific decisions | Industry conventions |
## Tenets
CRITICAL: These tenets are MANDATORY and MUST be followed in all work on this codebase.
### T1. <Name>
<Description: 2-4 sentences explaining the constraint and rationale>
**Severity:** <critical | high | medium | low>
### T2. <Name>
<Description>
**Severity:** high
## Tenet Exceptions
Approved exceptions. Each must have justification.
| File | Tenet | Reason | Approved |
|------|-------|--------|----------|
| `src/legacy/adapter.go` | T1 | Legacy integration | 2024-01-15 |
No evidence section. Evidence is gathered at validation time and shown to the user for review, but never persisted. Persisted evidence rots quickly and provides little benefit — the codebase is the source of truth.
| Level | Meaning | Default verification behavior |
|---|---|---|
| critical | Breaks system invariants | Always fail |
| high | Causes significant tech debt | Fail by default |
| medium | Reduces code quality | Warn by default |
| low | Guideline, not requirement | Info only |
Default if severity is omitted: high.
Table (AGENTS.md): See format above.
Inline (in code):
// governor:ignore T1 - Legacy adapter, tracking in #123
Language-specific comment syntax:
// governor:ignore T1 - reason# governor:ignore T1 - reason<!-- governor:ignore T1 - reason -->/* governor:ignore T1 - reason */Validation (bootstrap/manage): "Is this proposed tenet grounded in reality?"
Verification (verify): "Does this code follow the existing tenets?"
| Score | Criteria | Example |
|---|---|---|
| 90-100 | Explicit violation | Forbidden import present |
| 70-89 | Likely violation | Strong pattern match |
| 50-69 | Possible violation | Ambiguous code |
| 1-49 | Uncertain | Probably false positive |
When parsing AGENTS.md:
## Tenets heading### T<N>. <Name> headers**Severity:** line = severity (default: high)## Tenet Exceptions headingPre-flight check (all operations):
test -f AGENTS.md && grep -q "^## Tenets" AGENTS.md && echo "ok" || echo "missing"
If missing, direct the user to run the bootstrap skill.