From b33be1e6e5d3dbc420861b31c22f69078f264b51 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 23 Jul 2026 19:47:53 +0000 Subject: [PATCH 1/3] Graph-engineering upgrades: model tiering, budget hard-stops, diagrams MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Distilled the actionable parts of a "graph engineering" writeup (our Workflow tool already is a graph runtime) into three concrete improvements: - Model tiering across all 6 workflows: high-volume fan-out nodes (critics, per-story evidence, per-dimension gaps, per-category E2E cases, meta-critics) run model:'sonnet'; the high-stakes gates/judgment (adversarial verifiers, status verifier, synthesis) run model:'opus'. Tiers are FANOUT_MODEL/ JUDGE_MODEL constants overridable via args.models. The loop-iteration implementer is the deliberate exception — it writes real code, so it inherits the session model rather than being silently downgraded. - Budget as a hard stop for the expensive fan-outs, guarded on budget.total (null => no cap): improve-skills skips the verify phase below a token floor and routes findings to needsDesign (unverified, never auto-applied); loop-iteration escalates all items below its floor instead of failing mid-fix. Fail-safe direction preserved — a budget stop never approves unverified work. - docs/workflow-graphs.md: Mermaid node/edge diagram for every workflow with the per-node model tier (the "see the graph before you run" view). Filed the tiering, soft/hard-budget, and diagram-drift conventions in the memory wiki. Syntax validated for all six scripts. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_014xUCrJdREvUMjoVzSX5T8G --- .claude/memory/log.md | 20 ++++ .claude/memory/topics/workflow.md | 20 ++++ .claude/workflows/critic-panel.js | 9 +- .claude/workflows/e2e-design.js | 7 +- .claude/workflows/gap-analysis.js | 9 +- .claude/workflows/improve-skills.js | 53 ++++++++--- .claude/workflows/loop-iteration.js | 21 ++++- .claude/workflows/scan-docs.js | 9 +- docs/workflow-graphs.md | 139 ++++++++++++++++++++++++++++ 9 files changed, 264 insertions(+), 23 deletions(-) create mode 100644 docs/workflow-graphs.md diff --git a/.claude/memory/log.md b/.claude/memory/log.md index b67e856..cae839f 100644 --- a/.claude/memory/log.md +++ b/.claude/memory/log.md @@ -151,3 +151,23 @@ change), `rotate` (archived old entries). Format: `## [YYYY-MM-DD] |