Verum Studio
Verum Studio opens a workspace in your browser. Edit Verum source, run a script, check a module, or check a theorem or finite function contract while keeping the source and results visible together.
Start a workspace
Build the standalone Studio host and source proof worker from the Verum repository:
cargo build --release -p verum_workbench -p verum_source_proof
mkdir -p experiments
target/release/verum-studio --workspace ./experiments \
--verum /path/to/verum \
--proof ./target/release/verum-source-replay
Open the local URL printed by the process. The URL contains the session credential; keep it private. The editor assets are bundled, so editing and local execution do not need a CDN or a running Node.js service.
Without a token, Studio shows a connection page. The workspace opens only after the server accepts the credential; Escape does not bypass that step. The token is stored in the current browser tab and checked on every API request. Rejected session access locks the workspace again while preserving your editor draft.
CLI builds containing Studio also provide verum studio DIRECTORY, with
verum playground as an alias. --codex selects the Codex executable;
--proof selects the source proof worker. The default executable names
are resolved through PATH.
Studio listens on the loopback interface. Remote hosting, shared workspaces, and collaborative editing are not supported. Programs run with your local account permissions: open and execute code you trust. The outer time and output budgets are execution limits, not an operating-system sandbox.
Arrange your workspace
The arrows in panel headers collapse Explorer and Collaborator into narrow rails with file and agent status, and Results into a summary strip. Select a rail or the Results arrow to restore it. Drag a divider to resize a panel; with the divider focused, use the arrow keys, Home or End, or Enter to collapse. Panel sizes and collapse preferences are saved in this browser. The header provides the command palette, panel toggles, theme switching and Settings. Hover an action icon or focus it with the keyboard to see its label. The theme button cycles through System, Light and Dark directly; System follows your operating-system preference.
Studio preserves space for the editor as the window narrows. Expanding a side panel gives it priority when both side panels cannot fit. On small screens, use the bottom navigation to switch panes. In short windows, expanding Results uses the central area; collapsing it returns to the editor. Scrollbars remain subtle at rest and appear during interaction.
Keyboard commands
Open the Command palette with Command/Ctrl + Shift + P or its header icon. Search by translated command name or stable command identifier, use Up/Down to select, and Enter to execute. Escape closes the palette and restores focus. Unavailable commands remain visible but cannot execute. Palette commands and toolbar buttons use the same actions and availability checks.
| Action | Default shortcut |
|---|---|
| Command palette | Command/Ctrl + Shift + P |
| Keyboard shortcuts | F1 |
| Settings | Command/Ctrl + Comma |
| Find a project file | Command/Ctrl + P |
| Toggle Explorer | Command/Ctrl + B |
| Toggle Collaborator | Command/Ctrl + Shift + B |
| Toggle Results | Command/Ctrl + J |
| Focus editor / collaborator / results | Alt + 1 / 2 / 3 |
| Save source | Command/Ctrl + S |
| Run source, with the editor focused | Command/Ctrl + Enter |
| Check module, with the editor focused | Command/Ctrl + Shift + Enter |
| Check a declaration, with the editor focused | Alt + Shift + Enter |
| Find in source | Command/Ctrl + F |
| Go to line | Alt + G |
| Go to definition | F12 |
| Next / previous diagnostic in the editor | F8 / Shift + F8 |
| Format document | Alt + Shift + F |
| Request completion | Ctrl + Space |
| Send agent message, with the composer focused | Command/Ctrl + Enter |
Format document uses the shared Verum LSP formatting operation and the configured Verum executable. It edits the current buffer without saving and creates one undo step. If the document changes while formatting, Studio rejects the stale result. Invalid ranges, overlapping edits and edits that split a Unicode character are rejected before any change is applied. The formatter keeps comments attached to the same code tokens and preserves literal spelling. Import sorting is skipped in files containing comments or multiline tokens. A formatter failure reports its cause and leaves the buffer unchanged.
Open Settings → Keyboard shortcuts or press F1 to search, edit or reset
bindings. Enter a combination such as Mod+Shift+K or F6, then press Enter
in that field or select its Apply icon. Mod follows the platform: Command on
macOS and Ctrl elsewhere. Ctrl and Meta select explicit modifiers;
Alt and Shift can qualify a key. Punctuation uses physical key names such
as Slash or Comma. Bindings follow key positions across keyboard layouts.
An empty binding disables the shortcut; reset restores its default. Original
Studio combinations remain reserved after remapping so they do not unexpectedly
invoke a browser action such as Save Page.
Conflicting Studio bindings in overlapping contexts are rejected. The editor and agent composer can share a shortcut because their input contexts are separate. Core editor commands, including undo, redo, search and completion, participate in this registry; their previous bindings stop dispatching after remapping. Native text selection, cursor movement and the remaining editor editing shortcuts continue to work. Custom bindings take precedence over those editor defaults. Browser and operating-system reservations can still prevent some combinations from reaching the page.
Preferences are stored in this browser. Tooltips and accessibility shortcut hints reflect the active bindings. Dialogs and input-method composition suspend workspace dispatch. Tab moves between controls; use arrows in the file tree, result tabs and focused dividers. Escape followed by Tab lets you leave the editor without inserting indentation. Local tree and palette controls also respect input-method composition and exact key modifiers. Holding Enter does not repeatedly open files or execute palette commands; arrow navigation can repeat. In the tree, Alt + Enter opens a changed file's review and does nothing for an unchanged file.
Navigate a project and review changes
Explorer loads directories when you expand them. Closed subtrees do not require an initial recursive scan. Folder expansion is remembered per workspace. Use arrow keys to navigate, Left/Right to collapse or expand, Enter to open a file, and Home/End to reach the first or last visible entry. Typing a filename prefix moves focus within the visible tree. Collapse folders restores the root view.
The file filter searches paths across the project, including closed folders.
After Command/Ctrl + P, type a path and press Enter to open the first matching
file. Down/Up moves focus to the first/last visible tree entry for further
keyboard navigation. Results retain their folder hierarchy. Search stops after 200 matches or 50,000
visited entries and reports truncation; refine the query to narrow the result.
A single directory can contain at most 10,000 exposed entries. Hidden paths,
symlinks, target, node_modules and llvm are excluded from navigation.
Changes filters the tree to Git changes, including deleted and untracked
files. Folder counts summarize changed descendants. Two-character badges retain
Git's index and working-tree status separately: M means modified, A added,
D deleted, R renamed and ?? untracked; a dot means unchanged on that side.
Conflict states remain visible. The footer distinguishes a Git branch, a
workspace without Git and unavailable Git inspection.
Select a change badge or press Alt+Enter on a changed file to review it. Staged compares the index with HEAD; Working tree compares saved files with the index. An untracked file shows its complete saved text. Unsaved editor drafts have a separate dot and are not part of either Git comparison. These views are read-only: Studio does not stage, commit, reset or discard Git changes. Status refreshes while the page is visible; Refresh files requests an update. Refresh preserves existing file rows, keyboard focus and change-review buttons. If a focused file disappears, focus moves to a surviving parent or neighboring row; an empty tree returns focus to the file filter. Git status and patches describe their read time, not an atomic repository snapshot.
The reviewed agent tools verum_files and verum_changes use these same directory,
path-search and Git services. Filesystem discovery does not establish compiler
analysis or proof coverage. Verum source proposals retain their source-only
capability and revision check.
Opening, reloading or creating a document checks that the current draft has not changed while a read or confirmation was pending. If you keep typing, Studio keeps that draft and announces that the transition must be retried. Saving a draft also preserves edits made while the save request is in flight.
Choose an interface language
Open Settings to choose English or Russian and inspect the workspace path, server address and connection state. Studio initially follows a supported browser language and remembers an explicit choice. Switching updates the interface, accessibility labels and editor search without reloading the workspace or discarding drafts, undo history or active operations. Source code, compiler diagnostics, proof reports and agent responses retain their original text.
Explore a script
The starter experiment is a complete Verum script:
#!/usr/bin/env verum
let answer = 6 * 7;
print(answer);
Choose Run to execute it through the CLI's stdin scripting entry.
The output is 42. The submitted buffer is executed even if it has not
been saved. Script mode uses the same language and standard-library
implementation as the CLI; Studio does not translate experiments into
another language.
Open Options to select the wall-time budget and script permission
mode. Source / CLI defaults preserves the CLI's frontmatter policy; without
an explicit policy, execution can be unrestricted. Deny all grants passes
--deny-all, clearing grants including those in frontmatter. Allow all grants
passes --allow-all. These are interpreter policy controls, not operating-system
isolation: coverage depends on the runtime operation and does not confine every
FFI or nested execution path. Execute trusted code only.
Inspect run plan shows the source hash, executable, budget and selected mode
without starting a process. Editing the source or execution settings invalidates
the displayed plan. Each run retains the same contract in its receipt; an older
receipt without a recorded permission mode is shown as Not recorded. Module
and proof checks reject script permission overrides rather than silently ignoring
them. Agent tools use the same planner and launcher: verum_plan inspects a
request, while execution still follows the existing human review flow.
Check module runs verum check on a source snapshot. Use it for module
source, such as:
fn main() {
print(42);
}
The script header selects script parsing for the CLI, LSP and Studio. Without it, Run still uses stdin scripting, while Check module and editor analysis apply module syntax.
Studio serializes its own saves and compares the disk revision with the
revision you opened before replacing a file. A detected external edit
refuses the save and leaves your draft available for review. This is
optimistic conflict detection: an independent writer can still race the
filesystem replacement. Avoid simultaneous writes while applying changes.
The editor also opens and saves regular UTF-8 project text files up to 512 KiB.
Run, Check and Prove apply to .vr sources; supporting text uses plain-text
editing without Verum diagnostics. Hidden paths, parent traversal, binary
content and symlinks are refused.
Inspect CBGR runtime observations
Choose Run with CBGR diagnostics in the command palette, or enable
Capture CBGR dispatch failures in Execution options. The command can have
its own binding in Keyboard shortcuts. The reviewed agent tool verum_run
accepts the same runtime_diagnostics: true option and returns the same receipt.
Use a Verum executable that supports --runtime-report.
The operation retains a bounded report of CBGR errors returned by that interpreter's table dispatcher. Inspect the failure kind, register or opaque address, generation or epoch values when available, function and bytecode location. Counters remain decimal strings so JSON readers do not round them. The report states whether CBGR checks were enabled when capture started. At most 256 dispatch observations are retained; a full capture reports dropped observations explicitly. One failure can appear at several call boundaries.
The report must match both the operation ID and submitted source hash. Missing, malformed or mismatched reports remain unavailable. They cannot turn into an empty successful capture. These are diagnostic records from a trusted local process, not tamper-resistant certificates for hostile programs.
Reveal source line is available only when an exact source-map entry refers to the compiler's captured entry source and the editor still has that revision. The CLI's synthetic script header is accounted for. Dependencies, missing maps and cached bytecode without entry-source identity remain bytecode observations; Studio does not guess a source location.
This capture does not trace allocation lifetimes, successful reference checks, other interpreter instances, or native/AOT execution. An empty capture means no covered CBGR error was observed; it is not a proof of memory safety.
Inspect proof evidence
Open the identity example. In Execution options, select Logical theorem
under Proof scope, select identity under Proof declaration, and choose
Check a declaration:
theorem identity(A: Type, x: A): A proof = x;
The source worker checks this declaration using the explicit
verum-source-pi-id/1 logical profile.
The declaration selector comes from the current compiler analysis. It offers
logical theorems, lemmas and corollaries for the logical scope, and functions
with postconditions for the finite scope. Axioms and ambiguous duplicate names
are not offered. Discovery does not imply that a declaration is supported or
proved; the selected verifier checks it independently.
Studio remembers the proof scope and selection separately for each document within the connected session. A single unambiguous target is selected on first use. Editing invalidates proof actions until fresh analysis arrives. Removing or renaming a selected declaration requires choosing a current target; Studio does not substitute another declaration. Locking the session clears selections.
Changing the proof term from x to A produces a rejection. This is a
logical proof judgment; it does not establish runtime implementation
correspondence or empirical usefulness.
To check an ordinary function body and its contracts, select Finite function contract and select the function. The finite source profile checks Boolean and fieldless-variant functions, including guarded calls to contracted helpers. A successful result lists the checked function contracts and call obligations with their owners and callees. Expand Full checker report to inspect the exact source ranges and proof bundle.
Use Reveal proof location beside a declaration, obligation or located diagnostic to select its exact source. Call obligations reveal the call site; function contracts reveal their declaration. Navigation checks the source and range hashes and preserves Unicode character boundaries. Changing the editor revision disables old locations; an edit made while navigation is resolving also prevents the old range from selecting new text.
Each result records its selected profile, declaration and source revision.
Editing the buffer marks an older result as belonging to a different revision.
Studio validates the worker response against that request, the current source
elaborator and native checker identities, and complete, consistent native
evidence. Declaration and dependency ranges must hash to the captured source;
call ranges must lie inside their captured owning declaration and refer to a
captured callee. A zero exit code or a verified status field alone is insufficient.
A retained success that lacks this binding, including evidence from another
checker version, becomes inconclusive when restored. The configured worker and
local evidence storage remain trusted; these consistency checks are not digital
signatures or an independent proof of the worker's implementation.
Unsupported source constructs remain distinct from rejected contracts. A worker crash, mismatched or missing report is inconclusive; exhausting a resource limit is not a rejected theorem. Proof artifacts have the source worker's output budget, separate from ordinary process text, so complete checked bundles are not truncated to the console stream limit.
Work with an agent
Studio connects to a local Codex CLI through its app-server protocol. Choose Connect, then sign in with ChatGPT when requested. No API key is required. Use a current Codex installation that supports app-server v2 and dynamic tools. Account access and subscription usage limits still apply.
Studio owns a separate provider profile in the operating system's local
application-data directory under VerumStudio/codex. It does not copy
another application's credentials or store them inside your project.
Authentication remains in Codex's supported login flow.
Choose a role before sending the first message. An Author receives the selected editor buffer, including unsaved edits, and its saved revision. It can propose a source replacement or request a Verum run, check or proof. Review the exact proposal before accepting it. A replacement requires the expected disk revision. The proof tool uses the same declaration, profile and request checks as the Studio proof panel.
Use Reviewer for a fresh assessment. Give it the question, expected behavior and any run IDs it should inspect. Studio sends the selected path and saved revision with the task. The reviewer can inspect the saved code, Git changes, compiler diagnostics, definitions and retained operation receipts. The host restricts this role to reviewed reads throughout the conversation. To run an independent review while the author works, choose New conversation, select Reviewer, and send the review question. Use the Conversation selector or the Switch conversation keyboard command to move between them. Each conversation keeps its own draft, model, transcript and event history. A background review request appears in the collaborator panel. Switch to its conversation to inspect and approve it. Stop interrupts the selected turn. These conversations belong to the current browser tab and provider session.
From the architecture view, choose Inspect document evidence or the evidence button beside a declaration. The packet shows the exact source revision, compiler analysis scope, document diagnostic count and the selected declaration's contracts or fields. Expand Machine-readable evidence to inspect the full packet, or use Copy packet to hand it to a reviewer.
The reviewed verum_evidence tool accepts a workspace path and
expected_source_hash. Use the declaration ID and project revision from
verum_analyze to pin the same selection. An optional operation_id attaches
a retained operation to its exact input document. To attach it to a particular
declaration, the checker report must also identify that declaration by name,
UTF-8 byte range and digest. A run's project revision is currently unrecorded.
The packet reports the compiler's project revision separately. Use
Inspect operation evidence in Results when the editor matches the
operation's input.
For example, ask the reviewer to inspect a run with verum_receipt. Supply
the exact run ID and, when evaluating a specific source, its
expected_source_hash. A mismatched hash is refused. A successful script
execution establishes an observed result for that invocation. For a theorem,
inspect the declaration, proof profile and checker result. For a claim about
native execution, inspect the additional evidence linking the model to that
implementation.
The integration uses the Codex app-server authentication and tool protocol. Claude subscription integration is not provided: the Claude Agent SDK documentation requires Anthropic approval for third-party products offering Claude subscription login. Studio does not substitute an API-key flow for that requirement.
Keep an experiment inspectable
Studio retains each submitted source and execution receipt under
.verum-studio/runs/ in the workspace. A receipt records the operation,
source hash, executable path, time budget, output, exit information, and
proof report when available. Recent results are restored after a restart;
a run interrupted by shutdown is inconclusive.
This binds the result to the entry source, not to a frozen copy of all project dependencies, the compiler binary, or the operating system. Imported files can change independently. Preserve those artifacts separately when a reproducible whole-project claim requires them.
At most two operations run concurrently. Each output stream is bounded; the outer wall-time limit is configurable up to five minutes. Cancellation terminates the child process; on Unix it also terminates its process group. The proof worker additionally enforces its own admission and process limits. These bounds do not prove that every internal arithmetic operation is interruptible or charged to a semantic work budget.
Inspect language analysis and project structure
Studio runs the same LSP service used by verum lsp on a dedicated analysis
worker. Diagnostics refer to the current buffer, including unsaved edits.
Select the analysis indicator in the editor status bar to open Diagnostics.
Select a diagnostic to navigate to its source range. When a write would
invalidate a dependent witness, the main diagnostic selects the write target or the mutating method name. Its
related location selects the earlier field projection that established the
witness's type. Both ranges track edits to the current buffer.
Completion and hover use the language server, and F12 navigates to a definition. Navigation to another file preserves the existing review flow for unsaved changes.
Structure projects declarations, context requirements, preconditions and postconditions from the language server's parsed AST. Select a declaration or clause to return to its exact source range. Theorem, lemma and corollary cards provide a logical proof action; functions with postconditions provide a finite contract action. These actions use the same current declaration model as the proof selector. The project inspector combines the workspace file inventory with analyzed document snapshots. Each snapshot carries its document version, source hash and project generation hash. Closed dependencies can be marked as Indexed source: their declarations are available for imports, while their bodies have not received the open-buffer check. Other files are marked as not analyzed. Invalid or pending source revisions do not display an older structure as current.
The shared service resolves module-path imports against captured project sources and local path dependencies, using the compiler's module registry and declaration preparation. Structure displays resolved import bindings and inferred declaration types; imported definitions navigate to their declaring source, including through aliases and re-exports. Dependency edits invalidate unchanged consumers as well. Use the project refresh control after external changes; returning focus also refreshes the current source analysis.
A project manifest selects the project layout: src/ is the source root when
that directory exists. Without a manifest, the workspace directory is the
source root; a nested src/ remains an ordinary module namespace and does not
hide scripts beside it.
verum studio uses the release compiler's embedded standard-library metadata.
The standalone server accepts --stdlib-metadata /path/to/runtime.core_metadata
from the matching release. The editor, Structure view and reviewed agent tools
share the same metadata identity and type analysis. Exported declaration types
retain their declaring module through renamed imports, including nested references
and generic arguments. A library’s private import spelling does not create a new
public type. Public re-exports preserve the source declaration's owner rather
than the archive module that contains a copied descriptor; unrelated declarations
with the same name do not establish an identity. Library symbols without source
text display their types and declaring
module without a navigation target.
In Diagnostics, the analysis scope identifies the source files and library information used for the current revision. When Studio used release metadata, expand the scope to see its schema version and SHA-256 digest. Editing the document clears the previous scope until analysis finishes.
Installed binary cogs and source-only blanket protocol seeding remain outside this editor path. Whole-project build and proof acceptance still requires the corresponding CLI operation. Analysis requests have a shared 30-second budget, including queue time. Expired or abandoned requests signal cooperative cancellation to compiler analysis; queued expired requests are skipped. Compiler checkpoints stop interrupted work without publishing a successful verdict or retaining partial type information. This is cooperative cancellation, not a real-time execution guarantee. Opening another unchanged saved source reuses valid analysis for documents already open. Unrelated edits also reuse completed checks when their observed module inputs still match; dependency changes trigger new checks. A timed-out analysis is not a successful check. The declaration/context view is a source projection for exploring Architecture as Type; it is not evidence of runtime implementation correspondence. See LSP analysis scope for source-capture limits and dependency coverage. The live analysis uses module syntax. Run top-level scripts through Run; module-analysis errors alone do not establish that a script is invalid.
The reviewed agent tools verum_analyze and verum_project use this same
service and snapshot format. Analysis can inspect submitted source without
writing it to disk; omitting source analyzes the saved file. Language inspection
cannot execute arbitrary LSP commands or bypass workspace path restrictions.
The reviewed verum_format tool returns revision-bound edits through the same
formatter without writing files; applying a proposal remains a separate review.
MCP transport, a complete cross-module architecture graph, native-case artifact import, interactive debugger stepping, and durable conversation resumption are not integrated into Studio. Existing terminal tools remain separate capabilities.