pdombkins puts a senior partner in the workflow loop

This fork makes automated legal workflows easier to inspect before they act, and easier to account for once they finish.

workflowcompliance

pdombkins has added a visible process map where users choose a workflow, then placed a human checkpoint between the proposed plan and execution. The design treats oversight as part of the work, not an afterthought.

  • Process map: shows the stages of a workflow before someone selects it.
  • Copy and edit: lets a team start from an existing workflow rather than rebuild it.
  • Pre-flight review: presents the proposed plan before execution.
  • Senior-partner review: gives a designated human the chance to approve that plan.
  • Completion report: records what happened after the workflow finishes.
So what Firms and legal teams testing AI-assisted workflows should care because this creates a clearer approval trail without hiding the process behind a run button.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

2 commits from pdombkins/rose_lawyer, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
2021ca0d Workflow transparency: process map, duplicate & edit, pre-flight gate, senior-partner review, completion report Peter Dombkins 2026-07-26 ↗ GitHub
commit body
Workflows are now a declared, inspectable process rather than an opaque prompt.

- Blueprint (lib/workflows/blueprint.ts): one LLM call derives a typed spec
  from prompt_md/columns - per step name, objective, role, depends_on,
  inputs, outputs, testable quality_criteria and silent-failure exposure.
  Cached in workflow_blueprints, keyed by a hash of the source so it
  invalidates on edit. Tool allowlists stay server-derived from the role.

- Overview page: WorkflowDetailPage is tabbed, opening on a DAG process map
  plus per-step cards and a workflow-wide silent-failure assessment.

- Duplicate & edit with AI: POST /workflows/:id/duplicate (works on
  read-only builtins) + /edit-chat. Returns a complete revision and a change
  list; nothing saves until the user applies it.

- Pre-flight gate (lib/workflows/preflight.ts): samples the documents
  actually attached and re-scores each step. High risk parks the run at
  status 'paused' with nothing executed - continue anyway, or stop and edit.
  Fails open but loud if the check itself errors.

- Senior-partner review (lib/agents/partnerReview.ts): adjudicates each step
  against its criteria with reasons and an inference level, sending failures
  back for rework up to max_rework. The reviewer never rewrites the work,
  cannot_assess is a defect not a pass, and a failed reviewer marks the step
  degraded rather than silently passing it.

- Live run view: steps expanded by default, thinking trace inline, process
  map with the current step and a distinct reworking state.

- Completion report (lib/agents/report.ts, GET /agents/:id/report): built
  from persisted data only, so it cannot itself hallucinate.

Fixes: /workflows/:id/compile selected a non-existent skill_md column
(prompt_md is the column), so plan templates compiled from an empty string.

Migration: 20260726_01_workflow_blueprints.sql (already applied to prod).
f2bf415c Show the process map where workflows are actually selected Peter Dombkins 2026-07-26 ↗ GitHub
commit body
The blueprint overview was only on the workflow detail page
(/workflows/{type}/{id}), but clicking a workflow in the list calls
setSelected(wf), which opens UseWorkflowModal - whose preview pane showed
the raw prompt markdown or a bare column list. That preview is what you
see on selecting a workflow, so the process map never appeared in the
normal flow.

- WorkflowBlueprintPreview: compact blueprint view for the picker's
  preview column - summary, process map, silent-failure hotspots and a
  step accordion with objective, inputs, outputs, success criteria and
  failure modes.
- WorkflowPickerContent: preview pane is now tabbed, Process first, with
  the raw Instructions/Columns one click away. Keyed on workflow id so
  switching selections remounts cleanly.
- WorkflowProcessMap: `compact` prop (narrower cards, tighter gaps) so
  the map fits the modal's preview column without horizontal scrolling.

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-945.md from inside the repo you want the changes in.

⬇ Download capture-thread-945.md