Interactive REPL for bayesgrove
Details
bg_repl() provides an interactive loop for navigating workflow state,
reviewing protocol guidance, and applying common workflow actions without
manually calling the lower-level APIs.
In project scope, the REPL shows obligations and actions across the whole workflow. In branch scope, it shows the selected branch and its graph.
Supported commands include:
help: show the command listdashboard: show workflow status, obligations, holds, and decisionsstatus: print workflow state and healthguide: show active obligations and suggested actionsexplain <n>: show an obligation's rationale and referencesactions: list actionable protocol suggestions with payload detailsnext: preview and optionally execute the top suggested actiondo <n>: execute the nth suggested actionscope/scope <scope>: inspect or change the current scopebranchesanduse <n>: inspect branches and switch by indexgoal/goal set: inspect or set a branch-scoped inferential goaldecisions: show recent decisions for the current scopelineage: show the current branch and its ancestorsnodes: print the scoped execution graphresult <node>: inspect a cached result and fresh summariesbranch <node>: create a new branch from a node and switch to itset <node> <key>=<value>: update a node label or parameterinvalidate <node>: invalidate a node and downstream cache lineageretire <node>: retire a node and its downstream lineageretire-branch <branch>: retire an entire branch from future planninggates/answer: inspect and answer pending structural gatesrun: execute ready work in the current scopejobs: inspect job recordsexport [html|md] [path]: export a workflow report from the REPLexit,quit,q: leave the REPL
The function must be called from an interactive R session.