Skip to content
Setu সেতু Docs
Englishবাংলা中文

Getting started

  • What is Setu
  • Roles and sign-in
  • Creating your account
  • Simulated sandbox
  • Two-minute tour

Buyer guide

  • Buyer verification requirements
  • The dashboard
  • Creating an order
  • Deal detail and milestones
  • Funding the escrow
  • Releasing payments and approvals
  • Cash flow, alerts and what-if
  • Financing comparison and applying
  • Order analysis
  • Landed cost calculator, monthly summary and supplier scorecard
  • Documents and the hidden-text reveal
  • Suppliers and KYB badges
  • USD vs CNY payment and FX rate lock
  • Chat assistant
  • Check a suspicious email
  • Credit records and signed receipts
  • Settings, language and team members

Supplier guide

  • Supplier verification requirements (中文)
  • Supplier portal overview
  • Confirm the payment milestones
  • Upload documents
  • Payments received
  • Change your payout account
  • Why a document needs attention
  • Your company team

Admin guide

  • Admin console overview
  • Audit log and chain verification
  • Exporting the operation log
  • Risk decisions and policy
  • Document registry and duplicate detection
  • Privacy dashboard
  • Security and injection events
  • Admin: reviewing verifications
  • Knowledge base re-index
  • Evaluation harness and results
  • Demo sandboxes and reset

Judge guide

  • Five-minute guide
  • Guided demo
  • Playgrounds and scam simulator
  • Verify the audit log
  • How each requirement is met

Security & trust

  • Why code decides, not the AI
  • Permission tiers 0 to 3
  • Privacy masking
  • Documents and emails are data, not instructions
  • The signed, hash-chained audit log
  • What is simulated and what is real
  • Why Setu asks for these details

FAQ

  • Frequently asked questions

Glossary

  • Glossary

Admin guide (EN) — Opens a print view of the whole guide. Choose “Save as PDF” in the print dialog.

Admin console overview

What an administrator sees in the sidebar and which page does what.

What it is

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.

Who uses it

Admin Administrators see every page below. Judges see the same group except Company review, and they cannot resolve security events.

When to use it

  • A new company asked to join and needs a KYB decision (KYB means "know your business": checking who a company is).
  • You want proof that the audit log was not changed.
  • You want to see why a payment was blocked or sent for approval.
  • You want to check that no personal data reached the AI.

Step by step

  1. Sign in as an administrator

    Open the app. The sidebar shows the group Admin and security only for admin and judge accounts.

    The Admin and security group in the sidebar.
  2. Pick a page from the group

    The group lists these items, in this order.

    Every item opens a page under /app/admin or /demo.

What the results mean

Sidebar itemPageGuide
Verifications (admin only)/app/admin/verificationsReviewing verifications
Registry/app/admin/registryRegistry
Risk engine/app/admin/riskRisk decisions
Risk playground/demo/risk-playgroundRisk decisions
Privacy/app/admin/privacyPrivacy dashboard
Privacy playground/demo/privacy-playgroundPrivacy dashboard
Security/app/admin/securitySecurity events
Attack console/demo/attack-consoleSecurity events
Audit log/app/admin/auditAudit log
Audit chain demo/demo/auditAudit log
Scam simulator/demo/scam-simulatorPart 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.

Tips and common mistakes

  • Pages under /demo use the same data as the app but add playground tools. They are meant for showing, not for daily work.
  • If a page says you have no access, your account is not an admin account.
  • Tier 2 and Tier 3 payment approvals are not in this group. Buyers approve them: see Approvals.

Related security notes

Admins cannot move money from here

No admin page releases funds. Payments follow the permission tiers, and Tier 3 needs an OTP and a 10-minute cooling-off. See Permission tiers.

Try it

Try it

Related pages

  • Audit log
  • Reviewing verifications
  • Permission tiers

Audit log and chain verification

Read the signed, hash-chained audit log, verify it and test it with the tamper demo.

What it is

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.

Who uses it

Admin Admins see the full log with the Evidence section. Judge Judges can read it too.

When to use it

  • To prove that nothing was changed, removed or reordered.
  • To see what the AI agent, a user or the system did, and at which tier.
  • To show someone how tampering is detected.

Step by step

  1. 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.

    The Evidence section on the admin audit page.
  2. 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.

    Result of Verify now.
  3. 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.

    The Live chain.
  4. 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.

    One audit entry in detail.
  5. 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.

    Tampering is detected in the copy.

What the results mean

