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.
Select a persona to see its model and limits. On a narrow screen, scroll the diagram sideways.
kit(or absent, or any other value): the kit checklist runs alone.codeguard: the brief names the rules a task touches; the validators check them.- Rules are named, never pasted, so context grows only by what the task touches.
- A project rule in
CLAUDE.mdwins a conflict. Marvin names it to you once.
Turning it on
1 · Check
ready, disabled or not-installed2 · AskOnly when not ready
3 · InstallPinned v1.5.0, project scope
4 · Write the key
codeguard or kit- Install runs this step every time. Upgrade runs it once, when the key is missing.
- Project scope means teammates are offered the plugin too. The key is active next session.
- A failed install is reported, never retried unpinned. The key stays
kit. - A re-install keeps a committed value. Local plugin state never flips it.
- On upgrade, a disabled, removed or drifted plugin raises a callout. The key is unchanged.
What validators do
- The brief names the three always-apply rules, plus topic rules whose tags match the task.
- The Claude security validator loads the skill. An extra hit in the language row is a note.
- The Codex security lane gets the named rules' text as a
### Rulesblock. - Grading: FAIL only for a violation that is an exploitable defect at the must-fix bar.
When it's missing
- Never a FAIL, never a block: not a task, a validator or a release.
- Marvin tells you once per session, with the install command.
- The task runs on the kit checklist alone.
- An install is per checkout path. A moved checkout needs the command again.
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.