Rules
What the gate checks, exactly
One rule set, written once and used by the desk, the verify page and the contract tests.
Rules v1
What counts as a change
The approved hash is keccak256("mindiq-reply-v1\n" + normalise(text)). Normalising removes only noise a reader cannot see and that mail tools add by themselves. Invisible characters are kept on purpose, so a hidden edit cannot pass.
Ignored (4)
- Unicode NFC. An accented letter typed as one character or as letter + accent is the same letter.
- Line endings. CRLF and lone CR become LF.
- End-of-line spaces. Spaces and tabs at the end of each line are dropped.
- Outer blank lines. Blank lines at the very start and the very end are dropped.
Counts as a change (everything else)
- Any letter, digit or punctuation mark
- Capital letters
- Spaces inside a line
- Blank lines inside the text
- Links, amounts, dates, names
- Emoji
- Zero-width spaces, joiners, soft hyphens and other invisible characters
- Direction controls (bidi overrides)
Send codes
Eight answers, checked in this order
| Code | Name | Meaning |
|---|---|---|
| 1 | No workspace | The workspace does not exist. |
| 7 | Already sent | This approval was used for a send. Sending again needs a new draft. |
| 4 | Revoked | A supervisor revoked this version. It needs a fresh approval round. |
| 2 | Not approved | No supervisor has approved this exact text. |
| 6 | Stale | The supervisor set or threshold changed after the approval, so it no longer counts. |
| 5 | Expired | The approval had an expiry and it has passed. |
| 3 | Needs more approvals | Some supervisors approved, fewer than the workspace threshold. |
| 0 | Approved | This exact version has enough approvals in the current round. |
Rounds: an approval round collects distinct supervisors until the threshold. A revoke or an expiry ends the round; approving again opens a new one that needs the full threshold. Epochs: adding or removing a supervisor, or changing the threshold, moves the workspace to a new epoch and every older approval becomes stale. A send uses the approval up: the same text on the same draft cannot be sent twice.
Contract
PrototypeMindiqVersionApprovals on Elysium
Written and tested, not deployed yet. The owner deploys it later; then its address appears here. Only hashes go on Elysium: a random draft id and the content hash. Reply text, customer names and ticket numbers stay in your browser.
- No owner, no fee, no pause, no upgrade. It rejects HYPE and holds no tokens.
- Each workspace has one admin (two-step handover, can renounce). The admin picks supervisors, senders and the threshold, and nothing else.
- Supervisors approve (directly or with an EIP-712 signature someone else submits) and revoke.
- Senders record a send; the contract refuses unless the send code is 0.
- Limits: 32 supervisors and 32 senders per workspace; signatures from contract wallets (ERC-1271) are not supported.
- Tests: 34 unit and fuzz tests, a parity story generated from the site's engine, 3 invariants, and a fork test on Elysium.
| Action | Gas (measured) | Cost now (HYPE) |
|---|---|---|
| Deploy the contract (once, by the owner) | 1,848,640 | reading… |
| Create a workspace (3 supervisors, 1 sender) | 222,676 | reading… |
| Approve a version | 78,142 | reading… |
| Submit a signed approval (EIP-712) | 106,458 | reading… |
| Revoke | 36,057 | reading… |
| Record a send | 36,848 | reading… |
| Add or remove a supervisor | 34,062 | reading… |
Live gas price: reading… on Elysium. Gas figures are the highest seen in the forge tests; real costs move with the gas price.
Status
What runs today, and what is planned
Draft versions
Every save is a numbered version with its content hash.
Approve one exact version
Local mode in the browser; on-chain mode once the contract is deployed.
Simulated send gate
Passes only an approved, unrevoked, unexpired hash. Blocked sends show a diff.
Change diff + hidden characters
Word diff against the approved version; zero-width and direction characters made visible.
On-chain approvals on Elysium
Contract written and tested (unit, parity, invariant, fork). Not deployed yet.
Helpdesk integrations
Sending from a real inbox through the gate. Not built.
Shared hosted workspace
Drafts shared between agent and supervisor machines. Today: export / import a review packet.
$MINDIQ utility
Quotas for hosted features once they exist. Not needed for anything today.
Planned, not built: helpdesk integrations (send from a real inbox), hosted shared workspaces, notifications, and token-based quotas.