Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0edb073
feat(workflows): persist lifecycle gates and collect metadata tasks
harshach Oct 5, 2026
8bb1648
feat(governance): reuse shared intake forms for metric creation
harshach Oct 5, 2026
cee3a5a
fix(ui): organize intake form helper imports
harshach Oct 5, 2026
5341f0a
Update generated TypeScript types and dereferenced schemas
github-actions[bot] Oct 5, 2026
32b515e
fix(workflows): preserve task owner fallback and optional namespaces
harshach Oct 6, 2026
680820b
fix(governance): handle subscriber retries, stale tasks and bot intake
harshach Oct 7, 2026
2c8b0a3
fix(workflows): preserve consecutive entity approval stages
harshach Oct 7, 2026
b13f890
Merge main and resolve approval assignee conflicts
harshach Oct 12, 2026
6683de8
Update generated TypeScript types and dereferenced schemas
github-actions[bot] Oct 12, 2026
c39ffa5
fix(lifecycle): file approval tasks for the editor who started the run
yan-3005 Oct 13, 2026
6d5b01e
Merge branch 'main' into agent/users-harsha-downloads-colla
harshach Oct 14, 2026
38c7fde
fix(lifecycle): enrol, approve and deliver consistently across stage …
yan-3005 Oct 14, 2026
03b8c01
fix(lifecycle): ask for a stage's missing metadata in one task and ke…
yan-3005 Oct 14, 2026
e02423f
chore(playwright): auto-refresh impact-map.generated.json
github-actions[bot] Oct 14, 2026
f3c2e42
fix(query-builder): keep the value column for operators that take no …
yan-3005 Oct 15, 2026
820d8af
feat(lifecycle): let a stage hold an asset on conditions as well as r…
yan-3005 Oct 15, 2026
5d4a413
Update generated TypeScript types and dereferenced schemas
github-actions[bot] Oct 15, 2026
735eafd
Merge main into agent/users-harsha-downloads-colla
yan-3005 Oct 15, 2026
88b7d2b
style(ui): order the domain details imports as organize-imports does
yan-3005 Oct 15, 2026
c1d53d7
Merge main into agent/users-harsha-downloads-colla
yan-3005 Oct 15, 2026
009b909
Merge branch 'agent/users-harsha-downloads-colla' of https://github.c…
yan-3005 Oct 15, 2026
2f65027
chore(playwright): auto-refresh impact-map.generated.json
github-actions[bot] Oct 15, 2026
d1490c7
feat(lifecycle): approve a stage move, govern glossaries, show the st…
yan-3005 Oct 15, 2026
f0a17a4
Merge branch 'agent/users-harsha-downloads-colla' of https://github.c…
yan-3005 Oct 15, 2026
5ac9a94
Merge main into agent/users-harsha-downloads-colla
yan-3005 Oct 15, 2026
456d17f
chore(i18n): add generic label.pending and label.applied so Collate c…
yan-3005 Oct 15, 2026
747c1a6
fix(workflows): re-enter a partial-decision step's task and keep enti…
yan-3005 Oct 15, 2026
f08526c
feat(lifecycle): ask the admins when a stage has nobody to ask, and a…
yan-3005 Oct 15, 2026
3902fa4
fix(workflows): only assignees decide a workflow approval, and an Enf…
yan-3005 Oct 15, 2026
b2fc85b
test(lifecycle): two task steps of one stage and a step that only clo…
yan-3005 Oct 16, 2026
d42346c
feat(workflows): let a downstream build add a footer to workflow cards
yan-3005 Oct 16, 2026
f418d2d
Merge main into agent/users-harsha-downloads-colla
yan-3005 Oct 16, 2026
71f8b10
fix(ui): stack a query builder rule in a narrow panel and size the wo…
yan-3005 Oct 16, 2026
d54d277
fix(workflows): flag a workflow card from its footer and drop hyphena…
yan-3005 Oct 16, 2026
a4d8829
fix(workflows): keep a metadata task's assignees while the asked grou…
yan-3005 Oct 16, 2026
0fc8c71
Merge branch 'main' into agent/users-harsha-downloads-colla
karanh37 Oct 16, 2026
1391dc4
feat(workflows): embed the workflow builder's tabs in a host page
karanh37 Oct 16, 2026
a50bba2
fix(lifecycle): only the assignees decide a workflow approval; name t…
yan-3005 Oct 16, 2026
f1655be
feat(workflows): move Delete into a manage menu with Suspend/Resume
karanh37 Oct 16, 2026
e620af7
feat(workflows): show a Suspended badge after a suspended workflow's …
karanh37 Oct 16, 2026
1d4fce3
fix(workflows): offer Suspend wherever the workflow can be edited
karanh37 Oct 16, 2026
ce36a93
fix(workflows): never serve a stage-owner list loaded before a suspen…
karanh37 Oct 16, 2026
d074e48
fix(lifecycle): address review on intake, stale stage tasks, workflow…
yan-3005 Oct 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/playwright/impact-map.generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -9787,7 +9787,7 @@
},
{
"sources": [
"openmetadata-ui/src/main/resources/ui/src/components/common/QueryBuilder/QueryBuilderCanvas/QueryBuilderRuleRow.tsx"
"openmetadata-ui/src/main/resources/ui/src/components/common/QueryBuilder/QueryBuilderCanvas/QueryBuilderValueCell.tsx"
],
"specs": [
"playwright/e2e/Features/AIMode/PersonaSettings.spec.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# A lifecycle approval names the stage move it gates

- **Status:** Accepted
- **Revisions:** v1 2026-10-15 (initial)
- **Deciders:** Ram Narayan Balaji
- **Guard:** `CreateTaskLifecycleMoveTest`, `LifecycleApprovalCard.test.tsx`
- **Related:** open-metadata/OpenMetadata#34694;
ADR:2026-10-15-a-lifecycle-stage-asks-for-its-missing-metadata-in-one-task

## Context

A guided lifecycle gates a stage move with an ordinary `userApprovalTask`, which opens a
`RequestApproval` task. For approval tasks the server fills `payload.proposedChanges` from the
entity's latest change description, so the reviewer can accept an edit. In a lifecycle the latest
change is usually the workflow's own move into the stage (Draft → In Review), or whatever edit last
met the stage's conditions. The task therefore asked the reviewer to approve a change nobody proposed,
and never said which move the approval would make.

## Decision

1. A `userApprovalTask` config may carry `lifecycleMove` (`stage`, `targetStage`). The lifecycle
compiler sets it on every approval it generates.
2. When it is set, `CreateTask` writes `payload.lifecycleMove` and removes `proposedChanges`; the task
UI shows a card saying approval is needed to move from `stage` to `targetStage`.
3. Approvals without it — glossary approval, data access requests, change requests — keep listing
proposed changes exactly as before. The task type stays `RequestApproval`, so thresholds, votes,
assignee resolution and transitions are shared rather than duplicated.

## Consequences

- The lifecycle editor reads a playbook back without comparing `lifecycleMove`, which it derives from
the stages around the approval, so playbooks published before this change still open as playbooks.
- A canvas edit that removes `lifecycleMove` from a lifecycle approval brings proposed changes back
for that approval.
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# A lifecycle stage asks for its missing metadata in one task

- **Status:** Accepted
- **Revisions:** v1 2026-10-15 (initial)
- **Deciders:** Ram Narayan Balaji
- **Guard:** `LifecycleMetadataTasksIT`, `CollectMetadataTaskTest`
- **Related:** open-metadata/OpenMetadata#34694;
ADR:2026-10-13-a-memory-conflict-opens-a-review-task-and-approving-it-supersedes-the-disputed-memory

## Context

A guided lifecycle holds an asset in a stage until its required fields are filled in. The stage's
`checkEntityAttributesTask` gate already enforces that on every event; what was missing was telling
someone what to fill in. The first attempt opened one `CustomTask` per missing field. A custom task
is bound to `CustomTaskWorkflow`, so each one offered Approve and Reject, approving it changed
nothing on the asset, and the next edit reopened it; the task panel showed neither its description
nor its payload. An asset missing four fields produced four such tasks.

## Decision

1. A `collectMetadataTask` node keeps **one** `MetadataCompletion` task per asset and node, with a
deterministic id derived from the asset, the workflow and the node, so concurrent runs on any
server converge on the same task. The node lists the stage's required fields, each with the JSON
Logic condition that is true once it is filled in.
2. The task's payload (`type/metadataCompletionPayload.json`) names the workflow, the node, the stage,
the next stage, and the required fields that are **still empty**. Every reconcile rewrites the
list as fields are filled in, completes the task when none is missing, and reopens the same task
— with its history — when the asset is back in the stage with fields missing.
3. The node runs where its stage is evaluated: after the route that finds the asset in that stage and
after the move into it, so the task opens as soon as the asset enters the stage. An asset is in one
stage at a time: when any collect node runs, an open task for a stage the asset has left is
cancelled.
4. **No workflow drives the task.** It is server-opened like `MemoryConflictReview`: the task API
refuses to create, patch or bulk-edit one, and its only transition is **Re-check**. Re-check
reads the fields the stored workflow's node asks for now: it completes the task when they are
filled in, or when the asset has left the stage, and is refused with the missing fields named
otherwise. It never changes the asset; the gate moves it on the next event. Closing the task is
allowed: the next reconcile reopens it while fields are still missing.
5. Assignees are the asset's owners, its reviewers, or named users and teams. An asset with nobody in
that group — its owners or reviewers can themselves be among the fields the stage still needs —
asks the admins instead, and the task moves to the group once it has someone.
6. A stage may also carry **conditions**: any JSON Logic rule, written with the workflow builder's
condition picker, that must hold as well as the required fields. Either part may be empty. The
stage's gate checks the conjunction; the collect node carries the conditions too, evaluated on the
same attributes the gate sees, and the task stays open while they fail. The task names missing
fields, but reports unmet conditions only as "The lifecycle conditions are not met"
(`conditionsMet: false` in the payload): a rule can be any expression, and spelling it out in
words would need a renderer for every operator.

## Consequences

- A field that is filled in completes the task through the asset's own update event; Re-check only
covers an update whose event has not been processed yet.
- An asset whose stage is changed directly, with no further event, or that moves to a stage without a
collect node keeps its last task open until the next run of the workflow or a Re-check closes it.
- A stage whose fields are all filled in but whose conditions fail keeps its task open with the
generic message; the people asked have to read the stage's conditions in the lifecycle editor.
- The guided editor's per-field options — recommended and optional checks, conditional checks,
completeness scores, guidance text — are not part of the lifecycle configuration. Completeness
scoring stays available as its own node in the workflow builder.
1 change: 1 addition & 0 deletions ingestion/src/metadata/ingestion/ometa/task_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class TaskEntityType(str, Enum):
RecognizerFeedbackApproval = "RecognizerFeedbackApproval"
CustomTask = "CustomTask"
MemoryConflictReview = "MemoryConflictReview"
MetadataCompletion = "MetadataCompletion"


class TaskEntityStatus(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void reviewerDecisionIsRecordedForTheActiveRevision(TestNamespace ns) {
}

@Test
void adminCannotApproveOwnChangeRequest(TestNamespace ns) {
void anAdminWhoIsNotAssignedCannotApproveTheirOwnChangeRequest(TestNamespace ns) {
Glossary glossary = gatedGlossary(ns);
deployHookWorkflow(
ns, INCLUDE_DESCRIPTION, "", filterScopedTo(glossary.getFullyQualifiedName()));
Expand All @@ -101,7 +101,7 @@ void adminCannotApproveOwnChangeRequest(TestNamespace ns) {
() ->
resolveAs(
SdkClients.adminClient(), task, "approve", TaskResolutionType.Approved, 1));
assertTrue(error.getMessage().contains("your own change request"));
assertTrue(error.getMessage().contains("is not an assignee of this approval"));
assertEquals(PUBLISHED, descriptionOf(glossary.getId()));
}

Expand Down
Loading
Loading