Skip to content

VDR driver table lists the wrong driver families, and a family-only NeoPRISM request cannot select the driver #300

Open

Description

@patextreme

User impact

The VDR guide's driver table states a Family value for each blockchain driver, and its selection section tells readers that drid, drf and drv select the driver. For the NeoPRISM and PRISM Node drivers the table's families do not match what the pinned implementations emit, and a request that names only the documented NeoPRISM family (drf=neoprism) is not routed to the NeoPRISM driver: it falls through to the Java proxy path and fails with DriverNotFound when only the NeoPRISM VDR driver is enabled. Users copying values from the table therefore cannot select the documented driver, and URLs returned by those drivers carry a family value the table does not list.

Affected documentation and ownership

  • Page: https://identus.io/documentation/develop/cloud-agent/vdr/ — GET 200 after trailing-slash resolution, Last-Modified: Tue, 27 Oct 2026 12:51:14 GMT, observed 2026-10-29T10:22Z.
  • Documentation source: vdr.md lines 28–40 and 66–72, revision fa985dfa33caefa45bf1e9009e1f6f5a445344fb.
  • Editable owning source: the same Markdown file for the table and selection guidance (ordinary committed source). Whether the selection contract should instead follow the table is a maintainer decision between this documentation and VdrService.scala; either repair makes the two agree.
  • Intended component version: Identus Cloud Agent 2.2.1-SNAPSHOT. The docs revision pins its cloud-agent submodule at eee1ff7, which declares the same version and has a byte-identical application.conf; the compare contains only CI-workflow and client-generator lockfile changes. NeoPrismVdrService and PrismNodeVdrService are identical between the two revisions.

Observed versus expected

Documented table (source lines 66–72):

| Driver     | ID          | Family      | Version | ...
| NeoPrism   | `neoprism`  | `neoprism`  | `1.0.0` | ...
| PRISM Node | `prism-node`| `prism-node`| `1.0.0` | ...

Pinned implementations (both in the Cloud Agent repository at the revision above):

NeoPrismVdrService.scala:21  override val identifier: String = "neoprism"
NeoPrismVdrService.scala:22  override val version: String = "1.0.0"
NeoPrismVdrService.scala:23  private val family: String = "prism"
NeoPrismVdrService.scala:65-67  "drf" -> family, "drid" -> identifier, "drv" -> version
PrismNodeVdrService.scala:17-19  identifier "prism-node", version "1.0.0", family "prism"

Selection code (VdrService.scala lines 39–42):

private def wantPrismNode(options: VdrOptions): Boolean =
  options.get("drid").contains(PrismNodeDriverId) || options.get("drf").contains(PrismNodeDriverId)
private def wantNeoPrism(options: VdrOptions): Boolean =
  options.get("drid").contains(NeoPrismDriverId)

So family-only selection works for neither documented family, and for NeoPRISM it is not supported at all: drf=neoprism reaches useProxy, which fails when no proxy driver is enabled (DriverNotFound).

Expected: the table's Family values and the selection guidance describe the drivers the agent actually loads, and copying them selects the intended driver.

Evidence and reproduction

Static comparison at the revisions above, observed 2026-10-29:

grep -n "identifier\|version\|family\|\"drf\"" vdr/neoprism/src/main/scala/.../NeoPrismVdrService.scala
grep -n "identifier\|version\|family\|\"drf\"" vdr/prism-node/src/main/scala/.../PrismNodeVdrService.scala
grep -n "wantNeoPrism\|wantPrismNode\|useProxy" vdr/proxy/src/main/scala/.../VdrService.scala

Limitations: static inspection only. No VDR create/read request was executed against a running agent, and no node, chain or credential was used. The routing behaviour is a direct reading of the pinned request dispatcher; a unit test that asserts drf=neoprism selects the NeoPRISM service (or is rejected with a clear error) would confirm the repaired contract.

Existing work checked

GitHub issue/PR search across hyperledger-identus/docs and hyperledger-identus/cloud-agent, open and closed (2026-10-29):

  • driver family → 0 results in docs, 1 unrelated dependency PR in cloud-agent; drf → 0 results in both.
  • vdr.md in docs → docs#227 (closed typo issue) and docs#247 (merged, added the driver documentation); VDR driver in docs → also docs#241, docs#228, docs#230 (open milestone checklist). None covers driver family values.
  • In cloud-agent: cloud-agent#1728 (merged: added the NeoPrism REST VDR backend), #1712, #1685, #1671, and #1610 (open: upgrade the VDR driver). None addresses family values or family-only selection.

Acceptance criteria

  • The Family values in the driver table and the selection guidance match the drivers the agent loads, or the agent accepts the documented families.
  • A request that names the documented NeoPRISM driver (by ID, and by family if the page keeps advertising family-only selection) selects the NeoPRISM service or fails with an explicit, documented error.
  • Verification: a unit test or isolated agent request demonstrates the selection, with no chain or production credential required.

Activity

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

    @patextreme
    ContributorAuthor

    This was generated by AI during triage.

    Triage Notes

    Decision needed (maintainer): does the VDR selector contract stay ID-based, or should family-only selection work as the table advertises?

    What we've established (verified in this pass at docs fa985df and docs-pinned Agent eee1ff7):

    • The driver table lists Family neoprism for NeoPrism and prism-node for PRISM Node; both implementations emit family prism.
    • Selection guidance says drid, drf and drv select the driver. In practice drf=prism-node alone reaches the native PRISM Node service, drf=neoprism alone does not select NeoPrism, and with only the NeoPRISM VDR driver enabled the request falls through to the proxy path and fails with DriverNotFound.
    • Both native services share the same emitted family, so allowing family-only selection would also need a disambiguation/precedence rule.
    • Changing the table to prism alone would still not make family-only creation select either native driver.

    Options (for the maintainer to choose):

    1. Docs-only repair: list the emitted prism family for both rows and state that these native drivers must be selected by drid=neoprism / drid=prism-node, qualifying drf behavior.
    2. Product change: make the Agent accept the documented families (or aliases) with a documented precedence, then align the docs - a separate task in the Agent repository with tests.

    Escalation: Cloud Agent and docs maintainers (repository owners); a product decision is required before an implementation-ready brief can be written.

    Evidence: NeoPrismVdrService, PrismNodeVdrService, VdrService routing and the VDR HTTP endpoint mapping at eee1ff7; table and guidance text at fa985df.

  3. added
    needs-triage
    and removed
    needs-triage
    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

    bugdocumentationneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions