Repository navigation
Run dialog: decision-model picker, final result from the run record; decision example loads whole - #8
Merged
Merged
Conversation
…, final result from the run record (no invented On Flow End), decision example loads with every wire drawn
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.
Run dialog and decision example: three fixes found by the decision end-to-end check
modelinput (the example's On Flow Startmodel) is now scopeddecision(utils/decisionPins.tsdecisionModelPinIds, read from the graph only) and offers everyprovider/modelhandle on theoutput.decisionroute through the sameuseDecisionCatalogthe Decision card uses (decisionModelOptions, moved from BaseNode to share it). The handle carries its provider, so no provider input is needed. Before: a disabled text-model picker reading "Pick provider…". A model input of a form with no provider input is no longer disabled; it waits for a provider only when the form has one (modelPickerWaitsForProvider).scripts/build_decision_workflow.py: the end pinmodel(text: the provider/model that answered) became amodel-typed picker on load (the load migration promotes string pins namedmodel), sodepartment.model -> end.modelwas kept hidden ("cannot connect string to model"). The end output is nowanswered_by(string); example JSON rebuilt;decision_workflow_smoke.pyupdated.flow_completefrom the run summary now carriessummary.output(ledgerEvents.flowCompleteEventFromSummary), and a graph that has an On Flow End never gets an invented row (flowCompletionRow); a graph without one keeps its implicit end row.Tests
src/components/runDecisionModel.test.ts(7 tests). Each fix checked RED when removed: old example JSON (hidden edge), no decision scope, always-implicit end row, flow_complete without the output.npm run lint,npm run build,tsc --noEmit: clean.decision_workflow_smoke.py: all checks pass (AbstractRuntime 0.16 from main).Browser run (scratch gateway with AbstractCore #41, real models)
Example saved to the gateway, loaded from the Library (no hidden-connection notice), Run dialog
model= decision picker (15 handles incl.typesafe/jev-latest), run, result shown: 1440 dark withmlx/AbstractFramework/kev-0.8b-mlx-8bit(300 ms run: steps Ticket, Department, Escalate, Frustration, Triage; Final Result = run output withanswered_by), 1440 light / 400 dark / 400 light withtypesafe/jev-latest(answered_byjev-1.14.0). Screenshots kept locally with the worker.Docs:
docs/web-editor.md(Decision node: Run dialog), CHANGELOG Unreleased,llms-full.txtregenerated.