Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<generators>` in `pom.xml` is the generator
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (`<Entity>.<field>.<transition>`, e.g. `acme::orders::Order.status.cancel`); "a
reviewer decides a request" names the operation (`<Api>.<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:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<generators>` in `pom.xml` is the generator
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<generators>` in `pom.xml` is the generator
Expand Down Expand Up @@ -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.
Expand Down
Loading
Loading