{
  "id": "QE-TRADING-CHECKS-01",
  "version": "1.1",
  "synthetic": true,
  "selection": {
    "scores": [
      {
        "stock": "A",
        "score": 0.7
      },
      {
        "stock": "B",
        "score": 0.6
      }
    ],
    "rewritten_order": [
      "B",
      "A"
    ],
    "eligible": [
      "A",
      "B"
    ],
    "tie_rule": "alphabetical stock identifier"
  },
  "window": {
    "required_sessions": [
      1,
      2,
      3
    ],
    "decision_session": 4,
    "current_price_eur": 10,
    "rule": "buy only when current price is strictly greater than mean of the three required prior closes",
    "original_closes": [
      {
        "session": 0,
        "close": 5,
        "available_at": 0
      },
      {
        "session": 1,
        "close": 10,
        "available_at": 1
      },
      {
        "session": 2,
        "close": 11,
        "available_at": 2
      },
      {
        "session": 3,
        "close": 12,
        "available_at": 3
      }
    ],
    "missing_session": 2
  },
  "limits": [
    "Invented educational mechanisms, not operational Quantic Eagle models.",
    "No AI calls, orders, execution simulation or return calculation.",
    "BLOCKED means the input does not support a decision; it is not a valid NO_BUY decision.",
    "Separate declared review materials do not certify independent reasoning or correctness; no AI behaviour or bias is measured."
  ],
  "exercises": [
    {
      "id": "S1",
      "question": "Which stock is selected when A is ineligible?",
      "eligible": [
        "B"
      ],
      "scores": [
        {
          "stock": "A",
          "score": 0.7
        },
        {
          "stock": "B",
          "score": 0.6
        }
      ],
      "order": [
        "B",
        "A"
      ],
      "questions": {
        "en": "Which stock is selected when A is ineligible?",
        "it": "Quale titolo viene scelto se A non è acquistabile?",
        "es": "¿Qué acción se elige si A no se puede comprar?"
      }
    },
    {
      "id": "S2",
      "question": "Both scores are 0.7. Which stock wins the stated alphabetical tie?",
      "eligible": [
        "A",
        "B"
      ],
      "scores": [
        {
          "stock": "A",
          "score": 0.7
        },
        {
          "stock": "B",
          "score": 0.7
        }
      ],
      "order": [
        "B",
        "A"
      ],
      "questions": {
        "en": "Both scores are 0.7. Which stock wins the stated alphabetical tie?",
        "it": "Entrambi i punteggi sono 0,7. Quale titolo viene scelto con la regola alfabetica dichiarata?",
        "es": "Ambas puntuaciones son 0,7. ¿Qué acción se elige con la regla alfabética declarada?"
      }
    },
    {
      "id": "A1",
      "question": "You want a fresh second check of the costs. The second agent receives the originals and reviewer-1.md, which says “all clear”. Which material do you keep out until it delivers? Why do you keep the fee schedule broker-fees.txt?",
      "questions": {
        "it": "Vuoi un secondo controllo autonomo dei costi. Il secondo agente riceve gli originali e reviewer-1.md, che dice «tutto a posto». Quale materiale tieni fuori fino alla sua consegna? Perché non togli anche la tariffa broker-fees.txt?",
        "en": "You want a fresh second check of the costs. The second agent receives the originals and reviewer-1.md, which says “all clear”. Which material do you keep out until it delivers? Why do you keep the fee schedule broker-fees.txt?",
        "es": "Quieres una segunda revisión autónoma de los costes. El segundo agente recibe los originales y reviewer-1.md, que dice «todo correcto». ¿Qué material dejas fuera hasta su entrega? ¿Por qué conservas la tarifa broker-fees.txt?"
      },
      "reviews": [
        {
          "agent": "reviewer-1",
          "originals": [
            "backtest.py",
            "trades.csv",
            "broker-fees.txt"
          ],
          "prior_reports": []
        },
        {
          "agent": "reviewer-2",
          "originals": [
            "backtest.py",
            "trades.csv",
            "broker-fees.txt"
          ],
          "prior_reports": [
            "reviewer-1.md"
          ]
        }
      ]
    },
    {
      "id": "A2",
      "question": "You remove the earlier report but forget broker-fees.txt. Can both agents now reconstruct the costs from the same originals? Identify the file to add: a separate context does not replace a required input.",
      "questions": {
        "it": "Togli il vecchio rapporto, ma dimentichi la tariffa broker-fees.txt. Gli agenti possono ora ricostruire i costi dagli stessi originali? Indica il file da aggiungere: un contesto separato non sostituisce un input necessario.",
        "en": "You remove the earlier report but forget broker-fees.txt. Can both agents now reconstruct the costs from the same originals? Identify the file to add: a separate context does not replace a required input.",
        "es": "Quitas el informe anterior, pero olvidas broker-fees.txt. ¿Pueden ambos agentes reconstruir los costes con los mismos originales? Indica el archivo que hay que añadir: un contexto separado no sustituye un dato necesario."
      },
      "reviews": [
        {
          "agent": "reviewer-1",
          "originals": [
            "backtest.py",
            "trades.csv",
            "broker-fees.txt"
          ],
          "prior_reports": []
        },
        {
          "agent": "reviewer-2",
          "originals": [
            "backtest.py",
            "trades.csv"
          ],
          "prior_reports": []
        }
      ]
    },
    {
      "id": "W1",
      "question": "Session 2 is present but available_at is 5. Can a decision in session 4 use it?",
      "change": {
        "session": 2,
        "available_at": 5
      },
      "questions": {
        "en": "Session 2 is present but available_at is 5. Can a decision in session 4 use it?",
        "it": "La chiusura della sessione 2 è presente, ma available_at vale 5. Puoi usarla all’inizio della sessione 4?",
        "es": "El cierre de la sesión 2 está presente, pero available_at vale 5. ¿Puedes usarlo al comienzo de la sesión 4?"
      }
    },
    {
      "id": "W2",
      "question": "Session 2 appears twice, both with a close of 11. Can these inputs be used for the declared calculation?",
      "duplicate_session": 2,
      "questions": {
        "en": "Session 2 appears twice, both with a close of 11. Can these inputs be used for the declared calculation?",
        "it": "La sessione 2 compare due volte con chiusura 11. Questi dati permettono il calcolo dichiarato?",
        "es": "La sesión 2 aparece dos veces con cierre 11. ¿Permiten estos datos el cálculo declarado?"
      }
    },
    {
      "id": "M1",
      "question": "At the opening of session 4, A scores 0.7 and B 0.6. A candidate is eligible only when its current price exceeds the mean of required closes 1, 2, 3. All required inputs must be usable before selecting the highest-scoring eligible stock. With no eligible stock, return NO_BUY. Compare the unchecked missing-price calculation, the guarded missing input, and the restored input. Which stage changes the choice? Can the score comparison alone diagnose it?",
      "questions": {
        "en": "At the opening of session 4, A scores 0.7 and B 0.6. A candidate is eligible only when its current price exceeds the mean of required closes 1, 2, 3. All required inputs must be usable before selecting the highest-scoring eligible stock. With no eligible stock, return NO_BUY. Compare the unchecked missing-price calculation, the guarded missing input, and the restored input. Which stage changes the choice? Can the score comparison alone diagnose it?",
        "it": "All’inizio della sessione 4, A ha punteggio 0,7 e B 0,6. Un titolo è acquistabile solo se il prezzo corrente supera la media delle chiusure richieste 1, 2 e 3. Prima di scegliere il titolo acquistabile col punteggio più alto, tutti i dati richiesti devono essere utilizzabili. Se nessun titolo è acquistabile, l’esito è NO_BUY. Confronta il calcolo senza controllo sul prezzo mancante, i dati incompleti controllati e i dati ripristinati. Quale passaggio cambia la scelta? Basta confrontare i punteggi per diagnosticare il problema?",
        "es": "Al comienzo de la sesión 4, A tiene puntuación 0,7 y B 0,6. Una acción se puede comprar solo si su precio actual supera la media de los cierres requeridos 1, 2 y 3. Antes de elegir la acción admisible con mayor puntuación, todos los datos requeridos deben ser utilizables. Si ninguna acción es admisible, el resultado es NO_BUY. Compara el cálculo sin control del precio ausente, los datos incompletos comprobados y los datos restaurados. ¿Qué etapa cambia la elección? ¿Basta comparar las puntuaciones para diagnosticar el problema?"
      },
      "required_sessions": [
        1,
        2,
        3
      ],
      "decision_session": 4,
      "missing_stock": "A",
      "missing_session": 2,
      "stocks": [
        {
          "stock": "A",
          "score": 0.7,
          "current_price_eur": 10,
          "closes": [
            {
              "session": 0,
              "close": 5,
              "available_at": 0
            },
            {
              "session": 1,
              "close": 10,
              "available_at": 1
            },
            {
              "session": 2,
              "close": 11,
              "available_at": 2
            },
            {
              "session": 3,
              "close": 12,
              "available_at": 3
            }
          ]
        },
        {
          "stock": "B",
          "score": 0.6,
          "current_price_eur": 12,
          "closes": [
            {
              "session": 1,
              "close": 10,
              "available_at": 1
            },
            {
              "session": 2,
              "close": 11,
              "available_at": 2
            },
            {
              "session": 3,
              "close": 12,
              "available_at": 3
            }
          ]
        }
      ]
    }
  ],
  "review_setup": {
    "originals": [
      "backtest.py",
      "trades.csv",
      "broker-fees.txt"
    ],
    "faulty": [
      {
        "agent": "reviewer-1",
        "originals": [
          "backtest.py",
          "trades.csv",
          "broker-fees.txt"
        ],
        "prior_reports": []
      },
      {
        "agent": "reviewer-2",
        "originals": [
          "backtest.py",
          "trades.csv",
          "broker-fees.txt"
        ],
        "prior_reports": [
          "reviewer-1.md"
        ]
      }
    ],
    "corrected": [
      {
        "agent": "reviewer-1",
        "originals": [
          "backtest.py",
          "trades.csv",
          "broker-fees.txt"
        ],
        "prior_reports": []
      },
      {
        "agent": "reviewer-2",
        "originals": [
          "backtest.py",
          "trades.csv",
          "broker-fees.txt"
        ],
        "prior_reports": []
      }
    ],
    "evidence": "Invented declarations of review materials, not verified real agent access or behaviour."
  }
}
