CodeGuard security rules

Project CodeGuard is an optional companion plugin of security rules. It adds checks to the kit's security review and never replaces any.

What it is

One setting decides it: security_rules: kit | codeguard in .marvin/PROJECT-INFO.md.

The switch security_rules: codeguard in PROJECT-INFO.md. Anything else: kit alone. AVAILABILITY Marvin orchestrator Checks its own session's skill list for the CodeGuard skill. PRESENT Brief, item 4 Names the 3 always-apply rules, plus the topic rules whose tags match the security surface, chosen within the stack's language row. Never the whole row. MISSING Plugin missing One notice per session, with the install command. The brief says CodeGuard: unavailable, and the task runs on the kit checklist alone. Never a FAIL, never a block. Build The builder loads the CodeGuard skill and reads only the named rules, as constraints. BOTH CHECK THE SAME NAMED SET Adds, never replaces Every kit checklist item, safety gate and severity rule stays in force. A CodeGuard rule never softens or removes one. A project rule in CLAUDE.md wins a conflict, and Marvin names the conflict to you once. CLAUDE SECURITY STAGE validator-security heavy Named and always-apply rules. May scan the row: an extra hit is a note, unless exploitable. CODEX SECURITY LANE codex small only when the security lane is on Gets a ### Rules block: the named and always-apply rules' text, never the row. Grading, the same in both FAIL only for a violation that is itself an exploitable defect at the must-fix bar; a hygiene-only violation is a note. The rule ID goes in the finding.

Select a persona to see its model and limits. On a narrow screen, scroll the diagram sideways.

Turning it on

1 · Checkready, disabled or not-installed
2 · AskOnly when not ready
3 · InstallPinned v1.5.0, project scope
4 · Write the keycodeguard or kit

What validators do

When it's missing

CodeGuard adds to the kit's own agent-security checks, mapped risk by risk on Agentic security.

License: CC BY 4.0, from CoSAI / OASIS; rule files are never copied into a repo. Details: codeguard.md, briefing.md, validation-agent.md, codex/security.md.