Policies as Plugins

This is the standard for how the OSBR engineering policy series reaches the AI agents that write our code. Every policy in the series is not only a page a person reads here at handbook.osbrjp.com β€” it also ships as a plugin the agents load, so the standard is present in the model's context at the moment of generation, not discovered in review after the violation is already written. The aim is a single source of truth that a person can read and a machine can load: one policy, rendered for both, never two copies quietly drifting apart. It works alongside the AI Usage Guideline (how humans and agents share the work) and the Quality Gate (where compliance is actually proven). Deviations are allowed, but β€” as everywhere in the handbook β€” they must be deliberate and justified in the project's design notes.

This is where OSBR's values reach the agents as directly as they reach us. Be Nice: one source of truth is an honesty owed to everyone downstream β€” no engineer, and no agent, is ever governed by a stale copy nobody remembered to update. Be Kind: we meet the agents where they work, putting the standard in their context in the form they can load, so the next contributor β€” human or model β€” inherits rules that are present exactly where the work happens. Be Strong: we hold the same line for the agent that we hold for ourselves β€” refusing to merge a policy change that leaves humans and machines reading different rules, and refusing to accept a silent plugin as proof of anything. This is the human ⇄ AI principle made operational: the same words govern the person and the agent, and they are updated together.

How to read this policy

1. Goal

The goal is a policy that is readable by a person and loadable by a machine β€” one source of truth, two renderings, never two divergent copies. Concretely:

This is shift-left governance applied to how we author software with AI. Just as policy-as-code moves compliance from a late audit gate to an early, version-controlled artifact, distributing our policies as plugins moves the standard from a post-hoc review comment into the model's context. The plugin shifts the standard left into generation β€” it does not replace the gate on the right (Β§3-4).

2. Responsibility

3. Practices

3-1. Ship every policy as a plugin the agents load

Each article in the engineering policy series MUST be reachable by our AI agents as a plugin, in the native form each coding agent understands, loaded into context when the matching kind of work is scoped or implemented.

3-2. Update the article and every plugin in one pull request

Because the human page and the agent plugins are renderings of one policy, they MUST move together. A change to a policy MUST update the handbook article and every plugin that renders it in the same pull request.

3-3. Keep every policy in the Goal / Responsibility / Practices shape

Every policy β€” page and plugin alike β€” MUST keep the house structure: Goal, Responsibility, Practices, with normative force carried by explicit MUST / SHOULD. This is not house style for its own sake; it is what makes a policy loadable:

A consistent structure is good prompt engineering at the corpus level: the agent learns the shape once and reads every policy the same way, and a reviewer checks every policy against the same skeleton. An article that abandons the structure is harder for both to consume, and is itself a review defect.

3-4. Treat plugin silence as unknown, not clean

A loaded policy that raises no objection is not evidence the work is compliant. The plugin puts the standard in context; it does not prove adherence.

3-5. Working rules

References

Shift-left governance & policy-as-code

Single source of truth & docs-as-code

Context for models

Related OSBR standards