Tag system
The infrastructure that makes prompts auditable
Tags identify capabilities and prompts when you package them, and label instructions an auditor can cite. Keeping those labels stable makes it easier to connect session behavior to the prompt that produced it.
Use capability and prompt headers to identify what your pack contains. Use optional labels such as guideline and checklist to make instructions easier to follow and review.
Who this is for: Pack authors who need reusable prompts, predictable composition, and evidence for audits. Start with Build your own pack for a complete package before adding optional annotations.
What tags enable
| Use | What to expect |
|---|---|
| Pack discovery | Capability and prompt headers identify records for validation and import |
| Version evidence | Auditors can compare the capability content used in a session |
| Scoring | An auditor evaluates session evidence against instructions and records a structured score |
| Traceability | Stable labels help auditors cite the relevant instructions |
| Model targeting | Authoring guidance for explicit prompt variants; no automatic model-selector filtering |
Tag syntax
Tags use HTML comments. A Markdown renderer hides the comments, but the source text supplied to a model still includes them:
<!--<capability id="auditor.base" pack="valdr" role="core">-->
# Capability Prompt — `auditor.base`
<!--<identity>-->
You are the Agent Session Auditor.
<!--</identity>-->
<!--<instructions>-->
Validate session behavior against the supplied instructions and evidence.
<!--</instructions>-->
<!--</capability>-->Use id, pack, and role for capability headers, and key, pack, and a prompt role for standalone prompt headers. See the Tag reference for the distinct formats.
Capability roles
The role attribute classifies how a capability behaves in prompt composition. Valdr supports six roles, ordered by their position in the final prompt:
| Role | Priority | Purpose |
|---|---|---|
core | 0 | Foundational system-level behavior and identity |
workflow | 1 | Operational instructions and execution patterns |
constraints | 2 | Rules, policies, and behavioral boundaries |
context | 3 | Background information and domain knowledge |
validation | 4 | Verification steps and completion criteria |
integration | 5 | External system interfaces and API behaviors |
Capabilities sort by capability role, then backing prompt role (system, guide, policy, context, checklist), then lowercase capability key. See Prompt ordering for the full composition sequence.
Three layers of tags
1. Charter-level tags
Optional sections such as charter, purpose, workflow, and definition_of_done organize an agent’s instructions. They do not register an agent: registration comes from the pack’s .agent.yaml definitions and their bindings.
2. Behavioral fragment tags
Optional labels such as identity, instructions, communication_guidelines, and tool_usage_policy make longer prompts easier to read and audit. To reuse instructions across agents, assign the same prompt or capability to each agent.
3. Capability metadata tags
Wrap each capability in a capability header and each standalone prompt in a prompt header. Give each a stable identifier so you can bind it to agents and refer to it when reviewing session behavior.
guideline, checklist, and prompt_fragment are authoring conventions. They provide context for an auditor but do not automatically validate behavior or calculate scores.
Model-specific targeting
To use different instructions for different models, create separate prompt or capability variants and assign the intended variant to each agent. Model tags do not select a variant automatically. See Model targeting for the setup steps.