Skip to main content

Decision records

A ruling is a durable statement by an accountable person that changes how the organization operates: "Vagaris is the canonical home for approvals", a release freeze, a rule about who owns what. Documents explain a decision; the decision record is what governs. It says who decided, when it takes effect, what it applies to, and what it replaced.

vagaris decision is the terminal surface of those records. It is not vagaris audit decisions, which lists the governed acts the platform performed and is the index into audit explain.

Four things are easy to confuse with a ruling, and none of them is one:

  • An approval settles one request, such as approving an exact release. A ruling is never stored as an approval, and an approval never counts as a ruling.
  • An architecture note explains a design. A ruling may also update one, but the note is the explanation and the record is the proof of who decided.
  • An ownership decision names an accountable owner and keeps its own path through vagaris approval.
  • A source document is evidence. Vagaris reading a file does not make it a decision; it becomes one only when a person ratifies a record that cites it.

Proposing and ratifying are different acts​

Anyone with access to the organization can propose a ruling, and so can an agent. An import run cannot: no workload credential reaches these routes, so a ruling found in a source document is proposed by a person or an agent that cites the pinned source. A proposal is a numbered version on a decision node. Nothing governs on the strength of a proposal.

Ratifying makes a proposal a ruling. Only a person holding the governance:decide_ruling permission can do it, on a fresh interactive session. That permission is conferred by a person: it can never be granted to yourself, minted by an invitation or seeded.

The grant (vagaris access grant) states its bounds when it is conferred: --reason, --retires-when and --review-by are all required. The review date is not an expiry: a grant past it still authorizes, and the ratify response and screen flag it as overdue for review. The authority ends when a person revokes it or its retiring condition is met. It can also name the levels it covers, for example --scope-json '{"scope_level":["platform","organization"]}'; without one it is not narrowed by level. A product, capability or project scope is refused, because nothing that ratifies a ruling reads it.

vagaris decision propose --node decision:approvals-live-in-vagaris \
--statement "Vagaris is the canonical home for approvals" \
--class policy --scope organization \
--rationale "One place to ask who approved what" \
--effective-at 2026-10-03T09:00:00Z
vagaris decision show decision:approvals-live-in-vagaris
vagaris decision ratify decision:approvals-live-in-vagaris --proposal-version 1

Read decisions​

vagaris decision list
vagaris decision show decision:approvals-live-in-vagaris
vagaris decision effective --subject product:vagaris

list shows every decision line, including proposals nobody has ratified. show prints one line in full: its proposals, every ruling and retraction recorded on it, and its edges in the organization graph. A node can be written as decision:slug or as the bare slug.

effective answers "what governs this right now". A ruling is live when its effective date has passed, it has not expired, and no successor has taken effect. A ruling that holds for a whole organization or platform and names no entities covers every subject. Any other ruling covers the entities it names.

vagaris decision effective --subject product:vagaris --as-of 2026-09-30T00:00:00Z
vagaris decision effective --subject product:vagaris --recorded-as-of 2026-10-01T00:00:00Z

The two instants answer different questions. --as-of is valid time: what governed on that date. --recorded-as-of is record time: what the organization had recorded by that date. A ruling entered after the fact answers the first question for its original date, and can never answer the second for a date before it was recorded.

Every instant carries an explicit offset, such as Z or +05:30. A bare date or a local time is refused, because it means a different moment in every timezone.

Propose​

Give the ruling as flags, as above, or as one JSON file:

vagaris decision propose --node decision:release-freeze --content ./freeze.json
{
"statement": "No production releases while the migration runs",
"decisionClass": "operational",
"scopeLevel": "product",
"appliesTo": [{ "entityId": "product:vagaris", "relation": "governs" }],
"sourceRefs": [],
"rationale": "A release mid-migration cannot be rolled back",
"effectiveAt": "2026-10-03T09:00:00Z",
"expiresAt": "2026-10-20T09:00:00Z",
"reviewTrigger": "the migration is reported finished"
}

