Web Master User Guide¶
This document provides the complete operational workflow for UCAgent Web Master:
- Access the Master dashboard to view Agent status
- Create and compile tasks on the Launch page
- Manage task lifecycle on the Task page
- Perform batch stage operations and review results on the Agent page
1. Feature Overview¶
Web Master is not just a status display; it is a complete task management entry point. Core capabilities include:
- Dashboard: Agent list, filtering, sorting, pagination, and offline policies
- Launch: Workspace creation, file import/upload, module parsing, compilation, and launch parameter preview
- Task: Hosted task list, status filtering, log viewing, stop/delete
- Agent: Stage quick actions (HM/Skip/LFail/LPass), stage file viewing, and Diff comparison
- Web Terminal: Online terminal access (can run in parallel with local terminals)
2. Quick Start¶
2.1 Starting Master¶
Master retains a local Console for executing Master API, task, terminal, status, and file management commands, but it does not initialize, probe, or invoke API/command-line model backends. When executing model work commands such as loop, chat, or next_round, BlankBackend directly returns "not supported" and does not invoke the model.
Default access address:
If password protection is required:
This password protects HTTP pages and all four task/agent terminal and Web Console WebSocket proxies. The proxy authenticates Master credentials before connecting upstream with child credentials. An unset password still means unauthenticated access; do not expose a passwordless Master to untrusted networks.
Starting Master itself does not require a model address, API Key, or model name. If you need to launch child Agents from the Launch page, you can configure model variables in the Master process environment; these are only used to construct the launch environment for child Agents.
The --backend flag in Master mode is used to set the default backend when launching child Agents from the Launch page; the current Master process always uses a model-less backend.
When Master and child Agents should run in Docker Swarm, follow the Docker Swarm deployment guide to prepare a 2- or 3-node cluster, then run make swarm_master on a manager. The target starts Master Web and sets docker_swarm as the Launch page's default mode.
Sharing Management with Multi¶
One Master writes each management root. Multi connects to it and reuses /api/tasks, /api/relaunch, stop, CMD control and events; Web displays the same tasks. New tasks receive persistent sequential IDs such as task-000001, and completed records remain available. In-place relaunch retains task_id/workspace_id, uses a new client_id, and preserves logs and accepted artifacts under .ucagent/master_db/task_history/.
The shared queue still enforces the physical master_api.max_task_count limit. Multi additionally declares session execution capacity and named resources; paused work releases execution capacity only after its writers drain. See Global Agent for default sessions, reuse decisions and capability differences.
2.2 Connecting Agent to Master¶
Prepare a ToffeeUT workspace as shown in Normal Mode. When Master requires a registration key:
When no registration key is configured:
3. Dashboard (Overview Page)¶
3.1 Common Operations¶
- Search Agents (ID/Host/Mission)
- Filter by status (online/offline)
- Sort by fields (last_seen/stage position, etc.)
- Paginate through large-scale Agent lists
- Batch delete offline Agents
The list and Detail progress bars count completed and skipped stages, with separate completed and skipped totals. Starting the last stage does not fill the bar. Legacy records without stage state show completion as unavailable rather than inferring completion from the current stage index.
3.2 Offline Cleanup Policy¶
You can enable Auto-delete offline and set the check interval and threshold time to reduce interference from zombie instances on the panel.
Recommendations:
- Development environment: Shorter threshold (e.g., 5-10 minutes)
- Shared environment: Longer threshold (e.g., 30-60 minutes)
4. Launch (Task Creation Page)¶
4.1 Standard Workflow¶
- Create a Launch Workspace
- Upload or import RTL/Spec/Requirement/Config files
- Mark the main RTL and parse modules
- Select the DUT name, module, and Picker simulator, then execute compilation
- Check the command preview and launch the hosted task
Built-in presets use plugin / workflow: UT selects toffee-ut:ut, Formal selects formal:formal, Vibe selects unittest:vibe, and Increment selects unittest:incremental. They select independent baselines through --plugin and --workflow, not workflow identifiers passed as --config files. Separately selected YAML remains a user configuration override. Leave output blank to use the workflow default. Formal requires its plugin; Vibe/Increment require the legacy UnitTest environment. Preset selection does not install or mix these dependencies.
The compilation form's Picker Simulator displays inline radio choices in the order of the launch.default_args.simulator list and selects the first available simulator. The default priority is [verilator, vcs, gsim, uvs]. To prefer VCS, for example, configure:
The list must be nonempty and contain unique names. Only configured simulators are displayed and considered for automatic selection. The page checks the Master process's PATH for picker and each simulator executable. Unavailable choices are gray and disabled; hover to see the reason, or click Refresh to detect again. Refresh preserves a manual selection while it remains available; otherwise, it selects the first available candidate by priority. When none are available, nothing is selected and compilation is disabled. Compilation runs in the Master environment; compile logs determine license and toolchain readiness.
| Simulator | Automatic waveform suffix | Access mode |
|---|---|---|
| Verilator | .fst | MEM_DIRECT (--rw 1) |
| GSim | .fst | DPI (--rw 0) |
| VCS | .fsdb | DPI (--rw 0) |
| UVS | .usdb | DPI (--rw 0) |
The selection applies to single and batch compilation. A running batch keeps its selected simulator for every compile and launch request. Changing the simulator requires recompilation before launch. Launch and Relaunch reuse an existing compiled package's recorded simulator without repeating compiler availability detection. Single-task YAML imports use a top-level simulator: vcs, and compile API requests use a string simulator field. Omitting it selects the first available candidate by configured priority. Batch tasks use the shared form selection. Extra picker_args may specify other options, but cannot override --sim, --rw / --access-mode, or -w / --wave_file_name.
Launch defaults to mcp_server: true and mcp_server_no_file_tools: false, starting MCP with file tools for new tasks. The actual tools remain subject to workflow registration, tools.ignore_tools / tools.selected_tools, and file permissions. Switching backends, generating command previews, and submitting single or batch tasks preserve the current file-tool setting.
Task workflows can declare required MCP tool names in runtime_options.required_mcp_tools; the default empty list adds no requirements. Before MCP starts, the final tool set is checked, and missing tools produce a diagnostic with recovery instructions. UnitTest's unittest, incremental, and vibe workflows require ReadTextFile, EditTextFile, ReplaceStringInFile, and DeleteTextLines, so they cannot use MCP with file tools disabled. Multi-agent supervisor MCP endpoints expose tools according to delegation permissions and do not apply this task-workflow list.
These defaults affect newly launched tasks only. For an existing task, pause execution, stop MCP in that task's own Console, and restart it with start_mcp_server on the original host/port without --no-file-ops. Confirm that mcp_server_status reports no_file_ops as false, then reconnect the client and rediscover tools before continuing. Refreshing the Launch page alone does not update a running task's tool list.
4.2 Best Practices¶
- Recompile after every adjustment to the main module
- Retain version tags for Requirement and Config to facilitate traceability
- Review the Command Preview before launching to confirm backend/master/export-cmd-api parameters
4.3 Parallel Task Limit and Waiting Queue¶
master_api.max_task_count controls the maximum number of tasks Master can execute simultaneously, defaulting to 100:
- Tasks launched after reaching the limit enter the waiting state and do not occupy execution quota
- Once a task finishes and releases quota, waiting tasks are automatically launched in launch order
- Waiting tasks are only listed in the Launch Queue panel on the Task page (including task ID, DUT, creation and enqueue time, etc.); the main task list does not display waiting tasks
- The Launch Queue panel supports drag-and-drop or ▲▼ buttons to adjust the launch order of waiting tasks; resubmitted tasks are placed at the end of the queue
- The Waiting statistic on the Master page is displayed at the same level as TOTAL/ONLINE/OFFLINE to show the current number of waiting tasks
- The Task page summary bar persistently displays the current maximum concurrency (
master_api.max_task_count) - Waiting tasks can be cancelled in the Launch Queue panel; cancellation deletes the task record and its workspace directory
5. Task (Hosted Task Page)¶
5.1 Page Capabilities¶
- Filter by status, keyword, and DUT (waiting tasks are only displayed in the Launch Queue panel, see 4.3)
- Paginate through tasks
- View task details (command, registration status, PID)
- View stdout/stderr logs
- Stop tasks and delete records
- Adjust the launch order of waiting tasks and cancel waiting tasks in the Launch Queue panel (see 4.3)
5.2 Typical Troubleshooting Path¶
- Task stuck in starting: First check the command and environment variable expansion results
- Task failed: Prioritize checking stderr, then check workspace and DUT parameters
- Agent not registered: Check --master address, key, and network connectivity
- Task always waiting: Parallel tasks have reached the
master_api.max_task_countlimit; the queue position is visible in the details page, wait for automatic launch or cancel the task
For HTTP listeners failed to start, the error identifies the service and conflicting TCP address or Unix socket path. Automatically generated socket paths fall back to a unique name when occupied; service status and heartbeats report the actual path. An explicitly configured --sock path still fails on a conflict, and existing paths are never automatically deleted.
6. Advanced Operations on Agent Page¶
The left sidebar shows stages, tool call counts, then Agent Status. Each panel scrolls independently. Drag the horizontal separators to adjust panel heights; proportions are saved automatically and Reset UI restores the defaults. Agent Status wraps multiple fields onto each row as space allows.
6.1 Stage Quick Controls¶
The stage list and Master Detail show completed stages in green, the current stage in red, and skipped stages in yellow, with status labels, stage indices, failure counts, and elapsed time. Saved workspaces use the same presentation.
The page supports single-stage quick toggles:
- HM: Human review toggle
- Skip: Skip toggle
- LF: LLM Fail Suggestion toggle
- LP: LLM Pass Suggestion toggle
6.2 Stage Batch Controls¶
You can select multiple stages and batch set:
- HM On/Off
- Skip/Unskip
- LFail On/Off
- LPass On/Off
6.3 Stage Artifact Review¶
For stage output files, you can:
- View content
- View Diff (comparison between current result and changes)
- Quickly locate artifacts corresponding to failed stages
The file viewer defaults to approximately 92% of the viewport width and 88% of its height, with scrolling available immediately and fixed header/footer controls. Drag its edges to resize and retain the layout; Reset size in the title bar restores only the file viewer to its large centered default.
6.4 Activity and System Logs¶
The lower-right Output panel opens on Activity: model/backend messages, tool calls and results, and operation-result notices. Tool and stage logs, ordinary stdout/stderr, streamed command output, HTTP access records, and service diagnostics appear under System logs, whose tab indicates warnings and errors. Raw output retains captured process console text for troubleshooting. Long tool results and recent command results can be expanded.
Web and TUI display model messages independently; attaching or detaching TUI does not remove messages from Web. Scrolling upward pauses following; use the new-output prompt to return to the bottom. Clear affects only this browser's current view, leaving shared logs and other terminals intact. Each view has independent record and text-size limits, with explicit notices for eviction, oversized records, and process restarts.
These are model exchanges and runtime logs recorded by the framework, not the external CLI backend's complete private model context. Multi-managed executions save standard events in task history; see Global Agent for paths and retention boundaries. Standalone instances without event archival retain only the current process buffer. Historical child workspaces without a live event endpoint report activity as unavailable rather than displaying the Master's live logs. Archives are accessible through the task-history API, and managed-task process logs remain available on the Task page. Web retains Activity / System logs / Raw output; the separate HTTP tab in Multi TUI does not change Web's layout.
Restart the corresponding UCAgent process and refresh the page after upgrading. Refreshing alone cannot add the classified API to an already-running older process.
6.4 Report and Waveform Synchronization¶
When tasks use archived workspaces, master_api.sync_workspace.on_stage_complete and on_exit synchronize the workspace back to Master at stage completion and exit by default. The default filters do not exclude .vdb or .fsdb by suffix, but still exclude test data and report directories ({OUT}/tests/data/ and uc_test_report/). Files inside an excluded directory are omitted regardless of suffix. For the same-machine viewing workflow, disable archived workspaces as described in Verify with VCS and Inspect Results.
master_api.sync_workspace.ignore_patterns applies to both workspace archive downloads and sync-back uploads. A custom list replaces the entire default list. Excluding DUT databases affects coverage collection in child tasks; excluding unity_test/tests/data/ or uc_test_report/ removes reports and referenced waveforms from Master. Reload affected services/tasks after changing configuration; previously filtered files are not restored automatically. Waveform viewing metadata copied across workspace paths must also pass signature validation; do not edit signatures manually to bypass it.
7. Web Terminal and Access Modes¶
7.1 Two Common Modes¶
- web-console: Browser console mode (independent Web entry)
- web-terminal: Web terminal mode (can run in parallel with local terminals)
7.2 Multi-Session Recommendations¶
When enabling multiple terminal sessions, it is recommended to distinguish tasks via different URLs/tabs to avoid accidental operations.
The Agent page Runtime command bar keeps directories separate by page and workspace. Switching workspaces returns to the selected workspace root. Path completion follows the current session directory and preserves the command prefix, quoting paths that contain spaces.
8. Proxy and Network Notes¶
Master supports unified proxy forwarding to task/agent cmd, terminal, and web-console access paths.
When connection issues occur, troubleshoot in the following order:
- Master page visible but sub-pages fail: Check proxy paths and authentication
- Page opens but WS is unstable: Check if the reverse proxy/gateway allows websocket
- Local connects but remote does not: Check binding address (127.0.0.1 vs 0.0.0.0)
9. Security and Permission Recommendations¶
- Always enable password protection for public or shared networks
- Use gateway authentication and TLS when exposing externally
- Regularly clean up offline Agents and invalid task records
10. FAQ¶
Q1: Why does Launch compilation succeed but task launch fail?¶
Prioritize checking:
- Whether the backend is available
- Whether launch environment variables are complete
- Whether the master address and key are correct
Q2: Why does Task show running, but the Agent page cannot be opened?¶
This is usually due to registration delay or proxy chain issues; first check the registration status and logs in Task details.
Q3: When to use TUI and when to use Web?¶
- TUI: Local quick debugging, fine-grained command operations
- Web: Centralized management, multi-task operations, remote collaboration