Loomworks Engineering · Forge Specification
Companion Expertise Badge Display
Business Context
Domain Experts in the system have earned recognition through sustained contribution to a specific knowledge area. The badge system visualizes that recognition in the Operator Layer dashboard — both for the Domain Expert themselves and for others viewing engagement participants.
Scope
Render the Domain Expert badge on the dashboard surface. Surface domain name, recognition date, and current activity status.
Exclusions
- Badge revocation flows — badges are persistent; activity dots handle dormancy
- Multi-domain stacking UI — deferred to v1.1
- Badge introspection — clicking a badge does not yet open a detail view
Tech Stack
Frontend:Next.js 14 / TypeScript
Styling:Tailwind CSS with letterpress palette tokens
Backend:FastAPI / Python (existing)
Database:PostgreSQL via SQLAlchemy (existing)
Non-Functional Requirements
Performance
Badge render must complete within 50ms of dashboard mount under standard load (P95).
Accessibility
Badge component meets WCAG 2.1 AA contrast requirements for the vellum/brass token pair.
Phase 1 — Display
Cycles 1–2
Cycle 1Badge Component
0.6 build days
REQ-002
Render activity dot in green when domain has activity in the last 14 days; absent otherwise.
0.2 days