Skip to content

Commit 35b868f

Browse files
Sw3ekssaackef
andauthored
docs(CAT-FR-LM-04): asset lifecycle (#23)
* docs(CAT-FR-LM-04): document validation result lifecycle in schema validation service Add result storage and lifecycle rules (OutdatedReason enum, OUTDATED marking on update/revoke, cascade delete on asset delete). * feat(CAT-FR-LM-04): cleanup * feat(CAT-FR-LM-04): resolve comment --------- Co-authored-by: saackef <fabian.saacke@msg.group>
1 parent 70e9f28 commit 35b868f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

federated-catalogue/src/docs/architecture/chapters/05_building_block_view.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,21 @@ classDiagram
457457
}
458458
....
459459

460+
Validation results are persisted in the `validation_result` table.
461+
Results carry an `outdated` flag and an `OutdatedReason` that records why a result is no longer current:
462+
463+
[options="header",cols="1,2"]
464+
|===
465+
| Reason | Trigger
466+
| `ASSET_UPDATED` | A new version of the asset was uploaded (`PUT /assets/{id}`)
467+
| `ASSET_REVOKED` | The asset was revoked (status transition to `REVOKED`)
468+
|===
469+
470+
**Lifecycle rules:**
471+
472+
* **Asset update / revoke:** All existing results for the asset are bulk-marked `outdated = true` with the appropriate `OutdatedReason`. Results are retained for audit purposes — historical validation state remains queryable.
473+
* **Asset delete:** All associated results are permanently deleted (`ValidationResultStore.deleteByAssetId`).
474+
460475
===== Revalidation Service
461476

462477
This component periodically revalidates existing credentials. It checks if the signatures are still valid (e.g. not expired or referencing DID is still available). If the validation of a credential fails, it's either set to state _deprecated_ or _eol_. This will remove the credential from the Graph Database.

0 commit comments

Comments
 (0)