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

project.unknown-keys-are-errors@1

Unknown configuration keys are errors

What it is

URI
majordomus://rule/project.unknown-keys-are-errors@1
Kind
rule
Identity
project.unknown-keys-are-errors@1
Path
.ai/repo/rules/project/unknown-keys-are-errors.v1.md
Provenance
declared
Media type
text/markdown
As a capability
rule.project.unknown-keys-are-errors@1

Front matter

{
  "id": "project.unknown-keys-are-errors",
  "version": 1,
  "kind": "rule",
  "title": "Unknown configuration keys are errors",
  "description": "Every configuration file rejects a key nothing reads, and every state field is both written and read.",
  "statement": "Every configuration file rejects a key nothing reads, and every state field is both written and read.",
  "status": "active",
  "class": "blocking",
  "depends_on": [],
  "tags": [
    "schema"
  ],
  "x-majordomus": {
    "tests": [
      "test/cases/00_yaml_flatten.sh"
    ]
  }
}

Content

---
id: project.unknown-keys-are-errors
version: 1
kind: rule
title: Unknown configuration keys are errors
description: Every configuration file rejects a key nothing reads, and every state field is both written and read.
statement: Every configuration file rejects a key nothing reads, and every state field is both written and read.
status: active
class: blocking
depends_on: []
tags: [schema]

x-majordomus:
  tests: [test/cases/00_yaml_flatten.sh]
---

# Rationale

A key nobody reads is a typo that silently does nothing, which is worse than a refusal; the allowlists under share/allow/ are the schema, and a field written and never read is a second source of truth.

# Required behaviour

Every configuration file rejects a key nothing reads, and every state field is both written and read.

# Failure behaviour

No command decides this rule; a reviewer does, and a change that violates it is not merged. Where a behavioural case covers part of it, that case is named below.

# Verification

Review. test/cases/00_yaml_flatten.sh and the policy, profile, manifest and rule allowlists under share/allow/.