Plans
A plan is what people approve. An agent drafts it and a person approves it. The approved revision of the plan is what a push is checked against.
Plan fields
Part | Content |
|---|---|
Intent What changes and why | Return the existing error view when moveToPage selects an empty or whitespace-only allowlist entry. |
Changes Each one gets a case |
|
Preserves What must not change |
|
Scope Touching anything else is outside the plan | …/cmm/web/EgovComUtlController.javaEgovComUtlController#moveToPage(Integer) |
Cases Checks the agent wrote as code | Four cases, run on the current code before approval. The two for the changes fail, the two for the preserves pass. |
Item | Meaning |
|---|---|
Intent | One or two sentences on what changes and why. Required. |
Scope | Where the change may reach: folders and files, units (pieces of code such as a Java method), HTTP routes, SQL statements and tables. A folder ends with /. |
Changes | Each behavior that should change, as a sentence. |
Preserves | What must not change (files, units, HTTP routes, SQL statements, tables), or a case that shows it did not change. A path written as path: promises that the change's impact does not reach it, which needs proof. To say only that files are not edited, write untouched: instead. That is checked only by whether the push edits those paths. |
Cases | Runnable checks the agent writes as code. Up to 12 per plan. See Cases. |
The intent and the changes are written for people to read. The machine never accepts a sentence as proof that behavior changed. Each requested change needs a case that shows it.
Warnings before approval
When a draft is created or revised, OurDoc points out what in the plan alone is likely to stop a push. The warnings are gathered next to the approve button and also shown under the change, case, preserve or scope entry they concern. The agent receives the same warnings, each with a way to fix it. Warnings never block approval.
- A change no case is tied to. A push would stop as unknown.
- A case tied to neither a change nor a preserve, or one that points at a missing entry.
- A preserve that protects a whole folder with
path:. When the scope does not touch that folder,untouched:is suggested. - A preserve that protects, or keeps unedited, a path the scope also allows.
- A scope folder that covers at least a quarter of the repository's files and at least 50 files.
- An existing test that can run the scope's code but is not a case (Java). It is found from the compiled calls and the class names the test uses, so the approver learns before approving that the change may break it. A test that reaches the code only through the framework is not found.
Approvers
- The person who wrote a plan cannot approve it. For a plan an agent wrote, the person who directed the agent counts as its writer.
- Approval attaches to one revision of the plan. Revising the plan creates a new revision, which needs approval again. If the revision you viewed is not the one you approve, the approval is refused.
- The approver sees how each case behaves on the current code before approving. That result is a signed record, and the approval is bound to it.
- An approver cannot use their own approval to push and merge their own change.

Overlapping plans
Plan details identify open plans for the same repository that overlap, with their revisions and matching selectors. Folder scopes include descendants. Preservation conflicts are called out separately. The approver decides whether to proceed, and the signed approval and change plan preserve the list at approval time.
Standing plans
So that small changes do not each need a plan, you can configure kinds of change that are approved in advance. They correspond to a "simple change" in public sector procedures.
- Documentation only. A push that changes only the configured documentation paths.
- Proven equal. A push whose text changed but whose behavior was shown to be the same, such as a change to Java comments only.
A push that fits no standing plan is told to attach a plan and push again.