{"components":{"schemas":{"AbstentionInput":{"properties":{"actor_id":{"description":"The source who did not answer. Must be an actor in `actors` — an\nabstention by nobody is absence, and the payload is REJECTED rather\nthan inventing the source it is a fact about.","type":"string"},"cause":{"description":"`\"source_silent\"` (the SOURCE did not assert) or `\"unreadable\"` (the\nPIPELINE could not extract an answer from what they said). Defaults to\n`\"source_silent\"`.\n\nThe distinction decides what `\"source_silence\"` fuses, so a payload that\nlabels a parse failure as a source's silence charges a witness for a\ntool's limits.","type":["string","null"]},"note":{"description":"Where in the record the hole is. Free text, quoted from the record by\nthe emitting adapter; never synthesized.","type":["string","null"]},"predicate":{"type":"string"},"subject_id":{"type":"string"}},"required":["actor_id","subject_id","predicate"],"type":"object"},"AccumulativeAnalysis":{"description":"Accumulative analysis output: conditional conclusions showing how the\nverdict changes under different distinction conditions.","properties":{"conditional_conclusions":{"items":{"$ref":"#/components/schemas/ConditionalConclusionOutput"},"type":"array"}},"required":["conditional_conclusions"],"type":"object"},"ActorInput":{"properties":{"base_reliability":{"format":"double","type":["number","null"]},"competence":{"additionalProperties":{"format":"double","type":"number"},"description":"Per-predicate competence scores (0–1). Optional.\nEffective reliability = disposition × competence(predicate) × conflict_penalties.","propertyNames":{"type":"string"},"type":["object","null"]},"default_competence":{"description":"Fallback competence when no predicate-specific score exists. Defaults to 1.0.","format":"double","type":["number","null"]},"depends_on":{"description":"Actor IDs this source is **not independent of** — it repeats,\nsyndicates, or derives from them.\n\nThis is the field that makes corroboration mean something. Without\nit the engine treats every actor as an independent source, so forty\noutlets reprinting one wire story fuse as forty confirmations\ninstead of one. Declaring the wire service here collapses them into\na single dependency group, so their agreement counts once.\n\nIDs that do not name an actor in this payload are reported as\nwarnings and ignored, not rejected: a typo should cost you the\ncorrelation, not the whole run.","items":{"type":"string"},"type":["array","null"]},"id":{"type":"string"},"name":{"type":"string"},"source_type":{"description":"Source class, which sets the actor's default credibility and temporal decay rate. Matching is case-insensitive on the wire (`\"expert\"` works); the `enum` above lists the canonical casing, which is what a strict JSON Schema validator requires. \n\nSession endpoints (create/update session, add actor) reject an unrecognised value at write time with HTTP 400 naming the legal set. The one-shot `/investigations/analyze` endpoint and the `arbiter_submit_investigation` MCP tool do not run that check: there, an unrecognised value degrades to `Anonymous` — the lowest-trust variant, so a typo can only lose credibility, never gain it — and is reported in the result's `warnings`. \n\nCall the `arbiter_list_source_types` MCP tool, or `arbiter_get_docs` with no arguments, for the reliability anchor and temporal decay multiplier of each value.","enum":["Analyst","Journalist","Expert","Researcher","Insider","Regulator","Institutional","Vendor","Anonymous","SocialMedia","Troll"],"examples":["Expert"],"type":"string"}},"required":["id","name","source_type"],"type":"object"},"ArgumentationSummary":{"properties":{"accepted_claims":{"description":"Claims that survive all challenges (internal IDs, kept for backwards compat).","items":{"type":"string"},"type":"array"},"alternative_interpretations":{"description":"Alternative coherent interpretations of the evidence (internal IDs, kept for backwards compat).","items":{"items":{"type":"string"},"type":"array"},"type":"array"},"causal_chains":{"items":{"$ref":"#/components/schemas/CausalChainSummary"},"type":"array"},"dispute_level":{"description":"How contested the narrative is (0 = consensus, higher = more disputed)","format":"double","type":"number"},"interpretations":{"description":"Rich interpretation trees: one per preferred extension, with full claim\ncontext, attack/support edges, and credibility opinions.","items":{"$ref":"#/components/schemas/InterpretationTree"},"type":"array"},"is_exact":{"description":"True if all interpretations were computed exhaustively.\nFalse if the analysis was too large and used an approximation.","type":"boolean"},"scope_tensions":{"description":"Directionally opposed claim pairs whose differing scopes suppressed\nthe rebut attack between them (issue #1762). `dispute_level` does not\nreflect these pairs — the attack never entered the framework — so\nthey are surfaced here instead. Empty when every opposed pair either\nshares a scope or was never scope-qualified.","items":{"$ref":"#/components/schemas/ScopeTensionOutput"},"type":"array"}},"required":["accepted_claims","alternative_interpretations","dispute_level","causal_chains","is_exact","interpretations"],"type":"object"},"AttackEdge":{"properties":{"attacker_claim_id":{"type":"string"},"description":{"type":"string"},"target_claim_id":{"type":"string"}},"required":["attacker_claim_id","target_claim_id","description"],"type":"object"},"AuditClaimRow":{"description":"One claim, fully resolved. Field set and order mirror `AuditTab.tsx`'s\n`AuditRow` exactly.","properties":{"actor_id":{"type":"string"},"actor_name":{"type":"string"},"asserted_at":{"type":"string"},"base_reliability":{"format":"double","type":["number","null"]},"below_credibility_floor":{"type":"boolean"},"category":{"type":"string"},"claim_id":{"type":"string"},"claim_type":{"type":"string"},"content":{"type":"string"},"corroboration_count":{"minimum":0,"type":"integer"},"decay_origin":{"type":"string"},"effective_half_life_days":{"format":"double","type":["number","null"]},"epistemic_status":{"type":"string"},"evidence_count":{"minimum":0,"type":"integer"},"expected_probability":{"format":"double","type":["number","null"]},"freshness_score":{"format":"double","type":"number"},"last_corroborated":{"type":"string"},"neutral_count":{"format":"int64","type":"integer"},"opposition":{"format":"double","type":"number"},"predicate":{"type":"string"},"rank":{"minimum":0,"type":["integer","null"]},"refuting_count":{"format":"int64","type":"integer"},"scope":{"type":"string"},"source_type":{"type":"string"},"subject_id":{"type":"string"},"subject_name":{"type":"string"},"support":{"format":"double","type":"number"},"supporting_count":{"format":"int64","type":"integer"},"temporal_decay_factor":{"format":"double","type":"number"},"truth_status":{"type":"string"},"uncertainty":{"format":"double","type":"number"},"valence":{"type":"string"},"value":{"type":"string"}},"required":["claim_id","actor_id","actor_name","source_type","subject_id","subject_name","predicate","value","content","valence","claim_type","scope","epistemic_status","truth_status","support","opposition","uncertainty","supporting_count","refuting_count","neutral_count","freshness_score","temporal_decay_factor","asserted_at","decay_origin","last_corroborated","corroboration_count","evidence_count","category","below_credibility_floor"],"type":"object"},"AuditDetail":{"properties":{"claim_credibility":{"items":{"$ref":"#/components/schemas/ClaimCredibility"},"type":"array"},"ranked_claims":{"items":{"$ref":"#/components/schemas/RankedClaim"},"type":"array"},"sensitivity_analysis":{"$ref":"#/components/schemas/SensitivityAnalysis"}},"required":["ranked_claims","sensitivity_analysis","claim_credibility"],"type":"object"},"AuditTrace":{"description":"The resolved audit trace: one row per input claim, joined against its\nactor, subject, and (when the session has been judged) its credibility\nanalysis and rank.","properties":{"claims":{"items":{"$ref":"#/components/schemas/AuditClaimRow"},"type":"array"}},"required":["claims"],"type":"object"},"CausalChainSummary":{"properties":{"argument_ids":{"items":{"type":"string"},"type":"array"}},"required":["argument_ids"],"type":"object"},"ClaimAnalysisSummary":{"properties":{"actor_id":{"type":"string"},"assertion_time":{"description":"When this claim was asserted (RFC 3339), if known.","type":["string","null"]},"below_credibility_floor":{"description":"True if the actor's reliability fell below the credibility floor.\nThe claim is visible but its evidence counts are zeroed.\n\nRef: Hansson et al. (2001), \"Credibility Limited Revision\"","type":"boolean"},"bounded":{"description":"[`ClaimInput::bounded`], echoed unchanged (#2011 I0).","type":"boolean"},"claim_id":{"type":"string"},"corroboration_count":{"description":"Number of valid corroboration events for this claim.","minimum":0,"type":"integer"},"decay_origin":{"description":"The time from which decay was computed (RFC 3339). Equals assertion_time\nif no corroboration; equals the most recent effective corroboration time\notherwise.","type":["string","null"]},"direction":{"description":"Which way the claim points at the proposition: \"supports\",\n\"opposes\", or \"neutral\" (from the claim's valence).  Orthogonal to\ncredibility.  Added for issue #1756; absent on older judgements.","type":"string"},"effective_half_life_days":{"description":"The effective half-life in days used for this specific claim's decay,\nafter applying claim-type and source-authority multipliers.","format":"double","type":"number"},"epistemic_status":{"description":"Epistemic lifecycle status: \"conjecture\", \"hypothesis\", \"theory\", \"law\",\n\"superseded\", \"retracted\".","type":"string"},"expected_probability":{"format":"double","type":"number"},"freshness_score":{"description":"Composite freshness score (0.0-1.0). Combines temporal decay (70%),\ncorroboration recency (20%), and epistemic status factor (10%).","format":"double","type":"number"},"half_life_source":{"description":"Which multiplier dominated `effective_half_life_days`: \"override\",\n\"domain\", \"claim_type\", \"source_authority\", or \"epistemic_status\".\n\"override\" means the claim's own `decay_half_life_days` set the\nvalue directly; \"domain\" means no multiplier moved it off the base\nhalf-life; the other three name whichever multiplier sat farthest\nfrom 1.0.\nAdded for issue #2155; absent on judgements persisted before that\nchange, so deserializing an old stored session result must not fail.","type":"string"},"last_corroborated":{"description":"Most recent corroboration time (RFC 3339), if any.","type":["string","null"]},"neutral_count":{"format":"int64","type":"integer"},"opposition":{"format":"double","type":"number"},"predicate":{"type":"string"},"refuting_count":{"format":"int64","type":"integer"},"suggested_epistemic_status":{"description":"System-suggested epistemic status based on evidence accumulation.\nOnly present when it differs from the current epistemic_status.","type":["string","null"]},"support":{"format":"double","type":"number"},"supporting_count":{"format":"int64","type":"integer"},"temporal_decay_factor":{"description":"Temporal decay multiplier applied to this claim's evidence weight.\n1.0 = recent claim (full weight); 0.5 = one half-life old.\nComputed using: `base_half_life × claim_type_mult × source_authority_mult`.","format":"double","type":"number"},"truth_status":{"description":"Truth status of the CLAIM's credibility, derived from the fused\nopinion below by one rule (τ = 0.15): belief ≥ τ and disbelief < τ →\n\"True\" (evidence supports it); disbelief ≥ τ and belief < τ → \"False\"\n(cited evidence does not carry it);\nboth ≥ τ → \"Both\" (contradicted); otherwise \"Neither\".  Direction\nrelative to the research question is the separate `direction` field.","type":"string"},"uncertainty":{"format":"double","type":"number"},"value":{"type":"string"},"value_norm":{"description":"[`ClaimInput::value_norm`], echoed unchanged (#2011 I0). Nothing in\nthe engine touched it; it is here so the ranged reading the caller\nsupplied comes back out with the judgement instead of being dropped at\nthe door.","type":"object"}},"required":["claim_id","predicate","value","actor_id","truth_status","expected_probability","support","opposition","uncertainty","supporting_count","refuting_count","neutral_count","temporal_decay_factor","effective_half_life_days","epistemic_status","freshness_score"],"type":"object"},"ClaimAnalysisWire":{"properties":{"actor_id":{"type":"string"},"assertion_time":{"type":["string","null"]},"bounded":{"type":"boolean"},"claim_id":{"type":"string"},"corroboration_count":{"minimum":0,"type":"integer"},"decay_origin":{"type":["string","null"]},"epistemic_status":{"type":"string"},"freshness_score":{"format":"double","type":"number"},"last_corroborated":{"type":["string","null"]},"predicate":{"type":"string"},"suggested_epistemic_status":{"type":["string","null"]},"truth_status":{"type":"string"},"value":{"type":"string"},"value_norm":{"type":"object"}},"required":["claim_id","predicate","value","actor_id","truth_status","epistemic_status","freshness_score"],"type":"object"},"ClaimCredibility":{"properties":{"below_credibility_floor":{"type":"boolean"},"claim_id":{"type":"string"},"direction":{"type":"string"},"effective_half_life_days":{"format":"double","type":"number"},"expected_probability":{"format":"double","type":"number"},"half_life_source":{"type":"string"},"neutral_count":{"format":"int64","type":"integer"},"opposition":{"format":"double","type":"number"},"refuting_count":{"format":"int64","type":"integer"},"support":{"format":"double","type":"number"},"supporting_count":{"format":"int64","type":"integer"},"temporal_decay_factor":{"format":"double","type":"number"},"uncertainty":{"format":"double","type":"number"}},"required":["claim_id","expected_probability","support","opposition","uncertainty","supporting_count","refuting_count","neutral_count","temporal_decay_factor","effective_half_life_days"],"type":"object"},"ClaimInput":{"properties":{"actor_id":{"type":"string"},"assertion_time":{"description":"ISO 8601 / RFC 3339 timestamp (e.g. \"2024-01-15T09:30:00Z\").","type":["string","null"]},"attribution":{"description":"Attribution depth: `\"firsthand\"` (the actor asserts the proposition) or\n`\"reported\"` (the actor attributes it to somebody else). Defaults to\n`\"firsthand\"` if absent, which discounts nothing — omitting this field\nyields exactly the pre-#1388 judgement.\n\n`\"reported\"` scales the actor's testimony mass down in BOTH\ndirections; it can never make a claim argue more strongly, for or\nagainst.","type":["string","null"]},"bounded":{"description":"**The value is a BOUNDED quantity** — an interval, not a point\n(#2011 I0). Distinct from `value_norm` being an `Interval`: the bound\ncue routinely sits OUTSIDE the value's own span on real text (\"was\nestimated at up to $3.2 billion\"), so the producer carries the two\nseparately and so does this. Echoed back, read by nothing.","type":"boolean"},"claim_type":{"description":"\"Factual\", \"Predictive\", \"Evaluative\", \"Causal\", or \"Procedural\".\nDefaults to \"Factual\" if absent. Predictive/Evaluative/Causal claims\ncarry inherently more uncertainty.","type":["string","null"]},"content":{"type":"string"},"corroboration_events":{"description":"Corroboration events: independent confirmations of this claim at later\ntimes. They raise the corroboration count, feed the suggested\nepistemic status, and appear in the corroboration graph. They do not\nreset the temporal decay clock: since #1343 decay always runs from\nthe claim's assertion time, because a later corroboration is a new\nobservation at its own time rather than a reset of the old one.","items":{"$ref":"#/components/schemas/CorroborationEventInput"},"type":"array"},"decay_half_life_days":{"description":"Per-claim half-life override in days.  When set, bypasses the computed\n`base_half_life × claim_type_multiplier × source_authority_multiplier`.","format":"double","type":["number","null"]},"document":{"type":["string","null"]},"epistemic_status":{"description":"Epistemic lifecycle status. One of: \"conjecture\", \"hypothesis\" (default),\n\"theory\", \"law\", \"superseded\", \"retracted\". Affects temporal decay rate.","type":["string","null"]},"event_end_time":{"description":"ISO 8601 end of the event window; absent means open.","type":["string","null"]},"event_start_time":{"description":"ISO 8601 start of the event window; absent means open.","type":["string","null"]},"id":{"type":"string"},"predicate":{"type":"string"},"relationships":{"description":"Explicit relationships to other claims (by claim ID).\nEach entry is an object: `{\"type\": \"complements\"|\"refines\"|\"qualifies\"|\n\"supersedes\"|\"challenges_methodology\", \"target_claim_id\": \"...\"}`.","items":{"$ref":"#/components/schemas/ClaimRelationshipInput"},"type":["array","null"]},"scope":{"description":"Scope qualifier — disambiguates claims on the same predicate that\nmeasure different things.  Examples: \"global\", \"US\", \"nominal\",\n\"risk-adjusted\", \"top-quartile\".  Claims with different scopes on the\nsame predicate are not treated as contradictions.\nThat is the v1 engine, which answers every request. The v2 judge (#2488,\nobservation only for now) carries the scope on the claim but does not\nsuppress a rebut by it: only a `distinction` does.","type":["string","null"]},"subject_id":{"description":"Set for regular claims; empty / absent for meta-claims.","type":["string","null"]},"supersedes_claim_id":{"description":"ID of the claim this one supersedes. The superseded claim's epistemic status\nis automatically set to \"superseded\" and its effective half-life drops to 25%.","type":["string","null"]},"target_claim_id":{"description":"Set for meta-claims; empty / absent for regular claims.","type":["string","null"]},"valence":{"description":"\"Supports\", \"Refutes\", or \"Neutral\". Defaults to \"Supports\" if absent,\nwith a warning. A \"Neutral\" claim does not vote on the subject verdict\n(#1768).","type":["string","null"]},"value":{"type":"string"},"value_norm":{"description":"**The producer's STRUCTURED reading of `value`** — carried beside the\nverbatim string, never instead of it (#2011 I0).\n\n`value` stays exactly the bytes the source printed, because that is\nwhat the engine compares and what a reviewer is shown. This field is\nwhat survives the hop for a quantity a document-extraction producer\nparsed: a structured interval reaching Arbiter as the prose string\n`\"at least 25,000\"` loses the range, and the range is the point of a\nranged record.\n\n**The engine does not read it.** It is echoed back on\n[`ClaimAnalysisSummary::value_norm`] so the record handed to a caller\ncarries the range it was given. Fusion, contradiction detection and\ndecay are all unchanged by its presence — deliberately, so that wiring\nthe range costs no adjudicated material.","type":"object"}},"required":["id","actor_id","predicate","value","content"],"type":"object"},"ClaimRelationshipInput":{"properties":{"relationship_type":{"description":"One of: \"complements\", \"refines\", \"qualifies\", \"supersedes\",\n\"challenges_methodology\".","type":"string"},"target_claim_id":{"description":"The ID of the related claim.","type":"string"}},"required":["relationship_type","target_claim_id"],"type":"object"},"ConditionalConclusionOutput":{"description":"A single conditional conclusion from a distinction.","properties":{"condition":{"type":"string"},"distinction_id":{"type":"string"},"expected_probability":{"format":"double","type":"number"},"favored_claim_id":{"type":"string"},"opinion":{"$ref":"#/components/schemas/OpinionSummary"}},"required":["distinction_id","condition","favored_claim_id","expected_probability","opinion"],"type":"object"},"CorroboratedClaim":{"properties":{"claim_id":{"type":"string"},"corroboration_count":{"minimum":0,"type":"integer"},"freshness_score":{"format":"double","type":"number"},"last_corroborated":{"type":"string"}},"required":["claim_id","corroboration_count","last_corroborated","freshness_score"],"type":"object"},"CorroborationEventInput":{"properties":{"actor_id":{"description":"ID of the actor who corroborated. Must differ from the claim's actor_id.","type":"string"},"description":{"description":"Description of the corroborating evidence.","type":"string"},"time":{"description":"When the corroboration occurred (ISO 8601 / RFC 3339).","type":"string"}},"required":["time","actor_id"],"type":"object"},"CreateSessionRequest":{"properties":{"name":{"description":"Required session name: non-empty, max 2000 chars.","type":"string"},"payload":{"oneOf":[{"$ref":"#/components/schemas/InvestigationInput","description":"Initial investigation payload. Defaults to an empty investigation."},{"type":"null"}]},"session_id":{"description":"Unicode session ID. Auto-generated if omitted.","type":["string","null"]},"workspace_id":{"description":"Workspace to create the session in. Omit for your default workspace.\nA workspace you do not own answers 404.","type":["string","null"]}},"required":["name"],"type":"object"},"CreateSessionResponse":{"properties":{"session_id":{"type":"string"}},"required":["session_id"],"type":"object"},"CreateWorkspaceRequest":{"properties":{"description":{"description":"Optional free-text description, max 8000 chars.","type":["string","null"]},"name":{"description":"Required workspace name: non-empty, max 2000 chars.","type":"string"},"workspace_id":{"description":"Custom workspace id. Auto-generated if omitted. Ids are namespaced\nper user, so one you choose cannot collide with another account's.","type":["string","null"]}},"required":["name"],"type":"object"},"CreateWorkspaceResponse":{"properties":{"workspace_id":{"type":"string"}},"required":["workspace_id"],"type":"object"},"DeleteResponse":{"properties":{"claims_retracted":{"description":"**Always false in v1.** Deleting a file stops it being re-ingested and\nremoves its bytes, but the claims already published into the workspace\ncorpus stay there until the next full re-extraction: `wita cloud` has\nno retraction verb. Reported as a field rather than described in a\nchangelog, because a caller who assumes otherwise is wrong about what\ntheir workspace now says.","type":"boolean"},"file_id":{"type":"string"},"status":{"type":"string"},"versions_removed":{"description":"Versions whose uploaded object was removed.","minimum":0,"type":"integer"}},"required":["file_id","status","versions_removed","claims_retracted"],"type":"object"},"DistinctionInput":{"description":"A distinction between two conflicting arguments.","properties":{"argument_a":{"description":"First argument (claim ID, user-supplied).","type":"string"},"argument_b":{"description":"Second argument (claim ID, user-supplied).","type":"string"},"condition_a":{"description":"Condition under which argument_a applies.","type":"string"},"condition_b":{"description":"Condition under which argument_b applies.","type":"string"},"description":{"type":["string","null"]},"feature":{"description":"The feature that differentiates the cases (e.g. \"scope\", \"timeframe\").","type":"string"},"id":{"type":"string"}},"required":["id","argument_a","argument_b","feature","condition_a","condition_b"],"type":"object"},"ErrorResponse":{"description":"Error response returned when a request fails.","properties":{"error":{"type":"string"}},"required":["error"],"type":"object"},"EvidenceGap":{"description":"A single evidence gap: a subject-predicate pair where additional data would\nmost reduce uncertainty or resolve contestation.","properties":{"discriminating_claims":{"description":"Claims that appear in some but not all preferred extensions — the locus\nof narrative disagreement.  Evidence targeting these claims would best\ndiscriminate between competing interpretations.\n\nRef: Good (1985) \"Weight of Evidence\"; Schum (1994) \"Evidential Foundations\"","items":{"type":"string"},"type":"array"},"expected_probability":{"description":"Current expected probability.","format":"double","type":"number"},"is_contested":{"description":"Whether this predicate is contested (multiple conflicting interpretations).","type":"boolean"},"potential_shift":{"description":"Estimated probability shift if one strong confirming evidence were added.\nComputed by simulating +1 evidence count and re-fusing.","format":"double","type":"number"},"predicate":{"type":"string"},"subject_id":{"type":"string"},"suggestion":{"description":"Human-readable suggestion for what evidence would be most valuable.","type":"string"},"uncertainty":{"description":"Current uncertainty level (0 = certain, 1 = no evidence).","format":"double","type":"number"}},"required":["subject_id","predicate","uncertainty","expected_probability","potential_shift","is_contested","suggestion"],"type":"object"},"EvidenceInput":{"properties":{"claim_id":{"type":"string"},"content":{"type":"string"},"document":{"type":["string","null"]},"id":{"type":"string"},"valence":{"description":"\"Supports\", \"Refutes\", or \"Neutral\" (case-insensitive).\n\nRelative to the CLAIM it is attached to: `Supports` corroborates it,\n`Refutes` undercuts it. Never copy the claim's valence onto rows.","type":"string"},"weight":{"format":"double","type":["number","null"]}},"required":["id","claim_id","content","valence"],"type":"object"},"GetDocsInput":{"description":"Input shape for `arbiter_get_docs`.  Lives here rather than in `mcp.rs` so the\ntool's schema and dispatch dispatch sit next to the registry entry that\ndescribes it.","properties":{"tool":{"description":"Name of a specific tool to fetch detailed documentation for\n(e.g. `arbiter_submit_investigation`, `arbiter_create_investigation_session`).\nOmit to list every tool with its one-line summary.","type":["string","null"]}},"type":"object"},"InferenceInput":{"description":"An inference argument: a derived conclusion from premise claims via a\ntyped inference rule.","properties":{"description":{"type":["string","null"]},"id":{"type":"string"},"predicate":{"description":"The predicate this inference applies to.","type":"string"},"premise_claim_ids":{"description":"Premise claim IDs (user-supplied, resolved to internal IDs).","items":{"type":"string"},"type":"array"},"rule_param":{"description":"Rule-specific parameter: ordering (a_fortiori), shared_feature\n(analogy), exemplar (generalization), description (default),\nname (custom).","type":["string","null"]},"rule_param2":{"description":"Secondary parameter for custom rules (description).","type":["string","null"]},"rule_type":{"description":"One of: \"a_fortiori\", \"analogy\", \"generalization\",\n\"expert_testimony\", \"default\", \"temporal_precedence\", \"custom\".","type":"string"},"subject_id":{"description":"The subject this inference applies to.","type":"string"}},"required":["id","subject_id","predicate","premise_claim_ids","rule_type"],"type":"object"},"InterpretationClaim":{"properties":{"actor_id":{"description":"Which actor made this claim.","type":"string"},"actor_name":{"description":"The actor's name.","type":"string"},"belief":{"description":"Credibility opinion for this claim.","format":"double","type":"number"},"claim_id":{"description":"The user-supplied claim ID (not internal).","type":"string"},"content":{"description":"The claim content/description.","type":"string"},"direction":{"description":"\"supports\", \"opposes\", or \"neutral\"; empty for inference arguments.","type":"string"},"disbelief":{"format":"double","type":"number"},"expected_probability":{"format":"double","type":"number"},"predicate":{"description":"What they claimed (predicate = value).","type":"string"},"truth_status":{"description":"Belnap status of the claim's credibility (see\n`ClaimAnalysisSummary::belnap_status` for the rule).","type":"string"},"uncertainty":{"format":"double","type":"number"},"value":{"type":"string"}},"required":["claim_id","actor_id","actor_name","predicate","value","content","belief","disbelief","uncertainty","expected_probability","truth_status"],"type":"object"},"InterpretationResponse":{"properties":{"interpretation":{"type":["string","null"]},"interpretation_updated_at":{"type":["string","null"]},"session_id":{"type":"string"}},"required":["session_id"],"type":"object"},"InterpretationTree":{"description":"A coherent interpretation of the evidence — one preferred extension rendered\nwith full claim context, edge info, and credibility opinions.","properties":{"accepted_claims":{"description":"The claims accepted in this interpretation, with full context.","items":{"$ref":"#/components/schemas/InterpretationClaim"},"type":"array"},"attacks":{"description":"Attack edges within this interpretation context.","items":{"$ref":"#/components/schemas/AttackEdge"},"type":"array"},"coherence_score":{"description":"Narrative coherence score (0.0-1.0): how well this interpretation\nhangs together as a story.  Combines evidential coverage (25%),\ninternal support density (25%), and mean credibility (50%).\n\nRef: Thagard (2000) \"Coherence in Thought and Action\" (ECHO);\n     Bex (2011) \"Arguments, Stories and Criminal Evidence\"","format":"double","type":"number"},"label":{"description":"Human-readable label: \"Interpretation 1\", \"Interpretation 2\", etc.","type":"string"},"supports":{"description":"Support edges within this interpretation context.","items":{"$ref":"#/components/schemas/SupportEdge"},"type":"array"}},"required":["label","coherence_score","accepted_claims","attacks","supports"],"type":"object"},"InvestigationInput":{"properties":{"abstention_mode":{"description":"How abstentions reach a verdict. One of:\n\n- `\"ignore\"` — recorded, never fused. The pre-#1388 judgement, exactly.\n- `\"source_silence\"` — DEFAULT. Only `\"source_silent\"` abstentions\n  widen: a witness is charged for what the witness did.\n- `\"all_recorded\"` — `\"unreadable\"` abstentions widen too, disclosing\n  how much of the record never reached the judge. Under it a verdict\n  moves when the EXTRACTOR improves, which a reader will mistake for\n  evidence about the source.\n- `\"adverse_inference\"` — **the legal rule, and the only setting in this\n  engine that manufactures a direction out of silence.** A silent source\n  is fused as though they had DENIED the proposition and adds a refuting\n  count. Choose it only in a proceeding where a party is under a duty to\n  answer.","type":["string","null"]},"abstentions":{"description":"Abstentions: sources who addressed a proposition and committed no answer\nto it (issue #1388).\n\nA source who was never asked is ABSENT — do not list them here. What\nthis records is a hole the record actually shows, and under every\n`abstention_mode` but `\"adverse_inference\"` it can only widen that\nproposition's uncertainty; it never argues for it or against it and\nnever changes a Belnap status.","items":{"$ref":"#/components/schemas/AbstentionInput"},"type":"array"},"actors":{"items":{"$ref":"#/components/schemas/ActorInput"},"type":"array"},"claims":{"items":{"$ref":"#/components/schemas/ClaimInput"},"type":"array"},"decay_half_life_days":{"description":"Explicit temporal half-life in days, overriding the domain default.\nA claim this many days old has half its original evidence weight.","format":"double","type":["number","null"]},"dependent_refresh_factor":{"description":"Accepted for compatibility. It has no effect.\n\nThis controlled how much dependent-source corroboration refreshed the\ntemporal decay clock. #1343 removed that shortcut, because a later\ncorroboration is a new observation at its own time, not a reset of\nthe old one. Decay now always runs from the claim's assertion time,\nso there is no clock left for this factor to refresh. A value sent\nhere is stored and ignored rather than rejected, so existing callers\nkeep working.","format":"double","type":["number","null"]},"distinctions":{"description":"Distinctions between conflicting arguments.  When registered, the\nattack between the pair is suppressed and both survive under their\nrespective conditions.  Their presence is the sole trigger for\naccumulative analysis — no separate flag is required.","items":{"$ref":"#/components/schemas/DistinctionInput"},"type":"array"},"domain":{"description":"Knowledge domain that sets the default temporal half-life for claims.\nOne of: \"Finance\" (180d), \"News\" (90d), \"Technology\" (365d),\n\"Geopolitics\" (2yr), \"Medicine\" (10yr), \"Science\" (25yr),\n\"Legal\" (20yr), \"General\" (180d). Case-insensitive. Defaults to \"General\".","type":["string","null"]},"evidence":{"items":{"$ref":"#/components/schemas/EvidenceInput"},"type":["array","null"]},"inferences":{"description":"Inference arguments: derived conclusions from premise claims via\ntyped inference rules.  Optional; when absent, the investigation\nproceeds with flat (premise-only) argumentation as before.","items":{"$ref":"#/components/schemas/InferenceInput"},"type":"array"},"research_question":{"type":"string"},"row_convention":{"oneOf":[{"$ref":"#/components/schemas/RowConventionInput","description":"Row convention: `claim_relative` (default) or `proposition_relative` (row valence read against the proposition; inverted on Refutes claims)."},{"type":"null"}]},"subjects":{"items":{"$ref":"#/components/schemas/SubjectInput"},"type":"array"},"summary_mode":{"description":"When true, returns a compact output: top findings, top contested claims,\ntop evidence gaps, and a one-paragraph synthesis.  The full output is\nomitted.  Designed for LLM consumers with limited context windows.","type":"boolean"},"value_kinds":{"additionalProperties":{"type":"string"},"description":"Per predicate: `probability` or `opinion`.","propertyNames":{"type":"string"},"type":["object","null"]}},"required":["research_question","actors","subjects","claims"],"type":"object"},"InvestigationResult":{"properties":{"accumulative_analysis":{"oneOf":[{"$ref":"#/components/schemas/AccumulativeAnalysis","description":"Accumulative analysis: conditional conclusions per distinction.\nPresent whenever the input contains at least one distinction and the\nengine produced any conditional conclusions.  Omitted in `summary_mode`\n(a soft warning is emitted instead so callers know to drop summary_mode\nto retrieve them)."},{"type":"null"}]},"claim_analyses":{"items":{"$ref":"#/components/schemas/ClaimAnalysisSummary"},"type":"array"},"conflict_analysis":{"description":"Argumentation analysis for every (subject, predicate) pair.","items":{"$ref":"#/components/schemas/SubjectArgumentation"},"type":"array"},"decay_half_life_days":{"description":"The temporal half-life in days used for this investigation.","format":"double","type":"number"},"ranked_claims":{"description":"Claims ranked by net evidence strength (belief − disbelief), descending.","items":{"$ref":"#/components/schemas/RankedClaim"},"type":"array"},"research_question":{"type":"string"},"sensitivity_analysis":{"$ref":"#/components/schemas/SensitivityAnalysis","description":"Sensitivity analysis: which evidence gaps would most shift conclusions.\nEnables abductive reasoning — \"what should I look for next?\""},"subject_results":{"items":{"$ref":"#/components/schemas/SubjectResult"},"type":"array"},"temporal_analysis":{"oneOf":[{"$ref":"#/components/schemas/TemporalAnalysis","description":"Temporal analysis: freshness report, supersession chains, and\ncorroboration summary. Present when any claim uses temporal features\n(corroboration, epistemic status, or supersession)."},{"type":"null"}]},"warnings":{"description":"Soft warnings about potentially inconsistent inputs (e.g. a Troll with\n0.95 reliability).  Empty when all inputs look reasonable.","items":{"type":"string"},"type":"array"}},"required":["research_question","decay_half_life_days","subject_results","conflict_analysis","claim_analyses","ranked_claims","sensitivity_analysis"],"type":"object"},"InvestigationResultWire":{"properties":{"accumulative_analysis":{"oneOf":[{"$ref":"#/components/schemas/AccumulativeAnalysis"},{"type":"null"}]},"audit":{"oneOf":[{"$ref":"#/components/schemas/AuditDetail","description":"Paid-plan detail; None when the caller is not entitled. Always serialised, as null when None."},{"type":"null"}]},"claim_analyses":{"items":{"$ref":"#/components/schemas/ClaimAnalysisWire"},"type":"array"},"conflict_analysis":{"items":{"$ref":"#/components/schemas/SubjectArgumentation"},"type":"array"},"decay_half_life_days":{"format":"double","type":"number"},"research_question":{"type":"string"},"subject_results":{"items":{"$ref":"#/components/schemas/SubjectResult"},"type":"array"},"temporal_analysis":{"oneOf":[{"$ref":"#/components/schemas/TemporalAnalysis"},{"type":"null"}]},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["research_question","decay_half_life_days","subject_results","conflict_analysis","claim_analyses"],"type":"object"},"JudgeOverride":{"additionalProperties":false,"description":"One-shot overrides applied to a session's investigation payload before\njudging.  Overrides do **not** persist back to the stored session — they\nonly affect the current run.\n\nToday, `summary_mode` is the sole runtime mode flag the engine accepts\n(see `InvestigationInput::summary_mode` in `investigation_runner`).\nAccumulative analysis (the \"distinctions\" mode referenced in #823) is\nautomatic whenever the payload contains distinctions; there is no\nseparate flag to toggle it.  The struct is shaped so additional\noverride fields can be added later without breaking the wire format.","properties":{"summary_mode":{"description":"Override the session's `summary_mode` for this run only.  When `true`,\nthe engine returns the compact output (top findings, top contested\nclaims, top evidence gaps) and omits `accumulative_analysis`.","type":["boolean","null"]}},"type":"object"},"JudgeResponse":{"properties":{"quota":{"oneOf":[{"$ref":"#/components/schemas/QuotaSnapshot","description":"Remaining monthly judgement quota after this call, taken at the\nmoment `quota_middleware` debited it (`src/quota.rs`).\n\nAbsent — not `null`, omitted entirely — for an admin API key, a\nfree re-judge of a session that already has a verdict, or a\ndeployment with no database (quota unenforceable). Also absent on\na refunded call: a refund only happens when the response is\nnon-2xx (`quota_middleware`'s refund block,\n`arbiter-service/crates/arbiter-svc/src/quota.rs` around line\n578), so a client never sees `quota` next to an error it was not\ncharged for."},{"type":"null"}]},"result":{"$ref":"#/components/schemas/InvestigationResultWire"},"session_id":{"type":"string"}},"required":["session_id","result"],"type":"object"},"JudgementMeta":{"description":"List-view metadata for a single judgement run. Omits large fields\n(input_snapshot, result) so list responses stay compact.","properties":{"duration_ms":{"format":"int32","type":["integer","null"]},"id":{"type":"string"},"judged_at":{"format":"date-time","type":"string"},"session_id":{"type":"string"}},"required":["id","session_id","judged_at"],"type":"object"},"JudgementRecord":{"description":"Full judgement record including the input snapshot and engine result.","properties":{"duration_ms":{"format":"int32","type":["integer","null"]},"id":{"type":"string"},"input_snapshot":{},"judged_at":{"format":"date-time","type":"string"},"result":{},"session_id":{"type":"string"}},"required":["id","session_id","judged_at","input_snapshot","result"],"type":"object"},"McpActorRefInput":{"description":"Reference to one actor within a session (get / delete).","properties":{"actor_id":{"description":"The actor's id.","type":"string"},"session_id":{"description":"The session that owns the actor.","type":"string"}},"required":["session_id","actor_id"],"type":"object"},"McpActorUpsertInput":{"description":"Upsert payload for an actor (add / replace).","properties":{"actor":{"$ref":"#/components/schemas/ActorInput","description":"The full actor object (its `id` is the upsert/replace key)."},"session_id":{"description":"The session to write into.","type":"string"}},"required":["session_id","actor"],"type":"object"},"McpClaimRefInput":{"description":"Reference to one claim within a session (get / delete).","properties":{"claim_id":{"description":"The claim's id.","type":"string"},"session_id":{"description":"The session that owns the claim.","type":"string"}},"required":["session_id","claim_id"],"type":"object"},"McpClaimUpsertInput":{"description":"Upsert payload for a claim (add / replace).","properties":{"claim":{"$ref":"#/components/schemas/ClaimInput","description":"The full claim object (its `id` is the upsert/replace key)."},"session_id":{"description":"The session to write into.","type":"string"}},"required":["session_id","claim"],"type":"object"},"McpCreateSessionInput":{"description":"Input shape for the `arbiter_create_investigation_session` MCP tool.  Mirrors\n[`CreateSessionRequest`] but `name` is optional (defaults to \"Untitled\"\nwhen called via MCP for ergonomic LLM use).","properties":{"name":{"description":"Session name (non-empty, max 2000 chars). Defaults to \"Untitled\".","type":["string","null"]},"payload":{"oneOf":[{"$ref":"#/components/schemas/InvestigationInput","description":"Initial investigation payload (same schema as `arbiter_submit_investigation`).\nOmit to start with an empty session.  When the payload contains\ndistinctions, judging automatically produces conditional conclusions —\nthere is no separate flag."},{"type":"null"}]},"session_id":{"description":"Custom Unicode session ID. Auto-generated if omitted.","type":["string","null"]},"workspace_id":{"description":"Workspace to create the session in. Omit for your default workspace.","type":["string","null"]}},"type":"object"},"McpCreateWorkspaceInput":{"description":"Input shape for the `arbiter_create_workspace` MCP tool.","properties":{"description":{"description":"Optional free-text description.","type":["string","null"]},"name":{"description":"Workspace name (non-empty, max 2000 chars).","type":"string"},"workspace_id":{"description":"Custom workspace id. Auto-generated if omitted.","type":["string","null"]}},"required":["name"],"type":"object"},"McpDistinctionRefInput":{"description":"Reference to one distinction within a session (get / delete).","properties":{"distinction_id":{"description":"The distinction's id.","type":"string"},"session_id":{"description":"The session that owns the distinction.","type":"string"}},"required":["session_id","distinction_id"],"type":"object"},"McpDistinctionUpsertInput":{"description":"Upsert payload for a distinction (add / replace).","properties":{"distinction":{"$ref":"#/components/schemas/DistinctionInput","description":"The full distinction object (its `id` is the upsert/replace key)."},"session_id":{"description":"The session to write into.","type":"string"}},"required":["session_id","distinction"],"type":"object"},"McpEvidenceRefInput":{"description":"Reference to one evidence item within a session (get / delete).","properties":{"evidence_id":{"description":"The evidence item's id.","type":"string"},"session_id":{"description":"The session that owns the evidence item.","type":"string"}},"required":["session_id","evidence_id"],"type":"object"},"McpEvidenceUpsertInput":{"description":"Upsert payload for an evidence item (add / replace).","properties":{"evidence":{"$ref":"#/components/schemas/EvidenceInput","description":"The full evidence object (its `id` is the upsert/replace key)."},"session_id":{"description":"The session to write into.","type":"string"}},"required":["session_id","evidence"],"type":"object"},"McpGetShareInput":{"description":"Input shape for `arbiter_get_investigation_session_share` — looks up the share\nrecord for a session owned by the caller.","properties":{"session_id":{"description":"The session whose share to inspect.","type":"string"}},"required":["session_id"],"type":"object"},"McpInferenceRefInput":{"description":"Reference to one inference within a session (get / delete).","properties":{"inference_id":{"description":"The inference's id.","type":"string"},"session_id":{"description":"The session that owns the inference.","type":"string"}},"required":["session_id","inference_id"],"type":"object"},"McpInferenceUpsertInput":{"description":"Upsert payload for an inference (add / replace).","properties":{"inference":{"$ref":"#/components/schemas/InferenceInput","description":"The full inference object (its `id` is the upsert/replace key)."},"session_id":{"description":"The session to write into.","type":"string"}},"required":["session_id","inference"],"type":"object"},"McpJudgeSessionInput":{"description":"Input shape for the `arbiter_judge_investigation_session` MCP tool.  Pairs the\npath-param `session_id` with the same one-shot overrides accepted by\nREST `POST /api/v1/sessions/{id}/judge`.  `summary_mode` is the only\noverride the engine currently honours; see [`JudgeOverride`].","properties":{"session_id":{"description":"The session to judge.","type":"string"},"summary_mode":{"description":"One-shot override of the session's `summary_mode` for this run only.\n`true` → compact output, `accumulative_analysis` omitted.\n`false` → full output.  Omit to use the stored payload value.","type":["boolean","null"]}},"required":["session_id"],"type":"object"},"McpJudgementIdInput":{"description":"Input shape for MCP tools that target a specific judgement.","properties":{"judgement_id":{"description":"The judgement UUID to retrieve.","type":"string"},"session_id":{"description":"The session that owns the judgement.","type":"string"}},"required":["session_id","judgement_id"],"type":"object"},"McpLatestJudgementInput":{"description":"Input shape for the `arbiter_get_latest_session_judgement` MCP tool.","properties":{"session_id":{"description":"The session to fetch the latest judgement for.","type":"string"}},"required":["session_id"],"type":"object"},"McpListJudgementsInput":{"description":"Input shape for the `arbiter_list_session_judgements` MCP tool.","properties":{"session_id":{"description":"The session whose judgements to list.","type":"string"}},"required":["session_id"],"type":"object"},"McpListSessionsInput":{"description":"Input shape for `arbiter_list_investigation_sessions` — accepts optional filters\nand pagination parameters. All fields are optional; omitting them returns\nthe full list ordered by `updated_at DESC` (same as the legacy behaviour).","properties":{"has_result":{"description":"When `true`, return only sessions that have been judged at least once.\nWhen `false`, return only sessions that have never been judged.\nOmit to return all sessions regardless of judge status.","type":["boolean","null"]},"limit":{"description":"Maximum number of sessions to return (1–200, default 50).","format":"int64","type":["integer","null"]},"name_filter":{"description":"Case-insensitive substring filter on session name.","type":["string","null"]},"offset":{"description":"Pagination offset (default 0).","format":"int64","type":["integer","null"]},"sort":{"description":"Sort key. One of `updated_at` (default, descending), `created_at`\n(descending), or `name` (ascending).","type":["string","null"]},"updated_after":{"description":"ISO 8601 timestamp: only return sessions last updated after this time.","type":["string","null"]},"updated_before":{"description":"ISO 8601 timestamp: only return sessions last updated before this time.","type":["string","null"]},"workspace_id":{"description":"Restrict to one workspace. Omit to list sessions from every\nworkspace you own.","type":["string","null"]}},"type":"object"},"McpListSharesInput":{"description":"Input shape for `arbiter_list_investigation_session_shares` — takes no args.","type":"object"},"McpListSourceTypesInput":{"description":"Input shape for `arbiter_list_source_types` — takes no args.","type":"object"},"McpListWorkspacesInput":{"description":"Input shape for `arbiter_list_workspaces` — takes no arguments.","type":"object"},"McpQueryWorkspaceInput":{"description":"The `arbiter_query_workspace` tool's declared input. Exists so utoipa emits a\n`components.schemas` entry for the tool's `inputSchema`; the handler reads\nthe raw `Value`, as every other tool in this service does.","properties":{"domain":{"description":"Knowledge domain (`Finance`/`News`/`Legal`/…), which sets the temporal\nhalf-life. Not guessed — nothing records a domain automatically.","type":["string","null"]},"frame_id":{"description":"Anchor to one hyperframe, skipping the search. Use the id of a hit\nfrom a previous `ambiguous` response.","type":["string","null"]},"question":{"description":"The question, in your own words. Echoed verbatim; never rewritten.","type":"string"},"summary":{"description":"Ask the judge for its compact output.","type":["boolean","null"]},"workspace_id":{"description":"The Workspace to query.","type":"string"}},"required":["workspace_id","question"],"type":"object"},"McpSessionIdInput":{"description":"Input shape for `arbiter_get_investigation_session` / `arbiter_delete_investigation_session`\nMCP tools — both take only a `session_id`.","properties":{"session_id":{"description":"The session to retrieve / delete.","type":"string"}},"required":["session_id"],"type":"object"},"McpSetInterpretationInput":{"description":"Input shape for the `arbiter_set_session_interpretation` MCP tool.","properties":{"interpretation":{"description":"Analyst commentary text. Pass `null` to clear. Session must have been judged first.","type":["string","null"]},"session_id":{"description":"The session to update.","type":"string"}},"required":["session_id"],"type":"object"},"McpSetPrivateNotesInput":{"description":"Input shape for the `arbiter_set_session_private_notes` MCP tool.","properties":{"private_notes":{"description":"Markdown working notes. Pass `null` to clear. Never published.","type":["string","null"]},"session_id":{"description":"The session to update.","type":"string"}},"required":["session_id"],"type":"object"},"McpShareSessionInput":{"description":"Input shape for the `arbiter_share_investigation_session` MCP tool.  Combines\nthe REST path-param `session_id` with the body of [`SetShareRequest`].","properties":{"audit_shareable":{"description":"Whether the resolved audit trace is exposed to public viewers.\nPaid plans only: flipping this from false to true requires the\ncaller's plan, resolved live from the database, to be paid.\nDefault false.","type":"boolean"},"preferred_pane":{"description":"The default pane viewers land on. All panes remain visible — this is\njust the initial tab. Allowed values: \"overview\", \"timeline\", \"mesh\",\n\"distinctions\", \"audit\", \"trace\".","type":"string"},"public":{"description":"Whether the share should be visible to anyone with the link.","type":"boolean"},"session_id":{"description":"The session to share.","type":"string"},"slug":{"description":"Human-readable display name for the URL (e.g. 'q3-tesla-analysis').\nLowercased and sanitized server-side; non-alphanumerics become\nhyphens; max 64 chars.","type":"string"}},"required":["session_id","public","slug","preferred_pane"],"type":"object"},"McpSubjectRefInput":{"description":"Reference to one subject within a session (get / delete).","properties":{"session_id":{"description":"The session that owns the subject.","type":"string"},"subject_id":{"description":"The subject's id.","type":"string"}},"required":["session_id","subject_id"],"type":"object"},"McpSubjectUpsertInput":{"description":"Upsert payload for a subject (add / replace).","properties":{"session_id":{"description":"The session to write into.","type":"string"},"subject":{"$ref":"#/components/schemas/SubjectInput","description":"The full subject object (its `id` is the upsert/replace key)."}},"required":["session_id","subject"],"type":"object"},"McpUpdateSessionInput":{"allOf":[{"description":"Partial update to a session's investigation payload.","properties":{"actors":{"items":{"$ref":"#/components/schemas/ActorInput"},"type":["array","null"]},"claims":{"items":{"$ref":"#/components/schemas/ClaimInput"},"type":["array","null"]},"decay_half_life_days":{"format":"double","type":["number","null"]},"dependent_refresh_factor":{"format":"double","type":["number","null"]},"distinctions":{"items":{"$ref":"#/components/schemas/DistinctionInput"},"type":["array","null"]},"domain":{"type":["string","null"]},"evidence":{"items":{"$ref":"#/components/schemas/EvidenceInput"},"type":["array","null"]},"inferences":{"items":{"$ref":"#/components/schemas/InferenceInput"},"type":["array","null"]},"remove_actor_ids":{"description":"Actor IDs to remove (applied after merging).","items":{"type":"string"},"type":["array","null"]},"remove_claim_ids":{"description":"Claim IDs to remove.","items":{"type":"string"},"type":["array","null"]},"remove_distinction_ids":{"description":"Distinction IDs to remove.","items":{"type":"string"},"type":["array","null"]},"remove_evidence_ids":{"description":"Evidence IDs to remove.","items":{"type":"string"},"type":["array","null"]},"remove_inference_ids":{"description":"Inference IDs to remove.","items":{"type":"string"},"type":["array","null"]},"remove_subject_ids":{"description":"Subject IDs to remove.","items":{"type":"string"},"type":["array","null"]},"research_question":{"type":["string","null"]},"row_convention":{"type":"object"},"subjects":{"items":{"$ref":"#/components/schemas/SubjectInput"},"type":["array","null"]},"summary_mode":{"type":["boolean","null"]},"value_kinds":{"type":"object"}},"required":["row_convention","value_kinds"],"type":"object"},{"properties":{"name":{"description":"Rename the session.","type":["string","null"]},"session_id":{"description":"The session to update.","type":"string"},"workspace_id":{"description":"Move the session into another of your own workspaces. Omit to leave\nit where it is.","type":["string","null"]}},"required":["session_id"],"type":"object"}],"description":"Input shape for the `arbiter_update_investigation_session` MCP tool.  Same\nmerge semantics as REST `PATCH /api/v1/sessions/{id}`, plus the path\nparameter `session_id` as a flattened field."},"McpUpdateWorkspaceInput":{"description":"Input shape for the `arbiter_update_workspace` MCP tool.","properties":{"description":{"description":"Set the description; pass an empty string to clear it.","type":["string","null"]},"name":{"description":"Rename the workspace. Omit to leave the name alone.","type":["string","null"]},"workspace_id":{"description":"The workspace to update.","type":"string"}},"required":["workspace_id"],"type":"object"},"McpWorkspaceIdInput":{"description":"Input shape for `arbiter_get_workspace` / `arbiter_delete_workspace`.","properties":{"workspace_id":{"description":"The workspace to retrieve / delete.","type":"string"}},"required":["workspace_id"],"type":"object"},"OpinionSummary":{"properties":{"base_rate":{"format":"double","type":"number"},"opposition":{"format":"double","type":"number"},"support":{"format":"double","type":"number"},"uncertainty":{"format":"double","type":"number"}},"required":["support","opposition","uncertainty","base_rate"],"type":"object"},"PrivateNotesResponse":{"properties":{"private_notes":{"type":["string","null"]},"private_notes_updated_at":{"type":["string","null"]},"session_id":{"type":"string"}},"required":["session_id"],"type":"object"},"QueryStatus":{"description":"What the query flow concluded. A caller MUST branch on this: `judged` is\nthe only value carrying a judgement.","enum":["judged","ambiguous","no_match","unknown_frame"],"type":"string"},"QuotaSnapshot":{"description":"Remaining-quota snapshot taken at the moment a call is debited.\n\nHanded back to the client alongside the judge result: REST\n`JudgeResponse.quota`, and — generically, for every metered MCP tool,\nnot just `arbiter_judge_investigation_session` — the `quota` block\n`mcp::tool_response` merges into a successful outcome (T-10, R-10.1).\nEither way it says how much room is left without a separate\n`/api/v1/usage` call.\n\nOnly ever produced right after a successful debit — see\n`quota_middleware` and `check_metered_mcp_call`. A call that was\nnever metered (admin API key, a re-judge of a session that already has\na verdict, no database configured) has no snapshot to report. A call\nthat *was* debited but then failed is refunded and returns a non-2xx\nresponse, so the snapshot is never attached to it either — see\n`quota_middleware`'s refund block.","properties":{"calls_used":{"description":"Calls used this calendar month, including the one that produced\nthis snapshot.","format":"int32","minimum":0,"type":"integer"},"monthly_limit":{"format":"int32","minimum":0,"type":"integer"},"remaining":{"description":"`monthly_limit - calls_used`, saturating at 0 (a plan downgrade\ncan leave `calls_used` above the new `monthly_limit`).","format":"int32","minimum":0,"type":"integer"}},"required":["calls_used","monthly_limit","remaining"],"type":"object"},"RankedClaim":{"description":"A claim ranked by net evidence strength.","properties":{"actor_id":{"type":"string"},"belief":{"format":"double","type":"number"},"category":{"description":"Credibility gradient, a refinement of the claim's `truth_status` so\nthe two can never contradict: \"True\" → \"strong\" (belief > 0.5),\n\"moderate\" (> 0.35), or \"weak\"; \"Both\" → \"contested\"; \"False\" →\n\"unsupported\" (disbelief > 0.35) or \"weak\"; \"Neither\" → \"weak\".","type":"string"},"claim_id":{"type":"string"},"direction":{"description":"Which way the claim points at the proposition: \"supports\",\n\"opposes\", or \"neutral\".  Added for issue #1756.","type":"string"},"disbelief":{"format":"double","type":"number"},"expected_probability":{"format":"double","type":"number"},"predicate":{"type":"string"},"rank":{"minimum":0,"type":"integer"},"uncertainty":{"format":"double","type":"number"},"value":{"type":"string"}},"required":["rank","claim_id","actor_id","predicate","value","category","expected_probability","belief","disbelief","uncertainty"],"type":"object"},"RowConventionInput":{"properties":{"convention":{"type":"string"},"declared_at":{"type":"string"},"declared_by":{"type":"string"}},"required":["convention","declared_by","declared_at"],"type":"object"},"ScopeTensionOutput":{"description":"One scope-suppressed opposed claim pair (issue #1762). See\n`ArgumentationSummary::scope_tensions`.","properties":{"claim_a":{"type":"string"},"claim_b":{"type":"string"},"scope_a":{"type":"string"},"scope_b":{"type":"string"},"valence_a":{"type":"string"},"valence_b":{"type":"string"},"value_a":{"type":"string"},"value_b":{"type":"string"}},"required":["claim_a","claim_b","scope_a","scope_b","value_a","value_b","valence_a","valence_b"],"type":"object"},"SensitivityAnalysis":{"description":"Identifies the highest-value missing evidence — claims or subject-predicates\nwhere additional data would most shift the conclusions.  This is the\nabductive reasoning layer: \"what would best explain the remaining uncertainty?\"","properties":{"evidence_gaps":{"description":"Per-subject evidence gaps, ordered by potential impact (highest first).","items":{"$ref":"#/components/schemas/EvidenceGap"},"type":"array"}},"required":["evidence_gaps"],"type":"object"},"SessionMeta":{"description":"List-view metadata for investigation sessions.  Exposed as the schema\n`SessionMeta` in the OpenAPI document via [`utoipa::ToSchema`]; the\n`list_sessions` handler returns `Vec<SessionMeta>` directly so the\ndocumented shape matches the wire bytes by construction.","properties":{"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"judged_at":{"format":"date-time","type":"string"},"name":{"type":"string"},"updated_at":{"format":"date-time","type":"string"},"workspace_id":{"description":"The workspace this session is homed in (#1875). Every session has\nexactly one; the SPA filters and moves on it.","type":"string"}},"required":["id","name","workspace_id","created_at","updated_at","judged_at"],"type":"object"},"SessionResponse":{"properties":{"created_at":{"type":"string"},"interpretation":{"description":"Free-text interpretation written by an LLM or user.","type":["string","null"]},"interpretation_updated_at":{"type":["string","null"]},"judged_at":{"type":["string","null"]},"last_result":{"description":"The engine's last verdict for this session, or `null` if it has\nnever been judged. Its `audit` block is `null` when the owner has\nno paid plan (`crate::result_view`). Declared as an opaque object\nin the schema (T-03f) — the result schema, fully inlined, adds\nover 30 KB to this response's `outputSchema`, which is what pushed\n`tools/list`'s regression guard (R-9.3) over budget. The runtime\ntype is unchanged; only the declared schema is widened.","type":["object","null"]},"name":{"type":"string"},"payload":{"$ref":"#/components/schemas/InvestigationInput"},"session_id":{"type":"string"},"updated_at":{"type":"string"},"workspace_id":{"description":"The workspace this session is homed in. Change it with `workspace_id`\non `PATCH /api/v1/sessions/{id}`.","type":"string"}},"required":["session_id","name","workspace_id","payload","created_at","updated_at"],"type":"object"},"SetInterpretationRequest":{"properties":{"interpretation":{"description":"Analyst commentary text. Pass `null` or omit to clear.","type":["string","null"]}},"type":"object"},"SetPrivateNotesRequest":{"properties":{"private_notes":{"description":"Markdown working notes. Pass `null` to clear.","type":["string","null"]}},"type":"object"},"SetShareRequest":{"properties":{"audit_shareable":{"description":"Whether the resolved audit trace is exposed to public viewers of\nthis share. Paid plans only: flipping this from `false` to `true`\nrequires the caller's plan (resolved live from the database) to be\npaid, or the request is refused with 402. Default false.","type":"boolean"},"preferred_pane":{"description":"Pane the public viewer opens to (\"overview\" | \"timeline\" | \"mesh\"\n| \"distinctions\" | \"audit\" | \"trace\"). All panes remain visible\nexcept \"audit\" and \"trace\", which are governed by\n`audit_shareable` — this field just chooses the default tab among\nwhichever panes are shown.","type":"string"},"public":{"description":"Whether the session should be publicly accessible. Default false.","type":"boolean"},"slug":{"description":"Caller-supplied display name; sanitized server-side.","type":"string"}},"required":["public","slug","preferred_pane"],"type":"object"},"ShareListItemResponse":{"properties":{"audit_shareable":{"type":"boolean"},"is_public":{"type":"boolean"},"preferred_pane":{"type":"string"},"session_id":{"type":"string"},"session_name":{"type":"string"},"share_uuid":{"format":"uuid","type":"string"},"slug":{"type":"string"},"snapshot_taken_at":{"type":["string","null"]},"updated_at":{"type":"string"},"url":{"type":"string"}},"required":["session_id","session_name","share_uuid","slug","preferred_pane","is_public","audit_shareable","url","updated_at"],"type":"object"},"ShareResponse":{"properties":{"audit_shareable":{"type":"boolean"},"is_public":{"type":"boolean"},"preferred_pane":{"type":"string"},"share_uuid":{"format":"uuid","type":"string"},"slug":{"type":"string"},"snapshot_taken_at":{"type":["string","null"]},"updated_at":{"type":"string"},"url":{"type":"string"},"url_path":{"type":"string"}},"required":["share_uuid","slug","preferred_pane","is_public","audit_shareable","url_path","url","updated_at"],"type":"object"},"SourceTypeReference":{"description":"Machine-readable reference for one legal `source_type`: its canonical\nname, its `base_reliability` anchor band, and its temporal decay\nmultiplier — the same facts a caller would otherwise have to read off a\ndocs page. Returned by the `arbiter_list_source_types` MCP tool and embedded in\n`arbiter_get_docs`'s directory response.","properties":{"decay_half_life_multiplier":{"description":"`effective_half_life = domain_half_life × claim_type_multiplier ×\nsource_authority_multiplier × epistemic_status_multiplier` — this is\nthe source_authority_multiplier term. See\n[`uncertain_logic::models::SourceType::decay_half_life_multiplier`].","format":"double","type":"number"},"name":{"description":"Canonical casing, as it appears in [`SOURCE_TYPES`].","type":"string"},"note":{"description":"Present when `reliability_anchor` needs a caveat beyond the band\nitself (undefined band, or a class whose reliability depends on\ncontext rather than a fixed number).","type":["string","null"]},"reliability_anchor":{"description":"`[low, high]` prior band for `base_reliability` (0.01–0.99), taken\nfrom the extraction prompt's guidance\n(`websites/arbiter-website/static/extract.txt`). `null` when that\nprompt does not define a single band for this class — see `note`.\nA starting point, not a hard limit: set `base_reliability` directly\nwhenever your prior differs.","items":{"format":"double","type":"number"},"type":["array","null"]},"when_to_use":{"description":"One-line guidance on when this class is the right pick.","type":"string"}},"required":["name","decay_half_life_multiplier","when_to_use"],"type":"object"},"SourceTypeReferenceList":{"description":"MCP `arbiter_list_source_types` output: [`source_type_reference`] plus a usage\ntip. A stable, single-shape wrapper so the tool has a real\n`outputSchema` instead of a bare array.","properties":{"source_types":{"items":{"$ref":"#/components/schemas/SourceTypeReference"},"type":"array"},"tip":{"type":"string"}},"required":["source_types","tip"],"type":"object"},"StaleClaim":{"properties":{"age_days":{"format":"double","type":"number"},"claim_id":{"type":"string"},"decay_factor":{"format":"double","type":"number"},"recommendation":{"type":"string"}},"required":["claim_id","age_days","decay_factor","recommendation"],"type":"object"},"SubjectArgumentation":{"allOf":[{"$ref":"#/components/schemas/ArgumentationSummary"},{"properties":{"predicate":{"type":"string"},"subject_id":{"type":"string"}},"required":["subject_id","predicate"],"type":"object"}],"description":"Argumentation results for a single (subject, predicate) pair."},"SubjectInput":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"subject_type":{"type":"string"}},"required":["id","name","subject_type"],"type":"object"},"SubjectResult":{"properties":{"confidence":{"$ref":"#/components/schemas/OpinionSummary"},"expected_probability":{"format":"double","type":"number"},"predicate":{"type":"string"},"statement":{"description":"Plain-language reading of the verdict, stating what the probability\nand truth status refer to.  Added for issue #1756; absent on\njudgements persisted before it.","type":"string"},"subject_id":{"type":"string"},"subject_name":{"type":"string"},"truth_status":{"description":"Truth status of the PROPOSITION (subject, predicate), not of any\nindividual claim. It is a count of per-claim statuses at the threshold\n0.15, not a balance of evidence: True = a claim counts for it and none\nagainst, False = the reverse, Both = both kinds, Neither = none. The\nopt-in adverse_inference abstention mode can add to the count against.\nThe argumentation weight and the fused opinion do not decide it.","type":"string"}},"required":["subject_id","subject_name","predicate","truth_status","confidence","expected_probability"],"type":"object"},"SupersessionChainSummary":{"properties":{"claim_ids":{"description":"Claim IDs ordered oldest → newest.","items":{"type":"string"},"type":"array"},"current_claim_id":{"description":"The most recent (current) claim in the chain.","type":"string"}},"required":["claim_ids","current_claim_id"],"type":"object"},"SupportEdge":{"properties":{"supported_claim_id":{"type":"string"},"supporter_claim_id":{"type":"string"}},"required":["supporter_claim_id","supported_claim_id"],"type":"object"},"TemporalAnalysis":{"description":"Aggregate temporal analysis for the entire investigation.","properties":{"overall_freshness":{"description":"Overall investigation freshness (0.0-1.0): average of all claim freshness scores.","format":"double","type":"number"},"recently_corroborated":{"description":"Claims with recent corroboration, sorted most recent first.","items":{"$ref":"#/components/schemas/CorroboratedClaim"},"type":"array"},"stale_claims":{"description":"Claims past their effective half-life (decay < 0.25), sorted most stale first.","items":{"$ref":"#/components/schemas/StaleClaim"},"type":"array"},"supersession_chains":{"description":"Chains of superseding claims (oldest → newest).","items":{"$ref":"#/components/schemas/SupersessionChainSummary"},"type":"array"}},"required":["stale_claims","recently_corroborated","supersession_chains","overall_freshness"],"type":"object"},"UpdateSessionPayload":{"description":"Partial update to a session's investigation payload.","properties":{"actors":{"items":{"$ref":"#/components/schemas/ActorInput"},"type":["array","null"]},"claims":{"items":{"$ref":"#/components/schemas/ClaimInput"},"type":["array","null"]},"decay_half_life_days":{"format":"double","type":["number","null"]},"dependent_refresh_factor":{"format":"double","type":["number","null"]},"distinctions":{"items":{"$ref":"#/components/schemas/DistinctionInput"},"type":["array","null"]},"domain":{"type":["string","null"]},"evidence":{"items":{"$ref":"#/components/schemas/EvidenceInput"},"type":["array","null"]},"inferences":{"items":{"$ref":"#/components/schemas/InferenceInput"},"type":["array","null"]},"remove_actor_ids":{"description":"Actor IDs to remove (applied after merging).","items":{"type":"string"},"type":["array","null"]},"remove_claim_ids":{"description":"Claim IDs to remove.","items":{"type":"string"},"type":["array","null"]},"remove_distinction_ids":{"description":"Distinction IDs to remove.","items":{"type":"string"},"type":["array","null"]},"remove_evidence_ids":{"description":"Evidence IDs to remove.","items":{"type":"string"},"type":["array","null"]},"remove_inference_ids":{"description":"Inference IDs to remove.","items":{"type":"string"},"type":["array","null"]},"remove_subject_ids":{"description":"Subject IDs to remove.","items":{"type":"string"},"type":["array","null"]},"research_question":{"type":["string","null"]},"row_convention":{"type":"object"},"subjects":{"items":{"$ref":"#/components/schemas/SubjectInput"},"type":["array","null"]},"summary_mode":{"type":["boolean","null"]},"value_kinds":{"type":"object"}},"required":["row_convention","value_kinds"],"type":"object"},"UpdateSessionRequest":{"allOf":[{"description":"Partial update to a session's investigation payload.","properties":{"actors":{"items":{"$ref":"#/components/schemas/ActorInput"},"type":["array","null"]},"claims":{"items":{"$ref":"#/components/schemas/ClaimInput"},"type":["array","null"]},"decay_half_life_days":{"format":"double","type":["number","null"]},"dependent_refresh_factor":{"format":"double","type":["number","null"]},"distinctions":{"items":{"$ref":"#/components/schemas/DistinctionInput"},"type":["array","null"]},"domain":{"type":["string","null"]},"evidence":{"items":{"$ref":"#/components/schemas/EvidenceInput"},"type":["array","null"]},"inferences":{"items":{"$ref":"#/components/schemas/InferenceInput"},"type":["array","null"]},"remove_actor_ids":{"description":"Actor IDs to remove (applied after merging).","items":{"type":"string"},"type":["array","null"]},"remove_claim_ids":{"description":"Claim IDs to remove.","items":{"type":"string"},"type":["array","null"]},"remove_distinction_ids":{"description":"Distinction IDs to remove.","items":{"type":"string"},"type":["array","null"]},"remove_evidence_ids":{"description":"Evidence IDs to remove.","items":{"type":"string"},"type":["array","null"]},"remove_inference_ids":{"description":"Inference IDs to remove.","items":{"type":"string"},"type":["array","null"]},"remove_subject_ids":{"description":"Subject IDs to remove.","items":{"type":"string"},"type":["array","null"]},"research_question":{"type":["string","null"]},"row_convention":{"type":"object"},"subjects":{"items":{"$ref":"#/components/schemas/SubjectInput"},"type":["array","null"]},"summary_mode":{"type":["boolean","null"]},"value_kinds":{"type":"object"}},"required":["row_convention","value_kinds"],"type":"object"},{"properties":{"name":{"type":["string","null"]},"workspace_id":{"description":"Move the session into another of your own workspaces. Omit to leave\nit where it is. A workspace you do not own answers 404 — the move is\nrefused by a database constraint, not by a check in this handler.","type":["string","null"]}},"type":"object"}]},"UpdateSessionStatus":{"description":"Returned by `PATCH /api/v1/sessions/{id}` and the\n`arbiter_update_investigation_session` MCP tool.  Mirrors the shape returned to\nREST clients today (`{ session_id, status }`) so the typed handler and\nthe prior `Json<serde_json::Value>` body are byte-identical on the wire.","properties":{"session_id":{"type":"string"},"status":{"type":"string"}},"required":["session_id","status"],"type":"object"},"UpdateWorkspaceRequest":{"properties":{"description":{"description":"Set the description; pass an empty string to clear it. Omit the field\nentirely to leave the existing description alone.","type":["string","null"]},"name":{"description":"Rename the workspace. Omit to leave the name alone.","type":["string","null"]}},"type":"object"},"UploadParams":{"properties":{"filename":{"description":"Display name for the document. Not an object key and not a document\nid — both of those are derived, so a filename can never steer where\nbytes land.","type":"string"}},"required":["filename"],"type":"object"},"UploadResponse":{"description":"The upload acknowledgement.","properties":{"corpus_id":{"description":"wita workspace the extracted claims land in — see the module doc on\nwhat this identifier is and is not.","type":"string"},"deduplicated":{"description":"True when these bytes were already in the workspace and the response\ndescribes the existing file rather than a new one.","type":"boolean"},"file_id":{"type":"string"},"file_version":{"format":"int32","type":"integer"},"ingest_id":{"description":"The wita ledger task id for this document version. Stable, and the\nhandle an operator uses to find this ingest in the ledger.","type":"string"},"state":{"description":"Ingest FSM state at the moment of the response.","type":"string"}},"required":["file_id","file_version","ingest_id","state","corpus_id","deduplicated"],"type":"object"},"Workspace":{"description":"A workspace: an owned container that investigation sessions attach to.\n\nPhase 1 (#1875) — no documents, no ingest, no link to the document\npipeline. `user_id` is deliberately absent from the serialized shape:\nevery read is already scoped to the caller, so echoing the owner back\nadds nothing and would put a user id into share-adjacent JSON.\n\nClient-visible: this struct's doc comment is utoipa's OpenAPI schema\n`description`, reachable via MCP `tools/list`'s `outputSchema` for\n`arbiter_get_workspace` / `arbiter_list_workspaces` (T-03f) as well as\nthe REST OpenAPI spec — no internal codename here (R-11).","properties":{"created_at":{"format":"date-time","type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","name","created_at","updated_at"],"type":"object"},"WorkspaceFile":{"description":"One version of one uploaded document.\n\nThe wire shape omits `user_id` for the same reason [`Workspace`] does: the\ncaller is the owner, and echoing the id back adds nothing but a way to leak\nit. It also omits `source_repo`/`object_key` — the bucket layout is this\nservice's business, and publishing it invites a client to address it\ndirectly.","properties":{"byte_len":{"format":"int64","type":"integer"},"content_sha256":{"description":"SHA-256 of the text after normalisation (BOM stripped, CRLF folded).\nThis is what extraction actually reads.","type":"string"},"content_type":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"file_id":{"type":"string"},"file_version":{"format":"int32","type":"integer"},"filename":{"type":"string"},"ingest_id":{"description":"The wita-side ledger task id. Also the ingest run id.","type":"string"},"is_current":{"type":"boolean"},"last_error":{"type":["string","null"]},"raw_sha256":{"description":"SHA-256 of the bytes as uploaded. Reproducible by the caller, which is\nwhat makes \"did my upload arrive intact\" answerable without a re-read.","type":"string"},"state":{"description":"Last state recorded by this service. The API reports the ledger's view\nwhen a ledger is configured; this is the fallback and says so.","type":"string"},"updated_at":{"format":"date-time","type":"string"},"workspace_id":{"type":"string"}},"required":["file_id","file_version","workspace_id","filename","content_type","byte_len","raw_sha256","content_sha256","ingest_id","state","is_current","created_at","updated_at"],"type":"object"},"WorkspaceFileStatus":{"description":"A file plus its live ingest state.","properties":{"attempts":{"description":"Attempts the ledger has recorded, when it is reachable.","format":"int32","minimum":0,"type":["integer","null"]},"corpus_id":{"type":"string"},"file":{"$ref":"#/components/schemas/WorkspaceFile"},"ingest_state":{"description":"The state actually reported, which is the ledger's when one is\nconfigured and the stored column's when it is not.","type":"string"},"ingest_state_live":{"description":"Whether `ingest_state` came from the ledger. Reported rather than\nimplied: \"uploaded\" from a live ledger and \"uploaded\" from a stale\ncolumn mean different things to whoever is debugging.","type":"boolean"}},"required":["file","ingest_state","ingest_state_live","corpus_id"],"type":"object"},"WorkspaceQueryRequest":{"additionalProperties":false,"description":"`POST /wita/workspaces/{id}/query`.\n\n## Why this is not `POST /sessions/{id}/query`\n\nIssue #1393 specified the session path, written before the wita workspace\nexisted as a deployed concept. A session ([`crate::sessions`]) holds an\n`InvestigationInput` a user assembled by hand; a wita workspace holds\nclaims EXTRACTED from documents. The thing this endpoint queries is the\nworkspace, and putting it under `/sessions/{id}` would name the wrong\ncontainer — the id in the path would have to be a workspace id anyway.","properties":{"domain":{"description":"Knowledge domain (`Finance`/`News`/`Legal`/…), which sets the temporal\nhalf-life. NOT guessed — wita records no domain.","type":["string","null"]},"frame_id":{"description":"Anchor the query to one hyperframe, skipping the search. This is the\nsecond leg of the two-step flow: search returns a menu, the caller\npicks, and the pick comes back here.","type":["string","null"]},"question":{"description":"The question, in the user's own words. Echoed verbatim; never\nrewritten.","type":"string"},"summary":{"description":"Ask the judge for its compact output.","type":"boolean"}},"required":["question"],"type":"object"},"WorkspaceQueryResponse":{"description":"The query flow's answer: how the question was read, what was found, and —\nonly when exactly one question was identified — what the engine concluded.","properties":{"adapted":{"description":"What the adaptation did, in counts — every hyperclaim lands in exactly\none bucket, so nothing goes missing silently."},"answer":{"description":"The verbatim evidence for the selected frame: committed atoms with\ntheir byte spans and source documents, the held/ambiguous set,\nabstentions with cause, and Θ with its closed-world residual. This is\nthe belief masses' trace back to the documents.","type":["object","null"]},"explanation":{"description":"Why `status` is what it is, in a sentence. Always present.","type":"string"},"frame":{"description":"The frame the judgement is about. Absent unless `status` is `judged`.","type":["object","null"]},"interpretation":{"description":"**The mapping from the question to the workspace's frames, in full.**\nThe terms searched, the terms dropped, the terms that matched nothing,\nand every ranked frame with the exact surfaces that scored it. This is\nwhat makes the query auditable: a reader can see which question was\nactually asked. Absent only when the caller anchored a frame directly\nand no search was run.","type":["object","null"]},"judgement":{"description":"The engine's verdict. Absent unless `status` is `judged`."},"notes":{"description":"Stated consequences of the mapping choices. Meant to be shown.","items":{"type":"string"},"type":"array"},"status":{"$ref":"#/components/schemas/QueryStatus"},"workspace_id":{"type":"string"}},"required":["workspace_id","status","explanation"],"type":"object"},"WorkspaceStatus":{"properties":{"status":{"type":"string"},"workspace_id":{"type":"string"}},"required":["workspace_id","status"],"type":"object"}},"securitySchemes":{"api_key":{"in":"header","name":"x-api-key","type":"apiKey"},"bearer":{"bearerFormat":"JWT","scheme":"bearer","type":"http"}}},"info":{"description":"REST API for the Arbiter reasoning engine. It measures the sources it is given against what they say and does not adjudicate the world — a verdict is a statement about the submitted source corpus, not a ruling on what actually happened. Submit claims from multiple sources and get scored verdicts, ranked claims, conflict analysis with interpretation trees, temporal decay tracking, corroboration refresh, epistemic status lifecycle, and supersession chain analysis.\n\n**Session API**: persistent investigation sessions allow incremental investigation building — create a session, add actors/subjects/claims over time, and call judge to run the engine whenever ready. Sessions are stored server-side and can be re-analyzed repeatedly.\n\n**Share API**: session owners can publish read-only snapshots of judged sessions; viewers see a stable copy at `/share/{uuid}/{slug}` even if the owner later edits the session.","title":"Arbiter Investigation API","version":"0.1.0"},"openapi":"3.1.0","paths":{"/api/v1/investigations/analyze":{"post":{"description":"Submit a full investigation to the Arbiter reasoning engine. The engine analyzes claims from multiple sources to detect contradictions, assess confidence, evaluate timelines, and identify causal weaknesses.\n\nINPUT INSTRUCTIONS:\n1. Extract distinct entities (Subjects), sources (Actors), assertions (Claims), and supporting/refuting data (Evidence) from the material.\n2. SOURCE TYPE + RELIABILITY: source_type must be one of (case-insensitive): Analyst, Journalist, Expert, Researcher, Insider, Regulator, Institutional, Vendor, Anonymous, SocialMedia, Troll. Set base_reliability between 0.01 and 0.99; when omitted, the class anchor default applies in v1 (the engine that answers every request). The v2 judge, which runs beside it, carries the class anchor as the trust interval [0, anchor] (the anchor is a NOT-LOCATED prior, not a measurement, and is never taken as the reliability by default), and a source with no recognised source_type has the trust interval [0, 0] (unjudged). A typed base_reliability is measured, and v2 carries it at the resolution it was typed with (0.85 is 0.85 plus or minus 0.005). The engine clamps values outside this range. Values inconsistent with source_type will produce warnings. Anchor bands: 0.85-0.95 regulators/courts/audited filings and credible institutions (0.01-0.4 when the institution is the entity under investigation), 0.7-0.9 researchers and peer-reviewed work, 0.65-0.85 named experts and established journalists, 0.4-0.65 analysts and insiders, 0.2-0.45 vendors on their own products, 0.15-0.4 anonymous/social media, 0.01-0.15 known fabricators.\n3. COMPETENCE: When a source has uneven expertise across topics, set per-predicate competence scores (0-1). A financial analyst might score 0.9 on 'valuation' but 0.3 on 'regulatory-risk'. The engine multiplies reliability × competence to get effective credibility per topic.\n4. VALENCE: Every claim MUST have a valence. Use 'Supports' when the actor affirms the predicate, 'Refutes' when the actor denies it. Without valence, the engine cannot distinguish affirmation from denial; the v2 judge refuses the proposition's truth reading by name (AbsentValence(n), n claims) rather than guess, and keeps the claims in the record. Valence is DIRECTION only — it never lowers the claim's own credibility. A well-evidenced 'Refutes' claim stays fully credible (high belief, truth_status 'True', direction 'opposes') and pushes the SUBJECT verdict down. Two 'Refutes' claims on the same predicate never contradict each other, whatever their value strings: denials with different counter-findings are corroborating measurements. Contradictions arise from opposite valences on one predicate, or from materially different affirmed values. EVIDENCE valence is different: it is relative to the CLAIM it attaches to ('Supports' = corroborates that claim, 'Refutes' = undercuts it), not to the research question.\n5. CLAIM TYPE: Set claim_type to 'Predictive' for forecasts/guidance, 'Evaluative' for opinions/ratings, 'Causal' for cause-effect assertions, 'Factual' for verifiable statements, 'Procedural' for process/methodology claims, 'Methodological' for claims about research methods or analytical approaches. Non-factual claims carry more inherent uncertainty.\n6. TEMPORAL: Always provide assertion_time (when the claim was made). Provide event_start_time and event_end_time when the claim refers to a specific time window. Precise timestamps enable the engine to detect contradictions across overlapping or sequential time periods. event_start_time MUST be before event_end_time. Older claims are automatically down-weighted (see HALF-LIFE FORMULA below).\n7. DEDUPLICATION: Do not submit the same claim twice from the same actor. Duplicates are automatically dropped to prevent evidence amplification.\n8. NUMERIC VALUES: For financial predicates (revenue, price, etc.), use consistent numeric formats with K/M/B/T suffixes. The engine recognizes that '99M' and '100M' are close and will NOT treat them as contradictions.\n9. SCOPE: Claims can have a `scope` field to disambiguate same-predicate claims measuring different things (e.g. 'global' vs 'US', 'nominal' vs 'risk-adjusted'). Claims with different scopes on the same predicate are NOT treated as contradictions and never attack each other, even when directionally opposed; such a pair is instead reported in `conflict_analysis[].summary.scope_tensions` and as a warning.\n10. RELATIONSHIPS: Claims can declare explicit relationships to other claims via the `relationships` array. See RELATIONSHIP TYPES below for the per-type semantics.\n11. INFERENCES: Top-level `inferences[]` array — derived conclusions from premise claims, each with `id`, `subject_id`, `predicate`, `premise_claim_ids[]`, `rule_type`, optional `rule_param`. See INFERENCE RULES below for the rule_type enum.\n12. DISTINCTIONS: Top-level `distinctions[]` array — pairs of claims that disagree only because they apply under different conditions. Required fields: `id`, `argument_a`, `argument_b`, `feature`, `condition_a`, `condition_b` (`description` optional). When BOTH arguments target the SAME predicate, judging produces a `conditional_conclusion` in `accumulative_analysis`; cross-predicate distinctions are accepted but inert (no conditional fires).\n13. SUMMARY MODE: Set `summary_mode: true` for compact output: top findings, top contested claims, top evidence gaps, one-paragraph synthesis. Full claim_analyses, temporal_analysis, and accumulative_analysis are omitted.\n\nRELATIONSHIP TYPES (`claim.relationships[].relationship_type`):\n- 'complements' — both claims hold and reinforce each other on the same predicate; adds a SUPPORT edge in the argumentation framework.\n- 'refines' — the source claim narrows or sharpens the target's predicate; adds a SUPPORT edge and slightly downweights the target where they overlap.\n- 'qualifies' — the source claim attaches a condition to the target (e.g. 'this holds only in X'); adds a SUPPORT edge under that condition.\n- 'supersedes' — equivalent to setting `supersedes_claim_id` on the source; the target's epistemic_status becomes 'superseded'.\n- 'challenges_methodology' — recorded for audit but does NOT draw an attack edge in the conflict graph. Use a 'Refutes' valence claim if you want the engine to count the critique as opposition.\n\nINFERENCE RULES (`inferences[].rule_type`, lowercase):\n- 'a_fortiori' — 'if A holds, B holds even more strongly'; `rule_param` is the ordering hint.\n- 'analogy' — 'A is like B in feature F'; `rule_param` is the shared feature.\n- 'generalization' — 'this exemplar implies the general case'; `rule_param` names the exemplar.\n- 'expert_testimony' — 'an expert says so'; no `rule_param` needed.\n- 'default' — 'absent contradicting evidence, conclude X'; `rule_param` carries the description.\n- 'temporal_precedence' — 'X happened before Y, therefore X caused Y'.\n- 'custom' — user-named rule; `rule_param` is the name, `rule_param2` the description.\n\nHALF-LIFE FORMULA (v1, the engine that answers every request): effective_half_life_days = domain_half_life × claim_type_multiplier × source_authority_multiplier × epistemic_status_multiplier (multipliers apply unless `claim.decay_half_life_days` is set explicitly, which bypasses the formula). The `claim_analyses[].decay_origin` field is the ISO 8601 instant decay is measured from (the claim's assertion_time, or the most recent effective corroboration), not a multiplier name. `audit.claim_credibility[].half_life_source` names whichever multiplier dominated the effective half-life: 'override' when the claim sets decay_half_life_days explicitly, 'domain' when no multiplier moved it off the base half-life, otherwise whichever of 'claim_type', 'source_authority', 'epistemic_status' sat farthest from 1.0.\n  - Domain defaults: Finance 180d, News 90d, Technology 365d, Geopolitics 730d, Medicine 3650d (10y), Science 9125d (25y), Legal 7300d (20y), General 180d.\n  - Epistemic multipliers: conjecture 0.5×, hypothesis 1× (default), theory 2×, law 100× (effectively immortal), superseded 0.25×, retracted 0×.\n  - Example: domain=Finance + epistemic_status=theory ⇒ 180 × 2 = 360d effective half-life. domain=Medicine + theory ⇒ 3650 × 2 = 7300d. The response shows the result in `decay_half_life_days`; multipliers stack, so a number larger than the raw domain default is expected, not a bug.\n  - What the v2 judge applies (#2488; it runs beside v1 and does not yet answer): it carries the half-life as an interval and applies the time coefficient c = 2^(-age/half-life) as an interval [c_lo, c_hi], not a point. The claim's half-life is `decay_half_life_days` when the claim sets it (a point); otherwise the investigation's base half-life (`decay_half_life_days` or the domain default) times the profile `time-prior-v1`: a claim-type factor and an epistemic-status factor, each the interval [min(1, m), max(1, m)] with m the v1 multiplier above (an absent claim_type or epistemic_status is the hull of every row of its axis, so the unknown stays a set; the v1-time-profile readout below reads them as v1 does, factual and hypothesis), and a source-authority factor of exactly [1, 1], so the source type never moves the clock. The profile values are founder judgement, provisional and not measured; the law row [1, 100] is flagged for review. A claim with no assertion_time has unknown age, so its coefficient is [0, 1]; assertion_time must be an exact RFC3339 time: v1 parses it first and answers 422 to anything else, so a year or a year-month date is not accepted at this API yet (the v2 engine reads a partial date as an age interval, but no payload can reach it), and an exact time is a point. Retracted and superseded are events, not rates: a retracted claim carries no mass, and a claim that another claim supersedes ends where its superseder begins; neither shortens a half-life. Evidence rows decay with their claim. The coefficient is applied after the credibility floor, so it never trips the floor. v2 offers three named, opt-in readouts that restore v1 readings under a stated assumption and are named in its output: class-anchor-as-trust, undated-as-fresh and v1-time-profile. The multipliers above are v1's point values and are priors, not measurements.\n\nOUTPUT GUIDE — the response contains these key sections:\n- subject_results: Per-subject verdicts with support/opposition/uncertainty scores that sum to 1.0, expected_probability (posterior), truth status (True/False/Both/Neither), and a plain-language `statement`. The truth status grades the PROPOSITION (subject, predicate) AGAINST THE CITED EVIDENCE: 'False' means the supplied evidence does not support it — not that the proposition is untrue in the world, and not that the opposing claims lack credibility. Public share pages render these as 'Supported by cited evidence' / 'Not supported by cited evidence' / 'Contested by cited evidence' / 'Insufficient evidence'; use that phrasing when relaying a verdict.\n- conflict_analysis: For EVERY subject+predicate pair, a full argumentation analysis with interpretation trees. Each InterpretationTree is a coherent reading of the evidence showing which claims are accepted, who made them, their credibility scores, and the attack/support relationships between them. coherence_score (0.0-1.0) measures narrative coherence (evidential coverage + internal support density + mean credibility).\n- claim_analyses: Per-claim record with claim_id, predicate, value, actor_id, truth_status (True/False/Both/Neither), epistemic_status, suggested_epistemic_status (when the engine recommends a change), freshness_score (0-1 composite), decay_origin (ISO 8601 instant decay is measured from: the claim's assertion_time, or the last effective corroboration), corroboration_count (how many independent confirmations fired), and last_corroborated (ISO 8601 of most recent confirmation). Credibility numbers are not here; they live under audit.claim_credibility.\n- audit: Paid-plan reasoning detail; null for callers without a paid plan. Contains ranked_claims, sensitivity_analysis and claim_credibility.\n  - audit.ranked_claims: All claims ranked by net CREDIBILITY (belief − disbelief), with a `direction` field ('supports'/'opposes'/'neutral') carrying the claim's stance separately. The `category` is a refinement of the claim's truth_status, so the two can never conflict: truth 'True' → 'strong' (belief > 0.5), 'moderate' (> 0.35), or 'weak'; 'Both' → 'contested'; 'False' → 'unsupported' (disbelief > 0.35) or 'weak'; 'Neither' → 'weak'. 'unsupported' is reserved for claims the engine actually disbelieves — a credible claim that merely opposes the research question ranks high with direction 'opposes'. Every label is source-relative: 'unsupported' means the cited evidence does not carry the claim, NOT that the claim is false. When you report these to a user, keep that framing — the engine measures sources against what they say and does not adjudicate the world.\n  - audit.sensitivity_analysis: Per-subject evidence gaps ordered by potential impact. Each gap shows current uncertainty, expected_probability, potential_shift, is_contested, discriminating_claims (claims in some but not all interpretations — targeting these best resolves disagreement), and a human-readable suggestion. Use for abductive reasoning — 'what should I look for next?'.\n  - audit.claim_credibility: Per-claim credibility keyed by claim_id: support/opposition/uncertainty (the claim's CREDIBILITY — how well-evidenced it is, independent of which way it points), `direction` ('supports'/'opposes'/'neutral', from valence), expected_probability, supporting_count/refuting_count/neutral_count, temporal_decay_factor (1.0 = no decay, 0.5 = claim lost half its weight), effective_half_life_days, half_life_source (which multiplier dominated the effective half-life — 'override', 'domain', 'claim_type', 'source_authority', or 'epistemic_status'), and below_credibility_floor=true when the actor's effective reliability fell below the floor (the claim is visible but evidence counts are zeroed). The claim's truth_status (in claim_analyses) is derived from that same opinion by one rule (τ = 0.15): support ≥ τ and opposition < τ → 'True'; opposition ≥ τ and support < τ → 'False'; both ≥ τ → 'Both'; otherwise 'Neither'.\n- temporal_analysis: When temporal features are used (corroboration, epistemic status, supersession), provides stale_claims, recently_corroborated, supersession_chains[] — each entry has `claim_ids[]` (chronological order, oldest first) and `current_claim_id` (the surviving terminal claim) — and overall_freshness (0-1 average).\n- accumulative_analysis: Populated when the payload includes distinctions whose argument pair shares a predicate. Contains conditional_conclusions[] — each names the predicate, the differentiating feature, and which condition each branch holds under. Cross-predicate distinctions or empty distinctions list ⇒ this section is omitted.\n- warnings: Input validation issues. See WARNING CATALOG below.\n\nWARNING CATALOG (non-fatal; the run still produces results):\n- 'claim X: decay_half_life_days=V is out of range (0, 365000]; using default' — per-claim half-life override rejected.\n- 'claim X: epistemic_status \"law\" is unusual for a predictive claim' — epistemic mismatch with claim_type.\n- 'claim X: N corroboration events exceeds limit of 100 — truncating' — corroboration list capped.\n- 'claim X: corroboration by same actor Y — self-corroboration is ignored' — same actor cannot corroborate themselves.\n- 'claim X: corroboration at T is before assertion at T0 — will be ignored' — corroboration must post-date the claim.\n- 'claim X: supersedes_claim_id Y not found in input claims' — supersession target missing.\n- 'claim X: N relationships exceeds limit; truncating' / 'relationship target Y not found' — relationships list capped or referent missing.\n- 'inference X: dropped (requires at least one premise)' / 'unknown premise claim_id(s)' / rule-specific error — inference rejected.\n- 'distinction X: argument_a and argument_b must differ — dropped' — distinction self-loops are rejected.\n- 'Claim X from actor Y: below credibility floor (V < 0.15). Evidence acknowledged but not counted in fusion.' — below CREDIBILITY FLOOR.\n- 'claim X: valence absent; treated as \"Supports\"...' — the claim omits valence and counts as an affirmation. Set valence explicitly; a 'Neutral' claim does not vote on the subject verdict.\n- 'decay_half_life_days=V is not positive; using domain default' / 'dependent_refresh_factor=V outside [0,1]; clamping' — investigation-level scalars out of range.\nEach warning names the field and input value at fault; fix them to improve analysis quality.\n\nCORROBORATION: When a claim has been independently confirmed at a later date, add corroboration_events with the confirming actor's ID and the confirmation time. Independent corroboration (different citation chain) fully resets the temporal decay clock; dependent-source corroboration provides partial refresh controlled by dependent_refresh_factor (default 0.5). This is critical for long-running investigations where early claims may otherwise appear stale. The number of confirmations and the most recent timestamp surface as `claim_analyses[].corroboration_count` and `.last_corroborated` so you can see the mechanism firing.\n\nEPISTEMIC STATUS: Set epistemic_status to reflect the claim's lifecycle:\n- 'conjecture' — untested assertion, decays 2× faster\n- 'hypothesis' — consistent with data (default), standard decay\n- 'theory' — validated by evidence, decays 2× slower\n- 'law' — established across all known ramifications, near-zero decay\n- 'superseded' — replaced by newer claim, decays 4× faster\n- 'retracted' — explicitly withdrawn, zero weight\n\nSUPERSESSION: When a newer claim replaces an older one (e.g., revised earnings estimate), set supersedes_claim_id on the newer claim (or a `relationships` entry with type 'supersedes'). The older claim's epistemic status is automatically set to 'superseded'. Chains are reported in `temporal_analysis.supersession_chains[]`: `claim_ids[]` lists every link in chronological order; `current_claim_id` is the surviving terminal claim.\n\nCREDIBILITY FLOOR: When an actor's effective reliability (base_reliability × competence) drops below CREDIBILITY_FLOOR = 0.15, the claim is acknowledged in the output but its evidence counts are zeroed in fusion. A `below_credibility_floor: true` flag appears on the corresponding `audit.claim_credibility[]` entry, and a warning is emitted.\n\nFOR ITERATIVE INVESTIGATIONS — when you expect to update claims, add corroboration, or iterate on a hypothesis over multiple turns — prefer the session API: `arbiter_create_investigation_session` → `arbiter_update_investigation_session` (add/replace by ID, or remove by `remove_*_ids`) → `arbiter_judge_investigation_session` → `arbiter_share_investigation_session` (to publish a snapshot). Sessions persist server-side; arbiter_submit_investigation is for one-shot analyses only.","operationId":"submit_investigation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestigationInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestigationResultWire"}}},"description":"Investigation completed successfully"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid investigation input"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal engine error"},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Investigation timed out"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Submit an investigation for analysis.","tags":["investigations"]}},"/api/v1/sessions":{"get":{"description":"List all investigation sessions for the current user. Returns session IDs, names, last-updated times, and whether each session has been judged.","operationId":"list_investigation_sessions","parameters":[{"description":"Case-insensitive name substring filter","in":"query","name":"name","required":false,"schema":{"type":"string"}},{"description":"Restrict to one workspace; omit for all workspaces","in":"query","name":"workspace_id","required":false,"schema":{"type":"string"}},{"description":"Filter by judged (true) or unjudged (false) status","in":"query","name":"has_result","required":false,"schema":{"type":"boolean"}},{"description":"ISO 8601 lower bound on updated_at","in":"query","name":"updated_after","required":false,"schema":{"type":"string"}},{"description":"ISO 8601 upper bound on updated_at","in":"query","name":"updated_before","required":false,"schema":{"type":"string"}},{"description":"Sort key: updated_at (default), created_at, or name","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Page size (1–200, default 50)","in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}},{"description":"Pagination offset (default 0)","in":"query","name":"offset","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SessionMeta"},"type":"array"}}},"description":"Session metadata array"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal store error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"List all investigation sessions for the authenticated user.","tags":["sessions"]},"post":{"description":"Create a new persistent investigation session. Sessions let you build an investigation incrementally — add actors, subjects, and claims over time, then judge (analyze) whenever you're ready. Use arbiter_update_investigation_session to modify actors, subjects, claims, domain, research_question, or any other field after creation. You can tweak and re-judge as many times as needed.\n\nSession IDs are Unicode strings — you can provide a meaningful name like 'tsla-q4-2025' or let the server auto-generate one.\n\nSessions do not expire. An investigation stays until you delete it, so a session you leave alone for a year is still there when you come back.\n\nLimits: max 10 MB payload. Names are required (non-empty, max 2000 chars).","operationId":"create_investigation_session","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionResponse"}}},"description":"Session created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid input (empty name, bad session_id, malformed payload)"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session ID already exists"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload exceeds size limit"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Per-user session limit reached"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Create a new persistent investigation session.","tags":["sessions"]}},"/api/v1/sessions/{id}":{"delete":{"description":"Permanently delete an investigation session and its stored results.","operationId":"delete_investigation_session","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Session deleted"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal store error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Permanently delete a session and its stored results.","tags":["sessions"]},"get":{"description":"Retrieve a session's current state: the investigation payload (actors, subjects, claims, evidence) and the last judgment result (if any; its audit block is null without a paid plan). Use this to review the session before making updates or to retrieve previously computed results.","operationId":"get_investigation_session","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionResponse"}}},"description":"Session state"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Corrupt session data"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve a session's current payload and last judgment result.","tags":["sessions"]},"patch":{"description":"Update a persistent investigation session — use this to change domain, research_question, add/replace actors/subjects/claims/evidence/inferences/distinctions, or rename the session. Merges changes into the existing payload:\n- Actors/subjects/claims/evidence/inferences/distinctions with matching IDs are replaced; new IDs are appended.\n- Use remove_*_ids to delete specific items.\n- Scalar fields (research_question, domain, etc.) are replaced if provided.\n- Adding distinctions automatically enables conditional conclusions on the next judge — no separate flag.\n\nChanges take effect on the next judge run.","operationId":"update_investigation_session","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSessionRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSessionStatus"}}},"description":"Session updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid name"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload exceeds size limit after merge"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal store / serialization error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Update a session's payload and/or name.","tags":["sessions"]}},"/api/v1/sessions/{id}/actors":{"get":{"description":"List every actor in a session's payload. Returns the full actor objects. To edit one actor without resending the whole payload, use arbiter_add_session_actor / arbiter_replace_session_actor / arbiter_delete_session_actor; to bulk-edit many fields at once, use arbiter_update_investigation_session.","operationId":"list_session_actors","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ActorInput"},"type":"array"}}},"description":"Actor list"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"List all actors in a session's payload.","tags":["sessions"]},"post":{"description":"Add an actor to a session, or replace the existing actor with the same id (upsert). The actor's `id` field is the key. Use this to append a single actor; for editing many elements at once prefer arbiter_update_investigation_session. Changes take effect on the next judge run.","operationId":"post_session_actor","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActorInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActorInput"}}},"description":"Actor created or replaced"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload too large after update"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Add or replace an actor in a session's payload (upsert by id).","tags":["sessions"]}},"/api/v1/sessions/{id}/actors/{actor_id}":{"delete":{"description":"Remove one actor from a session by id. Returns 404 if the session or actor does not exist.","operationId":"delete_session_actor","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Actor ID","in":"path","name":"actor_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Actor deleted"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or actor not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Delete an actor from a session's payload.","tags":["sessions"]},"get":{"description":"Fetch one actor from a session by its id. Returns 404 if the session or actor does not exist. Use arbiter_list_session_actors to discover actor ids.","operationId":"get_session_actor","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Actor ID","in":"path","name":"actor_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActorInput"}}},"description":"Actor"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or actor not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve a single actor by ID.","tags":["sessions"]},"put":{"description":"Replace an actor that already exists. The actor's `id` must match the target and the actor must already be present (returns 404 otherwise — use arbiter_add_session_actor to create). Changes take effect on the next judge run.","operationId":"put_session_actor","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Actor ID","in":"path","name":"actor_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActorInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActorInput"}}},"description":"Actor replaced"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Actor id does not match path"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or actor not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload too large after update"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Replace an actor. The actor must already exist (PUT semantics).","tags":["sessions"]}},"/api/v1/sessions/{id}/claims":{"get":{"description":"List every claim in a session's payload. Returns the full claim objects. To edit one claim without resending the whole payload, use arbiter_add_session_claim / arbiter_replace_session_claim / arbiter_delete_session_claim; to bulk-edit many fields at once, use arbiter_update_investigation_session.","operationId":"list_session_claims","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ClaimInput"},"type":"array"}}},"description":"Claim list"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"List all claims in a session's payload.","tags":["sessions"]},"post":{"description":"Add a claim to a session, or replace the existing claim with the same id (upsert). The claim's `id` field is the key. Use this to append a single claim; for editing many elements at once prefer arbiter_update_investigation_session. Changes take effect on the next judge run.","operationId":"post_session_claim","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimInput"}}},"description":"Claim created or replaced"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload too large"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Add or replace a claim in a session's payload.","tags":["sessions"]}},"/api/v1/sessions/{id}/claims/{claim_id}":{"delete":{"description":"Remove one claim from a session by id. Returns 404 if the session or claim does not exist.","operationId":"delete_session_claim","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Claim ID","in":"path","name":"claim_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Claim deleted"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or claim not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Delete a claim from a session's payload.","tags":["sessions"]},"get":{"description":"Fetch one claim from a session by its id. Returns 404 if the session or claim does not exist. Use arbiter_list_session_claims to discover claim ids.","operationId":"get_session_claim","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Claim ID","in":"path","name":"claim_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimInput"}}},"description":"Claim"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or claim not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve a single claim by ID.","tags":["sessions"]},"put":{"description":"Replace a claim that already exists. The claim's `id` must match the target and the claim must already be present (returns 404 otherwise — use arbiter_add_session_claim to create). Changes take effect on the next judge run.","operationId":"put_session_claim","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Claim ID","in":"path","name":"claim_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimInput"}}},"description":"Claim replaced"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"ID mismatch"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or claim not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload too large"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Replace a claim. The claim must already exist.","tags":["sessions"]}},"/api/v1/sessions/{id}/distinctions":{"get":{"description":"List every distinction in a session's payload. Distinctions enable conditional/accumulative analysis on the next judge run. Returns the full distinction objects. To edit one distinction without resending the whole payload, use arbiter_add_session_distinction / arbiter_replace_session_distinction / arbiter_delete_session_distinction.","operationId":"list_session_distinctions","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DistinctionInput"},"type":"array"}}},"description":"Distinction list"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"List all distinctions in a session's payload.","tags":["sessions"]},"post":{"description":"Add a distinction to a session, or replace the existing distinction with the same id (upsert). Adding distinctions automatically enables accumulative analysis on the next judge run — no separate flag required. Changes take effect on the next judge run.","operationId":"post_session_distinction","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistinctionInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistinctionInput"}}},"description":"Distinction created or replaced"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload too large"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Add or replace a distinction in a session's payload.","tags":["sessions"]}},"/api/v1/sessions/{id}/distinctions/{distinction_id}":{"delete":{"description":"Remove one distinction from a session by id. Returns 404 if the session or distinction does not exist. Removing all distinctions disables accumulative analysis on the next judge run.","operationId":"delete_session_distinction","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Distinction ID","in":"path","name":"distinction_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Distinction deleted"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or distinction not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Delete a distinction from a session's payload.","tags":["sessions"]},"get":{"description":"Fetch one distinction from a session by its id. Returns 404 if the session or distinction does not exist. Use arbiter_list_session_distinctions to discover distinction ids.","operationId":"get_session_distinction","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Distinction ID","in":"path","name":"distinction_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistinctionInput"}}},"description":"Distinction"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or distinction not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve a single distinction by ID.","tags":["sessions"]},"put":{"description":"Replace a distinction that already exists. The distinction's `id` must match the target and must already be present (returns 404 otherwise — use arbiter_add_session_distinction to create). Changes take effect on the next judge run.","operationId":"put_session_distinction","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Distinction ID","in":"path","name":"distinction_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistinctionInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistinctionInput"}}},"description":"Distinction replaced"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"ID mismatch"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or distinction not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload too large"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Replace a distinction. The distinction must already exist.","tags":["sessions"]}},"/api/v1/sessions/{id}/evidence":{"get":{"description":"List every evidence item in a session's payload. Returns the full evidence objects. To edit one item without resending the whole payload, use arbiter_add_session_evidence / arbiter_replace_session_evidence / arbiter_delete_session_evidence; to bulk-edit many fields at once, use arbiter_update_investigation_session.","operationId":"list_session_evidence","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EvidenceInput"},"type":"array"}}},"description":"Evidence list"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"List all evidence items in a session's payload.","tags":["sessions"]},"post":{"description":"Add an evidence item to a session, or replace the existing item with the same id (upsert). The evidence's `id` field is the key. Works even when the session has no evidence yet (None → first insert). Changes take effect on the next judge run.\n\nA row's `valence` is relative to its claim: 'Supports' corroborates it, 'Refutes' undercuts it, even on a 'Refutes' claim. Do not copy the claim's valence onto rows; declare `row_convention` if a session did.","operationId":"post_session_evidence","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceInput"}}},"description":"Evidence created or replaced"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload too large"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Add or replace an evidence item in a session's payload.","tags":["sessions"]}},"/api/v1/sessions/{id}/evidence/{evidence_id}":{"delete":{"description":"Remove one evidence item from a session by id. Returns 404 if the session or evidence item does not exist.","operationId":"delete_session_evidence","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Evidence ID","in":"path","name":"evidence_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Evidence deleted"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or evidence not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Delete an evidence item from a session's payload.","tags":["sessions"]},"get":{"description":"Fetch one evidence item from a session by its id. Returns 404 if the session or evidence item does not exist. Use arbiter_list_session_evidence to discover evidence ids.","operationId":"get_session_evidence","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Evidence ID","in":"path","name":"evidence_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceInput"}}},"description":"Evidence item"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or evidence not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve a single evidence item by ID.","tags":["sessions"]},"put":{"description":"Replace an evidence item that already exists. The evidence's `id` must match the target and the item must already be present (returns 404 otherwise — use arbiter_add_session_evidence to create). Changes take effect on the next judge run.","operationId":"put_session_evidence","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Evidence ID","in":"path","name":"evidence_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceInput"}}},"description":"Evidence item replaced"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"ID mismatch"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or evidence not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload too large"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Replace an evidence item. The item must already exist.","tags":["sessions"]}},"/api/v1/sessions/{id}/inferences":{"get":{"description":"List every inference in a session's payload. Returns the full inference objects. To edit one inference without resending the whole payload, use arbiter_add_session_inference / arbiter_replace_session_inference / arbiter_delete_session_inference; to bulk-edit many fields at once, use arbiter_update_investigation_session.","operationId":"list_session_inferences","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/InferenceInput"},"type":"array"}}},"description":"Inference list"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"List all inferences in a session's payload.","tags":["sessions"]},"post":{"description":"Add an inference to a session, or replace the existing inference with the same id (upsert). The inference's `id` field is the key. Changes take effect on the next judge run.","operationId":"post_session_inference","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceInput"}}},"description":"Inference created or replaced"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload too large"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Add or replace an inference in a session's payload.","tags":["sessions"]}},"/api/v1/sessions/{id}/inferences/{inference_id}":{"delete":{"description":"Remove one inference from a session by id. Returns 404 if the session or inference does not exist.","operationId":"delete_session_inference","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Inference ID","in":"path","name":"inference_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Inference deleted"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or inference not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Delete an inference from a session's payload.","tags":["sessions"]},"get":{"description":"Fetch one inference from a session by its id. Returns 404 if the session or inference does not exist. Use arbiter_list_session_inferences to discover inference ids.","operationId":"get_session_inference","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Inference ID","in":"path","name":"inference_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceInput"}}},"description":"Inference"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or inference not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve a single inference by ID.","tags":["sessions"]},"put":{"description":"Replace an inference that already exists. The inference's `id` must match the target and must already be present (returns 404 otherwise — use arbiter_add_session_inference to create). Changes take effect on the next judge run.","operationId":"put_session_inference","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Inference ID","in":"path","name":"inference_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceInput"}}},"description":"Inference replaced"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"ID mismatch"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or inference not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload too large"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Replace an inference. The inference must already exist.","tags":["sessions"]}},"/api/v1/sessions/{id}/interpretation":{"get":{"description":"Read the current analyst commentary stored on a session. Returns {session_id, interpretation, interpretation_updated_at} where interpretation is null if none has been set. Commentary is attributed narrative about a specific judgement, not engine output.","operationId":"get_session_interpretation","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterpretationResponse"}}},"description":"Interpretation text"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve the interpretation for a session.","tags":["sessions"]},"put":{"description":"Write narrative analyst commentary on the most recent judgement of a session. The session MUST have been judged at least once (call arbiter_judge_investigation_session first); unjudged sessions return 409. Rules for writing commentary: (1) Every conclusion must trace to a specific verdict, ranked claim, evidence gap, or temporal finding in the judgement — do not introduce conclusions the engine did not reach. (2) State the Belnap status and expected probability in words; never overstate them ('likely' for 0.62, not 'confirmed'). (3) Name the top evidence gap and any contested claims — commentary that omits the gaps is defective commentary. (4) If verdicts are Neither/Both, say the evidence is insufficient/conflicted; do not resolve ambiguity the engine left open. (5) Commentary is attributed narrative, not engine output; it is displayed with a staleness marker against the judgement it describes. Pass interpretation as a string to set, or null to clear.","operationId":"set_session_interpretation","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetInterpretationRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSessionStatus"}}},"description":"Commentary saved"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not yet judged — judge first"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Commentary exceeds size limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Set or clear analyst commentary on a session. The session must have\nbeen judged at least once; unjudged sessions return 409.","tags":["sessions"]}},"/api/v1/sessions/{id}/judge":{"post":{"description":"Run the Arbiter reasoning engine on the current session payload and persist the results. Returns the full investigation analysis (same output as arbiter_submit_investigation); its audit block (ranked_claims, sensitivity_analysis, claim_credibility) is null without a paid plan. The result is also stored on the session for later retrieval via arbiter_get_investigation_session.\n\n**Modes:**\n- *Default (full)*: full claim_analyses, temporal_analysis, and — when the payload has distinctions — accumulative_analysis with conditional conclusions.\n- *summary_mode=true*: compact output (top findings, top contested claims, top evidence gaps); accumulative_analysis is omitted.\n- *Accumulative analysis*: produced automatically whenever the payload contains distinctions. There is no separate flag — add distinctions via arbiter_update_investigation_session and re-judge.\n\nMode overrides set here are one-shot — they do not persist back to the stored session.\n\nCan be called repeatedly after updates; each run overwrites the previous result.\n\n**Quota:** A judge run that reaches a verdict consumes one call against the monthly plan limit, the first time a given session reaches a verdict. A re-judge of a session that already has one is free — iterate as needed. A judge that fails for any reason (validation error, timeout, internal error) is refunded, so it never costs a call. Admin API keys are exempt entirely. This response carries a `quota` object (`calls_used`, `monthly_limit`, `remaining`) whenever a call was actually debited; it is absent for a free re-judge, an admin key, or a deployment with no quota database. The same `quota` shape appears in the 429 body (`remaining: 0`) when the monthly limit is exhausted.","operationId":"judge_investigation_session","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JudgeOverride"}}},"description":"Optional one-shot overrides; omit body entirely to use stored payload defaults","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JudgeResponse"}}},"description":"Analysis complete"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid investigation payload"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal engine / store error"},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Investigation timed out"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Run the reasoning engine on the session's stored payload.","tags":["sessions"]}},"/api/v1/sessions/{id}/judgements":{"get":{"description":"List the audit trail of every judge run for a session, ordered newest-first. Returns compact metadata (id, judged_at, duration_ms) without the bulky input_snapshot or result payload — use arbiter_get_session_judgement or arbiter_get_latest_session_judgement to fetch the full record.","operationId":"list_session_judgements","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/JudgementMeta"},"type":"array"}}},"description":"Judgement metadata list"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal store error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"List all judgement records for a session (metadata only, newest first).","tags":["sessions"]}},"/api/v1/sessions/{id}/judgements/latest":{"get":{"description":"Convenience shortcut for the newest judgement in a session's audit trail. Returns the same full JudgementRecord as arbiter_get_session_judgement but resolves the latest-by-time automatically. Returns 404 when the session has never been judged.","operationId":"get_latest_session_judgement","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JudgementRecord"}}},"description":"Latest judgement record"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found or no judgements yet"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal store error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve the most recent judgement for a session (full record).","tags":["sessions"]}},"/api/v1/sessions/{id}/judgements/latest/audit":{"get":{"description":"Convenience shortcut for arbiter_get_session_judgement_audit that resolves the latest-by-time judgement automatically, the same way arbiter_get_latest_session_judgement does for the full record. Returns 404 when the session has never been judged.","operationId":"get_latest_session_judgement_audit","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditTrace"}}},"description":"Resolved audit trace, JSON or CSV per Accept"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The text/csv representation requires a paid plan"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found or no judgements yet"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal store error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve the resolved audit trace for a session's most recent\njudgement — the convenience shortcut a UI needs to link straight to a\ndownload without first fetching the judgement ID via\n`list_judgements`/`get_latest_judgement`. Mirrors `get_latest_judgement`\nfor resolution; same `Accept`-negotiated JSON/CSV shape as\n`get_judgement_audit`.","tags":["judgements"]}},"/api/v1/sessions/{id}/judgements/{judgement_id}":{"get":{"description":"Retrieve a specific judgement by its UUID. Returns the full record: id, session_id, judged_at, duration_ms, input_snapshot (the payload as it was at judge time, after any one-shot overrides), and result (the investigation result; its audit block — ranked_claims, sensitivity_analysis, claim_credibility — is null without a paid plan). Use arbiter_list_session_judgements to discover available judgement IDs.","operationId":"get_session_judgement","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Judgement UUID","in":"path","name":"judgement_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JudgementRecord"}}},"description":"Judgement record"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid judgement_id UUID"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or judgement not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal store error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve a specific judgement by its UUID (full record with input snapshot).","tags":["sessions"]}},"/api/v1/sessions/{id}/judgements/{judgement_id}/audit":{"get":{"description":"Retrieve the same audit trace the /audit REST endpoint serves as JSON: one row per claim, with actor_name/subject_name/truth_status/support/opposition/uncertainty/rank/evidence_count already resolved by name, so the caller never re-joins claim_id/actor_id/subject_id itself. This tool always returns JSON — the paid-only CSV export is a REST/browser-download concept (Accept: text/csv on the same endpoint), not an MCP one. Use arbiter_list_session_judgements to discover available judgement IDs.","operationId":"get_session_judgement_audit","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Judgement ID (UUID)","in":"path","name":"judgement_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditTrace"}}},"description":"Resolved audit trace, JSON or CSV per Accept"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The text/csv representation requires a paid plan"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or judgement not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal store error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve the resolved audit trace for a specific judgement: claims\njoined to their actor, subject, credibility analysis, and rank, so a\ncaller never re-derives the join itself (issue #2207).","tags":["judgements"]}},"/api/v1/sessions/{id}/notes":{"get":{"description":"Read the private working notes stored on a session. Returns {session_id, private_notes, private_notes_updated_at} where private_notes is null if none have been set. These are the author's own notes — never published, never part of a share snapshot. For the reader-facing narrative use arbiter_get_session_interpretation instead.","operationId":"get_session_private_notes","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateNotesResponse"}}},"description":"Notes"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Read the author's private notes for a session.","tags":["sessions"]},"put":{"description":"Write the session author's PRIVATE working notes. These are never published: they are excluded from the public share snapshot and render on no public page. Distinct from arbiter_set_session_interpretation, which writes analyst commentary FOR readers and appears above the verdicts on a share page — if the text is meant to be read by anyone else, it belongs there, not here. Use notes for the working record: which source looked thin and why, what to check next, why a reliability score was chosen, what a later judgement should revisit. Unlike commentary this does not require a judged session — notes are most useful while an investigation is still being assembled. Markdown; the console renders it. Capped at 32768 bytes (413 beyond that). Pass private_notes as a string to set, or null to clear.","operationId":"set_session_private_notes","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPrivateNotesRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSessionStatus"}}},"description":"Notes saved"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Notes exceed size limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Set or clear the author's private notes on a session.","tags":["sessions"]}},"/api/v1/sessions/{id}/share":{"get":{"description":"Return the current share state for an owned session: share_uuid, slug, preferred_pane, is_public, audit_shareable, public URL, and snapshot timestamp. Returns an error if the session has never been shared.","operationId":"get_investigation_session_share","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareResponse"}}},"description":"Share state"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No share record for this session"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal store error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Return the current share state for an owned session.","tags":["shares"]},"put":{"description":"Toggle public sharing on an investigation session. When `public: true` the server takes a fresh, datetime-stamped snapshot of the session payload and last judgement; viewers see exactly that snapshot via a URL of the form `https://arbiter.housecarl.cloud/share/<uuid>/<slug>`. Sharing again with `public: false` hides the page and clears the snapshot — but the share_uuid is preserved, so calling with `public: true` later restores the same URL. Use this when the user asks you to publish an analysis, post results, generate a sharable link, or take it back down. Returns the public URL and the share metadata.\n\nWhen public, all claims, evidence, actor identities, and judgement results are world-readable. Publishing makes the user the publisher of that page and responsible for its contents, including any statements about named people or organizations.\n\nThe resolved audit trace is separate and opt-in: set `audit_shareable: true` to expose it on the public page. Enabling it (flipping it from false to true) requires the caller's plan, resolved live from the database, to be a paid plan — a free-plan caller gets `plan_limit_reached`. Leaving it at its already-set value while changing something else (slug, pane, visibility) never requires this check, so a since-downgraded owner can still edit unrelated share settings.\n\nOne exception to link stability: if an operator took the page down after a complaint, the session cannot be re-shared and this returns a 409. That is not a finding that the analysis was wrong — see the error message for the appeal route.","operationId":"share_investigation_session","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetShareRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareResponse"}}},"description":"Share state updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid slug or preferred_pane"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Enabling audit_shareable requires a paid plan"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"An operator took this session's share page down; it cannot be re-shared"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal store error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Toggle the public-share flag and snapshot the current session state.","tags":["shares"]}},"/api/v1/sessions/{id}/subjects":{"get":{"description":"List every subject in a session's payload. Returns the full subject objects. To edit one subject without resending the whole payload, use arbiter_add_session_subject / arbiter_replace_session_subject / arbiter_delete_session_subject; to bulk-edit many fields at once, use arbiter_update_investigation_session.","operationId":"list_session_subjects","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SubjectInput"},"type":"array"}}},"description":"Subject list"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"List all subjects in a session's payload.","tags":["sessions"]},"post":{"description":"Add a subject to a session, or replace the existing subject with the same id (upsert). The subject's `id` field is the key. Use this to append a single subject; for editing many elements at once prefer arbiter_update_investigation_session. Changes take effect on the next judge run.","operationId":"post_session_subject","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectInput"}}},"description":"Subject created or replaced"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload too large"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Add or replace a subject in a session's payload.","tags":["sessions"]}},"/api/v1/sessions/{id}/subjects/{subject_id}":{"delete":{"description":"Remove one subject from a session by id. Returns 404 if the session or subject does not exist.","operationId":"delete_session_subject","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Subject ID","in":"path","name":"subject_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Subject deleted"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or subject not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Delete a subject from a session's payload.","tags":["sessions"]},"get":{"description":"Fetch one subject from a session by its id. Returns 404 if the session or subject does not exist. Use arbiter_list_session_subjects to discover subject ids.","operationId":"get_session_subject","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Subject ID","in":"path","name":"subject_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectInput"}}},"description":"Subject"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or subject not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve a single subject by ID.","tags":["sessions"]},"put":{"description":"Replace a subject that already exists. The subject's `id` must match the target and the subject must already be present (returns 404 otherwise — use arbiter_add_session_subject to create). Changes take effect on the next judge run.","operationId":"put_session_subject","parameters":[{"description":"Session ID","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Subject ID","in":"path","name":"subject_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectInput"}}},"description":"Subject replaced"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"ID mismatch"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Session or subject not found"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payload too large"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Replace a subject. The subject must already exist.","tags":["sessions"]}},"/api/v1/shares":{"get":{"description":"List every share record owned by the calling user. Returns session_id, session name, share_uuid, slug, public URL, is_public, preferred_pane, audit_shareable, and timestamps for each. Useful for auditing what's currently public, finding old links, or batch-toggling visibility.","operationId":"list_investigation_session_shares","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ShareListItemResponse"},"type":"array"}}},"description":"Array of share records"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal store error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"List every share record owned by the calling user.","tags":["shares"]}},"/api/v1/workspaces":{"get":{"description":"List every workspace on your account, oldest first so \"Default\" leads. Takes no arguments. Each entry carries {id, name, description, created_at, updated_at}.\n\nUse the returned `id` as the `workspace_id` argument to arbiter_create_investigation_session or arbiter_list_investigation_sessions to scope work to one workspace. Only your own workspaces are ever returned.","operationId":"list_workspaces","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Workspace"},"type":"array"}}},"description":"Workspace array"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal store error"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"List every workspace the caller owns.","tags":["workspaces"]},"post":{"description":"Create a workspace: an owned container that investigation sessions are grouped into. Pass {\"name\": \"...\"} and optionally {\"description\": \"...\"}. Returns {workspace_id}.\n\nEvery account starts with one workspace named \"Default\" (id `default`), created automatically the first time you list or create a session — you never have to make it yourself. Create additional workspaces to keep unrelated lines of investigation apart; how many you may hold depends on your plan, and exceeding it returns 429.\n\nWorkspaces in this phase hold sessions and nothing else — there is no document upload or ingest here. Attach a session by passing `workspace_id` to arbiter_create_investigation_session, or move an existing one with arbiter_update_investigation_session.","operationId":"create_workspace","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceResponse"}}},"description":"Workspace created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid name, description, or workspace_id"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Workspace ID already exists"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Plan workspace limit reached"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Create a new workspace.","tags":["workspaces"]}},"/api/v1/workspaces/{id}":{"delete":{"description":"Delete a workspace. Pass {\"workspace_id\": \"...\"}.\n\nOnly an EMPTY workspace can be deleted. If any session still lives in it the call is refused with a conflict and nothing is changed — deleting a container must never silently take a user's investigations and their judgement history with it. To remove a non-empty workspace, first move its sessions elsewhere (arbiter_update_investigation_session with a different `workspace_id`) or delete them (arbiter_delete_investigation_session), then delete the workspace.\n\nDeletion is permanent and is not undoable.","operationId":"delete_workspace","parameters":[{"description":"Workspace ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceStatus"}}},"description":"Workspace deleted"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Workspace not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Workspace still contains sessions"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Delete an empty workspace.","tags":["workspaces"]},"get":{"description":"Retrieve a single workspace: {id, name, description, created_at, updated_at}. Pass {\"workspace_id\": \"...\"}.\n\nA workspace that does not exist and one belonging to another account are reported identically, so this can not be used to probe for ids you do not own. To see what a workspace contains, call arbiter_list_investigation_sessions with the same `workspace_id`.","operationId":"get_workspace","parameters":[{"description":"Workspace ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}},"description":"Workspace"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Workspace not found"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Retrieve one workspace.","tags":["workspaces"]},"patch":{"description":"Rename a workspace or change its description. Pass {\"workspace_id\": \"...\"} with `name`, `description`, or both. Omitting a field leaves it unchanged; passing an empty `description` clears it.\n\nThis edits the container only — the sessions inside are untouched. To move a session between workspaces use arbiter_update_investigation_session with its `workspace_id`.","operationId":"update_workspace","parameters":[{"description":"Workspace ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceStatus"}}},"description":"Workspace updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid name or description"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Workspace not found"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Rename a workspace or change its description.","tags":["workspaces"]}},"/api/v1/workspaces/{id}/files":{"get":{"operationId":"list_workspace_files","parameters":[{"description":"Workspace id","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WorkspaceFile"},"type":"array"}}},"description":"Documents in the workspace"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No such workspace"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"List the current version of every document in a workspace.","tags":["workspaces"]},"post":{"operationId":"upload_workspace_file","parameters":[{"description":"Workspace id","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Display name for the document","in":"query","name":"filename","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"text/plain":{"schema":{"type":"string"}}},"description":"UTF-8 plain text","required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}},"description":"Accepted for ingest"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not valid UTF-8, or empty"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No such workspace"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Document too large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unsupported media type"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Workspace document limit reached"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Uploads are not configured"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Upload a new document.","tags":["workspaces"]}},"/api/v1/workspaces/{id}/files/{file_id}":{"delete":{"operationId":"delete_workspace_file","parameters":[{"description":"Workspace id","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"File id","in":"path","name":"file_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponse"}}},"description":"Deleted"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No such workspace or file"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Delete every version of a document.","tags":["workspaces"]},"get":{"operationId":"get_workspace_file","parameters":[{"description":"Workspace id","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"File id","in":"path","name":"file_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFileStatus"}}},"description":"The document and its ingest state"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No such workspace or file"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"One document, with its live ingest state.","tags":["workspaces"]},"post":{"operationId":"upload_workspace_file_version","parameters":[{"description":"Workspace id","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"File id","in":"path","name":"file_id","required":true,"schema":{"type":"string"}},{"description":"Display name for the document","in":"query","name":"filename","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"text/plain":{"schema":{"type":"string"}}},"description":"UTF-8 plain text","required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}},"description":"Accepted for ingest"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No such workspace or file"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unsupported media type"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Uploads are not configured"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Upload a new version of an existing document.","tags":["workspaces"]}},"/api/v1/workspaces/{id}/files/{file_id}/versions":{"get":{"operationId":"list_workspace_file_versions","parameters":[{"description":"Workspace id","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"File id","in":"path","name":"file_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WorkspaceFile"},"type":"array"}}},"description":"Version history"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No such workspace or file"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"Every version of one document, newest first.","tags":["workspaces"]}},"/api/v1/workspaces/{id}/sessions":{"get":{"operationId":"list_workspace_sessions","parameters":[{"description":"Workspace ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SessionMeta"},"type":"array"}}},"description":"Session metadata array"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"User-scoped credential required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Workspace not found"}},"security":[{"api_key":[]},{"bearer":[]}],"summary":"List the sessions inside one workspace.","tags":["workspaces"]}}},"security":[{"api_key":[]},{"bearer":[]}],"servers":[{"description":"Production API host","url":"https://api.arbiter.housecarl.cloud"}]}