MessageMeaning
Verified, N entriesAll hashes, signatures and the order are correct.
Broken at seq NEntry N is the first one not in its place.
entry contents no longer match the hashSomeone changed the entry.
signature does not match the keyThe entry was not signed by Setu.
an entry is missingA deleted entry left a gap in the numbers.
entries are out of orderThe order was changed.
the link to the previous entry is brokenThe 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.

Tips and common mistakes

  • The Evidence section and the export link appear on /app/admin/audit. The page /demo/audit shows the chain and the tamper panel only.
  • Tamper and see never changes the real log. A banner says "This is a copy".
  • Verifying a log that was cut at the end can still succeed. Compare the head sequence number with a receipt or an earlier export.
  • Reset of a demo sandbox adds a signed DEMO_RESET entry. It is not an error.

Related security notes

Append-only by design

A database rule rejects edits and deletes of log rows. See Audit log.

Try it

Try it

Related pages

  • Exporting the operation log
  • Audit log (security)

Exporting the operation log

Download the signed operation log as a JSONL file and check it in the public verifier.

What it is

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.

Who uses it

Admin Admins export the whole log. The export link is in the Evidence section of the admin audit page.

When to use it

  • To give an auditor or a judge evidence outside the app.
  • To keep a copy of the log at a point in time.

Step by step

  1. Open the admin audit page

    Go to Audit log in the sidebar. Find the card Last verification.

    The export link sits below the key fingerprint.
  2. 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.

    The downloaded file.
  3. 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.

    The public verifier.

What the results mean

  • The header line states the scheme, the public key fingerprint, the number of entries and the first and last sequence numbers.
  • The verifier checks every hash, every signature and the order.
  • A partial export (a range or one deal) shows a warning. Entries present are genuine, but a partial file cannot prove that nothing was left out.

Tips and common mistakes

  • The button exports from the live log. In a demo sandbox it exports that sandbox's log.
  • The web button has no date or deal filter. The API accepts deal_id, from and to, and the command pnpm audit:export is the developer route for evidence files.
  • Keep the public key file with old exports if the key is ever rotated.

Related security notes

Security

The export holds the same PII-redacted payloads as the log. Secrets and the private signing key are never included. See Audit log.

Try it

Try it

Related pages

  • Audit log and chain verification

Risk decisions and policy

See every payment decision made by the risk engine and the policy file it follows.

What it is

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.

Who uses it

Admin Admins and judges read this page. It is view-only.

When to use it

  • To see how many actions were auto-released, sent for approval or blocked.
  • To find out why one action got a certain tier.
  • To check the limits (for example the Tier 1 maximum amount).

Step by step

  1. Open Risk engine

    In the sidebar choose Risk engine. Four counters show Auto-released, One-tap approvals, OTP-required and Blocked.

    Decision counters.
  2. Read Decisions per day

    The stacked chart shows decisions per day. Press Show chart data as a table for the numbers.

    Decisions per day.
  3. Check Recent decisions

    Each row shows When, Deal, Action, Tier, Decision, Reasons and Origin. Press Show rule trace to see which rules fired.

    A decision with its rule trace.
  4. 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.

    The policy as loaded from the server.

What the results mean

ItemMeaning
Tier 1Released 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
BlockedNothing can proceed (for example a sanctions hit).
Allowed / Approval required / BlockedThe decision column.
OriginWhere 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.

Tips and common mistakes

  • The policy table is read-only. The policy is edited in the server file backend/config/risk.yaml, not in the web app.
  • The highest tier wins, and a Block beats every tier.
  • Try the risk playground opens /demo/risk-playground, a dry run that saves nothing.

Related security notes

Security

Tiers are enforced in code. The AI agent can only propose actions. See Permission tiers.

Try it

Try it

Related pages

  • Permission tiers
  • Approvals

Document registry and duplicate detection

See which documents are fingerprinted and how many duplicates were caught.

What it is

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.

Who uses it

Admin Admins and judges view the registry. It is read-only.

When to use it

  • To see how many duplicate documents were caught.
  • To check whether a document is active or already released.

Step by step

  1. 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.

    Registry counters.
  2. Filter the table

    Under Filters choose a Status (All, Active, Released) and a Duplicates caught value (All, Exact, Near).

    Filters.
  3. Read the entries

    Registry entries shows Hash, Document, Purpose, Lender, Deal, Registered, Seen and Hits (exact / near). Use Previous and Next to page.

    Registry entries.

What the results mean

