Skip to content

Add a description field to step/path/graph meta - #220

Merged
benbaarber merged 1 commit into
mainfrom
ben/meta-description
Aug 21, 2026
Merged

Add a description field to step/path/graph meta#220
benbaarber merged 1 commit into
mainfrom
ben/meta-description

Conversation

@benbaarber

@benbaarber benbaarber commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Closes #181.

Adds an optional description field to stepMeta, pathMeta, and graphMeta: a human-readable summary of the object itself, distinct from intent, which records the initial goal of the work.

  • schema/toolpath.schema.json: description added to all three meta shapes; intent descriptions reworded to match its actual definition ("The initial goal of the work")
  • crates/toolpath/src/types.rs: description: Option<String> on StepMeta, PathMeta, GraphMeta (serde-optional, skip_serializing_if)
  • crates/toolpath/src/jsonl.rs: carried through PathOpenMeta and PathMetaPatch (plus reader mapping, patch application, emptiness checks, and the PathOpen projection) — without this, promoting the key out of the extra flatten would have silently dropped it when writing JSONL. Round-trip and patch-line tests added.
  • RFC.md: description documented in the meta table, with a paragraph on how it differs from intent
  • toolpath 0.7.0 → 0.7.1 (additive, patch per the pre-1.0 convention), bumped in all four places

Existing documents are unaffected: meta allows additionalProperties: true, so this promotes the key to a first-class, documented field.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown

🔍 Preview deployed: https://12d01bbe.toolpath.pages.dev

@akesling akesling left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Promotes description from additionalProperties to a first-class key on
StepMeta, PathMeta, and GraphMeta: a human-readable summary of the
object itself, distinct from intent (the initial goal of the work).
Carried through the JSONL PathOpen/PathMeta line kinds so the typed
field round-trips instead of being dropped on write. Reworded the
schema and RFC descriptions of intent to match its actual definition.

toolpath 0.7.0 -> 0.7.1 (additive).

Closes #181
@ben-emp
ben-emp force-pushed the ben/meta-description branch from 398074d to e87a52a Compare August 21, 2026 15:44
@benbaarber
benbaarber merged commit a041866 into main Aug 21, 2026
3 checks passed
@benbaarber
benbaarber deleted the ben/meta-description branch August 21, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a description field to meta

2 participants