Generate deterministic email corpora, preview destructive operations, deliver them safely over IMAP, resume, audit, and roll back.
What this subsystem is
The case-study email harness builds deterministic synthetic corpora for three
demo companies and optionally delivers them to real IMAP mailboxes. It is an
operator-only fixture workflow, not a customer email-import API.Four profiles are available: gold (751 curated records), demo (3,000),
large (6,000), and stress (30,000). Generation and validation are offline
and require neither IMAP credentials nor an AI provider.
Determinism and file-descriptor budget
Data shards and fixture-index shards share one 64-handle LRU pool. The first
open uses exclusive create; an evicted shard is reopened only in append mode.
Eviction flushes and closes the handle before another is admitted. Finish and
abort attempt every close and report all failures.The limit is fixed for normal dependency injection and constructor-injectable
only for tests. A regression test compares full hash trees generated with a
two-handle pool and the normal pool, so eviction cannot silently change bytes.
--force never replaces an existing version with different bytes. Use a new
snapshot fingerprint, and a new generator revision when the algorithm changes.
Environment boundary
Real APPEND and purge operations are accepted only in APP_ENV=local or
APP_ENV=testing. There is no boolean override. Dry-run, validation, estimate,
generation, and destructive preview stay network-free in every environment.
This mutation surface is intentionally CLI-only. Exposing a fixture purge over
HTTP or MCP would widen the production attack surface without a valid product
use case. The exception and rationale are recorded in ADR 0026.
Preview and confirm a destructive delivery
Use the same actor, mailbox selection, dataset, and mutation options in both
commands. Copy the token printed by preview:
Only a SHA-256 token hash is stored. The nonce is bound to the exact operation,
dataset version, manifest checksum, sorted mailbox and tenant selection, actor,
and canonical arguments. Validation and credential preflight finish before the
transactionally locked nonce is consumed; consumption still precedes remote
mutation. Tokens expire after five minutes and cannot be replayed.The same contract applies to:
--purge-dataset --purge-only;
--purge-all-seeded;
the wider legacy alias --purge.
Audit contract
Every real selected mailbox gets its own tenant-scoped
admin_command_audit lifecycle before remote I/O. The row includes only
operation identifiers, actor, mailbox key, dataset version, checksum, and
normalized selection. Passwords, email addresses, subjects, MIME content, and
the confirmation token are excluded.Successful mailboxes close as completed; a failed mailbox closes as failed;
environment and confirmation rejections use rejected.
Resume and purge recovery
APPEND runs one message at a time under the physical-mailbox lease. Atomic
checkpoints record the last contiguous acknowledgement. --resume verifies the
ambiguous window by stable Message-ID before continuing.A purge intent is persisted before the first remote delete. If the process
stops after deletion but before checkpoint cleanup, the next mutating run
recovers that intent under the same lease before trusting a checkpoint.
Then soft-delete KB projections for the exact
tenant_id + project_key + dataset_version. Never use default, wildcards,
hard delete, or --purge-all-seeded for a version rollback.
Certification status
Offline behavior and fault injection are testable in the repository. Real
IMAP, PostgreSQL/pgvector, Gmail compatibility, embedding cost, and retrieval
performance require external infrastructure. The repository certification
report remains explicitly blocked until timestamped evidence and audit IDs are
attached; generated or fake results are not accepted as live evidence.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AskMyDocs","description":"Enterprise RAG + canonical knowledge graph + agentic tool use — self-hostable, MIT licensed.","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"favicon":"https://mintcdn.com/padosoft/5lJ1TIL_Ft2f-U_h/favicon.svg?fit=max\u0026auto=format\u0026n=5lJ1TIL_Ft2f-U_h\u0026q=85\u0026s=2daf903727ff773a9ebe5503693559f8","navbar":{"links":[{"href":"https://github.com/lopadova/AskMyDocs","label":"GitHub"}]},"footer":{"socials":{"github":"https://github.com/lopadova/AskMyDocs"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"padosoft","hasAudioNarration":false,"actualSubdomain":"padosoft","customDomains":["doc.askmydocs.padosoft.com"],"gitSource":{"type":"github","owner":"lopadova","repo":"askmydocs","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aecb6c898140ff047bd1ab6","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Guides","count":36},{"language":"default","tag":"Architecture","count":10},{"language":"default","tag":"Integrations","count":6},{"language":"default","tag":"Configuration \u0026 Operations","count":6},{"language":"default","tag":"Best Practices","count":5},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"Reference","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"case-study-email-datasets","slug":"/case-study-email-datasets","pageMetadata":{"title":"Case-study email datasets","description":"Generate deterministic email corpora, preview destructive operations, deliver them safely over IMAP, resume, audit, and roll back.","icon":"envelope-circle-check","href":"/case-study-email-datasets"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Generate deterministic email corpora, preview destructive operations, deliver them safely over IMAP, resume, audit, and roll back.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Mermaid,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`what-this-subsystem-is`,children:`What this subsystem is`}),`\n`,_jsx(_components.p,{children:`The case-study email harness builds deterministic synthetic corpora for three\ndemo companies and optionally delivers them to real IMAP mailboxes. It is an\noperator-only fixture workflow, not a customer email-import API.`}),`\n`,_jsxs(_components.p,{children:[`Four profiles are available: `,_jsx(_components.code,{children:`gold`}),` (751 curated records), `,_jsx(_components.code,{children:`demo`}),` (3,000),\n`,_jsx(_components.code,{children:`large`}),` (6,000), and `,_jsx(_components.code,{children:`stress`}),` (30,000). Generation and validation are offline\nand require neither IMAP credentials nor an AI provider.`]}),`\n`,_jsx(Mermaid,{chart:`flowchart LR\n A[\"Versioned catalogs + profile + seed\"] --> B[\"Deterministic generator\"]\n B --> C[\"Bounded JSONL + fixture index\"]\n C --> D[\"Manifest and SHA-256 validation\"]\n D --> E[\"Offline estimate / dry-run\"]\n E --> F[\"Destructive preview\"]\n F --> G[\"Single-use DB token\"]\n G --> H[\"Local/testing environment gate\"]\n H --> I[\"Per-mailbox tenant audit\"]\n I --> J[\"IMAP purge / APPEND\"]\n J --> K[\"Checkpoint + resume\"]\n K --> L[\"Connector ingest\"]`}),`\n`,_jsx(Heading,{level:`2`,id:`determinism-and-file-descriptor-budget`,children:`Determinism and file-descriptor budget`}),`\n`,_jsx(_components.p,{children:`Data shards and fixture-index shards share one 64-handle LRU pool. The first\nopen uses exclusive create; an evicted shard is reopened only in append mode.\nEviction flushes and closes the handle before another is admitted. Finish and\nabort attempt every close and report all failures.`}),`\n`,_jsx(_components.p,{children:`The limit is fixed for normal dependency injection and constructor-injectable\nonly for tests. A regression test compares full hash trees generated with a\ntwo-handle pool and the normal pool, so eviction cannot silently change bytes.`}),`\n`,_jsx(Heading,{level:`2`,id:`offline-preparation`,children:`Offline preparation`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` demo:generate-case-study-emails`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile=large`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --force`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --stats`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` demo:generate-case-study-emails`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile=large`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --check`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --stats`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` demo:validate-case-study-emails`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile=large`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mail:seed-imap`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --all`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile=large`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --summary-only`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --estimate-cost`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--force`}),` never replaces an existing version with different bytes. Use a new\nsnapshot fingerprint, and a new generator revision when the algorithm changes.`]}),`\n`,_jsx(Heading,{level:`2`,id:`environment-boundary`,children:`Environment boundary`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Real APPEND and purge operations are accepted only in `,_jsx(_components.code,{children:`APP_ENV=local`}),` or\n`,_jsx(_components.code,{children:`APP_ENV=testing`}),`. There is no boolean override. Dry-run, validation, estimate,\ngeneration, and destructive preview stay network-free in every environment.`]})}),`\n`,_jsx(_components.p,{children:`This mutation surface is intentionally CLI-only. Exposing a fixture purge over\nHTTP or MCP would widen the production attack surface without a valid product\nuse case. The exception and rationale are recorded in ADR 0026.`}),`\n`,_jsx(Heading,{level:`2`,id:`preview-and-confirm-a-destructive-delivery`,children:`Preview and confirm a destructive delivery`}),`\n`,_jsx(_components.p,{children:`Use the same actor, mailbox selection, dataset, and mutation options in both\ncommands. Copy the token printed by preview:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mail:seed-imap`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --all`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile=large`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --purge-dataset`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --summary-only`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --actor=operator:demo-rollout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --preview-purge`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mail:seed-imap`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --all`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile=large`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --purge-dataset`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --summary-only`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --actor=operator:demo-rollout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --confirm-token=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`token-from-preview`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Only a SHA-256 token hash is stored. The nonce is bound to the exact operation,\ndataset version, manifest checksum, sorted mailbox and tenant selection, actor,\nand canonical arguments. Validation and credential preflight finish before the\ntransactionally locked nonce is consumed; consumption still precedes remote\nmutation. Tokens expire after five minutes and cannot be replayed.`}),`\n`,_jsx(_components.p,{children:`The same contract applies to:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`--purge-dataset --purge-only`}),`;`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`--purge-all-seeded`}),`;`]}),`\n`,_jsxs(_components.li,{children:[`the wider legacy alias `,_jsx(_components.code,{children:`--purge`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`audit-contract`,children:`Audit contract`}),`\n`,_jsxs(_components.p,{children:[`Every real selected mailbox gets its own tenant-scoped\n`,_jsx(_components.code,{children:`admin_command_audit`}),` lifecycle before remote I/O. The row includes only\noperation identifiers, actor, mailbox key, dataset version, checksum, and\nnormalized selection. Passwords, email addresses, subjects, MIME content, and\nthe confirmation token are excluded.`]}),`\n`,_jsxs(_components.p,{children:[`Successful mailboxes close as `,_jsx(_components.code,{children:`completed`}),`; a failed mailbox closes as `,_jsx(_components.code,{children:`failed`}),`;\nenvironment and confirmation rejections use `,_jsx(_components.code,{children:`rejected`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`resume-and-purge-recovery`,children:`Resume and purge recovery`}),`\n`,_jsxs(_components.p,{children:[`APPEND runs one message at a time under the physical-mailbox lease. Atomic\ncheckpoints record the last contiguous acknowledgement. `,_jsx(_components.code,{children:`--resume`}),` verifies the\nambiguous window by stable Message-ID before continuing.`]}),`\n`,_jsx(_components.p,{children:`A purge intent is persisted before the first remote delete. If the process\nstops after deletion but before checkpoint cleanup, the next mutating run\nrecovers that intent under the same lease before trusting a checkpoint.`}),`\n`,_jsx(Heading,{level:`2`,id:`version-scoped-rollback`,children:`Version-scoped rollback`}),`\n`,_jsx(_components.p,{children:`Preview and confirm a removal-only operation:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mail:seed-imap`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --all`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dataset-version=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --purge-dataset`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --purge-only`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --summary-only`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --actor=operator:rollback`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --preview-purge`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mail:seed-imap`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --all`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dataset-version=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --purge-dataset`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --purge-only`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --summary-only`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --actor=operator:rollback`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --confirm-token=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`token-from-preview`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Then soft-delete KB projections for the exact\n`,_jsx(_components.code,{children:`tenant_id + project_key + dataset_version`}),`. Never use `,_jsx(_components.code,{children:`default`}),`, wildcards,\nhard delete, or `,_jsx(_components.code,{children:`--purge-all-seeded`}),` for a version rollback.`]}),`\n`,_jsx(Heading,{level:`2`,id:`certification-status`,children:`Certification status`}),`\n`,_jsx(_components.p,{children:`Offline behavior and fault injection are testable in the repository. Real\nIMAP, PostgreSQL/pgvector, Gmail compatibility, embedding cost, and retrieval\nperformance require external infrastructure. The repository certification\nreport remains explicitly blocked until timestamped evidence and audit IDs are\nattached; generated or fake results are not accepted as live evidence.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Case-study email datasets","description":"Generate deterministic email corpora, preview destructive operations, deliver them safely over IMAP, resume, audit, and roll back.","icon":"envelope-circle-check","href":"/case-study-email-datasets"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What this subsystem is","slug":"what-this-subsystem-is","depth":2,"children":[]},{"title":"Determinism and file-descriptor budget","slug":"determinism-and-file-descriptor-budget","depth":2,"children":[]},{"title":"Offline preparation","slug":"offline-preparation","depth":2,"children":[]},{"title":"Environment boundary","slug":"environment-boundary","depth":2,"children":[]},{"title":"Preview and confirm a destructive delivery","slug":"preview-and-confirm-a-destructive-delivery","depth":2,"children":[]},{"title":"Audit contract","slug":"audit-contract","depth":2,"children":[]},{"title":"Resume and purge recovery","slug":"resume-and-purge-recovery","depth":2,"children":[]},{"title":"Version-scoped rollback","slug":"version-scoped-rollback","depth":2,"children":[]},{"title":"Certification status","slug":"certification-status","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"padosoft","siteName":"AskMyDocs","title":"Case-study email datasets - AskMyDocs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-24T15:36:02.737Z","originalFileLocation":"case-study-email-datasets.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Generate deterministic email corpora, preview destructive operations, deliver them safely over IMAP, resume, audit, and roll back.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AskMyDocs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/padosoft/m2DETVtAyJ1cZl2Y/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/padosoft/m2DETVtAyJ1cZl2Y/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/padosoft/m2DETVtAyJ1cZl2Y/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/padosoft/m2DETVtAyJ1cZl2Y/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/padosoft/m2DETVtAyJ1cZl2Y/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/padosoft/m2DETVtAyJ1cZl2Y/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/padosoft/m2DETVtAyJ1cZl2Y/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/padosoft/m2DETVtAyJ1cZl2Y/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/padosoft/m2DETVtAyJ1cZl2Y/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Case-study email datasets - AskMyDocs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generate deterministic email corpora, preview destructive operations, deliver them safely over IMAP, resume, audit, and roll back.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AskMyDocs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://doc.askmydocs.padosoft.com/case-study-email-datasets\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://padosoft.mintlify.site/_mintlify/api/og/v2?division=Configuration+%26+Operations\u0026amp;title=Case-study+email+datasets\u0026amp;description=Generate+deterministic+email+corpora%2C+preview+destructive+operations%2C+deliver+them+safely+over+IMAP%2C+resume%2C+audit%2C+and+roll+back.\u0026amp;theme=0faf8d4a35380eb733a8c53c\u0026amp;signature=1853dfa8db0275ec5f2b57734b0533efbe4c5ec1f80af32c3b4ef0920971f96b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Case-study email datasets - AskMyDocs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generate deterministic email corpora, preview destructive operations, deliver them safely over IMAP, resume, audit, and roll back.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://padosoft.mintlify.site/_mintlify/api/og/v2?division=Configuration+%26+Operations\u0026amp;title=Case-study+email+datasets\u0026amp;description=Generate+deterministic+email+corpora%2C+preview+destructive+operations%2C+deliver+them+safely+over+IMAP%2C+resume%2C+audit%2C+and+roll+back.\u0026amp;theme=0faf8d4a35380eb733a8c53c\u0026amp;signature=1853dfa8db0275ec5f2b57734b0533efbe4c5ec1f80af32c3b4ef0920971f96b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/padosoft/m2DETVtAyJ1cZl2Y/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AskMyDocs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://doc.askmydocs.padosoft.com/case-study-email-datasets\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/case-study-email-datasets.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://doc.askmydocs.padosoft.com/#organization\",\"name\":\"AskMyDocs\",\"url\":\"https://doc.askmydocs.padosoft.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://doc.askmydocs.padosoft.com#website\",\"name\":\"AskMyDocs\",\"url\":\"https://doc.askmydocs.padosoft.com\",\"publisher\":{\"@id\":\"https://doc.askmydocs.padosoft.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://doc.askmydocs.padosoft.com/case-study-email-datasets#webpage\",\"url\":\"https://doc.askmydocs.padosoft.com/case-study-email-datasets\",\"name\":\"Case-study email datasets\",\"description\":\"Generate deterministic email corpora, preview destructive operations, deliver them safely over IMAP, resume, audit, and roll back.\",\"dateModified\":\"2026-08-24T15:36:02.737Z\",\"isPartOf\":{\"@id\":\"https://doc.askmydocs.padosoft.com#website\"},\"breadcrumb\":{\"@id\":\"https://doc.askmydocs.padosoft.com/case-study-email-datasets#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://doc.askmydocs.padosoft.com/case-study-email-datasets#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Configuration \u0026 Operations\",\"item\":\"https://doc.askmydocs.padosoft.com/configuration\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Case-study email datasets\",\"item\":\"https://doc.askmydocs.padosoft.com/case-study-email-datasets\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://doc.askmydocs.padosoft.com/case-study-email-datasets#article\",\"headline\":\"Case-study email datasets\",\"name\":\"Case-study email datasets\",\"description\":\"Generate deterministic email corpora, preview destructive operations, deliver them safely over IMAP, resume, audit, and roll back.\",\"url\":\"https://doc.askmydocs.padosoft.com/case-study-email-datasets\",\"mainEntityOfPage\":{\"@id\":\"https://doc.askmydocs.padosoft.com/case-study-email-datasets#webpage\"},\"dateModified\":\"2026-08-24T15:36:02.737Z\",\"publisher\":{\"@id\":\"https://doc.askmydocs.padosoft.com/#organization\"},\"isPartOf\":{\"@id\":\"https://doc.askmydocs.padosoft.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AskMyDocs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AskMyDocs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/case-study-email-datasets.md","siteName":"AskMyDocs","nav":{"global":null,"groups":[{"group":"Get Started","icon":"rocket","pages":[{"title":"Introduction","icon":"book-open","href":"/introduction"},{"title":"Quickstart","icon":"bolt","href":"/quickstart"},{"title":"Installation","icon":"download","href":"/installation"},{"title":"Core concepts","icon":"diagram-project","href":"/core-concepts"}]},{"group":"Guides","icon":"book-open","pages":[{"title":"Ingesting documents","icon":"file-import","href":"/ingestion"},{"title":"Documents \u0026 OCR","icon":"file-magnifying-glass","href":"/documents-and-ocr"},{"title":"Digitization Review","icon":"clipboard-check","href":"/digitization-review"},{"title":"Portable Wiki Export","icon":"folder-tree","href":"/portable-wiki-export"},{"title":"Chat \u0026 retrieval","icon":"comments","href":"/chat-and-retrieval"},{"title":"Sessions workspace","icon":"layer-group","href":"/chat-sessions-workspace"},{"title":"Canonical knowledge \u0026 promotion","icon":"user-check","href":"/canonical-and-promotion"},{"title":"Auto-Wiki — the self-compiling tier","icon":"wand-magic-sparkles","href":"/auto-wiki"},{"title":"Universal connectors","icon":"plug","href":"/connectors"},{"title":"Credential-based connectors (IMAP)","icon":"key","href":"/connectors-credential"},{"title":"Multi-account \u0026 project-scoped connectors","icon":"layer-group","href":"/connectors-multi-account"},{"title":"Connector sync settings \u0026 folder discovery","icon":"sliders","href":"/connectors-sync-settings"},{"title":"Gmail, Microsoft Mail and shared email triage","icon":"envelope","href":"/connectors-email-api"},{"title":"Ingest provenance","href":"/ingest-provenance"},{"title":"Source Permissions","href":"/source-permissions"},{"title":"Provenance Tool Firewall","href":"/tool-firewall"},{"title":"Durable IMAP full-history imports","icon":"inbox-full","href":"/connectors-imap-backfill"},{"title":"Per-mailbox IMAP serialization","icon":"lock","href":"/connectors-imap-serialization"},{"title":"API connector — endpoints as live LLM tools","icon":"plug-circle-bolt","href":"/connectors-api"},{"title":"Flow orchestration","icon":"route","href":"/flow-orchestration"},{"title":"KITT — the embeddable agent","icon":"robot","href":"/kitt-widget"},{"title":"The admin cockpit","icon":"gauge","href":"/admin-panel"},{"title":"The project registry","icon":"folder-tree","href":"/projects-registry"},{"title":"The team switcher","icon":"users","href":"/team-switcher"},{"title":"Team and tenant management","icon":"building","href":"/team-management"},{"title":"System administration","icon":"shield-halved","href":"/system-administration"},{"title":"Engagement \u0026 Intelligence Suite","icon":"activity","href":"/engagement-suite"},{"title":"Multi-channel Digests","icon":"mail","href":"/digests"},{"title":"Engagement Dashboards","icon":"chart-line","href":"/dashboards"},{"title":"Gamification","icon":"award","href":"/gamification"},{"title":"Agentic Knowledge Reports","icon":"table-cells","href":"/agentic-knowledge-reports"},{"title":"Evidence \u0026 Risk Review","icon":"shield-check","href":"/evidence-risk-review"},{"title":"AI FinOps — spend governance","icon":"wallet","href":"/ai-finops"},{"title":"AI Guardrails — chat input + output firewall","icon":"shield-halved","href":"/ai-guardrails"},{"title":"Invitations \u0026 Referrals","icon":"ticket","href":"/invitations"},{"title":"PII redaction \u0026 compliance","icon":"shield-halved","href":"/pii-and-compliance"}]},{"group":"Best Practices","icon":"lightbulb","pages":[{"title":"Institutional memory \u0026 anti-repetition","icon":"brain","href":"/institutional-memory"},{"title":"Grounding \u0026 evidence tiers","icon":"scale-balanced","href":"/grounding-and-evidence-tiers"},{"title":"The anti-hallucination firewall","icon":"shield-halved","href":"/anti-hallucination-firewall"},{"title":"Multi-tenant isolation","icon":"building-shield","href":"/multi-tenant-isolation"},{"title":"Automated isolation testing","icon":"shield-check","href":"/isolation-testing"}]},{"group":"Integrations","icon":"puzzle-piece","pages":[{"title":"AI providers","icon":"microchip","href":"/ai-providers"},{"title":"MCP server","icon":"terminal","href":"/mcp-server"},{"title":"Connect AI tools to a project","icon":"plug","href":"/codex-project-connection"},{"title":"Desktop client \u0026 token authentication","icon":"desktop","href":"/desktop-client"},{"title":"Connect external applications with OAuth","icon":"key","href":"/external-oauth"},{"title":"Sister packages","icon":"cubes","href":"/sister-packages"}]},{"group":"Configuration \u0026 Operations","icon":"gear","pages":[{"title":"Configuration","icon":"sliders","href":"/configuration"},{"title":"Runtime configuration governance","icon":"sliders","href":"/runtime-config-governance"},{"title":"Self-hosting","description":"Run AskMyDocs on your own infrastructure — requirements, a step-by-step install, the PostgreSQL + pgvector setup, the SPA build, and the worker + scheduler processes that keep it alive.","icon":"server","href":"/self-hosting"},{"title":"Case-study email datasets","icon":"envelope-circle-check","href":"/case-study-email-datasets"},{"title":"Scheduler \u0026 maintenance","description":"The config-driven task scheduler — every nightly job, its default cron, and its per-slot enable/cron env overrides — plus the maintenance commands for retention, graph rebuild, and orphan cleanup.","icon":"clock","href":"/scheduler-and-maintenance"},{"title":"Troubleshooting","icon":"wrench","href":"/troubleshooting"}]},{"group":"Architecture","icon":"diagram-project","pages":[{"title":"Architecture overview","icon":"sitemap","href":"/architecture/overview"},{"title":"Retrieval pipeline","icon":"layer-group","href":"/architecture/retrieval-pipeline"},{"title":"Canonical knowledge graph","icon":"share-nodes","href":"/architecture/canonical-graph"},{"title":"Auto-Wiki engine","icon":"wand-magic-sparkles","href":"/architecture/auto-wiki-engine"},{"title":"Ingestion pipeline","icon":"inbox-in","href":"/architecture/ingestion-pipeline"},{"title":"Agent capability planner","icon":"route","href":"/architecture/agent-capability-planner"},{"title":"Database schema","icon":"database","href":"/architecture/database-schema"},{"title":"Security \u0026 threat model","icon":"shield-halved","href":"/architecture/security-and-threat-model"},{"title":"Governed AI actions","icon":"file-signature","href":"/architecture/governed-actions"},{"title":"Architecture decisions","icon":"scroll","href":"/architecture/decisions"}]},{"group":"Reference","icon":"book-bookmark","pages":[{"title":"HTTP API reference","icon":"plug","href":"/reference/api"},{"title":"CLI reference","icon":"terminal","href":"/reference/cli"},{"title":"ADR index","icon":"list","href":"/reference/adr-index"}]}]},"basePath":"","title":"Case-study email datasets - AskMyDocs","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}