Ordering + limit-only Test für created_at DESC in DependencyExtractionFeatureTest.php UI Test für masked Identifier (ID: 123456…) + Guest-Access blocked in InventoryItemDependenciesTest.php Quickstart ergänzt um manuellen <2s Check in quickstart.md pr-gate Checkbox-Format normalisiert (kein leading space) in pr-gate.md Co-authored-by: Ahmed Darrazi <ahmeddarrazi@adsmac.local> Reviewed-on: #49
38 lines
2.1 KiB
Markdown
38 lines
2.1 KiB
Markdown
# Requirements Checklist — Inventory Dependencies Graph (042)
|
|
|
|
## Scope
|
|
|
|
- [x] This checklist applies only to Spec 042 (Inventory Dependencies Graph).
|
|
- [x] MVP scope: show **direct** inbound/outbound edges only (no depth>1 traversal / transitive blast radius).
|
|
|
|
## Constitution Gates
|
|
|
|
- [x] Inventory-first: edges derived from last-observed inventory data (no snapshot/backup side effects)
|
|
- [x] Read/write separation: no Intune write paths introduced
|
|
- [x] Single contract path to Graph: Graph access only via GraphClientInterface + contracts (if used)
|
|
- [x] Tenant isolation: all reads/writes tenant-scoped
|
|
- [x] Automation is idempotent & observable: unique key + upsert + run records + stable error codes
|
|
- [x] Data minimization & safe logging: no secrets/tokens; avoid storing raw payloads outside allowed fields
|
|
- [x] No new tables for warnings; warnings persist on InventorySyncRun.error_context.warnings[]
|
|
|
|
## Functional Requirements Coverage
|
|
|
|
- [x] FR-001 Relationship taxonomy exists and is testable (labels, directionality, descriptions)
|
|
- [x] FR-002 Dependency edges stored in `inventory_links` with unique key (idempotent upsert)
|
|
- [x] FR-003 Inbound/outbound query services tenant-scoped, limited (MVP: limit-only unless pagination is explicitly implemented)
|
|
- [x] FR-004 Missing prerequisites represented as `target_type='missing'` with safe metadata + UI badge/tooltip
|
|
- [x] FR-005 Relationship-type filtering available in UI (single-select, default “All”)
|
|
|
|
## Non-Functional Requirements Coverage
|
|
|
|
- [x] NFR-001 Idempotency: re-running extraction does not create duplicates; updates metadata deterministically
|
|
- [x] NFR-002 Unknown reference shapes handled gracefully: warning recorded in run metadata; does not fail sync; no edge created for unsupported types
|
|
|
|
## Tests (Pest)
|
|
|
|
- [x] Extraction determinism + unique key (re-run equality)
|
|
- [x] Missing edges show “Missing” badge and safe tooltip
|
|
- [x] 50-edge limit enforced and truncation behavior is observable (if specified)
|
|
- [x] Tenant isolation for queries and UI
|
|
- [x] UI smoke: relationship-type filter limits visible edges
|