From 8933148719528d17e6681e6ac9d7d31ae727c54d Mon Sep 17 00:00:00 2001 From: shad Date: Sun, 14 Jun 2026 13:11:54 +0400 Subject: [PATCH] fix(curation): kill dev-artefact leak + rename agent honestly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Oracle remediation batch 1 — closing gaps #1 (agent overclaim), #4 (demo-data leak), #5 (raw-ID exposure): - src/lib/flowCuration.ts: shared isDevArtefact + curatedPublishedFlows filter for the whole codebase. Patterns drop rv_/orphan/Atlas F1/MCP SDX/Codex Test/sidekick/process_/backfill/smoke/probe/fixture and the EA2_* internal source_contexts. - src/scenes/Hub.tsx: loadPublishedFlows uses the shared curator - src/lib/agentTools.ts: list_processes and start_process both use the shared curator; raw transaction_id no longer in start reply - src/state/store.ts: snapshot + live merges curated; resolveDefaultStepId guards against scenarios whose defaultStepId references a stale step - src/scenes/Wizard.tsx: 'Process definition ' confirmation replaced with the user-facing process name - src/scenes/Hub.tsx: start toast no longer shows transaction_id prefix - src/scenes/Agent.tsx + App.tsx + Landing.tsx: rename Pi -> FlowMaster Command Assistant. Welcome message says explicitly that this is a deterministic router and the LLM agent + tenant memory are on the roadmap. Tab label, hub chip, turn author all rebranded. - src/scenes/GeoAttendance.tsx: scene re-titled to 'Attendance map · preview' with honest copy explaining the dataset is illustrative until the EA2 attendance feed is wired in. - src/data/synthetic.ts: orphaned from runtime (kept in tree for tests). Snapshot now sources only the live-cached EA2 read (scenarios.json), filtered through the same curator. 29/29 tests green. No more 'rv test flow 0' / 'orphan' / 'Atlas F1' / raw 32-char hex IDs visible to a buyer. --- src/App.tsx | 2 +- src/lib/agentTools.ts | 21 ++++++------- src/lib/flowCuration.ts | 58 ++++++++++++++++++++++++++++++++++++ src/scenes/Agent.tsx | 11 +++---- src/scenes/GeoAttendance.tsx | 6 ++-- src/scenes/Hub.tsx | 30 ++++++------------- src/scenes/Landing.tsx | 2 +- src/scenes/Wizard.tsx | 2 +- src/state/store.ts | 25 ++++++++++++---- 9 files changed, 109 insertions(+), 48 deletions(-) create mode 100644 src/lib/flowCuration.ts diff --git a/src/App.tsx b/src/App.tsx index 486619c..de2c08d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -80,7 +80,7 @@ export default function App() { Chat - + diff --git a/src/scenes/Wizard.tsx b/src/scenes/Wizard.tsx index a5ac3cc..707ed34 100644 --- a/src/scenes/Wizard.tsx +++ b/src/scenes/Wizard.tsx @@ -403,7 +403,7 @@ export default function Wizard() {

Process Published!

-

Process definition {publishedKey} is now active in EA2.

+

Your process {draft.name || "Untitled"} is now active and ready to run.