Repository navigation
feat(agent-context): teach semantic modelling of custom vocabulary - #654
Merged
Merged
Conversation
Add docs/features/semantic-modelling.md: how to shape a type, subtype or attribute of your own. The type says what a thing is and what it relates to, the subtype says which kind (attributes and constraints, never a new relationship), and products, versions, steps and environment values belong to the generators and their layered configuration. The page gives the ordered test for where one fact goes, things-not-actions, abstract base plus variants, the coverage rule for generated output, worked before and after examples, and the wrong turns an AI assistant makes. The metaobjects-authoring skill carries the same guidance as references/semantic-modelling.md; its SKILL.md and description send an agent there whenever custom vocabulary is added or changed, and the always-on file gains one rule. Twelve trigger cases cover the new part of the skill, and the evals README now says how to run one skill's cases (--eval-dir; a --case glob with a path in it matches nothing). Regenerated: agent-context-shipped, the Python copy, and the agent-context-conformance fixtures.
- A reused attribute name resolves nothing by itself: the worked example now says the provider declares the reference, and the skill reference says so too. - State the extends rule exactly (a child replaces an inherited child of the same type and name) and give it an owner in abstracts-and-inheritance.md. - Trim the worked example and the wrong-turns table to what each teaches once. - Fold the always-on rule into the neighbouring vocabulary rule, cut the repeated pointers in the authoring SKILL.md, and tie its description to putting something into the metadata. - Point the five per-language provider pages, the codegen skill and the audit skill's vocabulary check at the new reference. - Say in the evals README what the authoring cases grade.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
docs/features/semantic-modelling.md, which sets the three-tier rule for custom vocabulary: a type holds what a thing is and how it relates, a subtype adds kinds with attributes and constraints but never a relationship, and products, versions, steps and environment values stay in the generators and their configuration. It gives the ordered test for where a fact goes, worked examples and common wrong turns. Links to it from the downstream-decisions, extending-with-providers and docs index pages, and the abstracts-and-inheritance page gains a note on how a child replaces an inherited child of the same type and name.references/semantic-modelling.mdto themetaobjects-authoringskill, which opens it when custom vocabulary is added or changed. Each provider reference and the authoring and codegen skills point to it, and the always-on template gains one sentence on the vocabulary rule and the skill's trigger text.server/python/src/metaobjects/agent_context/shipped/) and the conformance fixtures so downstream projects get the new text throughmeta initandmeta agent-docs. Adds 12 skill-trigger eval cases formetaobjects-authoringand a changelog fragment.Notes
systemspack still records@engineand@versiononresource.database, which the new page's rule excludes from the model. Pack changes were out of scope for this change; the resource redesign under study will remove them. The page says in its "About the examples" note that packs are preview and that it states the rule new vocabulary is held to.metaobjects-authoringcases were run once each withagent-context/evals/run-skill-triggers.sh <out-dir> --eval-dir evals/metaobjects-authoring --runs 1on a subscription login: 12 of 12 passed. That run also confirms the--eval-dirflag the Document step could not verify offline. The cases grade skill selection only, so the "LLM behaviour" row below stays untested.Validation
Risk Assessment
✅ Low: Docs, skill text, eval cases and regenerated shipped copies only; no runtime code changed. Fixture, shipped and Python copies match the source, the child-replacement claim matches the loader, and the guide covers the intent's tiers, layered config, things-not-actions, abstract base and cover-then-improve principles.
Testing
Change is docs and agent-context content, but its runtime surface is
meta agent-docs, which downstream projects run to install the skills. Drove that live in a disposable project under DEV_SCRATCH: the guide and its skill routing installed, the always-on vocabulary sentence landed, a deleted guide was restored byte-identical on re-run, and the Python-embedded shipped copy matched the install. All three scenarios pass with live evidence. Not run: the 12 skill-trigger evals under agent-context/evals, which call a model and need the maintainer's spend approval, so whether an agent actually opens the guide on custom-vocabulary tasks is untested. Scratch project removed. Overall: pass.meta agent-docs --server typescript --client react(cli from source via bun) in a fresh git repo under $DEV_SCRATCH; exit 0, 56 files; references/semantic-modelling.md installed; SKILL.md line 4…Evidence: Live install transcript and hash checks
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
meta agent-docs --server typescript --client react(cli from source via bun) in a fresh git repo under $DEV_SCRATCH; exit 0, 56 files; references/semantic-modelling.md installed; SKILL.md line 4…scripts/ci-local.sh --affected --strict-toolchainsBaseline (already passed):scripts/ci-local.sh --affected --strict-toolchainsat target commit 3aebf3ca11 (not re-run; no source changes this turn)bun server/typescript/packages/cli/bin/meta.ts agent-docs --server typescript --client reactin a fresh git repo under $DEV_SCRATCH (exit 0, 56 files)Grep of installed SKILL.md and .metaobjects/AGENTS.md for the semantic-modelling routing line and the new always-on vocabulary sentencesha256sum of installed references/semantic-modelling.md vs .metaobjects/.agent-context.json entryDelete installed guide, re-runmeta agent-docs, cmp against first install (restore, byte-identical)cmp of server/python/src/metaobjects/agent_context/shipped/files/1feef7a3029f5727.md vs installed guidegit status in worktree after run: cleanclaude plugin evalaccepts--eval-dir evals/<skill>, as agent-context/evals/README.md and the run-skill-triggers.sh comment state. Needs one manual run of agent-context/evals/run-skill-triggers.sh (costs subscription quota) to confirm the flag.✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.