@mediadatafusion/pi-workflow-suite 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/CONTRIBUTING.md +14 -4
- package/README.md +153 -129
- package/SECURITY.md +6 -2
- package/SUPPORT.md +3 -5
- package/VERSION +1 -1
- package/config/prompts/mission-final-validation.md +3 -2
- package/config/prompts/mission-review-prompt.md +42 -0
- package/config/prompts/validate-approved-plan.md +4 -3
- package/config/prompts/workflow-reviewer-prompt.md +44 -0
- package/extensions/subagent/index.ts +69 -3
- package/extensions/subagent/repolock-guard.ts +111 -0
- package/extensions/subagent/runner.ts +51 -3
- package/extensions/workflow-model-router.ts +28 -14
- package/extensions/workflow-modes.ts +1256 -337
- package/extensions/workflow-parsers.ts +2 -1
- package/extensions/workflow-state.ts +64 -6
- package/extensions/workflow-tool-guard.ts +172 -43
- package/extensions/workflow-validation-classifier.ts +5 -2
- package/package.json +5 -3
- package/scripts/install-to-live.sh +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
All notable public releases will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.0.11] - 2026-05-30
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `workflow_browser_check` tool — headless browser verification for validator mode with interactive actions (click, type, read, reload, screenshot, evaluate). Uses Puppeteer from the Pi runtime so validators can verify web app behavior regardless of the target project's dependencies.
|
|
10
|
+
- Token budget controls (`maxTokens`, `maxRuntimeHours`) for Plan, Mission, and Standard modes.
|
|
11
|
+
- Structured validation boolean fields (`concreteRepairableIssue`, `manualVerificationRequired`, `evidenceGap`) on workflow and mission state for infallible classification.
|
|
12
|
+
- `/plan complete` command for explicit Plan Mode completion.
|
|
13
|
+
- Mission reviewer and workflow reviewer prompt templates.
|
|
14
|
+
|
|
15
|
+
### Hardened
|
|
16
|
+
|
|
17
|
+
- **Validation pipeline**: PARTIAL PASS with no concrete code defects now completes the workflow. Classifier reordered so concrete fixes route to repair over evidence gaps. Expanded automatable-evidence-gap detection. Mission validation manual-only outcomes advance milestones; final-validation manual-only outcomes complete the mission.
|
|
18
|
+
- **Reviewer and repair**: Mission reviewer auto-repair uses centralized default-enabled configuration matching Plan Mode. Built-in mission defaults aligned (reviewer auto-repair enabled, retry mode `safe_only`, max retries 2). Consistent retry gating across both modes.
|
|
19
|
+
- **Tool guard and Repo Lock**: Safe-command recognition expanded across package managers and ecosystems (pnpm, yarn, bun, npx serve, python3, curl localhost, ps, pgrep, sleep). Shell preamble handling (`stripSafePreamble`) for `set -e` and `export` patterns. `/tmp/` and `/dev/` paths exempted from Repo Lock blocking. Reduced false-positive destructive-command blocks.
|
|
20
|
+
- **Prompts and agents**: Unified inline-diagram guidance across all prompts, agents, and skills. Web app verification procedures with structured evidence output requirements in validator prompts. Sub-agent write-ownership clarified in mission run prompt. Agent Mermaid guidance updated for raw blocks since sub-agents lack `workflow_diagram`.
|
|
21
|
+
- **Runtime accounting**: Wall-clock age uses terminal timestamp when workflow is stopped. Active-runtime tracking preserved for workflows that began before the current session.
|
|
22
|
+
- **Plan Mode progress tracking**: Plan execution step progress now reliably tracks across all steps. The `workflow_progress` tool is guaranteed on the agent's active tool surface every turn. The progress guard enforces step activation before file writes while allowing sub-agents to run freely for research and preparation. Multi-step prompt guidance with inline step status display keeps the agent aligned with the approved plan from first step through final validation.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- Plan execution sub-agents no longer deadlock against the step progress guard when forced sub-agent policies are active.
|
|
27
|
+
- Plan Mode step progress widget consistently updates across multi-step execution instead of staying stuck on step 1.
|
|
28
|
+
|
|
29
|
+
### Updated
|
|
30
|
+
|
|
31
|
+
- Validators can write temporary evidence-gathering scripts (was read-only).
|
|
32
|
+
- Mission `maxRuntimeHours` default 8→13.
|
|
33
|
+
- All 4 built-in presets updated with `planShowProgressBar`.
|
|
34
|
+
- Internal architecture documentation expanded with model routing, settings merge chain, and preset bundle architecture.
|
|
35
|
+
|
|
36
|
+
## [0.0.10] - 2026-05-25
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
- Improved workflow reliability across Standard, Plan, and Mission execution, including stronger progress tracking and validation handoff behavior.
|
|
41
|
+
- Tightened repository safety checks to keep guarded workflows scoped to the active project.
|
|
42
|
+
|
|
5
43
|
## [0.0.9] - 2026-05-23
|
|
6
44
|
|
|
7
45
|
### Changed
|
package/CONTRIBUTING.md
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
# Contributing
|
|
2
2
|
|
|
3
|
-
Pi Workflow Suite is a maintainer-led project.
|
|
3
|
+
Pi Workflow Suite is a maintainer-led project. Contributions are welcome only at maintainer discretion, and unsolicited pull requests may be closed without review.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Before opening a pull request, discuss changes that affect workflow behavior, release safety, or maintenance burden.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Pull requests require explicit maintainer approval before changing:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- workflow modes or mode state
|
|
10
|
+
- Mission Mode behavior, milestones, validation, repair, or reviewer logic
|
|
11
|
+
- Plan Mode approval, execution, validation, or repair flow
|
|
12
|
+
- Standard Mode task handling, clarification, or To Do behavior
|
|
13
|
+
- package publishing, GitHub Actions, or install scripts
|
|
14
|
+
- security-sensitive logic
|
|
15
|
+
- dependency behavior or dependency lists
|
|
16
|
+
|
|
17
|
+
Contributors must not introduce telemetry, postinstall scripts, credential handling, network calls, obfuscated code, or new dependencies without explicit justification and maintainer approval.
|
|
18
|
+
|
|
19
|
+
External contributions must preserve existing behavior unless a behavior change is explicitly approved. Feature requests may be declined if they increase scope, complexity, or support burden.
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](#installation) [](#quick-start) [](#core-commands) [](#settings-reference)
|
|
6
6
|
|
|
7
|
-
**Workflow Suite Version:** `v0.0.
|
|
7
|
+
**Workflow Suite Version:** `v0.0.11`
|
|
8
8
|
|
|
9
9
|
## Overview
|
|
10
10
|
|
|
@@ -55,6 +55,7 @@ See Pi Workflow Suite in action: structured workflow modes, settings, runtime st
|
|
|
55
55
|
- [Compaction Support](#compaction-support)
|
|
56
56
|
- [Diagram Support](#diagram-support)
|
|
57
57
|
- [Web Access](#web-access)
|
|
58
|
+
- [Browser Verification](#browser-verification)
|
|
58
59
|
- [Repository Lock](#repository-lock)
|
|
59
60
|
- [Plan History](#plan-history)
|
|
60
61
|
- [Mission Progress, Checkpoints, And Runtime Tracking](#mission-progress-checkpoints-and-runtime-tracking)
|
|
@@ -115,9 +116,10 @@ Pi Workflow Suite turns Pi into a guided workflow environment:
|
|
|
115
116
|
| Mission Mode | Long-running milestone workflows with approval, checkpoints, Mission-specific model overrides, validation gates, repair/retry, pause/resume, final-validation controls, and continuity tracking. |
|
|
116
117
|
| Themes And Startup UI | Workflow Suite themes, startup visual cards, startup logo modes, custom terminal logo text, custom brand cards, footer/status styling, widgets, and optional input border styling. |
|
|
117
118
|
| Interactive Diagrams | `workflow_diagram` Mermaid support with terminal preview, SVG-first clickable artifacts, PNG/runtime rendering support, dark-mode-friendly styling, and runtime artifact storage. |
|
|
118
|
-
| Web Research | First-party `workflow_web_search` and `
|
|
119
|
-
| Repo Lock | Project-scoped Global Safety control that constrains
|
|
119
|
+
| Web Research & Browser Verification | First-party `workflow_web_search`, `workflow_web_fetch`, and `workflow_browser_check` tools. Search and fetch for public web evidence with source URLs, blocked local/private/internal hosts, and time/size limits. Headless browser verification for runtime web app validation with interactive UI actions (click, type, read, screenshot, evaluate). |
|
|
120
|
+
| Repo Lock | Project-scoped Global Safety control that constrains normal file tools, bash path checks, and sub-agents to the active repository, with protected configuration paths and clear non-sandbox caveats. |
|
|
120
121
|
| Compaction | Pi default, custom model, or disabled Workflow Suite compaction so context summarization can use its own provider/model, proactive threshold checks, idle-boundary execution, custom token tuning, adaptive fitting, status reporting, and safe fallback. |
|
|
122
|
+
| Token Budgets | Optional per-mode token and runtime caps (`maxTokens`, `maxRuntimeHours`) for Plan, Mission, and Standard Mode. Off by default (unlimited). When enabled, Workflow Suite tracks cumulative usage and blocks further agent turns when the budget is exceeded. |
|
|
121
123
|
| Workflow Roles | Planner, Executor, Reviewer, Validator, Mission, and compaction responsibilities are separated by phase so each job has clear boundaries and can be matched to the right model. |
|
|
122
124
|
| Model Selection | Configure which provider/model and thinking level powers each workflow role, with shared defaults plus Standard-specific and Mission-specific overrides for simpler or higher-rigor setups. |
|
|
123
125
|
| Presets | Built-in and custom workflow profiles with selector commands and Ctrl+Shift+U cycling while active modes are running. |
|
|
@@ -134,13 +136,15 @@ Pi Workflow Suite turns Pi into a guided workflow environment:
|
|
|
134
136
|
- Mission Mode through `/mission`, `/m`, and `Ctrl+Shift+M` for durable milestone workflows.
|
|
135
137
|
- Configurable clarification in Standard Mode, plus dynamic clarification in Plan Mode and Mission Mode.
|
|
136
138
|
- Review, execution, validation, repair, retry, checkpoint, and final-validation controls where the selected mode supports them.
|
|
137
|
-
- Plan history, mission checkpoint history, Standard runtime tracking, Mission runtime tracking
|
|
139
|
+
- Plan history, mission checkpoint history, Standard runtime tracking, and Mission runtime tracking.
|
|
140
|
+
- Mode-aware progress widgets: Plan step tracking with step-by-step progress and validation gates, Mission milestone tracking with checkpoint history, and Standard Mode dynamic To Do progress.
|
|
138
141
|
- Workflow settings UI for Standard Mode, Plan Mode, Mission Mode, model selection, sub-agents, compaction, widgets, themes, startup visuals, and safety.
|
|
139
142
|
- Workflow themes with a `none` option, startup visual cards, startup logo modes, custom terminal logo text, custom brand cards, and optional themed input borders.
|
|
140
|
-
- Integrated `workflow_web_search` and `
|
|
143
|
+
- Integrated `workflow_web_search`, `workflow_web_fetch`, and `workflow_browser_check` tools for current public evidence, source-backed URL reading, and headless browser verification of web app runtime behavior.
|
|
141
144
|
- Interactive `workflow_diagram` Mermaid rendering with terminal preview, clickable SVG artifacts, and PNG/runtime rendering support.
|
|
142
|
-
- Repo Lock for project-scoped path safety around repository and
|
|
145
|
+
- Repo Lock for project-scoped path safety around repository work, protected project configuration, and sub-agent inheritance.
|
|
143
146
|
- Role-aware model selection so planning, execution, review, validation, Mission work, and compaction can each use the provider/model and thinking level that fits the job.
|
|
147
|
+
- Optional per-mode token and runtime budgets (`maxTokens`, `maxRuntimeHours`) to cap usage in Plan, Mission, and Standard Mode. Off by default; enable when you need predictable cost or time limits.
|
|
144
148
|
- Sub-agent usage policies for planning, execution, repair, review, and validation, with explicit documentation that these are orchestration settings, not a universal permission manager.
|
|
145
149
|
- Safe install, backup, audit, quarantine, verification, and package validation scripts.
|
|
146
150
|
|
|
@@ -215,7 +219,7 @@ Core behavior:
|
|
|
215
219
|
- `/standard todo clear` clears the Standard To Do list.
|
|
216
220
|
- `/standard exit` returns to idle.
|
|
217
221
|
|
|
218
|
-
Standard Mode settings live under `standard.*`, including `autoTodoEnabled`, `todoTriggerMode`, `todoProgressVisible`, `clarificationEnabled`, `clarificationMode`, `maxClarificationQuestions`, `interactiveClarificationEnabled`, `clarificationTiming`, `clarificationQualityGate`, `allowClarificationWithoutAnalysis`, `useSubagentsBeforeClarification`, `allowSubagents`, `subagentScope`, Standard-specific sub-agent phase overrides, `statusWidgetVisible`, `modelRole`, and `useSharedExecutorModel`. These controls are user-configurable through `/workflow settings Standard Mode
|
|
222
|
+
Standard Mode settings live under `standard.*`, including `autoTodoEnabled`, `todoTriggerMode`, `todoProgressVisible`, `clarificationEnabled`, `clarificationMode`, `maxClarificationQuestions`, `interactiveClarificationEnabled`, `clarificationTiming`, `clarificationQualityGate`, `allowClarificationWithoutAnalysis`, `useSubagentsBeforeClarification`, `allowSubagents`, `subagentScope`, Standard-specific sub-agent phase overrides, `statusWidgetVisible`, `modelRole`, and `useSharedExecutorModel`. These controls are user-configurable through `/workflow settings Standard Mode`, and custom workflow presets can save/apply Standard Mode settings.
|
|
219
223
|
|
|
220
224
|
## Plan Mode
|
|
221
225
|
|
|
@@ -402,7 +406,7 @@ Standard Mode, Plan Mode, and Mission Mode use model settings differently:
|
|
|
402
406
|
- **Plan Mode** supports formal planned execution: plan, approve, optionally review with a second model, execute with the selected executor model, optionally validate with an independent validator model, and optionally repair/retry failed validation.
|
|
403
407
|
- **Mission Mode** supports persistent milestone work: plan mission milestones, approve the mission, execute the current milestone, validate that milestone, checkpoint, repair/retry if needed, optionally run final whole-mission validation, then continue or complete according to autonomy settings. Mission-specific role overrides let long-running work use different planner/executor/reviewer/validator choices from normal Plan Mode.
|
|
404
408
|
|
|
405
|
-
The included example settings provide defaults, but users can change provider/model, thinking level, role enablement, reviewer/validator behavior, Mission Mode autonomy, and mission-specific model selection through `/workflow
|
|
409
|
+
The included example settings provide defaults, but users can change provider/model, thinking level, role enablement, reviewer/validator behavior, Mission Mode autonomy, and mission-specific model selection through `/workflow settings`. Do not treat the shipped defaults as the only supported setup. Provider names must match the user's configured Pi/Factory model route and API compatibility; official providers and proxy/generic providers may require different provider values even when the display model name looks similar.
|
|
406
410
|
|
|
407
411
|
Thinking levels:
|
|
408
412
|
|
|
@@ -427,30 +431,85 @@ Configuration examples:
|
|
|
427
431
|
/workflow settings Standard Mode
|
|
428
432
|
/workflow settings Mission Mode
|
|
429
433
|
/workflow settings Shared Compaction
|
|
430
|
-
/workflow-settings configure models
|
|
431
|
-
/workflow-settings configure standard-mode
|
|
432
|
-
/workflow-settings configure mission-mode
|
|
433
|
-
/workflow-settings configure compaction
|
|
434
|
-
|
|
435
|
-
# Standard-specific model overrides
|
|
436
|
-
/workflow-settings set standard useStandardSpecificModels true|false
|
|
437
|
-
/workflow-settings set standard-models executor <provider> <model>
|
|
438
|
-
/workflow-settings set standard-models validator <provider> <model>
|
|
439
|
-
|
|
440
|
-
# Mission-specific model overrides
|
|
441
|
-
/workflow-settings set missions useMissionSpecificModels true|false
|
|
442
|
-
# Then use /workflow-settings configure mission-mode to select Mission Planner, Executor, Reviewer, and Validator models.
|
|
443
|
-
|
|
444
|
-
# Compaction model selection and token budget
|
|
445
|
-
/workflow-settings set context compactionMode custom_model
|
|
446
|
-
/workflow-settings set context compactionModelProvider <provider>
|
|
447
|
-
/workflow-settings set context compactionModel <model>
|
|
448
|
-
/workflow-settings set context customCompactionEnabled true
|
|
449
|
-
/workflow-settings set context customCompactionReserveTokens 4096-65536|default|reset
|
|
450
|
-
/workflow-settings set context customCompactionKeepRecentTokens 1000-200000|default|reset
|
|
451
434
|
```
|
|
452
435
|
|
|
453
|
-
|
|
436
|
+
The grouped settings menus expose shared role selection, Standard-specific model behavior, Mission-specific model behavior, and compaction model/token-budget controls without relying on legacy dashed command entry points.
|
|
437
|
+
|
|
438
|
+
Shared model selection is available through `/workflow settings Shared Models`. Standard-specific and mission-specific model selection is available through their mode settings menus.
|
|
439
|
+
|
|
440
|
+
## Efficiency Guidance
|
|
441
|
+
|
|
442
|
+
Workflow Suite gives you independent control over workflow rigor and model cost. This section explains which settings affect token usage and how to tune them.
|
|
443
|
+
|
|
444
|
+
### Thinking Levels
|
|
445
|
+
|
|
446
|
+
Six thinking levels control how much reasoning the model applies per inference:
|
|
447
|
+
|
|
448
|
+
```text
|
|
449
|
+
off < minimal < low < medium < high < xhigh
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
Higher levels use more tokens. Recommendations by role:
|
|
453
|
+
|
|
454
|
+
| Role | Guidance |
|
|
455
|
+
|------|----------|
|
|
456
|
+
| Planner | Higher thinking is often worth the cost — the plan defines scope, assumptions, risk, and validation strategy. |
|
|
457
|
+
| Reviewer | Higher thinking helps catch missing requirements, unsafe steps, or weak plans before execution begins. |
|
|
458
|
+
| Validator | Higher thinking reduces shared blind spots with the executor. An independent validator with a different model is more valuable than maxing thinking on the same model. |
|
|
459
|
+
| Executor | Medium-high is usually sufficient. Execution is about precise tool use and instruction following, not open-ended analysis. |
|
|
460
|
+
| Compaction | Summarization is mechanical. If using a custom compaction model, a lower thinking level or a cheaper model is often appropriate. |
|
|
461
|
+
|
|
462
|
+
Note: Pi may clamp thinking levels for model/provider combinations that do not support the requested level. This is Pi runtime behavior, not a Workflow Suite setting.
|
|
463
|
+
|
|
464
|
+
### Token Budgets
|
|
465
|
+
|
|
466
|
+
Each mode supports an optional configurable token budget:
|
|
467
|
+
|
|
468
|
+
- `planning.maxTokens` — caps estimated token usage for a Plan Mode workflow.
|
|
469
|
+
- `missions.maxTokens` — caps estimated token usage for a Mission Mode workflow.
|
|
470
|
+
- `standard.maxTokens` — caps estimated token usage for a Standard Mode session.
|
|
471
|
+
|
|
472
|
+
Default is `0` (unlimited). When set to a positive value, Workflow Suite tracks cumulative usage and blocks further agent turns when the budget is exceeded. Set budgets with headroom — the tracker uses context window size as a proxy since Pi does not expose cumulative token counts.
|
|
473
|
+
|
|
474
|
+
Configure through `/workflow settings Plan Mode`, `/workflow settings Mission Mode`, or `/workflow settings Standard Mode`.
|
|
475
|
+
|
|
476
|
+
### Sub-Agent Policy And Token Cost
|
|
477
|
+
|
|
478
|
+
Sub-agent policies control how many parallel workers are requested per phase:
|
|
479
|
+
|
|
480
|
+
```text
|
|
481
|
+
off < auto < deep < maximum < forced
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
Each worker has its own context window, so more workers multiply token spend. The built-in presets scale worker counts from 1 (simple) to 4 (maximum). For cost-sensitive work:
|
|
485
|
+
|
|
486
|
+
- Use `auto` to let the model decide when workers are worth the cost.
|
|
487
|
+
- Lower worker counts in `deep`/`maximum`/`forced` policies.
|
|
488
|
+
- Disable phases that are not needed for the current task.
|
|
489
|
+
|
|
490
|
+
Sub-agent settings are configured through `/workflow settings Shared Sub-agents`, with per-mode overrides in Standard Mode and Mission Mode settings.
|
|
491
|
+
|
|
492
|
+
### Settings That Affect Token Usage
|
|
493
|
+
|
|
494
|
+
| Setting | Impact |
|
|
495
|
+
|---------|--------|
|
|
496
|
+
| Thinking levels (per role) | Directly controls tokens per inference for each workflow phase. |
|
|
497
|
+
| Sub-agent policies and worker counts | More workers = more parallel context windows = higher total spend. |
|
|
498
|
+
| `maxClarificationQuestions` | Higher counts mean more clarification turns before work begins. |
|
|
499
|
+
| `planning.depth` | `deep`/`maximum` prompt for more sub-agent research before planning. |
|
|
500
|
+
| `validationRetryMode` | `aggressive_within_scope` can trigger more repair cycles. |
|
|
501
|
+
| `finalValidationEnabled` | Adds a whole-mission validation pass after all milestones complete. |
|
|
502
|
+
| `maxTokens` (per mode) | Optional budget cap; blocks further turns when exceeded. |
|
|
503
|
+
|
|
504
|
+
### Presets And Models Are Independent
|
|
505
|
+
|
|
506
|
+
Presets control workflow behavior (approval gates, review/validation automation, sub-agent policy, repair retries). Models control which provider/model powers each role. They are intentionally separate:
|
|
507
|
+
|
|
508
|
+
- Cycling presets does not change model selections.
|
|
509
|
+
- Changing models does not affect preset behavior.
|
|
510
|
+
- You can run `deep` preset with small models or `simple` preset with large models.
|
|
511
|
+
|
|
512
|
+
This separation lets you tune workflow rigor and model cost independently.
|
|
454
513
|
|
|
455
514
|
## Workflow Settings UI
|
|
456
515
|
|
|
@@ -476,16 +535,7 @@ Public slash menu entries use the grouped `/workflow settings ...` surface. Use
|
|
|
476
535
|
/workflow settings Summary
|
|
477
536
|
```
|
|
478
537
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
```text
|
|
482
|
-
/workflow-settings
|
|
483
|
-
/workflow-settings list
|
|
484
|
-
/workflow-settings help
|
|
485
|
-
/workflow-settings scope
|
|
486
|
-
/workflow-settings write-target
|
|
487
|
-
/workflow-settings create-project-override
|
|
488
|
-
```
|
|
538
|
+
Public command discovery is through `/workflow help` and the grouped `/workflow settings ...` entries above. Legacy dashed compatibility routes may exist for older scripts, but they are not public slash-menu commands and are not the recommended README surface.
|
|
489
539
|
|
|
490
540
|
Settings menus:
|
|
491
541
|
|
|
@@ -538,7 +588,7 @@ Sub-agents: forced maximum teams across planning/execution/repair/review/validat
|
|
|
538
588
|
Mission: supervised auto, final validation, higher retry budget
|
|
539
589
|
```
|
|
540
590
|
|
|
541
|
-
`/workflow settings Show Current Settings`
|
|
591
|
+
`/workflow settings Show Current Settings` prints an Active Profile section near the top so the active preset is explained before the detailed settings.
|
|
542
592
|
|
|
543
593
|
Quick access:
|
|
544
594
|
|
|
@@ -588,24 +638,6 @@ Open the interactive theme menu from the public settings surface:
|
|
|
588
638
|
/workflow settings Theme
|
|
589
639
|
```
|
|
590
640
|
|
|
591
|
-
Direct theme commands are also available:
|
|
592
|
-
|
|
593
|
-
```text
|
|
594
|
-
/workflow-settings theme list
|
|
595
|
-
/workflow-settings theme use aurora|synthwave|matrix|nebula|ember|arctic|oceanic|royal|solar|graphite|access|diagnostic|classic|MediaDataFusion|none
|
|
596
|
-
/workflow-settings theme startup mission_control|diagnostic_center|workflow_duo|data_stream|neural_grid|minimal|custom_brand|none
|
|
597
|
-
/workflow-settings theme startup-logo none|pi|custom
|
|
598
|
-
/workflow-settings theme logo-text <letters>
|
|
599
|
-
/workflow-settings theme logo-font block|shadow|outline|wide|double|three_d
|
|
600
|
-
/workflow-settings theme logo-shadow down_right|down|up|left|right
|
|
601
|
-
/workflow-settings theme logo-color theme|primary|split
|
|
602
|
-
/workflow-settings theme startup-on-open enable|disable
|
|
603
|
-
/workflow-settings theme preview
|
|
604
|
-
/workflow-settings theme brand enable|disable
|
|
605
|
-
/workflow-settings theme brand text <custom text>
|
|
606
|
-
/workflow-settings theme brand base minimal|workflow_duo|mission_control|diagnostic_center|data_stream|neural_grid
|
|
607
|
-
```
|
|
608
|
-
|
|
609
641
|
The interactive menu is the easiest way to configure appearance:
|
|
610
642
|
|
|
611
643
|
```text
|
|
@@ -632,38 +664,14 @@ How the pieces fit together:
|
|
|
632
664
|
|
|
633
665
|
`startupVisual: none` is separate. It disables only the startup visual card. It does not disable the selected Workflow Suite theme, Standard Mode, Plan Mode, Mission Mode, widgets, presets, or commands.
|
|
634
666
|
|
|
635
|
-
Practical recipes:
|
|
667
|
+
Practical recipes use the guided appearance menu:
|
|
636
668
|
|
|
637
669
|
```text
|
|
638
|
-
# Open the guided appearance menu
|
|
639
670
|
/workflow settings Theme
|
|
640
|
-
|
|
641
|
-
# Preview the current startup card and logo
|
|
642
|
-
/workflow-settings theme preview
|
|
643
|
-
|
|
644
|
-
# Choose a complete visual style
|
|
645
|
-
/workflow-settings theme use synthwave
|
|
646
|
-
/workflow-settings theme startup mission_control
|
|
647
|
-
/workflow-settings theme startup-logo pi
|
|
648
|
-
|
|
649
|
-
# Add your own short terminal logo above the card
|
|
650
|
-
/workflow-settings theme startup-logo custom
|
|
651
|
-
/workflow-settings theme logo-text ACME
|
|
652
|
-
/workflow-settings theme logo-font shadow
|
|
653
|
-
/workflow-settings theme logo-color primary
|
|
654
|
-
|
|
655
|
-
# Use a branded startup card without changing workflow behavior
|
|
656
|
-
/workflow-settings theme startup custom_brand
|
|
657
|
-
/workflow-settings theme brand text Acme Workflow
|
|
658
|
-
/workflow-settings theme brand base mission_control
|
|
659
|
-
|
|
660
|
-
# Turn off only the startup card
|
|
661
|
-
/workflow-settings theme startup none
|
|
662
|
-
|
|
663
|
-
# Turn off Workflow Suite visual theming while keeping features active
|
|
664
|
-
/workflow-settings theme use none
|
|
665
671
|
```
|
|
666
672
|
|
|
673
|
+
From that menu users can preview the current startup card and logo, choose a complete visual style, configure a short terminal logo, configure a branded startup card, turn off only the startup card, or opt out of Workflow Suite visual theming while keeping workflow features active.
|
|
674
|
+
|
|
667
675
|
## Sub-Agents And Parallel Work
|
|
668
676
|
|
|
669
677
|
Pi Workflow Suite includes reusable workflow agents and skills. Agents are isolated-context workers that can be invoked by the sub-agent tool or by Workflow Suite orchestration policy. Skills are bundled guidance modules for repeatable workflow practices. Runtime tools such as `workflow_web_search`, `workflow_web_fetch`, `workflow_diagram`, `workflow_progress`, and `standard_todo` are separate from both agents and skills.
|
|
@@ -696,6 +704,16 @@ They include:
|
|
|
696
704
|
- global and project agent discovery,
|
|
697
705
|
- parallelism preferences for workflow phases.
|
|
698
706
|
|
|
707
|
+
Sub-agent orchestration varies by mode and phase:
|
|
708
|
+
|
|
709
|
+
| Mode | Planning | Execution | Validation |
|
|
710
|
+
|---|---|---|---|
|
|
711
|
+
| Plan | Research, codebase inspection, risk discovery | Scoped implementation help, file inspection, patch planning | Evidence gathering, regression search |
|
|
712
|
+
| Mission | Milestone planning research, dependency analysis | Per-milestone implementation support | Per-milestone and final validation evidence |
|
|
713
|
+
| Standard | Task analysis, approach research | File inspection, implementation assistance | Quality review, regression checking |
|
|
714
|
+
|
|
715
|
+
Forced sub-agent policies (available in all three modes) require a minimum number of successful workers before the agent can proceed to file writes, ensuring independent analysis and preparation are applied before implementation.
|
|
716
|
+
|
|
699
717
|
Important limits:
|
|
700
718
|
|
|
701
719
|
- Pi Workflow Suite does **not** provide a UI for editing arbitrary sub-agent tool permissions.
|
|
@@ -716,7 +734,7 @@ Commands:
|
|
|
716
734
|
/workflow subagents status
|
|
717
735
|
/workflow subagents list
|
|
718
736
|
/workflow subagents orchestration
|
|
719
|
-
/workflow
|
|
737
|
+
/workflow settings Shared Sub-agents
|
|
720
738
|
```
|
|
721
739
|
|
|
722
740
|
## Review, Validation, Repair, And Retry
|
|
@@ -772,7 +790,6 @@ Compaction settings are available through:
|
|
|
772
790
|
|
|
773
791
|
```text
|
|
774
792
|
/workflow settings Shared Compaction
|
|
775
|
-
/workflow-settings configure compaction
|
|
776
793
|
```
|
|
777
794
|
|
|
778
795
|
Supported modes:
|
|
@@ -784,13 +801,7 @@ Supported modes:
|
|
|
784
801
|
|
|
785
802
|
Workflow Suite can request proactive compaction when context usage reaches the configured threshold. For Custom model mode, a configured compaction provider/model with custom compaction enabled arms the threshold trigger even when generic auto-trigger behavior is otherwise off. This lets compaction use a different model than planning, execution, review, or validation, which is useful when context summarization has a different cost, speed, or context-window requirement than active workflow work. Actual proactive compaction runs only at a safe after-turn idle agent boundary, so it does not interrupt arbitrary tool execution or queued workflow handoffs. Pi default auto-compaction remains available as a safety fallback near the model limit.
|
|
786
803
|
|
|
787
|
-
|
|
788
|
-
/workflow-settings set context autoCompactionEnabled true|false
|
|
789
|
-
/workflow-settings set context compactionTriggerPercent 50-95|default|reset
|
|
790
|
-
/workflow-settings set context compactionCooldownMinutes 0-240
|
|
791
|
-
/workflow-settings set context customCompactionReserveTokens 4096-65536|default|reset
|
|
792
|
-
/workflow-settings set context customCompactionKeepRecentTokens 1000-200000|default|reset
|
|
793
|
-
```
|
|
804
|
+
The grouped Shared Compaction menu controls auto-compaction, trigger threshold, cooldown, reserve tokens, keep-recent tokens, and custom compaction model behavior.
|
|
794
805
|
|
|
795
806
|
Important behavior:
|
|
796
807
|
|
|
@@ -830,7 +841,7 @@ workflow_web_search
|
|
|
830
841
|
workflow_web_fetch
|
|
831
842
|
```
|
|
832
843
|
|
|
833
|
-
|
|
844
|
+
`workflow_web_search` uses DuckDuckGo HTML search for current external evidence and source URLs. `workflow_web_fetch` reads specific public HTTP(S) URLs and extracts text for source-backed evidence. Web content from search and fetch is treated as untrusted evidence, not as instructions.
|
|
834
845
|
|
|
835
846
|
Safety boundaries:
|
|
836
847
|
|
|
@@ -840,7 +851,25 @@ Safety boundaries:
|
|
|
840
851
|
- visible answers should cite source URLs when web evidence is used,
|
|
841
852
|
- sub-agent workers may not have the parent Workflow Suite web tools, so parent modes should perform required web research and pass findings into handoffs when needed.
|
|
842
853
|
|
|
843
|
-
Web access is Pi extension behavior, not a guarantee that every model, sub-agent, network, or runtime environment can reach the public web. If
|
|
854
|
+
Web access is Pi extension behavior, not a guarantee that every model, sub-agent, network, or runtime environment can reach the public web. If a web tool fails, Workflow Suite reports the failure and continues from available context.
|
|
855
|
+
|
|
856
|
+
## Browser Verification
|
|
857
|
+
|
|
858
|
+
Workflow Suite registers a `workflow_browser_check` tool for headless browser verification:
|
|
859
|
+
|
|
860
|
+
```text
|
|
861
|
+
workflow_browser_check
|
|
862
|
+
```
|
|
863
|
+
|
|
864
|
+
This tool launches a headless Chromium browser via Puppeteer from the Pi runtime and works regardless of the target project's dependencies. It is available in all modes by default when the runtime supports it.
|
|
865
|
+
|
|
866
|
+
**Interactive actions:** The tool supports click, type, read, wait, reload, screenshot, and evaluate actions. Validators can exercise UI flows end-to-end — clicking through pages, typing into forms, reading updated text, and capturing screenshots — rather than only observing static page state. Screenshots are saved to `/tmp/validator_screenshot.png`.
|
|
867
|
+
|
|
868
|
+
**Validator workflows:** Validators use `workflow_browser_check` to verify web app runtime behavior: console errors, page errors, DOM element counts, localStorage state, and interactive UI correctness. This provides automatable browser-level evidence for validation reports without requiring manual human verification.
|
|
869
|
+
|
|
870
|
+
**Executor and planner use:** Executors and planners can also use the tool to verify their own work during implementation — starting a dev server, running browser checks, and confirming behavior before handing off to validation.
|
|
871
|
+
|
|
872
|
+
**Graceful fallback:** If Puppeteer is not available in the Pi runtime, the tool reports the error and the workflow continues from available context. Browser verification is an enhancement, not a hard dependency.
|
|
844
873
|
|
|
845
874
|
## Repository Lock
|
|
846
875
|
|
|
@@ -850,12 +879,16 @@ Repo Lock is a Global Safety setting controlled through:
|
|
|
850
879
|
/workflow settings Global Safety
|
|
851
880
|
```
|
|
852
881
|
|
|
853
|
-
The underlying setting is `safety.repoLockEnabled`. The interactive toggle is project-scoped: it writes to the active repository override at `.pi/workflow-settings.json` so Repo Lock can be enabled for one project without changing every Pi session.
|
|
882
|
+
The underlying setting is `safety.repoLockEnabled`. The interactive toggle is project-scoped: it writes to the active repository override at `.pi/workflow-settings.json` so Repo Lock can be enabled for one project without changing every Pi session.
|
|
883
|
+
|
|
884
|
+
When enabled, Repo Lock keeps normal file tools, conservative bash path checks, and Workflow Suite sub-agents inside the active repository. Project `.pi` files may be read for settings and instruction context, but protected project control paths such as `.pi/workflow-settings.json`, `.pi/settings.json`, and `.pi/agents/**` are not edited through normal file tools. Use the dedicated settings UI/commands for intentional Workflow Suite settings changes, or temporarily disable Repo Lock, make the configuration change, and re-enable it.
|
|
854
885
|
|
|
855
|
-
Repo Lock
|
|
886
|
+
Repo Lock does not grant normal agent tools access to the live Pi runtime under `~/.pi/agent`. Workflow Suite internals still use the runtime for required state, settings, widgets, agents, skills, prompts, and install resources, but target-repository workflows should not inspect or mutate live runtime files through generic read/edit/write tools.
|
|
856
887
|
|
|
857
888
|
Repo Lock helps prevent accidental cross-repository work. It is not an operating-system sandbox, a complete shell parser, or a guarantee that every possible child process is contained. Review commands before running them, especially commands that invoke other tools or scripts.
|
|
858
889
|
|
|
890
|
+
Repo Lock is enabled by default in the Standard, Deep, and Maximum built-in presets. If your workflow requires cross-repository access, disable it through `/workflow settings Global Safety` or by setting `safety.repoLockEnabled` to `false`.
|
|
891
|
+
|
|
859
892
|
## Plan History
|
|
860
893
|
|
|
861
894
|
Plan history can persist workflow plans under Pi runtime state. Saved plans include:
|
|
@@ -927,16 +960,7 @@ Widget commands:
|
|
|
927
960
|
/workflow widgets off
|
|
928
961
|
```
|
|
929
962
|
|
|
930
|
-
Footer hints can be tuned without disabling the actual commands/shortcuts
|
|
931
|
-
|
|
932
|
-
```text
|
|
933
|
-
/workflow-settings set ui showIdleWorkflowEntryHint true|false
|
|
934
|
-
/workflow-settings set ui showActiveWorkflowSwitchHint true|false
|
|
935
|
-
/workflow-settings set ui showWidgetShortcutHint true|false
|
|
936
|
-
/workflow-settings set ui showPresetShortcutHint true|false
|
|
937
|
-
```
|
|
938
|
-
|
|
939
|
-
The interactive path is `/workflow settings UI Widgets` → `Footer Hints`. Direct command users can also open it with `/workflow-settings configure widgets`.
|
|
963
|
+
Footer hints can be tuned without disabling the actual commands/shortcuts. The interactive path is `/workflow settings UI Widgets` → `Footer Hints`.
|
|
940
964
|
|
|
941
965
|
Mission heartbeat and stale-status fields are tracked and displayed. Checkpoint interval settings record the preferred cadence for future timed checkpoint automation, while recovery actions remain user-supervised for safety.
|
|
942
966
|
|
|
@@ -971,6 +995,15 @@ cd /path/to/project
|
|
|
971
995
|
pi install -l npm:@mediadatafusion/pi-workflow-suite
|
|
972
996
|
```
|
|
973
997
|
|
|
998
|
+
### Installing specific versions
|
|
999
|
+
|
|
1000
|
+
```bash
|
|
1001
|
+
pi install npm:@mediadatafusion/pi-workflow-suite@0.0.11
|
|
1002
|
+
pi install -l npm:@mediadatafusion/pi-workflow-suite@0.0.11
|
|
1003
|
+
```
|
|
1004
|
+
|
|
1005
|
+
An unversioned install follows normal update behavior: `pi update` and `pi update --extensions` will pick up new package releases. A versioned install pins the package to that version. Pinned package specs are intentionally skipped by Pi's normal package update commands. To move a pinned install to a newer version, reinstall with the desired version. To switch back to latest tracking, use the unversioned install command without `@<version>`.
|
|
1006
|
+
|
|
974
1007
|
### Source install
|
|
975
1008
|
|
|
976
1009
|
```bash
|
|
@@ -1001,6 +1034,7 @@ Operational scripts:
|
|
|
1001
1034
|
| `scripts/backup-live.sh` | Create a timestamped live-runtime backup while excluding credentials, sessions, logs, and workflow state. |
|
|
1002
1035
|
| `scripts/quarantine-live-junk.sh` | Dry-run or move known stale runtime debris to quarantine; it does not delete files. |
|
|
1003
1036
|
| `scripts/bootstrap-project.sh /path/to/project` | Create project-local Workflow Suite setup files for a target project. |
|
|
1037
|
+
| `scripts/sync-from-live.sh` | Maintainer synchronization helper for reviewing live runtime resources before deciding what belongs in source. |
|
|
1004
1038
|
|
|
1005
1039
|
The live Pi runtime should not contain a top-level `.git`, stale `*.backup.*` / `*.broken.*` files in active resource directories, or old recovery/disabled directories mixed with current resources. Quarantine moves files; it does not delete them.
|
|
1006
1040
|
|
|
@@ -1115,7 +1149,7 @@ Example defaults shipped with the suite include Standard Mode enabled with confi
|
|
|
1115
1149
|
|
|
1116
1150
|
Users can change the workflow shape. For example, a user may disable reviewer involvement for fast local work, use a stronger reviewer for corporate policy review, route executor to a tool-use/code-writing model, route validator to a separate high-reasoning model, or use mission-specific models for long-running work.
|
|
1117
1151
|
|
|
1118
|
-
Use `/workflow settings Show Current Settings`
|
|
1152
|
+
Use `/workflow settings Show Current Settings` for the effective merged Workflow Suite configuration. For Pi core settings versus Workflow Suite settings, run `./scripts/audit-settings.sh [target-cwd]`; it reports global/project paths, Workflow Suite write targets, and safe summaries without writing settings or printing secrets.
|
|
1119
1153
|
|
|
1120
1154
|
Workflow Suite settings are currently global/project scoped, not session-local. A global preset/theme/model change can affect every session using global settings; a project `.pi/workflow-settings.json` can affect sessions launched under that project. Use project overrides for per-project behavior today. A true session-local profile lock should be treated as a separate future runtime feature; see `docs/SESSION_PROFILES.md` for the design.
|
|
1121
1155
|
|
|
@@ -1152,7 +1186,7 @@ Common recovery commands:
|
|
|
1152
1186
|
```text
|
|
1153
1187
|
/workflow status
|
|
1154
1188
|
/workflow settings Show Current Settings
|
|
1155
|
-
/
|
|
1189
|
+
./scripts/audit-settings.sh [target-cwd]
|
|
1156
1190
|
/mission status
|
|
1157
1191
|
/mission resume
|
|
1158
1192
|
/workflow widgets list
|
|
@@ -1171,10 +1205,10 @@ See `docs/TROUBLESHOOTING.md` for detailed diagnostics.
|
|
|
1171
1205
|
|
|
1172
1206
|
## Versioning
|
|
1173
1207
|
|
|
1174
|
-
The current
|
|
1208
|
+
The current preparation version is `v0.0.11`. Version information is intentionally aligned across:
|
|
1175
1209
|
|
|
1176
|
-
- `VERSION` (`v0.0.
|
|
1177
|
-
- `package.json` (`0.0.
|
|
1210
|
+
- `VERSION` (`v0.0.11`),
|
|
1211
|
+
- `package.json` (`0.0.11`),
|
|
1178
1212
|
- `package-lock.json`,
|
|
1179
1213
|
- this README,
|
|
1180
1214
|
- Workflow Suite settings/about output.
|
|
@@ -1189,13 +1223,11 @@ Apache-2.0 licenses the code, not the MediaDataFusion names, Workflow Suite name
|
|
|
1189
1223
|
|
|
1190
1224
|
This project is not officially affiliated with, endorsed by, sponsored by, or maintained by Pi or any third-party platform unless explicitly stated in official project materials.
|
|
1191
1225
|
|
|
1192
|
-
Security issues should
|
|
1226
|
+
Security issues should be reported privately, not through public issues. See `SECURITY.md`. A private reporting channel will be published before broad public release.
|
|
1193
1227
|
|
|
1194
|
-
|
|
1228
|
+
Support is maintainer-led and best-effort. See `SUPPORT.md`.
|
|
1195
1229
|
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
Paid consulting through MediaDataFusion may be available separately for implementation, integration, or workflow design work.
|
|
1230
|
+
Contributions are welcome when they align with the project direction. Workflow behavior, installation, dependency, security, and release changes require maintainer review. See `CONTRIBUTING.md`.
|
|
1199
1231
|
|
|
1200
1232
|
## Release Status
|
|
1201
1233
|
|
|
@@ -1206,20 +1238,12 @@ The intended package and repository identities are:
|
|
|
1206
1238
|
https://github.com/MediaDataFusion/pi-workflow-suite
|
|
1207
1239
|
```
|
|
1208
1240
|
|
|
1209
|
-
The current release candidate is prepared as `@mediadatafusion/pi-workflow-suite@0.0.9`.
|
|
1210
|
-
|
|
1211
1241
|
Private DEV, private main, and the clean public release repository should carry the same approved package version before publication.
|
|
1212
1242
|
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
```bash
|
|
1216
|
-
pi install npm:@mediadatafusion/pi-workflow-suite@0.0.9
|
|
1217
|
-
```
|
|
1218
|
-
|
|
1219
|
-
After npm publication, temporary evaluation in a current Pi run can use:
|
|
1243
|
+
Published public package versions are installed from npm with:
|
|
1220
1244
|
|
|
1221
1245
|
```bash
|
|
1222
|
-
pi
|
|
1246
|
+
pi install npm:@mediadatafusion/pi-workflow-suite@<version>
|
|
1223
1247
|
```
|
|
1224
1248
|
|
|
1225
1249
|
## Planned Enhancements
|
package/SECURITY.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Do not report security issues in public issues, public pull requests, or public discussions.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Private security reporting contact is not yet configured. This is a release blocker before enabling broad public issue intake or accepting outside security reports.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Supported versions will be listed after the first public release. Until then, only the current private preparation version is under active review.
|
|
8
|
+
|
|
9
|
+
Malicious pull requests, suspicious dependency changes, postinstall scripts, credential collection, telemetry, obfuscated code, or unexplained network behavior will be rejected.
|
|
10
|
+
|
|
11
|
+
When reporting a vulnerability privately after a reporting channel is configured, include the affected version, install method, reproduction steps, impact, and any relevant logs with secrets removed.
|
package/SUPPORT.md
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Support
|
|
2
2
|
|
|
3
|
-
Pi Workflow Suite is a
|
|
3
|
+
Pi Workflow Suite is provided without a support SLA. Free use does not imply free support.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Support is provided at maintainer discretion. Before requesting help, read the README, release notes, and relevant troubleshooting guidance, and include the package version, install method, operating system, Pi version if known, commands run, and exact error output.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Priority help, implementation support, integration work, or workflow design may be available separately through a paid MediaDataFusion engagement.
|
|
7
|
+
Paid consulting through MediaDataFusion may be available separately for implementation, integration, or workflow design work.
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v0.0.
|
|
1
|
+
v0.0.11
|
|
@@ -14,8 +14,9 @@ Rules:
|
|
|
14
14
|
- Validate the original mission goal across all milestones, not only the last milestone.
|
|
15
15
|
- Review milestone outcomes, checkpoints, validation reports, repair history, changed files, tests/builds, integration risks, and unresolved issues.
|
|
16
16
|
- Return PASS only when the complete mission goal is satisfied and no blocking risk remains.
|
|
17
|
-
- Return
|
|
17
|
+
- Return FAIL when concrete missing requirements, regressions, unsafe changes, repairable defects, or concrete code/content/citation/source/file/metadata/artifact fixes remain.
|
|
18
|
+
- Return PARTIAL PASS only when manual/visual/browser verification remains or evidence is incomplete without a concrete repairable issue.
|
|
18
19
|
- Evidence gaps are not repairable defects unless a concrete missing requirement or artifact is identified.
|
|
19
|
-
-
|
|
20
|
+
- If concrete repairable issues remain, mark Concrete Repairable Issue: yes, list them clearly, and prefer FAIL over PARTIAL PASS.
|
|
20
21
|
|
|
21
22
|
Mermaid diagrams are rendered by Workflow Suite in a uniform dark-mode visual style. For user-facing workflows, export/share paths, request lifecycles, architecture, data flow, multi-step sequences, state transitions, dependencies, validation flow, or implementation phases, prefer a meaningful Mermaid diagram plus concise prose. Use concise labels and the right diagram type; do not hardcode random style/classDef/light-theme overrides unless the user explicitly asks. Skip diagrams for trivial responses.
|