harness-oia-audit
What it does
This skill runs three static checks on a harness and saves the combined result as a dated audit record. It is for teams who want a regular audit they can compare over time.
When to use it
- ✓When you want a full audit of a harness in one step.
- ✓When you want a weekly audit to catch drift over time.
- ✓When you want a check that fails if the worst finding is serious.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-oia-audit/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Run a full audit of my harness and save it so we can compare it next week.”
5 new skills a week. 1 minute to read.
How it works
The skill runs the layer alignment, threat model and tool scan checks, takes the worst severity found and saves the record to the audit memory. It can exit with an error when the worst finding reaches a level you set.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
The 13th worker (ADR-150 Phase 2) — runs three MetaHarness static surfaces in one shot, computes a composite worst-severity signal, and persists the audit record to memory so drift over time is visible.
Algorithm
Implementation: scripts/oia-audit.mjs.
- Run
harness oia-manifest <path>— Open Infrastructure Architecture layer alignment (L1-L9). - Run
harness threat-model <path>— categorized MCP-surface threat report withworst: clean|low|medium|high. - Run
harness mcp-scan <path>— per-server/tool policy + permissions- dep findings.
- Composite worst =
max(threatModel.worst, max(mcpScan.findings.severity)). - Persist payload to memory namespace
metaharness-auditwith keyaudit-<iso-timestamp>(unless--dry-run). --alert-on-worst <severity>: exit 1 if composite worst ≥ threshold.
Graceful degradation
When ALL three components report metaharness-not-available, the script
emits the standard degraded payload and exits 0. When only some are
degraded, each individual component carries its own degraded: true
flag in the audit record — the audit still runs and persists what it
could gather.
CI / cron integration
Designed for weekly cron in .github/workflows/:
on:
schedule:
- cron: '17 4 * * 0' # Sundays at 04:17 UTC
jobs:
oia-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: node plugins/ruflo-metaharness/scripts/oia-audit.mjs --alert-on-worst high
--alert-on-worst high fails the job on any HIGH-severity finding;
drift below HIGH is logged but doesn't block.
Memory namespace
Each audit run stores under metaharness-audit:audit-<iso-ts>. To list
recent audits:
npx @claude-flow/cli@latest memory list --namespace metaharness-audit --limit 10
To diff two audits (drift detection):
A=$(npx ... memory retrieve --key audit-2026-06-01... --namespace metaharness-audit)
B=$(npx ... memory retrieve --key audit-2026-06-15... --namespace metaharness-audit)
# Compare composite.worst, components.threatModel.worst, etc.
A future ADR can wire this into a dedicated cost-diff-style diff
viewer specifically for audit drift.
Pairs with
harness-threat-model— the underlying threat-model componentharness-mcp-scan— the underlying MCP-scan componentharness-score+harness-genome— readiness metrics (orthogonal to audit)
FAQ
What checks are included?
Layer alignment, a threat model of the tool surface, and a scan of tool policies and permissions.
What if some checks are not available?
The audit still runs and records the parts it could gather, marking the missing ones as degraded.
Can it run on a schedule?
Yes. The source shows a weekly scheduled run in a CI workflow.
Details
Original description by the author
Composite Phase-2 audit worker (ADR-150). Bundles harness oia-manifest + threat-model + mcp-scan into one timestamped audit record stored in the `metaharness-audit` memory namespace. Designed for cron-scheduled drift detection.
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1653
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.