Inspiration
In ancient Sanskrit, Nikaṣa (निकष) was the touchstone used by assayer-inspectors to test the purity of gold and royal seals before entering the state vault.
In modern regulated industries—such as healthcare administration (e.g., German statutory health funds like AOK Hessen), precision hardware manufacturing, clinical labs, and legal practices—organizations invest heavily in on-premise Network Attached Storage (NAS) hardware like the UGREEN AI NAS iDX6011 Pro. They choose on-premise hardware because strict data sovereignty regulations (GDPR, HIPAA, ITAR, trade-secret NDAs) prohibit uploading unredacted client dossiers, patient records, and proprietary schematics to multi-tenant cloud AI models.
Yet once files hit the local drive, compliance breaks down in two painful places:
- Intake Blindness (Gate 1): Caseworkers and QA engineers spend hours manually verifying whether incoming folder dumps—containing high-res photos of physical components, delivery slates, scanned forms, and voice memos—actually match signed contracts, Purchase Orders, or Engineering Bills of Materials (BOM).
- Lifecycle Liability & Deletion Chaos (Gate 2): Under strict regulatory frameworks (such as German HGB § 257 / AO § 147, EU MDR, and GDPR Art. 17 storage limitation), documents must neither be deleted too early nor retained indefinitely. Furthermore, statutory retention periods do not start on file creation dates—they follow event-triggered calendars (e.g., end of the calendar year of contract termination or batch decommissioning). Deleting too early incurs catastrophic regulatory penalties; keeping data forever violates storage minimization; and deleting files without checking for active lawsuit holds leads to severe spoliation sanctions.
We built NIKASA (NAS Intake Knowledge, Archiving & Statutory Auditor) to transform UGREEN AI NAS from a passive disk vault into an active, on-device compliance touchstone that guards data integrity from intake to defensible destruction.
What it does
NIKASA is an on-device Information Lifecycle Management (ILM) and Intake Copilot that executes a two-gate compliance pipeline locally on UGREEN AI NAS using the Uliya Skill framework:
Gate 1: Multi-Modal Intake & Proof Verification
- Visual & Marking Extraction: Inspects photos and document scans (
ug-photo vision-ocrandvision-vlm) to read component serial tags, IC part numbers, date codes, gauge readings, and official form stamps. - Spoken Evidence Transcription: Transcribes inspector and caseworker audio notes (
ug-knowledge) recorded on-site or in the field. - 3-Way Spec Reconciliation: Cross-checks the visual evidence, OCR text, and transcribed audio against master contracts, BOM sheets, or policy PDFs (
ug-document extract,reconcile). It classifies intake status intoINTAKE_VERIFIED,INTAKE_VARIANCE_FLAGGED, orINTAKE_INCOMPLETE.
Gate 2: Statutory Retention Clocks & Defensible Deletion
- Taxonomy Classification: Answers where and how incoming records should be archived by mapping files to an enterprise Retention Schedule (
references/retention-policy-matrix.md). - Event-Triggered Retention Clocks: Computes the legal expiration date ($T_{\text{purge}}$) using statutory year-end rules: $$T_{\text{start}} = \text{Date}(\text{Year}(T_{\text{trigger}}), 12, 31)$$ $$T_{\text{purge}} = T_{\text{start}} + \Delta t_{\text{statutory}}$$ where $T_{\text{trigger}}$ is extracted from document semantics (e.g., contract termination or final batch sign-off date), rather than naive file modification times.
- The Legal Hold Shield: Before marking any expired record for deletion, NIKASA performs semantic queries across the NAS (
ug-knowledge/ug-document qa) to detect active audits, warranty disputes, or litigation freezes. If an active conflict references the record, deletion is blocked, and the file is locked underLEGAL_HOLD_FREEZE.
Gate 3: Human-in-the-Loop Defensible Destruction Protocol
- Cryptographic Baseline: Hashes all evaluated records using
ug-filesystem md5sumto guarantee chain of custody. - Mandatory Human Approval Gate: NIKASA adheres strictly to Uliya Terms of Service (Section 3.3) and statutory compliance standards: destructive operations and tag assignments never execute autonomously. NIKASA halts at
waiting_approval, generating a formal Markdown Retention & Deletion Protocol (Dossier_Audit_Und_Loeschprotokoll.md) viaug-knowledge save-text. Only after an authorized compliance officer approves are lifecycle tags applied (ug-filemgr) and expired files securely staged or purged (file-workflow/ug-filesystem del).
How we built it
NIKASA was engineered according to the official Uliya Skill Development Standard (uliya-skill-kit v0.7.3) as an agentic orchestration package consisting of a primary orchestrator (SKILL.md) and modular Markdown reference guides (references/retention-policy-matrix.md, references/audit-protocol-template.md).
The architecture coordinates four specialized on-device expert agents:
file-agent: Performs initial read-only directory discovery (ug-filesystem find,stat), computes cryptographic fingerprints (ug-filesystem md5sum), queries/applies metadata tags (ug-filemgr tag-get-file,tag-add-file), and manages post-approval staging/purging (file-workflow,ug-filesystem del).photo-agent: Operates on multi-modal evidence usingug-photo vision-ocrfor fine-grained alphanumeric text extraction (serial numbers, stamps, dates) andvision-vlmfor condition and defect assessment.knowledge-agent: Transcribes spoken audio memos (ug-knowledge), conducts semantic retrieval across local dispute/legal notes, and records persistent, byte-verified audit reports viaug-knowledge save-text.document-agent: Extracts structural schemas (contract,invoice,purchase-order) viaug-document extract, cross-reconciles multi-document clauses (ug-document reconcile), and extracts metadata dates (ug-document metadata).
All state transitions strictly adhere to the Uliya runtime lifecycle: initializing in read-only discovery, prompting for missing inputs (waiting_user), pausing before disk mutations (waiting_approval), exiting cleanly on user rejection (cancelled), and isolating individual file parsing exceptions without crashing batch processing (failed item logging).
Challenges we ran into
- Pure Markdown Orchestration Constraints: Because the
uliya-skill-kitstrictly prohibits packaging executable shell scripts, Python binaries, or custom manifests in the ZIP package, all multi-agent handoffs, data schemas, and error boundaries had to be encoded as pure, deterministic prompt orchestration inSKILL.mdand linked reference files. - True Event Dates vs. Filesystem Metadata: Filesystem timestamps (
mtime/ctime) on a NAS reflect copy or download times, not the legal date of contract closure or batch release. We had to architectdocument-agentandphoto-agentworkflows to explicitly search for trigger event markers within document bodies and EXIF headers, calculating deadlines from statutory calendar year-ends ($YYYY\text{-}12\text{-}31$). - Legal Hold Conflicts vs. Storage Minimization: Balancing GDPR Art. 17 ("Right to be Forgotten" / storage minimization) against the legal peril of spoliation during litigation required building an explicit precedence engine: Legal Holds unconditionally override expiration clocks, and all proposed actions remain quarantined pending human confirmation.
Accomplishments that we're proud of
- Zero-Cloud, Fully Sovereign Operation: Running high-stakes document and visual auditing 100% locally on UGOS Pro hardware, ensuring zero bytes of confidential data leak to third-party cloud APIs.
- Dual-Industry Versatility: A single unified orchestration pipeline that seamlessly audits an industrial First Article Inspection (hardware batch + BOM + microscope photos) or a regulated administrative case dossier (healthcare/insurance claims + scanned IDs + case notes).
- Deterministic Chain of Custody: Pairing
ug-filesystem md5sumwithug-knowledge save-textto generate legally defensible, hash-verified compliance certificates that satisfy external auditors. - 100% Compliant Human-in-the-Loop Design: Ensuring safety and alignment with Uliya Terms of Service Section 3.3 and public sector standards (like AOK Hessen VCI) by requiring explicit human sign-off before executing destructive file operations.
What we learned
- The true power of an on-device AI NAS isn't basic keyword search or file storage—it is cross-modal contextual correlation. Linking a photo of a physical serial number (
ug-photo) with a clause in a 40-page PDF (ug-document) and a spoken field memo (ug-knowledge) unlocks workflows that traditional cloud SaaS tools cannot touch. - Designing agentic skills with rigorous state machines (
waiting_approval, graceful failure logging) is essential when building tools intended for real-world enterprise compliance.
What's next for NIKASA : NAS Intake Knowledge, Archiving & Statutory Auditor
- Round 2 Physical NAS Validation: Deploying and benchmarking NIKASA on the physical UGREEN AI NAS iDX6011 Pro (Intel Core Ultra 7 255H, 96 TOPS NPU) to measure real-world OCR/VLM latency across 100+ file batch folders.
- European Public Sector Pilot (AOK Hessen VCI): Demonstrating the live prototype to public healthcare and statutory bodies as an on-premise Archiving Copilot (Archivierungs-Copilot für regelkonforme Aufbewahrung und Löschung).
- Immutable WORM Storage Integration: Extending Gate 2 to interface with UGOS Write-Once-Read-Many (WORM) storage pools, automatically locking folders into hardware-enforced retention vaults until the calculated $T_{\text{purge}}$ arrives.
- Skills Hub Publication: Packaging NIKASA for one-click installation via the UGREEN Skills Hub for SMBs, legal firms, and laboratories worldwide.
Built With
- audit-trail
- bash
- compliance
- docker
- document-ai
- edge-ai
- gdpr
- information-lifecycle-management
- knowledge-retrieval
- linux
- local-ai
- natural-language-processing
- ocr
- python
- sha256-md5
- ugos
- ugreen-ai-nas
- uliya-skill-kit
- vlm

