Govern Agentic OS
Govern the repository without creating a second source of truth. Treat Linear Documents as durable project canon, repository files as executable or offline artifacts, and memory systems as pointer/derived-index layers.
Select one mode
| Mode |
Default authority |
Purpose |
audit |
Read-only |
Collect evidence and classify drift. |
plan |
Read-only |
Propose a gated remediation plan. |
execute |
Mutating, explicitly authorized |
Apply only an approved plan. |
check |
Read-only |
Run deterministic coherence checks. |
handoff |
Read-only by default |
Compact state into links, evidence, and next actions. |
If the user does not select a mode, infer it from the request. Never infer authorization for execute from an audit, diagnosis, review, or plan request.
Load only the needed context
- Read governance-contract.md for every mode.
- Read audit-protocol.md for
audit, plan, or repo-wide execute work.
- Read
.config/agentic-os-governance.json when it exists. Treat it as the machine-readable map of Linear IDs, permitted mirrors, exclusions, and phase invariants; do not hard-code those IDs elsewhere.
- Read the relevant Linear Document or issue before judging its local projection.
- Use memory/Graphify/OpenWiki only to discover pointers. Verify every material claim at its source.
Apply the safe workflow
Audit
- State the scope and exclusions before reading files.
- Read source files semantically and generated/vendor artifacts mechanically.
- Inspect nested repositories for architecture, documentation, integration, and repository health; deep-review code only when evidence reveals drift or risk.
- Record each finding with severity, source, observed state, expected authority, evidence, and proposed disposition.
- Correct nothing. Publish findings to Linear only when the user explicitly authorizes the write.
Never read 01_Journal/, 03_Areas/, 04_Resources/, secret-like paths, credentials, tokens, or local environment files during this workflow.
Plan
- Start from audit evidence, not memory summaries.
- Preserve the authority split in the governance contract.
- Group work into small phases with one verifiable gate per phase.
- Correct P0/P1 findings in execution; route P2/P3 findings to prioritized Linear backlog.
- Show exact Linear and filesystem mutation targets. Do not apply the plan.
Execute
- Require an approved plan and resolve its exact targets.
- Re-read each target immediately before mutation.
- Apply the smallest coherent change; never auto-pull or auto-fix unrelated drift.
- Keep Linear Documents canonical, issues as change records, and local mirrors generated or explicitly code-adjacent.
- Run proportional tests and
check before closing work.
- Consolidate factual evidence in the relevant issue body only after verification. Do not create a parallel implementation log in comments.
Check
Run the single repository checker:
npm run agentic-os:check
npm run agentic-os:check -- --live
npm run agentic-os:check -- --json
Local mode is the offline default. It validates the governance config, generated-projection checksums, phase metadata, package/script safety, intention invariants, and ADK mirrors without reading secrets or making network calls. --live adds read-only Linear Document reachability and requires LINEAR_API_KEY; runtime tooling remains an explicit npm run tooling:check because it crosses into user-home runtime configuration. Neither mode writes or pulls. Interpret exit codes as:
0: checks passed; warnings may remain.
1: coherence drift.
2: invalid invocation or missing live precondition.
Handoff
- Put the handoff in the operating system's temporary directory, not the repository.
- Reference Linear Documents, issues, commits, diffs, and files instead of copying them.
- Include scope, verified state, remaining gates, exact next command, and suggested skills.
- Redact secrets and personal information.
- Update Linear only with explicit authorization.
Enforce the session contract
At session start, run local check and report drift without correcting it. Open the applicable Linear Document before planning or editing.
At session close, run local and live checks when authentication is available, update the relevant Linear issue body with implementation evidence, then prepare a pointer-based handoff. Comments are for exceptional human discussion, not canonical status or evidence. Never mark an issue Done while a required live check fails.
After any change to .claude/commands/, .claude/skills/, or .agents/skills/, follow the repository's ADK sync instructions. Do not run sync merely by invoking this skill.
Keep outputs English-ready
Write current project narrative in Spanish. Use English for filenames, command names, JSON keys, stable identifiers, and contract headings. Do not maintain parallel translations. Defer full English migration, privacy review, link review, and licensing to the explicit open-source publication gate.
1---2name: govern-agentic-os3description: Audit, plan, execute, check, and hand off governance work for this Agentic OS/Claudesidian repository. Use when reconciling the repository with Linear Documents, auditing documentation or architecture, validating phase structure or historical-issue absorption, fixing cross-session drift, deciding where documentation belongs, or preparing an Agentic OS handoff.4---56# Govern Agentic OS78Govern the repository without creating a second source of truth. Treat Linear Documents as durable project canon, repository files as executable or offline artifacts, and memory systems as pointer/derived-index layers.910## Select one mode1112| Mode | Default authority | Purpose |13|---|---|---|14| `audit` | Read-only | Collect evidence and classify drift. |15| `plan` | Read-only | Propose a gated remediation plan. |16| `execute` | Mutating, explicitly authorized | Apply only an approved plan. |17| `check` | Read-only | Run deterministic coherence checks. |18| `handoff` | Read-only by default | Compact state into links, evidence, and next actions. |1920If the user does not select a mode, infer it from the request. Never infer authorization for `execute` from an audit, diagnosis, review, or plan request.2122## Load only the needed context23241. Read [governance-contract.md](references/governance-contract.md) for every mode.252. Read [audit-protocol.md](references/audit-protocol.md) for `audit`, `plan`, or repo-wide `execute` work.263. Read `.config/agentic-os-governance.json` when it exists. Treat it as the machine-readable map of Linear IDs, permitted mirrors, exclusions, and phase invariants; do not hard-code those IDs elsewhere.274. Read the relevant Linear Document or issue before judging its local projection.285. Use memory/Graphify/OpenWiki only to discover pointers. Verify every material claim at its source.2930## Apply the safe workflow3132### Audit33341. State the scope and exclusions before reading files.352. Read source files semantically and generated/vendor artifacts mechanically.363. Inspect nested repositories for architecture, documentation, integration, and repository health; deep-review code only when evidence reveals drift or risk.374. Record each finding with severity, source, observed state, expected authority, evidence, and proposed disposition.385. Correct nothing. Publish findings to Linear only when the user explicitly authorizes the write.3940Never read `01_Journal/`, `03_Areas/`, `04_Resources/`, secret-like paths, credentials, tokens, or local environment files during this workflow.4142### Plan43441. Start from audit evidence, not memory summaries.452. Preserve the authority split in the governance contract.463. Group work into small phases with one verifiable gate per phase.474. Correct P0/P1 findings in execution; route P2/P3 findings to prioritized Linear backlog.485. Show exact Linear and filesystem mutation targets. Do not apply the plan.4950### Execute51521. Require an approved plan and resolve its exact targets.532. Re-read each target immediately before mutation.543. Apply the smallest coherent change; never auto-pull or auto-fix unrelated drift.554. Keep Linear Documents canonical, issues as change records, and local mirrors generated or explicitly code-adjacent.565. Run proportional tests and `check` before closing work.576. Consolidate factual evidence in the relevant issue body only after verification. Do not create a parallel implementation log in comments.5859### Check6061Run the single repository checker:6263```bash64npm run agentic-os:check65npm run agentic-os:check -- --live66npm run agentic-os:check -- --json67```6869Local mode is the offline default. It validates the governance config, generated-projection checksums, phase metadata, package/script safety, intention invariants, and ADK mirrors without reading secrets or making network calls. `--live` adds read-only Linear Document reachability and requires `LINEAR_API_KEY`; runtime tooling remains an explicit `npm run tooling:check` because it crosses into user-home runtime configuration. Neither mode writes or pulls. Interpret exit codes as:7071- `0`: checks passed; warnings may remain.72- `1`: coherence drift.73- `2`: invalid invocation or missing live precondition.7475### Handoff76771. Put the handoff in the operating system's temporary directory, not the repository.782. Reference Linear Documents, issues, commits, diffs, and files instead of copying them.793. Include scope, verified state, remaining gates, exact next command, and suggested skills.804. Redact secrets and personal information.815. Update Linear only with explicit authorization.8283## Enforce the session contract8485At session start, run local check and report drift without correcting it. Open the applicable Linear Document before planning or editing.8687At session close, run local and live checks when authentication is available, update the relevant Linear issue body with implementation evidence, then prepare a pointer-based handoff. Comments are for exceptional human discussion, not canonical status or evidence. Never mark an issue Done while a required live check fails.8889After any change to `.claude/commands/`, `.claude/skills/`, or `.agents/skills/`, follow the repository's ADK sync instructions. Do not run sync merely by invoking this skill.9091## Keep outputs English-ready9293Write current project narrative in Spanish. Use English for filenames, command names, JSON keys, stable identifiers, and contract headings. Do not maintain parallel translations. Defer full English migration, privacy review, link review, and licensing to the explicit open-source publication gate.