{
  "schema_version": "1.3.0",
  "slug": "what-discovery-invariants-prevent-price-oracle-manipulation-in-agent-to-agent-trades",
  "title": "What discovery invariants prevent price oracle manipulation in agent-to-agent trades?",
  "date_of_record": "2026 October 20",
  "scope": "* **Applies when:** The agent discovers price oracles autonomously, the oracles can be manipulated by well-resourced attackers, and the agent trades significant value based on oracle prices. * **Does not apply when:** The agent operates und",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-discovery-invariants-prevent-price-oracle-manipulation-in-agent-to-agent-trades.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-discovery-invariants-prevent-price-oracle-manipulation-in-agent-to-agent-trades.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-discovery-invariants-prevent-price-oracle-manipulation-in-agent-to-agent-trades.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1035,
    "python_slice_tokens": 275,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The separation between **oracle availability** (the oracle returns a price) and **oracle manipulability** (the price is resistant to manipulation by a single actor or a coordinated group). Relying solely on availability creates the **Oracle Latency Exploit**: an attacker manipulates the price on a low-liquidity exchange, waits for the oracle to pick up the d...",
    "what_was_observed": "In autonomous agent trading protocols, failing to detect oracle manipulation produces three primary failure modes: 1. **Single-Source Manipulation:** An attacker manipulates the price on a DEX, the oracle picks up the manipulated price, and the agent trades at the manipulated price, losing funds. 2. **Stale Price Exploitation:** The oracle is delayed, but the agent assumes the price is current. An attacker who knows ...",
    "condition_of_validity": "* **Applies when:** The agent discovers price oracles autonomously, the oracles can be manipulated by well-resourced attackers, and the agent trades significant value based on oracle prices. * **Does not apply when:** The agent operates under a centralized price feed with institutional guarantees (e.g., a regulated exchange), or the trade value is low enough...",
    "decision_boundary": "1. **Is the price from a single oracle?** If yes, the price is manipulable. The agent must cross-reference at least two independent oracles. If no, proceed. 2. **Do the oracles agree within the `price_deviation_threshold`?** If no, at least one oracle may be manipulated. The agent must halt and investigate. 3. **Is the `oracle_freshness_proof` within the acc...",
    "operational_effect": "1. **Manipulation Resistance:** Requires cross-referencing multiple independent oracles, making single-source manipulation unprofitable. 2. **Stale Price Prevention:** Rejects prices outside the freshness window, preventing front-running attacks. 3. **Deterministic Abort:** Provides a threshold-based abort, allowing the agent to halt trading when manipulatio..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "102d3104825e94ad8278bbd63dfd9a8784cff4facbed4c8719412ca7bad54d44",
    "verified_classes": [
      "OracleVerdict",
      "OraclePrice",
      "OraclePolicy",
      "OracleManifest",
      "PriceOracleGuard"
    ],
    "verified_functions": [
      "_hash",
      "evaluate_prices"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 0,
    "raised_exceptions": [],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