--content is the whole ruling, so it cannot be combined with the field flags. Using both is refused rather than merged.

The fields behind the flags:

  • --statement is what was decided, and --rationale is why.
  • --class is one of architecture, authority, operational, product or policy.
  • --scope is the level it holds at: platform, product, capability, organization, project, environment or mission.
  • --applies-to names an entity as entityId or entityId:relation, and repeats. The relations are governs, applies_to and replaced_by, and the default is governs. Entity ids contain colons, so only a trailing relation name is read as a relation: product:vagaris is the entity product:vagaris, and product:vagaris:applies_to is the same entity with the applies_to relation.
  • --source names a pinned source as repo:path@rev#sha256, and repeats. It is pinned to content, because a cited document that can change under the citation is not evidence of what was decided.
  • --effective-at is when it takes effect. --expires-at and --review-at are optional. --review-trigger is a named condition to re-evaluate on, never a date.

A new slug opens a new decision line, and --name sets its display name. Proposing again on an existing node adds the next version.

Ratify​

vagaris decision ratify decision:release-freeze --proposal-version 2

--proposal-version is the version decision show lists. The record is copied from that version, never from this command, so it cannot differ from what was reviewed. The request carries the content hash of the version you named, so the server can refuse a mismatch as stale.

Ratifying needs a person's sign-in. A credential that came from an API key, whether --api-key, the API-key environment variable or the profile's key variable, is refused before anything is sent. So is a stored login made with a long-lived board key (a legacy_board_key login), because that is a key on disk rather than a human session:

An API key cannot ratify a ruling — a ruling is ratified by a person, ...
[AUTH_REQUIRED · policy_refusal · exit 3]

Sign in with vagaris auth login and run it again. When the server asks for a fresher authentication, the CLI offers the step-up and retries once. --yes runs the step-up without asking, which is the only way a non-interactive run can proceed.

To replace a ruling on a different node, name the one it replaces with --supersedes and its decision id. A revision on the same node supersedes that node's standing ruling by itself.

Ratifying the version that already stands records nothing and reports that it is already the standing ruling, so a retry is safe. A line only moves forward: a version it has already ratified, or one older than the newest it has ratified, is refused with exit 4. To return to an earlier ruling, propose its content again as a new version and ratify that.

The output ends with what a ruling does not authorize. It is not a release approval, a pricing or offer approval, or a published commitment; each of those keeps its own permission.

Retract​

vagaris decision retract decision:release-freeze \
--statement "The freeze is lifted" \
--rationale "The migration finished" \
--effective-at 2026-10-20T09:00:00Z

A retraction is a new record on the same node that ends the standing ruling. The original is never edited or deleted, and decision show still lists both. Ruling rows are append-only on every application path; TRUNCATE is an operator-only database bypass outside the product. It is gated exactly as ratify is, and refuses an API key the same way.

By default it retracts the line's standing ruling; --decision-id names another record. If a different decision takes its place, --replaced-by names that node, and --source cites a pinned source.

A line's status is read at the current instant. A retraction or replacement that takes effect later shows as retraction_scheduled or replacement_scheduled until then, because the ruling still governs until then. A ratified ruling whose effective date is still ahead shows as scheduled, and one past its expires_at shows as expired.

Output and exit codes​

Every verb prints readable text, and --json prints the server's response as returned. Source paths are returned to operators only; anyone else gets sourceCount and an empty sources list. The text is for a person; scripts should read the JSON and branch on the exit code, not on the wording.

Refusals use the standard exit codes on Troubleshooting. An API key, a stored board-key login, or a principal without governance:decide_ruling, exits 3. A node that does not exist exits 5. A conflict, such as a node that already has a standing ruling, exits 4. Input the CLI or the server rejects as malformed exits 13: a bad flag, a --content file that is missing or is not JSON, or a request body the server answers with 400. Only a request the server understands and refuses on policy (422) exits 2.