Skip to content

Quick Start: credential offers never define the schema URL from the saved GUID #292

Open

Description

@patextreme

User impact

A developer reaches issuance with only a saved schema GUID, then must supply an undefined [[schemaId]]. A bare GUID is not the dereferenceable schema reference required by the pinned Agent.

Affected documentation and ownership

  • Page: Quick Start Guide, GET 200 at 2026-10-28 20:48:50 UTC; affected source text is also deployed.
  • Editable owner: hyperledger-identus/docs, local hand-authored documentation/develop/quick-start.md at fa985dfa33caefa45bf1e9009e1f6f5a445344fb; not imported SDK content or generated API output.
  • Intended versions: page environment pins select Agent 2.0.0 (5865d9470dc5ce6631aec780e7cf63d4f454555a); SDK checkout selects v6.6.0 (1a9da8135ec5745bca182904f0a1703d7be6d1a2). Matching pins, not latest releases, govern this comparison.
  • Affected text: Save the schema GUID → use schemaId in credential offers (both issuance tabs).

Observed versus expected

The schema step says to capture guid for further steps. Both offer bodies later contain "schemaId": [[schemaId]], but neither defines that variable or explains how the GUID becomes a schema URL. Expected: a reader can obtain the usable reference to the just-created schema, including an appropriate reachable base URL, and reuse it consistently. This missing dataflow step is distinct from JSON quoting.

Evidence and reproduction

  1. Follow the linked page statically from schema creation to either offer. The substitution list defines other inputs, not schemaId.
  2. The pinned schemaId annotation requires a JSON-schema URL, with an example ending in /cloud-agent/schema-registry/schemas/{guid}/schema; the raw-schema endpoint corroborates that path.
  3. The compatibility parser carries the supplied string unchanged. Claim validation uses schema dereferencing and GenericUriResolver; there is no GUID-to-URL expansion. A schemeless GUID cannot be resolved there.

No HTTP error code, actual network reachability or successful issuance is claimed.

Verification used Python 3.13.15 text/HTML inspection of immutable public sources and deployed text. No repository code, compiler/build, service request or browser test was run; deployment commit identity is not exposed.

Existing work checked

Fully paginated open/closed issue-and-PR inventories in docs, cloud-agent and sdk-ts, plus title/body/comment searches by page/component/root cause and relevant discussion/patch reads. docs #222/PR #223 pinned versions and added schemaId but never defined this mapping. docs #202 concerns VCDM API migration; the compatibility field is still accepted at the intended version. cloud-agent #1213 concerns generated API examples mixing AnonCreds/W3C schema formats, not this portal-local missing step. GUID/schemaId and Quick Start searches found no matching open repair.

Acceptance criteria

  • A reader with the preceding schema response can fill the schema reference in both issuance tabs without guessing its construction.
  • Validate the documented reference against Agent 2.0.0: it resolves to the intended schema from the required agent context and is used consistently in the subsequent flow.

Activity

  1. added
    documentation
    on Oct 28, 2026
  2. patextreme commented on Oct 30, 2026

    @patextreme
    ContributorAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: bug
    Summary: Quick Start never defines [[schemaId]], so the saved schema GUID has no documented path to a usable schema reference

    Current behavior:
    After creating the credential schema the guide says to save its guid, but both credential-offer bodies use [[schemaId]] and neither defines that value or how to build it from the GUID. The pinned Agent requires a dereferenceable JSON-schema URL for schemaId and performs no GUID-to-URL expansion, so a bare GUID cannot work.

    Desired behavior:
    Add an explicit dataflow step after schema creation: from the returned guid, construct the schema reference the issuer can serve and use it in both offer tabs (for example <issuer origin>/cloud-agent/schema-registry/schemas/<guid>/schema). State that the origin must be reachable from the issuer's runtime context rather than blindly prescribing localhost, and distinguish the registry GUID, the response id/longId and the embedded JSON Schema $id.

    Key surfaces:

    • The schema-creation and credential-offer sections of the Quick Start page (hand-authored documentation/develop/quick-start.md).
    • The observation, exemption and schemaId expectations of the pinned Agent's issue-credential request contract.

    Acceptance criteria:

    • A reader holding the schema response can fill schemaId in both connected and connectionless offers without guessing.
    • The constructed reference is shown or described as <issuer origin>/cloud-agent/schema-registry/schemas/<guid>/schema, with the reachability caveat.
    • The text does not confuse the GUID with a JSON Schema $id or with a relative path.

    Out of scope:

    • The JSON quoting defect (tracked separately); quoting alone does not define schemaId.
    • Cloud Agent code changes or any GUID-to-URL expansion.
    • Proof/verification flows beyond keeping the reference consistent.

    Evidence (verified in this triage pass):
    Reporter-verified in this pass at docs fa985df and docs-pinned Agent eee1ff7 (contract annotation, raw-schema route, parser and resolver path). No live Agent request was made.

  3. added
    bug
    ready-for-agent
    and removed
    bug
    ready-for-agent
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocumentationready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions