Skip to main content

SQL+LLM Dashboard Feasibility & Will McKinley Feedback Analysis

Date: 2026-02-17 Author: Claude (Opus 4.6) Project: PILOT Source: AZ1 Monday Check-In transcript + will-mckinley-action-prompts.md


1. SQL + LLM Dashboard Generation: Feasibility

Answer: Already Implemented

The generate-briefing.py (961 lines) implements a 5-phase SQL+LLM pipeline:

PhaseEngineWhat It Does
1. QuerySQLite15 parameterized SQL queries via BriefingDB class
2. ComputePythonMetricComputer derives velocity, costs, quadrant status
3. NarrateClaude APINarrativeGenerator with SHA256 hash-based caching (Sonnet for decisions, Haiku for bulk)
4. AssemblePythonJSXAssembler builds JSON manifest for JSX rendering
5. ValidatePythonBriefingValidator checks structural integrity

Architecture Details

SQL Layer (init-database.sql v3.0.0):

  • 22 tables with ADR-119 multi-tenant columns
  • 5 pre-computed views: v_sprint_summary, v_track_progress, v_velocity_metrics, v_decision_status, v_risk_summary
  • 14 indexes for query performance

LLM Layer (NarrativeGenerator):

  • Model selection: Sonnet for decision narratives, Haiku for bulk metric summaries
  • SHA256 hash-based narrative caching in narrative_cache table
  • Prevents redundant API calls when underlying data hasn't changed

Output Layer (JSXAssembler):

  • Produces JSON manifest consumed by csuite-briefing.jsx
  • Supports multiple audience presets: csuite, board, engineering, investor

Conclusion: The SQL+LLM pattern is architecturally sound and production-ready. No new infrastructure needed for the core pipeline.


2. Will McKinley Feedback: 15 Action Prompts

Source: will-mckinley-action-prompts.md (239 lines, 7 categories)

2.1 Coverage Matrix

#PromptPriorityStatusDetails
1.1Incremental Deployment PipelineCRITICALNOT COVEREDCI/CD for stable-level promotion
1.2Live Application PreviewCRITICALNOT COVEREDPersistent URL + feature flags
2.1Executive Summary Dashboard (Top 5)CRITICALCOVEREDcsuite-briefing.jsx + decisions table
2.2Eliminate Dashboard RedundancyHIGHPARTIALJSX exists, needs redundancy audit
2.3Session Log -> Dashboard GeneratorHIGHCOVEREDgenerate-briefing.py Phase 1
2.4Multi-Session Cumulative ViewHIGHPARTIALsessions table exists, need aggregation query
2.5Category-Level ProgressHIGHCOVEREDv_track_progress view + category field
3.1Kanban Column ReorderMEDIUMPARTIALConfig change in existing component
4.1Visual Annotation FeedbackHIGHNOT COVEREDCanvas overlay + structured feedback
4.2Feedback-to-Action PipelineHIGHNOT COVEREDMulti-format classification + task gen
5.1Authoring/Output SeparationCRITICALCOVEREDADR-209 D.5 mandates portable output
5.2Idea Analysis DashboardMEDIUMPARTIALNeeds new route + data model
6.1Multi-Tenant Dashboard FrameworkHIGHCOVEREDADR-119 columns on all 22 tables
7.1Decision Brief StructureHIGHCOVEREDdecisions table: type, confidence, options, stakes
7.2Development-Over-Time TrendsHIGHPARTIALv_velocity_metrics exists, need Recharts components

Summary: 6 covered, 5 partially covered, 4 not covered

2.2 Gap Analysis

Fully Covered (6/15) - No new work needed

  • 2.1, 2.3, 2.5, 5.1, 6.1, 7.1

Partially Covered (5/15) - Extension of existing work

  • 2.2: Audit csuite-briefing.jsx for duplicate sections, consolidate
  • 2.4: Add WHERE created_at BETWEEN ? AND ? to BriefingDB + time-window selector in JSX
  • 3.1: Change column order config in Kanban component
  • 5.2: New route + lightweight ideas table, reuse dashboard framework
  • 7.2: Create 3-5 Recharts components fed from v_velocity_metrics view

Not Covered (4/15) - New capabilities required

  • 1.1: Incremental deployment pipeline (CI/CD milestone mapping)
  • 1.2: Live application preview (persistent URL, feature flagging, stub system)
  • 4.1: Visual annotation (screenshot capture, canvas overlay, structured feedback schema)
  • 4.2: Feedback-to-action (multi-format classification, task generation)

3. Priority Recommendations

Tier 1: Immediate (leverage existing SQL+LLM pipeline)

ActionEffortImpactPrompt
Refine executive summary (top 5 + decisions)LOWHIGH2.1, 2.2
Add multi-session time-window queriesLOWHIGH2.4
Create Recharts trend componentsMEDIUMHIGH7.2

Rationale: These deliver immediate value using existing infrastructure. The SQL views already compute the data; we just need better presentation.

Tier 2: Near-Term (moderate new work)

ActionEffortImpactPrompt
Kanban column reorderLOWMEDIUM3.1
Idea analysis dashboardMEDIUMMEDIUM5.2
Incremental deployment pipelineHIGHCRITICAL1.1

Rationale: 3.1 and 5.2 are straightforward. 1.1 requires CI/CD work but addresses Will's strongest directive.

Tier 3: Strategic (new capabilities)

ActionEffortImpactPrompt
Live application previewHIGHCRITICAL1.2
Visual annotation feedbackHIGHHIGH4.1
Feedback-to-action pipelineMEDIUMHIGH4.2

Rationale: Will returned to visual annotation multiple times - it's a core product feature, not a nice-to-have. Live preview is his strongest overall directive.


4. Key Insight

Will's core frustration: seeing documents about software rather than the software itself.

The SQL+LLM pipeline already transforms raw project data into executive-grade intelligence rendered as interactive dashboards. This IS the mechanism Will wants (prompts 2.1-2.5, 7.1).

The gap is not architectural - it's deployment visibility (1.1, 1.2) and feedback loops (4.1, 4.2).

The SQL+LLM pipeline generates excellent dashboards. The question is whether stakeholders can see and interact with the live application as it's being built.


Phase 1 (Week 1): Tier 1 refinements
- Dashboard redundancy audit + consolidation
- Multi-session cumulative SQL queries
- Recharts trend visualization components

Phase 2 (Week 2): Tier 2 extensions
- Kanban column reorder
- Idea analysis dashboard route
- Incremental deployment pipeline design

Phase 3 (Week 3-4): Tier 3 capabilities
- Live preview system architecture
- Visual annotation prototype
- Feedback-to-action pipeline


6. Files Referenced

FilePurpose
tools/web-publishing-platform/executive-briefing-new-component/generate-briefing.py5-phase SQL+LLM pipeline (961 lines)
tools/web-publishing-platform/executive-briefing-new-component/init-database.sql22 tables + 5 views + 14 indexes (551 lines)
tools/web-publishing-platform/executive-briefing-new-component/will-mckinley-action-prompts.md15 action prompts from AZ1 Monday Check-In
tools/web-publishing-platform/executive-briefing-new-component/executive-briefing-generator.mdMaster system prompt v2.0.0

Analysis Document Version: 1.0.0 Generated: 2026-02-17T05:29:41Z