Skip to content

project trade

Aisjam edited this page Nov 15, 2026 · 1 revision

Direct Trade

Home · Section index

Working manual · 0.0.1-alpha · source snapshot 16 November 2026

Connection now has separate BROADCAST and TRADE actions. Both devices enter TRADE, then independently press A on the verified peer invitation. This does not approve files. Initial OS Bluetooth pairing is still required on Linux. Windows uses the existing LAN path. Bluetooth transport roles and Wi-Fi restoration are unchanged.

Controls

  • Up/Down selects files or offer entries; A opens folders or adds a file.
  • B returns to the parent directory; B at the browser root cancels the trade.
  • Y switches between the local Assets library and content root.
  • L1/R1 switches browser/offer focus; A on a local offered entry removes its bundle.
  • Right opens review; Left returns to the same browser folder and selection.
  • In review, L1/R1 chooses your/their offer; Y shows filename, size, dependencies, source-creator metadata in the DataTree dialog skin. B closes details. SHA-256 remains part of transfer verification but is not displayed.
  • Scroll to CONFIRM below your offered files and press A to approve the exact displayed manifest. The toolkit button turns Pulse while approved; changing either offer resets it. A on CONFIRMED retracts approval. The browser-side REVIEW button first opens both offers. Start during preparation withdraws before the coordinator sends its commit decision. B cancels or interrupts; it never undoes already verified delivery.
  • Transfer progress returns to CONT. B returns to Connection after completion.

The transition lasts 220 ms, clips its panels, and rounds positions to pixels. Trade uses the normal tile font and toolkit titles/buttons throughout. The peer invitation centres the complete native-size avatar without history-panel captions. Invitation and Y Info share the supplied DataTreeView nine-slice artwork; its semantic bake matches the existing runtime skin exactly. Their offer is aligned right and uses Signal; dividers are three pixels wide. Each offer shows its total transfer bytes (all manifest files, including dependencies), not estimated RAM use. Totals and labels are refreshed only when manifests change. The main input router gives Connection ownership of Start rather than playback. Local focus, cursor, scrolling and animation are never transmitted.

Assets and storage

Selection enumerates locally using AssetBrowser. Dependency discovery and hashing run on the worker. CTP/CTI/CTS sample references and linked CTG banks use the existing bundle resolver. Private System/Identities paths are rejected. Peers see only offered metadata, never absolute source paths or directory access.

Before commitment, sources are rehashed and copied to private System/Trade/<session>/<bundle>/<path> staging, then rehashed again. Project creative-content evidence is calculated from these detached bytes and their staged dependencies. Changed/missing sources abort preparation and require a new offer. Worker-created staged files are removed on teardown; commit journals and verified-file receipts remain. No recursive deletion of content roots is used.

Files finalize to the existing Received hierarchy and receipt catalogue. Source files are unchanged. No received file is opened, imported, executed, advertised or placed in Send automatically. Received assets retain creator and distribution metadata. Third-party redistribution requires its existing permission and a positive hop count; the forwarded hop count decreases. Third-party CTPs outside verified Received metadata are rejected rather than silently attributed locally. Other untracked local assets use the existing publication attribution convention; metadata is not independent proof of authorship.

Direct-trade history

NetworkIdentity::signTrade can sign only that identity's direct-trade offer or receipt assertions; it cannot sign publications or arbitrary bytes. A current file-offer proof accompanies FileEnd. It contains the session, agreed manifest, byte hash, revision, source-creator metadata and work/content identifiers. Only this new offer proof is sent: pre-existing local history is not exported. Delivery receipts currently remain local; peer receipt synchronization is not enabled.

After SHA-256 verification, the receiver validates the signed offer and records its own matching signed receipt through EventStore. Project receipts wait for all required dependencies and independently recompute Creative.Project.v1 before acceptance. A stale portable publication reference is not treated as a verified current publication. Generic files have transfer-only history without invented publication events. Duplicate/replayed receipts are idempotent per session/file. The normal FileHistoryManager and narrative renderer show these events.

Event mechanism 8 appends DirectTrade. Only direct-trade events use canonical Contour.Provenance.Event.v2, appending five 32-byte fields after the existing fields: session ID, manifest digest, file digest, file revision and source creator. Legacy Event.v1 encodings and signatures remain byte-identical. Old readers reject these new events; they must not guess a fallback. CTP/CTL, CTID, CTBM and the frozen Creative.Project.v1 encoding are unchanged. Receipt/offer graph checks include all five new fields. Ledger updates share the existing publication lock.

What should be here

Documentation still to add
Annotated current-build screenshots and a recorded controller walkthrough for this topic.

Evidence and verification

Repository sources used for this page:

  • docs/trading.md

This is a documentation/source review, not a new runtime or hardware test. Physical response, screenshots and listening examples still need verification on a recorded build.

Clone this wiki locally