What a Knowledge Bundle Contains
A knowledge bundle is a JSON object that groups related decision records. Each record includes:task_id— the identifier of the finalized tasktask_type— the task type string (e.g."generic.qa.v1")finalized_at— millisecond timestamp when the task was finalizeddecision_value— the committed output value (typically a string or JSON object)confidence— aggregated confidence score from the verifier and finalization phasesevidence_count— number of evidence items that supported the final candidatereuse_attempts— how many times this decision has been reused for a new taskreuse_successes— how many reuse attempts passed verification
POST /api/knowledge/export
Exports a knowledge bundle from the kernel store. Provide exactly one oftask_type or task_id. Providing both or neither returns an error.
Export all knowledge records for this task type (e.g.
"generic.qa.v1"). Returns all finalized decisions of this type stored in the kernel. Mutually exclusive with task_id.Export the knowledge record for a single specific task. Mutually exclusive with
task_type.The exported knowledge bundle. Shape differs slightly depending on whether you queried by
task_type (returns a records array) or by task_id (returns a single record with evidence_refs).Task type string for the exported records.
Array of decision records when exporting by
task_type.Present when exporting by
task_id. The specific task identifier.The finalized decision value. Type matches the
output_schema defined in the original TaskContract.Aggregated confidence score in the range
[0.0, 1.0].Artifact references for the evidence items that supported the final candidate. Present in single-task exports.
Total number of evidence items associated with the finalized decision.
How many times this decision has been reused as a prior for a new task.
Number of reuse attempts that passed verification and were accepted.
Error — both or neither parameter provided:
Knowledge bundles only contain records for tasks that have been finalized (i.e. reached the
Finalized terminal state). Tasks that expired, were cancelled, or only reached Committed state are not included.