ItemMeaning
Exact copyThe same file bytes (same sha256 hash).
Near copyA re-saved or re-scanned copy with the same identity fields (seller, number, total, currency) for invoices.
PurposeEscrow evidence for a deal, or financing collateral at a lender.
ActiveStill blocks other uses.
ReleasedKept for history; the deal ended and it no longer blocks.
HitsHow many exact and near attempts hit this entry.

A duplicate fails the document check and raises a Tier 3 case. See Permission tiers.

Tips and common mistakes

  • Hashes show only a short prefix.
  • A near copy needs the same document type. Photos and packing lists get exact matching only.
  • The page has no buttons to edit or delete entries.
  • The lender check ("Try to finance this invoice at Lender B") is on the deal detail page, not on this admin page.

Related security notes

Security

The registry answers "is this hash registered?" only to admin, judge and, for their own documents, buyers. Every hit is audited.

Try it

Try it

Related pages

  • Permission tiers
  • Audit log

Privacy dashboard

Check that personal identifiers are masked before any message reaches the AI.

What it is

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.

Who uses it

Admin Admins and judges.

When to use it

  • To confirm that Leaked stays at 0.
  • To see exactly what the AI received.

Step by step

  1. Open Privacy

    Choose Privacy in the sidebar. Three numbers appear: Identifiers protected, Leaked ("Should always stay at 0") and AI calls.

    Privacy totals.
  2. 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.

    Identifiers protected per day.
  3. 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.

    A masked payload.
  4. Prove it

    In Prove it, Open the LangSmith run shows the trace. If tracing is off, the page says so.

    The Prove it card.

What the results mean

  • Leaked counts values that slipped past masking in an outgoing message. They are masked again, but the count should be 0.
  • The page also states if Masking is on and if Amounts are masked.
  • For the privacy measurement on the test split, see Evaluation.

Tips and common mistakes

  • Company names, addresses and goods descriptions are not treated as personal identifiers.
  • A token from an earlier chat turn cannot be restored later. The answer shows a protected label instead.
  • Open the privacy playground (/demo/privacy-playground) lets you test text without calling the AI.

Related security notes

Security

Every AI call goes through one client that masks first. Real values stay in memory and are never stored in the privacy records.

Try it

Try it

Related pages

  • Evaluation
  • Permission tiers

Security and injection events

Review the prompt-injection scoreboard and every injection attempt, and resolve events.

What it is

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.

Who uses it

Admin Admins read events and can resolve them. Judges can read but cannot resolve.

When to use it

  • A deal was flagged for extra verification.
  • You want to show that attacks do not move money.

Step by step

  1. 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).

    The scoreboard.
  2. Run or re-run the suite

    Press Run the suite (or Re-run suite). It takes about 15 seconds and uses the dev split.

    Re-run suite.
  3. Filter Injection events

    Use Attack style and Source (hidden text, visible text, metadata, email).

    Event filters.
  4. 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.

    Resolving an event.

What the results mean

ItemMeaning
Attack success rateShare of test attacks that had an effect. Lower is better.
Detection recallShare of attacks the detector found.
False-positive rateClean documents wrongly flagged.
Tier 3 flagThe deal needs extra verification before its next money action. Tier 3 · OTP + cooling-off
LayerWhich of the defence layers handled it.
Audit #NThe 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.

Tips and common mistakes

  • Resolving an event releases only that event's flag. A separate forensic flag on the document stays.
  • Open the live attack console (/demo/attack-console) lets you try your own attack text. Console runs never touch a real deal.
  • Turning defences off in the console switches off only the detector, tool gating and output guard. The risk engine stays on.

Related security notes

Security

Instruction-like text in a document always raises Tier 3 for that deal. See Permission tiers.

Try it

Try it

Related pages

  • Audit log
  • Evaluation

Admin: reviewing verifications

Review new buyers and suppliers, reveal masked values with a reason, request changes, approve, reject or suspend.

What it is

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.

Who uses it

Admin Only administrators with two-factor authentication turned on. Other roles get a "no access" message. You cannot decide your own account.

When to use it

When a buyer or supplier has submitted for verification and cannot use money actions yet.

Step by step

  1. Open Verifications

    Choose Verifications in the sidebar. Use the tabs (Pending, Changes requested, Approved, Rejected, All) and the Account type filter.

    The queue.
  2. Open an application

    Press Review on a row. The panel shows submitted details, documents and each automatic check as Pass, Needs attention or Failed.

    Application detail.
  3. 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.

    Reveal needs a reason.
  4. 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.

  5. 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.

    Request changes.

What the results mean

