feat(automation): Phase B — insight auto-refresh, foundation auto-check, anchor lifecycle#30
Draft
tbitcs wants to merge 1 commit into
Draft
feat(automation): Phase B — insight auto-refresh, foundation auto-check, anchor lifecycle#30tbitcs wants to merge 1 commit into
tbitcs wants to merge 1 commit into
Conversation
…ck, anchor lifecycle - Add SSE event bus (backend/glossa_lab/api/events.py) with /api/v1/events/stream - Add foundation check automation (backend/glossa_lab/api/foundation.py) with POST /check, GET /status, PATCH /config, 15-min auto-check background task - Emit insight_trigger events on loop complete, staging archive, discovery fetch - Add anchor candidate auto-lifecycle: approved→verified→auto-archived when SA improves; rejected→expired after 7 days; auto-archive to anchor_staging_archive.json - Add POST /staging/archive endpoint for manual archive override - Mark foundation dirty on anchor changes and loop completion - Frontend: 20-min throttled insight auto-refresh with SSE subscription, freshness indicator (countdown/up-to-date/waiting), configurable interval (10/15/20/30/60m stored in localStorage) - DeciphermentPanel: foundation auto-check status display with toggle button - ResearchLoopPanel: lifecycle stage badges (staged→approved→verified→archived), auto-verified count in all-reviewed CTA - Register events_router and foundation_automation_router in main.py - Start foundation auto-check background task on app startup Co-Authored-By: Oz <oz-agent@warp.dev>
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.
Phase B — Automated Insight and Foundation Updates
Changes
Backend
backend/glossa_lab/api/events.py): Lightweight in-memory pub/sub withGET /api/v1/events/streamSSE endpoint.backend/glossa_lab/api/foundation.py):POST /check,GET /status,PATCH /configendpoints. 15-min auto-check background task.research_loop.py): Auto-verify approved candidates, auto-archive verified, expire rejected after 7d. NewPOST /staging/archive.Frontend
DashboardView.tsx): 20-min throttled auto-refresh with SSE, configurable interval, freshness indicator.DeciphermentPanel.tsx): Status display with toggle button.ResearchLoopPanel.tsx): Per-candidate lifecycle stage badges, auto-verified count.Build
Backend restart needed
Conversation: https://app.warp.dev/conversation/c67bcac2-ff46-40d1-b102-131b2fb7fc5d
Run: https://oz.warp.dev/runs/019e84ec-7a71-7ad8-808a-ea1350755e8c
This PR was generated with Oz.