feat: add local-first data layer for BI, workflow analytics, and dashboard-ready metrics#1199
Open
danielfoch wants to merge 2 commits intogarrytan:mainfrom
Open
feat: add local-first data layer for BI, workflow analytics, and dashboard-ready metrics#1199danielfoch wants to merge 2 commits intogarrytan:mainfrom
danielfoch wants to merge 2 commits intogarrytan:mainfrom
Conversation
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
Adds a local-first GStack Data Layer for BI, workflow analytics, cron timelines, resource tracking, and dashboard-ready metrics. It gives GStack/OpenClaw/Hermes users a way to normalize local agent activity, connect it to business events and KPIs, track scheduled runs, and export clean data plus a local visual dashboard.
Why
GStack already helps builders plan, review, QA, ship, benchmark, retro, and learn. The missing layer is business and resource visibility: what the harness is doing, which workflows are working, when crons are firing, how many agents are active, where tokens/costs are going, what outcomes they affect, and which repeated workflows are becoming reusable intelligence.
What changed
/data-layer--bucket hour|day|week|monthdashboard.htmlplusdaily-report.mdfor screenshot/report workflowsNon-goals
Privacy model
Local-first and opt-in. Business data stays under
.gstack/data-layer/by default, which is gitignored. Examples are sanitized. This feature distinguishes local analytics from remote telemetry and does not transmit data. Raw repo slugs and raw agent IDs are hashed when exported.Example use cases
Test plan
bun run gen:skill-docs --host allbun run gen:skill-docs --host all --dry-runbun run skill:checkjq empty schemas/*.schema.json examples/data-layer/*.jsonexamples/data-layer/*.jsonlline-by-line withjq -c emptybun test test/data-layer-export.test.tsdashboard.htmland time-series exports are writtengit diff --checkbrowse/test/fixtures/security-bench-haiku-responses.jsonbun test: existing local failures from path-with-spaces assumptions and existing browser assertions; E2E/evals stayed skipped becauseEVALS=1was not configuredFollow-ups