Share the research runtime and connect the private console - #25
Open
gilbertsahumada wants to merge 96 commits into
Open
gilbertsahumada wants to merge 96 commits into
gilbertsahumada wants to merge 96 commits into
Conversation
…background/handlers.ts
…/model-diagnostics.ts
…eral-decision-system.ts
…ket-selection-system.ts
…-decision-system.ts
…tion/model-diagnostics.ts
…tion/model-output.ts
…tion/model-probe.ts
…/decision-system.ts
…/define-prompt.ts
…/general-decision-system.ts
…/market-selection-system.ts
…/nfl-decision-system.ts
…/research-system.ts
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.
Problem and behavior
The web and local Mastra host previously composed backend services independently. Next.js now delegates business HTTP requests to the Hono API and consumes its DTOs; its database/provider dependencies are removed. The existing public design and sample labels are preserved.
A private
/consolesupports agent creation and versioned configuration, plugins/tools, manual research, schedule/pause controls, history, forecasts, policy results and evidence. Requests use Supabase user sessions; operator enablement remains separate. Polling stops for terminal runs and suspends in hidden tabs. Manual admission retains an idempotency key across uncertain responses.@pickler/agent-runtimecontains the shared Mastra model, immutable prompts, tools and lease lifecycle. Local modules re-export it. The Queue/Cron-only research Worker uses this package without lab initialization, an HTTP server or Studio. Managed-agent connection checks are explicit operator commands. The API's Zod version now matches the shared schemas so invalid input reliably returns 400.Validation
Delivery
Second of three sequential PRs, based on #24. OpenNext is pinned at 1.20.6. The following deployment PR supplies Worker resources/configuration, local workerd browser verification and isolated staging acceptance. This PR does not claim staging is deployed. No automatic merge.