Skip to content

Commit 64ab9f5

Browse files
authored
Merge pull request #36 from federated-catalogue-enhancements-2026/merge-to-upstream/CAT-FR-LM-04-asset-lifecycle
Enhancement CAT-FR-LM-04 asset lifecycle
2 parents 0599743 + 35b868f commit 64ab9f5

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)