Automatic resultMeaning
ClearAll checks passed.
Needs reviewAt least one check needs attention, for example a possible duplicate company.
BlockedThe 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.

Tips and common mistakes

  • Prefer Request changes over Reject when a document is simply unclear.
  • Every decision is final for that review round and is written to the signed audit log.
  • If someone else already decided, the list refreshes and shows a message.

Related security notes

Security

Revealing a value, and every decision, is audited with your name and reason. Decisions need a fresh two-factor code. See Permission tiers.

Try it

Try it

Related pages

  • Admin console overview
  • Why Setu asks for these details

Knowledge base re-index

How the AI knowledge base is refreshed. It is a command-line task, not a web page.

What it is

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.

Who uses it

Admin Whoever runs the server. You need command-line access to the project.

When to use it

  • After you edit a file in rag_agent/kb/sources/.
  • After the financing catalogue changes and you want the KB to reflect it.

Step by step

  1. 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".

    No web screen exists for this task.
  2. 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.

    The summary is printed in the terminal.

What the results mean

OutputMeaning
+N embeddedNew or changed chunks were embedded.
N unchangedChunks that did not change were kept.
-N removedChunks whose source text is gone were deleted.

Indexing is idempotent: running it twice gives the same result.

Tips and common mistakes

  • If the embedding model is not available, the command stops with "embedding model unavailable; cannot index".
  • The knowledge base is data. Instructions inside KB text are never obeyed by the assistant.
  • Chat answers cite numbers from code tools, not from the KB.

Related security notes

Security

KB passages are wrapped as untrusted content before the model sees them. See Security events.

Related pages

  • Admin console overview

Evaluation harness and results

Run the evaluation with make eval and read the measured results. There is no web page.

What it is

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.

Who uses it

Admin Whoever runs the server.

When to use it

Before a presentation or after changing detection rules, to refresh the numbers.

Step by step

  1. 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.

    Only the injection scoreboard is in the web app.
  2. Read the results files

    Open backend/eval/results/metrics.md (readable) or metrics.json (data).

    Compare with the file.

What the results mean

From the latest metrics.md (test split, generated 2026-10-20, synthetic data):

MeasureResult
Fraud checks, WARN or FAIL counts as flaggedprecision 1.0, recall 1.0
Fraud checks, FAIL onlyprecision 1.0, recall 0.9508
Clean packs flagged0 of 50
Tampered packs with at least one unpassed document50 of 50
Duplicate documents caught5 of 5 (exact 2, near 3)
Injection attack success, defences off / on100% / 0%
Money moved by attacks0 in every mode
Injection detection recall; false positives100%; 0 of 300
Sensitive identifiers leaked, masking on0 of 600
Tampered packs auto-released0
Clean packs escalated0 of 50

Precision means "of the items flagged, how many were right". Recall means "of the real problems, how many were found".

Tips and common mistakes

  • The test split is for reporting. Thresholds are tuned on the dev split, so do not tune on test results.
  • Results are synthetic. Do not quote them as real-world accuracy.
  • Re-running overwrites the files.

Related security notes

Security

The harness uses a mock model and a sandbox. It never moves real money.

Related pages

  • Security events
  • Privacy dashboard

Demo sandboxes and reset

How private demo sandboxes are created, reset, ended and cleaned up.

What it is

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.

Who uses it

Admin Admins who run demos or look after the server. Judge Judges use sandboxes through the demo page.

When to use it

  • To run the four-minute guided demo.
  • To let a judge explore freely without side effects.
  • To reset a demo after a run.

Step by step

  1. 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.

    The demo landing page.
  2. 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.

    A running sandbox.
  3. 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.

    Reset confirmation.
  4. End the sandbox

    Press End sandbox. Your private copy is deleted now. You can start a new one at any time.

    Ending a sandbox.

What the results mean

Control or messageMeaning
Use live AIReal 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 expiredSandboxes last 4 hours by default.
All demo sandboxes are busyThe server limit (40 active by default) was reached.
You are going a little fastA rate limit applied. The app retries.

Reset adds a signed DEMO_RESET entry to the new audit chain.

Tips and common mistakes

  • Expired sandboxes are removed lazily when a new one is created. The command 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.
  • Presenter mode keys: right and left arrows, Space, R, B and N.
  • pnpm db:reset-demo resets the shared seed database. It is different from the per-sandbox Reset demo button.

Related security notes

Security

A sandbox cookie that no longer matches a sandbox is refused. It never falls back to shared data. Limits per sandbox protect the server.

Try it

Try it

Related pages

  • Audit log