PKE
Trace de abstração
Frase → JSON da LLM → claims → primitivos. Até onde o James desceu nesta fala.
PKE · 20260912154215_5a5dd9c6275db385292c80a8b41d344d.log
=== 2026-09-12T18:42:15.480148Z stage=llm_response ===
client_request_id: 5a5dd9c6275db385292c80a8b41d344d
pke_request_id: req_01M2BETQXP6S3BXXN45YZK2CRX
interpreter_request_id: 7ff949fe-e2e6-4c4b-9793-4491ecf844ca
conversation_id: conv_01M2BESTRBBJDAM2PJAN71MJQT
user_text: qual o nome?
provider_request_id: 314e8be2-9407-4163-83a2-c9d7f88ab647
attempt: 1
model: deepseek-flash
latency_ms: 1406
---
{
"ir_kind": "semantic_query",
"ir": {
"raw_input": "qual o nome?",
"utterance_kind": "query",
"primitive_hint": "attribute",
"stable_property_semantics": true,
"attribute_expression": "nome",
"subject": {
"text": "eu",
"kind_hint": "person",
"reference_kind": "contextual"
},
"temporal": {
"original_text": "",
"occurrence_aspect": "ongoing"
}
}
}
=== 2026-09-12T18:42:15.482697Z stage=normalize ===
client_request_id: 5a5dd9c6275db385292c80a8b41d344d
pke_request_id: req_01M2BETQXP6S3BXXN45YZK2CRX
interpreter_request_id: 7ff949fe-e2e6-4c4b-9793-4491ecf844ca
conversation_id: conv_01M2BESTRBBJDAM2PJAN71MJQT
user_text: qual o nome?
route: semantic_v3
notes: []
---
{
"ir_kind": "semantic_query",
"ir": {
"raw_input": "qual o nome?",
"utterance_kind": "query",
"primitive_hint": "attribute",
"stable_property_semantics": true,
"attribute_expression": "nome",
"subject": {
"text": "eu",
"kind_hint": "person",
"reference_kind": "contextual"
},
"temporal": {
"original_text": "",
"occurrence_aspect": "ongoing"
}
}
}
=== 2026-09-12T18:42:15.484233Z stage=proposal ===
client_request_id: 5a5dd9c6275db385292c80a8b41d344d
pke_request_id: req_01M2BETQXP6S3BXXN45YZK2CRX
interpreter_request_id: 7ff949fe-e2e6-4c4b-9793-4491ecf844ca
conversation_id: conv_01M2BESTRBBJDAM2PJAN71MJQT
user_text: qual o nome?
ir_kind: semantic_query
---
{
"raw_input": "qual o 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
}
=== 2026-09-12T18:42:15.487240Z stage=repair ===
client_request_id: 5a5dd9c6275db385292c80a8b41d344d
pke_request_id: req_01M2BETQXP6S3BXXN45YZK2CRX
interpreter_request_id: 7ff949fe-e2e6-4c4b-9793-4491ecf844ca
conversation_id: conv_01M2BESTRBBJDAM2PJAN71MJQT
user_text: qual o nome?
utterance_kind: query
primitive_hint: attribute
---
{
"raw_input": "qual o 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
}
=== 2026-09-12T18:42:15.489236Z stage=assessment ===
client_request_id: 5a5dd9c6275db385292c80a8b41d344d
pke_request_id: req_01M2BETQXP6S3BXXN45YZK2CRX
interpreter_request_id: 7ff949fe-e2e6-4c4b-9793-4491ecf844ca
conversation_id: conv_01M2BESTRBBJDAM2PJAN71MJQT
user_text: qual o nome?
---
{
"status": "actionable",
"routed_primitive": "attribute",
"missing_semantic_roles": [],
"conflicting_signals": [],
"notes": [
"query utterance — primitive resolved downstream",
"stable property query → ATTRIBUTE"
]
}
=== 2026-09-12T18:42:15.492835Z stage=query_resolution ===
client_request_id: 5a5dd9c6275db385292c80a8b41d344d
pke_request_id: req_01M2BETQXP6S3BXXN45YZK2CRX
interpreter_request_id: 7ff949fe-e2e6-4c4b-9793-4491ecf844ca
conversation_id: conv_01M2BESTRBBJDAM2PJAN71MJQT
user_text: qual o nome?
---
{
"status": "resolved",
"primitive": "attribute",
"notes": [
"attribute_query"
]
}
=== 2026-09-12T18:42:15.493836Z stage=canonical ===
client_request_id: 5a5dd9c6275db385292c80a8b41d344d
pke_request_id: req_01M2BETQXP6S3BXXN45YZK2CRX
interpreter_request_id: 7ff949fe-e2e6-4c4b-9793-4491ecf844ca
conversation_id: conv_01M2BESTRBBJDAM2PJAN71MJQT
user_text: qual o 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 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"
}
}
=== 2026-09-12T18:42:15.502380Z stage=entity_resolution ===
client_request_id: 5a5dd9c6275db385292c80a8b41d344d
pke_request_id: req_01M2BETQXP6S3BXXN45YZK2CRX
interpreter_request_id: 7ff949fe-e2e6-4c4b-9793-4491ecf844ca
conversation_id: conv_01M2BESTRBBJDAM2PJAN71MJQT
---
{
"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-12T18:42:15.511010Z stage=engine ===
client_request_id: 5a5dd9c6275db385292c80a8b41d344d
pke_request_id: req_01M2BETQXP6S3BXXN45YZK2CRX
conversation_id: conv_01M2BESTRBBJDAM2PJAN71MJQT
---
{
"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-12T18:42:15.532067Z stage=response_projection ===
client_request_id: 5a5dd9c6275db385292c80a8b41d344d
request_id: req_01M2BETQXP6S3BXXN45YZK2CRX
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-12T18:42:15.581704Z stage=presenter_request ===
request_id: req_01M2BETQXP6S3BXXN45YZK2CRX
client_request_id: 5a5dd9c6275db385292c80a8b41d344d
conversation_id: 3ea90b33-eaff-47d6-8f6d-388828f9aefd
user_message_id: msg_01M2BETQXAP4MD63B83BY7T4AY
operation: knowledge_query
status: answered
---
{
"user_text": "qual o nome?",
"structured_result": {
"status": "answered",
"operation": "knowledge_query",
"kind": "attribute",
"value": "__principal__",
"values": [
"carlos eduardo"
],
"relation_answer": null,
"matched_entities": [
"__principal__"
],
"candidates": [],
"reason": null,
"error_code": null
}
}
=== 2026-09-12T18:42:15.782859Z stage=presenter_response ===
request_id: req_01M2BETQXP6S3BXXN45YZK2CRX
client_request_id: 5a5dd9c6275db385292c80a8b41d344d
conversation_id: 3ea90b33-eaff-47d6-8f6d-388828f9aefd
user_message_id: msg_01M2BETQXAP4MD63B83BY7T4AY
status: failed
---
{
"text": "__principal__: carlos eduardo.",
"provider": "deepseek",
"model": "deepseek-chat",
"fallback_used": true,
"latency_ms": 198,
"status": "failed",
"reason": "presenter llm unavailable",
"fallback_template": "answered"
}