PKE
Trace de abstração
Frase → JSON da LLM → claims → primitivos. Até onde o James desceu nesta fala.
PKE · 20260919174543_64627ed2f95a63286be482e5397721e0.log
=== 2026-09-19T20:45:43.208227Z stage=discourse_input ===
client_request_id: 64627ed2f95a63286be482e5397721e0
pke_request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
conversation_id: conv_01M2XPNW4D2VZ8AR4ZSTP98JA2
---
{
"conversation_id": "conv_01M2XPNW4D2VZ8AR4ZSTP98JA2",
"active_focus": null,
"recent_referents": [],
"allowed_entity_ids": [],
"pending_intent": null
}
=== 2026-09-19T20:45:45.338899Z stage=llm_response ===
client_request_id: 64627ed2f95a63286be482e5397721e0
pke_request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
interpreter_request_id: 53254433-7f61-49c4-aa9a-a289715df196
conversation_id: conv_01M2XPNW4D2VZ8AR4ZSTP98JA2
user_text: qual o meu nome?
provider_request_id: 0a333b4b-6ad9-4d6c-a489-e7ea9d0eef21
attempt: 1
model: deepseek-flash
latency_ms: 2125
---
{
"ir_kind": "semantic_query",
"ir": {
"raw_input": "qual o meu nome?",
"utterance_kind": "query",
"primitive_hint": "attribute",
"subject": {
"text": "eu",
"kind_hint": "person",
"reference_kind": "contextual"
},
"attribute_expression": "nome",
"stable_property_semantics": true,
"temporal": {
"original_text": "",
"occurrence_aspect": "ongoing"
},
"discourse_decision": "none"
}
}
=== 2026-09-19T20:45:45.354362Z stage=normalize ===
client_request_id: 64627ed2f95a63286be482e5397721e0
pke_request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
interpreter_request_id: 53254433-7f61-49c4-aa9a-a289715df196
conversation_id: conv_01M2XPNW4D2VZ8AR4ZSTP98JA2
user_text: qual o meu nome?
route: semantic_v3
notes: []
---
{
"ir_kind": "semantic_query",
"ir": {
"raw_input": "qual o meu nome?",
"utterance_kind": "query",
"primitive_hint": "attribute",
"subject": {
"text": "eu",
"kind_hint": "person",
"reference_kind": "contextual"
},
"attribute_expression": "nome",
"stable_property_semantics": true,
"temporal": {
"original_text": "",
"occurrence_aspect": "ongoing"
},
"discourse_decision": "none"
}
}
=== 2026-09-19T20:45:45.361976Z stage=proposal ===
client_request_id: 64627ed2f95a63286be482e5397721e0
pke_request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
interpreter_request_id: 53254433-7f61-49c4-aa9a-a289715df196
conversation_id: conv_01M2XPNW4D2VZ8AR4ZSTP98JA2
user_text: qual o meu nome?
ir_kind: semantic_query
---
{
"raw_input": "qual o meu nome?",
"utterance_kind": "query",
"primitive_hint": "attribute",
"subject": {
"text": "eu",
"kind_hint": "person",
"reference_kind": "contextual",
"confidence": 1.0
},
"participants": [],
"entities_mentioned": [],
"attribute_expression": "nome",
"temporal": {
"original_text": "",
"occurrence_aspect": "ongoing"
},
"negation": false,
"change_semantics": false,
"condition_semantics": false,
"link_semantics": false,
"stable_property_semantics": true,
"classification_semantics": false,
"measurement_semantics": false,
"domain_hints": [],
"confidence": 1.0,
"assertion_confidence": {},
"claims": [],
"correction_semantics": false,
"discourse_decision": "none"
}
=== 2026-09-19T20:45:45.393170Z stage=repair ===
client_request_id: 64627ed2f95a63286be482e5397721e0
pke_request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
interpreter_request_id: 53254433-7f61-49c4-aa9a-a289715df196
conversation_id: conv_01M2XPNW4D2VZ8AR4ZSTP98JA2
user_text: qual o meu nome?
utterance_kind: query
primitive_hint: attribute
---
{
"raw_input": "qual o meu nome?",
"utterance_kind": "query",
"primitive_hint": "attribute",
"subject": {
"text": "eu",
"kind_hint": "person",
"reference_kind": "contextual",
"confidence": 1.0
},
"participants": [],
"entities_mentioned": [],
"attribute_expression": "nome",
"temporal": {
"original_text": "",
"occurrence_aspect": "ongoing"
},
"negation": false,
"change_semantics": false,
"condition_semantics": false,
"link_semantics": false,
"stable_property_semantics": true,
"classification_semantics": false,
"measurement_semantics": false,
"domain_hints": [],
"confidence": 1.0,
"assertion_confidence": {},
"claims": [],
"correction_semantics": false,
"discourse_decision": "none"
}
=== 2026-09-19T20:45:45.398200Z stage=assessment ===
client_request_id: 64627ed2f95a63286be482e5397721e0
pke_request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
interpreter_request_id: 53254433-7f61-49c4-aa9a-a289715df196
conversation_id: conv_01M2XPNW4D2VZ8AR4ZSTP98JA2
user_text: qual o meu nome?
---
{
"status": "actionable",
"routed_primitive": "attribute",
"decision_source": "semantic_flags",
"evidence": [
"stable_property_semantics"
],
"ignored_fallbacks": [],
"missing_semantic_roles": [],
"conflicting_signals": [],
"notes": [
"query utterance — primitive resolved downstream",
"stable property query → ATTRIBUTE"
]
}
=== 2026-09-19T20:45:45.422543Z stage=query_resolution ===
client_request_id: 64627ed2f95a63286be482e5397721e0
pke_request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
interpreter_request_id: 53254433-7f61-49c4-aa9a-a289715df196
conversation_id: conv_01M2XPNW4D2VZ8AR4ZSTP98JA2
user_text: qual o meu nome?
---
{
"status": "resolved",
"primitive": "attribute",
"notes": [
"attribute_query"
]
}
=== 2026-09-19T20:45:45.428836Z stage=canonical ===
client_request_id: 64627ed2f95a63286be482e5397721e0
pke_request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
interpreter_request_id: 53254433-7f61-49c4-aa9a-a289715df196
conversation_id: conv_01M2XPNW4D2VZ8AR4ZSTP98JA2
user_text: qual o meu nome?
ir_type: QueryIR
wire_stage: canonical
execution_reasons: []
primitive: attribute
concepts_status: unresolved
concepts_notes: ["attribute — no safe dimension/value"]
---
{
"intent": "query",
"raw_input": "qual o meu nome?",
"query": {
"intent": "attribute",
"entities": [
{
"text": "eu",
"type_hint": {
"key": "entity.person"
},
"role": {
"key": "role.subject"
},
"suggested_aliases": [],
"confidence": 1.0,
"reference_kind": "contextual"
}
],
"entity_association": "subject",
"event_types": [],
"state_dimensions": [],
"state_values": [],
"relation_types": [],
"relation_scope": "current",
"attribute_dimension_key": "name",
"attribute_query_mode": "value_lookup",
"actions": [],
"facts": [],
"domains": [],
"aggregate": "none",
"hierarchy": "exact",
"version_policy": "current",
"sort": "event_time_desc"
},
"discourse_decision": "none"
}
=== 2026-09-19T20:45:45.434470Z stage=discourse_resolution ===
client_request_id: 64627ed2f95a63286be482e5397721e0
pke_request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
interpreter_request_id: 53254433-7f61-49c4-aa9a-a289715df196
conversation_id: conv_01M2XPNW4D2VZ8AR4ZSTP98JA2
---
{
"decision": "none",
"source": "none",
"resolved_entity_ids": []
}
=== 2026-09-19T20:45:45.482817Z stage=entity_resolution ===
client_request_id: 64627ed2f95a63286be482e5397721e0
pke_request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
interpreter_request_id: 53254433-7f61-49c4-aa9a-a289715df196
conversation_id: conv_01M2XPNW4D2VZ8AR4ZSTP98JA2
---
{
"resolutions": [
{
"reference": {
"text": "eu",
"reference_kind": "contextual",
"type_hint": "entity.person"
},
"strategy": "principal_self",
"outcome": "resolved",
"candidate_count": 1,
"candidates": [
{
"entity_id": "01M2AZ0YGCFRZ6VKPSCCMVTBN8",
"canonical_name": "__principal__",
"type": "entity.person",
"match": "principal"
}
],
"resolved_entity_ids": [
"01M2AZ0YGCFRZ6VKPSCCMVTBN8"
]
}
],
"count": 1
}
=== 2026-09-19T20:45:45.522415Z stage=discourse_update ===
client_request_id: 64627ed2f95a63286be482e5397721e0
pke_request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
interpreter_request_id: 53254433-7f61-49c4-aa9a-a289715df196
conversation_id: conv_01M2XPNW4D2VZ8AR4ZSTP98JA2
---
{
"previous_focus": [],
"new_focus": [],
"reason": null,
"active_focus": null,
"recent_referents": [],
"idle_turns": 1
}
=== 2026-09-19T20:45:45.527678Z stage=engine ===
client_request_id: 64627ed2f95a63286be482e5397721e0
pke_request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
conversation_id: conv_01M2XPNW4D2VZ8AR4ZSTP98JA2
---
{
"path": "ask",
"status": "answered",
"issues": [],
"resolved_entity_ids": [
"01M2AZ0YGCFRZ6VKPSCCMVTBN8"
],
"answer_kind": "intrinsic_property",
"result": {
"dimension": "name",
"status": "known_single",
"value": "carlos eduardo"
},
"value": "carlos eduardo",
"dimension": "name"
}
=== 2026-09-19T20:45:45.580062Z stage=response_projection ===
client_request_id: 64627ed2f95a63286be482e5397721e0
request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
status: answered
---
{
"source_status": "answered",
"source_kind": "intrinsic_property",
"projected_status": "answered",
"projected_kind": "attribute",
"value": "carlos eduardo",
"dimension": "name",
"source_value": "carlos eduardo"
}
=== 2026-09-19T20:45:45.685601Z stage=presenter_request ===
request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
client_request_id: 64627ed2f95a63286be482e5397721e0
conversation_id: 08304c38-30e2-4379-a9d6-de7dbf56587b
user_message_id: msg_01M2XPNWA9K4F8N7D3TCC0WC7A
operation: knowledge_query
status: answered
---
{
"user_text": "qual o meu nome?",
"structured_result": {
"status": "answered",
"operation": "knowledge_query",
"kind": "attribute",
"value": "carlos eduardo",
"values": [
"carlos eduardo"
],
"relation_answer": null,
"matched_entities": [
"__principal__"
],
"candidates": [],
"reason": null,
"error_code": null,
"items": [
{
"label": "name",
"value": "carlos eduardo"
}
],
"dimension": "name",
"unit": null,
"entity": {
"entity_id": "01M2AZ0YGCFRZ6VKPSCCMVTBN8",
"name": "__principal__"
},
"claims": null
},
"presenter_provider": "deepseek",
"presenter_model": "deepseek-chat",
"attempt": 1
}
=== 2026-09-19T20:45:45.738902Z stage=presenter_response ===
request_id: req_01M2XPNWBRJEEK3PQV41CTVAW3
client_request_id: 64627ed2f95a63286be482e5397721e0
conversation_id: 08304c38-30e2-4379-a9d6-de7dbf56587b
user_message_id: msg_01M2XPNWA9K4F8N7D3TCC0WC7A
status: failed
---
{
"text": "__principal__: carlos eduardo.",
"presenter_provider": "deepseek",
"presenter_model": "deepseek-chat",
"provider": "deepseek",
"model": "deepseek-chat",
"fallback_used": true,
"latency_ms": 46,
"attempt": 1,
"exception_class": "ConnectError",
"safe_error_message": "presenter llm unavailable (ConnectError)",
"fallback_reason": "provider_error",
"status": "failed",
"reason": "presenter llm unavailable (ConnectError)",
"fallback_template": "answered",
"structured_result_status": "answered"
}