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.ai-layout-integrity@1

AI layer integrity

What it is

URI
majordomus://rule/majordomus.ai-layout-integrity@1
Kind
rule
Identity
majordomus.ai-layout-integrity@1
Path
.ai/repo/rules/vendor/majordomus/rules/ai-layout-integrity.v1.md
Provenance
declared
Media type
text/markdown
As a capability
rule.majordomus.ai-layout-integrity@1

Front matter

{
  "id": "majordomus.ai-layout-integrity",
  "version": 1,
  "kind": "rule",
  "title": "AI layer integrity",
  "description": "The repository's AI layer is real: the manifest declares a format this executable reads and every section it names exists, the checkout-local half is ignored by git and nothing under it is tracked, and no project data remains under the pre-.ai .majordomus/ path.",
  "statement": "The repository's AI layer is real: the manifest declares a format this executable reads and names sections that exist, the local half is ignored by git with nothing under it tracked, and no project data remains under the pre-.ai path.",
  "status": "active",
  "class": "blocking",
  "depends_on": [
    "majordomus.sessions-are-workers@1"
  ],
  "tags": [
    "layout",
    "ai"
  ],
  "x-majordomus": {
    "validator": "ai_layout",
    "category": "layout",
    "enforced_by": [
      "doctor",
      "watch"
    ],
    "exit_code": 10,
    "claims": [
      "init-refuses",
      "ai-layer-manifest",
      "local-state-ignored",
      "legacy-migration",
      "tool-location-independent"
    ],
    "tests": [
      "test/cases/01_init.sh"
    ]
  }
}

Content

---
id: majordomus.ai-layout-integrity
version: 1
kind: rule
title: AI layer integrity
description: The repository's AI layer is real: the manifest declares a format this executable reads and every section it names exists, the checkout-local half is ignored by git and nothing under it is tracked, and no project data remains under the pre-.ai .majordomus/ path.
statement: The repository's AI layer is real: the manifest declares a format this executable reads and names sections that exist, the local half is ignored by git with nothing under it tracked, and no project data remains under the pre-.ai path.
status: active
class: blocking
depends_on: [majordomus.sessions-are-workers@1]
tags: [layout, ai]

x-majordomus:
  validator: ai_layout
  category: layout
  enforced_by: [doctor, watch]
  exit_code: 10
  claims: [init-refuses, ai-layer-manifest, local-state-ignored, legacy-migration, tool-location-independent]
  tests: [test/cases/01_init.sh]
---

# Rationale

The repository's AI layer is real: the manifest declares a format this executable reads and every section it names exists, the checkout-local half is ignored by git and nothing under it is tracked, and no project data remains under the pre-.ai .majordomus/ path.

# Required behaviour

The repository's AI layer is real: the manifest declares a format this executable reads and names sections that exist, the local half is ignored by git with nothing under it tracked, and no project data remains under the pre-.ai path.

# Failure behaviour

A violation is a `FAIL` finding under the category `layout`, and the command that found it exits 10. Under `watch` the same violation is reported as drift and the command exits 11.

# Verification

`mj_validate_ai_layout` decides it, dispatched from `doctor, watch`. The behavioural case `test/cases/01_init.sh` proves it, and CI runs that case.