Inspiration
Copying files is not the same as proving a migration succeeded.
UGREEN NAS devices offer compelling hardware, but switching from an established NAS ecosystem such as Synology or QNAP can feel risky. Users may worry about missing files, silent corruption, changed directory structures, or incomplete transfers.
A file transfer reporting "Completed" does not necessarily mean every expected file arrived intact.
I wanted to address one question:
"How can users confidently verify their data before retiring their old NAS?"
That question inspired SwitchProof.
What it does
SwitchProof is an AI Agent Skill designed for UGREEN's Uliya ecosystem. It orchestrates evidence-based verification of files migrated between NAS storage locations.
Its workflow:
- Preflight: Validate the source and destination locations, permissions, and comparison scope.
- Discover: Enumerate accessible files and check whether the inventory is complete.
- Verify: Compare file sizes, metadata, and SHA-256 hashes.
- Audit: Identify missing, modified, relocated, ambiguous, or unverified files.
- Report: Produce an evidence-based migration assessment.
SwitchProof distinguishes four outcomes:
- VERIFIED: Every required file occurrence within the defined scope has sufficient matching evidence.
- MISMATCH: Verified evidence shows missing or different content.
- INCOMPLETE: Some required evidence is unavailable or ambiguous.
- BLOCKED: Verification cannot safely proceed.
It never treats a successful tool response as proof that the entire migration succeeded.
How I built it
SwitchProof uses a SKILL.md-based orchestration architecture, rather than a standalone executable plugin.
It is designed around UGREEN's supported capabilities:
ug-filesystem: File discovery, metadata inspection, and SHA-256 verification throughfile-agent.ug-knowledge: Optional report persistence throughknowledge-agent, subject to user approval.
The Skill defines delegation instructions, scope boundaries, validation gates, failure handling, and completion conditions.
I also built a separate deterministic Python reference harness to test the decision rules with simulated agent responses.
Validation results:
- 43 synthetic scenarios passed.
- 38 adversarial cases and 5 positive controls.
- 0 false VERIFIED outcomes after two rule fixes.
- Official Skill Kit static checker: 0 errors, 4 dynamic-value warnings.
These results validate the written decision rules against simulated responses. They do not establish real NAS compatibility or successful execution by the Uliya runtime.
Challenges
The hardest challenge was not computing file hashes. It was determining when verification results were trustworthy enough to declare success.
Adversarial tests exposed two important failures in the original rules:
Overlapping source and destination roots: The system could accidentally compare source files against themselves and incorrectly report success.
Empty source scope: An empty directory could satisfy all matching conditions without verifying any actual migration.
Both were corrected, and the full synthetic suite passed afterward.
Other challenges include incomplete directory listings, changing files during verification, duplicate content, symbolic links, and unknown runtime response behavior.
Accomplishments
I am particularly proud of turning a simple file-comparison concept into a structured, evidence-driven verification protocol.
SwitchProof prioritizes honest uncertainty over false confidence.
Instead of making unsupported completion claims, it preserves partial evidence, identifies unresolved questions, and explains why a migration cannot yet be considered verified.
What I learned
Building an AI Skill is fundamentally different from writing conventional application code.
The challenge is to specify not only what an agent should do, but also when it must stop, what evidence it must demand, and which conclusions it must never make.
Reliable agent orchestration requires explicit boundaries between tool completion and task completion.
What's next
The current package has passed local static validation and synthetic rule testing. It has not been installed or executed on a UGREEN NAS.
The next milestones are:
- Validate actual Uliya delegation responses on a supported NAS.
- Determine whether third-party NAS shares are accessible through supported capabilities.
- Test directory enumeration limits, symbolic links, and large file collections.
- Evaluate LLM adherence to the written verification rules.
- Improve migration reports with coverage and unresolved-risk summaries.
The goal is simple: make switching to UGREEN easier to trust, without claiming more than the evidence proves.