Admin guide (EN) — Opens a print view of the whole guide. Choose “Save as PDF” in the print dialog.
What an administrator sees in the sidebar and which page does what.
The admin console is the part of Setu that shows how the system protects money and data. It is a group of pages under the sidebar heading Admin and security. All money in Setu is simulated, and each page carries a "Simulated" badge.
Admin Administrators see every page below. Judges see the same group except Company review, and they cannot resolve security events.
Sign in as an administrator
Open the app. The sidebar shows the group Admin and security only for admin and judge accounts.
Pick a page from the group
The group lists these items, in this order.
| Sidebar item | Page | Guide |
|---|---|---|
| Verifications (admin only) | /app/admin/verifications | Reviewing verifications |
| Registry | /app/admin/registry | Registry |
| Risk engine | /app/admin/risk | Risk decisions |
| Risk playground | /demo/risk-playground | Risk decisions |
| Privacy | /app/admin/privacy | Privacy dashboard |
| Privacy playground | /demo/privacy-playground | Privacy dashboard |
| Security | /app/admin/security | Security events |
| Attack console | /demo/attack-console | Security events |
| Audit log | /app/admin/audit | Audit log |
| Audit chain demo | /demo/audit | Audit log |
| Scam simulator | /demo/scam-simulator | Part of the guided demo |
Some admin work has no web page. Knowledge-base re-indexing and the evaluation run are command-line tasks: see Knowledge base and Evaluation. Demo sandboxes are covered in Demo sandboxes.
/demo use the same data as the app but add playground tools. They are meant for showing, not for daily work.Read the signed, hash-chained audit log, verify it and test it with the tamper demo.
Every action in Setu is written to a log. Each entry is signed with Ed25519 (a digital signature) and linked by a hash to the entry before it. A hash is a short fingerprint of data. Change one character and the chain breaks.
Admin Admins see the full log with the Evidence section. Judge Judges can read it too.
Open Audit log
In the sidebar choose Audit log. The page is titled Signed audit log. The Evidence section shows entries in the log, entries by tier and by action, and the last verification.
Verify now
Press Verify now. The page re-checks every hash and signature and shows a green "Verified" badge with the number of entries, or the first broken entry.
Read the live chain
Under Live chain, each block is one entry. The line between blocks is the hash link. New entries appear on the right. Press Refresh now to reload.
Open an entry
Select a block. A side window shows the exact bytes that were hashed, the payload hash, the previous hash, the entry hash and the signature. Each field has a Copy button. Entries about releases also show a Receipt button.
Try Tamper and see
In Tamper and see, choose an entry, choose a change (edit a value, delete the entry, or swap with the next entry) and press Tamper with the copy. The page works on a copy and shows where verification breaks. Press Restore the live chain to return.
| Message | Meaning |
|---|---|
| Verified, N entries | All hashes, signatures and the order are correct. |
| Broken at seq N | Entry N is the first one not in its place. |
| entry contents no longer match the hash | Someone changed the entry. |
| signature does not match the key | The entry was not signed by Setu. |
| an entry is missing | A deleted entry left a gap in the numbers. |
| entries are out of order | The order was changed. |
| the link to the previous entry is broken | The entry was inserted or rewritten. |
The Public key fingerprint identifies the key used to check signatures. Open the public verifier goes to /verify, which checks an exported file in the browser.
/app/admin/audit. The page /demo/audit shows the chain and the tamper panel only.DEMO_RESET entry. It is not an error.Download the signed operation log as a JSONL file and check it in the public verifier.
The operation log export is a file with one signed audit entry per line (JSONL format). Anyone with the public key can verify it without logging in.
Admin Admins export the whole log. The export link is in the Evidence section of the admin audit page.
Open the admin audit page
Go to Audit log in the sidebar. Find the card Last verification.
Press Export operation log
The browser downloads a file named operation-log-YYYY-MM-DD.jsonl. Line 1 is a header. Each next line is one entry with its hashes and signature.
Verify the file
Press Open the public verifier (or open /verify). Choose the file under Operation log (.jsonl). The file is read in your browser only. Nothing is uploaded.
deal_id, from and to, and the command pnpm audit:export is the developer route for evidence files.See every payment decision made by the risk engine and the policy file it follows.
The Risk engine page lists every payment decision taken by rules, plus the thresholds and rules themselves. The decisions come from deterministic code. The AI does not decide them. All money is simulated.
Admin Admins and judges read this page. It is view-only.
Open Risk engine
In the sidebar choose Risk engine. Four counters show Auto-released, One-tap approvals, OTP-required and Blocked.
Read Decisions per day
The stacked chart shows decisions per day. Press Show chart data as a table for the numbers.
Check Recent decisions
Each row shows When, Deal, Action, Tier, Decision, Reasons and Origin. Press Show rule trace to see which rules fired.
Read the Risk policy
Lower on the page, Risk policy lists thresholds and rules in groups: Block, Tier 3 and Tier 2. Press Show raw config/risk.yaml to see the source file.
| Item | Meaning |
|---|---|
| Tier 1 | Released automatically. |
| Tier 2 (One-tap approvals) | A person must tap to approve. Tier 2 · One-tap approval |
| Tier 3 (OTP-required) | OTP and a 10-minute cooling-off. Tier 3 · OTP + cooling-off |
| Blocked | Nothing can proceed (for example a sanctions hit). |
| Allowed / Approval required / Blocked | The decision column. |
| Origin | Where the action started (for example a user screen or the agent). |
Thresholds shown: Tier 1 maximum amount, fraud score above (Tier 3), new beneficiary window in days, and cooling-off in minutes.
backend/config/risk.yaml, not in the web app./demo/risk-playground, a dry run that saves nothing.See which documents are fingerprinted and how many duplicates were caught.
The Document hash registry gives every invoice and evidence document a digital fingerprint (a hash) once. The same document cannot back two deals, or be pledged at two lenders. Setu stores only hashes and minimal metadata.
Admin Admins and judges view the registry. It is read-only.
Open Registry
Choose Registry in the sidebar. The top card Duplicates caught splits the count into Exact copies and Near copies. A second card shows Entries, Active and Released.
Filter the table
Under Filters choose a Status (All, Active, Released) and a Duplicates caught value (All, Exact, Near).
Read the entries
Registry entries shows Hash, Document, Purpose, Lender, Deal, Registered, Seen and Hits (exact / near). Use Previous and Next to page.
| Item | Meaning |
|---|---|
| Exact copy | The same file bytes (same sha256 hash). |
| Near copy | A re-saved or re-scanned copy with the same identity fields (seller, number, total, currency) for invoices. |
| Purpose | Escrow evidence for a deal, or financing collateral at a lender. |
| Active | Still blocks other uses. |
| Released | Kept for history; the deal ended and it no longer blocks. |
| Hits | How many exact and near attempts hit this entry. |
A duplicate fails the document check and raises a Tier 3 case. See Permission tiers.
Check that personal identifiers are masked before any message reaches the AI.
The Privacy Gateway page proves that every message to the AI is masked first. A mask replaces a real value, such as a bank account number, with a token like ACCT_1. Code puts the real value back after the answer returns.
Admin Admins and judges.
Open Privacy
Choose Privacy in the sidebar. Three numbers appear: Identifiers protected, Leaked ("Should always stay at 0") and AI calls.
Read Protected by type and the daily chart
Protected by type counts masked items by kind. The chart shows identifiers protected per day for the last 14 days. Use Show as table for numbers.
Inspect Latest transparency records
Each record shows its step and source. Press Show masked payload to read what was prepared. A label says Sent to the AI or Prepared, not sent. Only masked values are shown.
Prove it
In Prove it, Open the LangSmith run shows the trace. If tracing is off, the page says so.
/demo/privacy-playground) lets you test text without calling the AI.Review the prompt-injection scoreboard and every injection attempt, and resolve events.
A prompt injection is text hidden in a document or email that tries to give the AI orders, such as "pay this new account". Setu treats such text as data, never as instructions. The Prompt-injection security page shows measured attack results and every attempt the system has seen.
Admin Admins read events and can resolve them. Judges can read but cannot resolve.
Open Security
Choose Security in the sidebar. The top card is Attack success rate, with rows for Defences OFF, Defences ON and ON without detector (layers 4+5 only).
Run or re-run the suite
Press Run the suite (or Re-run suite). It takes about 15 seconds and uses the dev split.
Filter Injection events
Use Attack style and Source (hidden text, visible text, metadata, email).
Resolve an event
In the events table press Resolve on a row. The cell then shows Resolved. The Audit # column links the event to its signed entry.
| Item | Meaning |
|---|---|
| Attack success rate | Share of test attacks that had an effect. Lower is better. |
| Detection recall | Share of attacks the detector found. |
| False-positive rate | Clean documents wrongly flagged. |
| Tier 3 flag | The deal needs extra verification before its next money action. Tier 3 · OTP + cooling-off |
| Layer | Which of the defence layers handled it. |
| Audit #N | The signed audit entry for the event. |
The note "Money moved in every mode: never" counts only simulated side effects. The page says the dev split is shown and test-split numbers are reported separately. The test-split results are in Evaluation.
/demo/attack-console) lets you try your own attack text. Console runs never touch a real deal.Review new buyers and suppliers, reveal masked values with a reason, request changes, approve, reject or suspend.
The Account verifications page lists new buyers and suppliers with an automatic result, so an admin can decide. The old address /app/admin/onboarding now redirects here. Sensitive values are masked until you reveal one with a written reason.
Admin Only administrators with two-factor authentication turned on. Other roles get a "no access" message. You cannot decide your own account.
When a buyer or supplier has submitted for verification and cannot use money actions yet.
Open Verifications
Choose Verifications in the sidebar. Use the tabs (Pending, Changes requested, Approved, Rejected, All) and the Account type filter.
Open an application
Press Review on a row. The panel shows submitted details, documents and each automatic check as Pass, Needs attention or Failed.
Reveal a masked value if you must
Press Reveal next to a field, write a reason of at least 10 characters and confirm. The value shows for 30 seconds. The reason is audited.
View documents
Press View on a document to open it through a short-lived signed link. Use Open in a new tab if the preview does not load.
Decide
Approve, Request changes (tick the fields or documents and say what is wrong), Reject or Suspend (both need a reason). The applicant sees your reason and gets a notification. You are asked for a fresh authenticator code before the decision is saved.
| Automatic result | Meaning |
|---|---|
| Clear | All checks passed. |
| Needs review | At least one check needs attention, for example a possible duplicate company. |
| Blocked | The sanctions screening found a hit. It is hidden from the applicant. |
A duplicate company is flagged for you, never merged automatically. In demo mode only, an Auto-approve (demo) button appears.
How the AI knowledge base is refreshed. It is a command-line task, not a web page.
The knowledge base (KB) holds the short guides the chat assistant searches: for example Incoterms, financing terms and trade document fields. Indexing splits the guides into chunks and stores their embeddings (numeric fingerprints of meaning) in the database for search.
Admin Whoever runs the server. You need command-line access to the project.
rag_agent/kb/sources/.Sync the financing catalogue
Run pnpm kb:sync (or make kb-sync). It writes the current financing catalogue as a generated source file under rag_agent/kb/sources/generated, or reports "unchanged".
Index the sources
Run pnpm kb:index (or make kb-index). The command prints a summary such as sources, chunks, and how many were embedded, unchanged or removed.
| Output | Meaning |
|---|---|
| +N embedded | New or changed chunks were embedded. |
| N unchanged | Chunks that did not change were kept. |
| -N removed | Chunks whose source text is gone were deleted. |
Indexing is idempotent: running it twice gives the same result.
Run the evaluation with make eval and read the measured results. There is no web page.
The evaluation harness measures fraud detection, duplicate catching, prompt-injection defence, privacy leakage and tier decisions. No model was trained: the numbers describe rules and code on synthetic documents. They are a ceiling, not real-world accuracy.
Admin Whoever runs the server.
Before a presentation or after changing detection rules, to refresh the numbers.
Run the harness
Run make eval. It runs python -m eval.run on the test split. You can narrow it, for example --only forensics,tiers.
Read the results files
Open backend/eval/results/metrics.md (readable) or metrics.json (data).
From the latest metrics.md (test split, generated 2026-10-20, synthetic data):
| Measure | Result |
|---|---|
| Fraud checks, WARN or FAIL counts as flagged | precision 1.0, recall 1.0 |
| Fraud checks, FAIL only | precision 1.0, recall 0.9508 |
| Clean packs flagged | 0 of 50 |
| Tampered packs with at least one unpassed document | 50 of 50 |
| Duplicate documents caught | 5 of 5 (exact 2, near 3) |
| Injection attack success, defences off / on | 100% / 0% |
| Money moved by attacks | 0 in every mode |
| Injection detection recall; false positives | 100%; 0 of 300 |
| Sensitive identifiers leaked, masking on | 0 of 600 |
| Tampered packs auto-released | 0 |
| Clean packs escalated | 0 of 50 |
Precision means "of the items flagged, how many were right". Recall means "of the real problems, how many were found".
How private demo sandboxes are created, reset, ended and cleaned up.
A sandbox is a private copy of the demo data. Each judge or presenter gets their own, so nobody changes anyone else's data. It is a separate Postgres schema cloned from the seed. All money and people are fictional.
Admin Admins who run demos or look after the server. Judge Judges use sandboxes through the demo page.
Open the demo page
Go to /demo. The buttons are Watch guided demo, Start my own sandbox and Presenter mode. The Pre-flight check list shows if the system is ready.
Start a sandbox
Choosing a button creates (or resumes) your sandbox and sets a signed cookie. In the run screen the banner reads "Simulated sandbox – fictional data" and a timer shows when the sandbox expires.
Reset the demo
Under Demo tools press Reset demo and confirm. Your sandbox is rebuilt from the seed and the demo returns to the first scene. Nothing outside your sandbox changes.
End the sandbox
Press End sandbox. Your private copy is deleted now. You can start a new one at any time.
| Control or message | Meaning |
|---|---|
| Use live AI | Real model calls, limited by a budget (25 calls by default), then recorded answers. Needs a server key. |
| Skip cooling-off (demo only) | Ends the Tier 3 pause in this sandbox. It is audited. |
| Sandbox has expired | Sandboxes last 4 hours by default. |
| All demo sandboxes are busy | The server limit (40 active by default) was reached. |
| You are going a little fast | A rate limit applied. The app retries. |
Reset adds a signed DEMO_RESET entry to the new audit chain.
pnpm demo:cleanup drops expired ones. A scheduler can call POST /demo/cleanup with the cron secret. pnpm demo:check runs all 12 steps in replay and fails on any missing recording. Run it before a presentation.pnpm demo:record re-records AI answers and spends model tokens.pnpm db:reset-demo resets the shared seed database. It is different from the per-sandbox Reset demo button.