Cron wrapper audit
A drop-in self-improving memory + operations harness for AI agents (OpenClaw / Hermes / Claude Code / Codex). Layered memory, autonomous drift-fixing loop, evals, and one-command DR. Templates + scripts, no secrets.
npx -y skills add Walliiee/agent-harness --skill cron-wrapper-auditAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Weekly enforcement of the cron-thin-trigger-skill-does-work invariant. Walks every ai.{openclaw,gbrain}.*.plist and verifies it either routes through skill-wrapper or is in the documented exception allow-list. Emits a Drift incident on violation.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
3.5 KB, 815 tokens by cl100k_base, as published. Nobody here has run it
cron-wrapper-audit — invariant enforcement for cron pattern
Turns the wiki rule [[cron-thin-trigger-skill-does-work]] into a tested invariant. Without this script, the rule decays the next time someone adds a cron without reading the wiki entry.
When this runs
- Primary: cron.
ai.openclaw.cron-wrapper-audit.plistfires Sunday 04:45 (afterfreshness-watchat 05:00, before next-week'sdrift-learnat 04:30). - Wrapper: through
skill-wrapper --skill cron-wrapper-audit --agent main --trigger cron. Dogfoods the rule it enforces.
What it does
For each ai.{openclaw,gbrain}.*.plist in ~/Library/LaunchAgents/:
- Use
plutil -extractto read the plist'sLabelandProgramArguments.0. - Classify:
ProgramArguments[0]containsskill-wrapper→ wrapped ✓- Label matches the documented exception list → exception ✓
- Otherwise → violation ✗
- On any violation: emit a single rolled-up Drift incident (
source=cron-wrapper-audit,type=cron-bypass,severity=med,key=cron-wrapper-audit-YYYY-MM-DD) listing every violating plist with its first program arg, and pointing to the wiki rule for remediation.
Documented exceptions (live in the script)
These plist labels intentionally bypass skill-wrapper. Mirror the list in [[cron-thin-trigger-skill-does-work]] under "Documented exceptions"; if the two ever drift, the wiki entry is canonical.
ai.openclaw.gateway— long-running daemonai.openclaw.skill-run-archive— ledger maintainer (self-reference)ai.openclaw.skill-run-reap— ledger maintainer (self-reference)ai.gbrain.mcp— long-running daemonai.gbrain.postgres-sync— gbrain internal observabilityai.gbrain.pg-backup— gbrain internal observabilityai.gbrain.golden-eval— gbrain internal observabilityai.gbrain.backups-push— gbrain internal observabilityai.gbrain.maintenance-daily— gbrain internal observability
Adding a new exception requires editing both the script's EXCEPTIONS array and the wiki rule's exceptions section in the same change.
Exit codes
0— clean, all plists compliant or exempt1— at least one violation (incident emitted in cron mode)2— script-level error (unreadable plist, missing dependencies)
Inputs
--verbose/-v— log every plist's verdict, not just violations.--emit-incident— emit a Drift incident on violation. Default off for manual runs; the plist passes this flag in cron mode.--dry-run— skip theincident emitcall even when--emit-incidentis set. Useful for testing.
Files
- Script:
${OPENCLAW_HOME}/bin/cron-wrapper-audit - Plist:
~/Library/LaunchAgents/ai.openclaw.cron-wrapper-audit.plist - Rule:
${OPENCLAW_HOME}/workspace/wiki/agent-behaviors/cron-thin-trigger-skill-does-work.md - This spec:
${OPENCLAW_HOME}/skills/cron-wrapper-audit/SKILL.md
Related
- [[cron-thin-trigger-skill-does-work]] — the rule this enforces.
incident-emit— downstream Drift pipeline receiver of violations.drift-watcher,drift-learn— incident pipeline peers.