# Contextual Access Policy Release target: **0.6.7**. This is the technical disclosure contract, not an external security certification or deployment approval. See [the seller-history addendum](SELLER_HISTORY_en.html), [the inherited readiness addendum](READINESS_en.html), [the experience addendum](EXPERIENCE_en.html), [the implementation contract](IMPLEMENTATION_CONTRACT.md), [OpenAPI](OPENAPI.json) and [known limits](KNOWN_LIMITS.md). Seller-history disclosure requirements: [English](SELLER_HISTORY_en.html) / [Portuguese](SELLER_HISTORY_pt.html). The rules below distinguish seller basics from self-declared history/referrals; publication alone never unlocks the latter. The addendum defines requirements, not completed implementation or test evidence. For disclosure only, these requirements supersede broader seller-history wording in the historical/versioned [READINESS English](READINESS_en.html) and [Portuguese](READINESS_pt.html) addenda. Those documents, their versions/counts and their evidence remain preserved; unrelated readiness requirements retain their existing scope. ## Participant Offers Added in 0.6.0 Marketplace listing publication is administrator curation, not buyer legal approval. A buyer may read seller basics in a published participant factsheet, but no seller history/referrals until that authenticated buyer has a successfully recorded nonbinding marketplace request for that exact offer. The seller's current `shareReferences=true` is also required. A visit, bookmark, search, failed request or request on another offer, even from the same seller, is insufficient. The owner/admin may read their own/authorized internal record; an unrelated seller or support-role account gains no profile access. The recorded buyer/offer request remains a contextual reference gate even after the request is declined or withdrawn. This permits only otherwise authorized contextual record access. It does not reopen a withdrawn listing, undo a decline, permit continued messaging or trading, create a case, grant a seller role or authorize settlement. Existing visibility, ownership and workflow checks still apply separately. A successful nonbinding request also retains the existing limited projection of its requesting buyer for the seller/internal administrator; buyer reference opt-in remains independent. Public seller/reference projections omit dedicated contact, private registration/negotiation and preference fields; no global company directory is created. Free text remains subject to the fictional-only input policy, not automatic sensitive-content detection or redaction. Only the owner seller opens a linked five-role case. This does not create any buyer-authored mandate, seller signature, compliance approval or settlement action. The buyer submits its own mandate explicitly. An unrelated account cannot read the linked case, request or messages. Existing legacy assigned cases retain their successful-K-proposal disclosure gate described below. Reconciled positions and resale-review requests belong to their buyer. The administrator can inspect resale-review requests internally, not execute a sale. A resale review is nonbinding and does not alter account roles or publish an offer. Restore validates ownership, hashes, case links and source allocation before replacement. 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. A published participant-offer factsheet permits a buyer's limited seller basics; seller history/referrals additionally require that buyer's successful request on that offer and current seller opt-in. The request permits the seller's existing limited view of its requesting buyer. A legacy directly assigned case uses its separate successful-buyer-proposal gate for counterpart references. A generated catalogue sample exposes seller basics only where permitted, never seller history/referrals or its sample buyer. It cannot unlock references on a participant offer or another case. ## 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` | Seller basics only; no history/referrals; sample buyer is always `null` | No other company's commercial profile; sample buyer is always `null` | Sample factsheet still has seller basics only; separate authorized internal reads retain their scope | | Published participant-offer factsheet, before this buyer's successful request on this offer | Seller basics only; no history/referrals even with opt-in | Own/internal scope only; no unrelated seller profile | Authorized internal offer administration | | Recorded successful participant-offer request, including later declined/withdrawn requests | Own contextual record; seller history/referrals only with current seller opt-in | Limited profile of that requesting buyer; buyer references require current buyer opt-in | Authorized internal request administration | | Legacy 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 | | Legacy assigned case after publication, before this case's successful buyer proposal | Seller basics in this case only; seller history/referrals withheld | Buyer commercial profile withheld | Authorized internal case administration | | Legacy assigned case after this case's successful buyer proposal | Contextual seller references require current seller opt-in | Limited commercial profile of that buyer only; buyer references require current buyer opt-in | Authorized internal case administration | | Individual rehearsal | Selected synthetic buyer sees no seller history before an actual successful buyer `propose` in that rehearsal | Selected synthetic holder sees no synthetic buyer before its successful proposal | Actual account administration does not override the selected synthetic role or owner-only session access | | Own profile | Own data through `/api/profile` | Own data through `/api/profile` | Own data through `/api/profile` | Assigned compliance, rails and auditor retain seller basics in their authorized operational case reads, but never detailed seller history/referrals in case reads or exports, including nested participant profiles and seller snapshots. This denial applies before and after a successful buyer `propose`, even with seller sharing enabled. Operational assignment does not inherit the buyer's contextual reference gate. For detailed seller references, only the seller's own holder account and an authorized internal administrator are exempt from the buyer gate; the buyer must satisfy the applicable buyer/offer or buyer/case gate and current seller opt-in. Operational roles 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 and continue to apply the selected synthetic role. ## 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 a buyer's view of seller basics, require an authorized participant factsheet or published offer in the assigned case. For participant seller history/referrals, require a successfully recorded marketplace request by this authenticated buyer for this exact offer, plus current seller reference opt-in. Declined/withdrawn requests retain only their contextual record gate; this never bypasses an offer's visibility or a workflow transition. Do not add seller identities or references to catalogue cards, filters or search results through a hidden preload. 4. For a participant-offer request, require an actual successful request bound to that seller's offer before seller-to-buyer disclosure. For a legacy directly assigned case, 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 request/proposal or a generated example alone is not sufficient. Never use either path to create a directory. 5. For references supplied by participant accounts, only after the applicable contextual gate passes may the counterpart's current `shareReferences=true` expose self-declared history/referrals. In a legacy shared case, buyer access to seller references requires that case's actual successful buyer `propose`; assignment, publication, mandate, documents and failed proposals are insufficient. In an individual rehearsal, apply the selected synthetic role and require the actual successful buyer `propose` in that rehearsal before revealing synthetic seller history; starting, restoring documents or submitting a mandate does not qualify. Catalogue samples remain basics-only. Opt-in never creates browsing permission. With opt-in off, fresh counterpart responses and exports omit references or return `null`; owners and authorized 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. 7. Resolve the gate from authenticated server records, never from a client-provided role, buyer ID or disclosure flag. Another buyer, another offer from the same seller, an unrelated owner or another case cannot inherit the gate. Re-evaluate current opt-in on every response. This controls current projections and newly generated exports; it cannot recall prior downloads/screenshots or erase canonical stored evidence. 8. In case projections and exports, allow detailed seller references only for the seller's own holder account, an authorized internal admin or the correctly gated buyer. Assigned `compliance`, `rails` and `auditor` may retain seller basics but must never receive detailed seller history/referrals, including nested profiles/snapshots, even after a successful buyer proposal and with seller opt-in enabled. A role's operational read permission is not a detailed-reference exemption. ## Allowed Commercial Data Use explicit response allowlists rather than serializing registration rows. Seller basics may contain the display organization/name, role, declared country/city, asset categories and permitted commercial description. History/referrals are a separate, gated projection; they must not be embedded in basics, descriptions, illustrative history arrays or hidden UI data as a bypass. Catalogue sample factsheets never expose seller history/referrals, even if broader fictional fixture histories exist internally. Pilot policy and user acknowledgement require fictional-only, DEMO self-declared history/referrals, without real/sensitive data or private third-party identities/contact details. This is a content rule, not a technical validation guarantee: `saveProfile` accepts arbitrary bounded free-text strings, does not require a `DEMO` prefix and does not automatically classify or redact personal data or private terms. Authors must not enter such content; response allowlists cannot guarantee that permitted free text contains none of it. The simulated case journal records actions in one simulated workflow, separately from author-supplied history/referrals. Neither source establishes verified reputation, a real business record, independently checked referrals or actual completed transactions. Neither may be republished as a counterparty-history graph. Response allowlists must omit the counterpart's login alias, credentials/password hashes, session/invitation/reset tokens, full registration, KYC material, dedicated private preference/contact fields, account activation/completion flags and internal account-management data. This does not assert automatic detection/redaction of those subjects inside arbitrary free text. This pilot performs no real KYC and policy prohibits collecting 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 role-filtered seller basics or `null`, never seller history/referrals, **`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 seller basics versus references before/after a successful request, declined/withdrawn recorded requests, current seller opt-in on/off, another buyer, another offer from the same seller, legacy case proposals, catalogue samples, replay, reload and role changes inside separate personal sessions. For each assigned compliance/rails/auditor account, verify seller basics remain readable while detailed seller history/referrals remain absent in case reads, nested data and exports before and after a successful buyer proposal, including with sharing on. Compare the seller's own holder, authorized admin and correctly gated buyer separately. The [seller-history addendum](SELLER_HISTORY_en.html) supplies acceptance cases without asserting they have passed. Old tests that assert a visible 40-company directory or ten public artifacts describe the rejected behavior and must not be treated as acceptance criteria. Use only matching-version recorded checks in QA_RESULTS.json for current claims; earlier results are historical. 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.