Knowledge Source Hierarchy

Extends ADR 002: Standards Precedence and Standards Ingestion. This document defines the source precedence model, resolution algorithm, citation format, and conflict handling that all A11YSmith agents, knowledge modules, templates, and severity outputs must follow.

Source Precedence Order

Every knowledge lookup, agent resolution, template section, and finding citation must follow this tiered precedence. Higher tiers override lower tiers when both apply.

Source precedence tiers
Tier Source Role Resolution behavior
1 TAS Patterns and Practices Primary normative authority TAS-specific requirement wins. Always cite TAS ID.
2 Target platform implementation guidance Platform detail when TAS is broad Confirm implementation technique. Cite alongside TAS.
3 Target issue priority + technology baseline Severity, timing, and validation context Drive severity hints, fix urgency, and AT test matrix.
4 WCAG 2.2 AA + official platform vendor docs Fallback when TAS is silent or broad Cite only when TAS does not answer precisely.
5 Human review required Conflict resolution Flag when sources conflict or case is novel.

Tier 1: Target Normative Sources

These are the default authority for all Target-facing accessibility work.

Tier 2: Target Implementation Guidance

These fill in platform detail when TAS is broad or pattern-level.

Tier 3: Design-System and Product-Pattern Context

These drive product-shape reasoning.

Tier 4: External Fallback Sources

Use only when the Target layers are not specific enough.

Resolution Algorithm

When an agent, knowledge module, or rule needs to answer an accessibility question:

  1. Check Tier 1: Does TAS have a specific pattern or practice that addresses this? If yes, resolve from TAS. Cite the TAS ID.
  2. If TAS is broad: Check Tier 2 Target platform technique guidance. Resolve with platform-specific detail. Cite both TAS ID and technique reference.
  3. If TAS is broad and no platform technique applies: Check Tier 3 for severity, timing, or validation context. Apply issue priority hints and test baseline.
  4. If Target guidance is absent: Check Tier 4 (WCAG 2.2 AA + platform vendor docs). Resolve from external sources. Cite WCAG SC ID.
  5. If sources conflict: Do not silently prefer one source. Flag for human review (Tier 5).

Decision Rules

Citation Format

In Agent Prompts and Templates

In Structured Output (Findings, Knowledge Modules)

Every guidance block and finding must carry:

Content Tags (for Templates)

Use these tags in agent template sections to mark the authority level of each content block:

Content tags and their meanings
Tag Meaning Source tier
[TAS-REQUIREMENT] Normative TAS pattern or practice; must be followed 1
[TAS-GUIDANCE] Target implementation or operational guidance 2-3
[WCAG-FALLBACK] WCAG detail used because TAS is broad or silent 4
[ADVISORY] Best practice or recommendation; not normative Any
[EXAMPLE] Illustrative code, pattern, or scenario Any

Conflict Handling

When TAS and WCAG or platform docs provide conflicting guidance:

  1. Do not silently resolve. The agent or module must flag the conflict.
  2. Escalation path: Target Accessibility team is the final normative authority for Tier 1 content conflicts.
  3. Product or design-system teams can supply implementation detail but cannot override TAS.
  4. WCAG fills gaps — it does not outrank TAS for Target-facing decisions.

TAS Entry Classification

Every TAS entry ingested into the A11YSmith catalog must be classified with a mapping status:

TAS entry mapping statuses
Status Meaning
directly-rule-mapped Links to one or more A11YSmith rule IDs
prompt-guidance-only Informs agent behavior but no detection rule exists
testing-baseline-only Defines validation procedure, not a finding source
issue-priority-only Defines severity or timeline, not detection
needs-human-interpretation Too broad or ambiguous for automated mapping

Patterns vs. Practices

TAS content falls into two entry types with different downstream behavior:

Relationship to Existing Documents