Repository navigation
project history
Working manual · 0.0.1-alpha · source snapshot 16 November 2026
core/provenance/FileHistoryManager is the local, read-only entry point for
structured history snapshots. It borrows the existing validated EventStore;
it does not create a second store or change CTP, CTID or network schemas.
Call inspect(work, destination) on the store-owning worker. It copies all known
events for the requested Work ID plus their explicit event-parent closure.
Known parents precede children, with Event ID ordering as the deterministic
ready-node tie breaker. Signed timestamps remain assertions, never chronology
or a rule for choosing the creator. Results do not depend on ingestion order.
Entries retain the immutable assertion, Event ID, contributor roles and optional attestation states. An absent attestation means pending, including for the signer of the event. Confirmed, declined and disputed states remain distinct. Public profile names are not resolved yet; stable identity IDs remain available.
Transfer evidence distinguishes an offer alone, a receipt with an absent offer, and matching signed offer/receipt assertions. The matching receipt IDs are inspectable on an offer. None of these statuses independently proves physical delivery. External imports retain their category and zero sender/recipient; no synthetic transfer is added.
The snapshot includes root publications, revisions, direct parent works and direct derivatives for navigation. Ancestor entries are marked as belonging to another work. Following a parent event does not import that parent's unrelated contact history. Direct derivative identifiers do not automatically expand those derivatives' events. Follow-up queries can inspect each work deliberately.
Missing event IDs, works lacking known publication roots, and works with
competing roots are separate lists. incomplete means missing referenced evidence
or a missing publication; it is independent of conflicts. A nonzero unknown work
returns an empty, incomplete snapshot. A zero Work ID fails without changing the
output. Having no known holes does not claim knowledge of every real-world event.
EventStore remains responsible for signature checks, ingestion, persistence, deduplication and graph validation. This API reads only accepted evidence; it does not repair ingestion conflicts or quarantine untrusted claims. The caller must serialise store access. Queries allocate bounded snapshots outside audio and should run on selection/refresh, not every rendered frame. Traversal is iterative and bounded by the existing 4096 events and 16 parents per event. Attestation lookup now uses the existing ordered map's event-key range rather than scanning the whole store for each entry.
This is local inspection, not a peer-export API. It includes local-only evidence; networking must continue to use EventStore's explicit sharing filter. Inspection never signs events, changes evidence, publishes files or records listening.
The planned 640x480 Story view reserves a 192-pixel-wide pane for the selected participant's public avatar, name, identity abbreviation, role and credit status. The story list occupies the left side. Contributor inspection will select one participant at a time, so all credits remain accessible without shrinking their art into unreadable thumbnails.
render/HistoryIdentityPanel implements this reusable pane. It verifies the CTID
signature and selected identity before copying artwork into the existing shared
GlyphRenderer. It uses the avatar's authored theme only inside the artwork area;
labels use the application theme. Native 8px and 12px glyphs produce centered
128x128 or 192x192 compositions with no fractional resizing. The shared compositor
retains its normal layer and shadow behavior.
Prepare runs only on selection/profile changes on the render thread. Draw does no file IO, verification or texture creation. Only one selected avatar is resident. Invalid or mismatched profiles clear the previous artwork, preventing another participant's avatar from appearing under a new identity. Missing profiles have an explicit AVATAR UNAVAILABLE state. A verified profile does not confirm a contributor credit; pending/confirmed/declined/disputed labels remain separate. No private bio or location is displayed. Renderer ownership and caller clipping are preserved.
The pane is currently exercised by the creator_identity_ui test and included in the desktop build; the full Story/Related Works screen is not yet connected. The test writes build/identity-ui-tests/history-avatar.png as a deterministic rendering fixture, not a screenshot of a completed history browser.
scene/overlays/HistoryOverlay now owns a prepared local snapshot and renders
story text alongside the selected participant's native-size avatar. Up/Down selects
events, Left/Right scrolls long stories, L1/R1 cycles actor, recipient and all
contributors, and B closes. Profiles are signature-checked on open; absent or
invalid profiles use neutral identity labels and unavailable artwork. Credits
retain their separate pending/confirmed/declined/disputed status. Empty, incomplete
and conflicting histories have explicit labels. Text and textures are prepared
on selection, outside drawing and audio.
This is a tested overlay component, not yet a reachable application menu. The
application ledger/profile service, Related Works navigation, verified START
preview and A-load remain to be connected. The deterministic UI fixture is
build/identity-ui-tests/history-story.png.
Project rows now begin NAME, COVER, HISTORY. A on HISTORY opens the Story modal; B returns to HISTORY. AUTHOR is removed from this scene without changing or removing saved author metadata. COVER retains its existing LOAD/NEW placeholders.
Opening a published project reads System/Provenance/events.bin on one worker. The worker uses FileHistoryManager and reads the current public identity plus matching Identities/.ctid files. Signatures and identity IDs are checked; missing/invalid profiles remain unavailable. Profile loading is capped at 64 profiles and 16 MiB of encoded cached data, with a 1 MiB individual read limit. Closing invalidates pending results. No working project or audio state is changed. Unpublished projects and unreadable ledgers show explicit messages.
The application entry point is connected. Related Works navigation and verified historical START preview/A-load are still pending; the normal LOAD browser preview remains separate. Snapshot checks: --project --snapshot <file.bmp> and --project-history --snapshot <file.bmp> (the latter shows the unpublished state).
ContourHistoryDemo is an explicit, excluded-from-default-build developer tool.
It reuses NftGenerator, identity sealing, ProjectSerializer, creative hashing,
EventStore and SDLNetTransport. Run it with the Asset directory and a new output
directory; existing output is rejected. It generates nine ephemeral test identities,
twenty CTPs, public-profile copies, nine peer libraries, a combined Library,
a tab-separated manifest and twenty rendered history previews. No private keys
are written. CTP transfers use real localhost TCP with decoded content verification
before signed receipts. This exercises the raw transport and signed test evidence,
not encrypted Broadcast sessions or physical Wi-Fi.
The 24 October 2026 run at Demo/History-NFT-20261024 produced 80 verified project transfers and 187 signed events. All nine stores reconciled; all twenty saved work histories were complete and conflict-free. The main Contour app also loaded the combined library and rendered its history/avatar through --resume-snapshot and --project-history. Open Demo.cmd launches its isolated content root. From Song, Select+Up enters Project; A on HISTORY opens the selected project's evidence.
The Story overlay is one chronological chat timeline with three visible entries, 64px participant faces and normal Contour text. Up/Down selects and scrolls events directly; L1/R1 pages three events. There is no gallery/story mode toggle. Oldest recorded events appear first and the newest are at the bottom. The user's identity appears only where supported by recorded participation; opening a file does not invent a receipt or append an unsigned history event.
Left/Right selects participants within the highlighted event, exposing additional pairs of faces for larger collaborations. A opens that person's existing CTID card; B returns to the same event, face and scroll position. B from History returns to Project. Missing profiles cannot open a card. The selected face's credit status stays visible beneath the timeline. Alignment remains decorative; each entry retains its real actor, contributor evidence and original Event ID.
The display stably sorts by recorded event timestamp, oldest first, preserving accepted graph order for equal timestamps. These are signed clock assertions, not verified real-world chronology; the FileHistoryManager snapshot, parent links, Work IDs and version distinctions are unchanged. Conflicts and missing history remain explicit. Unsupported activities (plays, opens, Bluetooth handshakes) are not invented from other events.
FileHistoryRenderer adds a separate chatText alongside its detailed narrative. Four short variants per supported kind use the existing deterministic selector. Offers say offered/proposed; receipts remain signed receiving assertions, and missing offers remain explicit. Display strings are not serialized evidence.
The shared GlyphRenderer composites each verified avatar at native 128/192px, then reduces it uniformly to a cached 64px nearest-neighbour texture (integer factor 2/3). Artwork is not stretched or cropped. Semantic artwork roles use the current application theme; participant accents deterministically choose one of Core/Signal/Pulse/Flash/Tone from the creator ID. Native IdentityCard retains its existing authored palette. Gallery/story drawing performs no IO, signature work, texture creation or string formatting. Cards are prepared on A, not in draw. Normal project LOAD preview and load actions are unchanged; historical audition and Related Works navigation remain pending.
History uses the normal TileFont for labels, chat and controls. Longer text wraps within its panel using string views, without allocating during rendering.
| Documentation still to add |
|---|
| Annotated current-build screenshots and a recorded controller walkthrough for this topic. |
Repository sources used for this page:
docs/file-history.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.