basePath: /api/agent-observability/v1 definitions: assemblysvc.BusinessRefView: properties: disclosure_status: type: string display: $ref: '#/definitions/evidencevo.BusinessDisplay' technical_ref: $ref: '#/definitions/sessionvo.BusinessRef' type: object assemblysvc.ClaimAssembly: properties: adopted_supports: items: $ref: '#/definitions/sessionvo.ClaimSupport' type: array claim: $ref: '#/definitions/sessionvo.Claim' completeness: $ref: '#/definitions/sessionvo.EvidenceStatus' partial_reasons: items: type: string type: array rejected_supports: items: $ref: '#/definitions/sessionvo.ClaimSupport' type: array unused_evidence_refs: description: UnusedEvidenceRefs are refs neither adopted nor rejected by this Claim. items: $ref: '#/definitions/sessionvo.EvidenceRef' type: array type: object assemblysvc.EventNode: properties: causation_event_ids: items: type: string type: array emitted_at: type: string event_id: type: string event_type: type: string layer: type: integer observed_at: type: string operation_id: type: string producer_epoch: type: integer producer_sequence: type: integer producer_stream_id: type: string started_at: type: string type: object assemblysvc.OperationBusinessEdgeView: properties: business_ref: $ref: '#/definitions/assemblysvc.BusinessRefView' observed_at: type: string operation_id: type: string role: $ref: '#/definitions/sessionvo.OperationBusinessRole' type: object assemblysvc.ProjectedResult: properties: artifact_refs: items: type: string type: array business_refs: items: $ref: '#/definitions/assemblysvc.BusinessRefView' type: array claims: items: $ref: '#/definitions/assemblysvc.ClaimAssembly' type: array completeness: $ref: '#/definitions/sessionvo.EvidenceStatus' disclosure_partial: description: DisclosurePartial is true when the current authorized projection could not classify every business ref. type: boolean disclosure_reasons: description: DisclosureReasons describe resolver/projection degradation without changing objective completeness. items: type: string type: array event_layers: additionalProperties: type: integer type: object events: items: $ref: '#/definitions/assemblysvc.EventNode' type: array evidence_refs: items: $ref: '#/definitions/sessionvo.EvidenceRef' type: array included_event_ids: items: type: string type: array operation_business_edges: items: $ref: '#/definitions/assemblysvc.OperationBusinessEdgeView' type: array partial_reasons: description: PartialReasons describe objective evidence-assembly gaps and never authorization outcomes. items: type: string type: array unused_evidence_refs: description: UnusedEvidenceRefs are refs neither adopted nor rejected by any Claim in this revision. items: $ref: '#/definitions/sessionvo.EvidenceRef' type: array type: object capturepolicysvc.AckState: enum: - ready - draining - disabled - gap type: string x-enum-varnames: - AckReady - AckDraining - AckDisabled - AckGap capturepolicysvc.AdmissionBudget: properties: contract_version: type: string fresh_until: type: string measurements: items: $ref: '#/definitions/capturepolicysvc.AdmissionMeasurement' type: array profile: type: string sampled_at: type: string type: object capturepolicysvc.AdmissionMeasurement: properties: fresh: type: boolean metric: type: string sample_time: type: string source: type: string threshold: type: number value: type: number type: object capturepolicysvc.ChangeRequest: properties: desired_state: allOf: - $ref: '#/definitions/capturepolicysvc.State' enum: - enabled - disabled expected_revision: type: integer type: object capturepolicysvc.ConfigurationGetResponse: properties: active_operation_id: type: string admission_budget: $ref: '#/definitions/capturepolicysvc.AdmissionBudget' desired_state: $ref: '#/definitions/capturepolicysvc.State' effective_state: $ref: '#/definitions/capturepolicysvc.State' heartbeat_interval_seconds: type: integer kind: type: string last_stable_revision: type: integer lease_ttl_seconds: type: integer policy_revision: type: integer type: object capturepolicysvc.EndpointAcknowledgement: properties: generation: type: string instance_id: type: string queue_disposition: $ref: '#/definitions/capturepolicysvc.QueueDisposition' ready: type: boolean revision: type: integer state: $ref: '#/definitions/capturepolicysvc.AckState' type: object capturepolicysvc.Operation: properties: error_code: type: string expected_revision: type: integer id: type: string phase: $ref: '#/definitions/capturepolicysvc.Phase' requested_state: $ref: '#/definitions/capturepolicysvc.State' type: object capturepolicysvc.Phase: enum: - pending - enabling - disabling - rolling_back - succeeded - failed - rollback_completed - rollback_failed type: string x-enum-varnames: - PhasePending - PhaseEnabling - PhaseDisabling - PhaseRollingBack - PhaseSucceeded - PhaseFailed - PhaseRollbackComplete - PhaseRollbackFailed capturepolicysvc.QueueDisposition: properties: dropped: type: integer exported: type: integer unaccounted: type: integer x-nullable: true type: object capturepolicysvc.State: enum: - enabled - disabled - enabling - disabling - rolling_back type: string x-enum-varnames: - StateEnabled - StateDisabled - StateEnabling - StateDisabling - StateRollingBack evidencevo.ArtifactIngestResponse: properties: artifact_id: type: string artifact_type: $ref: '#/definitions/evidencevo.ArtifactType' bkn.request.id: type: string content_hash: type: string created: type: boolean trace_id: type: string type: object evidencevo.ArtifactLink: properties: artifact_ref: type: string artifact_type: $ref: '#/definitions/evidencevo.ArtifactType' claim_id: type: string event_id: type: string event_type: type: string operation_id: type: string role: type: string type: object evidencevo.ArtifactType: enum: - question - result - query - data_result - logic_execution - action_input - action_result type: string x-enum-varnames: - ArtifactTypeQuestion - ArtifactTypeResult - ArtifactTypeQuery - ArtifactTypeDataResult - ArtifactTypeLogicExecution - ArtifactTypeActionInput - ArtifactTypeActionResult evidencevo.BusinessDisplay: properties: business_path: items: type: string type: array controlled_summary: type: string name: type: string resolution_status: type: string source_version: type: string type: object evidencevo.BusinessGraphData: properties: edges: items: $ref: '#/definitions/evidencevo.BusinessGraphEdge' type: array nodes: items: $ref: '#/definitions/evidencevo.BusinessGraphNode' type: array type: object evidencevo.BusinessGraphEdge: properties: edge_type: type: string id: type: string source_id: type: string target_id: type: string visibility: type: string type: object evidencevo.BusinessGraphNode: properties: action_instance_id: type: string claim_id: type: string display: $ref: '#/definitions/evidencevo.BusinessDisplay' event_id: type: string id: type: string interaction_id: type: string label: type: string node_type: type: string operation_id: type: string properties: additionalProperties: {} type: object stage: type: string version_status: type: string visibility: type: string type: object evidencevo.BusinessGraphResponse: properties: bkn.request.id: type: string conclusion_scope: type: string data: $ref: '#/definitions/evidencevo.BusinessGraphData' page: $ref: '#/definitions/evidencevo.EvidencePage' partial: type: boolean partial_reason: items: type: string type: array trace_id: type: string visibility_summary: $ref: '#/definitions/evidencevo.VisibilitySummary' type: object evidencevo.EvidenceArtifact: properties: agent_or_app: type: string application_principal_id: type: string artifact_id: type: string artifact_type: $ref: '#/definitions/evidencevo.ArtifactType' as_of: type: string bkn.account.id: type: string bkn.account.type: type: string bkn.request.id: type: string business_refs: items: type: string type: array claim_id: type: string content: {} content_hash: type: string content_type: type: string effective_subject_id: type: string initiator: type: string interaction_id: type: string knowledge_network_ids: items: type: string type: array observed_at: type: string operation_id: type: string schema_version: type: string snapshot_ref: type: string source_ref: type: string source_version: type: string trace_id: type: string type: object evidencevo.EvidenceChainData: properties: artifact_links: items: $ref: '#/definitions/evidencevo.ArtifactLink' type: array business_refs: items: additionalProperties: {} type: object type: array claims: items: additionalProperties: {} type: object type: array evidence_refs: items: additionalProperties: {} type: object type: array type: object evidencevo.EvidenceChainResponse: properties: bkn.request.id: type: string conclusion_scope: type: string data: $ref: '#/definitions/evidencevo.EvidenceChainData' page: $ref: '#/definitions/evidencevo.EvidencePage' partial: type: boolean partial_reason: items: type: string type: array trace_id: type: string visibility_summary: $ref: '#/definitions/evidencevo.VisibilitySummary' type: object evidencevo.EvidenceNodeResponse: properties: bkn.request.id: type: string claim_id: type: string data: additionalProperties: {} type: object node_id: type: string node_type: type: string trace_id: type: string version_status: type: string visibility: type: string type: object evidencevo.EvidencePage: properties: edge_count: type: integer next_cursor: type: string node_count: type: integer truncated: type: boolean type: object evidencevo.IngestResponse: properties: accepted_event_count: type: integer bkn.request.id: type: string bkn.trace.schema.version: type: string business_ref_count: type: integer claim_count: type: integer evidence_ref_count: type: integer trace_id: type: string type: object evidencevo.SnapshotManifest: properties: artifact_count: type: integer artifact_hash: type: string bkn.request.id: type: string business_ref_count: type: integer claim_count: type: integer compliance_status: type: string dlp_classification: type: string evidence_ref_count: type: integer legal_hold: type: string manifest_hash: type: string producer: type: string retention_policy: type: string schema_version: type: string signature_status: type: string trace_id: type: string visibility_summary: $ref: '#/definitions/evidencevo.VisibilitySummary' type: object evidencevo.SnapshotPreviewResponse: properties: bkn.request.id: type: string manifest: $ref: '#/definitions/evidencevo.SnapshotManifest' partial: type: boolean partial_reason: items: type: string type: array snapshot_ref: $ref: '#/definitions/evidencevo.SnapshotRef' trace_id: type: string visibility_summary: $ref: '#/definitions/evidencevo.VisibilitySummary' type: object evidencevo.SnapshotRef: properties: mode: type: string snapshot_id: type: string uri: type: string type: object evidencevo.TraceRootServiceOptions: properties: entries: items: type: string type: array has_more: type: boolean type: object evidencevo.TraceSummary: properties: agent_name: type: string agent_or_app: type: string application_principal_id: type: string completed_at: type: string conversation_id: type: string duration_ms: type: integer effective_subject_id: type: string error_summary: type: string interaction_id: type: string question_preview: type: string request_id: type: string result_preview: type: string root_operation: type: string root_service: type: string span_count: type: integer span_count_status: type: string started_at: type: string status: type: string trace_id: type: string type: object evidencevo.TraceSummaryPage: properties: entries: items: $ref: '#/definitions/evidencevo.TraceSummary' type: array next_cursor: type: string page: type: integer page_size: type: integer partial: type: boolean partial_reasons: items: type: string type: array total: type: integer truncated: type: boolean type: object evidencevo.VisibilitySummary: properties: authorized_ref_count: type: integer hidden_ref_count: type: integer omitted_ref_count: type: integer redacted_ref_count: type: integer unauthorized_ref_count: type: integer unresolved_ref_count: type: integer type: object httphandler.closeConversationRequest: properties: idempotency_key: type: string type: object httphandler.conversationPage: properties: entries: items: $ref: '#/definitions/sessionvo.Conversation' type: array type: object httphandler.ensureConversationRequest: properties: external_conversation_key: type: string idempotency_key: type: string one_shot: type: boolean required: - external_conversation_key type: object httphandler.ensureOperationRequest: properties: capability_profile: $ref: '#/definitions/sessionvo.CapabilityProfile' causation_event_ids: items: type: string type: array input: $ref: '#/definitions/sessionvo.PayloadEnvelope' lease_epoch: type: integer lease_token: type: string operation_key: type: string parent_operation_id: type: string protocol: $ref: '#/definitions/sessionvo.OperationProtocol' required: type: boolean source_module: type: string tool_name: type: string required: - input - lease_epoch - lease_token - operation_key - protocol - source_module - tool_name type: object httphandler.evidenceEventRequest: properties: artifact_refs: items: type: string type: array attempt: type: integer bkn.trace.schema.version: type: string business_refs: items: $ref: '#/definitions/sessionvo.BusinessRef' type: array causation_event_ids: items: type: string type: array claims: items: $ref: '#/definitions/sessionvo.Claim' type: array conversation_id: type: string emitted_at: type: string envelope: items: type: integer type: array event_id: type: string event_type: type: string evidence_refs: items: $ref: '#/definitions/sessionvo.EvidenceRef' type: array interaction_id: type: string observed_at: type: string operation_business_edges: items: $ref: '#/definitions/sessionvo.OperationBusinessEdge' type: array operation_id: type: string payload_hash: type: string producer_epoch: type: integer producer_id: type: string producer_sequence: type: integer producer_stream_id: type: string request_id: type: string span_id: type: string started_at: type: string trace_id: type: string required: - bkn.trace.schema.version - conversation_id - emitted_at - envelope - event_id - event_type - interaction_id - observed_at - payload_hash - producer_epoch - producer_id - producer_sequence - producer_stream_id - started_at type: object httphandler.expectedOperationRequest: properties: operation_id: type: string required: type: boolean required: - operation_id - required type: object httphandler.expectedReceiptRequest: properties: receipt_id: type: string required: type: boolean required: - receipt_id - required type: object httphandler.finishAttemptRequest: properties: artifact_refs: items: type: string type: array business_refs: items: $ref: '#/definitions/sessionvo.BusinessRef' type: array error: $ref: '#/definitions/sessionvo.PayloadEnvelope' evidence_durability: $ref: '#/definitions/sessionvo.EvidenceDurability' evidence_expectation: $ref: '#/definitions/sessionvo.EvidenceExpectation' observed_evidence_refs: items: type: string type: array output: $ref: '#/definitions/sessionvo.PayloadEnvelope' partial_reasons: items: type: string type: array receipt_id: type: string request_id: type: string retryable: type: boolean span_id: type: string trace_id: type: string required: - evidence_durability - receipt_id - request_id - trace_id type: object httphandler.interactionBusinessGraphResponse: properties: assembly: $ref: '#/definitions/assemblysvc.ProjectedResult' assembly_revision: $ref: '#/definitions/sessionvo.AssemblyRevision' conversation_id: type: string evidence_status: $ref: '#/definitions/sessionvo.EvidenceStatus' execution_status: $ref: '#/definitions/sessionvo.InteractionStatus' interaction_id: type: string type: object httphandler.interactionLeaseRequest: properties: lease_epoch: type: integer lease_token: type: string required: - lease_epoch - lease_token type: object httphandler.lifecycleError: properties: code: enum: - conversation_required - conversation_not_found - conversation_closed - conversation_expired - conversation_owner_mismatch - interaction_required - interaction_in_progress - interaction_terminal - agent_name_conflict - agent_name_invalid - operation_required - idempotency_conflict - event_payload_conflict - producer_sequence_conflict - invalid_evidence_event - receipt_pending - terminal_conflict - closure_manifest_invalid - answer_artifact_storage_limit - answer_artifact_handoff_disabled - feature_not_installed - trace_core_unavailable - authorization_unavailable - evidence_capture_denied - evidence_capture_failed - capability_not_licensed - permission_denied - resource_not_disclosed - internal_error type: string current_interaction_id: type: string current_status: type: string message: type: string request_id: type: string required_action: type: string retry_after_ms: type: integer retryable: type: boolean type: object httphandler.lifecycleErrorEnvelope: properties: error: $ref: '#/definitions/httphandler.lifecycleError' type: object httphandler.managedFinishInteractionRequest: properties: answer_artifact: description: AnswerArtifact is an opt-in EvidenceArtifact result object, at most 16 MiB, durably staged with the completed Interaction. type: object answer_artifact_ref: type: string claims: items: type: string type: array idempotency_key: type: string outcome: type: string partial_reasons: items: type: string type: array reason: type: string required: - idempotency_key - outcome type: object httphandler.operationCallFactsResponse: properties: entries: items: $ref: '#/definitions/sessionvo.OperationCallFact' type: array total: type: integer type: object httphandler.operationResult: properties: created: type: boolean execute: type: boolean operation: $ref: '#/definitions/sessionvo.Operation' receipt: $ref: '#/definitions/sessionvo.Receipt' required: - created - execute - operation - receipt type: object httphandler.requestPage: properties: entries: items: $ref: '#/definitions/sessionvo.RequestSummary' type: array next_cursor: type: string type: object httphandler.resumeConversationRequest: properties: conversation_id: type: string required: - conversation_id type: object httphandler.startInteractionRequest: properties: agent_name: maxLength: 128 type: string idempotency_key: type: string lease_seconds: type: integer request_hash: type: string required: - idempotency_key type: object httphandler.terminalInteractionRequest: properties: answer_artifact_ref: type: string assembler_deadline: type: string claims: items: type: string type: array completion_manifest_version: type: string completion_reason: type: string expected_operations: items: $ref: '#/definitions/httphandler.expectedOperationRequest' type: array expected_receipts: items: $ref: '#/definitions/httphandler.expectedReceiptRequest' type: array lease_epoch: type: integer lease_token: type: string terminal_idempotency_key: type: string required: - completion_manifest_version - completion_reason - lease_epoch - lease_token - terminal_idempotency_key type: object ledgervo.DurableAck: properties: durable_ack: type: boolean event_id: type: string ingest_sequence: type: integer ingested_at: type: string replayed: type: boolean type: object oteltracevo.TraceGraphData: properties: edges: items: $ref: '#/definitions/oteltracevo.TraceGraphEdge' type: array nodes: items: $ref: '#/definitions/oteltracevo.TraceGraphNode' type: array type: object oteltracevo.TraceGraphEdge: properties: child_span_id: type: string edge_type: type: string id: type: string parent_span_id: type: string type: object oteltracevo.TraceGraphNode: properties: duration_nano: type: integer end_nano: type: integer error_message: type: string kind: type: string name: type: string parent_span_id: type: string service_name: type: string span_id: type: string start_nano: type: integer status: type: string type: object oteltracevo.TraceGraphPage: properties: edge_count: type: integer node_count: type: integer truncated: type: boolean type: object oteltracevo.TraceGraphResponse: properties: data: $ref: '#/definitions/oteltracevo.TraceGraphData' duration_nano: type: integer page: $ref: '#/definitions/oteltracevo.TraceGraphPage' partial: type: boolean partial_reason: items: type: string type: array status: type: string trace_id: type: string type: object rdto.AccessProfileResponse: properties: access_scope_fingerprint: type: string allowed_log_categories: items: type: string type: array business_provenance_managed_networks: type: boolean business_provenance_own: type: boolean global_log_search: type: boolean log_export: type: boolean log_policy_read: type: boolean log_sensitive_fields: type: boolean management_audit: type: boolean observability_archive_manage: type: boolean security_audit: type: boolean technical_trace: type: boolean trace_evidence_configuration_read: type: boolean trace_evidence_configuration_write: type: boolean type: object rdto.ErrorResponse: properties: code: type: string details: {} error_code: type: string message: type: string trace_id: type: string type: object rdto.RecordIntegrityRetryStatusResponse: properties: attempts: type: integer first_attempt_at: type: string interaction_id: type: string last_attempt_at: type: string last_failure_reason: type: string lease_until: type: string next_attempt_at: type: string reason: type: string source_version: type: integer status: enum: - pending - active - running - retry_wait - exhausted - succeeded - superseded type: string type: object rdto.TraceEvidenceConfigurationResponse: properties: acknowledgements: items: $ref: '#/definitions/capturepolicysvc.EndpointAcknowledgement' type: array coverage_gap: type: boolean desired_state: $ref: '#/definitions/capturepolicysvc.State' effective_state: $ref: '#/definitions/capturepolicysvc.State' last_stable_revision: type: integer operation: $ref: '#/definitions/capturepolicysvc.Operation' revision: type: integer type: object sessionvo.AnswerArtifactPersistence: properties: content_hash: type: string event_id: type: string state: enum: - pending - settled - dead type: string type: object sessionvo.AssemblyRevision: properties: artifact_manifest_hash: type: string assembly_completeness: $ref: '#/definitions/sessionvo.EvidenceStatus' completion_manifest_version: type: string created_at: type: string included_event_ids: items: type: string type: array included_receipt_ids: items: type: string type: array interaction_id: type: string parent_revision_id: type: string partial_reasons: items: type: string type: array revision_id: type: string revision_no: type: integer trigger: type: string type: object sessionvo.AttemptStatus: enum: - ready - pending - completed - failed type: string x-enum-varnames: - AttemptReady - AttemptPending - AttemptCompleted - AttemptFailed sessionvo.BusinessRef: properties: as_of: type: string display_hint: type: string ref_id: description: RefID uses the complete canonical shape defined by RefType, including every required scope segment. type: string ref_type: $ref: '#/definitions/sessionvo.BusinessRefType' version: type: string required: - ref_id - ref_type - version type: object sessionvo.BusinessRefType: enum: - knowledge_network - object_type - object_instance - property - relation_type - data_resource - metric - logic - function - action_type - action_instance type: string x-enum-varnames: - BusinessRefKnowledgeNetwork - BusinessRefObjectType - BusinessRefObjectInstance - BusinessRefProperty - BusinessRefRelationType - BusinessRefDataResource - BusinessRefMetric - BusinessRefLogic - BusinessRefFunction - BusinessRefActionType - BusinessRefActionInstance sessionvo.CapabilityProfile: properties: canonical_tool_name: type: string child_evidence_policy: type: string evidence_contract: type: string execution_role: type: string failure_policy: type: string input_schema_digest: type: string manifest_id: type: string manifest_version: type: string mapper_id: type: string mapper_version: type: string minimum_trace_schema: type: string output_schema_digest: type: string reason: type: string required_trace_fields: items: type: string type: array resolution: type: string tool_version: type: string type: object sessionvo.Claim: properties: claim_id: type: string claim_status: allOf: - $ref: '#/definitions/sessionvo.ClaimStatus' description: Status withdrawn preserves history but does not participate in current revision completeness. claim_type: type: string content_artifact_ref: type: string materiality: $ref: '#/definitions/sessionvo.ClaimMateriality' required_support_roles: items: type: string type: array supports: items: $ref: '#/definitions/sessionvo.ClaimSupport' type: array required: - claim_id - claim_status - claim_type - content_artifact_ref - materiality - required_support_roles - supports type: object sessionvo.ClaimMateriality: enum: - material - supporting type: string x-enum-varnames: - ClaimMaterial - ClaimSupporting sessionvo.ClaimStatus: enum: - asserted - withdrawn type: string x-enum-varnames: - ClaimAsserted - ClaimWithdrawn sessionvo.ClaimSupport: properties: content_hash: type: string fragment_selector: type: string reason: type: string role: type: string source_interaction_id: type: string source_operation_id: type: string source_revision_id: type: string status: $ref: '#/definitions/sessionvo.SupportStatus' target_ref: type: string target_type: $ref: '#/definitions/sessionvo.SupportTargetType' version: type: string required: - content_hash - role - source_interaction_id - source_revision_id - status - target_ref - target_type - version type: object sessionvo.ClosureManifest: properties: answer_artifact_persistence: $ref: '#/definitions/sessionvo.AnswerArtifactPersistence' answer_artifact_ref: type: string assembler_deadline: type: string claims: items: type: string type: array completion_manifest_version: type: string completion_reason: type: string expected_operations: items: $ref: '#/definitions/sessionvo.ExpectedOperation' type: array expected_receipts: items: $ref: '#/definitions/sessionvo.ExpectedReceipt' type: array system_partial_reasons: items: type: string type: array required: - completion_manifest_version - completion_reason type: object sessionvo.Conversation: properties: actor_name_snapshot: type: string agent_name: type: string business_context: type: string closed_at: type: string conversation_id: type: string created_at: type: string creation_auth_method: type: string creation_request_id: type: string external_conversation_key: type: string generation: type: integer one_shot: type: boolean owner: $ref: '#/definitions/sessionvo.Owner' row_version: type: integer status: $ref: '#/definitions/sessionvo.ConversationStatus' updated_at: type: string required: - conversation_id - created_at - external_conversation_key - generation - one_shot - owner - row_version - status - updated_at type: object sessionvo.ConversationStatus: enum: - active - closed - expired type: string x-enum-varnames: - ConversationActive - ConversationClosed - ConversationExpired sessionvo.EvidenceCompletion: properties: expectation: $ref: '#/definitions/sessionvo.EvidenceExpectation' original_durability: $ref: '#/definitions/sessionvo.EvidenceDurability' original_observed_refs: items: type: string type: array original_partial_reasons: items: type: string type: array rejected_expectation_hash: type: string rejection_reason: type: string type: object sessionvo.EvidenceDurability: enum: - pending - durable - failed type: string x-enum-varnames: - DurabilityPending - DurabilityDurable - DurabilityFailed sessionvo.EvidenceExpectation: properties: closed: type: boolean events: items: $ref: '#/definitions/sessionvo.ExpectedEvidenceEvent' type: array version: type: integer type: object sessionvo.EvidenceRef: properties: artifact_ref: type: string as_of: type: string content_hash: type: string evidence_ref: type: string fragment_selector: type: string ref_type: $ref: '#/definitions/sessionvo.EvidenceRefType' source_interaction_id: type: string source_operation_id: type: string source_revision_id: type: string version: type: string required: - content_hash - evidence_ref - ref_type - source_interaction_id - source_revision_id - version type: object sessionvo.EvidenceRefType: enum: - event - artifact - artifact_fragment - operation_output - claim type: string x-enum-varnames: - EvidenceRefEvent - EvidenceRefArtifact - EvidenceRefArtifactFragment - EvidenceRefOperationOutput - EvidenceRefClaim sessionvo.EvidenceStatus: enum: - not_applicable - assembling - complete - partial - failed type: string x-enum-varnames: - EvidenceNotApplicable - EvidenceAssembling - EvidenceComplete - EvidencePartial - EvidenceFailed sessionvo.ExpectedEvidenceEvent: properties: drop_reason: type: string event_id: type: string event_type: type: string payload_hash: type: string producer_id: type: string publish_disposition: type: string type: object sessionvo.ExpectedOperation: properties: operation_id: type: string required: type: boolean required: - operation_id - required type: object sessionvo.ExpectedReceipt: properties: receipt_id: type: string required: type: boolean required: - receipt_id - required type: object sessionvo.Interaction: properties: closure_manifest: $ref: '#/definitions/sessionvo.ClosureManifest' conversation_id: type: string created_at: type: string evidence_status: $ref: '#/definitions/sessionvo.EvidenceStatus' execution_status: $ref: '#/definitions/sessionvo.InteractionStatus' interaction_id: type: string lease_epoch: type: integer lease_expires_at: type: string lease_token: type: string lease_version: type: integer ordinal: type: integer row_version: type: integer terminal_at: type: string updated_at: type: string required: - conversation_id - created_at - evidence_status - execution_status - interaction_id - lease_epoch - lease_expires_at - lease_token - lease_version - ordinal - row_version - updated_at type: object sessionvo.InteractionStatus: enum: - active - completed - failed - canceled - handed_off - abandoned type: string x-enum-varnames: - InteractionActive - InteractionCompleted - InteractionFailed - InteractionCanceled - InteractionHandedOff - InteractionAbandoned sessionvo.Operation: properties: attempt: type: integer attempt_status: $ref: '#/definitions/sessionvo.AttemptStatus' causation_event_ids: items: type: string type: array conversation_id: type: string created_at: type: string interaction_id: type: string operation_id: type: string operation_key: type: string parent_operation_id: type: string retryable: type: boolean row_version: type: integer tool_name: type: string updated_at: type: string required: - attempt - attempt_status - conversation_id - created_at - interaction_id - operation_id - operation_key - retryable - row_version - tool_name - updated_at type: object sessionvo.OperationBusinessEdge: properties: business_ref: $ref: '#/definitions/sessionvo.BusinessRef' observed_at: type: string operation_id: type: string role: $ref: '#/definitions/sessionvo.OperationBusinessRole' required: - business_ref - observed_at - operation_id - role type: object sessionvo.OperationBusinessRole: enum: - read - filter - group - aggregate - input - output - modify - recommend - execute type: string x-enum-varnames: - OperationRoleRead - OperationRoleFilter - OperationRoleGroup - OperationRoleAggregate - OperationRoleInput - OperationRoleOutput - OperationRoleModify - OperationRoleRecommend - OperationRoleExecute sessionvo.OperationCallFact: properties: attempt: type: integer capability_profile: $ref: '#/definitions/sessionvo.CapabilityProfile' conversation_id: type: string error: $ref: '#/definitions/sessionvo.PayloadEnvelope' evidence_completion: $ref: '#/definitions/sessionvo.EvidenceCompletion' finished_at: type: string input: $ref: '#/definitions/sessionvo.PayloadEnvelope' interaction_id: type: string operation_id: type: string output: $ref: '#/definitions/sessionvo.PayloadEnvelope' parent_operation_id: type: string protocol: $ref: '#/definitions/sessionvo.OperationProtocol' receipt_id: type: string request_id: type: string retryable: type: boolean source_module: type: string span_id: type: string started_at: type: string status: $ref: '#/definitions/sessionvo.AttemptStatus' tool_name: type: string trace_id: type: string type: object sessionvo.OperationProtocol: enum: - mcp - sdk - internal type: string x-enum-varnames: - ProtocolMCP - ProtocolSDK - ProtocolInternal sessionvo.Owner: properties: application_principal_id: type: string delegation_id: type: string effective_subject_id: type: string effective_subject_type: $ref: '#/definitions/sessionvo.SubjectType' required: - application_principal_id - effective_subject_id - effective_subject_type type: object sessionvo.PayloadEnvelope: properties: byte_length: type: integer inline: items: type: integer type: array media_type: type: string mode: $ref: '#/definitions/sessionvo.PayloadMode' omitted_reason: type: string ref: type: string type: object sessionvo.PayloadMode: enum: - inline - referenced - omitted type: string x-enum-varnames: - PayloadInline - PayloadReferenced - PayloadOmitted sessionvo.Receipt: properties: artifact_refs: items: type: string type: array attempt: type: integer business_refs: items: $ref: '#/definitions/sessionvo.BusinessRef' type: array causation_event_ids: items: type: string type: array conversation_id: type: string evidence_durability: $ref: '#/definitions/sessionvo.EvidenceDurability' interaction_id: type: string issued_at: type: string observed_evidence_refs: items: type: string type: array operation_id: type: string operation_key: type: string owner: $ref: '#/definitions/sessionvo.Owner' partial_reasons: items: type: string type: array receipt_id: type: string receipt_status: $ref: '#/definitions/sessionvo.ReceiptStatus' request_id: type: string required: type: boolean row_version: type: integer schema_version: type: string terminal_at: type: string tool_name: type: string trace_id: type: string required: - artifact_refs - attempt - business_refs - causation_event_ids - conversation_id - evidence_durability - interaction_id - issued_at - observed_evidence_refs - operation_id - operation_key - owner - partial_reasons - receipt_id - receipt_status - request_id - required - row_version - schema_version - tool_name - trace_id type: object sessionvo.ReceiptStatus: enum: - pending - completed - failed type: string x-enum-varnames: - ReceiptPending - ReceiptCompleted - ReceiptFailed sessionvo.RequestSummary: properties: conversation_id: type: string interaction_id: type: string operation_count: type: integer receipt_count: type: integer request_id: type: string trace_ids: items: type: string type: array updated_at: type: string type: object sessionvo.SubjectType: enum: - user - service type: string x-enum-varnames: - SubjectUser - SubjectService sessionvo.SupportStatus: enum: - adopted - rejected type: string x-enum-varnames: - SupportAdopted - SupportRejected sessionvo.SupportTargetType: enum: - evidence - claim - artifact_fragment - operation_output type: string x-enum-varnames: - SupportEvidence - SupportClaim - SupportArtifactFragment - SupportOperationOutput tracesvc.SpanDisplayRange: properties: browse_allowed: type: boolean browse_reason: type: string display_limit: type: integer first_start_at: type: string last_start_at: type: string loaded_count: type: integer raw_record_count: type: integer raw_record_limit: type: integer sort: type: string total_accuracy: type: string total_count: type: integer truncated: type: boolean type: object tracesvc.SpanPage: properties: consistency: type: string entries: items: $ref: '#/definitions/oteltracevo.TraceGraphNode' type: array has_more: type: boolean next_cursor: type: string sort: type: string trace_id: type: string type: object tracesvc.TechnicalOperation: properties: fact: $ref: '#/definitions/sessionvo.OperationCallFact' partial_reasons: items: type: string type: array receipt: $ref: '#/definitions/sessionvo.Receipt' state: type: string type: object tracesvc.TechnicalTraceDetail: properties: graph: $ref: '#/definitions/oteltracevo.TraceGraphResponse' operations: items: $ref: '#/definitions/tracesvc.TechnicalOperation' type: array partial: type: boolean partial_reasons: items: type: string type: array span_display: $ref: '#/definitions/tracesvc.SpanDisplayRange' summary: $ref: '#/definitions/evidencevo.TraceSummary' type: object info: contact: {} description: |- Community Core APIs for managed Conversation/Interaction facts, recorded Operations, and technical Trace reads. Standard record authorization applies. Enterprise business-provenance routes require an assembled EE image and runtime enterprise entitlement; they are not part of this Core specification. A plain 404 on an enterprise route does not identify its cause: an absent Community route, the EE availability gate, or an undisclosed record can return 404. A successful Core read does not establish access to an EE route. Explanation reads are separate from explicit EE generation requests. See the module README for the Community/EE read boundary. title: Agent Observability API version: "1.0" paths: /access-profile: get: description: Returns server-derived page capabilities and a scope fingerprint. Roles and managed resource identifiers are never accepted from or disclosed to the client. produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/rdto.AccessProfileResponse' "401": description: Unauthorized schema: $ref: '#/definitions/rdto.ErrorResponse' "405": description: Method Not Allowed schema: $ref: '#/definitions/rdto.ErrorResponse' "503": description: Service Unavailable schema: $ref: '#/definitions/rdto.ErrorResponse' summary: Get the current BKN Trace access profile tags: - access /conversations: get: parameters: - description: Page size, 1..100 in: query name: limit type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/httphandler.conversationPage' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: List managed Conversations in the authorized owner scope tags: - lifecycle post: consumes: - application/json parameters: - description: Managed Conversation request in: body name: request required: true schema: $ref: '#/definitions/httphandler.ensureConversationRequest' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/sessionvo.Conversation' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Create or return the current managed Conversation tags: - lifecycle /conversations/{conversation_id}: get: parameters: - description: Conversation ID in: path name: conversation_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.Conversation' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Get one managed Conversation tags: - lifecycle /conversations/{conversation_id}/close: post: consumes: - application/json parameters: - description: Conversation ID in: path name: conversation_id required: true type: string - description: Idempotent close request in: body name: request required: true schema: $ref: '#/definitions/httphandler.closeConversationRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.Conversation' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Close one managed Conversation tags: - lifecycle /conversations/{conversation_id}/interactions: post: consumes: - application/json parameters: - description: Conversation ID in: path name: conversation_id required: true type: string - description: Interaction start request in: body name: request required: true schema: $ref: '#/definitions/httphandler.startInteractionRequest' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/sessionvo.Interaction' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Start one managed Interaction tags: - lifecycle /conversations/{conversation_id}/interactions/{interaction_id}/operations:ensure: post: consumes: - application/json parameters: - description: Conversation ID in: path name: conversation_id required: true type: string - description: Interaction ID in: path name: interaction_id required: true type: string - description: Operation intent in: body name: request required: true schema: $ref: '#/definitions/httphandler.ensureOperationRequest' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/httphandler.operationResult' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Ensure an idempotent Operation intent and durable Receipt tags: - lifecycle /conversations:create-new-generation: post: consumes: - application/json parameters: - description: New generation request in: body name: request required: true schema: $ref: '#/definitions/httphandler.ensureConversationRequest' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/sessionvo.Conversation' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Create a new managed Conversation generation tags: - lifecycle /conversations:ensure-current: post: consumes: - application/json parameters: - description: Managed Conversation request in: body name: request required: true schema: $ref: '#/definitions/httphandler.ensureConversationRequest' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/sessionvo.Conversation' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Ensure the current managed Conversation tags: - lifecycle /conversations:resume-by-id: post: consumes: - application/json parameters: - description: Conversation resume request in: body name: request required: true schema: $ref: '#/definitions/httphandler.resumeConversationRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.Conversation' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Resume an active managed Conversation by Core ID tags: - lifecycle /evidence/artifacts: post: consumes: - application/json description: Stores authorized business content separately from evidence events. Inline content and snapshot_ref are mutually exclusive. parameters: - description: BKN Trace 2.2 evidence artifact in: body name: request required: true schema: $ref: '#/definitions/evidencevo.EvidenceArtifact' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/evidencevo.ArtifactIngestResponse' "201": description: Created schema: $ref: '#/definitions/evidencevo.ArtifactIngestResponse' "400": description: Bad Request schema: $ref: '#/definitions/rdto.ErrorResponse' "401": description: Unauthorized schema: $ref: '#/definitions/rdto.ErrorResponse' "409": description: Conflict schema: $ref: '#/definitions/rdto.ErrorResponse' "500": description: Internal Server Error schema: $ref: '#/definitions/rdto.ErrorResponse' summary: Ingest a BKN Trace 2.2 evidence artifact tags: - evidence /evidence/artifacts/{artifact_id}: get: description: Returns an artifact through its own record scope, or through an authorized Interaction when interaction_id is supplied. parameters: - description: Artifact ID in: path name: artifact_id required: true type: string - description: Authorized Interaction ID in: query name: interaction_id type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/evidencevo.EvidenceArtifact' "400": description: Bad Request schema: $ref: '#/definitions/rdto.ErrorResponse' "401": description: Unauthorized schema: $ref: '#/definitions/rdto.ErrorResponse' "404": description: Not Found schema: $ref: '#/definitions/rdto.ErrorResponse' "500": description: Internal Server Error schema: $ref: '#/definitions/rdto.ErrorResponse' summary: Get an authorized evidence artifact by ID tags: - evidence /evidence/events: post: consumes: - application/json description: Commits the immutable Evidence Ledger record and Projection Outbox in one transaction before returning durable_ack. parameters: - description: BKN Trace 3.0 evidence event in: body name: request required: true schema: $ref: '#/definitions/httphandler.evidenceEventRequest' produces: - application/json responses: "202": description: Accepted schema: $ref: '#/definitions/ledgervo.DurableAck' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' summary: Durably ingest one BKN Trace 3.0 evidence event tags: - evidence /interactions/{interaction_id}: get: parameters: - description: Interaction ID in: path name: interaction_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.Interaction' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Get one managed Interaction tags: - lifecycle /interactions/{interaction_id}/business-graph: get: description: Returns the latest immutable assembly revision with precise Claim supports and causal DAG layers. Objective evidence completeness is separate from current-user disclosure completeness; unresolved or unauthorized business refs and their edges are omitted. parameters: - description: Interaction ID in: path name: interaction_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/httphandler.interactionBusinessGraphResponse' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' summary: Get an Interaction business semantic graph tags: - evidence /interactions/{interaction_id}/cancel: post: consumes: - application/json parameters: - description: Interaction ID in: path name: interaction_id required: true type: string - description: Terminal closure manifest in: body name: request required: true schema: $ref: '#/definitions/httphandler.terminalInteractionRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.Interaction' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "422": description: Unprocessable Entity schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Cancel one managed Interaction tags: - lifecycle /interactions/{interaction_id}/complete: post: consumes: - application/json parameters: - description: Interaction ID in: path name: interaction_id required: true type: string - description: Terminal closure manifest in: body name: request required: true schema: $ref: '#/definitions/httphandler.terminalInteractionRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.Interaction' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "422": description: Unprocessable Entity schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Complete one managed Interaction tags: - lifecycle /interactions/{interaction_id}/fail: post: consumes: - application/json parameters: - description: Interaction ID in: path name: interaction_id required: true type: string - description: Terminal closure manifest in: body name: request required: true schema: $ref: '#/definitions/httphandler.terminalInteractionRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.Interaction' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "422": description: Unprocessable Entity schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Fail one managed Interaction tags: - lifecycle /interactions/{interaction_id}/finish: post: consumes: - application/json description: Derives the current lease and closure manifest from authoritative Operations and Receipts. Ordinary Agents do not submit concurrency or closure internals. When durable answer handoff is enabled, optional answer_artifact uses the EvidenceArtifact contract (result type, at most 16 MiB) and is staged in the same SQL transaction as business completion. completed with evidence_status=assembling means evidence delivery is pending, not complete. Existing answer_artifact_ref requests remain supported. parameters: - description: Interaction ID in: path name: interaction_id required: true type: string - description: Managed finish request in: body name: request required: true schema: $ref: '#/definitions/httphandler.managedFinishInteractionRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.Interaction' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "422": description: Unprocessable Entity schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Finish one Interaction through the Agent-facing facade tags: - lifecycle /interactions/{interaction_id}/handoff: post: consumes: - application/json parameters: - description: Interaction ID in: path name: interaction_id required: true type: string - description: Terminal closure manifest in: body name: request required: true schema: $ref: '#/definitions/httphandler.terminalInteractionRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.Interaction' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "422": description: Unprocessable Entity schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Hand off one managed Interaction tags: - lifecycle /interactions/{interaction_id}/operations: get: parameters: - description: Interaction ID in: path name: interaction_id required: true type: string - description: 'Response view: full (default) or summary' enum: - full - summary in: query name: view type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/httphandler.operationCallFactsResponse' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: List raw Operation call facts for one Interaction tags: - lifecycle /interactions/{interaction_id}/record-integrity-status: get: description: Read-only status for the interaction's current integrity source version. Uses the same canonical authorization as persisted integrity reads; shared-network candidates do not widen that authorization; unauthorized and missing interactions both return 404. Never performs live inspection, claims work, or requeues a retry. No query parameters are accepted. At most 8 attempts over 30 minutes with backoff from 30 seconds to 5 minutes; a new source version schedules a new generation while retaining old retry history. Fixed inspection limits stop the current generation immediately with exhausted/inspection_budget_exceeded (8 MiB per artifact response, 32 MiB or 128 reads per interaction); this is an unknown verdict, not evidence loss. Existing exhausted generations are not requeued or rewritten on upgrade. A succeeded job means a verdict was saved, not that records or business conclusions are complete. Reason may describe exhaustion or source replacement; last_failure_reason retains the last actual failure. Zero timestamps mean no attempt/lease has been recorded. parameters: - description: Canonical interaction ID in: path name: interaction_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/rdto.RecordIntegrityRetryStatusResponse' "400": description: Bad Request schema: $ref: '#/definitions/rdto.ErrorResponse' "401": description: Unauthorized schema: $ref: '#/definitions/rdto.ErrorResponse' "404": description: Not Found schema: $ref: '#/definitions/rdto.ErrorResponse' "405": description: Method Not Allowed schema: $ref: '#/definitions/rdto.ErrorResponse' "500": description: Internal Server Error schema: $ref: '#/definitions/rdto.ErrorResponse' security: - BearerAuth: [] summary: Get recorded integrity retry diagnostics for an authorized interaction tags: - evidence /operations/{operation_id}: get: parameters: - description: Operation ID in: path name: operation_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.Operation' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Get one Operation tags: - lifecycle /operations/{operation_id}/attempts: post: consumes: - application/json parameters: - description: Operation ID in: path name: operation_id required: true type: string - description: Current Interaction lease in: body name: request required: true schema: $ref: '#/definitions/httphandler.interactionLeaseRequest' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/httphandler.operationResult' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Start the next retry attempt for an Operation tags: - lifecycle /operations/{operation_id}/attempts/{attempt}: get: parameters: - description: Operation ID in: path name: operation_id required: true type: string - description: Attempt number in: path name: attempt required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.OperationCallFact' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Get one authorized Operation attempt call fact tags: - lifecycle /operations/{operation_id}/attempts/{attempt}:complete: post: consumes: - application/json parameters: - description: Operation ID in: path name: operation_id required: true type: string - description: Attempt number in: path name: attempt required: true type: integer - description: Durable operation result in: body name: request required: true schema: $ref: '#/definitions/httphandler.finishAttemptRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/httphandler.operationResult' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Complete one Operation attempt tags: - lifecycle /operations/{operation_id}/attempts/{attempt}:fail: post: consumes: - application/json parameters: - description: Operation ID in: path name: operation_id required: true type: string - description: Attempt number in: path name: attempt required: true type: integer - description: Durable operation failure in: body name: request required: true schema: $ref: '#/definitions/httphandler.finishAttemptRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/httphandler.operationResult' "400": description: Bad Request schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Fail one Operation attempt tags: - lifecycle /receipts/{receipt_id}: get: parameters: - description: Receipt ID in: path name: receipt_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.Receipt' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "409": description: Conflict schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Get one durable Receipt tags: - lifecycle /requests: get: parameters: - description: Page size, 1..100 in: query name: limit type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/httphandler.requestPage' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: List request projections from durable Receipts tags: - lifecycle /requests/{request_id}: get: parameters: - description: Request ID in: path name: request_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/sessionvo.RequestSummary' "401": description: Unauthorized schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "403": description: Forbidden schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "404": description: Not Found schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "500": description: Internal Server Error schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' "503": description: Service Unavailable schema: $ref: '#/definitions/httphandler.lifecycleErrorEnvelope' security: - BearerAuth: [] summary: Get one request projection from durable Receipts tags: - lifecycle /trace-evidence-configuration: get: description: |- Returns desired and effective state separately, the active operation when present, and the current admission-budget measurements. Unavailable budgets return 503 with optional diagnostic details (reason, metric, fields). Requires the existing trace_evidence_configuration:global read permission. produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/capturepolicysvc.ConfigurationGetResponse' "401": description: Unauthorized schema: $ref: '#/definitions/rdto.ErrorResponse' "403": description: Forbidden schema: $ref: '#/definitions/rdto.ErrorResponse' "503": description: Service Unavailable schema: $ref: '#/definitions/rdto.ErrorResponse' security: - BearerAuth: [] summary: Get the unified Trace/Evidence capture configuration tags: - trace-evidence put: consumes: - application/json description: Requires the existing trace_evidence_configuration:global write permission. Enable requests with unavailable budgets return 503 with optional diagnostic details (reason, metric, fields). The requested state is asynchronous; effective_state reports the last observed runtime state. parameters: - description: Desired state and expected policy revision in: body name: request required: true schema: $ref: '#/definitions/capturepolicysvc.ChangeRequest' produces: - application/json responses: "202": description: Accepted schema: $ref: '#/definitions/rdto.TraceEvidenceConfigurationResponse' "400": description: Bad Request schema: $ref: '#/definitions/rdto.ErrorResponse' "401": description: Unauthorized schema: $ref: '#/definitions/rdto.ErrorResponse' "403": description: Forbidden schema: $ref: '#/definitions/rdto.ErrorResponse' "409": description: Conflict schema: $ref: '#/definitions/rdto.ErrorResponse' "422": description: Unprocessable Entity schema: $ref: '#/definitions/rdto.ErrorResponse' "503": description: Service Unavailable schema: $ref: '#/definitions/rdto.ErrorResponse' security: - BearerAuth: [] summary: Change the unified Trace/Evidence capture configuration tags: - trace-evidence /trace-evidence-operations/{operation_id}: get: description: Requires the existing trace_evidence_configuration:global read permission. parameters: - description: Configuration operation ID in: path name: operation_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/capturepolicysvc.Operation' "401": description: Unauthorized schema: $ref: '#/definitions/rdto.ErrorResponse' "403": description: Forbidden schema: $ref: '#/definitions/rdto.ErrorResponse' "404": description: Not Found schema: $ref: '#/definitions/rdto.ErrorResponse' "503": description: Service Unavailable schema: $ref: '#/definitions/rdto.ErrorResponse' security: - BearerAuth: [] summary: Get a Trace/Evidence configuration operation tags: - trace-evidence /trace-evidence-operations/{operation_id}:reconcile: post: description: Requests reconciliation of the addressed operation and returns the current configuration snapshot. Requires the existing trace_evidence_configuration:global reconcile permission. parameters: - description: Configuration operation ID in: path name: operation_id required: true type: string produces: - application/json responses: "202": description: Accepted schema: $ref: '#/definitions/rdto.TraceEvidenceConfigurationResponse' "401": description: Unauthorized schema: $ref: '#/definitions/rdto.ErrorResponse' "403": description: Forbidden schema: $ref: '#/definitions/rdto.ErrorResponse' "404": description: Not Found schema: $ref: '#/definitions/rdto.ErrorResponse' "503": description: Service Unavailable schema: $ref: '#/definitions/rdto.ErrorResponse' security: - BearerAuth: [] summary: Reconcile a Trace/Evidence configuration operation tags: - trace-evidence /trace-root-services: get: description: On-demand bounded discovery using the current Trace filters and authorization. The service filter itself is excluded. No Span counts or question/result bodies are loaded. Results contain at most 100 canonical names; has_more asks the caller to narrow q. A failed or budget-limited scan never returns a partial catalog. parameters: - description: Started at or after this RFC3339 timestamp in: query name: from type: string - description: Started at or before this RFC3339 timestamp in: query name: to type: string - description: Exact Trace ID in: query name: trace_id type: string - description: Execution status in: query name: status type: string - description: Exact root operation in: query name: tool type: string - description: Recorded error summary substring in: query name: error_keyword type: string - description: Case-insensitive service-name substring; at most 256 Unicode characters in: query name: q type: string - description: Maximum options, 1..100; default 100 in: query name: limit type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/evidencevo.TraceRootServiceOptions' "400": description: Bad Request schema: $ref: '#/definitions/rdto.ErrorResponse' "401": description: Unauthorized schema: $ref: '#/definitions/rdto.ErrorResponse' "405": description: Method Not Allowed schema: $ref: '#/definitions/rdto.ErrorResponse' "422": description: Unprocessable Entity schema: $ref: '#/definitions/rdto.ErrorResponse' "500": description: Internal Server Error schema: $ref: '#/definitions/rdto.ErrorResponse' "503": description: Service Unavailable schema: $ref: '#/definitions/rdto.ErrorResponse' summary: Discover authorized technical Trace root service options tags: - traces /traces: get: description: Returns authorized technical Trace summaries. Ordinary pages batch-read missing projection IDs from canonical SQL metadata; unavailable Span counts are explicit. Content/root-filtered pages and dependency failures retain their existing behavior. parameters: - description: Page size, 1..200 in: query name: limit type: integer - description: Opaque pagination cursor in: query name: cursor type: string - description: Exact trace ID; bypasses list projection scan in: query name: trace_id type: string - description: Caller-owned conversation ID in: query name: conversation_id type: string - description: One user interaction ID in: query name: interaction_id type: string - description: Started at or after this RFC3339 timestamp; omitted means no lower time bound in: query name: from type: string - description: Started at or before this RFC3339 timestamp; omitted means no upper time bound in: query name: to type: string - description: Execution status in: query name: status type: string - description: Agent or application in: query name: agent_or_app type: string - description: Root service name in: query name: service type: string - description: Root operation name in: query name: tool type: string - description: Substring matched against the recorded error summary in: query name: error_keyword type: string - description: Case-insensitive substring of trace/request/conversation/interaction IDs, agent/app, root service/operation, or recorded error summary; incomplete searches return a resource error in: query name: keyword type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/evidencevo.TraceSummaryPage' "400": description: Bad Request schema: $ref: '#/definitions/rdto.ErrorResponse' "401": description: Unauthorized schema: $ref: '#/definitions/rdto.ErrorResponse' "422": description: Unprocessable Entity schema: $ref: '#/definitions/rdto.ErrorResponse' "500": description: Internal Server Error schema: $ref: '#/definitions/rdto.ErrorResponse' "503": description: SUMMARY_QUERY_TIMEOUT, PROJECTION_LAG, or SUMMARY_DEPENDENCY_UNAVAILABLE schema: $ref: '#/definitions/rdto.ErrorResponse' summary: List technical trace executions tags: - traces /traces/{trace_id}: get: description: Returns the authorized trace summary, Span graph, and ordered raw Operation call facts. Operation facts remain visible without Span data; Span nodes remain visible without Operation facts. parameters: - description: Trace ID in: path name: trace_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/tracesvc.TechnicalTraceDetail' "401": description: Unauthorized schema: $ref: '#/definitions/rdto.ErrorResponse' "404": description: Not Found schema: $ref: '#/definitions/rdto.ErrorResponse' "500": description: Internal Server Error schema: $ref: '#/definitions/rdto.ErrorResponse' "504": description: Gateway Timeout schema: $ref: '#/definitions/rdto.ErrorResponse' summary: Get one typed technical trace tags: - traces /traces/{trace_id}/spans: get: description: Requires current global trace access and canonical trace visibility on every page. Signed cursors describe live Span-ID order; pages do not enlarge the graph or claim an exact total. parameters: - description: Trace ID in: path name: trace_id required: true type: string - description: Signed continuation cursor in: query name: cursor type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/tracesvc.SpanPage' "400": description: Bad Request schema: $ref: '#/definitions/rdto.ErrorResponse' "401": description: Unauthorized schema: $ref: '#/definitions/rdto.ErrorResponse' "403": description: Forbidden schema: $ref: '#/definitions/rdto.ErrorResponse' "404": description: Not Found schema: $ref: '#/definitions/rdto.ErrorResponse' "405": description: Method Not Allowed schema: $ref: '#/definitions/rdto.ErrorResponse' "413": description: Request Entity Too Large schema: $ref: '#/definitions/rdto.ErrorResponse' "422": description: Unprocessable Entity schema: $ref: '#/definitions/rdto.ErrorResponse' "503": description: Service Unavailable schema: $ref: '#/definitions/rdto.ErrorResponse' "504": description: Gateway Timeout schema: $ref: '#/definitions/rdto.ErrorResponse' summary: Browse one bounded page of technical trace spans tags: - traces securityDefinitions: BearerAuth: description: Active OAuth bearer token. Lifecycle owner identity is derived by the server. in: header name: Authorization type: apiKey swagger: "2.0"