---
id: T-361
name: "Add docs field to Component Fabric cards + Watchtower rendering"
description: >
  From T-339 GO: (1) Add optional docs field to ~28 component cards mapping 7 deep-dive
  articles, (2) Add Documentation section to fabric_detail.html template, (3) Fix
  dep['target'] safety in traverse.sh. Optional stretch: /fabric/docs reverse-lookup
  page. See docs/reports/T-339-doc-fabric-linking.md for mapping and research.

status: work-completed
workflow_type: build
owner: human
horizon:
tags: []
components: [agents/fabric/lib/traverse.sh, web/templates/fabric_detail.html]
related_tasks: []
created: 2026-03-08T21:38:56Z
last_update: '2026-06-11T22:24:19Z'
date_finished: 2026-03-08T21:46:03Z
bvp_scores_proposed:
  - ts: '2026-06-11T22:24:19Z'
    estimator: bvp-estimator-v1-heuristic
    scores:
      D1: 0
      D2: 0
      D3: 0
      D4: 0
      F-RECALL: 2
      F-ORCH: 0
      F3: 0
      F1: 0
      F2: 1
    rationale: D1=0 (no-signal); D2=0 (no-signal); D3=0 (no-signal); D4=0 
      (no-signal); F-RECALL=2 (body:lightly-promoted); F-ORCH=0 (no-signal); 
      F3=0 (no-signal); F1=0 (no-signal); F2=1 
      (body/components:component-fabric-incidental)
    rubric_sha: e4a00f38e801
---

# T-361: Add docs field to Component Fabric cards + Watchtower rendering

## Context

From T-339 GO decision. Research: `docs/reports/T-339-doc-fabric-linking.md`.

## Acceptance Criteria

### Agent
- [x] `docs` field added to 24 component cards mapping 7 deep-dive articles
- [x] `fabric_detail.html` renders Documentation section when `docs` field present
- [x] `traverse.sh` line 105 `dep['target']` replaced with safe `.get()`
- [x] All modified YAML cards parse correctly (127/127)
- [x] Watchtower component detail page loads with Documentation section for cards with docs

### Human
- [x] [RUBBER-STAMP] Documentation section renders well on Watchtower component detail
  **Steps:**
  1. Open http://localhost:3000/fabric/component/agents-healing-healing
  2. Look for "Documentation" section
  **Expected:** Section shows linked deep-dive article(s) with title and path
  **If not:** Screenshot the page

## Verification

# All modified cards parse
python3 -c "import yaml, glob; [yaml.safe_load(open(f)) for f in glob.glob('.fabric/components/*.yaml')]"
# Template renders for a card with docs
curl -sf http://localhost:3000/fabric/component/agents-healing-healing | grep -q "Documentation"
# traverse.sh has no unsafe direct key access
! grep -q "dep\['target'\]" agents/fabric/lib/traverse.sh

## Decisions

<!-- Record decisions ONLY when choosing between alternatives.
     Skip for tasks with no meaningful choices.
     Format:
     ### [date] — [topic]
     - **Chose:** [what was decided]
     - **Why:** [rationale]
     - **Rejected:** [alternatives and why not]
-->

## Updates

### 2026-03-08T21:38:56Z — task-created [task-create-agent]
- **Action:** Created task via task-create agent
- **Output:** /opt/999-Agentic-Engineering-Framework/.tasks/active/T-361-add-docs-field-to-component-fabric-cards.md
- **Context:** Initial task creation

### 2026-03-08T21:46:03Z — status-update [task-update-agent]
- **Change:** status: started-work → work-completed

### 2026-03-10T22:04:13Z — status-update [task-update-agent]
- **Change:** horizon: now → next

## Reviewer Verdict (v1.5)

- **Scan ID:** R-413e7333
- **Timestamp:** 2026-06-02T15:02:22Z
- **Catalogue:** v1.3-seed
- **Overall:** CONCERN
- **Needs Human:** no
- **Findings:** 1

**Verification-level findings:**

  1. **l387-sigpipe-risk** (partial, heuristic) @ Verification:line 4
     - evidence: `curl -sf http://localhost:3000/fabric/component/agents-healing-healing | grep -q "Documentation"`
