{
"execution": {
"mode": "interactive",
"runtime": "",
"model": "",
"instructions": "",
"max_decisions": 50,
"max_per_node": 5,
"allow_external_writes": false
},
"created": 0,
"id": "as-is-sdd-adversarial",
"name": "Application overview → Evidence and functional catalog",
"description": "Analyzes the current codebase and documentation to build an application overview, an evidence report, a plain-language summary and a functional catalog for subsequent workflows. Claude prepares the content, Codex verifies it independently, and a human approves the result.",
"entry": "task-55c0b357",
"nodes": [
{
"id": "source-71d48e64",
"kind": "Source",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Repository to analyze",
"x": 43.0,
"y": 140.0,
"phase": "Workflow",
"prompt": "",
"command": "",
"agent": "",
"runtime": "",
"model": "",
"mode": "agent_and_human",
"location": "",
"source_type": "example",
"source_mode": "copy",
"target": "",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "local",
"operation": "test",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 2
},
{
"id": "agent-aa47bf35",
"kind": "Agent",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Claude",
"x": 257.4724264705883,
"y": 86.8189338235294,
"phase": "Workflow",
"prompt": "",
"command": "",
"agent": "",
"runtime": "claude",
"model": "",
"mode": "agent_and_human",
"location": "",
"source_type": "example",
"source_mode": "direct",
"target": "",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "local",
"operation": "test",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 2
},
{
"id": "agent-codex",
"kind": "Agent",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Codex · Adversarial reviewer",
"x": 252.0,
"y": 300.0,
"phase": "Workflow",
"prompt": "",
"command": "",
"agent": "",
"runtime": "codex",
"model": "",
"mode": "",
"location": "",
"source_type": "",
"source_mode": "",
"target": "",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "",
"operation": "",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 0
},
{
"id": "task-55c0b357",
"kind": "Task",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Initial analysis",
"x": 435.0199617585184,
"y": 83.89899323601878,
"phase": "Analysis",
"prompt": "Analyze all customer-provided material in Source for the application to modernize. Create EVIDENCE.md in the workspace root: application purpose, architecture, technologies, components, available information, completeness and reliability, size, integrations, risks, missing evidence and questions for the customer. Cite primary source paths and distinguish verified facts, inferences and unknowns. Ask Codex for an adversarial check when available; record whether that check actually occurred. Do not modify customer material or invent measurements, test results or approvals.\n\nRERUN NOTE: if EVIDENCE.md already exists and is complete (application overview, architecture, inventory, business behavior, integrations, gaps and risks, customer questions, conclusions and a reproducible methodology note), verify that it is present and readable and reuse it without changes. Continue with SUMMARY.md and the functional catalog. Produce all documents in English.",
"command": "",
"agent": "agent-aa47bf35",
"runtime": "",
"model": "",
"mode": "agent_and_human",
"location": "",
"source_type": "example",
"source_mode": "direct",
"target": "",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "local",
"operation": "test",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 2
},
{
"id": "task-inbreve",
"kind": "Task",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Write SUMMARY.md",
"x": 609.6406778762605,
"y": 84.29550736738672,
"phase": "Summary",
"prompt": "Create or overwrite SUMMARY.md in the workspace root: a plain-language summary of EVIDENCE.md. Describe the application's purpose, business areas, execution model, technologies, size, integrations, modernization uncertainties and outstanding customer questions. Derive every statement and number from EVIDENCE.md; verify numbers before writing and report discrepancies. Do not reuse counts, company names or business rules from another project. Clearly distinguish measured facts from estimates and unknowns. Include a provenance note referencing EVIDENCE.md and report independent review only if documented. Do not estimate effort or duration. Do not modify EVIDENCE.md or customer material. Write in English.",
"command": "",
"agent": "agent-aa47bf35",
"runtime": "",
"model": "",
"mode": "",
"location": "",
"source_type": "",
"source_mode": "",
"target": "",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "",
"operation": "",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 2
},
{
"id": "task-catalogo",
"kind": "Task",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Functional catalog",
"x": 792.9319852941177,
"y": 84.05790441176471,
"phase": "Catalog",
"prompt": "Create or overwrite FUNCTIONAL_CATALOG.md in the workspace root: a catalog of the application's functional chains to support modernization scoping and sequencing.\n\nSOURCES: use EVIDENCE.md and SUMMARY.md for orientation, then inspect primary sources available in Source: flow maps, scheduler exports, jobs, commands, conditions, status and frequency; scripts and procedures; application source, build files and shared definitions; database schemas, SQL and load layouts; and customer documentation. Discover actual names, formats and counts from this project. Declare missing or ambiguous sources.\n\nCATALOG UNIT: a functional chain is a set of jobs and components delivering a recognizable business outcome. Start from documented components and flows; split or merge only when supported by sources and explain each choice. Include isolated scheduler folders and components, assigning them to chains only when commands, scripts, files or tables support the association.\n\nFOR EACH CHAIN: stable ID; name; business area; organizational scope; plain-language description (2–3 sentences); trigger and frequency; status (active/suspended/retired/to confirm); scheduler folders and job count; main scripts and procedures; invoked programs (distinguish entry points, routines and encoding variants); application projects; tables read and written; input/output files and layouts; external systems; dependencies through conditions, files or tables; existing AS-IS documentation; S/M/L complexity with explicit criteria (component counts, lines of code, integrations, coupling); open questions. Mark claims [V] verified, [I] inferred or [?] to confirm, and cite source paths.\n\nMANDATORY FINAL SECTIONS: 1) chain summary with counts; 2) reverse index component → chains for programs, application projects and main tables; 3) shared components; 4) unassigned orphan programs, scripts, jobs, projects and tables with counts; 5) reconciliation with EVIDENCE.md totals, explaining every difference; 6) reproducible methodology.\n\nDo not estimate effort or person-days. Do not modify customer material or EVIDENCE.md. Put helper scripts outside customer material in a temporary directory. Write in English.",
"command": "",
"agent": "agent-aa47bf35",
"runtime": "",
"model": "",
"mode": "",
"location": "",
"source_type": "",
"source_mode": "",
"target": "",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "",
"operation": "",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 2
},
{
"id": "mem-catalogo",
"kind": "Memory",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Catalog → Codex",
"x": 983.8878676470588,
"y": 83.07904411764706,
"phase": "Catalog",
"prompt": "",
"command": "",
"agent": "task-catalogo",
"runtime": "",
"model": "",
"mode": "",
"location": "",
"source_type": "",
"source_mode": "",
"target": "agent-codex",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "",
"operation": "",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 0
},
{
"id": "task-verifica",
"kind": "Task",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Adversarial verification (Codex)",
"x": 440.0,
"y": 300.0,
"phase": "Verification",
"prompt": "Act as an independent adversarial reviewer: seek errors, not confirmation. Read FUNCTIONAL_CATALOG.md and SUMMARY.md and compare them with actual Source files and EVIDENCE.md.\n\nCheck at least: a) a sample of at least 10 chains, or all chains if fewer exist, tracing scheduler folder → job → script/procedure → program → table in primary sources where applicable; b) every scheduler folder, built program, application project and script is assigned to a chain or listed as an orphan; c) totals and reconciliation with EVIDENCE.md; d) unsupported inter-chain dependencies; e) inferences marked [V]; f) nonexistent paths; g) SUMMARY.md numbers that differ from EVIDENCE.md or unsupported claims. Record unavailable checks explicitly.\n\nCreate or overwrite CATALOG_REVIEW.md in English. For each finding, state document and section, evidence (source path), blocking/major/minor severity and proposed correction. Do not modify FUNCTIONAL_CATALOG.md or SUMMARY.md. End with ALIGNED if no blocking or major findings remain, otherwise DIFFERENCES.",
"command": "",
"agent": "agent-codex",
"runtime": "",
"model": "",
"mode": "",
"location": "",
"source_type": "",
"source_mode": "",
"target": "",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "",
"operation": "",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 2
},
{
"id": "mem-verifica",
"kind": "Memory",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Findings → Claude",
"x": 620.0,
"y": 300.0,
"phase": "Verification",
"prompt": "",
"command": "",
"agent": "task-verifica",
"runtime": "",
"model": "",
"mode": "",
"location": "",
"source_type": "",
"source_mode": "",
"target": "agent-aa47bf35",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "",
"operation": "",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 0
},
{
"id": "task-perfeziona",
"kind": "Task",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Claude refines",
"x": 808.7430719365216,
"y": 298.3711003625262,
"phase": "Refinement",
"prompt": "Read CATALOG_REVIEW.md and any human approval feedback. If the verdict is ALIGNED and there are no blocking or major findings or human requests, change nothing and say so. Otherwise independently check each finding against primary sources: correct FUNCTIONAL_CATALOG.md or SUMMARY.md with source citations if substantiated; if unfounded, retain the text and explain why. Add or update the Revision log at the end of FUNCTIONAL_CATALOG.md (finding → action taken). Keep shared numbers consistent in SUMMARY.md. Modify only these two files. Write in English.",
"command": "",
"agent": "agent-aa47bf35",
"runtime": "",
"model": "",
"mode": "",
"location": "",
"source_type": "",
"source_mode": "",
"target": "",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "",
"operation": "",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 2
},
{
"id": "mem-perfeziona",
"kind": "Memory",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Corrections → Codex",
"x": 980.0,
"y": 300.0,
"phase": "Refinement",
"prompt": "",
"command": "",
"agent": "task-perfeziona",
"runtime": "",
"model": "",
"mode": "",
"location": "",
"source_type": "",
"source_mode": "",
"target": "agent-codex",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "",
"operation": "",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 0
},
{
"id": "gate-catalogo",
"kind": "Gate",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Catalog aligned?",
"x": 1160.0,
"y": 300.0,
"phase": "Final verification",
"prompt": "Compare the current FUNCTIONAL_CATALOG.md and SUMMARY.md with CATALOG_REVIEW.md findings and actual Source files. Return pass only if each blocking or major finding has been corrected in the files or rejected with verifiable justification and no new significant discrepancies emerge; otherwise return rework for another adversarial verification cycle. Do not approve claimed corrections that are absent from the files. Write the rationale in English.",
"command": "",
"agent": "agent-codex",
"runtime": "",
"model": "",
"mode": "",
"location": "",
"source_type": "",
"source_mode": "",
"target": "",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "",
"operation": "",
"outcomes": [
"pass",
"rework"
],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 3
},
{
"id": "review-approvazione",
"kind": "Review",
"text": "",
"width": 0.0,
"height": 0.0,
"markdown": false,
"title": "Final approval",
"x": 1355.091911764706,
"y": 300.80882352941177,
"phase": "Delivery",
"prompt": "Approve SUMMARY.md and FUNCTIONAL_CATALOG.md. Check the verdict in CATALOG_REVIEW.md and the Revision log. If a correction is needed, choose rework and specify the required changes: the workflow returns to Claude for refinement.",
"command": "",
"agent": "agent-aa47bf35",
"runtime": "",
"model": "",
"mode": "human",
"location": "",
"source_type": "",
"source_mode": "",
"target": "",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "",
"operation": "",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 2
},
{
"id": "nota-flusso",
"kind": "Comment",
"text": "# Flow\n1. **Initial analysis**: reuse a complete EVIDENCE.md if present\n2. **SUMMARY.md**: plain-language summary (Claude)\n3. **FUNCTIONAL_CATALOG.md**: functional chains (Claude)\n4. **Adversarial verification**: Codex writes CATALOG_REVIEW.md\n5. **Refinement**: Claude addresses substantiated findings\n6. **Codex gate**: pass → human approval; rework → another verification (max 3)\n7. **Human approval**: rework → Claude",
"width": 0.0,
"height": 0.0,
"markdown": true,
"title": "Notes",
"x": 1190.5294148297735,
"y": 23.135346825896537,
"phase": "",
"prompt": "",
"command": "",
"agent": "",
"runtime": "",
"model": "",
"mode": "",
"location": "",
"source_type": "",
"source_mode": "",
"target": "",
"workflow_id": "",
"rag_index": "",
"rag_mode": "",
"rag_top_k": 0,
"a2a_id": "",
"mcp_id": "",
"mcp_tools": [],
"provider": "",
"operation": "",
"outcomes": [],
"require_tests": false,
"require_tasks_closed": false,
"max_rework": 0
}
],
"edges": [
{
"from": "source-71d48e64",
"to": "agent-aa47bf35",
"kind": "context",
"outcome": ""
},
{
"from": "source-71d48e64",
"to": "agent-codex",
"kind": "context",
"outcome": ""
},
{
"from": "agent-aa47bf35",
"to": "task-55c0b357",
"kind": "context",
"outcome": ""
},
{
"from": "agent-codex",
"to": "task-verifica",
"kind": "context",
"outcome": ""
},
{
"from": "task-55c0b357",
"to": "task-inbreve",
"kind": "control",
"outcome": ""
},
{
"from": "task-inbreve",
"to": "task-catalogo",
"kind": "control",
"outcome": ""
},
{
"from": "task-catalogo",
"to": "mem-catalogo",
"kind": "control",
"outcome": ""
},
{
"from": "mem-catalogo",
"to": "task-verifica",
"kind": "control",
"outcome": ""
},
{
"from": "task-verifica",
"to": "mem-verifica",
"kind": "control",
"outcome": ""
},
{
"from": "mem-verifica",
"to": "task-perfeziona",
"kind": "control",
"outcome": ""
},
{
"from": "task-perfeziona",
"to": "mem-perfeziona",
"kind": "control",
"outcome": ""
},
{
"from": "mem-perfeziona",
"to": "gate-catalogo",
"kind": "control",
"outcome": ""
},
{
"from": "gate-catalogo",
"to": "review-approvazione",
"kind": "control",
"outcome": "pass"
},
{
"from": "gate-catalogo",
"to": "task-verifica",
"kind": "rework",
"outcome": "rework"
},
{
"from": "review-approvazione",
"to": "task-perfeziona",
"kind": "rework",
"outcome": "rework"
}
]
}