An archive keeps public, restricted and secret records in rooms with different security levels. Someone has to know where a sensitive record is, whether its last move was normal, and whether the log of who did what can still be trusted months later. I built this prototype in three days to show ANRI what a risk view over its archive could look like, with every number simulated.
Why this prototype exists
Arsip Nasional Republik Indonesia (ANRI), the national archives, holds records of different classifications in rooms with different security levels. In January 2026 Spead AI took part in an ANRI procurement process, and I built this prototype for it: a working picture of how an archive could watch its physical records, its staff's internet use and its own audit log from one place.
The prototype is built around four questions an archive has to be able to answer at any moment, and it gives each of them a screen.
| Question | Where it is answered |
|---|---|
| QuestionWhere is this sensitive record right now? | Where it is answeredDocument tracking: RFID tag, classification, current zone and movement history |
| QuestionWas that movement unusual, and why? | Where it is answeredAlerts with a risk score, an explanation and the contributing factors, plus incident replay |
| QuestionDid staff follow internet and access policies? | Where it is answeredPolicy engine, violations log and behavioural analytics |
| QuestionCan the audit trail still be trusted later? | Where it is answeredSigned, hash-chained audit entries with a chain check |
Six roles, three dashboards
Each role has its own permission set, defined in one place and checked when a page opens. Executives, IT security and compliance officers each land on a dashboard of their own, and a banner on every page marks the demo mode and the simulated data.
| Role | What they do |
|---|---|
| RoleExecutive | What they doReads the overall risk posture, the 30 day risk trend, open alerts and compliance indicators on one page |
| RoleIT security | What they doWorks the alert matrix, reviews and replays incidents, manages policy rules and isolates devices |
| RoleCompliance officer | What they doFollows regulations, audit schedules and pending actions, and reviews the audit trail and violations |
| RoleArchivist | What they doTracks records, their zones and movement history, and requests approval to move restricted or secret records |
| RoleAuditor | What they doReads documents, alerts, policies and the audit trail, and exports audit data |
| RoleSystem admin | What they doManages users, zones and settings, and can open every dashboard |
From a moved record to an executive report
Every step is logged, and approvals and sign-ins write signed audit entries.
Move
A tagged record leaves one zone for another
Read
An RFID reader in the zone logs time and place
Score
Rules give a risk score with the reasons attached
Review
IT security opens the alert and replays the moves
Approve
Planned moves of secret records go step by step
Report
Risk posture rolls up to the executive overview
Six alert types are modelled: unauthorised zone, after-hours access, unusual frequency, pattern deviation, classification mismatch and rapid movement. Each alert stores its severity, its risk score, a sentence that explains it and the factors that added to the score, so the person reviewing it can see why it was raised before deciding what to do.
Inside the prototype
The executive overview puts six indicators, the overall risk gauge and a 30 day risk trend on one page. Overall risk is split into document risk, digital activity risk and compliance risk, so an executive sees where the number comes from.
Security console: critical alerts with scores and routes.
An audit trail you can check
For an archive, the log of who did what matters as much as the records themselves. In the prototype, every audit entry is signed and linked to the one before it.

- Read the signature and time of the latest entry.
- Hash them into the new entry's link to the past.
- Sign the new entry with HMAC-SHA256.
- Verify at any time: one button recomputes every link and reports entries that do not match.
How it is built
One app, one image
A single Next.js 16 app holds the screens and 28 API route handlers, packaged as one Docker image that runs as a non-root user with a health check.
23 data models
Zones, readers, records, movements, baselines, alerts, policies, approvals and the audit log, in MySQL through Prisma.
Rules with capped weights
Each check adds at most a fixed share to the score: after hours 30%, unauthorised zone 40%, frequency 20%, rapid moves 30%.
Sessions on the server
Passwords are hashed with bcrypt; sessions last eight hours in an httpOnly cookie and are also stored in the database, so signing out ends them.
An assistant with live counts
Ask ANRI answers questions about alerts, records, violations and compliance using current counts from the database.
Explained, not trained
Rules instead of a trained model, so every score can be explained factor by factor and the prototype works without training data.
To be clear about what a three-day prototype is: the alerts, scores and violations on screen come from the seed data. The scoring rules, the per-record baselines and the policy engine are written in the code base, ready to be run on live movements once real RFID readers and network logs are connected. The audit signer is already wired, so sign-ins, sign-outs and approvals write signed entries today.
Need to show a client what is possible before a tender?
I build working prototypes that make a proposal concrete, with honest labels on what is simulated.
Questions people ask
- No. It is a prototype Spead AI built to take part in an ANRI procurement process. All data in it is simulated.
- No. Scores come from readable rules with capped weights, so every alert can be explained factor by factor to an auditor. An assistant answers questions using live counts from the database.
- Each entry is signed with HMAC-SHA256 and carries the hash of the entry before it. Changing or deleting an old entry breaks the chain, and a verify check recomputes every link.






