Repository navigation
feat(insights): every growth report is an artifact, drawn by one renderer - #689
Merged
Merged
Conversation
…erer (#646) After #645 only Search growth was an artifact the agent fills. Growth overview, Social posts and Product were still written as blocks and rows together on every run, held to a separate block contract in the backend and drawn by a second renderer in the app. Two ways to produce and draw the same kind of report is what the artifact format exists to end. - Three artifacts, each with its layout, data schema, sample, fixture runs and fill skill: growth-overview, social-posts, product-growth. Same section titles and sources as the templates had. - Two catalogue blocks: a ranked bar list (channels, posts, a funnel, views by platform, with each value's share of the total or of the first worked out by the app) and a plain-text table column. - The block contract is gone: report.py, REPORT_CONTRACT, the block plan and its parser. Every template names its artifact, and a report run always returns a run held to that artifact's schema, with one repair turn. - The old renderer is gone: GrowthReportView, the unused AnalyticsReport and lib/analyticsReport.js. A report stored in the block shape is read into its template's artifact (lib/legacyGrowthReport.js), so every stored report still opens through the same layout. It reads and does not repair: a part that does not fit is left out, and one whose headline numbers cannot be read shows its verdict and asks to be refreshed. - A table column no row has a value for is left out, as an empty block is: an old report has no earlier period, so no Change column of dashes. - The four reports' shared parts (headline, signals, actions, sources, a series) have the same shape, and a backend test fails if they drift: Home's tile reads any of them and a refresh compares runs field by field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C6UbjwKPR3p9kJueobNsY
…today (#646) check_docs.py holds a kept-current document's Updated line to the date of its last change; the #646 commit landed on 2026-12-05. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C6UbjwKPR3p9kJueobNsY
5hirish
marked this pull request as ready for review
December 5, 2026 12:37
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.
What and why
Every growth report is now an artifact the agent fills, and one renderer draws all four. After #645 only Search growth worked that way. Growth overview, Social posts and Product were still written as blocks and rows on every run, held to a second contract in the backend and drawn by a second renderer in the app.
ArtifactView+GrowthReportViewArtifactViewgrowth-overview,social-posts,product-growth), each with a layout, data schema, sample, fixture runs and a fill skill. Same section titles and sources as the templates had.agents/insights/report.py, the block contract and its plan;GrowthReportView, the unusedAnalyticsReportandlib/analyticsReport.js.lib/legacyGrowthReport.jsreads a stored block report into its template's artifact. It reads and does not repair: a part that does not fit is left out, and a report whose headline numbers cannot be read shows its verdict and asks to be refreshed.Closes #646
Area
backend/— FastAPI / Pythonapp/— Next.jsdesktop/— Tauri shell / sidecarsite/— static marketing siteLaunch
Launch: changelog only, because the reports read the same; what changes for a person is the failure case and that old reports keep opening.
Verification
On the tree merged with today's main:
Looked at every new report at 390 and 1152 (light and dark) through
/preview:growth-overview-report,social-posts-report,product-growth-report,product-growth-quiet-report,growth-report-stored-before,growth-report-stored-unreadable. No overflow, no console errors.CI ran WebKit; every check is green.
One real run of each new report on the eval's synthetic site (Search Console, Google Analytics and Google Ads; Gemini 3.8 Flash):
Each read its fill skill before fetching and invented nothing for a part its sources could not fill. The synthetic site has no scheduler posts and no product analytics, so Social and Product were tested on the missing-source case; their full shape is covered by the fixture runs.
AGENTS.mdfor each directory I editedThings that need a second look
ReadSkillstill has no activity row. Only unattended report runs mount it.AI assistance
Generated by Claude Code