Skip to main content

Structured source imports in Cortex

Status: Ready

Truth label: Current

Audience: Fleet operator

Reader outcome: Use structured source imports in Cortex in Cortex, with every control, its verification, and its limits stated.

Last verified: 2026-09-13

Open Sources or Manage Cortex > Sources and influences. Markdown imports now keep ATX headings and nested heading paths as extraction segments. Headings inside fenced code remain code. Plain TXT files remain one segment. Existing sources keep their retained text until Extract text / retry creates a new review; publication remains a separate action.

DOCX files can be uploaded through the same review workflow. The reader combines text runs into ordered body paragraphs and recognizes Heading1 through Heading9, outline levels and inherited heading styles. The section editor, retrieval preview, model source labels and exact citation inspection retain the heading path.

Word extraction is text-based. It includes insertions and omits deleted text when tracked changes are present. It flags automatic list labels, flattened tables, tracked changes, hyperlinks, images, floating text and omitted note/header/footer parts for comparison with the original. It does not render the document, resolve external links, reconstruct automatic numbering, or perform OCR. Flagged imports require a saved usable verdict and explanation before managed publication.

Correct extracted wording in Cortex, or record why its flagged structure is usable. Original bytes remain downloadable. Extraction, metadata, quality reviews and heading locators remain in source export/history. Word attachments use the same reader and include extraction notes in their context; attachment use is distinct from managed publication review.

The reader supports the common transitional WordprocessingML namespace and uses the existing bounded archive limits. Unsupported or malformed packages fail visibly. Its paragraph/run/text handling follows Microsoft's WordprocessingML structure.

Use source passage settings to preview and configure recursive or paragraph/rule subdivision. Richer layout conversion remains separate work. These changes do not re-extract or publish the live operator library.

Verification​

Pure and integration checks cover heading paths, fenced/indented code, C# headings, Word paragraph order, inherited headings, tracked-change omission, structural review requirements, attachment notes and malformed packages. The browser flow uploads Markdown and DOCX, inspects their sections, reviews and publishes them, opens heading evidence, exports locators and restores the view after reload.