# Implementation, Roles and HTTP Contract: 0.6.9 Current release: pilot **0.6.9**, canonical **2.90.1**. The acceptance-close addendum ([EN](ACCEPTANCE_CLOSE_en.html) / [PT](ACCEPTANCE_CLOSE_pt.html)) documents D01 recovery only for editing an existing listing and declining an interest. HTTP 409 blocks stale submission; explicit authorized GET refresh displays escaped latest details while preserving the local draft. Only a successful explicit refresh adopts the new expected version; the offer acknowledgement resets and the user must deliberately resubmit. Unavailable lifecycle states remain disabled with local text retained. Failed reads and obsolete route/account/dialog responses cannot adopt terms or trigger a follow-up POST. Relative to inherited 0.6.8, this adds no backend, API operation or schema change. Executed automated coverage is recorded separately in matching-version [QA_RESULTS.json](QA_RESULTS.json); these procedures do not themselves establish execution. Observed human, native Safari, physical-phone and remote-hosting acceptance remain pending. The [pre-participant checklist](PRE_PARTICIPANT_CHECKLIST.md) contains pending operator tasks only. UI languages remain EN/PT/ES/FR/AR/ZH; the current technical addendum is EN/PT. Dated addenda, QA results and requirement registries retain their recorded versions and scopes; do not infer current test counts from older artifacts. Inherited addendum **0.6.8**: local [contextual help](WORKFLOW_HELP_en.html) and [role dashboards](ANALYTICS_en.html), with their original technical requirements and dated evidence scope. These do not extend D01 recovery to other mutation forms. Inherited addendum **0.6.7**: [seller history requirements](SELLER_HISTORY_en.html). Seller basics remain visible; detailed seller references require the current buyer's recorded request on this offer or successful proposal in this assigned case, and current seller sharing consent. Own holder/admin access is separate; assigned compliance/rails/auditor receive no detailed seller references. No new table or API operation. Inherited addendum **0.6.6**: [readiness requirements](READINESS_en.html). Adds owner-only terminal rehearsal archive/restore and participant-offer discovery metadata. Existing source capacity and financial checks remain authoritative. No shared-case deletion, erasure service, quota reset or real financial execution. Its broader seller-history wording is superseded by 0.6.7 only for disclosure. Inherited client addendum: **0.6.5 activity updates**, [EN](ACTIVITY_en.html) / [PT](ACTIVITY_pt.html). Seven-second polling remains a best-effort read, not WebSockets, external market monitoring or a delivery guarantee. That client-only addendum did not change HTTP/domain contracts; the 0.6.6 additions are documented separately above. ## 0.6.0 Experience Extension The [implemented addendum](EXPERIENCE_en.html) adds 20 requirements, rendered workflow/relationship diagrams, six STRICT tables and 17 GET/POST operations. The combined [OpenAPI](OPENAPI.json) contains 62 operations. Source inventory is declared synthetic capacity, not a verified external balance; it persists across listing generations. Explicit buyer mandate and independent compliance remain required after a seller opens a case. No automatic role grant or buyer command is inserted. `marketplace.cjs` validates snapshot/version ownership, request scope, append-only messages, idempotency and cross-generation allocation. `exit-requests.cjs` validates buyer membership and a reconciled position, not a live sale. Both models have read-only restore validators, called before staging and before atomic replacement. Earlier module histories below retain their original dates and scope. Version 0.5.3 adds owner-private discovery metadata via `server/discovery.cjs` and `discovery_tools`, with version-checked GET/POST access and recovery validation. It adds objective comparison and discovery controls without changing domain economics or counterpart visibility. See [Discovery Microtools](DISCOVERY_TOOLS.md). Version 0.5.2 adds a sticky authenticated search bar, search/return draft handling and three home-style alternative offer cards on an unmatched query. HTTP routes, server privacy rules and domain economics are unchanged. See [Global Search](GLOBAL_SEARCH.md). Version 0.5.1 adds owner/admin-only private asset sourcing requests in `server/sourcing.cjs` and the STRICT `asset_requests` table. These are separate from deals/rehearsals, support idempotent creation and version-checked withdrawal, and are validated in backup recovery. Related catalog suggestions and request intake are deterministic simulated workflows, not live AI or seller outreach. See [Asset Sourcing](ASSET_SOURCING.md) for the full contract. The remaining baseline sections describe **0.5.3**, except where superseded by the versioned additions above. Current runtime/API documentation authority is pilot **0.6.9**, canonical **2.90.1**; use [OpenAPI](OPENAPI.json), [access policy](ACCESS_POLICY.md), the inherited requirements and the current acceptance-close addendum. Executed automated coverage is recorded separately in matching-version [QA_RESULTS.json](QA_RESULTS.json); dated evidence retains its own version and scope. The executable source is authoritative; discrepancies must be resolved before release. All workflow outcomes are **SIMULATED existing-holder resale**, not issuance or real financial execution. A procedure or historical contract is not evidence that a current test ran. ## Architecture and State Version 0.5.0 removes participant company browsing. Server-side allowlisted projections serve offers-only catalog data, limited factsheets and context-gated commercial counterpart profiles. The frontend's task-oriented navigation and optional natural-language/voice search must not preload or expose a hidden directory. Search intent matching is local and deterministic, not an LLM integration, AI investment advice or a live-market query. Browser voice support has separate consent and availability limits described in [known limits](KNOWN_LIMITS.md). Version 0.4.1 adds optional fictional `commercial` metadata to selected catalog snapshots: reference-price discount, indicative volume tiers, planned points label and absolute UTC expiry. The coordinator checks the snapshot deadline before new offers, publication, proposals and accepts. Case/rehearsal creation also checks the deadline. Agreed instructions and settlement do not get silently repriced or cancelled. The individual rehearsal passes wall time separately from its synthetic quote-exercise clock for this check. Old snapshots without the metadata keep their previous behavior. See [commercial scope](COMMERCIAL_TERMS.md). Version 0.4 adds `server/rehearsal.cjs` and an additive private `rehearsals` table. Every authenticated account may choose a synthetic buyer/holder role within a personal rehearsal; its actual account role remains fixed. Ownership is enforced even against administrators of other accounts. No rehearsal writes shared `cases`, `members`, transaction evidence or deal metrics. Its step journal is an editable database snapshot with a hash, not the shared append-only case audit or independent certification. Full backups include the table, and restore validates each rehearsal snapshot when the table exists; pre-v0.4 backups without that table remain readable. The [individual guide](INDIVIDUAL_REHEARSAL.md) defines the scenario, consent and report boundaries. One Node.js 24.19.0+ process within major 24 serves `public/` and a same-origin JSON HTTP API. There are no npm server dependencies. `node:sqlite` supplies the database and snapshot API; treat this SQLite runtime as experimental for the pilot. Sessions, users, profiles, invitations, cases, notifications, command deduplication and audit data persist on the server. Browser language selection and view state are not the authoritative deal state. No websocket/event-stream contract is implemented; clients read the API to refresh shared state. SQLite uses STRICT tables, foreign keys, WAL, `synchronous=FULL`, a 5-second busy timeout, prepared bindings and synchronous `BEGIN IMMEDIATE` transactions. The schema setting is `1`; an incompatible setting fails startup. There is no migration framework. A case stores the whole workflow as a JSON snapshot plus SHA-256, not normalized asset/trade tables. See [ERD](ERD.mmd). Canonical startup/CLI use `server/paths.cjs`: macOS `~/Library/Application Support/GlemO Shared Pilot/v0.2.0`, Linux `$XDG_DATA_HOME/glemo-shared-pilot/v0.2.0` or `~/.local/share/glemo-shared-pilot/v0.2.0`, overridden by `PILOT_DATA_DIR`. Offline restore validates/stages before atomic DB rename under a local maintenance lock; see the runbook for operational limits. Each case begins with its own synthetic 1,000-unit holder position, at six decimal places, and supports at most one resale request. It is independent of every other case; reconciliation in one case does not update a global portfolio. A subsequent rehearsal uses a new case. The four templates are: | Template ID | Fictional asset | Category | Template country / eligible buyer mandate | | --- | --- | --- | --- | | `ae-property` | Dubai Income Asset A | Real estate | `AE` | | `ae-credit` | Gulf Credit Asset B | Private credit | `AE` | | `sg-treasury` | Singapore Treasury Asset C | Treasury | `SG` | | `ae-gold` | Emirates Gold Asset D | Commodities | `AE` | These are separate synthetic fixtures, not actual holdings, listings, issuers, treasury instruments, gold reserves, or jurisdiction-specific approvals. The shared HTTP API does not expose historical mobile/platform import adapters, issuance, minting, purchase execution, redemption, banking, wallets, external KYC, signature providers, or blockchain RPC. ## Identity, Tenancy and Visibility The six fixed account roles are `admin`, `holder`, `buyer`, `compliance`, `rails`, `auditor`. The server derives role and actor ID from the authenticated account. Clients cannot supply a new role, organization, or actor through commands. Each join creates a new organization row for that account; matching organization aliases do not merge accounts into a shared organization. Organization labels are fictional metadata. Case membership is the actual participant access boundary. | Account | Read access | Write authority | | --- | --- | --- | | Administrator | All cases, participants, case audit/exports; user/invite lists; global metrics/security audit | Invite/reset/revoke non-admin accounts, create cases, pause/archive, account control, backup; own profile/password. Cannot execute participant commands. | | Holder | Assigned-case projections; own profile/notifications; buyer commercial profile only after that buyer's successful proposal | Offer, publish, counterproposal/acceptance, acknowledgement, eligible cancellation, issue, message, feedback | | Buyer | Assigned-case projections; own profile/notifications; seller commercial profile in an offer factsheet or the assigned case's published-offer context | Mandate, proposal/acceptance, acknowledgement, issue once bound to the request, message, feedback | | Compliance | Assigned operational cases and filtered messages/audit/exports; no global participant directory | Fictional review, rejection, manual expiry, issue/independent resolution, agreement closure without movement, feedback | | Rails | Assigned operational cases and filtered messages/audit/exports; no global participant directory | Instructions, start settlement, simulated cash/delivery evidence, issue, feedback | | Auditor | Assigned operational cases and filtered messages/audit/exports; no global participant directory | Independent reconciliation, issue/independent resolution, feedback | Non-admins must be explicitly assigned to a case; inaccessible and absent cases both return `404 missing`. A case requires five distinct **active** accounts, one per matching participant role. There is no case membership replacement API or role-switch UI. User roles cannot be changed through an endpoint. Case membership permits operational reads, not disclosure of every registration row. `participants` is viewer- and context-filtered: own/internal administrative rows remain distinct from a counterpart's limited commercial projection. Login aliases, activation/completion flags, credentials, contact details, private preferences and full registration are not counterpart fields. Before a successful buyer proposal, a seller does not receive the buyer profile, mandate details or nested buyer fixture. Binding plus a successful buyer `propose` event is required; assignment, review, failed attempts or a sample example does not qualify. The buyer can inspect seller information in the factsheet/published-offer context only. The original issuer remains asset metadata, not a replacement seller identity. Messages are shared case records, **not a private two-party channel**, even though only holder/buyer can send them. Do not put private identity/contact data in message bodies. Participants see feedback bodies/events only for their own role; the administrator sees all. This is filtering, not anonymity: privileged operators can read stored data. Command fingerprints are removed from projected state/events; audit actor identifiers can be replaced with role labels for non-admin readers. Domain actor references are not profile-lookup authorization. Participant history/referrals are self-declared. The owner sees their own references and the administrator retains internal access. A counterpart sees them only **after the contextual gate passes and `shareReferences=true`**. Opt-in does not unlock a directory. Public fictional commercial histories omit other counterparties' IDs/names and links. There is no independent reference or KYC verification. `/api/profile` is own-profile access, not a general profile directory. Individual rehearsal applies the selected buyer/holder role even when the real account is an administrator; ownership remains mandatory. ## Session and Request Contract - JSON POST bodies only (`application/json`, optional parameters), at most 32,768 bytes. Unknown fields are rejected by the endpoint/action allowlists. GET/POST are implemented; HEAD is for static resources, not a separate API contract. Other methods fail with 405. No CORS API or OPTIONS preflight is provided. - Host must match the configured public origin. Every POST, including login and invite lookup/acceptance, must carry an exact matching `Origin`; conflicting `Sec-Fetch-Site` is rejected. Under HTTPS configuration every request also needs the trusted proxy socket and exact forwarded protocol. See the [runbook](RUNBOOK.md). - Login and successful invite acceptance set an opaque cookie; only SHA-256 of the raw session token is stored. Local cookie: `glemo_shared_local`; HTTPS: `__Host-glemo_shared`. Both are HttpOnly, SameSite=Strict, Path=/, Max-Age=43,200; HTTPS adds Secure. Cookies are not JWTs and are not Authorization bearer tokens. - `GET /api/auth/session` returns nullable `user`, `csrf`, `profile`, plus `globalPaused` and `serverTime`, including when logged out. It does not return an expiry timestamp. Login/accept return `expiresAt`; password change rotates the cookie and returns `user`/`csrf` without `expiresAt`. - Authenticated POSTs require `X-CSRF-Token` from the current session. Pre-auth login, invite lookup and accept do not require CSRF. Anonymous API access otherwise returns 401 and clears the cookie. - Idle expiry is 30 minutes; absolute expiry is 12 hours from issue. POST or GET with `X-User-Activity: 1` updates last activity. Background GETs without that header do not extend idle lifetime. Cookie Max-Age does not override server expiry. - Logout removes the current session. Successful password change or reset acceptance removes all of that user's sessions and pending targeted resets, then issues a new session. Reset-link issuance alone does not revoke sessions. Disabling an account removes its sessions immediately. - Passwords: 14-128 Unicode code points, with simple repetition/known-value rejection. Salted scrypt uses `N=32768,r=8,p=3`, 64 derived bytes, a random salt and constant-time comparison. At most four scrypt jobs execute concurrently. No MFA, SSO, breach-password feed, password email, or password expiry policy is implemented. - Join/reset links have 32-byte random tokens and 24-hour expiry; raw tokens are returned at issuance, while hashes are stored. Invite list does not recover the raw link. Join acceptance requires fictional-data consent. Administrator bootstrap is local CLI only, and closes once any account exists. - Rate windows persist in SQLite: login IP 50/10 minutes, login alias 10/10 minutes, accept IP 30/10 minutes, invite-info IP 60/10 minutes, authenticated user API 300/minute, API backup 3/hour. IP identity is the direct socket peer; proxy users share it. No Retry-After or distributed anti-abuse service is promised. Common response headers include CSP restricting code/resources to self, no-store, nosniff, frame denial, no-referrer, and a request ID; HTTPS configuration adds HSTS. These controls do not establish independent security certification. ## Endpoint Inventory `C` means cookie session; every `C` POST also requires CSRF. `M` means assigned case member or administrator for reads; case controls are administrator only. `A` means administrator. HTTP responses are JSON. Paths below are the actual routes, with no version prefix. | Method and path | Access | Input / successful result | | --- | --- | --- | | `GET /api/health` | Public transport checks | `200 {status:"ok",simulation:true,instanceId}`; instance matching only, no case-integrity scan | | `POST /api/auth/login` | Public | `{alias,password}` -> `200 {user,csrf,expiresAt}` and cookie | | `POST /api/auth/invite` | Public, secret token | `{token}` -> `200 {alias,role,kind,orgAlias,expiresAt}` | | `POST /api/auth/accept` | Public, secret token | `{token,password,consent:true}` -> login-shaped 200 and cookie | | `GET /api/auth/session` | Public/optional C | `200 {user,csrf,profile,globalPaused,serverTime}` | | `POST /api/auth/logout` | C | `{}` -> `200 {ok:true}` and cleared cookie | | `POST /api/auth/password` | C | `{currentPassword,newPassword}` -> `200 {user,csrf}` and rotated cookie | | `GET /api/profile` | C | Own profile (nullable at service level) | | `POST /api/profile` | C | Full profile input below -> updated profile | | `GET /api/templates` | C | `200 {templates:[...]}` | | `GET /api/catalog` | C | `{simulation,version,offers}` only; no company array, seller/buyer IDs or issuer identity | | `GET /api/catalog/offers/{offerId}/example` | C | Limited generated factsheet; seller commercial profile for buyer/admin only, `buyer:null` for all; four public artifacts | | `GET /api/admin/fixtures` | A | Minimal internal fictional selector `{companies:[{id,name,role,country}]}`; not participant browsing | | `GET /api/cases` | C | Visible summaries, `globalPaused`, `serverTime` | | `POST /api/cases` | A | `{title,template,members:{holder,buyer,compliance,rails,auditor},offerId?}` (account IDs) -> 201 filtered projection; optional catalog context resolved on server | | `GET /api/cases/{caseId}` | M | 200 case projection | | `POST /api/cases/{caseId}/commands` | Assigned non-admin C | Command envelope -> 200 projection, optional `replayed:true` | | `POST /api/cases/{caseId}/control` | A | `{paused?,archived?,reason}` -> 200 projection; no command revision increment | | `GET /api/cases/{caseId}/audit` | M | 200 `{simulation,caseId,integrity,events}`; participant view filtered/redacted, not a verifiable full chain | | `GET /api/cases/{caseId}/export` | M | 200 simulated report; records security export event | | `GET /api/notifications` | C | Own last 100 notifications, newest first | | `POST /api/notifications/{id}/read` | Owner C | `{}` -> 200 `{ok:true}`; other user's ID returns 404 | | `GET /api/admin/users` | A | Internal account-management fields plus `profileComplete`; never password hashes; unavailable to participant roles | | `POST /api/admin/users/{id}/control` | A | `{active:boolean}` -> public user; cannot target self/admin | | `POST /api/admin/users/{id}/reset` | A | `{}` -> 201 private reset invitation/link; active non-admin only | | `GET /api/admin/invites` | A | Invitation metadata, no raw tokens | | `POST /api/admin/invites` | A | `{alias,role,orgAlias}` -> 201 private invitation/link; participant roles only | | `POST /api/admin/invites/{id}/revoke` | A | `{}` -> 200 `{ok:true}` | | `POST /api/admin/control` | A | `{paused:boolean,reason}` -> `200 {paused}` | | `GET /api/admin/metrics` | A | Simulated counts/illustrative volume; `realRevenueCents:0` | | `GET /api/admin/security` | A | Last 200 security events, newest first | | `POST /api/admin/backup` | A | `{}` -> 201 `{name,bytes,sha256}`; private file remains server-side | Profile update input: `country` in `AE,SG,US,BR,HK,GB`; boolean `qualified`, `shareReferences`; `categories` (up to four, from `Real estate`, `Private credit`, `Treasury`, `Commodities`); `history`/`referrals` (strings, at most 1,200 characters each); `preferences:{inApp,email,push}` (booleans); `consent:true`; `expectedVersion` equal to the stored profile version. All these fields are required by successful validation. The result sets `completed:true`, increments version and includes `updatedAt` and `consentVersion:"fictional-data-v1"`. Profile qualifications/categories do not automatically create a case mandate or compliance review. Notifications are persisted for other members after case creation and successful non-feedback commands when their `inApp` preference is true. Reads are owner-scoped. **Email and push are stored preferences only; no email/push messages are sent.** Controls do not promise notification generation. There is no queue delivery/read receipt or out-of-app messaging service. There is no global company-profile endpoint. The offline `DEMO_DATA` files are internal fictional developer fixtures, not a static participant directory. Source-package recipients can inspect those files; do not distribute real registration data there. See [catalog scope](CATALOG.md) for the separate four-artifact public projection. ## Command Envelope and Workflow ```json { "action": "offer", "payload": {"quantity":"250","price":"105","agent":false,"thirdParty":"","acknowledged":true}, "expectedRevision": 0, "expectedDealVersion": null, "idempotencyKey": "unique-command-key-001" } ``` Read the latest case first. `expectedRevision` is `state.revision`; `expectedDealVersion` is `state.core.requests[0]?.version ?? null`. Supply **null**, not an omitted property, before a request exists. Proposal version is a separate value read from `request.proposal.version`. Every successful command, including mandate/message/feedback, increments the case revision; only underlying deal actions advance the request version. Offer internally creates and submits a request, so the first visible request is in `review`. The key is 12-90 characters from `[a-zA-Z0-9_-]`, scoped to the case. Replaying the **identical envelope** by the same account returns the current projection with `replayed:true` and does not reapply the command, even when the case is now paused/archived (identity, access and profile checks still apply). A changed body or different account using the same key conflicts. A fresh key with stale expected versions also conflicts. There is no forced overwrite. Commands require a completed own profile, matching fixed-role membership, all five members active, and no global/case pause or archive. Decimal quantities/money are **strings**, not JSON floating point; quantity allows six decimal places, money two, no exponent, sign, comma, or whitespace. `thirdParty:""` means unknown cost for an offer; zero is `"0"`. Output quantities are integer unit strings and economics are integer USD cents. The fee illustration is seller-paid 1.2% GlemO plus optional 1% agent, with known third-party cost if supplied; taxes/unknown costs remain unknown. No fees are invoiced or collected. Every explicit simulation reference passed through the shared kernel must match `^DEMO-[A-Z0-9-]{1,100}$` where a reference is required. Read destination/network/token/source-account values back from the case; do not substitute real accounts. The payload allowlist is exact: | Action | Role(s) | Allowed payload fields and important gates | | --- | --- | --- | | `offer` | holder | `quantity,price,agent,thirdParty,acknowledged`; no existing request; consent true; eligible available synthetic position. Creates/submits 30-day request. | | `mandate` | buyer | `country,qualified,min,max`; country `AE,SG,US,BR`; no buyer yet bound; min <= max and max > 0. Clears prior buyer review. | | `verify` | compliance | `ownership,transfer,issuer,jurisdiction,unencumbered,gateway,documents,buyerReview,reference`; all eight booleans true; eligible qualified mandate matching template. Valid for 24 hours. | | `publish` | holder | Empty object; approved and fresh review -> listed | | `propose` | buyer, then holder | `price`; listed/negotiating, fresh reviews, within mandate ticket. Buyer first binds request; holder can counter only after buyer binding. Each proposal resets acceptances and acknowledgement state. | | `accept` | holder/buyer | `proposalVersion,acknowledged`; correct current live quote and consent; opposite party accepts -> agreement | | `instructions` | rails | `destination,beneficiary,controlRef,gatewayRef,reference`; all DEMO references; agreement and fresh checks. Replacing instructions resets both acknowledgements. | | `sign` | holder/buyer | `proposalVersion,acknowledged,reference`; agreement, instructions and fresh checks. Records simulated acknowledgement of current instructions, not legal e-signing. | | `begin` | rails | `reference`; agreement, both acknowledgements and fresh checks; freezes instructions/economics -> settlement | | `cash` | rails | `reference,amount,beneficiary,currency`; settlement, no issue or previous cash; exact principal, beneficiary and `USD`; unique evidence reference | | `delivery` | rails | `reference,quantity,network,tokenRef,destination,sourceAccount`; settlement, no issue or previous delivery; exact frozen values; unique evidence reference | | `reconcile` | auditor | `reference`; settlement, no issue, both evidence legs/acknowledgements; distinct actor from execution; unique reference. Adjusts synthetic holdings and records proportional cost illustration -> reconciled. | | `cancel` | holder | `reason`; before agreement; nonempty reason <= 1,000 chars -> cancelled | | `reject` | compliance | `reason`; review/approved/listed/negotiating; reason <= 1,000 chars -> rejected | | `expire` | compliance | Empty object; before agreement and request expiry reached -> expired; no background expiry job | | `issue` | assigned participant | `reason`; nonterminal request, no current issue; holder/buyer must satisfy party binding; reason <= 1,000 chars | | `resolve` | compliance/auditor | `reason,reference`; issue exists; resolver account must differ from issue creator; reason <= 1,000 chars | | `closeAgreement` | compliance | `reference,holderReleaseRef,buyerReleaseRef,providerClosureRef,reason,noMovement`; agreement, no issue, `noMovement:true`, DEMO references, reason <= 1,000 chars -> cancelled | | `message` | holder/buyer | `body`; nonempty <= 1,200 chars; listed/negotiating/agreement/settlement; buyer must be eligible | | `feedback` | any assigned participant | `score,body`; integer 1-5, string <= 1,200 chars; no deal-stage requirement; append-only submissions, role-filtered projection | Normal states are `review -> approved -> listed -> negotiating -> agreement -> settlement -> reconciled`. The domain also defines `draft` (internal during offer), `cancelled`, `rejected`, `expired`. `issue` is a blocking overlay, not a replacement status. Resolving it does not itself perform settlement or reconciliation. Cancellation after agreement uses only the restricted no-movement closure; there is no settlement reversal, refund, unwind, evidence-edit, or corrective ledger API. ## Reports, Audit and Error Semantics Projection shape: `{meta,state,participants,globalPaused,serverTime}`. Summaries include template metadata, case revision, flags, status, issue indicator and principal. Reports add `format:"glemo.shared-pilot-report/1"`, generation time, `simulation:true`, explicit evidence scope, `feeCollectionStatus:"NOT_INVOICED_NOT_COLLECTED_SIMULATION"`, and case audit. Context, counterpart, feedback and reference filters also apply to exports and nested snapshots, including idempotent command responses. They are filtered process views, not full database dumps, signed contracts or payment receipts. Stored case audit has per-case sequence, state hash, previous hash and SHA-256 event hash. Read/projection verifies snapshot hash, domain validity, revision/event linkage and audit chain against the final stored snapshot before filtering the response. Privacy changes do not rewrite stored snapshots, hashes or append-only records. SQLite triggers reject updates/deletes on case/security audit tables. Administrative controls add audit entries without advancing workflow revision. A participant audit/export may omit feedback and replace other actors' IDs; its hashes do not make the redacted view a reconstructable full chain. Full internal verification requires the administrator audit record. Security events have no independent hash chain or external anchor; disk administrators can replace the database or drop triggers. Neither chain nor export is independently certified or tamper-proof. Errors use `{error:{code,requestId}}`, with `X-Request-ID` also set. Common outcomes: 400 malformed JSON; 401 credentials/session; 403 role, Origin, HTTPS, CSRF; 404 missing/inaccessible case or invalid invite; 409 version/key/quote/alias/bootstrap conflict; 413 body size; 415 content type; 422 semantic or transition validation; 423 pause/archive/inactive member; 429 rate limit; 503 state/audit corruption. Unknown failures are 500 `serverError`. A 200 health response is only a liveness signal. Exact failures depend on validation order; do not infer resource existence from a denied request. ## Primary References Runtime behavior above comes from source, not a claim of standards compliance. Review runtime evolution in the [official Node.js 24 SQLite documentation](https://nodejs.org/docs/latest-v24.x/api/sqlite.html); its published stability may differ from the pilot's runtime treatment. Security design review references: [OWASP session management](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html) and [OWASP password storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html). These references are not a security assessment of this application.