diff --git a/server/python/src/metaobjects/agent_context/shipped/files/77b583899dabdd55.md b/agent-context-shipped/files/070ba86ed3e76df5.md similarity index 79% rename from server/python/src/metaobjects/agent_context/shipped/files/77b583899dabdd55.md rename to agent-context-shipped/files/070ba86ed3e76df5.md index c88540376f..d9d29068ea 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/77b583899dabdd55.md +++ b/agent-context-shipped/files/070ba86ed3e76df5.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/e5c6430567eecae4.md b/agent-context-shipped/files/076e5a258ec0bc47.md similarity index 95% rename from server/python/src/metaobjects/agent_context/shipped/files/e5c6430567eecae4.md rename to agent-context-shipped/files/076e5a258ec0bc47.md index e2e63964d2..6ef3585b6c 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/e5c6430567eecae4.md +++ b/agent-context-shipped/files/076e5a258ec0bc47.md @@ -116,6 +116,14 @@ service — these never reference the model. **L4** binds a declared top-level n validator, identity, a template's child, an operation, or a transition. `implementedBy` above L4 is an error. Regrouping *moves* a node; it does not edit a parent string. +**A behaviour claim points at behaviour.** "A request is cancelled only while open" names the +transition (`..`, e.g. `acme::orders::Order.status.cancel`); "a +reviewer decides a request" names the operation (`.`, e.g. +`acme::purchasing::Purchasing.decide`). A claim that names only the entity it touches is +satisfied by a table that exists whether or not the rule is built. When the transition or +operation is not declared yet, declare it (`references/business-rules.md`) or +leave the claim `planned` with the ref it will have. + **Write an L5 ref as a dotted `pkg::Owner.member` path** — the level and the shape of the ref must agree, and this is the single easiest thing to get wrong: diff --git a/server/python/src/metaobjects/agent_context/shipped/files/ddbd9ec7df5b0edb.md b/agent-context-shipped/files/0b5af574087b7676.md similarity index 83% rename from server/python/src/metaobjects/agent_context/shipped/files/ddbd9ec7df5b0edb.md rename to agent-context-shipped/files/0b5af574087b7676.md index b227064d41..1d43511a9f 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/ddbd9ec7df5b0edb.md +++ b/agent-context-shipped/files/0b5af574087b7676.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/9de55e412aee8057.md b/agent-context-shipped/files/0c366480181a4f29.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/9de55e412aee8057.md rename to agent-context-shipped/files/0c366480181a4f29.md index 1ce7c6fe47..7c686dbbb5 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/9de55e412aee8057.md +++ b/agent-context-shipped/files/0c366480181a4f29.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -94,6 +108,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/6eaaf67c049daead.md b/agent-context-shipped/files/0da05b8a8f726c59.md similarity index 80% rename from agent-context-shipped/files/6eaaf67c049daead.md rename to agent-context-shipped/files/0da05b8a8f726c59.md index 92f49d5fa4..3aa3f0900e 100644 --- a/agent-context-shipped/files/6eaaf67c049daead.md +++ b/agent-context-shipped/files/0da05b8a8f726c59.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -74,6 +88,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/68aea133c93dc3c6.md b/agent-context-shipped/files/0fa8c9d99447d618.md similarity index 81% rename from server/python/src/metaobjects/agent_context/shipped/files/68aea133c93dc3c6.md rename to agent-context-shipped/files/0fa8c9d99447d618.md index 749da5d121..4fed21c00a 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/68aea133c93dc3c6.md +++ b/agent-context-shipped/files/0fa8c9d99447d618.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -83,6 +97,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/f0d3aa0b6ca8c7b5.md b/agent-context-shipped/files/16ca093e7d3e50b8.md similarity index 80% rename from server/python/src/metaobjects/agent_context/shipped/files/f0d3aa0b6ca8c7b5.md rename to agent-context-shipped/files/16ca093e7d3e50b8.md index 84788926ac..1eb4275ef6 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/f0d3aa0b6ca8c7b5.md +++ b/agent-context-shipped/files/16ca093e7d3e50b8.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/9827ffbab8ae5c2d.md b/agent-context-shipped/files/180ea012b7662e9b.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/9827ffbab8ae5c2d.md rename to agent-context-shipped/files/180ea012b7662e9b.md index ade8e3c87a..2ebad24502 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/9827ffbab8ae5c2d.md +++ b/agent-context-shipped/files/180ea012b7662e9b.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/8f920c881b85118b.md b/agent-context-shipped/files/1830b9df68903eb9.md similarity index 83% rename from server/python/src/metaobjects/agent_context/shipped/files/8f920c881b85118b.md rename to agent-context-shipped/files/1830b9df68903eb9.md index f1d6737c86..b69adcb17d 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/8f920c881b85118b.md +++ b/agent-context-shipped/files/1830b9df68903eb9.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/1813baf4e1ff00dc.md b/agent-context-shipped/files/22f1fc4abae9172c.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/1813baf4e1ff00dc.md rename to agent-context-shipped/files/22f1fc4abae9172c.md index 086412a5ce..eefca8d8e0 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/1813baf4e1ff00dc.md +++ b/agent-context-shipped/files/22f1fc4abae9172c.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/b6d58488c3486eae.md b/agent-context-shipped/files/23eeddecbf333c35.md similarity index 79% rename from agent-context-shipped/files/b6d58488c3486eae.md rename to agent-context-shipped/files/23eeddecbf333c35.md index 431f4aeb77..8bd6b9c8e4 100644 --- a/agent-context-shipped/files/b6d58488c3486eae.md +++ b/agent-context-shipped/files/23eeddecbf333c35.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/7da357a168d3819a.md b/agent-context-shipped/files/2689f0fedb2de0f5.md similarity index 80% rename from server/rust/metaobjects-cli/agent-context-shipped/files/7da357a168d3819a.md rename to agent-context-shipped/files/2689f0fedb2de0f5.md index 63b6c909bc..e4b48f3779 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/7da357a168d3819a.md +++ b/agent-context-shipped/files/2689f0fedb2de0f5.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/87b4d71a9905489d.md b/agent-context-shipped/files/2f7c99b3ce88ef3d.md similarity index 97% rename from server/rust/metaobjects-cli/agent-context-shipped/files/87b4d71a9905489d.md rename to agent-context-shipped/files/2f7c99b3ce88ef3d.md index 211102dfdf..ae12d24feb 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/87b4d71a9905489d.md +++ b/agent-context-shipped/files/2f7c99b3ce88ef3d.md @@ -11,11 +11,12 @@ emits code in each language from it, and the drift gates check everything agains ## Essentials - **Declare it; do not hand-write it.** Persistence, data access, validation, APIs and UI - scaffolding are derived from metadata. When you reach for a hand-written query, route, - validator, relationship or aggregate, that is usually metadata nobody has declared yet: - look for the construct first (`meta types `). Declare it when the cost test favours - it: smaller declared than hand-written, more than one instance, or drift protection a - hand-write cannot give. A one-off with none of these can stay hand-written. + scaffolding are derived from metadata. A hand-written query, route, validator, relationship + or aggregate is usually metadata nobody has declared yet: look for the construct first + (`meta types `); a status lifecycle or a named action is a business rule + (`references/business-rules.md`). Declare it when the cost test favours it: smaller declared + than hand-written, more than one instance, or drift protection a hand-write cannot give. + A one-off with none of these can stay hand-written. - **Adoption reverses the direction.** When working code or a populated schema already exists, it is the specification and the metadata reproduces it: its names, types and nullability. Read `references/adopting-existing-code.md` before modeling anything. @@ -26,8 +27,7 @@ emits code in each language from it, and the drift gates check everything agains shaped by `references/semantic-modelling.md` (what a thing is, never a product or a step). - **Choose a field's shape by what the value is, not how it is stored**: a UUID is `field.uuid`, money is `field.currency`, a list is `isArray: true`, and a JSON column takes - the type its writer already declares. The canonical-form table below covers the common - cases. + the type its writer already declares. The canonical-form table below covers common cases. - **A relationship's subtype sets the default delete action, and the FK-owning (child) side governs.** Modeling every link as `composition` arms cascades nobody asked for. - **In YAML, quote any scalar that looks like a boolean, number, date or null.** @@ -479,6 +479,7 @@ with no reason to exist becomes visible. Reach for them when the project needs t - **"What have we committed to build and not built yet?"** `@status: planned`: the one status where a dangling `@implementedBy` is correct. It never counts toward object coverage. - **"Which ticket covers this?"** `@trackedBy`. +- **"Is this behaviour built?"** Point the claim at its transition or operation, not its table. Every requirement must be violable: if you cannot say what breaking it looks like, it is a description, not a requirement. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/ad0876e3f0749dd4.md b/agent-context-shipped/files/37fc1c1e1d520d26.md similarity index 79% rename from server/python/src/metaobjects/agent_context/shipped/files/ad0876e3f0749dd4.md rename to agent-context-shipped/files/37fc1c1e1d520d26.md index 0936a38788..5a8200a70c 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/ad0876e3f0749dd4.md +++ b/agent-context-shipped/files/37fc1c1e1d520d26.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -67,6 +81,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/4bf396aa4831d3b0.md b/agent-context-shipped/files/38e72e6b0ab7f58a.md similarity index 77% rename from server/python/src/metaobjects/agent_context/shipped/files/4bf396aa4831d3b0.md rename to agent-context-shipped/files/38e72e6b0ab7f58a.md index f0e4c48037..03298b2b0b 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/4bf396aa4831d3b0.md +++ b/agent-context-shipped/files/38e72e6b0ab7f58a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -64,6 +78,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/d6d7f822563ee216.md b/agent-context-shipped/files/3afe3b4c6ce94288.md similarity index 82% rename from agent-context-shipped/files/d6d7f822563ee216.md rename to agent-context-shipped/files/3afe3b4c6ce94288.md index ecf1563877..0e105f9952 100644 --- a/agent-context-shipped/files/d6d7f822563ee216.md +++ b/agent-context-shipped/files/3afe3b4c6ce94288.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -93,6 +107,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/3351fb1999f7cddc.md b/agent-context-shipped/files/3e59bf0de96d4e94.md similarity index 82% rename from agent-context-shipped/files/3351fb1999f7cddc.md rename to agent-context-shipped/files/3e59bf0de96d4e94.md index 99f8e727e0..95e554171e 100644 --- a/agent-context-shipped/files/3351fb1999f7cddc.md +++ b/agent-context-shipped/files/3e59bf0de96d4e94.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -94,6 +108,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/b766591d53ab5c06.md b/agent-context-shipped/files/469aec1576197f28.md similarity index 79% rename from agent-context-shipped/files/b766591d53ab5c06.md rename to agent-context-shipped/files/469aec1576197f28.md index 8a3bf1f6e0..b137e9e0e5 100644 --- a/agent-context-shipped/files/b766591d53ab5c06.md +++ b/agent-context-shipped/files/469aec1576197f28.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/2b4a4bfa31529de3.md b/agent-context-shipped/files/47a9c12e127a574d.md similarity index 83% rename from server/python/src/metaobjects/agent_context/shipped/files/2b4a4bfa31529de3.md rename to agent-context-shipped/files/47a9c12e127a574d.md index b8cefeb5a2..a7505365c8 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/2b4a4bfa31529de3.md +++ b/agent-context-shipped/files/47a9c12e127a574d.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/c51749f6baf00a9b.md b/agent-context-shipped/files/5cb6da08078dcbee.md similarity index 81% rename from server/python/src/metaobjects/agent_context/shipped/files/c51749f6baf00a9b.md rename to agent-context-shipped/files/5cb6da08078dcbee.md index bb2aff48f9..e573e6a098 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/c51749f6baf00a9b.md +++ b/agent-context-shipped/files/5cb6da08078dcbee.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/92f68d0335098302.md b/agent-context-shipped/files/610d3c0cb9608a71.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/92f68d0335098302.md rename to agent-context-shipped/files/610d3c0cb9608a71.md index 3be1fa083e..84212db19a 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/92f68d0335098302.md +++ b/agent-context-shipped/files/610d3c0cb9608a71.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -86,6 +100,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/1d61842e76db07d7.md b/agent-context-shipped/files/619eeeddb8de4749.md similarity index 83% rename from agent-context-shipped/files/1d61842e76db07d7.md rename to agent-context-shipped/files/619eeeddb8de4749.md index 861bb20368..9ae23f82eb 100644 --- a/agent-context-shipped/files/1d61842e76db07d7.md +++ b/agent-context-shipped/files/619eeeddb8de4749.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/6c632f2dcebb53ea.md b/agent-context-shipped/files/6324e418aa8f3ca9.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/6c632f2dcebb53ea.md rename to agent-context-shipped/files/6324e418aa8f3ca9.md index 411af6cf0b..8408cd6531 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/6c632f2dcebb53ea.md +++ b/agent-context-shipped/files/6324e418aa8f3ca9.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/c4cea8aaaf65fd1c.md b/agent-context-shipped/files/6e98c98cde6411e2.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/c4cea8aaaf65fd1c.md rename to agent-context-shipped/files/6e98c98cde6411e2.md index de5ad3d549..8af07a56de 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/c4cea8aaaf65fd1c.md +++ b/agent-context-shipped/files/6e98c98cde6411e2.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -91,6 +105,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/10fd5004cdff1b02.md b/agent-context-shipped/files/7375f17656d07312.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/10fd5004cdff1b02.md rename to agent-context-shipped/files/7375f17656d07312.md index 7a153cc807..498417e795 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/10fd5004cdff1b02.md +++ b/agent-context-shipped/files/7375f17656d07312.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -91,6 +105,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/bffabb32b1e62ea4.md b/agent-context-shipped/files/7e5805d8742096e7.md similarity index 83% rename from agent-context-shipped/files/bffabb32b1e62ea4.md rename to agent-context-shipped/files/7e5805d8742096e7.md index fedb3986c4..5849d13f67 100644 --- a/agent-context-shipped/files/bffabb32b1e62ea4.md +++ b/agent-context-shipped/files/7e5805d8742096e7.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/cf820e73bf82c1dc.md b/agent-context-shipped/files/7e655b38310e039a.md similarity index 80% rename from server/python/src/metaobjects/agent_context/shipped/files/cf820e73bf82c1dc.md rename to agent-context-shipped/files/7e655b38310e039a.md index 1522c0a904..ef12bda4c3 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/cf820e73bf82c1dc.md +++ b/agent-context-shipped/files/7e655b38310e039a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/9e4438fd935ebc25.md b/agent-context-shipped/files/85bc169462e1acef.md similarity index 82% rename from agent-context-shipped/files/9e4438fd935ebc25.md rename to agent-context-shipped/files/85bc169462e1acef.md index fad93b86d0..125d7a1d6c 100644 --- a/agent-context-shipped/files/9e4438fd935ebc25.md +++ b/agent-context-shipped/files/85bc169462e1acef.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -91,6 +105,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/7d185435e40d7e2d.md b/agent-context-shipped/files/95729d5fbfaf0d35.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/7d185435e40d7e2d.md rename to agent-context-shipped/files/95729d5fbfaf0d35.md index 8760b720b6..56b34f7af5 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/7d185435e40d7e2d.md +++ b/agent-context-shipped/files/95729d5fbfaf0d35.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/9787437a82bb7e32.md b/agent-context-shipped/files/987670c3f5dbf067.md similarity index 83% rename from server/rust/metaobjects-cli/agent-context-shipped/files/9787437a82bb7e32.md rename to agent-context-shipped/files/987670c3f5dbf067.md index 8beb06b5bb..e49d83a46c 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/9787437a82bb7e32.md +++ b/agent-context-shipped/files/987670c3f5dbf067.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/8692936865b8ca78.md b/agent-context-shipped/files/995daf1c0b9a64ef.md similarity index 79% rename from agent-context-shipped/files/8692936865b8ca78.md rename to agent-context-shipped/files/995daf1c0b9a64ef.md index 57a6927b6c..e00fe1067d 100644 --- a/agent-context-shipped/files/8692936865b8ca78.md +++ b/agent-context-shipped/files/995daf1c0b9a64ef.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/7cb243bcfd1823db.md b/agent-context-shipped/files/9c7210dbf22f468a.md similarity index 77% rename from server/python/src/metaobjects/agent_context/shipped/files/7cb243bcfd1823db.md rename to agent-context-shipped/files/9c7210dbf22f468a.md index 762bb44265..9ad581a6b1 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/7cb243bcfd1823db.md +++ b/agent-context-shipped/files/9c7210dbf22f468a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -65,6 +79,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/8d415448458487c1.md b/agent-context-shipped/files/a91973d190a00b23.md similarity index 79% rename from server/python/src/metaobjects/agent_context/shipped/files/8d415448458487c1.md rename to agent-context-shipped/files/a91973d190a00b23.md index 84f0aaf817..a7a1fd4d04 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/8d415448458487c1.md +++ b/agent-context-shipped/files/a91973d190a00b23.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/dbc673d7e2efb728.md b/agent-context-shipped/files/a978cd0effa00e0c.md similarity index 79% rename from server/python/src/metaobjects/agent_context/shipped/files/dbc673d7e2efb728.md rename to agent-context-shipped/files/a978cd0effa00e0c.md index 685a34dcb4..d7076780f5 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/dbc673d7e2efb728.md +++ b/agent-context-shipped/files/a978cd0effa00e0c.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -72,6 +86,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/eb9a53fcc569deb6.md b/agent-context-shipped/files/a9fb54f0efbd6879.md similarity index 80% rename from server/python/src/metaobjects/agent_context/shipped/files/eb9a53fcc569deb6.md rename to agent-context-shipped/files/a9fb54f0efbd6879.md index a2cdafaae0..34afb3c3e8 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/eb9a53fcc569deb6.md +++ b/agent-context-shipped/files/a9fb54f0efbd6879.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -74,6 +88,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/7d6c30e9d03b88b9.md b/agent-context-shipped/files/aba79b6a5f1c6df7.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/7d6c30e9d03b88b9.md rename to agent-context-shipped/files/aba79b6a5f1c6df7.md index 74c3edc882..f5555d370f 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/7d6c30e9d03b88b9.md +++ b/agent-context-shipped/files/aba79b6a5f1c6df7.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -94,6 +108,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/2a850663b29e895c.md b/agent-context-shipped/files/b265aeb870f81aa9.md similarity index 81% rename from server/rust/metaobjects-cli/agent-context-shipped/files/2a850663b29e895c.md rename to agent-context-shipped/files/b265aeb870f81aa9.md index c3b4972bbb..b452c60fd0 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/2a850663b29e895c.md +++ b/agent-context-shipped/files/b265aeb870f81aa9.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/ea6a3a84c8377d9f.md b/agent-context-shipped/files/b43a6bcce62efccb.md similarity index 79% rename from agent-context-shipped/files/ea6a3a84c8377d9f.md rename to agent-context-shipped/files/b43a6bcce62efccb.md index 83fe8a8aa3..59357059b8 100644 --- a/agent-context-shipped/files/ea6a3a84c8377d9f.md +++ b/agent-context-shipped/files/b43a6bcce62efccb.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/12851cf06a512e01.md b/agent-context-shipped/files/b8a6831a7078b180.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/12851cf06a512e01.md rename to agent-context-shipped/files/b8a6831a7078b180.md index 1d0e8c9445..205c9e0ef3 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/12851cf06a512e01.md +++ b/agent-context-shipped/files/b8a6831a7078b180.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -93,6 +107,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/a78ffa7309cd29b2.md b/agent-context-shipped/files/bd8bf51a8f2078e0.md similarity index 81% rename from server/python/src/metaobjects/agent_context/shipped/files/a78ffa7309cd29b2.md rename to agent-context-shipped/files/bd8bf51a8f2078e0.md index 55a47cec6a..476c48de23 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/a78ffa7309cd29b2.md +++ b/agent-context-shipped/files/bd8bf51a8f2078e0.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -81,6 +95,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/69c1ae480ae7dd7c.md b/agent-context-shipped/files/c0aa79f3c7327815.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/69c1ae480ae7dd7c.md rename to agent-context-shipped/files/c0aa79f3c7327815.md index 22266d26e1..ab66105902 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/69c1ae480ae7dd7c.md +++ b/agent-context-shipped/files/c0aa79f3c7327815.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/5b145f489f23b1c7.md b/agent-context-shipped/files/c7727ca39ba4d097.md similarity index 77% rename from server/python/src/metaobjects/agent_context/shipped/files/5b145f489f23b1c7.md rename to agent-context-shipped/files/c7727ca39ba4d097.md index bd68e7535d..02f00e9edb 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/5b145f489f23b1c7.md +++ b/agent-context-shipped/files/c7727ca39ba4d097.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -56,6 +70,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/61d9c5d06a2af7fd.md b/agent-context-shipped/files/cc3b1880c6b81540.md similarity index 98% rename from agent-context-shipped/files/61d9c5d06a2af7fd.md rename to agent-context-shipped/files/cc3b1880c6b81540.md index bee4e9c856..37d6ab0abf 100644 --- a/agent-context-shipped/files/61d9c5d06a2af7fd.md +++ b/agent-context-shipped/files/cc3b1880c6b81540.md @@ -179,7 +179,11 @@ you write its assertion (the three-way merge keeps it), a `planned` or `retired` skipped stub. Options: `filter` (a predicate over `subType`, `level`, `status`, `path`, `package`, `implementedByTypes` that REPLACES the default of functional L4/L5), `grain` (`"concern"`, the default, or `"member"`; anything else is refused), `warnUncovered`, -`renderers` / `resolveRenderer`. `meta eject requirement-tests` copies the generator and +`renderers` / `resolveRenderer`, and `framework` (`"bun"`, `"vitest"` or `"jest"`; absent, it +is read from `package.json`: vitest, else jest, else bun). The stubs land in +`/requirements/`, so the test runner's include pattern must cover that folder, or +point `target` at a directory it reads; a stub the runner never collects proves nothing. +`meta eject requirement-tests` copies the generator and its default stub renderer into `codegen/generators/requirement-tests.ts`; the requirement walk, each test's identity and the claim digest are engine and stay in the package. The requirement checks in `meta verify` are core and are not ejectable. diff --git a/agent-context-shipped/files/d0ba0e01fd2b3f7b.md b/agent-context-shipped/files/cfd2a3220683660a.md similarity index 79% rename from agent-context-shipped/files/d0ba0e01fd2b3f7b.md rename to agent-context-shipped/files/cfd2a3220683660a.md index f9cb943aea..800e78f7d3 100644 --- a/agent-context-shipped/files/d0ba0e01fd2b3f7b.md +++ b/agent-context-shipped/files/cfd2a3220683660a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -72,6 +86,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/cce65bd52d789e7f.md b/agent-context-shipped/files/d164e84569ccb35a.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/cce65bd52d789e7f.md rename to agent-context-shipped/files/d164e84569ccb35a.md index 96d73b6524..91d8871e86 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/cce65bd52d789e7f.md +++ b/agent-context-shipped/files/d164e84569ccb35a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/d3781278f0864159.md b/agent-context-shipped/files/d1dd8fce517c4397.md similarity index 77% rename from server/python/src/metaobjects/agent_context/shipped/files/d3781278f0864159.md rename to agent-context-shipped/files/d1dd8fce517c4397.md index f9bd4ee112..3bed86cb4e 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/d3781278f0864159.md +++ b/agent-context-shipped/files/d1dd8fce517c4397.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -56,6 +70,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/db90c9240f5bf92a.md b/agent-context-shipped/files/d21c634b4283acee.md similarity index 80% rename from agent-context-shipped/files/db90c9240f5bf92a.md rename to agent-context-shipped/files/d21c634b4283acee.md index aeea6c4f88..93fed0dd44 100644 --- a/agent-context-shipped/files/db90c9240f5bf92a.md +++ b/agent-context-shipped/files/d21c634b4283acee.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/80645315e02097b7.md b/agent-context-shipped/files/dd11651cf9d3f3c3.md similarity index 80% rename from server/python/src/metaobjects/agent_context/shipped/files/80645315e02097b7.md rename to agent-context-shipped/files/dd11651cf9d3f3c3.md index 668346431d..a48353e321 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/80645315e02097b7.md +++ b/agent-context-shipped/files/dd11651cf9d3f3c3.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/64726b55218b2d12.md b/agent-context-shipped/files/e27ff21bb76238d7.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/64726b55218b2d12.md rename to agent-context-shipped/files/e27ff21bb76238d7.md index 2fcdf0cc08..db3daa752f 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/64726b55218b2d12.md +++ b/agent-context-shipped/files/e27ff21bb76238d7.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -93,6 +107,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/e92260915394bacd.md b/agent-context-shipped/files/e92260915394bacd.md new file mode 100644 index 0000000000..2bc59ef65e --- /dev/null +++ b/agent-context-shipped/files/e92260915394bacd.md @@ -0,0 +1,25 @@ +# Business rules: lifecycles, commands and queries + +A status, state or stage enum whose values change only by allowed moves is a lifecycle: +declare each move as a `transition.action` child of that `field.enum` (`from`, `to`, an +optional `condition`). A named action someone runs (approve, vote, withdraw) is an +`operation.command` in an `api.operational`, and a named read an `operation.query`; each +carries a permission point. The model says which moves are legal and where a decision is +needed; the body of the rule stays code. `verify` checks the lifecycle (every state +reachable) in every port, and the TypeScript `service` generators enforce it at run time +(`meta init --with-services` wires them). The vocabulary is experimental (ADR-0066); see +`docs/features/business-rules.md` for the full shape. + +```yaml +- field.enum: + name: status + values: [open, passed, declined, withdrawn] + default: open + children: + - transition.action: { name: pass, from: [open], to: passed } + - transition.action: { name: decline, from: [open], to: declined } + - transition.action: { name: withdraw, from: [open], to: withdrawn } +``` + +Hand-writing a guarded `UPDATE ... WHERE status = 'open'` or a list of allowed moves is the +sign a lifecycle is undeclared. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/c34795834cd0a156.md b/agent-context-shipped/files/eb2a0f1848044c8f.md similarity index 80% rename from server/python/src/metaobjects/agent_context/shipped/files/c34795834cd0a156.md rename to agent-context-shipped/files/eb2a0f1848044c8f.md index c7bc2e3559..b9f5a3869a 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/c34795834cd0a156.md +++ b/agent-context-shipped/files/eb2a0f1848044c8f.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/9b387a8983e116d2.md b/agent-context-shipped/files/edcfbd15fb4e4ad7.md similarity index 81% rename from agent-context-shipped/files/9b387a8983e116d2.md rename to agent-context-shipped/files/edcfbd15fb4e4ad7.md index 0cd82e373d..b05e5287fd 100644 --- a/agent-context-shipped/files/9b387a8983e116d2.md +++ b/agent-context-shipped/files/edcfbd15fb4e4ad7.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/d46dd9dbffacbab6.md b/agent-context-shipped/files/f073f047e7007532.md similarity index 79% rename from server/python/src/metaobjects/agent_context/shipped/files/d46dd9dbffacbab6.md rename to agent-context-shipped/files/f073f047e7007532.md index 5a07be2f50..898d0e4ecc 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/d46dd9dbffacbab6.md +++ b/agent-context-shipped/files/f073f047e7007532.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -72,6 +86,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/e14e81035a4516a6.md b/agent-context-shipped/files/f6830e7c4050fd35.md similarity index 80% rename from server/python/src/metaobjects/agent_context/shipped/files/e14e81035a4516a6.md rename to agent-context-shipped/files/f6830e7c4050fd35.md index 0d68ee2ffe..8a85c97beb 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/e14e81035a4516a6.md +++ b/agent-context-shipped/files/f6830e7c4050fd35.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -74,6 +88,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/a3d1bbcd5fc2710a.md b/agent-context-shipped/files/f771dcc13e8b0638.md similarity index 79% rename from server/python/src/metaobjects/agent_context/shipped/files/a3d1bbcd5fc2710a.md rename to agent-context-shipped/files/f771dcc13e8b0638.md index f414c26b3c..02b3692faa 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/a3d1bbcd5fc2710a.md +++ b/agent-context-shipped/files/f771dcc13e8b0638.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/eff7b51e1cbb1a0e.md b/agent-context-shipped/files/f9bc269fedcab6bc.md similarity index 80% rename from server/python/src/metaobjects/agent_context/shipped/files/eff7b51e1cbb1a0e.md rename to agent-context-shipped/files/f9bc269fedcab6bc.md index 2675577e25..e24917b381 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/eff7b51e1cbb1a0e.md +++ b/agent-context-shipped/files/f9bc269fedcab6bc.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/b4af1faa1ef0d00f.md b/agent-context-shipped/files/fc52ade11f519ad2.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/b4af1faa1ef0d00f.md rename to agent-context-shipped/files/fc52ade11f519ad2.md index e66f2c06f6..8082ae36b7 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/b4af1faa1ef0d00f.md +++ b/agent-context-shipped/files/fc52ade11f519ad2.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/c015433005e43a29.md b/agent-context-shipped/files/fcae29d26c30c6e6.md similarity index 80% rename from agent-context-shipped/files/c015433005e43a29.md rename to agent-context-shipped/files/fcae29d26c30c6e6.md index 55c74f93c2..fcefe5c54c 100644 --- a/agent-context-shipped/files/c015433005e43a29.md +++ b/agent-context-shipped/files/fcae29d26c30c6e6.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/3d1bb461b13fe925.md b/agent-context-shipped/files/fcb03dc8ede84891.md similarity index 81% rename from server/python/src/metaobjects/agent_context/shipped/files/3d1bb461b13fe925.md rename to agent-context-shipped/files/fcb03dc8ede84891.md index 0eb226208c..672e70c5d9 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/3d1bb461b13fe925.md +++ b/agent-context-shipped/files/fcb03dc8ede84891.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -84,6 +98,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/0121296a2cb80b43.md b/agent-context-shipped/files/ff0436414346b01b.md similarity index 77% rename from agent-context-shipped/files/0121296a2cb80b43.md rename to agent-context-shipped/files/ff0436414346b01b.md index 1a30c84b6c..b166581a91 100644 --- a/agent-context-shipped/files/0121296a2cb80b43.md +++ b/agent-context-shipped/files/ff0436414346b01b.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -62,6 +76,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/manifest.json b/agent-context-shipped/manifest.json index 2b02b3de6f..b1e912da4f 100644 --- a/agent-context-shipped/manifest.json +++ b/agent-context-shipped/manifest.json @@ -51,7 +51,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -65,6 +65,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -107,7 +111,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -179,7 +183,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -219,7 +223,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "ad0876e3f0749dd4.md" + "file": "37fc1c1e1d520d26.md" } ] }, @@ -269,7 +273,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -283,6 +287,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -325,7 +333,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -397,7 +405,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -437,7 +445,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "92f68d0335098302.md" + "file": "610d3c0cb9608a71.md" } ] }, @@ -489,7 +497,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -503,6 +511,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -545,7 +557,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -617,7 +629,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -661,7 +673,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7da357a168d3819a.md" + "file": "2689f0fedb2de0f5.md" } ] }, @@ -713,7 +725,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -727,6 +739,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -769,7 +785,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -841,7 +857,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -885,7 +901,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "ddbd9ec7df5b0edb.md" + "file": "0b5af574087b7676.md" } ] }, @@ -938,7 +954,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -952,6 +968,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -994,7 +1014,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1066,7 +1086,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1114,7 +1134,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "c34795834cd0a156.md" + "file": "eb2a0f1848044c8f.md" } ] }, @@ -1167,7 +1187,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1181,6 +1201,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -1223,7 +1247,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1295,7 +1319,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1343,7 +1367,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9787437a82bb7e32.md" + "file": "987670c3f5dbf067.md" } ] }, @@ -1395,7 +1419,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1409,6 +1433,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -1451,7 +1479,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1523,7 +1551,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1563,7 +1591,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "80645315e02097b7.md" + "file": "dd11651cf9d3f3c3.md" } ] }, @@ -1615,7 +1643,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1629,6 +1657,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -1671,7 +1703,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1743,7 +1775,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1783,7 +1815,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "bffabb32b1e62ea4.md" + "file": "7e5805d8742096e7.md" } ] }, @@ -1833,7 +1865,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1847,6 +1879,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -1893,7 +1929,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1977,7 +2013,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "5b145f489f23b1c7.md" + "file": "c7727ca39ba4d097.md" } ] }, @@ -2027,7 +2063,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2041,6 +2077,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2087,7 +2127,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2171,7 +2211,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "c015433005e43a29.md" + "file": "fcae29d26c30c6e6.md" } ] }, @@ -2223,7 +2263,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2237,6 +2277,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2283,7 +2327,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2371,7 +2415,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "a3d1bbcd5fc2710a.md" + "file": "f771dcc13e8b0638.md" } ] }, @@ -2423,7 +2467,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2437,6 +2481,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2483,7 +2531,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2571,7 +2619,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "69c1ae480ae7dd7c.md" + "file": "c0aa79f3c7327815.md" } ] }, @@ -2624,7 +2672,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2638,6 +2686,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2684,7 +2736,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2776,7 +2828,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "b766591d53ab5c06.md" + "file": "469aec1576197f28.md" } ] }, @@ -2829,7 +2881,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2843,6 +2895,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2889,7 +2945,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2981,7 +3037,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "6c632f2dcebb53ea.md" + "file": "6324e418aa8f3ca9.md" } ] }, @@ -3033,7 +3089,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3047,6 +3103,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3093,7 +3153,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3177,7 +3237,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "77b583899dabdd55.md" + "file": "070ba86ed3e76df5.md" } ] }, @@ -3229,7 +3289,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3243,6 +3303,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3289,7 +3353,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3373,7 +3437,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7d185435e40d7e2d.md" + "file": "95729d5fbfaf0d35.md" } ] }, @@ -3423,7 +3487,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3437,6 +3501,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3483,7 +3551,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3567,7 +3635,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d3781278f0864159.md" + "file": "d1dd8fce517c4397.md" } ] }, @@ -3617,7 +3685,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3631,6 +3699,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3677,7 +3749,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3761,7 +3833,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "cf820e73bf82c1dc.md" + "file": "7e655b38310e039a.md" } ] }, @@ -3813,7 +3885,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3827,6 +3899,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3873,7 +3949,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3961,7 +4037,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "8692936865b8ca78.md" + "file": "995daf1c0b9a64ef.md" } ] }, @@ -4013,7 +4089,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4027,6 +4103,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4073,7 +4153,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4161,7 +4241,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "cce65bd52d789e7f.md" + "file": "d164e84569ccb35a.md" } ] }, @@ -4214,7 +4294,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4228,6 +4308,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4274,7 +4358,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4366,7 +4450,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "b6d58488c3486eae.md" + "file": "23eeddecbf333c35.md" } ] }, @@ -4419,7 +4503,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4433,6 +4517,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4479,7 +4567,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4571,7 +4659,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9827ffbab8ae5c2d.md" + "file": "180ea012b7662e9b.md" } ] }, @@ -4623,7 +4711,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4637,6 +4725,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4683,7 +4775,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4767,7 +4859,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "8d415448458487c1.md" + "file": "a91973d190a00b23.md" } ] }, @@ -4819,7 +4911,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4833,6 +4925,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4879,7 +4975,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4963,7 +5059,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "1813baf4e1ff00dc.md" + "file": "22f1fc4abae9172c.md" } ] }, @@ -5013,7 +5109,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5027,6 +5123,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5073,7 +5173,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5157,7 +5257,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "4bf396aa4831d3b0.md" + "file": "38e72e6b0ab7f58a.md" } ] }, @@ -5207,7 +5307,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5221,6 +5321,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5267,7 +5371,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5351,7 +5455,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "68aea133c93dc3c6.md" + "file": "0fa8c9d99447d618.md" } ] }, @@ -5403,7 +5507,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5417,6 +5521,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5463,7 +5571,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5551,7 +5659,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "eb9a53fcc569deb6.md" + "file": "a9fb54f0efbd6879.md" } ] }, @@ -5603,7 +5711,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5617,6 +5725,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5663,7 +5775,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5751,7 +5863,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "12851cf06a512e01.md" + "file": "b8a6831a7078b180.md" } ] }, @@ -5804,7 +5916,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5818,6 +5930,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5864,7 +5980,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5956,7 +6072,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "e14e81035a4516a6.md" + "file": "f6830e7c4050fd35.md" } ] }, @@ -6009,7 +6125,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6023,6 +6139,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6069,7 +6189,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6161,7 +6281,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "64726b55218b2d12.md" + "file": "e27ff21bb76238d7.md" } ] }, @@ -6213,7 +6333,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6227,6 +6347,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6273,7 +6397,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6357,7 +6481,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "6eaaf67c049daead.md" + "file": "0da05b8a8f726c59.md" } ] }, @@ -6409,7 +6533,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6423,6 +6547,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6469,7 +6597,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6553,7 +6681,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d6d7f822563ee216.md" + "file": "3afe3b4c6ce94288.md" } ] }, @@ -6603,7 +6731,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6617,6 +6745,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6663,7 +6795,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6747,7 +6879,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7cb243bcfd1823db.md" + "file": "9c7210dbf22f468a.md" } ] }, @@ -6797,7 +6929,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6811,6 +6943,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6857,7 +6993,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6941,7 +7077,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "3d1bb461b13fe925.md" + "file": "fcb03dc8ede84891.md" } ] }, @@ -6993,7 +7129,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7007,6 +7143,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7053,7 +7193,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7141,7 +7281,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "db90c9240f5bf92a.md" + "file": "d21c634b4283acee.md" } ] }, @@ -7193,7 +7333,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7207,6 +7347,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7253,7 +7397,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7341,7 +7485,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9de55e412aee8057.md" + "file": "0c366480181a4f29.md" } ] }, @@ -7394,7 +7538,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7408,6 +7552,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7454,7 +7602,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7546,7 +7694,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "eff7b51e1cbb1a0e.md" + "file": "f9bc269fedcab6bc.md" } ] }, @@ -7599,7 +7747,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7613,6 +7761,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7659,7 +7811,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7751,7 +7903,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7d6c30e9d03b88b9.md" + "file": "aba79b6a5f1c6df7.md" } ] }, @@ -7803,7 +7955,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7817,6 +7969,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7863,7 +8019,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7947,7 +8103,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "f0d3aa0b6ca8c7b5.md" + "file": "16ca093e7d3e50b8.md" } ] }, @@ -7999,7 +8155,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8013,6 +8169,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8059,7 +8219,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8143,7 +8303,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "3351fb1999f7cddc.md" + "file": "3e59bf0de96d4e94.md" } ] }, @@ -8189,7 +8349,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8203,6 +8363,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8245,7 +8409,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8317,7 +8481,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "0121296a2cb80b43.md" + "file": "ff0436414346b01b.md" } ] }, @@ -8363,7 +8527,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8377,6 +8541,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8419,7 +8587,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8491,7 +8659,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "a78ffa7309cd29b2.md" + "file": "bd8bf51a8f2078e0.md" } ] }, @@ -8539,7 +8707,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8553,6 +8721,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8595,7 +8767,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8671,7 +8843,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d0ba0e01fd2b3f7b.md" + "file": "cfd2a3220683660a.md" } ] }, @@ -8719,7 +8891,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8733,6 +8905,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8775,7 +8951,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8851,7 +9027,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "10fd5004cdff1b02.md" + "file": "7375f17656d07312.md" } ] }, @@ -8900,7 +9076,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8914,6 +9090,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8956,7 +9136,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9036,7 +9216,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "dbc673d7e2efb728.md" + "file": "a978cd0effa00e0c.md" } ] }, @@ -9085,7 +9265,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9099,6 +9279,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9141,7 +9325,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9221,7 +9405,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9e4438fd935ebc25.md" + "file": "85bc169462e1acef.md" } ] }, @@ -9269,7 +9453,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9283,6 +9467,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9325,7 +9513,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9397,7 +9585,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d46dd9dbffacbab6.md" + "file": "f073f047e7007532.md" } ] }, @@ -9445,7 +9633,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9459,6 +9647,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9501,7 +9693,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9573,7 +9765,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "c4cea8aaaf65fd1c.md" + "file": "6e98c98cde6411e2.md" } ] }, @@ -9628,7 +9820,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9642,6 +9834,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9692,7 +9888,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9788,7 +9984,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "ea6a3a84c8377d9f.md" + "file": "b43a6bcce62efccb.md" } ] }, @@ -9843,7 +10039,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9857,6 +10053,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9907,7 +10107,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10003,7 +10203,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "b4af1faa1ef0d00f.md" + "file": "fc52ade11f519ad2.md" } ] }, @@ -10060,7 +10260,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10074,6 +10274,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -10124,7 +10328,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10224,7 +10428,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "2a850663b29e895c.md" + "file": "b265aeb870f81aa9.md" } ] }, @@ -10281,7 +10485,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10295,6 +10499,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -10345,7 +10553,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10445,7 +10653,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "8f920c881b85118b.md" + "file": "1830b9df68903eb9.md" } ] }, @@ -10503,7 +10711,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10517,6 +10725,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -10567,7 +10779,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10671,7 +10883,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "c51749f6baf00a9b.md" + "file": "5cb6da08078dcbee.md" } ] }, @@ -10729,7 +10941,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10743,6 +10955,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -10793,7 +11009,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10897,7 +11113,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "1d61842e76db07d7.md" + "file": "619eeeddb8de4749.md" } ] }, @@ -10954,7 +11170,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10968,6 +11184,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -11018,7 +11238,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -11114,7 +11334,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9b387a8983e116d2.md" + "file": "edcfbd15fb4e4ad7.md" } ] }, @@ -11171,7 +11391,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -11185,6 +11405,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -11235,7 +11459,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -11331,7 +11555,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "2b4a4bfa31529de3.md" + "file": "47a9c12e127a574d.md" } ] } diff --git a/agent-context/skills/metaobjects-authoring/SKILL.md b/agent-context/skills/metaobjects-authoring/SKILL.md index 211102dfdf..ae12d24feb 100644 --- a/agent-context/skills/metaobjects-authoring/SKILL.md +++ b/agent-context/skills/metaobjects-authoring/SKILL.md @@ -11,11 +11,12 @@ emits code in each language from it, and the drift gates check everything agains ## Essentials - **Declare it; do not hand-write it.** Persistence, data access, validation, APIs and UI - scaffolding are derived from metadata. When you reach for a hand-written query, route, - validator, relationship or aggregate, that is usually metadata nobody has declared yet: - look for the construct first (`meta types `). Declare it when the cost test favours - it: smaller declared than hand-written, more than one instance, or drift protection a - hand-write cannot give. A one-off with none of these can stay hand-written. + scaffolding are derived from metadata. A hand-written query, route, validator, relationship + or aggregate is usually metadata nobody has declared yet: look for the construct first + (`meta types `); a status lifecycle or a named action is a business rule + (`references/business-rules.md`). Declare it when the cost test favours it: smaller declared + than hand-written, more than one instance, or drift protection a hand-write cannot give. + A one-off with none of these can stay hand-written. - **Adoption reverses the direction.** When working code or a populated schema already exists, it is the specification and the metadata reproduces it: its names, types and nullability. Read `references/adopting-existing-code.md` before modeling anything. @@ -26,8 +27,7 @@ emits code in each language from it, and the drift gates check everything agains shaped by `references/semantic-modelling.md` (what a thing is, never a product or a step). - **Choose a field's shape by what the value is, not how it is stored**: a UUID is `field.uuid`, money is `field.currency`, a list is `isArray: true`, and a JSON column takes - the type its writer already declares. The canonical-form table below covers the common - cases. + the type its writer already declares. The canonical-form table below covers common cases. - **A relationship's subtype sets the default delete action, and the FK-owning (child) side governs.** Modeling every link as `composition` arms cascades nobody asked for. - **In YAML, quote any scalar that looks like a boolean, number, date or null.** @@ -479,6 +479,7 @@ with no reason to exist becomes visible. Reach for them when the project needs t - **"What have we committed to build and not built yet?"** `@status: planned`: the one status where a dangling `@implementedBy` is correct. It never counts toward object coverage. - **"Which ticket covers this?"** `@trackedBy`. +- **"Is this behaviour built?"** Point the claim at its transition or operation, not its table. Every requirement must be violable: if you cannot say what breaking it looks like, it is a description, not a requirement. diff --git a/agent-context/skills/metaobjects-authoring/references/business-rules.md b/agent-context/skills/metaobjects-authoring/references/business-rules.md new file mode 100644 index 0000000000..2bc59ef65e --- /dev/null +++ b/agent-context/skills/metaobjects-authoring/references/business-rules.md @@ -0,0 +1,25 @@ +# Business rules: lifecycles, commands and queries + +A status, state or stage enum whose values change only by allowed moves is a lifecycle: +declare each move as a `transition.action` child of that `field.enum` (`from`, `to`, an +optional `condition`). A named action someone runs (approve, vote, withdraw) is an +`operation.command` in an `api.operational`, and a named read an `operation.query`; each +carries a permission point. The model says which moves are legal and where a decision is +needed; the body of the rule stays code. `verify` checks the lifecycle (every state +reachable) in every port, and the TypeScript `service` generators enforce it at run time +(`meta init --with-services` wires them). The vocabulary is experimental (ADR-0066); see +`docs/features/business-rules.md` for the full shape. + +```yaml +- field.enum: + name: status + values: [open, passed, declined, withdrawn] + default: open + children: + - transition.action: { name: pass, from: [open], to: passed } + - transition.action: { name: decline, from: [open], to: declined } + - transition.action: { name: withdraw, from: [open], to: withdrawn } +``` + +Hand-writing a guarded `UPDATE ... WHERE status = 'open'` or a list of allowed moves is the +sign a lifecycle is undeclared. diff --git a/agent-context/skills/metaobjects-authoring/references/requirements.md b/agent-context/skills/metaobjects-authoring/references/requirements.md index e2e63964d2..6ef3585b6c 100644 --- a/agent-context/skills/metaobjects-authoring/references/requirements.md +++ b/agent-context/skills/metaobjects-authoring/references/requirements.md @@ -116,6 +116,14 @@ service — these never reference the model. **L4** binds a declared top-level n validator, identity, a template's child, an operation, or a transition. `implementedBy` above L4 is an error. Regrouping *moves* a node; it does not edit a parent string. +**A behaviour claim points at behaviour.** "A request is cancelled only while open" names the +transition (`..`, e.g. `acme::orders::Order.status.cancel`); "a +reviewer decides a request" names the operation (`.`, e.g. +`acme::purchasing::Purchasing.decide`). A claim that names only the entity it touches is +satisfied by a table that exists whether or not the rule is built. When the transition or +operation is not declared yet, declare it (`references/business-rules.md`) or +leave the claim `planned` with the ref it will have. + **Write an L5 ref as a dotted `pkg::Owner.member` path** — the level and the shape of the ref must agree, and this is the single easiest thing to get wrong: diff --git a/agent-context/skills/metaobjects-codegen/references/typescript.md b/agent-context/skills/metaobjects-codegen/references/typescript.md index bee4e9c856..37d6ab0abf 100644 --- a/agent-context/skills/metaobjects-codegen/references/typescript.md +++ b/agent-context/skills/metaobjects-codegen/references/typescript.md @@ -179,7 +179,11 @@ you write its assertion (the three-way merge keeps it), a `planned` or `retired` skipped stub. Options: `filter` (a predicate over `subType`, `level`, `status`, `path`, `package`, `implementedByTypes` that REPLACES the default of functional L4/L5), `grain` (`"concern"`, the default, or `"member"`; anything else is refused), `warnUncovered`, -`renderers` / `resolveRenderer`. `meta eject requirement-tests` copies the generator and +`renderers` / `resolveRenderer`, and `framework` (`"bun"`, `"vitest"` or `"jest"`; absent, it +is read from `package.json`: vitest, else jest, else bun). The stubs land in +`/requirements/`, so the test runner's include pattern must cover that folder, or +point `target` at a directory it reads; a stub the runner never collects proves nothing. +`meta eject requirement-tests` copies the generator and its default stub renderer into `codegen/generators/requirement-tests.ts`; the requirement walk, each test's identity and the claim digest are engine and stay in the package. The requirement checks in `meta verify` are core and are not ejectable. diff --git a/agent-context/skills/metaobjects-fit-assessment/SKILL.md b/agent-context/skills/metaobjects-fit-assessment/SKILL.md index 44722c90fd..cbcf3abc4f 100644 --- a/agent-context/skills/metaobjects-fit-assessment/SKILL.md +++ b/agent-context/skills/metaobjects-fit-assessment/SKILL.md @@ -65,7 +65,7 @@ adopt, where, and whether any of it is worth the tooling**. Adoption is a spectr | **NOT WORTH IT** | nothing | everything | | **CONTRACT SPINE** | the shapes that cross a boundary between apps, services or languages (shared entity shapes, API payloads, event and message bodies, prompt payloads), declared once; each side generates only the types, DTOs and validators it compiles against; `verify --codegen` fails the build of any side whose copy is stale | the ORM, the migrations, the routes, all hand-written code | | **PARTIAL** | one layer or one subsystem: e.g. the schema drift gate on a set of Postgres tables, the prompt layer, or the whole stack of one new service | everything outside that layer or subsystem | -| **FULL** | the model: DDL via `meta migrate`, generated entities/ORM wiring, routes, validators, UI tier where the port has one | business logic, auth, irreducible SQL | +| **FULL** | the model: DDL via `meta migrate`, generated entities/ORM wiring, routes, validators, UI tier where the port has one | the bodies of business rules (their lifecycles, permission points and operations are declared), auth, irreducible SQL | **The size-and-shape rule** (a product ruling: apply it as given): @@ -420,7 +420,8 @@ Each suggestion: `metadata_sketch` + honest effort. If a hunt line has hits, it ### P8 — Limits (feeds §R7) Work § Capability sheet for the target's ports. Always include: the schema pillar is Node-`meta` -only and Postgres/SQLite/D1 only; business logic, irreducible SQL, auth and bespoke +only and Postgres/SQLite/D1 only; the bodies of business rules (their lifecycles, +permission points and operations are declared), irreducible SQL, auth and bespoke visualisation stay hand-written; adopting means owning a codegen step; metadata authoring debt is real — price it; early `verify --db` runs surface legacy oddities, which are findings, not noise. And, explicitly: *this assessment can read your code, not your roadmap* — name who gave diff --git a/agent-context/skills/metaobjects-fit-assessment/references/capability-sheet.md b/agent-context/skills/metaobjects-fit-assessment/references/capability-sheet.md index 8dca32b9f1..645e397587 100644 --- a/agent-context/skills/metaobjects-fit-assessment/references/capability-sheet.md +++ b/agent-context/skills/metaobjects-fit-assessment/references/capability-sheet.md @@ -85,8 +85,9 @@ a released version counts these as generators the project writes, from the examp `docs/recipes/write-your-own-generator.md`. **Contract-only cannot** bind a shape to a queue, topic or transport as declared vocabulary -(the declared-API vocabulary is experimental, its only protocol binding is `binding.rest`, and a -messaging binding is reserved); a generator can still emit per-transport code from the shapes. +(the declared-API vocabulary is experimental, and only `binding.rest` generates anything: +`binding.messaging` and `binding.file` load and verify but generate nothing); a generator can still +emit per-transport code from the shapes. - promise byte-identical JSON from type-only output: field-name casing on the wire follows each consumer's serializer settings (the byte-identical REST wire is a property of the *generated routes*, gated by `fixtures/api-contract-conformance/`). Check it in the wedge. @@ -141,6 +142,19 @@ messaging binding is reserved); a generator can still emit per-transport code fr `.j2`, `.jinja2`) in Python and TypeScript only; Java, Kotlin and C# render Mustache and refuse a Jinja-only body with `ERR_TEMPLATE_ENGINE_UNSUPPORTED`. MCP exposure of declared prompts/tools is not shipped. -- **Not shipped, never promise**: the `api.*`/`operation.*`/`binding.*` declared-API surface, - which is registered but experimental (ADR-0066) and generates nothing yet; the cut `byte`/`short`/`class` field stubs; `index.fulltext`/`vector`/`spatial`; native PG enums +- **Business rules** (ADR-0066, experimental vocabulary): a lifecycle is a `transition.action` + on a status enum, a named action an `operation.command`, a named read an `operation.query`, + and each carries a permission point. The vocabulary loads and `verify` checks it in all five + ports. The TypeScript `service` generator (`serviceFile()`, behind the `service-routes` + Fastify or `service-routes-hono` transport; `meta init --with-services` wires them) generates + each package's lifecycles, commands, queries and permission points: a command per transition + that no declared command claims, a shell per declared command and query whose body you write, and at run time the + permission check, the state check and the guarded update. Rust's `service` generator covers the same + ground; the other ports' services are not shipped. On Cloudflare D1 + (`serviceFile({ interactiveTransactions: false })`) a declared command is refused + (`ERR_STORE_NO_INTERACTIVE_TX`) and generation fails; a package with no declared command still + generates its transitions and queries. +- **Not shipped, never promise**: the eventing and batch APIs (`api.eventing`/`api.batch`, + `operation.event`/`export`/`import`, `binding.messaging`/`file`), which load and verify but + generate nothing; the cut `byte`/`short`/`class` field stubs; `index.fulltext`/`vector`/`spatial`; native PG enums and int-backed enums. diff --git a/agent-context/templates/always-on.md.mustache b/agent-context/templates/always-on.md.mustache index 21b8b54b32..58358860af 100644 --- a/agent-context/templates/always-on.md.mustache +++ b/agent-context/templates/always-on.md.mustache @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + {{stackLoops}} {{#migration}} ### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) @@ -73,6 +87,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/changelog.d/requirements-and-business-rules-by-default.md b/changelog.d/requirements-and-business-rules-by-default.md new file mode 100644 index 0000000000..5297c3a300 --- /dev/null +++ b/changelog.d/requirements-and-business-rules-by-default.md @@ -0,0 +1,34 @@ +- **Requirements and business rules are on the default path: agent guidance, `meta init`, + `meta verify`, `requirementTests()` and `formFile()`.** An adopter's review found an agent + hand-writing what the model could declare and never touching the requirements ledger. Six fixes: + - The fit assessment's capability sheet (the hosted `assess.md`) now says what ships: + `transition.action` lifecycles, `operation.command`/`operation.query` and their permission + points generate in the TypeScript `service` layer (and in Rust's `service`), and on D1 a + declared command is refused and generation fails. FULL's "stays hand-written" is now the bodies of + business rules. + - The always-on agent guidance gains a step 0 (when a project keeps a ledger: one + `requirement.functional` per feature before building it, nested under the ledger's level-1 node; + its claims on level-4/5 children, the only levels that carry `@implementedBy` and get a test + stub, with a behaviour claim at level 5 pointing at the transition or operation; + `requirement-tests` wired, a planned claim's stub skipped until it is `live`; `@status` + updated in the same commit) + and a business-rules rule. The `metaobjects-authoring` skill gains + `references/business-rules.md`. Requirements stay opt-in. Regenerate agent context with + `meta init --refresh-docs`. + - `meta init` writes `metaobjects/meta.requirements.json`, an empty ledger, into a new + metadata directory. Nothing turns on until the project declares a requirement: the + config's comment and the next steps say to add a first level-1 `requirement.functional`, + nest one per feature under it, put `@implementedBy` on level-4/5 claims and wire + `requirementTests()`. It still wires no generator (ADR-0034 Amendment 2). + - `requirementTests()` writes stubs for the project's test runner: vitest, jest or `bun:test`, + read from `package.json`, or set with the new `framework` option. With neither vitest nor + jest declared, output is unchanged. The runner's include pattern must cover the stubs' + folder (`/requirements/`). + - `meta verify` repeats `meta gen`'s warning that a project declares requirements and wires no + `requirementTests()`, in text and in `--json` (`help`), and no longer reports "nothing + advisory to answer" while it stands. + - `formFile()`: the create resolver omits a required `@formExclude` field (a scope column the + server stamps) or credential (a `view.password` field the application writes), so a create + form whose only missing value is one it never renders can submit. An entity with cross-field validators keeps the old schema, because a refined Zod + schema cannot be `.omit()`ed. Generated-output change — regenerate to pick it up; three-way + merge preserves hand edits. diff --git a/docs/features/cli.md b/docs/features/cli.md index 009487fb76..8cecb6c0cc 100644 --- a/docs/features/cli.md +++ b/docs/features/cli.md @@ -25,7 +25,7 @@ command surface splits in two: | Capability | Tool | Invocation | Notes | |---|---|---|---| -| Project scaffold (`init`) | Node `meta` | `meta init` | TS projects; `--dialect sqlite\|postgres\|mysql\|d1` writes the codegen `dialect` in `metaobjects.config.ts` and, for sqlite, postgres and d1, `migrate.dialect` in `.metaobjects/config.json` (d1 is `--d1`; MySQL schema is not `meta migrate`'s). A new `.metaobjects/config.json` also carries `"api": { "pagination": { "defaultLimit": 50, "maxLimit": 1000 }, "unknownFields": "reject" }`, the generated list routes' page size and the refusal of undeclared write keys ([api-contract.md](api-contract.md)); for `--dialect sqlite` it also adds `@libsql/kysely-libsql` to the project's `dependencies`, the SQLite driver the CLI's optional peer names (run your package manager's install afterwards); `--force` over an existing config does not add it. `--with-services` wires the recommended service list ([business-rules.md](business-rules.md#the-service-layer-typescript)) instead of the empty one, and `--with-docs` the two docs generators (`docsSiteFile(), apiDocsFile()`) | +| Project scaffold (`init`) | Node `meta` | `meta init` | TS projects; `--dialect sqlite\|postgres\|mysql\|d1` writes the codegen `dialect` in `metaobjects.config.ts` and, for sqlite, postgres and d1, `migrate.dialect` in `.metaobjects/config.json` (d1 is `--d1`; MySQL schema is not `meta migrate`'s). A new `.metaobjects/config.json` also carries `"api": { "pagination": { "defaultLimit": 50, "maxLimit": 1000 }, "unknownFields": "reject" }`, the generated list routes' page size and the refusal of undeclared write keys ([api-contract.md](api-contract.md)); for `--dialect sqlite` it also adds `@libsql/kysely-libsql` to the project's `dependencies`, the SQLite driver the CLI's optional peer names (run your package manager's install afterwards); `--force` over an existing config does not add it. A new metadata directory also gets `meta.requirements.json`, an empty requirement ledger: nothing turns on until the project adds its first level-1 `requirement.functional` to it, and the config names `requirementTests()` without wiring it ([requirements.md](requirements.md)). `--with-services` wires the recommended service list ([business-rules.md](business-rules.md#the-service-layer-typescript)) instead of the empty one, and `--with-docs` the two docs generators (`docsSiteFile(), apiDocsFile()`) | | **Agent-context scaffold** (`agent-docs`) | **Node `meta`** | `npx meta agent-docs --server ` | **any backend** — single assembler (ADR-0033); every port writes the same files itself with no Node: `metaobjects agent-docs` (Python), `dotnet meta agent-docs` (C#), `mvn metaobjects:agent-docs` (Java/Kotlin), `cargo meta agent-docs` (Rust) | | **Expected schema** (`schema`) | **Node `meta`** | `meta schema [--dialect ] [--as ddl\|json]` | **any backend** — read-only: prints the schema the metadata expects as DDL or as the neutral document ([schema-snapshot-format.md](schema-snapshot-format.md)); reads no database; writes nothing unless `--out` names a file | | **Schema migrate** | **Node `meta`** | `meta migrate` | **any backend** — the reference migration helper, one option beside each language's own tool (ADR-0015) | diff --git a/docs/features/requirements.md b/docs/features/requirements.md index e59a605ac8..4e7361ff7f 100644 --- a/docs/features/requirements.md +++ b/docs/features/requirements.md @@ -554,12 +554,21 @@ what a renderer receives. | Port | Framework | Files | The project supplies | |---|---|---|---| -| TypeScript | `bun:test` in the default stub | One stub per test: `requirements/..test.ts`, or `requirements/.test.ts` for a requirement that resolves no reference. | The assertion, written into the stub. The three-way merge keeps it. | +| TypeScript | the project's runner: vitest when `package.json` depends on it, else jest, else `bun:test` (or `framework: "vitest" \| "jest" \| "bun"`) | One stub per test, in the generator's output directory: `requirements/..test.ts`, or `requirements/.test.ts` for a requirement that resolves no reference. | The assertion, written into the stub. The three-way merge keeps it. | | Python | pytest | `requirements/test__requirements.py`, one per metamodel package. | A function named by the witness key, in the witness module (`tests.requirement_witnesses` by default). | | Java | JUnit Jupiter | `Requirements__Witnesses.java` and `Requirements__Test.java`, in `testPackage`. | The class `witnessClass` names, implementing each generated interface. | | Kotlin | JUnit Jupiter | `Requirements__Witnesses.kt` and `Requirements__Test.kt`, in `testPackage`. | As Java. | | C# | xUnit | `Requirements__Witnesses.g.cs` and `Requirements__Tests.g.cs`. | The class `WitnessClass` names, implementing each generated interface. | +The TypeScript stubs land under the generator's output directory (`outDir`, or the directory +of the `target` it names), not in the project's test folder. **The test runner's include +pattern must cover that folder**, or the stubs never run and every claim looks proven: a +vitest `include: ["test/*.test.ts"]` never sees `src/generated/requirements/`. Either widen +the pattern, or give the generator a `target` (or a `path` with its `owns`) inside the folder +the runner reads. A jest stub has no `expect.unreachable`, so it throws instead. It imports +`test` from `@jest/globals`: where the package manager does not hoist that package (pnpm), +declare it in `package.json` so the stub typechecks. + `` is the metamodel package with each run of non-alphanumeric characters as one `_` (`acme::shop` gives `acme_shop`), or `root` for a requirement with no package. diff --git a/fixtures/agent-context-conformance/csharp/expected/.claude/skills/metaobjects-authoring/SKILL.md b/fixtures/agent-context-conformance/csharp/expected/.claude/skills/metaobjects-authoring/SKILL.md index 211102dfdf..ae12d24feb 100644 --- a/fixtures/agent-context-conformance/csharp/expected/.claude/skills/metaobjects-authoring/SKILL.md +++ b/fixtures/agent-context-conformance/csharp/expected/.claude/skills/metaobjects-authoring/SKILL.md @@ -11,11 +11,12 @@ emits code in each language from it, and the drift gates check everything agains ## Essentials - **Declare it; do not hand-write it.** Persistence, data access, validation, APIs and UI - scaffolding are derived from metadata. When you reach for a hand-written query, route, - validator, relationship or aggregate, that is usually metadata nobody has declared yet: - look for the construct first (`meta types `). Declare it when the cost test favours - it: smaller declared than hand-written, more than one instance, or drift protection a - hand-write cannot give. A one-off with none of these can stay hand-written. + scaffolding are derived from metadata. A hand-written query, route, validator, relationship + or aggregate is usually metadata nobody has declared yet: look for the construct first + (`meta types `); a status lifecycle or a named action is a business rule + (`references/business-rules.md`). Declare it when the cost test favours it: smaller declared + than hand-written, more than one instance, or drift protection a hand-write cannot give. + A one-off with none of these can stay hand-written. - **Adoption reverses the direction.** When working code or a populated schema already exists, it is the specification and the metadata reproduces it: its names, types and nullability. Read `references/adopting-existing-code.md` before modeling anything. @@ -26,8 +27,7 @@ emits code in each language from it, and the drift gates check everything agains shaped by `references/semantic-modelling.md` (what a thing is, never a product or a step). - **Choose a field's shape by what the value is, not how it is stored**: a UUID is `field.uuid`, money is `field.currency`, a list is `isArray: true`, and a JSON column takes - the type its writer already declares. The canonical-form table below covers the common - cases. + the type its writer already declares. The canonical-form table below covers common cases. - **A relationship's subtype sets the default delete action, and the FK-owning (child) side governs.** Modeling every link as `composition` arms cascades nobody asked for. - **In YAML, quote any scalar that looks like a boolean, number, date or null.** @@ -479,6 +479,7 @@ with no reason to exist becomes visible. Reach for them when the project needs t - **"What have we committed to build and not built yet?"** `@status: planned`: the one status where a dangling `@implementedBy` is correct. It never counts toward object coverage. - **"Which ticket covers this?"** `@trackedBy`. +- **"Is this behaviour built?"** Point the claim at its transition or operation, not its table. Every requirement must be violable: if you cannot say what breaking it looks like, it is a description, not a requirement. diff --git a/fixtures/agent-context-conformance/csharp/expected/.claude/skills/metaobjects-authoring/references/business-rules.md b/fixtures/agent-context-conformance/csharp/expected/.claude/skills/metaobjects-authoring/references/business-rules.md new file mode 100644 index 0000000000..2bc59ef65e --- /dev/null +++ b/fixtures/agent-context-conformance/csharp/expected/.claude/skills/metaobjects-authoring/references/business-rules.md @@ -0,0 +1,25 @@ +# Business rules: lifecycles, commands and queries + +A status, state or stage enum whose values change only by allowed moves is a lifecycle: +declare each move as a `transition.action` child of that `field.enum` (`from`, `to`, an +optional `condition`). A named action someone runs (approve, vote, withdraw) is an +`operation.command` in an `api.operational`, and a named read an `operation.query`; each +carries a permission point. The model says which moves are legal and where a decision is +needed; the body of the rule stays code. `verify` checks the lifecycle (every state +reachable) in every port, and the TypeScript `service` generators enforce it at run time +(`meta init --with-services` wires them). The vocabulary is experimental (ADR-0066); see +`docs/features/business-rules.md` for the full shape. + +```yaml +- field.enum: + name: status + values: [open, passed, declined, withdrawn] + default: open + children: + - transition.action: { name: pass, from: [open], to: passed } + - transition.action: { name: decline, from: [open], to: declined } + - transition.action: { name: withdraw, from: [open], to: withdrawn } +``` + +Hand-writing a guarded `UPDATE ... WHERE status = 'open'` or a list of allowed moves is the +sign a lifecycle is undeclared. diff --git a/fixtures/agent-context-conformance/csharp/expected/.claude/skills/metaobjects-authoring/references/requirements.md b/fixtures/agent-context-conformance/csharp/expected/.claude/skills/metaobjects-authoring/references/requirements.md index e2e63964d2..6ef3585b6c 100644 --- a/fixtures/agent-context-conformance/csharp/expected/.claude/skills/metaobjects-authoring/references/requirements.md +++ b/fixtures/agent-context-conformance/csharp/expected/.claude/skills/metaobjects-authoring/references/requirements.md @@ -116,6 +116,14 @@ service — these never reference the model. **L4** binds a declared top-level n validator, identity, a template's child, an operation, or a transition. `implementedBy` above L4 is an error. Regrouping *moves* a node; it does not edit a parent string. +**A behaviour claim points at behaviour.** "A request is cancelled only while open" names the +transition (`..`, e.g. `acme::orders::Order.status.cancel`); "a +reviewer decides a request" names the operation (`.`, e.g. +`acme::purchasing::Purchasing.decide`). A claim that names only the entity it touches is +satisfied by a table that exists whether or not the rule is built. When the transition or +operation is not declared yet, declare it (`references/business-rules.md`) or +leave the claim `planned` with the ref it will have. + **Write an L5 ref as a dotted `pkg::Owner.member` path** — the level and the shape of the ref must agree, and this is the single easiest thing to get wrong: diff --git a/fixtures/agent-context-conformance/csharp/expected/.metaobjects/AGENTS.md b/fixtures/agent-context-conformance/csharp/expected/.metaobjects/AGENTS.md index f0e4c48037..03298b2b0b 100644 --- a/fixtures/agent-context-conformance/csharp/expected/.metaobjects/AGENTS.md +++ b/fixtures/agent-context-conformance/csharp/expected/.metaobjects/AGENTS.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -64,6 +78,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-authoring/SKILL.md b/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-authoring/SKILL.md index 211102dfdf..ae12d24feb 100644 --- a/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-authoring/SKILL.md +++ b/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-authoring/SKILL.md @@ -11,11 +11,12 @@ emits code in each language from it, and the drift gates check everything agains ## Essentials - **Declare it; do not hand-write it.** Persistence, data access, validation, APIs and UI - scaffolding are derived from metadata. When you reach for a hand-written query, route, - validator, relationship or aggregate, that is usually metadata nobody has declared yet: - look for the construct first (`meta types `). Declare it when the cost test favours - it: smaller declared than hand-written, more than one instance, or drift protection a - hand-write cannot give. A one-off with none of these can stay hand-written. + scaffolding are derived from metadata. A hand-written query, route, validator, relationship + or aggregate is usually metadata nobody has declared yet: look for the construct first + (`meta types `); a status lifecycle or a named action is a business rule + (`references/business-rules.md`). Declare it when the cost test favours it: smaller declared + than hand-written, more than one instance, or drift protection a hand-write cannot give. + A one-off with none of these can stay hand-written. - **Adoption reverses the direction.** When working code or a populated schema already exists, it is the specification and the metadata reproduces it: its names, types and nullability. Read `references/adopting-existing-code.md` before modeling anything. @@ -26,8 +27,7 @@ emits code in each language from it, and the drift gates check everything agains shaped by `references/semantic-modelling.md` (what a thing is, never a product or a step). - **Choose a field's shape by what the value is, not how it is stored**: a UUID is `field.uuid`, money is `field.currency`, a list is `isArray: true`, and a JSON column takes - the type its writer already declares. The canonical-form table below covers the common - cases. + the type its writer already declares. The canonical-form table below covers common cases. - **A relationship's subtype sets the default delete action, and the FK-owning (child) side governs.** Modeling every link as `composition` arms cascades nobody asked for. - **In YAML, quote any scalar that looks like a boolean, number, date or null.** @@ -479,6 +479,7 @@ with no reason to exist becomes visible. Reach for them when the project needs t - **"What have we committed to build and not built yet?"** `@status: planned`: the one status where a dangling `@implementedBy` is correct. It never counts toward object coverage. - **"Which ticket covers this?"** `@trackedBy`. +- **"Is this behaviour built?"** Point the claim at its transition or operation, not its table. Every requirement must be violable: if you cannot say what breaking it looks like, it is a description, not a requirement. diff --git a/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/business-rules.md b/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/business-rules.md new file mode 100644 index 0000000000..2bc59ef65e --- /dev/null +++ b/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/business-rules.md @@ -0,0 +1,25 @@ +# Business rules: lifecycles, commands and queries + +A status, state or stage enum whose values change only by allowed moves is a lifecycle: +declare each move as a `transition.action` child of that `field.enum` (`from`, `to`, an +optional `condition`). A named action someone runs (approve, vote, withdraw) is an +`operation.command` in an `api.operational`, and a named read an `operation.query`; each +carries a permission point. The model says which moves are legal and where a decision is +needed; the body of the rule stays code. `verify` checks the lifecycle (every state +reachable) in every port, and the TypeScript `service` generators enforce it at run time +(`meta init --with-services` wires them). The vocabulary is experimental (ADR-0066); see +`docs/features/business-rules.md` for the full shape. + +```yaml +- field.enum: + name: status + values: [open, passed, declined, withdrawn] + default: open + children: + - transition.action: { name: pass, from: [open], to: passed } + - transition.action: { name: decline, from: [open], to: declined } + - transition.action: { name: withdraw, from: [open], to: withdrawn } +``` + +Hand-writing a guarded `UPDATE ... WHERE status = 'open'` or a list of allowed moves is the +sign a lifecycle is undeclared. diff --git a/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/requirements.md b/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/requirements.md index e2e63964d2..6ef3585b6c 100644 --- a/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/requirements.md +++ b/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/requirements.md @@ -116,6 +116,14 @@ service — these never reference the model. **L4** binds a declared top-level n validator, identity, a template's child, an operation, or a transition. `implementedBy` above L4 is an error. Regrouping *moves* a node; it does not edit a parent string. +**A behaviour claim points at behaviour.** "A request is cancelled only while open" names the +transition (`..`, e.g. `acme::orders::Order.status.cancel`); "a +reviewer decides a request" names the operation (`.`, e.g. +`acme::purchasing::Purchasing.decide`). A claim that names only the entity it touches is +satisfied by a table that exists whether or not the rule is built. When the transition or +operation is not declared yet, declare it (`references/business-rules.md`) or +leave the claim `planned` with the ref it will have. + **Write an L5 ref as a dotted `pkg::Owner.member` path** — the level and the shape of the ref must agree, and this is the single easiest thing to get wrong: diff --git a/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.metaobjects/AGENTS.md b/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.metaobjects/AGENTS.md index bb2aff48f9..e573e6a098 100644 --- a/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.metaobjects/AGENTS.md +++ b/fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.metaobjects/AGENTS.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/fixtures/agent-context-conformance/java-react/expected/.claude/skills/metaobjects-authoring/SKILL.md b/fixtures/agent-context-conformance/java-react/expected/.claude/skills/metaobjects-authoring/SKILL.md index 211102dfdf..ae12d24feb 100644 --- a/fixtures/agent-context-conformance/java-react/expected/.claude/skills/metaobjects-authoring/SKILL.md +++ b/fixtures/agent-context-conformance/java-react/expected/.claude/skills/metaobjects-authoring/SKILL.md @@ -11,11 +11,12 @@ emits code in each language from it, and the drift gates check everything agains ## Essentials - **Declare it; do not hand-write it.** Persistence, data access, validation, APIs and UI - scaffolding are derived from metadata. When you reach for a hand-written query, route, - validator, relationship or aggregate, that is usually metadata nobody has declared yet: - look for the construct first (`meta types `). Declare it when the cost test favours - it: smaller declared than hand-written, more than one instance, or drift protection a - hand-write cannot give. A one-off with none of these can stay hand-written. + scaffolding are derived from metadata. A hand-written query, route, validator, relationship + or aggregate is usually metadata nobody has declared yet: look for the construct first + (`meta types `); a status lifecycle or a named action is a business rule + (`references/business-rules.md`). Declare it when the cost test favours it: smaller declared + than hand-written, more than one instance, or drift protection a hand-write cannot give. + A one-off with none of these can stay hand-written. - **Adoption reverses the direction.** When working code or a populated schema already exists, it is the specification and the metadata reproduces it: its names, types and nullability. Read `references/adopting-existing-code.md` before modeling anything. @@ -26,8 +27,7 @@ emits code in each language from it, and the drift gates check everything agains shaped by `references/semantic-modelling.md` (what a thing is, never a product or a step). - **Choose a field's shape by what the value is, not how it is stored**: a UUID is `field.uuid`, money is `field.currency`, a list is `isArray: true`, and a JSON column takes - the type its writer already declares. The canonical-form table below covers the common - cases. + the type its writer already declares. The canonical-form table below covers common cases. - **A relationship's subtype sets the default delete action, and the FK-owning (child) side governs.** Modeling every link as `composition` arms cascades nobody asked for. - **In YAML, quote any scalar that looks like a boolean, number, date or null.** @@ -479,6 +479,7 @@ with no reason to exist becomes visible. Reach for them when the project needs t - **"What have we committed to build and not built yet?"** `@status: planned`: the one status where a dangling `@implementedBy` is correct. It never counts toward object coverage. - **"Which ticket covers this?"** `@trackedBy`. +- **"Is this behaviour built?"** Point the claim at its transition or operation, not its table. Every requirement must be violable: if you cannot say what breaking it looks like, it is a description, not a requirement. diff --git a/fixtures/agent-context-conformance/java-react/expected/.claude/skills/metaobjects-authoring/references/business-rules.md b/fixtures/agent-context-conformance/java-react/expected/.claude/skills/metaobjects-authoring/references/business-rules.md new file mode 100644 index 0000000000..2bc59ef65e --- /dev/null +++ b/fixtures/agent-context-conformance/java-react/expected/.claude/skills/metaobjects-authoring/references/business-rules.md @@ -0,0 +1,25 @@ +# Business rules: lifecycles, commands and queries + +A status, state or stage enum whose values change only by allowed moves is a lifecycle: +declare each move as a `transition.action` child of that `field.enum` (`from`, `to`, an +optional `condition`). A named action someone runs (approve, vote, withdraw) is an +`operation.command` in an `api.operational`, and a named read an `operation.query`; each +carries a permission point. The model says which moves are legal and where a decision is +needed; the body of the rule stays code. `verify` checks the lifecycle (every state +reachable) in every port, and the TypeScript `service` generators enforce it at run time +(`meta init --with-services` wires them). The vocabulary is experimental (ADR-0066); see +`docs/features/business-rules.md` for the full shape. + +```yaml +- field.enum: + name: status + values: [open, passed, declined, withdrawn] + default: open + children: + - transition.action: { name: pass, from: [open], to: passed } + - transition.action: { name: decline, from: [open], to: declined } + - transition.action: { name: withdraw, from: [open], to: withdrawn } +``` + +Hand-writing a guarded `UPDATE ... WHERE status = 'open'` or a list of allowed moves is the +sign a lifecycle is undeclared. diff --git a/fixtures/agent-context-conformance/java-react/expected/.claude/skills/metaobjects-authoring/references/requirements.md b/fixtures/agent-context-conformance/java-react/expected/.claude/skills/metaobjects-authoring/references/requirements.md index e2e63964d2..6ef3585b6c 100644 --- a/fixtures/agent-context-conformance/java-react/expected/.claude/skills/metaobjects-authoring/references/requirements.md +++ b/fixtures/agent-context-conformance/java-react/expected/.claude/skills/metaobjects-authoring/references/requirements.md @@ -116,6 +116,14 @@ service — these never reference the model. **L4** binds a declared top-level n validator, identity, a template's child, an operation, or a transition. `implementedBy` above L4 is an error. Regrouping *moves* a node; it does not edit a parent string. +**A behaviour claim points at behaviour.** "A request is cancelled only while open" names the +transition (`..`, e.g. `acme::orders::Order.status.cancel`); "a +reviewer decides a request" names the operation (`.`, e.g. +`acme::purchasing::Purchasing.decide`). A claim that names only the entity it touches is +satisfied by a table that exists whether or not the rule is built. When the transition or +operation is not declared yet, declare it (`references/business-rules.md`) or +leave the claim `planned` with the ref it will have. + **Write an L5 ref as a dotted `pkg::Owner.member` path** — the level and the shape of the ref must agree, and this is the single easiest thing to get wrong: diff --git a/fixtures/agent-context-conformance/java-react/expected/.metaobjects/AGENTS.md b/fixtures/agent-context-conformance/java-react/expected/.metaobjects/AGENTS.md index 22266d26e1..ab66105902 100644 --- a/fixtures/agent-context-conformance/java-react/expected/.metaobjects/AGENTS.md +++ b/fixtures/agent-context-conformance/java-react/expected/.metaobjects/AGENTS.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/fixtures/agent-context-conformance/python/expected/.claude/skills/metaobjects-authoring/SKILL.md b/fixtures/agent-context-conformance/python/expected/.claude/skills/metaobjects-authoring/SKILL.md index 211102dfdf..ae12d24feb 100644 --- a/fixtures/agent-context-conformance/python/expected/.claude/skills/metaobjects-authoring/SKILL.md +++ b/fixtures/agent-context-conformance/python/expected/.claude/skills/metaobjects-authoring/SKILL.md @@ -11,11 +11,12 @@ emits code in each language from it, and the drift gates check everything agains ## Essentials - **Declare it; do not hand-write it.** Persistence, data access, validation, APIs and UI - scaffolding are derived from metadata. When you reach for a hand-written query, route, - validator, relationship or aggregate, that is usually metadata nobody has declared yet: - look for the construct first (`meta types `). Declare it when the cost test favours - it: smaller declared than hand-written, more than one instance, or drift protection a - hand-write cannot give. A one-off with none of these can stay hand-written. + scaffolding are derived from metadata. A hand-written query, route, validator, relationship + or aggregate is usually metadata nobody has declared yet: look for the construct first + (`meta types `); a status lifecycle or a named action is a business rule + (`references/business-rules.md`). Declare it when the cost test favours it: smaller declared + than hand-written, more than one instance, or drift protection a hand-write cannot give. + A one-off with none of these can stay hand-written. - **Adoption reverses the direction.** When working code or a populated schema already exists, it is the specification and the metadata reproduces it: its names, types and nullability. Read `references/adopting-existing-code.md` before modeling anything. @@ -26,8 +27,7 @@ emits code in each language from it, and the drift gates check everything agains shaped by `references/semantic-modelling.md` (what a thing is, never a product or a step). - **Choose a field's shape by what the value is, not how it is stored**: a UUID is `field.uuid`, money is `field.currency`, a list is `isArray: true`, and a JSON column takes - the type its writer already declares. The canonical-form table below covers the common - cases. + the type its writer already declares. The canonical-form table below covers common cases. - **A relationship's subtype sets the default delete action, and the FK-owning (child) side governs.** Modeling every link as `composition` arms cascades nobody asked for. - **In YAML, quote any scalar that looks like a boolean, number, date or null.** @@ -479,6 +479,7 @@ with no reason to exist becomes visible. Reach for them when the project needs t - **"What have we committed to build and not built yet?"** `@status: planned`: the one status where a dangling `@implementedBy` is correct. It never counts toward object coverage. - **"Which ticket covers this?"** `@trackedBy`. +- **"Is this behaviour built?"** Point the claim at its transition or operation, not its table. Every requirement must be violable: if you cannot say what breaking it looks like, it is a description, not a requirement. diff --git a/fixtures/agent-context-conformance/python/expected/.claude/skills/metaobjects-authoring/references/business-rules.md b/fixtures/agent-context-conformance/python/expected/.claude/skills/metaobjects-authoring/references/business-rules.md new file mode 100644 index 0000000000..2bc59ef65e --- /dev/null +++ b/fixtures/agent-context-conformance/python/expected/.claude/skills/metaobjects-authoring/references/business-rules.md @@ -0,0 +1,25 @@ +# Business rules: lifecycles, commands and queries + +A status, state or stage enum whose values change only by allowed moves is a lifecycle: +declare each move as a `transition.action` child of that `field.enum` (`from`, `to`, an +optional `condition`). A named action someone runs (approve, vote, withdraw) is an +`operation.command` in an `api.operational`, and a named read an `operation.query`; each +carries a permission point. The model says which moves are legal and where a decision is +needed; the body of the rule stays code. `verify` checks the lifecycle (every state +reachable) in every port, and the TypeScript `service` generators enforce it at run time +(`meta init --with-services` wires them). The vocabulary is experimental (ADR-0066); see +`docs/features/business-rules.md` for the full shape. + +```yaml +- field.enum: + name: status + values: [open, passed, declined, withdrawn] + default: open + children: + - transition.action: { name: pass, from: [open], to: passed } + - transition.action: { name: decline, from: [open], to: declined } + - transition.action: { name: withdraw, from: [open], to: withdrawn } +``` + +Hand-writing a guarded `UPDATE ... WHERE status = 'open'` or a list of allowed moves is the +sign a lifecycle is undeclared. diff --git a/fixtures/agent-context-conformance/python/expected/.claude/skills/metaobjects-authoring/references/requirements.md b/fixtures/agent-context-conformance/python/expected/.claude/skills/metaobjects-authoring/references/requirements.md index e2e63964d2..6ef3585b6c 100644 --- a/fixtures/agent-context-conformance/python/expected/.claude/skills/metaobjects-authoring/references/requirements.md +++ b/fixtures/agent-context-conformance/python/expected/.claude/skills/metaobjects-authoring/references/requirements.md @@ -116,6 +116,14 @@ service — these never reference the model. **L4** binds a declared top-level n validator, identity, a template's child, an operation, or a transition. `implementedBy` above L4 is an error. Regrouping *moves* a node; it does not edit a parent string. +**A behaviour claim points at behaviour.** "A request is cancelled only while open" names the +transition (`..`, e.g. `acme::orders::Order.status.cancel`); "a +reviewer decides a request" names the operation (`.`, e.g. +`acme::purchasing::Purchasing.decide`). A claim that names only the entity it touches is +satisfied by a table that exists whether or not the rule is built. When the transition or +operation is not declared yet, declare it (`references/business-rules.md`) or +leave the claim `planned` with the ref it will have. + **Write an L5 ref as a dotted `pkg::Owner.member` path** — the level and the shape of the ref must agree, and this is the single easiest thing to get wrong: diff --git a/fixtures/agent-context-conformance/python/expected/.metaobjects/AGENTS.md b/fixtures/agent-context-conformance/python/expected/.metaobjects/AGENTS.md index 762bb44265..9ad581a6b1 100644 --- a/fixtures/agent-context-conformance/python/expected/.metaobjects/AGENTS.md +++ b/fixtures/agent-context-conformance/python/expected/.metaobjects/AGENTS.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -65,6 +79,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/fixtures/agent-context-conformance/rust/expected/.claude/skills/metaobjects-authoring/SKILL.md b/fixtures/agent-context-conformance/rust/expected/.claude/skills/metaobjects-authoring/SKILL.md index 211102dfdf..ae12d24feb 100644 --- a/fixtures/agent-context-conformance/rust/expected/.claude/skills/metaobjects-authoring/SKILL.md +++ b/fixtures/agent-context-conformance/rust/expected/.claude/skills/metaobjects-authoring/SKILL.md @@ -11,11 +11,12 @@ emits code in each language from it, and the drift gates check everything agains ## Essentials - **Declare it; do not hand-write it.** Persistence, data access, validation, APIs and UI - scaffolding are derived from metadata. When you reach for a hand-written query, route, - validator, relationship or aggregate, that is usually metadata nobody has declared yet: - look for the construct first (`meta types `). Declare it when the cost test favours - it: smaller declared than hand-written, more than one instance, or drift protection a - hand-write cannot give. A one-off with none of these can stay hand-written. + scaffolding are derived from metadata. A hand-written query, route, validator, relationship + or aggregate is usually metadata nobody has declared yet: look for the construct first + (`meta types `); a status lifecycle or a named action is a business rule + (`references/business-rules.md`). Declare it when the cost test favours it: smaller declared + than hand-written, more than one instance, or drift protection a hand-write cannot give. + A one-off with none of these can stay hand-written. - **Adoption reverses the direction.** When working code or a populated schema already exists, it is the specification and the metadata reproduces it: its names, types and nullability. Read `references/adopting-existing-code.md` before modeling anything. @@ -26,8 +27,7 @@ emits code in each language from it, and the drift gates check everything agains shaped by `references/semantic-modelling.md` (what a thing is, never a product or a step). - **Choose a field's shape by what the value is, not how it is stored**: a UUID is `field.uuid`, money is `field.currency`, a list is `isArray: true`, and a JSON column takes - the type its writer already declares. The canonical-form table below covers the common - cases. + the type its writer already declares. The canonical-form table below covers common cases. - **A relationship's subtype sets the default delete action, and the FK-owning (child) side governs.** Modeling every link as `composition` arms cascades nobody asked for. - **In YAML, quote any scalar that looks like a boolean, number, date or null.** @@ -479,6 +479,7 @@ with no reason to exist becomes visible. Reach for them when the project needs t - **"What have we committed to build and not built yet?"** `@status: planned`: the one status where a dangling `@implementedBy` is correct. It never counts toward object coverage. - **"Which ticket covers this?"** `@trackedBy`. +- **"Is this behaviour built?"** Point the claim at its transition or operation, not its table. Every requirement must be violable: if you cannot say what breaking it looks like, it is a description, not a requirement. diff --git a/fixtures/agent-context-conformance/rust/expected/.claude/skills/metaobjects-authoring/references/business-rules.md b/fixtures/agent-context-conformance/rust/expected/.claude/skills/metaobjects-authoring/references/business-rules.md new file mode 100644 index 0000000000..2bc59ef65e --- /dev/null +++ b/fixtures/agent-context-conformance/rust/expected/.claude/skills/metaobjects-authoring/references/business-rules.md @@ -0,0 +1,25 @@ +# Business rules: lifecycles, commands and queries + +A status, state or stage enum whose values change only by allowed moves is a lifecycle: +declare each move as a `transition.action` child of that `field.enum` (`from`, `to`, an +optional `condition`). A named action someone runs (approve, vote, withdraw) is an +`operation.command` in an `api.operational`, and a named read an `operation.query`; each +carries a permission point. The model says which moves are legal and where a decision is +needed; the body of the rule stays code. `verify` checks the lifecycle (every state +reachable) in every port, and the TypeScript `service` generators enforce it at run time +(`meta init --with-services` wires them). The vocabulary is experimental (ADR-0066); see +`docs/features/business-rules.md` for the full shape. + +```yaml +- field.enum: + name: status + values: [open, passed, declined, withdrawn] + default: open + children: + - transition.action: { name: pass, from: [open], to: passed } + - transition.action: { name: decline, from: [open], to: declined } + - transition.action: { name: withdraw, from: [open], to: withdrawn } +``` + +Hand-writing a guarded `UPDATE ... WHERE status = 'open'` or a list of allowed moves is the +sign a lifecycle is undeclared. diff --git a/fixtures/agent-context-conformance/rust/expected/.claude/skills/metaobjects-authoring/references/requirements.md b/fixtures/agent-context-conformance/rust/expected/.claude/skills/metaobjects-authoring/references/requirements.md index e2e63964d2..6ef3585b6c 100644 --- a/fixtures/agent-context-conformance/rust/expected/.claude/skills/metaobjects-authoring/references/requirements.md +++ b/fixtures/agent-context-conformance/rust/expected/.claude/skills/metaobjects-authoring/references/requirements.md @@ -116,6 +116,14 @@ service — these never reference the model. **L4** binds a declared top-level n validator, identity, a template's child, an operation, or a transition. `implementedBy` above L4 is an error. Regrouping *moves* a node; it does not edit a parent string. +**A behaviour claim points at behaviour.** "A request is cancelled only while open" names the +transition (`..`, e.g. `acme::orders::Order.status.cancel`); "a +reviewer decides a request" names the operation (`.`, e.g. +`acme::purchasing::Purchasing.decide`). A claim that names only the entity it touches is +satisfied by a table that exists whether or not the rule is built. When the transition or +operation is not declared yet, declare it (`references/business-rules.md`) or +leave the claim `planned` with the ref it will have. + **Write an L5 ref as a dotted `pkg::Owner.member` path** — the level and the shape of the ref must agree, and this is the single easiest thing to get wrong: diff --git a/fixtures/agent-context-conformance/rust/expected/.metaobjects/AGENTS.md b/fixtures/agent-context-conformance/rust/expected/.metaobjects/AGENTS.md index 1a30c84b6c..b166581a91 100644 --- a/fixtures/agent-context-conformance/rust/expected/.metaobjects/AGENTS.md +++ b/fixtures/agent-context-conformance/rust/expected/.metaobjects/AGENTS.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -62,6 +76,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-authoring/SKILL.md b/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-authoring/SKILL.md index 211102dfdf..ae12d24feb 100644 --- a/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-authoring/SKILL.md +++ b/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-authoring/SKILL.md @@ -11,11 +11,12 @@ emits code in each language from it, and the drift gates check everything agains ## Essentials - **Declare it; do not hand-write it.** Persistence, data access, validation, APIs and UI - scaffolding are derived from metadata. When you reach for a hand-written query, route, - validator, relationship or aggregate, that is usually metadata nobody has declared yet: - look for the construct first (`meta types `). Declare it when the cost test favours - it: smaller declared than hand-written, more than one instance, or drift protection a - hand-write cannot give. A one-off with none of these can stay hand-written. + scaffolding are derived from metadata. A hand-written query, route, validator, relationship + or aggregate is usually metadata nobody has declared yet: look for the construct first + (`meta types `); a status lifecycle or a named action is a business rule + (`references/business-rules.md`). Declare it when the cost test favours it: smaller declared + than hand-written, more than one instance, or drift protection a hand-write cannot give. + A one-off with none of these can stay hand-written. - **Adoption reverses the direction.** When working code or a populated schema already exists, it is the specification and the metadata reproduces it: its names, types and nullability. Read `references/adopting-existing-code.md` before modeling anything. @@ -26,8 +27,7 @@ emits code in each language from it, and the drift gates check everything agains shaped by `references/semantic-modelling.md` (what a thing is, never a product or a step). - **Choose a field's shape by what the value is, not how it is stored**: a UUID is `field.uuid`, money is `field.currency`, a list is `isArray: true`, and a JSON column takes - the type its writer already declares. The canonical-form table below covers the common - cases. + the type its writer already declares. The canonical-form table below covers common cases. - **A relationship's subtype sets the default delete action, and the FK-owning (child) side governs.** Modeling every link as `composition` arms cascades nobody asked for. - **In YAML, quote any scalar that looks like a boolean, number, date or null.** @@ -479,6 +479,7 @@ with no reason to exist becomes visible. Reach for them when the project needs t - **"What have we committed to build and not built yet?"** `@status: planned`: the one status where a dangling `@implementedBy` is correct. It never counts toward object coverage. - **"Which ticket covers this?"** `@trackedBy`. +- **"Is this behaviour built?"** Point the claim at its transition or operation, not its table. Every requirement must be violable: if you cannot say what breaking it looks like, it is a description, not a requirement. diff --git a/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/business-rules.md b/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/business-rules.md new file mode 100644 index 0000000000..2bc59ef65e --- /dev/null +++ b/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/business-rules.md @@ -0,0 +1,25 @@ +# Business rules: lifecycles, commands and queries + +A status, state or stage enum whose values change only by allowed moves is a lifecycle: +declare each move as a `transition.action` child of that `field.enum` (`from`, `to`, an +optional `condition`). A named action someone runs (approve, vote, withdraw) is an +`operation.command` in an `api.operational`, and a named read an `operation.query`; each +carries a permission point. The model says which moves are legal and where a decision is +needed; the body of the rule stays code. `verify` checks the lifecycle (every state +reachable) in every port, and the TypeScript `service` generators enforce it at run time +(`meta init --with-services` wires them). The vocabulary is experimental (ADR-0066); see +`docs/features/business-rules.md` for the full shape. + +```yaml +- field.enum: + name: status + values: [open, passed, declined, withdrawn] + default: open + children: + - transition.action: { name: pass, from: [open], to: passed } + - transition.action: { name: decline, from: [open], to: declined } + - transition.action: { name: withdraw, from: [open], to: withdrawn } +``` + +Hand-writing a guarded `UPDATE ... WHERE status = 'open'` or a list of allowed moves is the +sign a lifecycle is undeclared. diff --git a/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/requirements.md b/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/requirements.md index e2e63964d2..6ef3585b6c 100644 --- a/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/requirements.md +++ b/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-authoring/references/requirements.md @@ -116,6 +116,14 @@ service — these never reference the model. **L4** binds a declared top-level n validator, identity, a template's child, an operation, or a transition. `implementedBy` above L4 is an error. Regrouping *moves* a node; it does not edit a parent string. +**A behaviour claim points at behaviour.** "A request is cancelled only while open" names the +transition (`..`, e.g. `acme::orders::Order.status.cancel`); "a +reviewer decides a request" names the operation (`.`, e.g. +`acme::purchasing::Purchasing.decide`). A claim that names only the entity it touches is +satisfied by a table that exists whether or not the rule is built. When the transition or +operation is not declared yet, declare it (`references/business-rules.md`) or +leave the claim `planned` with the ref it will have. + **Write an L5 ref as a dotted `pkg::Owner.member` path** — the level and the shape of the ref must agree, and this is the single easiest thing to get wrong: diff --git a/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-codegen/references/typescript.md b/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-codegen/references/typescript.md index bee4e9c856..37d6ab0abf 100644 --- a/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-codegen/references/typescript.md +++ b/fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-codegen/references/typescript.md @@ -179,7 +179,11 @@ you write its assertion (the three-way merge keeps it), a `planned` or `retired` skipped stub. Options: `filter` (a predicate over `subType`, `level`, `status`, `path`, `package`, `implementedByTypes` that REPLACES the default of functional L4/L5), `grain` (`"concern"`, the default, or `"member"`; anything else is refused), `warnUncovered`, -`renderers` / `resolveRenderer`. `meta eject requirement-tests` copies the generator and +`renderers` / `resolveRenderer`, and `framework` (`"bun"`, `"vitest"` or `"jest"`; absent, it +is read from `package.json`: vitest, else jest, else bun). The stubs land in +`/requirements/`, so the test runner's include pattern must cover that folder, or +point `target` at a directory it reads; a stub the runner never collects proves nothing. +`meta eject requirement-tests` copies the generator and its default stub renderer into `codegen/generators/requirement-tests.ts`; the requirement walk, each test's identity and the claim digest are engine and stay in the package. The requirement checks in `meta verify` are core and are not ejectable. diff --git a/fixtures/agent-context-conformance/ts-react-tanstack/expected/.metaobjects/AGENTS.md b/fixtures/agent-context-conformance/ts-react-tanstack/expected/.metaobjects/AGENTS.md index 8beb06b5bb..e49d83a46c 100644 --- a/fixtures/agent-context-conformance/ts-react-tanstack/expected/.metaobjects/AGENTS.md +++ b/fixtures/agent-context-conformance/ts-react-tanstack/expected/.metaobjects/AGENTS.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/77b583899dabdd55.md b/server/python/src/metaobjects/agent_context/shipped/files/070ba86ed3e76df5.md similarity index 79% rename from server/rust/metaobjects-cli/agent-context-shipped/files/77b583899dabdd55.md rename to server/python/src/metaobjects/agent_context/shipped/files/070ba86ed3e76df5.md index c88540376f..d9d29068ea 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/77b583899dabdd55.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/070ba86ed3e76df5.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/e5c6430567eecae4.md b/server/python/src/metaobjects/agent_context/shipped/files/076e5a258ec0bc47.md similarity index 95% rename from server/rust/metaobjects-cli/agent-context-shipped/files/e5c6430567eecae4.md rename to server/python/src/metaobjects/agent_context/shipped/files/076e5a258ec0bc47.md index e2e63964d2..6ef3585b6c 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/e5c6430567eecae4.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/076e5a258ec0bc47.md @@ -116,6 +116,14 @@ service — these never reference the model. **L4** binds a declared top-level n validator, identity, a template's child, an operation, or a transition. `implementedBy` above L4 is an error. Regrouping *moves* a node; it does not edit a parent string. +**A behaviour claim points at behaviour.** "A request is cancelled only while open" names the +transition (`..`, e.g. `acme::orders::Order.status.cancel`); "a +reviewer decides a request" names the operation (`.`, e.g. +`acme::purchasing::Purchasing.decide`). A claim that names only the entity it touches is +satisfied by a table that exists whether or not the rule is built. When the transition or +operation is not declared yet, declare it (`references/business-rules.md`) or +leave the claim `planned` with the ref it will have. + **Write an L5 ref as a dotted `pkg::Owner.member` path** — the level and the shape of the ref must agree, and this is the single easiest thing to get wrong: diff --git a/agent-context-shipped/files/ddbd9ec7df5b0edb.md b/server/python/src/metaobjects/agent_context/shipped/files/0b5af574087b7676.md similarity index 83% rename from agent-context-shipped/files/ddbd9ec7df5b0edb.md rename to server/python/src/metaobjects/agent_context/shipped/files/0b5af574087b7676.md index b227064d41..1d43511a9f 100644 --- a/agent-context-shipped/files/ddbd9ec7df5b0edb.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/0b5af574087b7676.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/9de55e412aee8057.md b/server/python/src/metaobjects/agent_context/shipped/files/0c366480181a4f29.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/9de55e412aee8057.md rename to server/python/src/metaobjects/agent_context/shipped/files/0c366480181a4f29.md index 1ce7c6fe47..7c686dbbb5 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/9de55e412aee8057.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/0c366480181a4f29.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -94,6 +108,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/6eaaf67c049daead.md b/server/python/src/metaobjects/agent_context/shipped/files/0da05b8a8f726c59.md similarity index 80% rename from server/python/src/metaobjects/agent_context/shipped/files/6eaaf67c049daead.md rename to server/python/src/metaobjects/agent_context/shipped/files/0da05b8a8f726c59.md index 92f49d5fa4..3aa3f0900e 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/6eaaf67c049daead.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/0da05b8a8f726c59.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -74,6 +88,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/68aea133c93dc3c6.md b/server/python/src/metaobjects/agent_context/shipped/files/0fa8c9d99447d618.md similarity index 81% rename from server/rust/metaobjects-cli/agent-context-shipped/files/68aea133c93dc3c6.md rename to server/python/src/metaobjects/agent_context/shipped/files/0fa8c9d99447d618.md index 749da5d121..4fed21c00a 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/68aea133c93dc3c6.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/0fa8c9d99447d618.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -83,6 +97,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/f0d3aa0b6ca8c7b5.md b/server/python/src/metaobjects/agent_context/shipped/files/16ca093e7d3e50b8.md similarity index 80% rename from server/rust/metaobjects-cli/agent-context-shipped/files/f0d3aa0b6ca8c7b5.md rename to server/python/src/metaobjects/agent_context/shipped/files/16ca093e7d3e50b8.md index 84788926ac..1eb4275ef6 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/f0d3aa0b6ca8c7b5.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/16ca093e7d3e50b8.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/9827ffbab8ae5c2d.md b/server/python/src/metaobjects/agent_context/shipped/files/180ea012b7662e9b.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/9827ffbab8ae5c2d.md rename to server/python/src/metaobjects/agent_context/shipped/files/180ea012b7662e9b.md index ade8e3c87a..2ebad24502 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/9827ffbab8ae5c2d.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/180ea012b7662e9b.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/8f920c881b85118b.md b/server/python/src/metaobjects/agent_context/shipped/files/1830b9df68903eb9.md similarity index 83% rename from agent-context-shipped/files/8f920c881b85118b.md rename to server/python/src/metaobjects/agent_context/shipped/files/1830b9df68903eb9.md index f1d6737c86..b69adcb17d 100644 --- a/agent-context-shipped/files/8f920c881b85118b.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/1830b9df68903eb9.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/1813baf4e1ff00dc.md b/server/python/src/metaobjects/agent_context/shipped/files/22f1fc4abae9172c.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/1813baf4e1ff00dc.md rename to server/python/src/metaobjects/agent_context/shipped/files/22f1fc4abae9172c.md index 086412a5ce..eefca8d8e0 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/1813baf4e1ff00dc.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/22f1fc4abae9172c.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/b6d58488c3486eae.md b/server/python/src/metaobjects/agent_context/shipped/files/23eeddecbf333c35.md similarity index 79% rename from server/python/src/metaobjects/agent_context/shipped/files/b6d58488c3486eae.md rename to server/python/src/metaobjects/agent_context/shipped/files/23eeddecbf333c35.md index 431f4aeb77..8bd6b9c8e4 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/b6d58488c3486eae.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/23eeddecbf333c35.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/7da357a168d3819a.md b/server/python/src/metaobjects/agent_context/shipped/files/2689f0fedb2de0f5.md similarity index 80% rename from agent-context-shipped/files/7da357a168d3819a.md rename to server/python/src/metaobjects/agent_context/shipped/files/2689f0fedb2de0f5.md index 63b6c909bc..e4b48f3779 100644 --- a/agent-context-shipped/files/7da357a168d3819a.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/2689f0fedb2de0f5.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/87b4d71a9905489d.md b/server/python/src/metaobjects/agent_context/shipped/files/2f7c99b3ce88ef3d.md similarity index 97% rename from agent-context-shipped/files/87b4d71a9905489d.md rename to server/python/src/metaobjects/agent_context/shipped/files/2f7c99b3ce88ef3d.md index 211102dfdf..ae12d24feb 100644 --- a/agent-context-shipped/files/87b4d71a9905489d.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/2f7c99b3ce88ef3d.md @@ -11,11 +11,12 @@ emits code in each language from it, and the drift gates check everything agains ## Essentials - **Declare it; do not hand-write it.** Persistence, data access, validation, APIs and UI - scaffolding are derived from metadata. When you reach for a hand-written query, route, - validator, relationship or aggregate, that is usually metadata nobody has declared yet: - look for the construct first (`meta types `). Declare it when the cost test favours - it: smaller declared than hand-written, more than one instance, or drift protection a - hand-write cannot give. A one-off with none of these can stay hand-written. + scaffolding are derived from metadata. A hand-written query, route, validator, relationship + or aggregate is usually metadata nobody has declared yet: look for the construct first + (`meta types `); a status lifecycle or a named action is a business rule + (`references/business-rules.md`). Declare it when the cost test favours it: smaller declared + than hand-written, more than one instance, or drift protection a hand-write cannot give. + A one-off with none of these can stay hand-written. - **Adoption reverses the direction.** When working code or a populated schema already exists, it is the specification and the metadata reproduces it: its names, types and nullability. Read `references/adopting-existing-code.md` before modeling anything. @@ -26,8 +27,7 @@ emits code in each language from it, and the drift gates check everything agains shaped by `references/semantic-modelling.md` (what a thing is, never a product or a step). - **Choose a field's shape by what the value is, not how it is stored**: a UUID is `field.uuid`, money is `field.currency`, a list is `isArray: true`, and a JSON column takes - the type its writer already declares. The canonical-form table below covers the common - cases. + the type its writer already declares. The canonical-form table below covers common cases. - **A relationship's subtype sets the default delete action, and the FK-owning (child) side governs.** Modeling every link as `composition` arms cascades nobody asked for. - **In YAML, quote any scalar that looks like a boolean, number, date or null.** @@ -479,6 +479,7 @@ with no reason to exist becomes visible. Reach for them when the project needs t - **"What have we committed to build and not built yet?"** `@status: planned`: the one status where a dangling `@implementedBy` is correct. It never counts toward object coverage. - **"Which ticket covers this?"** `@trackedBy`. +- **"Is this behaviour built?"** Point the claim at its transition or operation, not its table. Every requirement must be violable: if you cannot say what breaking it looks like, it is a description, not a requirement. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/ad0876e3f0749dd4.md b/server/python/src/metaobjects/agent_context/shipped/files/37fc1c1e1d520d26.md similarity index 79% rename from server/rust/metaobjects-cli/agent-context-shipped/files/ad0876e3f0749dd4.md rename to server/python/src/metaobjects/agent_context/shipped/files/37fc1c1e1d520d26.md index 0936a38788..5a8200a70c 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/ad0876e3f0749dd4.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/37fc1c1e1d520d26.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -67,6 +81,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/4bf396aa4831d3b0.md b/server/python/src/metaobjects/agent_context/shipped/files/38e72e6b0ab7f58a.md similarity index 77% rename from server/rust/metaobjects-cli/agent-context-shipped/files/4bf396aa4831d3b0.md rename to server/python/src/metaobjects/agent_context/shipped/files/38e72e6b0ab7f58a.md index f0e4c48037..03298b2b0b 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/4bf396aa4831d3b0.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/38e72e6b0ab7f58a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -64,6 +78,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/d6d7f822563ee216.md b/server/python/src/metaobjects/agent_context/shipped/files/3afe3b4c6ce94288.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/d6d7f822563ee216.md rename to server/python/src/metaobjects/agent_context/shipped/files/3afe3b4c6ce94288.md index ecf1563877..0e105f9952 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/d6d7f822563ee216.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/3afe3b4c6ce94288.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -93,6 +107,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/3351fb1999f7cddc.md b/server/python/src/metaobjects/agent_context/shipped/files/3e59bf0de96d4e94.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/3351fb1999f7cddc.md rename to server/python/src/metaobjects/agent_context/shipped/files/3e59bf0de96d4e94.md index 99f8e727e0..95e554171e 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/3351fb1999f7cddc.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/3e59bf0de96d4e94.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -94,6 +108,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/b766591d53ab5c06.md b/server/python/src/metaobjects/agent_context/shipped/files/469aec1576197f28.md similarity index 79% rename from server/python/src/metaobjects/agent_context/shipped/files/b766591d53ab5c06.md rename to server/python/src/metaobjects/agent_context/shipped/files/469aec1576197f28.md index 8a3bf1f6e0..b137e9e0e5 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/b766591d53ab5c06.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/469aec1576197f28.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/2b4a4bfa31529de3.md b/server/python/src/metaobjects/agent_context/shipped/files/47a9c12e127a574d.md similarity index 83% rename from server/rust/metaobjects-cli/agent-context-shipped/files/2b4a4bfa31529de3.md rename to server/python/src/metaobjects/agent_context/shipped/files/47a9c12e127a574d.md index b8cefeb5a2..a7505365c8 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/2b4a4bfa31529de3.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/47a9c12e127a574d.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/c51749f6baf00a9b.md b/server/python/src/metaobjects/agent_context/shipped/files/5cb6da08078dcbee.md similarity index 81% rename from server/rust/metaobjects-cli/agent-context-shipped/files/c51749f6baf00a9b.md rename to server/python/src/metaobjects/agent_context/shipped/files/5cb6da08078dcbee.md index bb2aff48f9..e573e6a098 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/c51749f6baf00a9b.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/5cb6da08078dcbee.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/92f68d0335098302.md b/server/python/src/metaobjects/agent_context/shipped/files/610d3c0cb9608a71.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/92f68d0335098302.md rename to server/python/src/metaobjects/agent_context/shipped/files/610d3c0cb9608a71.md index 3be1fa083e..84212db19a 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/92f68d0335098302.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/610d3c0cb9608a71.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -86,6 +100,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/1d61842e76db07d7.md b/server/python/src/metaobjects/agent_context/shipped/files/619eeeddb8de4749.md similarity index 83% rename from server/rust/metaobjects-cli/agent-context-shipped/files/1d61842e76db07d7.md rename to server/python/src/metaobjects/agent_context/shipped/files/619eeeddb8de4749.md index 861bb20368..9ae23f82eb 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/1d61842e76db07d7.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/619eeeddb8de4749.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/6c632f2dcebb53ea.md b/server/python/src/metaobjects/agent_context/shipped/files/6324e418aa8f3ca9.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/6c632f2dcebb53ea.md rename to server/python/src/metaobjects/agent_context/shipped/files/6324e418aa8f3ca9.md index 411af6cf0b..8408cd6531 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/6c632f2dcebb53ea.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/6324e418aa8f3ca9.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/c4cea8aaaf65fd1c.md b/server/python/src/metaobjects/agent_context/shipped/files/6e98c98cde6411e2.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/c4cea8aaaf65fd1c.md rename to server/python/src/metaobjects/agent_context/shipped/files/6e98c98cde6411e2.md index de5ad3d549..8af07a56de 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/c4cea8aaaf65fd1c.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/6e98c98cde6411e2.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -91,6 +105,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/10fd5004cdff1b02.md b/server/python/src/metaobjects/agent_context/shipped/files/7375f17656d07312.md similarity index 82% rename from agent-context-shipped/files/10fd5004cdff1b02.md rename to server/python/src/metaobjects/agent_context/shipped/files/7375f17656d07312.md index 7a153cc807..498417e795 100644 --- a/agent-context-shipped/files/10fd5004cdff1b02.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/7375f17656d07312.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -91,6 +105,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/bffabb32b1e62ea4.md b/server/python/src/metaobjects/agent_context/shipped/files/7e5805d8742096e7.md similarity index 83% rename from server/python/src/metaobjects/agent_context/shipped/files/bffabb32b1e62ea4.md rename to server/python/src/metaobjects/agent_context/shipped/files/7e5805d8742096e7.md index fedb3986c4..5849d13f67 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/bffabb32b1e62ea4.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/7e5805d8742096e7.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/cf820e73bf82c1dc.md b/server/python/src/metaobjects/agent_context/shipped/files/7e655b38310e039a.md similarity index 80% rename from server/rust/metaobjects-cli/agent-context-shipped/files/cf820e73bf82c1dc.md rename to server/python/src/metaobjects/agent_context/shipped/files/7e655b38310e039a.md index 1522c0a904..ef12bda4c3 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/cf820e73bf82c1dc.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/7e655b38310e039a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/9e4438fd935ebc25.md b/server/python/src/metaobjects/agent_context/shipped/files/85bc169462e1acef.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/9e4438fd935ebc25.md rename to server/python/src/metaobjects/agent_context/shipped/files/85bc169462e1acef.md index fad93b86d0..125d7a1d6c 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/9e4438fd935ebc25.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/85bc169462e1acef.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -91,6 +105,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/7d185435e40d7e2d.md b/server/python/src/metaobjects/agent_context/shipped/files/95729d5fbfaf0d35.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/7d185435e40d7e2d.md rename to server/python/src/metaobjects/agent_context/shipped/files/95729d5fbfaf0d35.md index 8760b720b6..56b34f7af5 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/7d185435e40d7e2d.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/95729d5fbfaf0d35.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/9787437a82bb7e32.md b/server/python/src/metaobjects/agent_context/shipped/files/987670c3f5dbf067.md similarity index 83% rename from server/python/src/metaobjects/agent_context/shipped/files/9787437a82bb7e32.md rename to server/python/src/metaobjects/agent_context/shipped/files/987670c3f5dbf067.md index 8beb06b5bb..e49d83a46c 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/9787437a82bb7e32.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/987670c3f5dbf067.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/8692936865b8ca78.md b/server/python/src/metaobjects/agent_context/shipped/files/995daf1c0b9a64ef.md similarity index 79% rename from server/python/src/metaobjects/agent_context/shipped/files/8692936865b8ca78.md rename to server/python/src/metaobjects/agent_context/shipped/files/995daf1c0b9a64ef.md index 57a6927b6c..e00fe1067d 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/8692936865b8ca78.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/995daf1c0b9a64ef.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/7cb243bcfd1823db.md b/server/python/src/metaobjects/agent_context/shipped/files/9c7210dbf22f468a.md similarity index 77% rename from server/rust/metaobjects-cli/agent-context-shipped/files/7cb243bcfd1823db.md rename to server/python/src/metaobjects/agent_context/shipped/files/9c7210dbf22f468a.md index 762bb44265..9ad581a6b1 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/7cb243bcfd1823db.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/9c7210dbf22f468a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -65,6 +79,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/8d415448458487c1.md b/server/python/src/metaobjects/agent_context/shipped/files/a91973d190a00b23.md similarity index 79% rename from server/rust/metaobjects-cli/agent-context-shipped/files/8d415448458487c1.md rename to server/python/src/metaobjects/agent_context/shipped/files/a91973d190a00b23.md index 84f0aaf817..a7a1fd4d04 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/8d415448458487c1.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/a91973d190a00b23.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/dbc673d7e2efb728.md b/server/python/src/metaobjects/agent_context/shipped/files/a978cd0effa00e0c.md similarity index 79% rename from server/rust/metaobjects-cli/agent-context-shipped/files/dbc673d7e2efb728.md rename to server/python/src/metaobjects/agent_context/shipped/files/a978cd0effa00e0c.md index 685a34dcb4..d7076780f5 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/dbc673d7e2efb728.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/a978cd0effa00e0c.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -72,6 +86,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/eb9a53fcc569deb6.md b/server/python/src/metaobjects/agent_context/shipped/files/a9fb54f0efbd6879.md similarity index 80% rename from server/rust/metaobjects-cli/agent-context-shipped/files/eb9a53fcc569deb6.md rename to server/python/src/metaobjects/agent_context/shipped/files/a9fb54f0efbd6879.md index a2cdafaae0..34afb3c3e8 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/eb9a53fcc569deb6.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/a9fb54f0efbd6879.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -74,6 +88,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/7d6c30e9d03b88b9.md b/server/python/src/metaobjects/agent_context/shipped/files/aba79b6a5f1c6df7.md similarity index 82% rename from agent-context-shipped/files/7d6c30e9d03b88b9.md rename to server/python/src/metaobjects/agent_context/shipped/files/aba79b6a5f1c6df7.md index 74c3edc882..f5555d370f 100644 --- a/agent-context-shipped/files/7d6c30e9d03b88b9.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/aba79b6a5f1c6df7.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -94,6 +108,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/2a850663b29e895c.md b/server/python/src/metaobjects/agent_context/shipped/files/b265aeb870f81aa9.md similarity index 81% rename from agent-context-shipped/files/2a850663b29e895c.md rename to server/python/src/metaobjects/agent_context/shipped/files/b265aeb870f81aa9.md index c3b4972bbb..b452c60fd0 100644 --- a/agent-context-shipped/files/2a850663b29e895c.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/b265aeb870f81aa9.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/ea6a3a84c8377d9f.md b/server/python/src/metaobjects/agent_context/shipped/files/b43a6bcce62efccb.md similarity index 79% rename from server/python/src/metaobjects/agent_context/shipped/files/ea6a3a84c8377d9f.md rename to server/python/src/metaobjects/agent_context/shipped/files/b43a6bcce62efccb.md index 83fe8a8aa3..59357059b8 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/ea6a3a84c8377d9f.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/b43a6bcce62efccb.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/12851cf06a512e01.md b/server/python/src/metaobjects/agent_context/shipped/files/b8a6831a7078b180.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/12851cf06a512e01.md rename to server/python/src/metaobjects/agent_context/shipped/files/b8a6831a7078b180.md index 1d0e8c9445..205c9e0ef3 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/12851cf06a512e01.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/b8a6831a7078b180.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -93,6 +107,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/a78ffa7309cd29b2.md b/server/python/src/metaobjects/agent_context/shipped/files/bd8bf51a8f2078e0.md similarity index 81% rename from server/rust/metaobjects-cli/agent-context-shipped/files/a78ffa7309cd29b2.md rename to server/python/src/metaobjects/agent_context/shipped/files/bd8bf51a8f2078e0.md index 55a47cec6a..476c48de23 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/a78ffa7309cd29b2.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/bd8bf51a8f2078e0.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -81,6 +95,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/69c1ae480ae7dd7c.md b/server/python/src/metaobjects/agent_context/shipped/files/c0aa79f3c7327815.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/69c1ae480ae7dd7c.md rename to server/python/src/metaobjects/agent_context/shipped/files/c0aa79f3c7327815.md index 22266d26e1..ab66105902 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/69c1ae480ae7dd7c.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/c0aa79f3c7327815.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/5b145f489f23b1c7.md b/server/python/src/metaobjects/agent_context/shipped/files/c7727ca39ba4d097.md similarity index 77% rename from server/rust/metaobjects-cli/agent-context-shipped/files/5b145f489f23b1c7.md rename to server/python/src/metaobjects/agent_context/shipped/files/c7727ca39ba4d097.md index bd68e7535d..02f00e9edb 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/5b145f489f23b1c7.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/c7727ca39ba4d097.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -56,6 +70,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/61d9c5d06a2af7fd.md b/server/python/src/metaobjects/agent_context/shipped/files/cc3b1880c6b81540.md similarity index 98% rename from server/rust/metaobjects-cli/agent-context-shipped/files/61d9c5d06a2af7fd.md rename to server/python/src/metaobjects/agent_context/shipped/files/cc3b1880c6b81540.md index bee4e9c856..37d6ab0abf 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/61d9c5d06a2af7fd.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/cc3b1880c6b81540.md @@ -179,7 +179,11 @@ you write its assertion (the three-way merge keeps it), a `planned` or `retired` skipped stub. Options: `filter` (a predicate over `subType`, `level`, `status`, `path`, `package`, `implementedByTypes` that REPLACES the default of functional L4/L5), `grain` (`"concern"`, the default, or `"member"`; anything else is refused), `warnUncovered`, -`renderers` / `resolveRenderer`. `meta eject requirement-tests` copies the generator and +`renderers` / `resolveRenderer`, and `framework` (`"bun"`, `"vitest"` or `"jest"`; absent, it +is read from `package.json`: vitest, else jest, else bun). The stubs land in +`/requirements/`, so the test runner's include pattern must cover that folder, or +point `target` at a directory it reads; a stub the runner never collects proves nothing. +`meta eject requirement-tests` copies the generator and its default stub renderer into `codegen/generators/requirement-tests.ts`; the requirement walk, each test's identity and the claim digest are engine and stay in the package. The requirement checks in `meta verify` are core and are not ejectable. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/d0ba0e01fd2b3f7b.md b/server/python/src/metaobjects/agent_context/shipped/files/cfd2a3220683660a.md similarity index 79% rename from server/python/src/metaobjects/agent_context/shipped/files/d0ba0e01fd2b3f7b.md rename to server/python/src/metaobjects/agent_context/shipped/files/cfd2a3220683660a.md index f9cb943aea..800e78f7d3 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/d0ba0e01fd2b3f7b.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/cfd2a3220683660a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -72,6 +86,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/cce65bd52d789e7f.md b/server/python/src/metaobjects/agent_context/shipped/files/d164e84569ccb35a.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/cce65bd52d789e7f.md rename to server/python/src/metaobjects/agent_context/shipped/files/d164e84569ccb35a.md index 96d73b6524..91d8871e86 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/cce65bd52d789e7f.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/d164e84569ccb35a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/d3781278f0864159.md b/server/python/src/metaobjects/agent_context/shipped/files/d1dd8fce517c4397.md similarity index 77% rename from server/rust/metaobjects-cli/agent-context-shipped/files/d3781278f0864159.md rename to server/python/src/metaobjects/agent_context/shipped/files/d1dd8fce517c4397.md index f9bd4ee112..3bed86cb4e 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/d3781278f0864159.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/d1dd8fce517c4397.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -56,6 +70,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/db90c9240f5bf92a.md b/server/python/src/metaobjects/agent_context/shipped/files/d21c634b4283acee.md similarity index 80% rename from server/python/src/metaobjects/agent_context/shipped/files/db90c9240f5bf92a.md rename to server/python/src/metaobjects/agent_context/shipped/files/d21c634b4283acee.md index aeea6c4f88..93fed0dd44 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/db90c9240f5bf92a.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/d21c634b4283acee.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/80645315e02097b7.md b/server/python/src/metaobjects/agent_context/shipped/files/dd11651cf9d3f3c3.md similarity index 80% rename from agent-context-shipped/files/80645315e02097b7.md rename to server/python/src/metaobjects/agent_context/shipped/files/dd11651cf9d3f3c3.md index 668346431d..a48353e321 100644 --- a/agent-context-shipped/files/80645315e02097b7.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/dd11651cf9d3f3c3.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/64726b55218b2d12.md b/server/python/src/metaobjects/agent_context/shipped/files/e27ff21bb76238d7.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/64726b55218b2d12.md rename to server/python/src/metaobjects/agent_context/shipped/files/e27ff21bb76238d7.md index 2fcdf0cc08..db3daa752f 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/64726b55218b2d12.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/e27ff21bb76238d7.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -93,6 +107,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/e92260915394bacd.md b/server/python/src/metaobjects/agent_context/shipped/files/e92260915394bacd.md new file mode 100644 index 0000000000..2bc59ef65e --- /dev/null +++ b/server/python/src/metaobjects/agent_context/shipped/files/e92260915394bacd.md @@ -0,0 +1,25 @@ +# Business rules: lifecycles, commands and queries + +A status, state or stage enum whose values change only by allowed moves is a lifecycle: +declare each move as a `transition.action` child of that `field.enum` (`from`, `to`, an +optional `condition`). A named action someone runs (approve, vote, withdraw) is an +`operation.command` in an `api.operational`, and a named read an `operation.query`; each +carries a permission point. The model says which moves are legal and where a decision is +needed; the body of the rule stays code. `verify` checks the lifecycle (every state +reachable) in every port, and the TypeScript `service` generators enforce it at run time +(`meta init --with-services` wires them). The vocabulary is experimental (ADR-0066); see +`docs/features/business-rules.md` for the full shape. + +```yaml +- field.enum: + name: status + values: [open, passed, declined, withdrawn] + default: open + children: + - transition.action: { name: pass, from: [open], to: passed } + - transition.action: { name: decline, from: [open], to: declined } + - transition.action: { name: withdraw, from: [open], to: withdrawn } +``` + +Hand-writing a guarded `UPDATE ... WHERE status = 'open'` or a list of allowed moves is the +sign a lifecycle is undeclared. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/c34795834cd0a156.md b/server/python/src/metaobjects/agent_context/shipped/files/eb2a0f1848044c8f.md similarity index 80% rename from server/rust/metaobjects-cli/agent-context-shipped/files/c34795834cd0a156.md rename to server/python/src/metaobjects/agent_context/shipped/files/eb2a0f1848044c8f.md index c7bc2e3559..b9f5a3869a 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/c34795834cd0a156.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/eb2a0f1848044c8f.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/9b387a8983e116d2.md b/server/python/src/metaobjects/agent_context/shipped/files/edcfbd15fb4e4ad7.md similarity index 81% rename from server/python/src/metaobjects/agent_context/shipped/files/9b387a8983e116d2.md rename to server/python/src/metaobjects/agent_context/shipped/files/edcfbd15fb4e4ad7.md index 0cd82e373d..b05e5287fd 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/9b387a8983e116d2.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/edcfbd15fb4e4ad7.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/d46dd9dbffacbab6.md b/server/python/src/metaobjects/agent_context/shipped/files/f073f047e7007532.md similarity index 79% rename from agent-context-shipped/files/d46dd9dbffacbab6.md rename to server/python/src/metaobjects/agent_context/shipped/files/f073f047e7007532.md index 5a07be2f50..898d0e4ecc 100644 --- a/agent-context-shipped/files/d46dd9dbffacbab6.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/f073f047e7007532.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -72,6 +86,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/e14e81035a4516a6.md b/server/python/src/metaobjects/agent_context/shipped/files/f6830e7c4050fd35.md similarity index 80% rename from agent-context-shipped/files/e14e81035a4516a6.md rename to server/python/src/metaobjects/agent_context/shipped/files/f6830e7c4050fd35.md index 0d68ee2ffe..8a85c97beb 100644 --- a/agent-context-shipped/files/e14e81035a4516a6.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/f6830e7c4050fd35.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -74,6 +88,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/a3d1bbcd5fc2710a.md b/server/python/src/metaobjects/agent_context/shipped/files/f771dcc13e8b0638.md similarity index 79% rename from server/rust/metaobjects-cli/agent-context-shipped/files/a3d1bbcd5fc2710a.md rename to server/python/src/metaobjects/agent_context/shipped/files/f771dcc13e8b0638.md index f414c26b3c..02b3692faa 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/a3d1bbcd5fc2710a.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/f771dcc13e8b0638.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/eff7b51e1cbb1a0e.md b/server/python/src/metaobjects/agent_context/shipped/files/f9bc269fedcab6bc.md similarity index 80% rename from agent-context-shipped/files/eff7b51e1cbb1a0e.md rename to server/python/src/metaobjects/agent_context/shipped/files/f9bc269fedcab6bc.md index 2675577e25..e24917b381 100644 --- a/agent-context-shipped/files/eff7b51e1cbb1a0e.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/f9bc269fedcab6bc.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/b4af1faa1ef0d00f.md b/server/python/src/metaobjects/agent_context/shipped/files/fc52ade11f519ad2.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/b4af1faa1ef0d00f.md rename to server/python/src/metaobjects/agent_context/shipped/files/fc52ade11f519ad2.md index e66f2c06f6..8082ae36b7 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/b4af1faa1ef0d00f.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/fc52ade11f519ad2.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/c015433005e43a29.md b/server/python/src/metaobjects/agent_context/shipped/files/fcae29d26c30c6e6.md similarity index 80% rename from server/python/src/metaobjects/agent_context/shipped/files/c015433005e43a29.md rename to server/python/src/metaobjects/agent_context/shipped/files/fcae29d26c30c6e6.md index 55c74f93c2..fcefe5c54c 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/c015433005e43a29.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/fcae29d26c30c6e6.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/3d1bb461b13fe925.md b/server/python/src/metaobjects/agent_context/shipped/files/fcb03dc8ede84891.md similarity index 81% rename from server/rust/metaobjects-cli/agent-context-shipped/files/3d1bb461b13fe925.md rename to server/python/src/metaobjects/agent_context/shipped/files/fcb03dc8ede84891.md index 0eb226208c..672e70c5d9 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/3d1bb461b13fe925.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/fcb03dc8ede84891.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -84,6 +98,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/0121296a2cb80b43.md b/server/python/src/metaobjects/agent_context/shipped/files/ff0436414346b01b.md similarity index 77% rename from server/python/src/metaobjects/agent_context/shipped/files/0121296a2cb80b43.md rename to server/python/src/metaobjects/agent_context/shipped/files/ff0436414346b01b.md index 1a30c84b6c..b166581a91 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/0121296a2cb80b43.md +++ b/server/python/src/metaobjects/agent_context/shipped/files/ff0436414346b01b.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -62,6 +76,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/manifest.json b/server/python/src/metaobjects/agent_context/shipped/manifest.json index 2b02b3de6f..b1e912da4f 100644 --- a/server/python/src/metaobjects/agent_context/shipped/manifest.json +++ b/server/python/src/metaobjects/agent_context/shipped/manifest.json @@ -51,7 +51,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -65,6 +65,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -107,7 +111,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -179,7 +183,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -219,7 +223,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "ad0876e3f0749dd4.md" + "file": "37fc1c1e1d520d26.md" } ] }, @@ -269,7 +273,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -283,6 +287,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -325,7 +333,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -397,7 +405,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -437,7 +445,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "92f68d0335098302.md" + "file": "610d3c0cb9608a71.md" } ] }, @@ -489,7 +497,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -503,6 +511,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -545,7 +557,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -617,7 +629,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -661,7 +673,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7da357a168d3819a.md" + "file": "2689f0fedb2de0f5.md" } ] }, @@ -713,7 +725,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -727,6 +739,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -769,7 +785,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -841,7 +857,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -885,7 +901,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "ddbd9ec7df5b0edb.md" + "file": "0b5af574087b7676.md" } ] }, @@ -938,7 +954,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -952,6 +968,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -994,7 +1014,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1066,7 +1086,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1114,7 +1134,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "c34795834cd0a156.md" + "file": "eb2a0f1848044c8f.md" } ] }, @@ -1167,7 +1187,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1181,6 +1201,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -1223,7 +1247,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1295,7 +1319,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1343,7 +1367,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9787437a82bb7e32.md" + "file": "987670c3f5dbf067.md" } ] }, @@ -1395,7 +1419,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1409,6 +1433,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -1451,7 +1479,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1523,7 +1551,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1563,7 +1591,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "80645315e02097b7.md" + "file": "dd11651cf9d3f3c3.md" } ] }, @@ -1615,7 +1643,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1629,6 +1657,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -1671,7 +1703,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1743,7 +1775,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1783,7 +1815,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "bffabb32b1e62ea4.md" + "file": "7e5805d8742096e7.md" } ] }, @@ -1833,7 +1865,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1847,6 +1879,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -1893,7 +1929,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1977,7 +2013,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "5b145f489f23b1c7.md" + "file": "c7727ca39ba4d097.md" } ] }, @@ -2027,7 +2063,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2041,6 +2077,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2087,7 +2127,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2171,7 +2211,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "c015433005e43a29.md" + "file": "fcae29d26c30c6e6.md" } ] }, @@ -2223,7 +2263,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2237,6 +2277,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2283,7 +2327,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2371,7 +2415,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "a3d1bbcd5fc2710a.md" + "file": "f771dcc13e8b0638.md" } ] }, @@ -2423,7 +2467,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2437,6 +2481,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2483,7 +2531,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2571,7 +2619,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "69c1ae480ae7dd7c.md" + "file": "c0aa79f3c7327815.md" } ] }, @@ -2624,7 +2672,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2638,6 +2686,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2684,7 +2736,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2776,7 +2828,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "b766591d53ab5c06.md" + "file": "469aec1576197f28.md" } ] }, @@ -2829,7 +2881,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2843,6 +2895,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2889,7 +2945,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2981,7 +3037,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "6c632f2dcebb53ea.md" + "file": "6324e418aa8f3ca9.md" } ] }, @@ -3033,7 +3089,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3047,6 +3103,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3093,7 +3153,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3177,7 +3237,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "77b583899dabdd55.md" + "file": "070ba86ed3e76df5.md" } ] }, @@ -3229,7 +3289,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3243,6 +3303,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3289,7 +3353,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3373,7 +3437,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7d185435e40d7e2d.md" + "file": "95729d5fbfaf0d35.md" } ] }, @@ -3423,7 +3487,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3437,6 +3501,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3483,7 +3551,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3567,7 +3635,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d3781278f0864159.md" + "file": "d1dd8fce517c4397.md" } ] }, @@ -3617,7 +3685,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3631,6 +3699,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3677,7 +3749,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3761,7 +3833,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "cf820e73bf82c1dc.md" + "file": "7e655b38310e039a.md" } ] }, @@ -3813,7 +3885,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3827,6 +3899,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3873,7 +3949,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3961,7 +4037,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "8692936865b8ca78.md" + "file": "995daf1c0b9a64ef.md" } ] }, @@ -4013,7 +4089,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4027,6 +4103,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4073,7 +4153,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4161,7 +4241,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "cce65bd52d789e7f.md" + "file": "d164e84569ccb35a.md" } ] }, @@ -4214,7 +4294,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4228,6 +4308,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4274,7 +4358,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4366,7 +4450,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "b6d58488c3486eae.md" + "file": "23eeddecbf333c35.md" } ] }, @@ -4419,7 +4503,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4433,6 +4517,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4479,7 +4567,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4571,7 +4659,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9827ffbab8ae5c2d.md" + "file": "180ea012b7662e9b.md" } ] }, @@ -4623,7 +4711,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4637,6 +4725,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4683,7 +4775,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4767,7 +4859,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "8d415448458487c1.md" + "file": "a91973d190a00b23.md" } ] }, @@ -4819,7 +4911,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4833,6 +4925,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4879,7 +4975,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4963,7 +5059,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "1813baf4e1ff00dc.md" + "file": "22f1fc4abae9172c.md" } ] }, @@ -5013,7 +5109,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5027,6 +5123,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5073,7 +5173,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5157,7 +5257,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "4bf396aa4831d3b0.md" + "file": "38e72e6b0ab7f58a.md" } ] }, @@ -5207,7 +5307,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5221,6 +5321,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5267,7 +5371,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5351,7 +5455,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "68aea133c93dc3c6.md" + "file": "0fa8c9d99447d618.md" } ] }, @@ -5403,7 +5507,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5417,6 +5521,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5463,7 +5571,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5551,7 +5659,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "eb9a53fcc569deb6.md" + "file": "a9fb54f0efbd6879.md" } ] }, @@ -5603,7 +5711,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5617,6 +5725,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5663,7 +5775,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5751,7 +5863,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "12851cf06a512e01.md" + "file": "b8a6831a7078b180.md" } ] }, @@ -5804,7 +5916,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5818,6 +5930,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5864,7 +5980,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5956,7 +6072,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "e14e81035a4516a6.md" + "file": "f6830e7c4050fd35.md" } ] }, @@ -6009,7 +6125,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6023,6 +6139,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6069,7 +6189,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6161,7 +6281,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "64726b55218b2d12.md" + "file": "e27ff21bb76238d7.md" } ] }, @@ -6213,7 +6333,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6227,6 +6347,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6273,7 +6397,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6357,7 +6481,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "6eaaf67c049daead.md" + "file": "0da05b8a8f726c59.md" } ] }, @@ -6409,7 +6533,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6423,6 +6547,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6469,7 +6597,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6553,7 +6681,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d6d7f822563ee216.md" + "file": "3afe3b4c6ce94288.md" } ] }, @@ -6603,7 +6731,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6617,6 +6745,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6663,7 +6795,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6747,7 +6879,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7cb243bcfd1823db.md" + "file": "9c7210dbf22f468a.md" } ] }, @@ -6797,7 +6929,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6811,6 +6943,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6857,7 +6993,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6941,7 +7077,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "3d1bb461b13fe925.md" + "file": "fcb03dc8ede84891.md" } ] }, @@ -6993,7 +7129,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7007,6 +7143,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7053,7 +7193,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7141,7 +7281,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "db90c9240f5bf92a.md" + "file": "d21c634b4283acee.md" } ] }, @@ -7193,7 +7333,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7207,6 +7347,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7253,7 +7397,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7341,7 +7485,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9de55e412aee8057.md" + "file": "0c366480181a4f29.md" } ] }, @@ -7394,7 +7538,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7408,6 +7552,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7454,7 +7602,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7546,7 +7694,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "eff7b51e1cbb1a0e.md" + "file": "f9bc269fedcab6bc.md" } ] }, @@ -7599,7 +7747,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7613,6 +7761,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7659,7 +7811,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7751,7 +7903,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7d6c30e9d03b88b9.md" + "file": "aba79b6a5f1c6df7.md" } ] }, @@ -7803,7 +7955,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7817,6 +7969,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7863,7 +8019,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7947,7 +8103,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "f0d3aa0b6ca8c7b5.md" + "file": "16ca093e7d3e50b8.md" } ] }, @@ -7999,7 +8155,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8013,6 +8169,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8059,7 +8219,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8143,7 +8303,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "3351fb1999f7cddc.md" + "file": "3e59bf0de96d4e94.md" } ] }, @@ -8189,7 +8349,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8203,6 +8363,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8245,7 +8409,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8317,7 +8481,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "0121296a2cb80b43.md" + "file": "ff0436414346b01b.md" } ] }, @@ -8363,7 +8527,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8377,6 +8541,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8419,7 +8587,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8491,7 +8659,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "a78ffa7309cd29b2.md" + "file": "bd8bf51a8f2078e0.md" } ] }, @@ -8539,7 +8707,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8553,6 +8721,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8595,7 +8767,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8671,7 +8843,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d0ba0e01fd2b3f7b.md" + "file": "cfd2a3220683660a.md" } ] }, @@ -8719,7 +8891,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8733,6 +8905,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8775,7 +8951,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8851,7 +9027,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "10fd5004cdff1b02.md" + "file": "7375f17656d07312.md" } ] }, @@ -8900,7 +9076,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8914,6 +9090,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8956,7 +9136,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9036,7 +9216,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "dbc673d7e2efb728.md" + "file": "a978cd0effa00e0c.md" } ] }, @@ -9085,7 +9265,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9099,6 +9279,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9141,7 +9325,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9221,7 +9405,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9e4438fd935ebc25.md" + "file": "85bc169462e1acef.md" } ] }, @@ -9269,7 +9453,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9283,6 +9467,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9325,7 +9513,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9397,7 +9585,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d46dd9dbffacbab6.md" + "file": "f073f047e7007532.md" } ] }, @@ -9445,7 +9633,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9459,6 +9647,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9501,7 +9693,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9573,7 +9765,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "c4cea8aaaf65fd1c.md" + "file": "6e98c98cde6411e2.md" } ] }, @@ -9628,7 +9820,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9642,6 +9834,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9692,7 +9888,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9788,7 +9984,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "ea6a3a84c8377d9f.md" + "file": "b43a6bcce62efccb.md" } ] }, @@ -9843,7 +10039,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9857,6 +10053,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9907,7 +10107,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10003,7 +10203,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "b4af1faa1ef0d00f.md" + "file": "fc52ade11f519ad2.md" } ] }, @@ -10060,7 +10260,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10074,6 +10274,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -10124,7 +10328,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10224,7 +10428,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "2a850663b29e895c.md" + "file": "b265aeb870f81aa9.md" } ] }, @@ -10281,7 +10485,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10295,6 +10499,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -10345,7 +10553,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10445,7 +10653,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "8f920c881b85118b.md" + "file": "1830b9df68903eb9.md" } ] }, @@ -10503,7 +10711,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10517,6 +10725,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -10567,7 +10779,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10671,7 +10883,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "c51749f6baf00a9b.md" + "file": "5cb6da08078dcbee.md" } ] }, @@ -10729,7 +10941,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10743,6 +10955,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -10793,7 +11009,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10897,7 +11113,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "1d61842e76db07d7.md" + "file": "619eeeddb8de4749.md" } ] }, @@ -10954,7 +11170,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10968,6 +11184,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -11018,7 +11238,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -11114,7 +11334,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9b387a8983e116d2.md" + "file": "edcfbd15fb4e4ad7.md" } ] }, @@ -11171,7 +11391,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -11185,6 +11405,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -11235,7 +11459,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -11331,7 +11555,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "2b4a4bfa31529de3.md" + "file": "47a9c12e127a574d.md" } ] } diff --git a/agent-context-shipped/files/77b583899dabdd55.md b/server/rust/metaobjects-cli/agent-context-shipped/files/070ba86ed3e76df5.md similarity index 79% rename from agent-context-shipped/files/77b583899dabdd55.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/070ba86ed3e76df5.md index c88540376f..d9d29068ea 100644 --- a/agent-context-shipped/files/77b583899dabdd55.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/070ba86ed3e76df5.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/e5c6430567eecae4.md b/server/rust/metaobjects-cli/agent-context-shipped/files/076e5a258ec0bc47.md similarity index 95% rename from agent-context-shipped/files/e5c6430567eecae4.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/076e5a258ec0bc47.md index e2e63964d2..6ef3585b6c 100644 --- a/agent-context-shipped/files/e5c6430567eecae4.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/076e5a258ec0bc47.md @@ -116,6 +116,14 @@ service — these never reference the model. **L4** binds a declared top-level n validator, identity, a template's child, an operation, or a transition. `implementedBy` above L4 is an error. Regrouping *moves* a node; it does not edit a parent string. +**A behaviour claim points at behaviour.** "A request is cancelled only while open" names the +transition (`..`, e.g. `acme::orders::Order.status.cancel`); "a +reviewer decides a request" names the operation (`.`, e.g. +`acme::purchasing::Purchasing.decide`). A claim that names only the entity it touches is +satisfied by a table that exists whether or not the rule is built. When the transition or +operation is not declared yet, declare it (`references/business-rules.md`) or +leave the claim `planned` with the ref it will have. + **Write an L5 ref as a dotted `pkg::Owner.member` path** — the level and the shape of the ref must agree, and this is the single easiest thing to get wrong: diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/ddbd9ec7df5b0edb.md b/server/rust/metaobjects-cli/agent-context-shipped/files/0b5af574087b7676.md similarity index 83% rename from server/rust/metaobjects-cli/agent-context-shipped/files/ddbd9ec7df5b0edb.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/0b5af574087b7676.md index b227064d41..1d43511a9f 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/ddbd9ec7df5b0edb.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/0b5af574087b7676.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/9de55e412aee8057.md b/server/rust/metaobjects-cli/agent-context-shipped/files/0c366480181a4f29.md similarity index 82% rename from agent-context-shipped/files/9de55e412aee8057.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/0c366480181a4f29.md index 1ce7c6fe47..7c686dbbb5 100644 --- a/agent-context-shipped/files/9de55e412aee8057.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/0c366480181a4f29.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -94,6 +108,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/6eaaf67c049daead.md b/server/rust/metaobjects-cli/agent-context-shipped/files/0da05b8a8f726c59.md similarity index 80% rename from server/rust/metaobjects-cli/agent-context-shipped/files/6eaaf67c049daead.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/0da05b8a8f726c59.md index 92f49d5fa4..3aa3f0900e 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/6eaaf67c049daead.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/0da05b8a8f726c59.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -74,6 +88,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/68aea133c93dc3c6.md b/server/rust/metaobjects-cli/agent-context-shipped/files/0fa8c9d99447d618.md similarity index 81% rename from agent-context-shipped/files/68aea133c93dc3c6.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/0fa8c9d99447d618.md index 749da5d121..4fed21c00a 100644 --- a/agent-context-shipped/files/68aea133c93dc3c6.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/0fa8c9d99447d618.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -83,6 +97,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/f0d3aa0b6ca8c7b5.md b/server/rust/metaobjects-cli/agent-context-shipped/files/16ca093e7d3e50b8.md similarity index 80% rename from agent-context-shipped/files/f0d3aa0b6ca8c7b5.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/16ca093e7d3e50b8.md index 84788926ac..1eb4275ef6 100644 --- a/agent-context-shipped/files/f0d3aa0b6ca8c7b5.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/16ca093e7d3e50b8.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/9827ffbab8ae5c2d.md b/server/rust/metaobjects-cli/agent-context-shipped/files/180ea012b7662e9b.md similarity index 82% rename from agent-context-shipped/files/9827ffbab8ae5c2d.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/180ea012b7662e9b.md index ade8e3c87a..2ebad24502 100644 --- a/agent-context-shipped/files/9827ffbab8ae5c2d.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/180ea012b7662e9b.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/8f920c881b85118b.md b/server/rust/metaobjects-cli/agent-context-shipped/files/1830b9df68903eb9.md similarity index 83% rename from server/rust/metaobjects-cli/agent-context-shipped/files/8f920c881b85118b.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/1830b9df68903eb9.md index f1d6737c86..b69adcb17d 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/8f920c881b85118b.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/1830b9df68903eb9.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/1813baf4e1ff00dc.md b/server/rust/metaobjects-cli/agent-context-shipped/files/22f1fc4abae9172c.md similarity index 82% rename from agent-context-shipped/files/1813baf4e1ff00dc.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/22f1fc4abae9172c.md index 086412a5ce..eefca8d8e0 100644 --- a/agent-context-shipped/files/1813baf4e1ff00dc.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/22f1fc4abae9172c.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/b6d58488c3486eae.md b/server/rust/metaobjects-cli/agent-context-shipped/files/23eeddecbf333c35.md similarity index 79% rename from server/rust/metaobjects-cli/agent-context-shipped/files/b6d58488c3486eae.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/23eeddecbf333c35.md index 431f4aeb77..8bd6b9c8e4 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/b6d58488c3486eae.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/23eeddecbf333c35.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/7da357a168d3819a.md b/server/rust/metaobjects-cli/agent-context-shipped/files/2689f0fedb2de0f5.md similarity index 80% rename from server/python/src/metaobjects/agent_context/shipped/files/7da357a168d3819a.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/2689f0fedb2de0f5.md index 63b6c909bc..e4b48f3779 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/7da357a168d3819a.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/2689f0fedb2de0f5.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/87b4d71a9905489d.md b/server/rust/metaobjects-cli/agent-context-shipped/files/2f7c99b3ce88ef3d.md similarity index 97% rename from server/python/src/metaobjects/agent_context/shipped/files/87b4d71a9905489d.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/2f7c99b3ce88ef3d.md index 211102dfdf..ae12d24feb 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/87b4d71a9905489d.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/2f7c99b3ce88ef3d.md @@ -11,11 +11,12 @@ emits code in each language from it, and the drift gates check everything agains ## Essentials - **Declare it; do not hand-write it.** Persistence, data access, validation, APIs and UI - scaffolding are derived from metadata. When you reach for a hand-written query, route, - validator, relationship or aggregate, that is usually metadata nobody has declared yet: - look for the construct first (`meta types `). Declare it when the cost test favours - it: smaller declared than hand-written, more than one instance, or drift protection a - hand-write cannot give. A one-off with none of these can stay hand-written. + scaffolding are derived from metadata. A hand-written query, route, validator, relationship + or aggregate is usually metadata nobody has declared yet: look for the construct first + (`meta types `); a status lifecycle or a named action is a business rule + (`references/business-rules.md`). Declare it when the cost test favours it: smaller declared + than hand-written, more than one instance, or drift protection a hand-write cannot give. + A one-off with none of these can stay hand-written. - **Adoption reverses the direction.** When working code or a populated schema already exists, it is the specification and the metadata reproduces it: its names, types and nullability. Read `references/adopting-existing-code.md` before modeling anything. @@ -26,8 +27,7 @@ emits code in each language from it, and the drift gates check everything agains shaped by `references/semantic-modelling.md` (what a thing is, never a product or a step). - **Choose a field's shape by what the value is, not how it is stored**: a UUID is `field.uuid`, money is `field.currency`, a list is `isArray: true`, and a JSON column takes - the type its writer already declares. The canonical-form table below covers the common - cases. + the type its writer already declares. The canonical-form table below covers common cases. - **A relationship's subtype sets the default delete action, and the FK-owning (child) side governs.** Modeling every link as `composition` arms cascades nobody asked for. - **In YAML, quote any scalar that looks like a boolean, number, date or null.** @@ -479,6 +479,7 @@ with no reason to exist becomes visible. Reach for them when the project needs t - **"What have we committed to build and not built yet?"** `@status: planned`: the one status where a dangling `@implementedBy` is correct. It never counts toward object coverage. - **"Which ticket covers this?"** `@trackedBy`. +- **"Is this behaviour built?"** Point the claim at its transition or operation, not its table. Every requirement must be violable: if you cannot say what breaking it looks like, it is a description, not a requirement. diff --git a/agent-context-shipped/files/ad0876e3f0749dd4.md b/server/rust/metaobjects-cli/agent-context-shipped/files/37fc1c1e1d520d26.md similarity index 79% rename from agent-context-shipped/files/ad0876e3f0749dd4.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/37fc1c1e1d520d26.md index 0936a38788..5a8200a70c 100644 --- a/agent-context-shipped/files/ad0876e3f0749dd4.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/37fc1c1e1d520d26.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -67,6 +81,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/4bf396aa4831d3b0.md b/server/rust/metaobjects-cli/agent-context-shipped/files/38e72e6b0ab7f58a.md similarity index 77% rename from agent-context-shipped/files/4bf396aa4831d3b0.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/38e72e6b0ab7f58a.md index f0e4c48037..03298b2b0b 100644 --- a/agent-context-shipped/files/4bf396aa4831d3b0.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/38e72e6b0ab7f58a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -64,6 +78,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/d6d7f822563ee216.md b/server/rust/metaobjects-cli/agent-context-shipped/files/3afe3b4c6ce94288.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/d6d7f822563ee216.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/3afe3b4c6ce94288.md index ecf1563877..0e105f9952 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/d6d7f822563ee216.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/3afe3b4c6ce94288.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -93,6 +107,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/3351fb1999f7cddc.md b/server/rust/metaobjects-cli/agent-context-shipped/files/3e59bf0de96d4e94.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/3351fb1999f7cddc.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/3e59bf0de96d4e94.md index 99f8e727e0..95e554171e 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/3351fb1999f7cddc.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/3e59bf0de96d4e94.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -94,6 +108,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/b766591d53ab5c06.md b/server/rust/metaobjects-cli/agent-context-shipped/files/469aec1576197f28.md similarity index 79% rename from server/rust/metaobjects-cli/agent-context-shipped/files/b766591d53ab5c06.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/469aec1576197f28.md index 8a3bf1f6e0..b137e9e0e5 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/b766591d53ab5c06.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/469aec1576197f28.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/2b4a4bfa31529de3.md b/server/rust/metaobjects-cli/agent-context-shipped/files/47a9c12e127a574d.md similarity index 83% rename from agent-context-shipped/files/2b4a4bfa31529de3.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/47a9c12e127a574d.md index b8cefeb5a2..a7505365c8 100644 --- a/agent-context-shipped/files/2b4a4bfa31529de3.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/47a9c12e127a574d.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/c51749f6baf00a9b.md b/server/rust/metaobjects-cli/agent-context-shipped/files/5cb6da08078dcbee.md similarity index 81% rename from agent-context-shipped/files/c51749f6baf00a9b.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/5cb6da08078dcbee.md index bb2aff48f9..e573e6a098 100644 --- a/agent-context-shipped/files/c51749f6baf00a9b.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/5cb6da08078dcbee.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/92f68d0335098302.md b/server/rust/metaobjects-cli/agent-context-shipped/files/610d3c0cb9608a71.md similarity index 82% rename from agent-context-shipped/files/92f68d0335098302.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/610d3c0cb9608a71.md index 3be1fa083e..84212db19a 100644 --- a/agent-context-shipped/files/92f68d0335098302.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/610d3c0cb9608a71.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -86,6 +100,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/1d61842e76db07d7.md b/server/rust/metaobjects-cli/agent-context-shipped/files/619eeeddb8de4749.md similarity index 83% rename from server/python/src/metaobjects/agent_context/shipped/files/1d61842e76db07d7.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/619eeeddb8de4749.md index 861bb20368..9ae23f82eb 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/1d61842e76db07d7.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/619eeeddb8de4749.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/6c632f2dcebb53ea.md b/server/rust/metaobjects-cli/agent-context-shipped/files/6324e418aa8f3ca9.md similarity index 82% rename from agent-context-shipped/files/6c632f2dcebb53ea.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/6324e418aa8f3ca9.md index 411af6cf0b..8408cd6531 100644 --- a/agent-context-shipped/files/6c632f2dcebb53ea.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/6324e418aa8f3ca9.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/c4cea8aaaf65fd1c.md b/server/rust/metaobjects-cli/agent-context-shipped/files/6e98c98cde6411e2.md similarity index 82% rename from agent-context-shipped/files/c4cea8aaaf65fd1c.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/6e98c98cde6411e2.md index de5ad3d549..8af07a56de 100644 --- a/agent-context-shipped/files/c4cea8aaaf65fd1c.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/6e98c98cde6411e2.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -91,6 +105,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/10fd5004cdff1b02.md b/server/rust/metaobjects-cli/agent-context-shipped/files/7375f17656d07312.md similarity index 82% rename from server/python/src/metaobjects/agent_context/shipped/files/10fd5004cdff1b02.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/7375f17656d07312.md index 7a153cc807..498417e795 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/10fd5004cdff1b02.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/7375f17656d07312.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -91,6 +105,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/bffabb32b1e62ea4.md b/server/rust/metaobjects-cli/agent-context-shipped/files/7e5805d8742096e7.md similarity index 83% rename from server/rust/metaobjects-cli/agent-context-shipped/files/bffabb32b1e62ea4.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/7e5805d8742096e7.md index fedb3986c4..5849d13f67 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/bffabb32b1e62ea4.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/7e5805d8742096e7.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/cf820e73bf82c1dc.md b/server/rust/metaobjects-cli/agent-context-shipped/files/7e655b38310e039a.md similarity index 80% rename from agent-context-shipped/files/cf820e73bf82c1dc.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/7e655b38310e039a.md index 1522c0a904..ef12bda4c3 100644 --- a/agent-context-shipped/files/cf820e73bf82c1dc.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/7e655b38310e039a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/9e4438fd935ebc25.md b/server/rust/metaobjects-cli/agent-context-shipped/files/85bc169462e1acef.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/9e4438fd935ebc25.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/85bc169462e1acef.md index fad93b86d0..125d7a1d6c 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/9e4438fd935ebc25.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/85bc169462e1acef.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -91,6 +105,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/7d185435e40d7e2d.md b/server/rust/metaobjects-cli/agent-context-shipped/files/95729d5fbfaf0d35.md similarity index 82% rename from agent-context-shipped/files/7d185435e40d7e2d.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/95729d5fbfaf0d35.md index 8760b720b6..56b34f7af5 100644 --- a/agent-context-shipped/files/7d185435e40d7e2d.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/95729d5fbfaf0d35.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/9787437a82bb7e32.md b/server/rust/metaobjects-cli/agent-context-shipped/files/987670c3f5dbf067.md similarity index 83% rename from agent-context-shipped/files/9787437a82bb7e32.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/987670c3f5dbf067.md index 8beb06b5bb..e49d83a46c 100644 --- a/agent-context-shipped/files/9787437a82bb7e32.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/987670c3f5dbf067.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -95,6 +109,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/8692936865b8ca78.md b/server/rust/metaobjects-cli/agent-context-shipped/files/995daf1c0b9a64ef.md similarity index 79% rename from server/rust/metaobjects-cli/agent-context-shipped/files/8692936865b8ca78.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/995daf1c0b9a64ef.md index 57a6927b6c..e00fe1067d 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/8692936865b8ca78.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/995daf1c0b9a64ef.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/7cb243bcfd1823db.md b/server/rust/metaobjects-cli/agent-context-shipped/files/9c7210dbf22f468a.md similarity index 77% rename from agent-context-shipped/files/7cb243bcfd1823db.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/9c7210dbf22f468a.md index 762bb44265..9ad581a6b1 100644 --- a/agent-context-shipped/files/7cb243bcfd1823db.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/9c7210dbf22f468a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -65,6 +79,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/8d415448458487c1.md b/server/rust/metaobjects-cli/agent-context-shipped/files/a91973d190a00b23.md similarity index 79% rename from agent-context-shipped/files/8d415448458487c1.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/a91973d190a00b23.md index 84f0aaf817..a7a1fd4d04 100644 --- a/agent-context-shipped/files/8d415448458487c1.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/a91973d190a00b23.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/dbc673d7e2efb728.md b/server/rust/metaobjects-cli/agent-context-shipped/files/a978cd0effa00e0c.md similarity index 79% rename from agent-context-shipped/files/dbc673d7e2efb728.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/a978cd0effa00e0c.md index 685a34dcb4..d7076780f5 100644 --- a/agent-context-shipped/files/dbc673d7e2efb728.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/a978cd0effa00e0c.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -72,6 +86,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/eb9a53fcc569deb6.md b/server/rust/metaobjects-cli/agent-context-shipped/files/a9fb54f0efbd6879.md similarity index 80% rename from agent-context-shipped/files/eb9a53fcc569deb6.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/a9fb54f0efbd6879.md index a2cdafaae0..34afb3c3e8 100644 --- a/agent-context-shipped/files/eb9a53fcc569deb6.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/a9fb54f0efbd6879.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -74,6 +88,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/7d6c30e9d03b88b9.md b/server/rust/metaobjects-cli/agent-context-shipped/files/aba79b6a5f1c6df7.md similarity index 82% rename from server/rust/metaobjects-cli/agent-context-shipped/files/7d6c30e9d03b88b9.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/aba79b6a5f1c6df7.md index 74c3edc882..f5555d370f 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/7d6c30e9d03b88b9.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/aba79b6a5f1c6df7.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -94,6 +108,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/2a850663b29e895c.md b/server/rust/metaobjects-cli/agent-context-shipped/files/b265aeb870f81aa9.md similarity index 81% rename from server/python/src/metaobjects/agent_context/shipped/files/2a850663b29e895c.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/b265aeb870f81aa9.md index c3b4972bbb..b452c60fd0 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/2a850663b29e895c.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/b265aeb870f81aa9.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/ea6a3a84c8377d9f.md b/server/rust/metaobjects-cli/agent-context-shipped/files/b43a6bcce62efccb.md similarity index 79% rename from server/rust/metaobjects-cli/agent-context-shipped/files/ea6a3a84c8377d9f.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/b43a6bcce62efccb.md index 83fe8a8aa3..59357059b8 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/ea6a3a84c8377d9f.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/b43a6bcce62efccb.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/12851cf06a512e01.md b/server/rust/metaobjects-cli/agent-context-shipped/files/b8a6831a7078b180.md similarity index 82% rename from agent-context-shipped/files/12851cf06a512e01.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/b8a6831a7078b180.md index 1d0e8c9445..205c9e0ef3 100644 --- a/agent-context-shipped/files/12851cf06a512e01.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/b8a6831a7078b180.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -93,6 +107,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/a78ffa7309cd29b2.md b/server/rust/metaobjects-cli/agent-context-shipped/files/bd8bf51a8f2078e0.md similarity index 81% rename from agent-context-shipped/files/a78ffa7309cd29b2.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/bd8bf51a8f2078e0.md index 55a47cec6a..476c48de23 100644 --- a/agent-context-shipped/files/a78ffa7309cd29b2.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/bd8bf51a8f2078e0.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -81,6 +95,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/69c1ae480ae7dd7c.md b/server/rust/metaobjects-cli/agent-context-shipped/files/c0aa79f3c7327815.md similarity index 82% rename from agent-context-shipped/files/69c1ae480ae7dd7c.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/c0aa79f3c7327815.md index 22266d26e1..ab66105902 100644 --- a/agent-context-shipped/files/69c1ae480ae7dd7c.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/c0aa79f3c7327815.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/5b145f489f23b1c7.md b/server/rust/metaobjects-cli/agent-context-shipped/files/c7727ca39ba4d097.md similarity index 77% rename from agent-context-shipped/files/5b145f489f23b1c7.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/c7727ca39ba4d097.md index bd68e7535d..02f00e9edb 100644 --- a/agent-context-shipped/files/5b145f489f23b1c7.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/c7727ca39ba4d097.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -56,6 +70,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/python/src/metaobjects/agent_context/shipped/files/61d9c5d06a2af7fd.md b/server/rust/metaobjects-cli/agent-context-shipped/files/cc3b1880c6b81540.md similarity index 98% rename from server/python/src/metaobjects/agent_context/shipped/files/61d9c5d06a2af7fd.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/cc3b1880c6b81540.md index bee4e9c856..37d6ab0abf 100644 --- a/server/python/src/metaobjects/agent_context/shipped/files/61d9c5d06a2af7fd.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/cc3b1880c6b81540.md @@ -179,7 +179,11 @@ you write its assertion (the three-way merge keeps it), a `planned` or `retired` skipped stub. Options: `filter` (a predicate over `subType`, `level`, `status`, `path`, `package`, `implementedByTypes` that REPLACES the default of functional L4/L5), `grain` (`"concern"`, the default, or `"member"`; anything else is refused), `warnUncovered`, -`renderers` / `resolveRenderer`. `meta eject requirement-tests` copies the generator and +`renderers` / `resolveRenderer`, and `framework` (`"bun"`, `"vitest"` or `"jest"`; absent, it +is read from `package.json`: vitest, else jest, else bun). The stubs land in +`/requirements/`, so the test runner's include pattern must cover that folder, or +point `target` at a directory it reads; a stub the runner never collects proves nothing. +`meta eject requirement-tests` copies the generator and its default stub renderer into `codegen/generators/requirement-tests.ts`; the requirement walk, each test's identity and the claim digest are engine and stay in the package. The requirement checks in `meta verify` are core and are not ejectable. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/d0ba0e01fd2b3f7b.md b/server/rust/metaobjects-cli/agent-context-shipped/files/cfd2a3220683660a.md similarity index 79% rename from server/rust/metaobjects-cli/agent-context-shipped/files/d0ba0e01fd2b3f7b.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/cfd2a3220683660a.md index f9cb943aea..800e78f7d3 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/d0ba0e01fd2b3f7b.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/cfd2a3220683660a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -72,6 +86,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/cce65bd52d789e7f.md b/server/rust/metaobjects-cli/agent-context-shipped/files/d164e84569ccb35a.md similarity index 82% rename from agent-context-shipped/files/cce65bd52d789e7f.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/d164e84569ccb35a.md index 96d73b6524..91d8871e86 100644 --- a/agent-context-shipped/files/cce65bd52d789e7f.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/d164e84569ccb35a.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/d3781278f0864159.md b/server/rust/metaobjects-cli/agent-context-shipped/files/d1dd8fce517c4397.md similarity index 77% rename from agent-context-shipped/files/d3781278f0864159.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/d1dd8fce517c4397.md index f9bd4ee112..3bed86cb4e 100644 --- a/agent-context-shipped/files/d3781278f0864159.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/d1dd8fce517c4397.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Kotlin: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -56,6 +70,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/db90c9240f5bf92a.md b/server/rust/metaobjects-cli/agent-context-shipped/files/d21c634b4283acee.md similarity index 80% rename from server/rust/metaobjects-cli/agent-context-shipped/files/db90c9240f5bf92a.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/d21c634b4283acee.md index aeea6c4f88..93fed0dd44 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/db90c9240f5bf92a.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/d21c634b4283acee.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/80645315e02097b7.md b/server/rust/metaobjects-cli/agent-context-shipped/files/dd11651cf9d3f3c3.md similarity index 80% rename from server/rust/metaobjects-cli/agent-context-shipped/files/80645315e02097b7.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/dd11651cf9d3f3c3.md index 668346431d..a48353e321 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/80645315e02097b7.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/dd11651cf9d3f3c3.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/64726b55218b2d12.md b/server/rust/metaobjects-cli/agent-context-shipped/files/e27ff21bb76238d7.md similarity index 82% rename from agent-context-shipped/files/64726b55218b2d12.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/e27ff21bb76238d7.md index 2fcdf0cc08..db3daa752f 100644 --- a/agent-context-shipped/files/64726b55218b2d12.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/e27ff21bb76238d7.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -93,6 +107,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/e92260915394bacd.md b/server/rust/metaobjects-cli/agent-context-shipped/files/e92260915394bacd.md new file mode 100644 index 0000000000..2bc59ef65e --- /dev/null +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/e92260915394bacd.md @@ -0,0 +1,25 @@ +# Business rules: lifecycles, commands and queries + +A status, state or stage enum whose values change only by allowed moves is a lifecycle: +declare each move as a `transition.action` child of that `field.enum` (`from`, `to`, an +optional `condition`). A named action someone runs (approve, vote, withdraw) is an +`operation.command` in an `api.operational`, and a named read an `operation.query`; each +carries a permission point. The model says which moves are legal and where a decision is +needed; the body of the rule stays code. `verify` checks the lifecycle (every state +reachable) in every port, and the TypeScript `service` generators enforce it at run time +(`meta init --with-services` wires them). The vocabulary is experimental (ADR-0066); see +`docs/features/business-rules.md` for the full shape. + +```yaml +- field.enum: + name: status + values: [open, passed, declined, withdrawn] + default: open + children: + - transition.action: { name: pass, from: [open], to: passed } + - transition.action: { name: decline, from: [open], to: declined } + - transition.action: { name: withdraw, from: [open], to: withdrawn } +``` + +Hand-writing a guarded `UPDATE ... WHERE status = 'open'` or a list of allowed moves is the +sign a lifecycle is undeclared. diff --git a/agent-context-shipped/files/c34795834cd0a156.md b/server/rust/metaobjects-cli/agent-context-shipped/files/eb2a0f1848044c8f.md similarity index 80% rename from agent-context-shipped/files/c34795834cd0a156.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/eb2a0f1848044c8f.md index c7bc2e3559..b9f5a3869a 100644 --- a/agent-context-shipped/files/c34795834cd0a156.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/eb2a0f1848044c8f.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### TypeScript: generate with `npx meta gen` 1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/9b387a8983e116d2.md b/server/rust/metaobjects-cli/agent-context-shipped/files/edcfbd15fb4e4ad7.md similarity index 81% rename from server/rust/metaobjects-cli/agent-context-shipped/files/9b387a8983e116d2.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/edcfbd15fb4e4ad7.md index 0cd82e373d..b05e5287fd 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/9b387a8983e116d2.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/edcfbd15fb4e4ad7.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -76,6 +90,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/d46dd9dbffacbab6.md b/server/rust/metaobjects-cli/agent-context-shipped/files/f073f047e7007532.md similarity index 79% rename from server/rust/metaobjects-cli/agent-context-shipped/files/d46dd9dbffacbab6.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/f073f047e7007532.md index 5a07be2f50..898d0e4ecc 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/d46dd9dbffacbab6.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/f073f047e7007532.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -72,6 +86,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/e14e81035a4516a6.md b/server/rust/metaobjects-cli/agent-context-shipped/files/f6830e7c4050fd35.md similarity index 80% rename from server/rust/metaobjects-cli/agent-context-shipped/files/e14e81035a4516a6.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/f6830e7c4050fd35.md index 0d68ee2ffe..8a85c97beb 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/e14e81035a4516a6.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/f6830e7c4050fd35.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### C#: generate with `dotnet meta gen` 1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. @@ -74,6 +88,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/a3d1bbcd5fc2710a.md b/server/rust/metaobjects-cli/agent-context-shipped/files/f771dcc13e8b0638.md similarity index 79% rename from agent-context-shipped/files/a3d1bbcd5fc2710a.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/f771dcc13e8b0638.md index f414c26b3c..02b3692faa 100644 --- a/agent-context-shipped/files/a3d1bbcd5fc2710a.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/f771dcc13e8b0638.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -66,6 +80,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/eff7b51e1cbb1a0e.md b/server/rust/metaobjects-cli/agent-context-shipped/files/f9bc269fedcab6bc.md similarity index 80% rename from server/rust/metaobjects-cli/agent-context-shipped/files/eff7b51e1cbb1a0e.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/f9bc269fedcab6bc.md index 2675577e25..e24917b381 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/eff7b51e1cbb1a0e.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/f9bc269fedcab6bc.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/b4af1faa1ef0d00f.md b/server/rust/metaobjects-cli/agent-context-shipped/files/fc52ade11f519ad2.md similarity index 82% rename from agent-context-shipped/files/b4af1faa1ef0d00f.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/fc52ade11f519ad2.md index e66f2c06f6..8082ae36b7 100644 --- a/agent-context-shipped/files/b4af1faa1ef0d00f.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/fc52ade11f519ad2.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -85,6 +99,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/c015433005e43a29.md b/server/rust/metaobjects-cli/agent-context-shipped/files/fcae29d26c30c6e6.md similarity index 80% rename from server/rust/metaobjects-cli/agent-context-shipped/files/c015433005e43a29.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/fcae29d26c30c6e6.md index 55c74f93c2..fcefe5c54c 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/c015433005e43a29.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/fcae29d26c30c6e6.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Java: generate with `mvn metaobjects:generate` 1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator @@ -75,6 +89,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/agent-context-shipped/files/3d1bb461b13fe925.md b/server/rust/metaobjects-cli/agent-context-shipped/files/fcb03dc8ede84891.md similarity index 81% rename from agent-context-shipped/files/3d1bb461b13fe925.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/fcb03dc8ede84891.md index 0eb226208c..672e70c5d9 100644 --- a/agent-context-shipped/files/3d1bb461b13fe925.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/fcb03dc8ede84891.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Python: generate with `metaobjects gen` 1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing @@ -84,6 +98,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/0121296a2cb80b43.md b/server/rust/metaobjects-cli/agent-context-shipped/files/ff0436414346b01b.md similarity index 77% rename from server/rust/metaobjects-cli/agent-context-shipped/files/0121296a2cb80b43.md rename to server/rust/metaobjects-cli/agent-context-shipped/files/ff0436414346b01b.md index 1a30c84b6c..b166581a91 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/0121296a2cb80b43.md +++ b/server/rust/metaobjects-cli/agent-context-shipped/files/ff0436414346b01b.md @@ -10,6 +10,20 @@ truth. Code, schema and migrations are generated from it and are regenerated out ## Start here: the whole loop, in order +### 0. Requirements first, when the project keeps a ledger + +Requirements are opt-in, and a ledger is what makes "is it built?" checkable. When the project +keeps one (`requirement.*` nodes; `meta init` writes `metaobjects/meta.requirements.json` empty): + +- Before building a feature, declare one `requirement.functional` node for it, `@status: planned`, + nested under the ledger's level-1 node (add one first), at `@level: 2` or `3`. It carries no link. +- Put each claim on an `@level: 4` (an object) or `@level: 5` (a member) child; only these + carry `@implementedBy`. A behaviour claim is L5 and points at the transition or operation + that does it, not only at the entity it touches: a table exists whether or not the rule is built. +- Wire the `requirement-tests` generator: every functional L4/L5 claim gets a test stub, + skipped while it is `planned` and failing once it is `live` until you write it. +- Update `@status` in the same commit that builds the claim (`live` once built, never before). + ### Rust: generate with `cargo meta gen` 1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the @@ -62,6 +76,11 @@ When the project serves the generated routes (any port): broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. - Never spell a table or column name as a string; use the generated table or names constants. - Wire a generator only for output you will import. +- Business rules are declared, and only their bodies are hand-written: a status enum with + allowed moves is a `transition.action` lifecycle on that field, a named action is an + `operation.command` (a named read an `operation.query`), each with its permission point + (`metaobjects-authoring`). The TypeScript service generators enforce them; + `meta init --with-services` wires them. - An LLM prompt in a project that declares `template.prompt` is a declared template (`metaobjects-prompts`); a grouped total or report view is an `object.report` (`metaobjects-authoring`). Open the skill before writing either by hand. diff --git a/server/rust/metaobjects-cli/agent-context-shipped/manifest.json b/server/rust/metaobjects-cli/agent-context-shipped/manifest.json index 2b02b3de6f..b1e912da4f 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/manifest.json +++ b/server/rust/metaobjects-cli/agent-context-shipped/manifest.json @@ -51,7 +51,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -65,6 +65,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -107,7 +111,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -179,7 +183,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -219,7 +223,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "ad0876e3f0749dd4.md" + "file": "37fc1c1e1d520d26.md" } ] }, @@ -269,7 +273,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -283,6 +287,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -325,7 +333,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -397,7 +405,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -437,7 +445,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "92f68d0335098302.md" + "file": "610d3c0cb9608a71.md" } ] }, @@ -489,7 +497,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -503,6 +511,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -545,7 +557,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -617,7 +629,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -661,7 +673,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7da357a168d3819a.md" + "file": "2689f0fedb2de0f5.md" } ] }, @@ -713,7 +725,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -727,6 +739,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -769,7 +785,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -841,7 +857,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -885,7 +901,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "ddbd9ec7df5b0edb.md" + "file": "0b5af574087b7676.md" } ] }, @@ -938,7 +954,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -952,6 +968,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -994,7 +1014,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1066,7 +1086,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1114,7 +1134,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "c34795834cd0a156.md" + "file": "eb2a0f1848044c8f.md" } ] }, @@ -1167,7 +1187,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1181,6 +1201,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -1223,7 +1247,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1295,7 +1319,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1343,7 +1367,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9787437a82bb7e32.md" + "file": "987670c3f5dbf067.md" } ] }, @@ -1395,7 +1419,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1409,6 +1433,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -1451,7 +1479,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1523,7 +1551,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1563,7 +1591,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "80645315e02097b7.md" + "file": "dd11651cf9d3f3c3.md" } ] }, @@ -1615,7 +1643,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1629,6 +1657,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -1671,7 +1703,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1743,7 +1775,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "61d9c5d06a2af7fd.md" + "file": "cc3b1880c6b81540.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1783,7 +1815,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "bffabb32b1e62ea4.md" + "file": "7e5805d8742096e7.md" } ] }, @@ -1833,7 +1865,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1847,6 +1879,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -1893,7 +1929,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -1977,7 +2013,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "5b145f489f23b1c7.md" + "file": "c7727ca39ba4d097.md" } ] }, @@ -2027,7 +2063,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2041,6 +2077,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2087,7 +2127,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2171,7 +2211,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "c015433005e43a29.md" + "file": "fcae29d26c30c6e6.md" } ] }, @@ -2223,7 +2263,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2237,6 +2277,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2283,7 +2327,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2371,7 +2415,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "a3d1bbcd5fc2710a.md" + "file": "f771dcc13e8b0638.md" } ] }, @@ -2423,7 +2467,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2437,6 +2481,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2483,7 +2531,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2571,7 +2619,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "69c1ae480ae7dd7c.md" + "file": "c0aa79f3c7327815.md" } ] }, @@ -2624,7 +2672,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2638,6 +2686,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2684,7 +2736,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2776,7 +2828,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "b766591d53ab5c06.md" + "file": "469aec1576197f28.md" } ] }, @@ -2829,7 +2881,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2843,6 +2895,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -2889,7 +2945,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -2981,7 +3037,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "6c632f2dcebb53ea.md" + "file": "6324e418aa8f3ca9.md" } ] }, @@ -3033,7 +3089,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3047,6 +3103,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3093,7 +3153,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3177,7 +3237,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "77b583899dabdd55.md" + "file": "070ba86ed3e76df5.md" } ] }, @@ -3229,7 +3289,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3243,6 +3303,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3289,7 +3353,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3373,7 +3437,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7d185435e40d7e2d.md" + "file": "95729d5fbfaf0d35.md" } ] }, @@ -3423,7 +3487,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3437,6 +3501,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3483,7 +3551,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3567,7 +3635,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d3781278f0864159.md" + "file": "d1dd8fce517c4397.md" } ] }, @@ -3617,7 +3685,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3631,6 +3699,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3677,7 +3749,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3761,7 +3833,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "cf820e73bf82c1dc.md" + "file": "7e655b38310e039a.md" } ] }, @@ -3813,7 +3885,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3827,6 +3899,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -3873,7 +3949,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -3961,7 +4037,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "8692936865b8ca78.md" + "file": "995daf1c0b9a64ef.md" } ] }, @@ -4013,7 +4089,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4027,6 +4103,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4073,7 +4153,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4161,7 +4241,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "cce65bd52d789e7f.md" + "file": "d164e84569ccb35a.md" } ] }, @@ -4214,7 +4294,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4228,6 +4308,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4274,7 +4358,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4366,7 +4450,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "b6d58488c3486eae.md" + "file": "23eeddecbf333c35.md" } ] }, @@ -4419,7 +4503,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4433,6 +4517,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4479,7 +4567,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4571,7 +4659,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9827ffbab8ae5c2d.md" + "file": "180ea012b7662e9b.md" } ] }, @@ -4623,7 +4711,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4637,6 +4725,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4683,7 +4775,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4767,7 +4859,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "8d415448458487c1.md" + "file": "a91973d190a00b23.md" } ] }, @@ -4819,7 +4911,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4833,6 +4925,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -4879,7 +4975,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -4963,7 +5059,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "1813baf4e1ff00dc.md" + "file": "22f1fc4abae9172c.md" } ] }, @@ -5013,7 +5109,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5027,6 +5123,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5073,7 +5173,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5157,7 +5257,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "4bf396aa4831d3b0.md" + "file": "38e72e6b0ab7f58a.md" } ] }, @@ -5207,7 +5307,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5221,6 +5321,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5267,7 +5371,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5351,7 +5455,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "68aea133c93dc3c6.md" + "file": "0fa8c9d99447d618.md" } ] }, @@ -5403,7 +5507,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5417,6 +5521,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5463,7 +5571,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5551,7 +5659,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "eb9a53fcc569deb6.md" + "file": "a9fb54f0efbd6879.md" } ] }, @@ -5603,7 +5711,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5617,6 +5725,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5663,7 +5775,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5751,7 +5863,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "12851cf06a512e01.md" + "file": "b8a6831a7078b180.md" } ] }, @@ -5804,7 +5916,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5818,6 +5930,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -5864,7 +5980,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -5956,7 +6072,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "e14e81035a4516a6.md" + "file": "f6830e7c4050fd35.md" } ] }, @@ -6009,7 +6125,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6023,6 +6139,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6069,7 +6189,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6161,7 +6281,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "64726b55218b2d12.md" + "file": "e27ff21bb76238d7.md" } ] }, @@ -6213,7 +6333,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6227,6 +6347,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6273,7 +6397,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6357,7 +6481,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "6eaaf67c049daead.md" + "file": "0da05b8a8f726c59.md" } ] }, @@ -6409,7 +6533,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6423,6 +6547,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6469,7 +6597,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6553,7 +6681,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d6d7f822563ee216.md" + "file": "3afe3b4c6ce94288.md" } ] }, @@ -6603,7 +6731,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6617,6 +6745,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6663,7 +6795,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6747,7 +6879,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7cb243bcfd1823db.md" + "file": "9c7210dbf22f468a.md" } ] }, @@ -6797,7 +6929,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -6811,6 +6943,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -6857,7 +6993,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -6941,7 +7077,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "3d1bb461b13fe925.md" + "file": "fcb03dc8ede84891.md" } ] }, @@ -6993,7 +7129,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7007,6 +7143,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7053,7 +7193,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7141,7 +7281,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "db90c9240f5bf92a.md" + "file": "d21c634b4283acee.md" } ] }, @@ -7193,7 +7333,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7207,6 +7347,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7253,7 +7397,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7341,7 +7485,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9de55e412aee8057.md" + "file": "0c366480181a4f29.md" } ] }, @@ -7394,7 +7538,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7408,6 +7552,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7454,7 +7602,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7546,7 +7694,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "eff7b51e1cbb1a0e.md" + "file": "f9bc269fedcab6bc.md" } ] }, @@ -7599,7 +7747,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7613,6 +7761,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7659,7 +7811,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7751,7 +7903,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7d6c30e9d03b88b9.md" + "file": "aba79b6a5f1c6df7.md" } ] }, @@ -7803,7 +7955,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -7817,6 +7969,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -7863,7 +8019,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -7947,7 +8103,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "f0d3aa0b6ca8c7b5.md" + "file": "16ca093e7d3e50b8.md" } ] }, @@ -7999,7 +8155,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8013,6 +8169,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8059,7 +8219,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8143,7 +8303,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "3351fb1999f7cddc.md" + "file": "3e59bf0de96d4e94.md" } ] }, @@ -8189,7 +8349,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8203,6 +8363,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8245,7 +8409,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8317,7 +8481,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "0121296a2cb80b43.md" + "file": "ff0436414346b01b.md" } ] }, @@ -8363,7 +8527,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8377,6 +8541,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8419,7 +8587,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8491,7 +8659,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "a78ffa7309cd29b2.md" + "file": "bd8bf51a8f2078e0.md" } ] }, @@ -8539,7 +8707,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8553,6 +8721,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8595,7 +8767,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8671,7 +8843,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d0ba0e01fd2b3f7b.md" + "file": "cfd2a3220683660a.md" } ] }, @@ -8719,7 +8891,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8733,6 +8905,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8775,7 +8951,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -8851,7 +9027,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "10fd5004cdff1b02.md" + "file": "7375f17656d07312.md" } ] }, @@ -8900,7 +9076,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -8914,6 +9090,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -8956,7 +9136,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9036,7 +9216,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "dbc673d7e2efb728.md" + "file": "a978cd0effa00e0c.md" } ] }, @@ -9085,7 +9265,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9099,6 +9279,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9141,7 +9325,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9221,7 +9405,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9e4438fd935ebc25.md" + "file": "85bc169462e1acef.md" } ] }, @@ -9269,7 +9453,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9283,6 +9467,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9325,7 +9513,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9397,7 +9585,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d46dd9dbffacbab6.md" + "file": "f073f047e7007532.md" } ] }, @@ -9445,7 +9633,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9459,6 +9647,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9501,7 +9693,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9573,7 +9765,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "c4cea8aaaf65fd1c.md" + "file": "6e98c98cde6411e2.md" } ] }, @@ -9628,7 +9820,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9642,6 +9834,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9692,7 +9888,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -9788,7 +9984,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "ea6a3a84c8377d9f.md" + "file": "b43a6bcce62efccb.md" } ] }, @@ -9843,7 +10039,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -9857,6 +10053,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -9907,7 +10107,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10003,7 +10203,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "b4af1faa1ef0d00f.md" + "file": "fc52ade11f519ad2.md" } ] }, @@ -10060,7 +10260,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10074,6 +10274,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -10124,7 +10328,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10224,7 +10428,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "2a850663b29e895c.md" + "file": "b265aeb870f81aa9.md" } ] }, @@ -10281,7 +10485,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10295,6 +10499,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -10345,7 +10553,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10445,7 +10653,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "8f920c881b85118b.md" + "file": "1830b9df68903eb9.md" } ] }, @@ -10503,7 +10711,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10517,6 +10725,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -10567,7 +10779,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10671,7 +10883,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "c51749f6baf00a9b.md" + "file": "5cb6da08078dcbee.md" } ] }, @@ -10729,7 +10941,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10743,6 +10955,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -10793,7 +11009,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -10897,7 +11113,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "1d61842e76db07d7.md" + "file": "619eeeddb8de4749.md" } ] }, @@ -10954,7 +11170,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -10968,6 +11184,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -11018,7 +11238,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -11114,7 +11334,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "9b387a8983e116d2.md" + "file": "edcfbd15fb4e4ad7.md" } ] }, @@ -11171,7 +11391,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "87b4d71a9905489d.md" + "file": "2f7c99b3ce88ef3d.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -11185,6 +11405,10 @@ "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", "file": "e1f6478444c1e120.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/business-rules.md", + "file": "e92260915394bacd.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "97c3459ae5868cf4.md" @@ -11235,7 +11459,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/references/requirements.md", - "file": "e5c6430567eecae4.md" + "file": "076e5a258ec0bc47.md" }, { "path": ".claude/skills/metaobjects-authoring/references/semantic-modelling.md", @@ -11331,7 +11555,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "2b4a4bfa31529de3.md" + "file": "47a9c12e127a574d.md" } ] } diff --git a/server/typescript/packages/cli/src/commands/init.ts b/server/typescript/packages/cli/src/commands/init.ts index 65b50c6864..fbf18b738c 100644 --- a/server/typescript/packages/cli/src/commands/init.ts +++ b/server/typescript/packages/cli/src/commands/init.ts @@ -54,6 +54,13 @@ const META_COMMON_JSON = JSON.stringify( 2, ) + "\n"; +// The requirement ledger, empty: the same canonical empty root as meta.common.json, so it +// loads clean and passes `meta fmt --check`. With no requirement declared every requirement +// check stays silent; the project adds its first level-1 node when it opts in. The config names +// `requirementTests()` without wiring it (ADR-0034 Amendment 2: init wires no generator). +const META_REQUIREMENTS_FILE = "meta.requirements.json"; +const META_REQUIREMENTS_JSON = META_COMMON_JSON; + // Issue #75 — a multi-target codegen config can route a target's outDir under // `.metaobjects//src/generated/`. That output is the regenerable // shadow (the canonical output lives at the configured outDir; re-running @@ -163,6 +170,18 @@ export default defineConfig({ // // meta gen --list --probe // + // Requirements are opt-in. To start, add a first level-1 requirement.functional to + // metaobjects/meta.requirements.json (empty as scaffolded), nest one functional requirement + // per feature under it, and put the @implementedBy claims on level-4 (object) and level-5 + // (member: a transition or an operation) requirements; see docs/features/requirements.md. + // Those claims get one test stub each (skipped while planned, failing once live until it is + // written) from + // + // import { requirementTests } from "@metaobjectsdev/codegen-ts/generators"; + // + // listed as requirementTests(). Stubs land under ${SCAFFOLD_OUT_DIR}/requirements/ for vitest, + // jest or bun:test (read from package.json); your test runner's include pattern must cover them. + // // The service layers (one transaction per write, the declared rules enforced, a thin transport) // are a recommended list of their own: \`meta init --with-services\` writes it, or add // ${recommendedServiceListText()}. @@ -188,7 +207,11 @@ function nextSteps(dialect: InitDialect | undefined): string { Next steps: 0. Everything here is ESM — package.json needs "type": "module" (init sets it unless the project has CommonJS sources; without it the first tsc fails). - 1. Author entities under metaobjects/ (start from the scaffolded meta.common.json) + 1. Author entities under metaobjects/ (start from the scaffolded meta.common.json). + Requirements (opt-in): metaobjects/meta.requirements.json starts empty. Add a + first level-1 requirement.functional, nest one per feature under it, put + @implementedBy on level-4/5 claims (level 5 for a transition or operation) and + wire requirementTests() for their stubs (docs/features/requirements.md). 2. meta gen --list --probe # the catalog: every generator, grouped by layer, with # how many files each would emit for YOUR model 3. Wire the ones you want in metaobjects.config.ts: each catalog row prints the @@ -815,8 +838,9 @@ export async function init(opts: InitOptions): Promise { if (opts.printOnly) { for (const d of dirs) result.created.push(d); + result.created.push("metaobjects/meta.common.json"); + if (!metaobjectsExists) result.created.push(`metaobjects/${META_REQUIREMENTS_FILE}`); result.created.push( - "metaobjects/meta.common.json", ".metaobjects/config.json", ".metaobjects/.gitignore", ); @@ -843,6 +867,16 @@ export async function init(opts: InitOptions): Promise { result.preserved.push("metaobjects/meta.common.json"); } + // metaobjects/meta.requirements.json — the empty ledger, only in a NEW metadata directory: + // a re-init over a model that already exists never adds a file to it. + if (!metaobjectsExists) { + const requirementsPath = join(metaobjectsDir, META_REQUIREMENTS_FILE); + if (!(await fileExists(requirementsPath))) { + await writeFile(requirementsPath, META_REQUIREMENTS_JSON, "utf8"); + result.created.push(`metaobjects/${META_REQUIREMENTS_FILE}`); + } + } + // .metaobjects/config.json await writeConfigFile(opts, result, agentDir, agentDirExists); diff --git a/server/typescript/packages/cli/src/commands/verify.ts b/server/typescript/packages/cli/src/commands/verify.ts index 349286769e..f46844b4f2 100644 --- a/server/typescript/packages/cli/src/commands/verify.ts +++ b/server/typescript/packages/cli/src/commands/verify.ts @@ -44,7 +44,9 @@ import { collectionLoadOptions } from "../lib/collection-load-options.js"; import { schemaBuildOptions, type SchemaBuildOptions } from "../lib/schema-build-options.js"; import { computeCodegenDrift } from "../lib/codegen-drift.js"; import { computeGenInputs, decideVerifyNoDrift, isCi, withModel } from "../lib/gen-fingerprint.js"; -import { modelHashTree } from "@metaobjectsdev/codegen-ts"; +import { declaredGeneratorNames, modelHashTree, walkRequirements } from "@metaobjectsdev/codegen-ts"; +import { composeCatalog } from "../lib/catalog.js"; +import { requirementTestsAdvice } from "../lib/requirement-tests-advice.js"; import { hasLegacyDocsBlock, legacyDocsConfigMessage, REMOVED_VERIFY_DOCS } from "../lib/docs-removed.js"; import { buildAgentSchemaInput } from "../lib/agent-schema.js"; import { sourceRootsOf } from "./gen.js"; @@ -483,6 +485,8 @@ export async function verifyCommand( // then omits the block rather than reporting zeroes that would read as an empty // ledger instead of no ledger. let requirementCounts: RequirementCounts | undefined; + // The "requirements and no tests" advisory, when it applies (see the requirement gate). + let testsAdvice: string | undefined; // One row per requirement: its claim digest, each link as resolved, and the codes // reported against its path. Undefined exactly when `requirementCounts` is — same // opt-in-by-declaration rule. @@ -603,6 +607,7 @@ export async function verifyCommand( requirements: requirementSection, requirementCounts, requirementLedger, + ...(testsAdvice !== undefined ? { requirementTestsAdvice: testsAdvice } : {}), antiPatterns: antiPatternSection, overlays: overlaySection, names: nameSection, @@ -899,6 +904,16 @@ export async function verifyCommand( // notice a spine that covers half an estate. requirementCounts = requirementCountsOf(s, collection.files.length); } + // `meta gen`'s advisory, repeated where a run is read for its verdict: requirements and + // no generator writing their tests is a ledger nothing checks. Counted and named as `meta + // gen` does (the requirement walk, the declared generator names), so the two commands + // agree; only a TypeScript project's config declares generators here. Never the exit code. + if (forgeConfig !== undefined) { + let declared: string[] = []; + try { declared = declaredGeneratorNames(forgeConfig, composeCatalog()); } catch { /* the codegen gate reports it */ } + testsAdvice = requirementTestsAdvice(declared, walkRequirements(root, collection.inLedger).length); + if (testsAdvice !== undefined) log.warn(`meta verify — requirements: ${testsAdvice}`); + } const errors = diags.filter((d) => d.severity === "error"); const warns = diags.filter((d) => d.severity === "warn"); @@ -2480,6 +2495,8 @@ function buildVerifyPayload(input: { requirements: AdvisorySection; requirementCounts: RequirementCounts | undefined; requirementLedger?: RequirementLedgerRow[] | undefined; + /** `meta gen`'s "requirements and no tests" advisory, when it stands. */ + requirementTestsAdvice?: string; antiPatterns: AdvisorySection; overlays: AdvisorySection; names: AdvisorySection; @@ -2579,8 +2596,10 @@ function buildVerifyPayload(input: { `${rulesTotal} business-rules finding(s) — see rules.rows[]; each names a lifecycle state or transition nothing can reach, a lifecycle that cannot move, or a permission name the model derived instead of declaring`, ); } + if (input.requirementTestsAdvice !== undefined) help.push(input.requirementTestsAdvice); if ( failed.length === 0 && + input.requirementTestsAdvice === undefined && rulesTotal === 0 && input.antiPatterns.total === 0 && input.requirements.total === 0 && diff --git a/server/typescript/packages/cli/test/gen-requirement-advisories.test.ts b/server/typescript/packages/cli/test/gen-requirement-advisories.test.ts index bbe94ccbdf..d7396b9cb6 100644 --- a/server/typescript/packages/cli/test/gen-requirement-advisories.test.ts +++ b/server/typescript/packages/cli/test/gen-requirement-advisories.test.ts @@ -131,3 +131,78 @@ describe("meta gen requirement advisories", () => { } }, TIMEOUT_MS); }); + +async function verifyJson(dir: string): Promise<{ exit: number; out: string; err: string }> { + const outLines: string[] = []; + const errLines: string[] = []; + const origLog = console.log; + const origErr = console.error; + const origWrite = process.stdout.write.bind(process.stdout); + console.log = (...a: unknown[]) => { outLines.push(a.map(String).join(" ")); }; + console.error = (...a: unknown[]) => { errLines.push(a.map(String).join(" ")); }; + process.stdout.write = ((chunk: string | Uint8Array) => { outLines.push(String(chunk)); return true; }) as typeof process.stdout.write; + try { + const exit = await run(["verify", "--cwd", dir, "--format", "json"]); + return { exit, out: outLines.join("\n"), err: errLines.join("\n") }; + } finally { + console.log = origLog; + console.error = origErr; + process.stdout.write = origWrite; + } +} + +// `meta verify` is where a run is read for its verdict, so it repeats `meta gen`'s advisory and +// does not call the run "nothing advisory to answer" while the advisory stands. +describe("meta verify repeats the requirement-tests advisory", () => { + test("requirements and no requirement-tests generator → the advisory, not 'nothing advisory'", async () => { + const dir = project({ requirements: true, generators: `["entity"]` }); + try { + expect((await gen(dir)).exit).toBe(0); + const { exit, out, err } = await verifyJson(dir); + expect(exit).toBe(0); + expect(err).toContain("no generator writes their tests"); + expect(out).toContain("no generator writes their tests"); + expect(out).not.toContain("nothing advisory to answer"); + } finally { rmSync(dir, { recursive: true, force: true }); } + }, TIMEOUT_MS); + + test("silent once requirement-tests is wired", async () => { + const dir = project({ requirements: true, generators: `["entity", "requirement-tests"]` }); + try { + expect((await gen(dir)).exit).toBe(0); + const { out, err } = await verifyJson(dir); + expect(err).not.toContain("no generator writes their tests"); + expect(out).not.toContain("no generator writes their tests"); + } finally { rmSync(dir, { recursive: true, force: true }); } + }, TIMEOUT_MS); +}); + +// `meta init` scaffolds an empty requirement ledger. Requirements stay opt-in: until the project +// declares one, `meta verify` raises no requirement advisory and still reads "nothing advisory". +describe("meta init's empty requirement ledger", () => { + test("init, one entity, verify → no requirement advisory and nothing advisory to answer", async () => { + const dir = mkdtempSync(join(tmpdir(), "mo-init-ledger-")); + writeFileSync(join(dir, "package.json"), JSON.stringify({ name: "app", type: "module", private: true })); + const origLog = console.log; + const origErr = console.error; + console.log = () => {}; + console.error = () => {}; + try { + expect(await run(["init", "--quiet", "--cwd", dir])).toBe(0); + } finally { + console.log = origLog; + console.error = origErr; + } + try { + writeFileSync(join(dir, "metaobjects", "meta.shop.json"), ENTITY_JSON); + const { exit, out, err } = await verifyJson(dir); + const all = `${out}\n${err}`; + expect(exit).toBe(0); + expect(all).not.toContain("WARN_REQUIREMENT_OBJECT_UNCLAIMED"); + expect(all).not.toContain("no requirement claims"); + expect(all).not.toContain("no generator writes their tests"); + expect(all).not.toContain("with no @disposition"); + expect(out).toContain("nothing advisory to answer"); + } finally { rmSync(dir, { recursive: true, force: true }); } + }, TIMEOUT_MS); +}); diff --git a/server/typescript/packages/cli/test/unit/init-scaffold-config.test.ts b/server/typescript/packages/cli/test/unit/init-scaffold-config.test.ts index 0f66222aad..b57fd85934 100644 --- a/server/typescript/packages/cli/test/unit/init-scaffold-config.test.ts +++ b/server/typescript/packages/cli/test/unit/init-scaffold-config.test.ts @@ -117,3 +117,34 @@ describe("meta init scaffolds the owned-codegen tier, empty (ADR-0034 Amendment expect(readFileSync(entityPath, "utf-8")).toContain("HAND-EDIT-SENTINEL"); }); }); + +// An empty requirement ledger, so a project that opts in has the file to add its first node to. +// It is metadata only: the config names requirementTests() but wires nothing (ADR-0034 Amendment 2). +describe("meta init scaffolds an empty requirement ledger", () => { + test("a new metadata directory gets a ledger with no requirement in it", async () => { + const result = await init({ cwd: tmp, quiet: true }); + const path = join(tmp, "metaobjects", "meta.requirements.json"); + expect(result.created).toContain("metaobjects/meta.requirements.json"); + expect(JSON.parse(readFileSync(path, "utf-8"))).toEqual({ "metadata.root": {} }); + }); + + test("the config names requirementTests() and its import, and wires nothing", async () => { + await init({ cwd: tmp, quiet: true }); + const body = readFileSync(join(tmp, "metaobjects.config.ts"), "utf-8"); + expect(body).toMatch(/^\s*\/\/\s+import \{ requirementTests \} from "@metaobjectsdev\/codegen-ts\/generators";$/m); + expect(body).toMatch(/^\s*generators:\s*\[\],/m); + }); + + test("an existing metadata directory gets no ledger", async () => { + const { mkdirSync } = await import("node:fs"); + mkdirSync(join(tmp, "metaobjects"), { recursive: true }); + await init({ cwd: tmp, quiet: true, force: true }); + expect(existsSync(join(tmp, "metaobjects", "meta.requirements.json"))).toBe(false); + }); + + test("--print-only forecasts the ledger", async () => { + const result = await init({ cwd: tmp, quiet: true, printOnly: true }); + expect(result.created).toContain("metaobjects/meta.requirements.json"); + expect(existsSync(join(tmp, "metaobjects", "meta.requirements.json"))).toBe(false); + }); +}); diff --git a/server/typescript/packages/codegen-ts-react/src/templates/form-file.ts b/server/typescript/packages/codegen-ts-react/src/templates/form-file.ts index f007ff05df..3a168f06db 100644 --- a/server/typescript/packages/codegen-ts-react/src/templates/form-file.ts +++ b/server/typescript/packages/codegen-ts-react/src/templates/form-file.ts @@ -76,7 +76,7 @@ import { } from "@metaobjectsdev/codegen-ts/engine"; import { humanize, valueObjectFor, numericInputControl } from "@metaobjectsdev/codegen-ts/templates/field-meta"; import { tphDiscriminatorPin } from "@metaobjectsdev/codegen-ts/engine"; -import { hasInsertRefinements, insertRequiredPkFieldNames } from "@metaobjectsdev/codegen-ts/templates/zod-validators"; +import { hasInsertRefinements, insertRequiredPkFieldNames, insertSchemaFields } from "@metaobjectsdev/codegen-ts/templates/zod-validators"; function primaryFieldNames(entity: MetaObject): Set { const set = new Set(); @@ -393,6 +393,19 @@ function blankableOptionalFields(fields: readonly MetaField[]): string[] { const BLANK_FIELDS_CONST = "BLANK_OPTIONAL_FIELDS"; const BLANK_NORMALIZER = "normalizeBlankOptionals"; +/** + * The never-rendered fields a create must still supply: the `@formExclude` and credential + * fields `visibleFields` skips that the InsertSchema carries as REQUIRED. Their create resolver + * omits them (a TPH discriminator is omitted on its own account and is not repeated here). + */ +function serverStampedFieldNames(entity: MetaObject, discField: string | undefined): string[] { + const required = new Set(insertSchemaFields(entity).filter((f) => !f.optional).map((f) => f.name)); + return flatSurfaceFields(entity) + // ADR-0039: resolving — a field may inherit @formExclude or its view via extends. + .filter((f) => (f.attr(FIELD_ATTR_FORM_EXCLUDE) === true || isCredentialField(f)) && f.name !== discField && required.has(f.name)) + .map((f) => f.name); +} + /** Options of the form template. */ export interface FormFileRenderOpts { /** @@ -448,7 +461,20 @@ export function writeFormFile(w: TsWriter, entity: MetaObject, ctx: RenderContex const insertSchemaName = w.use(refinedTph ? `${entityName}InsertBodySchema` : `${entityName}InsertSchema`, entityFileSpec); const updateSchemaName = w.use(`${entityName}UpdateSchema`, entityFileSpec); const rowType = w.useType(entityName, entityFileSpec, `${entityName}Row`); - const insertSchema = refinedTph ? insertSchemaName : omitTph(insertSchemaName); + // A `@formExclude` or credential (`view.password`) field is never rendered: the server stamps + // it (a tenant or owner scope column) or the application writes it (a hashed credential). When + // the InsertSchema REQUIRES it, validating a create against that schema demands a value no + // control can supply, and handleSubmit never fires. So the create resolver omits every such + // required field the schema carries. Something past the form supplies it (a server-side + // stamp, or the caller's own write path): the generated write routes ignore a `@formExclude` + // or credential key in a request body (docs/features/api-contract.md). + // Only a plain schema can be `.omit()`ed: a refined one keeps them, as before. + const stamped = hasInsertRefinements(entity) ? [] : serverStampedFieldNames(entity, tphPin?.fieldName); + const omitCreate = (schema: string) => { + const keys = [...(tphPin !== undefined ? [tphPin.fieldName] : []), ...stamped]; + return keys.length === 0 ? schema : `${schema}.omit({ ${keys.map((k) => `${k}: true`).join(", ")} })`; + }; + const insertSchema = refinedTph ? insertSchemaName : omitCreate(insertSchemaName); const updateSchema = omitTph(updateSchemaName); const formSchema = `props.defaultValues !== undefined ? ${updateSchema} : ${insertSchema}`; diff --git a/server/typescript/packages/codegen-ts-react/test/fixtures/form-exclude-scope.json b/server/typescript/packages/codegen-ts-react/test/fixtures/form-exclude-scope.json new file mode 100644 index 0000000000..c008520a1b --- /dev/null +++ b/server/typescript/packages/codegen-ts-react/test/fixtures/form-exclude-scope.json @@ -0,0 +1,46 @@ +{ + "metadata.root": { + "package": "demo", + "children": [ + { + "object.entity": { + "name": "Person", + "children": [ + { "source.rdb": { "@table": "people" } }, + { "field.long": { "name": "id" } }, + { "identity.primary": { "name": "pk", "@fields": "id", "@generation": "increment" } }, + { "field.string": { "name": "displayName", "@required": true } }, + { "field.long": { "name": "unitId", "@required": true, "@formExclude": true } }, + { "field.string": { "name": "note", "@formExclude": true } } + ] + } + }, + { + "object.entity": { + "name": "Account", + "children": [ + { "source.rdb": { "@table": "accounts" } }, + { "field.long": { "name": "id" } }, + { "identity.primary": { "name": "pk", "@fields": "id", "@generation": "increment" } }, + { "field.string": { "name": "email", "@required": true } }, + { "field.string": { "name": "passwordHash", "@required": true, "children": [{ "view.password": {} }] } } + ] + } + }, + { + "object.entity": { + "name": "Booking", + "children": [ + { "source.rdb": { "@table": "bookings" } }, + { "field.long": { "name": "id" } }, + { "identity.primary": { "name": "pk", "@fields": "id", "@generation": "increment" } }, + { "field.long": { "name": "unitId", "@required": true, "@formExclude": true } }, + { "field.date": { "name": "startsOn", "@required": true } }, + { "field.date": { "name": "endsOn", "@required": true } }, + { "validator.comparison": { "name": "window", "@left": "startsOn", "@op": "lte", "@right": "endsOn" } } + ] + } + } + ] + } +} diff --git a/server/typescript/packages/codegen-ts-react/test/form-exclude-create-schema.test.ts b/server/typescript/packages/codegen-ts-react/test/form-exclude-create-schema.test.ts new file mode 100644 index 0000000000..51606579b4 --- /dev/null +++ b/server/typescript/packages/codegen-ts-react/test/form-exclude-create-schema.test.ts @@ -0,0 +1,58 @@ +// A required `@formExclude` field (a scope column the server stamps, such as a tenant id) is +// never rendered, so the create form must not validate against a schema that requires it: +// handleSubmit would never fire. The create resolver omits it; the edit resolver (the PATCH +// schema, where nothing is required) is unchanged. +import { describe, test, expect } from "bun:test"; +import { readFileSync } from "node:fs"; +import { join } from "node:path"; +import { MetaDataLoader, InMemoryStringSource, type MetaObject, type MetaRoot } from "@metaobjectsdev/metadata"; +import { renderFormFile } from "../src/templates/form-file.js"; +import { makeRenderContext, buildPkMap, buildRelationMap } from "@metaobjectsdev/codegen-ts"; + +const FIXTURE = readFileSync(join(import.meta.dir, "fixtures", "form-exclude-scope.json"), "utf8"); + +async function render(name: string): Promise { + const { root, errors } = await new MetaDataLoader().load([new InMemoryStringSource(FIXTURE, { id: "scope.json" })]); + if (errors.length > 0) throw new Error(errors.map((e) => e.message).join("; ")); + const entity = (root as MetaRoot).objects().find((o) => o.name === name)! as MetaObject; + return renderFormFile( + entity, + makeRenderContext({ + dialect: "postgres", + loadedRoot: root, + outDir: "/x", + dbImport: "../db", + extStyle: "none", + apiPrefix: "/api", + pkMap: buildPkMap(root), + relationMap: buildRelationMap(root), + }), + ); +} + +describe("generated form — a required @formExclude scope column", () => { + test("the create resolver omits it, and only it", async () => { + const out = await render("Person"); + expect(out).toContain("PersonInsertSchema.omit({ unitId: true })"); + // An optional @formExclude field is not required, so it needs no omission. + expect(out).not.toContain("note: true"); + // The edit path validates against the PATCH schema, as before. + expect(out).toContain("? PersonUpdateSchema :"); + expect(out).not.toContain("PersonUpdateSchema.omit"); + // Never rendered. + expect(out).not.toMatch(/name=["{]?unitId/); + }); + + test("a required credential (view.password, no @formExclude) is omitted from the create schema too", async () => { + const out = await render("Account"); + expect(out).toContain("AccountInsertSchema.omit({ passwordHash: true })"); + expect(out).not.toContain("email: true"); + expect(out).not.toContain("AccountUpdateSchema.omit"); + expect(out).not.toMatch(/name=["{]?passwordHash/); + }); + + test("a refined schema cannot be .omit()ed, so it is left as it was", async () => { + const out = await render("Booking"); + expect(out).not.toContain("BookingInsertSchema.omit"); + }); +}); diff --git a/server/typescript/packages/codegen-ts/src/generators/requirement-tests.ts b/server/typescript/packages/codegen-ts/src/generators/requirement-tests.ts index 55428d8310..b8778ba771 100644 --- a/server/typescript/packages/codegen-ts/src/generators/requirement-tests.ts +++ b/server/typescript/packages/codegen-ts/src/generators/requirement-tests.ts @@ -22,12 +22,15 @@ import { import type { Generator, EmittedFile, GenContext } from "../generator.js"; import { walkRequirements, + assertRequirementTestFramework, assertRequirementTestGrain, defaultRequirementTestFilter, + detectRequirementTestFramework, requirementTestUnits, requirementTestIdentity, NO_CONCERN, type RequirementTestArgs, + type RequirementTestFramework, type RequirementTestGrain, type RequirementTestRenderer, type RequirementView, @@ -56,8 +59,15 @@ export interface RequirementTestsOpts { * concern, or under `grain: "member"` the reference exactly as authored — which * may hold `::`, so mangle it before it reaches a filename. */ path?: (view: RequirementView, concern: string) => string; - /** Named output target (registry key). */ + /** Named output target (registry key). The stubs land in its output directory, under + * `requirements/`: the test runner's include pattern must cover that folder. */ target?: string; + /** + * The test runner the default renderer writes for: `"bun"`, `"vitest"` or `"jest"`. + * Absent, it is read from the project's `package.json`: vitest when the project depends + * on it, else jest, else bun. + */ + framework?: RequirementTestFramework; /** Name requirements no filter covered. Default true; never fails the build. */ warnUncovered?: boolean; /** @@ -134,6 +144,7 @@ export function requirementTests(opts: RequirementTestsOpts = {}): Generator { // Refused here, when the generator is built, rather than on the first requirement: // an unknown grain is a mistake in the config whatever the model holds. assertRequirementTestGrain(grain); + if (opts.framework !== undefined) assertRequirementTestFramework(opts.framework); const toPath = opts.path ?? (grain === "member" ? defaultMemberPath : defaultPath); // A custom `path` with no custom `owns` leaves the default namespace pointing // somewhere the generator no longer writes, so the policy claims nothing. The @@ -147,6 +158,7 @@ export function requirementTests(opts: RequirementTestsOpts = {}): Generator { generate: (ctx: GenContext): EmittedFile[] => { const files: EmittedFile[] = []; const uncovered: string[] = []; + const framework = opts.framework ?? detectRequirementTestFramework(ctx.inputRoot ?? ctx.projectRoot); if (namespaceUnknown && opts.reconcileOrphans === false) { ctx.warn( @@ -179,6 +191,7 @@ export function requirementTests(opts: RequirementTestsOpts = {}): Generator { witnessKey: identity.witnessKey, skip: identity.skip, digest: identity.digest, + framework, }; // The renderer is chosen by what the stub's target IS, in both grains. Under // the concern grain that is the unit itself; under the member grain the unit diff --git a/server/typescript/packages/codegen-ts/src/index.ts b/server/typescript/packages/codegen-ts/src/index.ts index 50b7b9f84a..ba43d37ecd 100644 --- a/server/typescript/packages/codegen-ts/src/index.ts +++ b/server/typescript/packages/codegen-ts/src/index.ts @@ -465,6 +465,9 @@ export { // keeps importing from here. defaultRequirementTestFilter, assertRequirementTestGrain, + assertRequirementTestFramework, + detectRequirementTestFramework, + REQUIREMENT_TEST_FRAMEWORKS, requirementDigest, witnessKeyOf, requirementTestUnits, @@ -479,6 +482,7 @@ export type { WalkedRequirement, RequirementTestGrain, RequirementTestIdentity, + RequirementTestFramework, } from "./requirement-walk.js"; export { renderRequirementTest } from "./templates/requirement-test.js"; export type { RequirementTestArgs } from "./templates/requirement-test.js"; diff --git a/server/typescript/packages/codegen-ts/src/reference/requirement-tests.ts b/server/typescript/packages/codegen-ts/src/reference/requirement-tests.ts index 45a9279e59..33b096a239 100644 --- a/server/typescript/packages/codegen-ts/src/reference/requirement-tests.ts +++ b/server/typescript/packages/codegen-ts/src/reference/requirement-tests.ts @@ -6,9 +6,11 @@ // shebang is `#!/usr/bin/env node` — so it runs under NODE even in a Bun project. Do not // reach for `Bun.*` globals here; they are undefined and take the whole run down with // `Bun is not defined`. Use `node:` builtins instead. -// targets: bun:test. Each emitted stub imports `test` and `expect` from "bun:test" -// and nothing from MetaObjects. For vitest, jest or node:test, change the -// import line and the failing call in `renderRequirementTest` below. +// targets: the project's test runner: bun:test, vitest or jest, read from its +// package.json (vitest, else jest, else bun) or set with `framework`. Each +// emitted stub imports from that runner and nothing from MetaObjects. For +// node:test or another runner, change `TEST_IMPORT` and the failing call in +// `renderRequirementTest` below. // use-when: the model declares `requirement.*` nodes and you want one test stub per // requirement the model claims. A live or partial requirement gets a stub // that FAILS until someone writes its assertion; a planned or retired one @@ -17,6 +19,10 @@ // filter keeps, one per distinct `type.subType` it claims, and // /requirements/.test.ts when it claims nothing. Under // `grain: "member"` there is one stub per claimed reference instead. +// is this generator's output directory (`outDir`, or its +// `target`'s): the test runner's include pattern must cover that folder, +// or the stubs never run. Point `target` or `path` at the test folder +// when the runner looks only there. // customize: the stub text (`renderRequirementTest`, below, is the default renderer), // which requirements get a stub (`filter`), one stub per concern or one per // reference (`grain`), and where stubs land (`path`, together with `owns`). @@ -39,8 +45,10 @@ import { GENERATED_HEADER, NO_CONCERN, + assertRequirementTestFramework, assertRequirementTestGrain, defaultRequirementTestFilter, + detectRequirementTestFramework, requirementTestIdentity, requirementTestUnits, walkRequirements, @@ -48,6 +56,7 @@ import { type GenContext, type Generator, type RequirementTestArgs, + type RequirementTestFramework, type RequirementTestGrain, type RequirementTestRenderer, type RequirementView, @@ -139,6 +148,16 @@ function writeGap(w: TsWriter, a: RequirementTestArgs): void { docBlock(w, `Known gap: ${decided}${refs}`); } +/** + * The import line per test runner. Bun and vitest share `test.skip` and `expect.unreachable`; + * jest's stub throws instead, so it imports only `test`. + */ +const TEST_IMPORT: Readonly> = { + bun: 'import { test, expect } from "bun:test";', + vitest: 'import { test, expect } from "vitest";', + jest: 'import { test } from "@jest/globals";', +}; + export function renderRequirementTest(a: RequirementTestArgs): string { const skipped = a.view.status !== undefined && SKIPPED_STATUSES.has(a.view.status); const runner = skipped ? "test.skip" : "test"; @@ -162,7 +181,7 @@ export function renderRequirementTest(a: RequirementTestArgs): string { w.line("// file's snapshot body, REFUSED (run exits 1, body kept) where it does not. Those"); w.line("// bodies are gitignored, so a fresh clone or CI is always the second case — see"); w.line("// docs/features/own-your-codegen.md for the recovery."); - w.line('import { test, expect } from "bun:test";'); + w.line(TEST_IMPORT[a.framework ?? "bun"]); w.blank(); w.line("/**"); docBlock(w, a.statement); @@ -184,7 +203,8 @@ export function renderRequirementTest(a: RequirementTestArgs): string { // inverting the one guardrail 0.24.2 restored `retired` for. The repo's own harness // generator already branches here; the shipped renderer now does too. if (!skipped) { - w.block("expect.unreachable(", () => { + // Jest has no `expect.unreachable`; a thrown error fails the test the same way. + w.block(a.framework === "jest" ? "throw new Error(" : "expect.unreachable(", () => { w.line(`"unimplemented requirement stub: ${testName} — " +`); w.line(`"replace this with an assertion that fails when: ${forStringLiteral(a.counterexample)}",`); }, ");"); @@ -222,8 +242,15 @@ export interface RequirementTestsOpts { * concern, or under `grain: "member"` the reference exactly as authored — which * may hold `::`, so mangle it before it reaches a filename. */ path?: (view: RequirementView, concern: string) => string; - /** Named output target (registry key). */ + /** Named output target (registry key). The stubs land in its output directory, under + * `requirements/`: the test runner's include pattern must cover that folder. */ target?: string; + /** + * The test runner the default renderer writes for: `"bun"`, `"vitest"` or `"jest"`. + * Absent, it is read from the project's `package.json`: vitest when the project depends + * on it, else jest, else bun. + */ + framework?: RequirementTestFramework; /** Name requirements no filter covered. Default true; never fails the build. */ warnUncovered?: boolean; /** @@ -288,6 +315,7 @@ export function requirementTests(opts: RequirementTestsOpts = {}): Generator { // Refused here, when the generator is built, rather than on the first requirement: // an unknown grain is a mistake in the config whatever the model holds. assertRequirementTestGrain(grain); + if (opts.framework !== undefined) assertRequirementTestFramework(opts.framework); const toPath = opts.path ?? (grain === "member" ? defaultMemberPath : defaultPath); // A custom `path` with no custom `owns` leaves the default namespace pointing // somewhere the generator no longer writes, so the policy claims nothing. The run-wide @@ -300,6 +328,7 @@ export function requirementTests(opts: RequirementTestsOpts = {}): Generator { generate: (ctx: GenContext): EmittedFile[] => { const files: EmittedFile[] = []; const uncovered: string[] = []; + const framework = opts.framework ?? detectRequirementTestFramework(ctx.inputRoot ?? ctx.projectRoot); if (namespaceUnknown && opts.reconcileOrphans === false) { ctx.warn( @@ -332,6 +361,7 @@ export function requirementTests(opts: RequirementTestsOpts = {}): Generator { witnessKey: identity.witnessKey, skip: identity.skip, digest: identity.digest, + framework, }; // The renderer is chosen by what the stub's target IS, in both grains. Under // the member grain the unit is a reference, and keying on it would match no diff --git a/server/typescript/packages/codegen-ts/src/requirement-walk.ts b/server/typescript/packages/codegen-ts/src/requirement-walk.ts index 0f2b5564da..833ec1ccf7 100644 --- a/server/typescript/packages/codegen-ts/src/requirement-walk.ts +++ b/server/typescript/packages/codegen-ts/src/requirement-walk.ts @@ -13,6 +13,8 @@ // projection is additive — it can grow, but it never hands out the node. import { createHash } from "node:crypto"; +import { readFileSync } from "node:fs"; +import { join } from "node:path"; import { PACKAGE_SEPARATOR, TYPE_REQUIREMENT, @@ -223,6 +225,50 @@ export interface RequirementTestArgs { readonly witnessKey: string; readonly skip: "planned" | "retired" | null; readonly digest: string; + /** The test runner the stub is written for (TypeScript only). Absent means `bun`. */ + readonly framework?: RequirementTestFramework; +} + +/** The test runners the default TypeScript stub renderer writes for. */ +export const REQUIREMENT_TEST_FRAMEWORKS = ["bun", "vitest", "jest"] as const; +export type RequirementTestFramework = (typeof REQUIREMENT_TEST_FRAMEWORKS)[number]; + +/** + * Refuse a `framework` that is not one of `REQUIREMENT_TEST_FRAMEWORKS`, when the generator + * is built: a stub written for a runner the project does not have never runs, and says so + * nowhere. + */ +export function assertRequirementTestFramework(framework: string): asserts framework is RequirementTestFramework { + if (!(REQUIREMENT_TEST_FRAMEWORKS as readonly string[]).includes(framework)) { + throw new Error( + `requirementTests: framework "${framework}" is not one of ${REQUIREMENT_TEST_FRAMEWORKS.join(", ")}.`, + ); + } +} + +/** + * The test runner a project uses, read from its `package.json`: `vitest` when it depends on + * vitest (in any dependency block), else `jest` when it depends on jest, else `bun`. A missing + * or unreadable `package.json`, or no project root at all, is `bun`, the stubs' original + * runner. + */ +export function detectRequirementTestFramework(projectRoot: string | undefined): RequirementTestFramework { + if (projectRoot === undefined) return "bun"; + let pkg: unknown; + try { + pkg = JSON.parse(readFileSync(join(projectRoot, "package.json"), "utf8")); + } catch { + return "bun"; + } + if (typeof pkg !== "object" || pkg === null) return "bun"; + const deps = new Set(); + for (const block of ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"]) { + const v = (pkg as Record)[block]; + if (typeof v === "object" && v !== null) for (const k of Object.keys(v)) deps.add(k); + } + if (deps.has("vitest")) return "vitest"; + if (deps.has("jest") || deps.has("@jest/globals")) return "jest"; + return "bun"; } /** Turns one stub's record into the text of its test file. */ diff --git a/server/typescript/packages/codegen-ts/src/templates/requirement-test.ts b/server/typescript/packages/codegen-ts/src/templates/requirement-test.ts index 598bb6b74e..270ec2a2af 100644 --- a/server/typescript/packages/codegen-ts/src/templates/requirement-test.ts +++ b/server/typescript/packages/codegen-ts/src/templates/requirement-test.ts @@ -16,7 +16,7 @@ import { REQUIREMENT_STATUS_RETIRED, } from "@metaobjectsdev/metadata"; import { GENERATED_HEADER } from "../constants.js"; -import type { RequirementTestArgs, ResolvedClaim } from "../requirement-walk.js"; +import type { RequirementTestArgs, RequirementTestFramework, ResolvedClaim } from "../requirement-walk.js"; import { TsWriter } from "../writer/ts-writer.js"; // Declared with the walk: it is the contract between the walk and ANY renderer, so an @@ -102,6 +102,16 @@ function writeGap(w: TsWriter, a: RequirementTestArgs): void { docBlock(w, `Known gap: ${decided}${refs}`); } +/** + * The import line per test runner. Bun and vitest share `test.skip` and `expect.unreachable`; + * jest's stub throws instead, so it imports only `test`. + */ +const TEST_IMPORT: Readonly> = { + bun: 'import { test, expect } from "bun:test";', + vitest: 'import { test, expect } from "vitest";', + jest: 'import { test } from "@jest/globals";', +}; + export function renderRequirementTest(a: RequirementTestArgs): string { const skipped = a.view.status !== undefined && SKIPPED_STATUSES.has(a.view.status); const runner = skipped ? "test.skip" : "test"; @@ -125,7 +135,7 @@ export function renderRequirementTest(a: RequirementTestArgs): string { w.line("// file's snapshot body, REFUSED (run exits 1, body kept) where it does not. Those"); w.line("// bodies are gitignored, so a fresh clone or CI is always the second case — see"); w.line("// docs/features/own-your-codegen.md for the recovery."); - w.line('import { test, expect } from "bun:test";'); + w.line(TEST_IMPORT[a.framework ?? "bun"]); w.blank(); w.line("/**"); docBlock(w, a.statement); @@ -147,7 +157,8 @@ export function renderRequirementTest(a: RequirementTestArgs): string { // inverting the one guardrail 0.24.2 restored `retired` for. The repo's own harness // generator already branches here; the shipped renderer now does too. if (!skipped) { - w.block("expect.unreachable(", () => { + // Jest has no `expect.unreachable`; a thrown error fails the test the same way. + w.block(a.framework === "jest" ? "throw new Error(" : "expect.unreachable(", () => { w.line(`"unimplemented requirement stub: ${testName} — " +`); w.line(`"replace this with an assertion that fails when: ${forStringLiteral(a.counterexample)}",`); }, ");"); diff --git a/server/typescript/packages/codegen-ts/test/reference-byte-identical.test.ts b/server/typescript/packages/codegen-ts/test/reference-byte-identical.test.ts index 3dde048ae4..f297aad988 100644 --- a/server/typescript/packages/codegen-ts/test/reference-byte-identical.test.ts +++ b/server/typescript/packages/codegen-ts/test/reference-byte-identical.test.ts @@ -586,6 +586,9 @@ describe("ADR-0034 — the requirement-tests reference over a ledger that declar const RUNS: ReadonlyArray<{ label: string; opts: RequirementTestsOpts; files: number; warns?: string }> = [ // Recorded, Annotated, Refunded, Faxed, Acknowledged, Chased — one concern each. { label: "the defaults", opts: {}, files: 6, warns: "2 requirement(s) matched no filter" }, + // The two other runners' stubs: a different import line, and jest's throw. + { label: "vitest stubs", opts: { framework: "vitest" }, files: 6, warns: "2 requirement(s) matched no filter" }, + { label: "jest stubs", opts: { framework: "jest" }, files: 6, warns: "2 requirement(s) matched no filter" }, // Every requirement (the L3 parent and the architectural policy included), one stub // per reference: Orders 1, Recorded 2, Annotated 2, Refunded 1, Faxed 1, // Acknowledged 1, Chased 1, Audited 1. diff --git a/server/typescript/packages/codegen-ts/test/requirement-tests-generator.test.ts b/server/typescript/packages/codegen-ts/test/requirement-tests-generator.test.ts index e9b2d1e27a..52bcf75b48 100644 --- a/server/typescript/packages/codegen-ts/test/requirement-tests-generator.test.ts +++ b/server/typescript/packages/codegen-ts/test/requirement-tests-generator.test.ts @@ -10,6 +10,10 @@ import { requirementTests } from "../src/generators/requirement-tests.js"; import type { RequirementTestsOpts } from "../src/generators/requirement-tests.js"; import type { EmittedFile, GenContext } from "../src/generator.js"; import type { RequirementTestArgs } from "../src/templates/requirement-test.js"; +import { detectRequirementTestFramework } from "../src/requirement-walk.js"; +import { makeScratchDir, removeTree } from "../src/scratch-dir.js"; +import { writeFileSync } from "node:fs"; +import { join } from "node:path"; const MODEL = { "metadata.root": { @@ -270,3 +274,59 @@ describe("requirementTests — an unknown grain", () => { expect((await emit({})).length).toBe(3); }); }); + +describe("requirementTests — the project's test runner", () => { + async function emitIn(pkgJson: unknown, opts: RequirementTestsOpts = {}): Promise { + const dir = makeScratchDir("req-framework-"); + try { + if (pkgJson !== undefined) writeFileSync(join(dir, "package.json"), JSON.stringify(pkgJson)); + const r = await new MetaDataLoader().load([new InMemoryStringSource(JSON.stringify(MODEL))]); + const ctx = { + entities: [], loadedRoot: r.root, matches: () => true, config: {}, warn: () => {}, projectRoot: dir, + } as unknown as GenContext; + return (await requirementTests(opts).generate(ctx)) as EmittedFile[]; + } finally { + removeTree(dir); + } + } + const firstStub = (files: EmittedFile[]): string => files[0]?.content ?? ""; + + test("no package.json writes bun:test stubs", async () => { + const out = firstStub(await emitIn(undefined)); + expect(out).toContain('import { test, expect } from "bun:test";'); + expect(out).toContain("expect.unreachable("); + }); + + test("a project that depends on vitest gets vitest stubs", async () => { + const out = firstStub(await emitIn({ devDependencies: { vitest: "^3.0.0" } })); + expect(out).toContain('import { test, expect } from "vitest";'); + expect(out).not.toContain("bun:test"); + expect(out).toContain("expect.unreachable("); + }); + + test("a project that depends on jest gets jest stubs that throw", async () => { + const out = firstStub(await emitIn({ devDependencies: { jest: "^29.0.0" } })); + expect(out).toContain('import { test } from "@jest/globals";'); + expect(out).toContain("throw new Error("); + expect(out).not.toContain("expect.unreachable"); + }); + + test("vitest wins when a project lists both", async () => { + const out = firstStub(await emitIn({ dependencies: { jest: "1" }, devDependencies: { vitest: "1" } })); + expect(out).toContain('from "vitest"'); + }); + + test("an explicit framework beats package.json", async () => { + const out = firstStub(await emitIn({ devDependencies: { vitest: "1" } }, { framework: "bun" })); + expect(out).toContain('from "bun:test"'); + }); + + test("an unknown framework is refused when the generator is built", () => { + expect(() => requirementTests({ framework: "mocha" as unknown as "bun" })).toThrow(/framework "mocha"/); + }); + + test("detection reads package.json, defaulting to bun", () => { + expect(detectRequirementTestFramework(undefined)).toBe("bun"); + expect(detectRequirementTestFramework("/nonexistent-dir-for-this-test")).toBe("bun"); + }); +});