# Shared contracts

These files define reusable nested context contracts that are not independent selection subjects.

A subject file must reference these contracts rather than copy their tables.

| Context                | File                                                              | Used by                                                                                                                                                 |
| ---------------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `NameContext`          | [name.md](/pack-builders/context/shared-name)                     | Every named semantic subject, field, port, enum value, generated metadata label and scoped owner.                                                       |
| `SemanticLinkContext`  | [semantic-link.md](/pack-builders/context/shared-semantic-link)   | Bounded references to another semantic subject without recursively embedding it.                                                                        |
| `SemanticValueContext` | [semantic-value.md](/pack-builders/context/shared-semantic-value) | Schema/composite fields, operation/workflow ports, event payloads, and other semantic value carriers. Failure payloads intentionally use `TypeContext`. |
| `ExplanationContext`   | [explanation.md](/pack-builders/context/shared-explanation)       | Advisory notes exposed on semantic subjects and structural metadata.                                                                                    |
| `LifecycleContext`     | [lifecycle.md](/pack-builders/context/shared-lifecycle)           | Deprecation, removal and replacement metadata.                                                                                                          |
| `SemanticPathContext`  | [semantic-path.md](/pack-builders/context/shared-semantic-path)   | Renderer-friendly semantic paths.                                                                                                                       |

Subject files should link to these contracts instead of repeating their fields. The searchable path-level index is [../catalog.md](/pack-builders/context/catalog).
