Skip to content

chore(org): wire molecule-compliance + molecule-audit + molecule-freeze-scope (#322) - #330

Merged
HongmingWang-Rabbit merged 1 commit into
mainfrom
fix/issue-322-wire-compliance-audit
Apr 16, 2026
Merged

HongmingWang-Rabbit merged 1 commit into
mainfrom
fix/issue-322-wire-compliance-audit

Conversation

@HongmingWang-Rabbit

Copy link
Copy Markdown
Contributor

Summary

Config-only fix for #322. Three plugins merged without role wiring — one line of YAML each bridges the gap.

  • Security Auditor gains molecule-compliance (OWASP Top 10 active enforcement on their own tool calls) and molecule-audit (EU AI Act immutable JSONL log they generate reports from).
  • Backend Engineer gains molecule-compliance (OA-03 excessive-agency cap on the highest tool-call-volume role).
  • QA Engineer gains molecule-compliance (OA-01 prompt-injection detect mode for adversarial test payloads).
  • DevOps Engineer gains molecule-freeze-scope (infra/** lock during risky CI migrations — plugin orphaned for 3 weekly audits).

Test plan

  • python3 -c 'yaml.safe_load(...)' parses
  • All referenced plugins exist in plugins/ dir
  • go test -race ./... across platform — all green
  • TestPlugins_UnionWithDefaults passes (UNION-with-defaults merge semantics preserved)

Closes #322

…ze-scope (#322)

Three plugins were merged to plugins/ without corresponding role wiring in
org-templates/molecule-dev/org.yaml. Each was already runtime-compatible
and fully functional; the gap was purely config.

Security Auditor:
  + molecule-compliance — OWASP Top 10 for Agentic Applications (OA-01/02/03/06).
    Active enforcement on the role that owns OWASP posture anyway.
  + molecule-audit — immutable JSONL audit log (EU AI Act Art. 12/13/17).
    Security Auditor produces the compliance reports this log feeds.

Backend Engineer:
  + molecule-compliance — OA-03 excessive-agency cap. Backend Engineer is
    the highest tool-call-volume role; a hard cap guards against runaway
    loops on large refactors without changing the happy path.

QA Engineer:
  + molecule-compliance — OA-01 prompt-injection in detect (not block)
    mode catches adversarial test payloads before they reach production.
    OA-03 cap prevents runaway test loops.

DevOps Engineer:
  + molecule-freeze-scope — plugin was orphaned across 3 weekly audits.
    DevOps is the natural home: lock edits to infra/** during risky CI
    migrations or fly secret rotations. Per-workspace .claude/freeze
    default can be set later.

Verified:
- YAML parses cleanly.
- All referenced plugins exist in plugins/ directory.
- `go test -race ./...` across platform — all green.
- TestPlugins_UnionWithDefaults passes (handlers/org.go merge logic still
  unions these into the defaults.plugins set correctly).

Closes #322

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

org.yaml: wire molecule-compliance + molecule-audit into Security Auditor, QA, Backend Engineer

1 participant