# Contextual Access Policy Release target: **0.5.3**. This is the technical disclosure contract, not a security certification, deployment approval or claim of completed testing. Implementation and matching-version QA evidence must agree before delivery. See [the implementation contract](IMPLEMENTATION_CONTRACT.md), [OpenAPI](OPENAPI.json) and [known limits](KNOWN_LIMITS.md). Favorites and saved searches are private to their authenticated owner, with no administrator override. Comparison selection exists only in page memory and clears on logout/reload. Private sourcing requests retain their separate owner-and-administrator policy. No discovery tool exposes a participant directory or creates a trade. See [Discovery Microtools](DISCOVERY_TOOLS.md). ## Non-Negotiable Product Boundary There is **no participant-facing company directory**, searchable registry, global commercial profile page or counterparty-history graph. Knowing a company, offer, account or case identifier is not an authorization grant. Hiding a menu item is insufficient: the server must filter every response before sending it to the browser. The catalog is a collection of fictional offers, not a list of buyers or sellers. Commercial identity is disclosed only for a specific permitted purpose. The buyer sees the seller in the offer factsheet context. The seller sees a buyer only after that buyer has submitted a successful proposal in their assigned case. A fictional buyer attached to a generated catalog example is not a received proposal and must never be disclosed by that example. ## Disclosure Matrix | Context | Buyer | Holder / seller | Administrator | | --- | --- | --- | --- | | `GET /api/catalog` | Offers only; no company IDs or profiles | Same | Same; internal fixture access is a separate endpoint | | `GET /api/catalog/offers/{offerId}/example` | Limited seller commercial profile; sample buyer is always `null` | No other company's commercial profile; sample buyer is always `null` | Limited seller commercial profile; sample buyer is always `null` | | Assigned case before publication | Own registration only; no seller counterpart profile yet | Own registration only; no buyer counterpart profile | Internal case administration, not participant browsing | | Assigned case after publication, before a successful buyer proposal | Limited seller profile in the case's offer context | Buyer commercial profile withheld | Internal case administration | | Assigned case after that buyer's successful proposal | Limited seller profile in this deal | Limited commercial profile of that buyer only | Internal case administration | | Individual rehearsal | Apply the selected simulation role | Hide synthetic buyer until its successful proposal | Actual account administration does not override the chosen simulation role | | Own profile | Own data through `/api/profile` | Own data through `/api/profile` | Own data through `/api/profile` | Compliance, rails and auditor retain operational reads only for explicitly assigned cases. They are not granted a company directory or access to administrator fixture/user endpoints. Administrator access to users/invitations is an internal operational permission, not a directory for participants; personal rehearsals remain owner-only even against another administrator. ## Server Gates 1. Authenticate using the existing cookie/session rules. Apply exact Origin/CSRF rules for writes. Never accept a client-supplied role, actor, owner or organization as authority. 2. For a shared case, resolve membership or administrator authority before returning any projection. An inaccessible case returns `404`, the same as an absent case. 3. For buyer-to-seller disclosure, require the offer factsheet or a published offer in the assigned case. Do not add seller identities to catalog cards, filters or search results through a hidden preload. 4. For seller-to-buyer disclosure, require both the request's buyer binding and a successful buyer `propose` event in that case. Assignment, profile completion, mandate, simulated review, page visit, failed proposal or a generated example is not sufficient. 5. Only after the contextual gate passes may `shareReferences=true` expose self-declared history/referrals. Opt-in never creates browsing permission. With opt-in off, the counterpart's references remain absent or `null`; owners and internal administrators retain their existing own/internal access. 6. Apply the same rules to successful commands, idempotent replays, refreshes, nested catalog snapshots, notifications, audit views and JSON/HTML reports. Do not rely on frontend code to remove a field already returned by the API. ## Allowed Commercial Data Use explicit response allowlists rather than serializing registration rows. A contextual commercial profile may contain the display organization/name, buyer/seller role, declared country/city, asset categories, a commercial description and permitted self-declared references. Fictional catalog histories may show an activity category, country, amount and date as unverified examples; they must not link or identify other counterparties. Never expose the counterpart's login alias, credentials/password hashes, session/invitation/reset tokens, full registration, KYC material, private preferences, contact details, account activation/completion flags or internal account-management data. This pilot performs no real KYC and must not collect identity documents. Domain identifiers needed to process a simulated deal are not a general identity lookup capability. ## Catalog and Internal Fixtures `GET /api/catalog` returns `{simulation,version,offers}`. Offer summaries omit `sellerId`, `referenceBuyerId` and issuer identity; issuer information belongs to the factsheet. There is no `companies` array or company-profile endpoint. The generated factsheet returns a role-filtered seller or `null`, **`buyer:null` for every viewer**, a limited illustrative state and exactly four public artifact types: `factsheet`, `ownership`, `checklist`, `costs`. It does not send the ten-artifact internal dossier, a buyer mandate, private negotiation messages, settlement instructions, cash/delivery evidence or a complete buyer-bearing state. Public ownership rows omit external account/token references. The original issuer may be identified as asset information, not reclassified as the seller or a verified institution. `GET /api/admin/fixtures` is administrator-only and supplies only the fictional selection fields `id`, `name`, `role`, `country`. Non-admin requests must fail regardless of how the route is reached. `/api/admin/users` remains administrator-only and never returns password hashes. Neither endpoint is used to preload participant navigation. `DEMO_DATA` is an **offline internal development dataset** containing fictional companies, histories and fuller scenario artifacts. It is not the web application's participant API and must not be separately published as a directory. A recipient of the source ZIP can inspect its fictional fixtures; contextual API controls cannot make distributed source files secret. Do not place real counterpart data in that library or share the source package as if it were a restricted participant account. ## Projections, Storage and Audit Filter clones for delivery; do not rewrite the stored canonical case snapshot, its hash, domain history or append-only audit to hide fields. A successful read must not become a domain command. Existing security/rate-limit/session activity bookkeeping remains separate. Participant reports are **filtered views**, not full database dumps or independently verifiable copies of the entire stored hash chain. Audit projections may remove feedback and replace other actors' identifiers with role labels. Their remaining hashes do not prove that the redacted response reconstructs the original chain. The full administrator audit record is required for internal chain verification; even that record is not externally anchored or independently certified. Personal rehearsal journals are hashed snapshots, not the shared append-only audit. Keep the existing private runtime and accounts. Take a private backup before an upgrade; do not reset the database, recreate accounts or redefine passwords to apply disclosure changes. Restore is an explicit operator operation and may revoke sessions/unused invites as described in the runbook; it does not authorize destroying current data. Databases, backups, credentials and private exports must never enter a release archive. ## Discovery Query and Optional Microphone The homepage's natural-language purchase query is deterministic local matching over fictional offers, including supported assets, markets and ticket expressions in six languages. It must not expand profile visibility, submit a proposal, alter eligibility or be described as a live LLM, external research or financial advice. Voice recognition is optional browser Web Speech, initiated only by an explicit microphone click after a notice. Keep text entry available when permission is refused, recognition is unavailable or an error occurs. The microphone Permissions-Policy permits `self` for this opt-in capability; camera, payment and geolocation remain disabled. This policy permits a browser feature but does not replace the user's permission or authorize automatic recording. The application does not record/store audio. The browser's implementation may process audio through a **remote speech service**; disclose that possibility before starting. Do not promise fully local recognition, an application-controlled retention policy for browser-provider data or suitability for sensitive information. No real AI provider key/service is introduced. Mocked permission/availability states do not establish that actual provider recognition, microphones, native Safari or physical phones were tested. See [known limits](KNOWN_LIMITS.md) and [testing procedures](TESTING.md). ## Verification and Stop Conditions Required checks include the positive and negative cases above at the API and browser layers, six UI languages, both simulated roles and direct/guessed routes. Inspect serialized payloads and exports, not only visible text. Check before/after publication and proposal, opt-in on/off, another buyer/case, replay, reload and role changes inside separate personal sessions. Old tests that assert a visible 40-company directory or ten public artifacts describe the rejected behavior and must be replaced, not treated as acceptance criteria. Results for 0.4.1 or earlier are historical; only recorded checks against 0.5.1 support this revision. Stop the affected exercise on a profile leak, unexpected privilege change, real data entry or unexplained state mismatch. Do not erase stored evidence to conceal a defect. # Private Sourcing Requests (0.5.1) Asset search requests belong to their authenticated owner and may be read by the internal administrator. They are never exposed to counterparties, other buyers, sellers or operational accounts. No company directory is created. A holder may create its own request, but holder status does not grant access to buyer requests. See [Asset Sourcing](ASSET_SOURCING.md) for withdrawal, strict DTOs, quotas and recovery.