Skip to content

Add metadata specification document with current and planned keys #2431

@ss2165

Description

@ss2165

A number of metadata keys are currently being used ad-hoc. Some are mentioned in the main spec document. We should instead have a structured document that lists the namespaces, keys, value types and meaning.

We also have metadata that can be attached to nodes but also metadata that can be attached to the contents of extension definitions.

Further, the way the model uses metadata is slightly different to how the core uses it.

Already used (what's missing)?:

General

  • core.generator for recording structured HUGR generator names and versions
  • core.used_extensions for names and versions of used extensions in HUGR

Model

  • core.meta.description for descriptions
  • core.order_hint prefix for recording order edges (is this actually metadata, it does not say meta, is this part of stable model spec instead?)
  • compat.meta_json to string encode existing metadata (like those in the General section above)

Proposed

Metadata

Metadata

Assignees

Labels

specIssues to do with the specification document(s)

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions