You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ee3b08a
Browse filesBrowse the repository at this point in the historyBrowse files
docs(agent-context): teach entity read-view first for derived read columns
The authoring skill is the surface agents read to write adopter metadata, and it
was steering them wrong. It mentioned the table-primary + view-replica shape in a
single parenthetical, then spent 25 lines teaching "a derived read model over a
view/proc is an object.projection" — so an agent asked for a grid with a joined
name or a per-row count produced a projection.
That was correct advice before 0.17.0 (2026-07-18): an entity hosting a derived
field silently emitted no view and read the wrong table, so a projection genuinely
WAS the only way to get a grid with a derived column. #213/#214 fixed both halves
and the skill never caught up.
Now leads with the entity read-view — a worked example (passthrough join + count
aggregate, both @filterable), the FR-024 §7 contract, the decision table from
docs/features/source-kinds.md, and the two things that genuinely force a
projection (renamed base columns, row-filtered views). Names the cost of choosing
wrong: a second URL, a second type, a second identity, and re-stating every
passthrough column, for no gain. Carries a dated note so anyone porting older
advice knows why it changed.
The agent-context conformance corpus is regenerated through the same `assemble()`
the test calls, so the fixtures match by construction rather than by hand-editing;
the diff is confined to this one skill across all four stacks.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KTGT5ksntpcJDZVJ5VyXHS
Copy file name to clipboardExpand all lines: fixtures/agent-context-conformance/java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-authoring/SKILL.md
+50-2Lines changed: 50 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -719,8 +719,56 @@ Multi-source: multiple `source.rdb` children, each with a `@role`, exactly one
719
719
```
720
720
721
721
**An entity's PRIMARY source must be writable** (`table`) — read-only kinds are
722
-
legal only in non-primary roles (e.g. table `primary` + view `replica` for
723
-
read-through). A derived read model over a view/proc is an **`object.projection`**
722
+
legal only in non-primary roles.
723
+
724
+
### Derived/computed columns: reach for an ENTITY READ-VIEW first
725
+
726
+
**Do not default to `object.projection` for a list screen, grid, or "one extra
727
+
column" read.** The usual need — an entity's own rows plus a joined display name or a
728
+
per-row count, filterable and sortable like any other column — is an **entity
Copy file name to clipboardExpand all lines: fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-authoring/SKILL.md
+50-2Lines changed: 50 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -719,8 +719,56 @@ Multi-source: multiple `source.rdb` children, each with a `@role`, exactly one
719
719
```
720
720
721
721
**An entity's PRIMARY source must be writable** (`table`) — read-only kinds are
722
-
legal only in non-primary roles (e.g. table `primary` + view `replica` for
723
-
read-through). A derived read model over a view/proc is an **`object.projection`**
722
+
legal only in non-primary roles.
723
+
724
+
### Derived/computed columns: reach for an ENTITY READ-VIEW first
725
+
726
+
**Do not default to `object.projection` for a list screen, grid, or "one extra
727
+
column" read.** The usual need — an entity's own rows plus a joined display name or a
728
+
per-row count, filterable and sortable like any other column — is an **entity
0 commit comments