Files
kontextual-engine/workplans/KONT-WP-0002-markitect-main-system-scope.md

109 lines
2.9 KiB
Markdown

---
id: KONT-WP-0002
type: workplan
title: "markitect-main System-Layer Extraction"
domain: markitect
repo: kontextual-engine
status: done
owner: codex
topic_slug: markitect
created: "2026-05-03"
updated: "2026-05-05"
state_hub_workstream_id: "e46d0962-7451-4b6c-b39f-461e35ba6a76"
---
# KONT-WP-0002: markitect-main System-Layer Extraction
## Purpose
Compare `markitect-main` against the `kontextual-engine` PRD/FRS and extract
only the behavior, tests, and concepts that belong in the headless knowledge
runtime layer.
## S2.1 - Complete first-pass scope assessment
```task
id: KONT-WP-0002-T001
status: done
priority: high
state_hub_task_id: "1d7609a6-605d-425b-ab51-9a77a82ff73d"
```
Document the first-pass migration/reimplementation assessment in
`docs/markitect-main-scope-assessment.md`.
## S2.2 - Inventory persistence and repository code
```task
id: KONT-WP-0002-T002
status: done
priority: high
state_hub_task_id: "86a1bf90-db72-44a0-a5ad-6374e6de8454"
```
Review legacy filesystem/SQLite repositories, workspace database docs, prompt
run migrations, and related tests. Classify each item as migrate test,
reimplement concept, defer, or out of scope.
Output: `docs/system-layer-extraction-inventory.md`.
## S2.3 - Inventory infospace models and relationships
```task
id: KONT-WP-0002-T003
status: done
priority: high
state_hub_task_id: "8b88b3fa-a905-44aa-a25f-993cc9d50f2c"
```
Review `markitect/infospace/` models, relationship parsing, graph export, and
example fixtures. Extract generic artifact, collection, relationship, and
evaluation concepts without importing project-layer assumptions.
Output: `docs/system-layer-extraction-inventory.md`.
## S2.4 - Inventory orchestration and run-manifest material
```task
id: KONT-WP-0002-T004
status: done
priority: high
state_hub_task_id: "1f15f603-4f86-41f8-8a24-95c0e9c825f7"
```
Review prompt dependency resolution roadmap, run manifests, quality tables,
batch processor behavior, and workflow-related migrations. Produce a candidate
workflow model for engine implementation.
Output: `docs/system-layer-extraction-inventory.md` and
`docs/system-layer-migration-backlog.md`.
## S2.5 - Inventory API and query experiments
```task
id: KONT-WP-0002-T005
status: done
priority: medium
state_hub_task_id: "0a1e5a4b-f64d-4228-8f0f-e174475253da"
```
Review query paradigms, GraphQL docs, search/indexing experiments, and error
handling. Decide which API/query ideas deserve new tests or design notes.
Output: `docs/system-layer-extraction-inventory.md` and
`docs/markitect-tool-reuse-boundary.md`.
## S2.6 - Produce migration backlog
```task
id: KONT-WP-0002-T006
status: done
priority: high
state_hub_task_id: "54a7e7a7-bf26-4f71-a8a5-9da48f5018c2"
```
Create a structured backlog of candidate tests, fixtures, modules, and
behaviors for `KONT-WP-0003`, grouped by FRS section and migration strategy.
Output: `docs/system-layer-migration-backlog.md`.