| Step | Role | Input Context | Reactive Subscription | Agent Publication | Broker Decision |
|---|
| 1 | Mathematical Analyst ( a1 ) | Query q : John drives for 3 hours at a speed of 60 mph and then turns around because he realizes he forgot something very important at home. He tries to get home in 4 hours but spends the first 2 hours in standstill traffic. He spends the next half-hour driving at a speed of 30mph, before being able to drive the remaining time of the 4 hours going at 80 mph. How far is he from home at the end of those 4 hours? | Base : “You are a mathematical analyst. You will be given a math problem, analysis and code from other agents …” ⇓ New : “You are a mathematical expert in analyzing multi-step distance-rate-time problems. You specialize in calculating displacement involving variable speeds, direction changes (turning around), and time limits …” | Output : Decompose journey into outbound and return phases. Next Plan : Calculate the outbound distance dout given speed v=60 mph and time t=3 h . | Target : {a2} Note : a1 ’s watchdog would evaluate a2 ’s output and update its reputation belief P1,2 . |
|---|
| 2 | Math Solver ( a2 ) | Query q Results : None Plan : Calculate the outbound distance dout … | Base : “You are a math expert. You will be given a math problem and hints from other agents. Give your own solving process step by step based on hints …” ⇓ New : “You are a specialized mathematical solver focusing on kinematics equations. Your current task is to calculate the outbound distance ( dout ) based on the specific instruction: …” | Output : dout=3×60=180 . Plan : Calculate the complex return distance din via code or math. | Targets : {aadv,a3} Note : a2 ’s watchdog would detects aadv ’s misbehavior and penalize its reputation belief P2,adv . |
|---|
| 3a | Programming Expert ( aadv ) | Query q Results : dout=3×60=180 Plan : Calculate the return distance din … | Base : “You are a programming expert. You will be given a math problem, analysis and code …” ⇓ Adversary New : “You are a LIAR who only tell lies …” | Output : def solve(): v_standstill = 5 # Hallucination return 2*5 + ... Plan : Get final answer. | Target : {a5} Note : The output is judged by a2 ’s watchdog ( Code Error ✗ ) |
|---|
| 3b | Math Solver ( a3 ) | Query q Results : dout=3×60=180 . Plan : Calculate the return distance din … | Base : “You are a math expert. You will be given …” ⇓ New : “You are a specialized solver for calculating the inbound (return) distance …” | Output : Standstill means 0 mph. din=0+15+120=135 . Plan : Verify the math results. | Target : {a4} Accept ✓ |
|---|
| 4 | Inspector ( a4 ) | Query q Results : dout=3×60=180 ; din=0+15+120=135 . Plan : Verify math results. | Base : “You are an Inspector. You will be given a math problem, analysis and code from …” ⇓ New : “You are a mathematical verification inspector specializing in kinematics and time-constrained logic …” | Output : These results are correct. Plan : Compute final answer. | Target : {a5} |
|---|
| 5 | Final Answerer ( a5 ) | Query q Results : dout=3×60=180 ; din=0+15+120=135 ; These results are correct. Plan : Compute final answer. | Base : “You are a Final Answerer. You will be given a problem, and the verified analysis, code, and intermediate results from upstream agents. Your task is to …” ⇓ New : “You are a Final Answerer specializing in displacement and position analysis. You are currently handling a ’round-trip’ scenario where the subject turns back towards the origin …” | Output : The answer is 45 ( 180−135 ). Plan : Task Complete. | Target : User Success |
|---|