Repository navigation
Plugin manifest: optional unit on a produced role - #2359
Merged
neuromechanist merged 2 commits intoNov 24, 2026
Merged
neuromechanist merged 2 commits into
neuromechanist merged 2 commits into
Conversation
ViewProducedRole gains an optional unit (1 to 32 code points, the grammar of a neuroschema 0.6.0 column unit) in zod and the JSON Schema; a column's unit overrides it; a recipe role still refuses one. Corpus cases for 32/33 code points, empty, non-string, recipe role with unit, role unit beside column units; six new vectors, none changed. Tested: plugin-manifest contract and vectors; mutations M1-M9 each fail.
Records the override rule and that the per-kind unit requirement is the nemar-process loader's (#2358). Tested: adr-index, changelog-format.
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2359Version: 🤖 Updated on each push. |
Contributor
Author
|
Review r1 (code, tests, comments): clean; zod and JSON Schema agree, ajv counts code points as codePoints does (checked with 32 and 33 U+1D400). CI: only the expected recipe drift failure (epic recipes b2 vs nemar-process dev b1, until the nemar-process epic reaches dev). Admin-merging into the epic branch. |
neuromechanist
merged commit Nov 24, 2026
1788c5d
into
feature/issue-2324-epic-pipeline-progress
25 of 27 checks passed
This was referenced Nov 25, 2026
This branch was previously deployed
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.
Closes #2358. Part of epic #2324 (ADR 0137).
What changed
ViewProducedRoleinnemar.plugin-manifest.v1gains an optionalunit, in zod and in the JSON Schema identically: a string of 1 to 32 code points, the grammar and cap of a neuroschema 0.6.0 columnunit(Option A of the issue).unitoverrides the role'sunitfor that column; a{"from": "recipe"}role still refuses any key butfrom, so it never carries a unit.unitorcolumnswith units) is the nemar-process loader's check per kind (its phase P3), not this schema's.Tests
plugin-manifest-vectors.jsonregenerated withNEMAR_WRITE_PLUGIN_VECTORS=1: six vectors added (view_role_unit_*,view_recipe_role_with_unit), none changed.bun run typecheck,bun run lintbun testnot run (epic ->devgate).nemar-process
P3 re-copies
shared/contract/plugin-manifest.schema.jsonandplugin-manifest-vectors.jsonfrom this PR's squash commit.Agentic AI tools were used in preparing this pull request.