Skip to content

[Wave 4E] Branding Agent: Implementation & Consolidation #555

@ashleyshaw

Description

@ashleyshaw

Summary

Implement the unified branding agent that consolidates header/footer/badge logic from separate modules into one config-driven system. Use the schema and configuration from Wave 4D to automate category-aware branding without hard-coded rules.

Related Issues

Parent planning:

Upstream work:

  • #[4C] — Current-state audit
  • #[4D] — Schema & config implementation

Execution sequence:

  • Previous: #[4D] (schema implementation)
  • Current issue: 4E (agent consolidation)
  • Next: #[4F] (remediation & validation)

Objectives

  • Consolidate separate header/footer/badge logic into one unified agent
  • Implement agent to read and apply category-based branding rules from config
  • Support category inference from frontmatter and file paths
  • Build fallback behaviour for missing metadata
  • Reduce maintenance cost by centralising logic

Scope

In Scope

  • Agent implementation (consolidating existing header/footer/badge logic)
  • Reading and applying branding rules from config (Wave 4D)
  • Category inference from frontmatter and paths
  • Template selection logic per category
  • Fallback and error handling
  • Agent documentation and usage examples

Out of Scope

  • Remediation of existing footers (Wave 4F)
  • Further schema changes (Wave 4D is complete)
  • Moving or restructuring agent storage locations

Deliverables

  1. Unified Branding Agent

    • Single agent that handles headers, footers, badges
    • Reads configuration from Wave 4D schema
    • Applies category-aware rules deterministically
    • Supports frontmatter overrides and path-based defaults
    • Clear error handling for invalid configurations
  2. Agent Logic

    • Category inference engine
    • Template selection algorithm
    • Badge placement and ordering logic
    • Fallback behaviour when metadata is missing
    • Validation checks before output
  3. Agent Documentation

    • How the agent selects categories
    • How template rules are applied
    • How to extend with new categories
    • Usage examples and output samples
    • Error messages and debugging guidance
  4. Unit/Integration Tests (Optional)

    • Category inference tests
    • Template selection tests
    • Badge placement tests
    • Fallback behaviour tests

Acceptance Criteria

Definition of Done

Owner

Claude Code (AI Team - Review & UX)

Dependencies

Awaits:

  • #[4D] (schema & config implementation) — COMPLETE
  • Wave 4D must be merged before agent can read configuration

Effort Estimate

3–4 hours (agent implementation, tests, documentation)

Metadata

Metadata

Assignees

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions