OpenProgram Docs

Three template rules

RuleCopy it whenLane, watch, cooldownAction
DangerousCommandGuardBlock before an action happensgate, tool.before, 0Gate.ask
TestGapWatcherRemind once conditions accumulate, wary of false positivesobserver, model.response_completed, 30 minNotify; design: Prepare first
UnvalidatedCompletionNudgeCorrect the model without bothering the userobserver, model.response_completed, 15 minInject

Three on purpose: proactive systems die of false positives, as Clippy and UAC prompts did. Rules are Python classes that pass code review, with no config file or DSL. Each is polished before a fourth is added.

DangerousCommandGuard

StopsLets through
rm -rf on root, home, /*, .., or system directoriesrm -rf /tmp/x, rm -rf node_modules
git push --force naming main, master, release, prod, productionForce-push to your own branch
kubectl delete namespace or nskubectl delete pod x
terraform destroy, DROP DATABASEAnything unsure: a miss beats a flood of prompts

Keyword matching produces false positives until people confirm by reflex, so the rule parses targets and branches. It catches slips only: Threat model.

Design: attach to the existing tool approval as a risk annotation, so one command gets one confirmation.

TestGapWatcher

ItemDetail
Fires whenThe turn changed files, a core path changed and no test file did
Core paths/auth/, /billing, /payment, /security; the agent, conversation, jobs, permissions, providers and proactive packages
Test filestest_, _test, /tests/, spec.
CheckedAt wrap-up only, not per file change
Design: false alarmsComment edits, renames, config changes and dependency bumps would trigger it, so a read-only Prepare task confirms the gap first; notifies only when confident
Design: costThe UI shows today's count, spend and swallowed reminders, and can turn checks off
Design: reminderA “write the tests for me” button

UnvalidatedCompletionNudge

ItemDetail
Fires whenThe turn changed files and ran no verification. Tests and browser checks both count, or frontend work would be misjudged: what counts
Why InjectThis repository already requires self-verification, so nudging the model is cheaper than asking the user
DesignNotify the user only if the nudge did not work; require the model to actually claim completion

Implementation status

All three are in openprogram/runtime/proactive/policies/ with tests. install_mvp_policies() is not called at worker start. The items marked Design are not built: action state.

Invariants

Last updated · 2026-11-25