Skip to content
Cockpit0.29.0
A snapshot: read at commit 707a04c7ce8 on 2026-10-18T00:06:01Z by majordomus 0.29.0. Nothing on this page is read again. See it live

majordomus.define-done-first@1

Define done before executing

What it is

URI
majordomus://rule/majordomus.define-done-first@1
Kind
rule
Identity
majordomus.define-done-first@1
Path
.ai/repo/rules/vendor/majordomus/rules/principle-07-define-done-first.v1.md
Provenance
declared
Media type
text/markdown
As a capability
rule.majordomus.define-done-first@1

Front matter

{
  "id": "majordomus.define-done-first",
  "version": 1,
  "kind": "rule",
  "title": "Define done before executing",
  "description": "The finish contract is evaluated line by line, and nothing else counts as done.",
  "statement": "Know the contract a task must meet before starting it, and let the contract, not the worker's word, decide whether it is finished.",
  "status": "active",
  "class": "advisory",
  "depends_on": [],
  "tags": [
    "principle"
  ]
}

Content

---
id: majordomus.define-done-first
version: 1
kind: rule
title: Define done before executing
description: The finish contract is evaluated line by line, and nothing else counts as done.
statement: Know the contract a task must meet before starting it, and let the contract, not the worker's word, decide whether it is finished.
status: active
class: advisory
depends_on: []
tags: [principle]
---

# Rationale

When done means the worker said so, every task is done. A contract written first is what makes a refusal possible, and a refusal is the whole point of supervision.

# Required behaviour

Know the contract a task must meet before starting it, and let the contract, not the worker's word, decide whether it is finished.

# Failure behaviour

Nothing decides this rule directly, so a violation is reported by nobody; it is the rules that depend on it that decide what a machine can decide and stop or warn accordingly.

# Verification

The enforced rules whose `depends_on` names this one carry the validators, the tests and the CI wiring. `majordomus doctrine list` shows them.