Integrator guide

This section is for developers adding PostProject to a host application, plugin, service, or pipeline tool.

The fastest successful integration is usually smaller than the whole PostProject feature set. Begin with durable identity and media resolution, prove that the host can reopen the same production objects, then add richer knowledge only when the application has a use for it.

Integration depths

An integration can stop at any depth that solves the host’s problem. Each depth builds on the one before it, and each already pays off on its own:

        flowchart TD
    d0["<b>Alongside the application</b><br/>CLI and pipeline scripts maintain the production;<br/>the application itself is unchanged"]
    d1["<b>1 · Identity</b><br/>open a production, import media, store references<br/>to assets and representations in the host document"]
    d2["<b>2 · Resolution</b><br/>media roots, relinking with explicit confirmation,<br/>verification, sequences, spans, and packages"]
    d3["<b>3 · Production knowledge</b><br/>external identifiers, metadata, provenance,<br/>dependencies, artifact staleness"]
    d4["<b>4 · Live coordination</b><br/>revision feed and observers, jobs and workers"]
    oaio["<b>OpenAssetIO host</b><br/>resolves and publishes through the<br/>PostProject Manager without calling PostProject"]
    d0 -- "references survive moves<br/>between applications" --> d1
    d1 -- "offline media found again,<br/>relinked once for all" --> d2
    d2 -- "trace media origins,<br/>tell what is current" --> d3
    d3 -- "react to other tools,<br/>hand off work" --> d4
    oaio -.-> d1
    oaio -.-> d2
    

The labels on the arrows name what the host gains by going one depth further. The steps below follow the same order.

Every guide shows every surface

Each task guide shows the operation in C, C++, Python, Rust, and the CLI. Choose a language with the tabs or with the Code selector in the sidebar; the choice applies to every example on the site. Where a surface deliberately lacks an operation, the tab says so and names the alternative.

The listings are extracts of example programs that CI compiles and runs against an installed package, so they cannot drift from the public interfaces. CI also checks that every public C function, C++ member function, and Python method appears in at least one of those programs. The complete quickstart programs are collected in Compiled and tested examples.

Integration rules that matter early

A few rules prevent most architectural mistakes:

  1. PostProject identity is internal production identity. Do not pretend a PostProject UUID is a UMID, EIDR, camera ID, or another external scheme.

  2. Preserve external identifiers exactly. Store their scheme and value rather than translating them into the internal identity space.

  3. Never silently choose an ambiguous relink candidate. Ambiguity is a meaningful result.

  4. Perform mutations in explicit transactions. A transaction groups one semantic production change and its revision history.

  5. Advance a revision cursor only after a complete revision has been processed. This keeps consumers restartable.

  6. Release owned C handles. Treat the ownership rules in the native API as part of the contract.

  7. Do not infer relationships that were not recorded. An activity connecting media does not automatically mean “revision,” “variant,” or “alternative.”

Separate semantic documentation from API lookup

Use the concept pages when deciding what an operation means. Use generated API reference when deciding how to call it.

For example:

This separation keeps the conceptual contract readable while allowing API reference to remain precise.

Rust is not required for downstream integration

PostProject is implemented in Rust, but an installed native consumer should not need Cargo or Rust tooling. The public native boundary is the C ABI, with C++ and Python layers built on top of it.

If you are changing PostProject itself rather than integrating it, use Contributor guide.