Workflow layer: gates, decisions, lineage audits, workflow test

This commit is contained in:
2026-05-06 18:54:55 +02:00
parent 3b5f96e159
commit f4f77b2eeb
11 changed files with 1037 additions and 25 deletions

View File

@@ -4,7 +4,7 @@ type: workplan
title: "Traceable Transformations And Workflow Jobs"
domain: markitect
repo: kontextual-engine
status: active
status: completed
owner: codex
topic_slug: markitect
planning_priority: high
@@ -47,13 +47,11 @@ audit events.
## Implementation Status
The first foundation slices are implemented for transformation operations,
The foundation slices are implemented for transformation operations,
transformation run persistence, derived artifact lineage, workflow templates,
and the MVP durable job runner. See `docs/transformation-implementation.md`
and `docs/workflow-jobs-implementation.md`.
Review gates, exception queues, and richer workflow audit reconstruction remain
open in this workplan.
the MVP durable job runner, review gates, exception queues, and audit
reconstruction. See `docs/transformation-implementation.md` and
`docs/workflow-jobs-implementation.md`.
## O8.1 - Implement transformation operation registry
@@ -202,7 +200,7 @@ Implemented:
```task
id: KONT-WP-0008-T006
status: todo
status: done
priority: medium
state_hub_task_id: "5fae9005-4d64-4fca-8c51-a19405512377"
```
@@ -217,11 +215,20 @@ Acceptance:
or review-required items.
- Review decisions continue, reject, correct, retry, or escalate runs.
Implemented:
- Workflow step definitions support `review_gate` settings.
- Review-required outputs pause step and run execution with embedded
`WorkflowReviewTask` and `WorkflowExceptionRecord` state.
- Review decisions can continue, reject, correct, retry, or escalate a run.
- Exception queue listing exposes review-required, failed, blocked,
low-confidence, and policy-conflicted workflow exceptions.
## O8.7 - Audit workflow and transformation operations
```task
id: KONT-WP-0008-T007
status: todo
status: done
priority: medium
state_hub_task_id: "9e06aa46-3988-4389-99ec-0a934c68af1b"
```
@@ -236,6 +243,17 @@ Acceptance:
policy context.
- Derived artifact audit events connect to source lineage.
Implemented:
- Workflow template registration, run queue/start/final states, step
executions, retries, cancellations, review requests, review decisions,
failures, and exceptions emit audit events.
- `WorkflowService.reconstruct_run` returns run state, template, audit events,
transformation runs, derived lineage, review tasks, and exceptions.
- Derived artifact lineage emits `derived_artifact.lineage.linked` audit events
connected to output asset, transformation run, source assets, source
versions, and output representation.
## Definition Of Done
- Transformations and workflows produce inspectable run records and audit