leadership-report: split PQL/PEL into OSS / API / Studio buckets and add Enterprise Dashboard link#60
Merged
Assaf Hay Eden (AssafHayEden) merged 1 commit intoMay 7, 2026
Conversation
…add Enterprise Dashboard link Restructures the weekly leadership Slack post so each lead is counted exactly once across the three sections, and surfaces the Hex Enterprise Dashboard as a deep-link from the Studio Enterprise section. Bucketing rule (locked): OSS = OSS PEL only (no PQL flow) API = (API + Both) PQL and (API + Both) PEL Studio = Studio-only PQL and Studio-only PEL SQL: new marketing_pels_by_product CTE on marketing.final_sf_lead_opportunity (lead-level, deduped) classifies PELs as API / Studio / Both / OSS via the ltx_api / ltx_studio flags. Surfaced as J_studio_summary.wow_trends.pels_by_product. Dry-run cost: 545 MB (was 537 MB). render_body.js: drives the new bucketing off pqls_by_product and pels_by_product. The legacy Block G (G_pql_pel) is still emitted by the SQL but no longer rendered so all three sections share one source of truth. Adds a STUDIO_DASHBOARDS array with the Hex Enterprise Dashboard URL; the line is omitted when the array is empty. tldr_system_prompt.md: extends the PEL-skip rule to all three PEL lines and calls out the OSS PEL bucket as especially noisy (sensitive to product-flag tagging gaps), so the LLM does not headline OSS PEL swings. Verified end-to-end: PEL totals reconcile (388 OSS + 51 API+Both + 294 Studio = 733, matches the lead-level table). Co-authored-by: Cursor <cursoragent@cursor.com>
Assaf Hay Eden (AssafHayEden)
approved these changes
May 7, 2026
671d219
into
aheden/tldr-ban-active-orgs-ratio
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restructures the leadership weekly Slack post so each lead is counted exactly once across the three sections, and surfaces the Hex Enterprise Dashboard as a deep-link from the Studio Enterprise section.
Bucketing rule (locked):
Sample reconciliation on the week of Apr 27 → May 3, 2026:
What changed
queries/weekly_report_combined.sql— newmarketing_pels_by_productCTE onmarketing.final_sf_lead_opportunity(lead-level, deduped viaqualify) classifies PELs asAPI/Studio/Both/OSSvialtx_api/ltx_studioflags. Surfaced asJ_studio_summary.wow_trends.pels_by_product. Dry-run cost: 545 MB (was 537 MB).n8n/render_body.js— drives bucketing offpqls_by_productandpels_by_productvia two new helpers (findByProduct,sumByProduct). Block G (G_pql_pel) is still emitted by the SQL but no longer rendered so all three sections share one source of truth. Adds aSTUDIO_DASHBOARDSconstant containing the Enterprise Dashboard URL — the line is omitted when the array is empty.references/report-template.md— refreshed sample output, added the bucketing rules table, documented theSTUDIO_DASHBOARDSknob.SKILL.md— updated section descriptions, added two new knobs (Lead bucketing, Studio dashboards), added new source table, added drill-through link, bumped scan budget.n8n/tldr_system_prompt.md— extends the PEL-skip rule to all three PEL lines (OSS especially noisy from product-flag tagging gaps), so the LLM never headlines PEL swings. Reference TL;DR untouched (it doesn't reference lead counts).Verified rendered output
```
Open Source
• LTX 2 family: 699,156 downloads (↓59.7% WoW)
• LTX 2.3 official repo: 402,147 downloads (↓7.4%) · +39 likes (↓22%)
• Community feedback categories: not available this week
• Leads: 388 PELs (↑7660%)
API
• Total revenue: $55,565 (↑7.4% WoW)
Resellers: $40,094 (↑21.3%) · Contracts: $10,679 (↓7.9%) · Self-serve: $4,792 (↓32.4%)
• Top request type: Image-to-Video (131K requests, 67.8% of volume)
• Self-serve: 3,389 new signups (↓11.8%) · new paying users ↓24.4% · visitors ↓9.6%
• Leads: 44 PQLs (↓35.3%) · 51 PELs (↓3.8%)
…
Studio Enterprise
• Active orgs: 15/18 (Bosch, Indegene, Meta inactive) · Newell signed as new contract
• Total tokens: 7.97M (↑4.5% WoW)
…
Pilots (10 active)
…
• Leads: 13 PQLs (↓43.5%) · 294 PELs (↓4.5%)
• Dashboards: <https://app.hex.tech/…/Enterprise-Dashboard-…|Enterprise Dashboard>
```
Test plan
bq --dry_runon the n8n SQL (passes, 545 MB)pels_by_productpopulated (4 buckets: API / Studio / Both / OSS)parse_sections.js→render_body.jsagainst real BigQuery output and produces the expected Slack bodyNotes for the reviewer
aheden/tldr-ban-active-orgs-ratio). Once that merges, GitHub will auto-retarget this PR tomain.G_pql_pel) is intentionally still emitted by the SQL but no longer rendered — see the comment inrender_body.js. Easy to remove in a follow-up if we want a smaller SQL surface.leadsource = 'Inbound - PQL'and no product flag set. Likely a tagging gap or bulk import worth flagging to marketing separately. The TL;DR prompt already treats all PEL moves as noise so it won't be headlined.Made with Cursor