Skip to content

Releases

Plenipo 0.12.0

Choose a tag to compare

@fabiolalli fabiolalli released this 06 Dec 18:05
1796931

The verifier as a container in front of an existing HTTP API, a runner that checks an implementation against
the test vectors, and what the IT-Wallet app does today with transaction data.

Upgrading: nothing changes in the library API. A key binding JWT without transaction_data_hashes is still
refused with TX_DATA_MISMATCH, now with a message that names the cause.

  • A key binding JWT without transaction_data_hashes is refused with a message that says so: the wallet
    did not show the mandate and may not support transaction data. The code stays TX_DATA_MISMATCH.
  • docs/it-wallet.md: what the IO app does with transaction data, from its source code (December 2026):
    it drops them and its key binding JWT carries no hashes. New test reproducing that response.
  • conformance/: a runner that checks the test vectors against the plenipo package as published on npm
    (pinned) or against another implementation through a small adapter, with a JSON report; CI runs it
    against npm and against the commit (#47).
  • server/: the verifier as a service (#37). A reverse proxy in front of an HTTP API, configured from a JSON
    file (trust, stores, routes with JSON pointers to payee and amount), with /healthz, /readyz, Prometheus
    metrics, the ledger sweep and a container image. It refuses to start when productionConfigProblems finds
    the configuration unsafe.
  • Sandbox: when a wallet refuses a request it records the reason the wallet gives (error_description), and
    the feed explains a transfer the bank could not execute because it holds no account for that person.
  • Sandbox: a request for a payment confirmation closes before the confirmation it asks for expires (at most
    5 minutes), and the confirmation lasts 600 seconds, so a late approval in the wallet is no longer reported
    as successful and then refused by the bank.

Plenipo 0.11.0

Choose a tag to compare

@fabiolalli fabiolalli released this 06 Dec 16:51
e61be47

Wallet confirmation above a threshold (#90): the agent pays alone up to an amount the person chose, and each
payment above it needs the person's confirmation in the wallet, for that payee, amount and agent, once.

Upgrading: nothing changes for existing callers. A mandate with limits.confirm_above is refused by a verifier
of 0.10.0 or earlier, so update relying parties before agent platforms issue it. DenyCode has two new
members, CONFIRMATION_REQUIRED and CONFIRMATION_INVALID. A service that accepts such mandates builds its
nonce retention with nonceRetentionSeconds({ …, confirmations: true }).

Profile 0.3 draft

  • limits.confirm_above: a non-negative amount in minor units. Above the lowest threshold of the chain, a call
    that moves money is refused with CONFIRMATION_REQUIRED (403) unless it carries a confirmation; delegations
    keep the threshold or lower it, and the TS12 description names it.
  • createPaymentConfirmation: the one-time mandate the wallet signs for one payment (one action, one payee,
    the account when the chain lists accounts, per_operation = total = amount, max_operations: 1, the leaf
    agent's key, at most MAX_CONFIRMATION_SECONDS, 600). VerifyOptions.confirmation takes the root
    authorization the wallet returned; the verifier checks it offline against the chain (same PID provider and
    person, trusted provider, accepted audience, exact match) and spends it once with the nonce store, after the
    invocation nonce. Otherwise CONFIRMATION_INVALID (401). The decision carries confirmation.
  • Transport: the Plenipo-Confirmation header (CONFIRMATION_HEADER, asConfirmation,
    authorizationHeaders(chain, invocation, confirmation)), read by createGateway and removed before
    forwarding, and confirmation in the MCP _meta, read by guardTool.
  • Spec section 6.2; threat model T15; integration guide.

Sandbox

  • The platform takes confirm_above and requests confirmations (POST /api/mandates/:id/confirmations); the
    wallet shows the threshold and a confirmation as such; the bank reads the confirmation over MCP and REST.
  • The bridge: request_mandate takes confirm_above_eur, the new tool confirm_payment asks for a
    confirmation, and transfer attaches it once the person confirmed, then forgets it.
  • Scenario payment-confirmation (25 scenarios).
  • mandate_status shows every limit the bank enforces: number of payments, confirmation threshold, bound
    accounts.

Documentation

  • The error catalogue of the integration guide lists every deny code of 0.9.0 to 0.11.0 with its HTTP status.

Plenipo 0.10.0

Choose a tag to compare

@fabiolalli fabiolalli released this 06 Dec 16:49
6e38ada

Closes the last cases of the payment red team: a count of payments, payee accounts approved by the person,
and strict mode without in-memory stores.

Upgrading: nothing changes for existing callers. A mandate with accounts or limits.max_operations is
refused by a verifier of 0.9.0 or earlier, so update relying parties before agent platforms issue them.
Services that use strict with in-memory stores set strict: { singleInstance: true } or move to shared
stores. DenyCode has a new member, LIMIT_OPERATIONS.

Profile 0.3 draft (#88, #89)

  • accounts: the payee accounts a mandate allows, each an IBAN with its holder's name, shown in the wallet
    and in the TS12 description. On a call that moves money the relying party states the account it credits
    (expected.account, guardTool({ account }), GatewayRoute.account), and the verifier refuses any account
    not listed on every mandate that lists accounts (COUNTERPARTY_NOT_PERMITTED). The decision carries the
    approved entry as payee_account, for Verification of Payee. Delegations keep a subset with the same holder
    names. normalizeIban checks the ISO 13616 digits.
  • Sandbox: the platform takes accounts or payee_accounts: true, the wallet shows the accounts, the bank
    checks the IBAN of its register, request_mandate takes payee_accounts, and scenario payee-account
    changes the register to redirect a payment (24 scenarios). The register IBANs now carry valid check digits.
  • limits.max_operations: the number of payments (calls that move money) a mandate allows, whatever their
    amounts, counted on every mandate of the chain with an atomic ledger reservation in the unit XXX
    (OPERATIONS_UNIT) and refused beyond with LIMIT_OPERATIONS (403). Delegations keep it or lower it. The
    decision carries operation_reservation, settled like reservation; the MCP guard and the HTTP gateway do
    it. A verifier of profile 0.2 refuses a mandate that carries it.
  • Sandbox: the wallet and the platform show the count, request_mandate takes max_payments, scenario
    payment-count.

Verification

  • strict refuses in-memory stores (nonces, ledger, idempotency, duplicates, revocation) with
    CONFIGURATION, unless StrictOptions.singleInstance says the service is one process. With them a
    second instance, or the same one after a restart, accepts a replayed invocation or spends a total again.

Plenipo 0.9.0

Choose a tag to compare

@fabiolalli fabiolalli released this 06 Dec 16:47
035c7f9

Upgrading: nothing changes for existing callers. DenyCode has three new members (IDEMPOTENCY_REQUIRED,
DUPLICATE_SUSPECTED, MANDATE_TOO_BROAD), so an exhaustive switch over it needs three more cases; the
duplicate scope (duplicateScope) is new. cross-spawn 7.1.2 in the development tools and the sandbox.

Payment safeguards (#83), from a red team of the payment moment: wrong payee, wrong amount, paying twice.
Every payment outside the mandate was already refused; these options close what still went through with
the defaults. All are opt-in, and what agents and wallets sign does not change.

Verification

  • duplicates: an IdempotencyStore that remembers payments by root mandate, action, payee, amount and
    arguments (duplicateScope). An identical payment while a record is held is refused with
    DUPLICATE_SUSPECTED: the same bill signed twice by an agent, or retried with a new idem. The window is
    the store's retention; a new mandate approved by the person starts a new scope. The decision carries
    duplicate, ended like idempotency; the MCP guard and the HTTP gateway do it themselves.
  • requireIdempotency: a call that moves money without idem is refused with IDEMPOTENCY_REQUIRED.
  • strict (StrictOptions): requires a complete expected, and on money calls a ledger, idempotency and
    duplicate stores and idem; refuses chains with no payee restriction, no total or wildcard payees
    (MANDATE_TOO_BROAD) and punycode payees; checks status lists at most 30 s old on money calls
    (DEFAULT_STRICT_STATUS_AGE_SECONDS) unless maxStatusAgeSeconds is set.
  • productionConfigProblems and assertProductionConfig name settings unsafe in production: in-memory
    stores on several instances, strict off, no idempotency or duplicate store, PID status skipped,
    certificate revocation off, any root audience accepted, long invocation ages.
  • New deny codes IDEMPOTENCY_REQUIRED (400), DUPLICATE_SUSPECTED (409), MANDATE_TOO_BROAD (403);
    section 6.1 of the profile.

Sandbox

  • The bank keeps duplicate records of payments (24 h), in memory, in the Postgres idempotency table or in
    Redis, and lists and settles those with an unknown outcome with the idempotency keys. New scenario
    duplicate-bill (22 in all): the same bill paid again with a new key, without a key and through the REST
    API is refused with DUPLICATE_SUSPECTED, debited once. The MCP bridge explains the new codes.

Docs

  • docs/threat-model.md: the threats of the payment moment, their controls and what is left to the
    relying party.

Tests

  • test/payment-redteam.test.ts: 33 attacks on the payment moment, with what the defaults do.
  • test/payment-safeguards.test.ts: every safeguard, for the case it refuses and the case it allows.

Plenipo 0.8.0

Choose a tag to compare

@fabiolalli fabiolalli released this 01 Dec 10:22
9588cab

IT-Wallet specification 1.5.0, EUDIW path: profile it-wallet-2 and a test run against the verifier test
matrix of the specification (docs/it-wallet.md). Nothing here has run against an
Italian wallet yet.

Upgrading: request nonces are longer (43 characters), signed request objects carry iss, client_metadata
lists A256GCM as well as A128GCM, and MandateRequest has a new member requestAudience. Existing
callers need no change.

OpenID4VP

  • Request nonces are 32 random bytes (43 characters), as 1.5.0 requires (RPR-93); they were 16.
  • Signed request objects carry iss equal to the client identifier with its prefix.
  • client_metadata lists both A128GCM and A256GCM, and encrypted_response_alg_values_supported
    ECDH-ES. Both encryptions were already accepted.
  • createMandateRequest({ trustedAuthorities }) adds DCQL trusted_authorities to every credential
    query; createMandateRequest({ verifierInfo }) adds verifier_info, carried as given;
    requestAudience sets the request object aud (default https://self-issued.me/v2).
  • signMandateRequestObject(request, signer, { walletNonce }) signs the request object again with the
    wallet_nonce a wallet sent with request_uri_method=post. MandateRequest has a new member,
    requestAudience, which it needs.

Experimental (plenipo/experimental)

  • Profile it-wallet-2 (IT_WALLET_EUDIW_PROFILE): itWalletRequestOptions({ profile: 'it-wallet-2', verifierInfo, trustedAuthorities }) refuses to build a request without the registrar dataset, the
    registration certificate and an etsi_tl trusted authority; itWalletRequestProblems(params, requestObject, { profile }) checks the request object as well (iss, aud, iat, exp, x5c without the trust
    anchor, client_id as the hash of the first certificate, encryption values, key ids).
  • itWalletIdentityMatch(claims): the identity matching key of 1.5.0, from personal_administrative_number
    or tax_id_code, or from names, date and place of birth after normalisation; null for a subset that
    would allow a person swap. IT_WALLET_PRINCIPAL_ID_CLAIMS for principal_id.
  • IT_WALLET_EUDIW_SCHEME (eu-eaap://), IT_WALLET_PID_VCT_TRANSITIONAL (urn:it-wallet:pid:1).
  • it-wallet-1 is unchanged and stays the profile for 1.4.7.

Testing

  • WalletRequestPolicy.enc encrypts a test wallet response with A256GCM.

Sandbox

  • Scenario it-wallet-eudiw (21 scenarios in all): a request under profile it-wallet-2, linked with
    eu-eaap:// and request_uri_method=post; the wallet posts its metadata with a wallet_nonce and
    accepts only a request that carries it back. The registration certificate is signed by the sandbox
    itself.
  • The platform answers POST /request/:id (OpenID4VP 1.0, 5.10), with errors in JSON (error,
    error_description); the API takes profile: "it-wallet-2".

Dependencies

  • @owf/token-status-list 0.9, @sd-jwt/sd-jwt-vc 0.25 and, for the tests, @owf/eudi-lote 0.8, whose
    APIs changed, together with the other minor and patch updates of Dependabot's group (#75).
  • Status list tokens are checked as before: typ must be statuslist+jwt, sub must equal the URI the
    token was fetched from, and sub, iat and exp are required. The checks now use zStatusListJwtHeader
    and verifyStatusListJwtClaims with requiredClaims, and StatusListPublisher builds the token itself
    instead of calling the removed createHeaderAndPayload. A new test pins these checks.

Plenipo 0.7.0

Choose a tag to compare

@fabiolalli fabiolalli released this 24 Nov 12:36
8050877

IT-Wallet profile, in preparation for the Italian IT-Wallet System, which opened to citizens on 23 November 2026. Nothing here has run against an Italian wallet yet (docs/it-wallet.md).

Upgrading: MandateRequest has a new member disclosure. Nothing else changes for existing callers.

OpenID4VP

  • x509_hash client identifiers (OpenID4VP 1.0, section 5.9.3): x509HashClientId(certificate), and createMandateRequest refuses an x509_hash client identifier without a signer or one that does not match the signing certificate in x5c. An empty clientId is now refused when the request is built.
  • createMandateRequest({ pidVcts }): the PID types the DCQL query asks for, default ['urn:eudi:pid:1'].
  • MandateRequest.disclosure: every requested claim with its purpose; claimPurposes states them, DEFAULT_CLAIM_PURPOSES covers the claims Plenipo relies on, and requireClaimPurposes refuses a request that asks for a claim with no stated purpose. A verifier in the IT-Wallet System must be able to justify every attribute it requests.

Experimental (plenipo/experimental)

  • Profile it-wallet-1: itWalletRequestOptions (x509_hash client identifier from the signing certificate, encrypted response, PID type urn:eudi:pid:it:1, a purpose for every claim), itWalletVerifyDefaults and itWalletRequestProblems, which names the rules of the Italian remote flow a request breaks.

Sandbox

  • Scenario it-wallet (20 scenarios in all): a request under profile it-wallet-1, with the x509_hash of the platform's certificate as client identifier, approved with a simulated Italian-style PID for a new person, Giulia Verdi; the bank allows within the mandate and refuses above it. No IT-Wallet app is involved.
  • The platform API takes profile: "it-wallet-1"; requests show profile and claims (every requested claim with its purpose), and the mandate_requested event lists the claims with their purposes.
  • The wallet accepts x509_hash client identifiers: the certificate must hash to it and chain to a trusted relying party CA. The PID provider issues Italian-style PIDs (profile: "it").

Testing

  • createTestPidProvider(iss, { vct }) and issuePid(…, { vct }) issue PIDs of another type; the test wallet presents the type it holds, and can be restricted to client identifier prefixes (clientIdPrefixes) and check x509_hash against the request object (checkX509Hash).

Pull requests: #72, #73. Tracking: #71.

Plenipo 0.6.0

Choose a tag to compare

@fabiolalli fabiolalli released this 15 Nov 16:51
99de02b

First runs with the EUDI reference wallet, on Android and on iOS: mandate approved with a PID from the EU
test issuer, payments allowed and refused by the bank within it (#44).

Upgrading: a status list that cannot be trusted (origin not allowed, signer not trusted, signature,
claims or expiry) now denies with the new code STATUS_UNTRUSTED (HTTP 401, status_untrusted) instead
of PID_REVOKED, REVOKED or ATTESTATION_REVOKED. Those three now mean only that a verified list marks
the credential revoked or suspended. Code that matches on them for monitoring or messages should add the
new code. MandateRequest has a new member expiresAt.

Verifier

  • STATUS_UNTRUSTED (#49): a status that cannot be determined is no longer reported as a revocation.
    The run with the EU test PIDs showed why: a valid PID whose status list the sandbox did not accept was
    reported as PID_REVOKED.
  • TrustConfig.statusSigners: for a status list origin, further identities whose certificate may sign
    its lists, for a status service that distributes lists signed by their issuer (the EU revocation
    service). Opt-in per origin; chain and anchor rules unchanged.
  • A URI subject alternative name with a trailing slash names a bare-origin issuer, as the certificate of
    https://dev.issuer-backend.eudiw.dev writes it (#50). Paths, ports, queries and fragments still never
    match.
  • Errors name what was refused: the status list origin, and the names a signing certificate carries when
    it does not name the expected identity.

OpenID4VP

  • createMandateRequest({ lifetimeSeconds }), default 600: the signed request object carries exp, the
    request and its session carry expiresAt, and handleMandateResponse refuses a response after it
    (#51). Before, a wallet could open a 30-minute-old request, let the person approve and only then hear
    that the relying party refused it.

Sandbox

  • Requests show when they expire: on the request page ("Approve before 15:12 UTC"), as expires_at in the
    API, and in the answer of the MCP tool request_mandate; mandate_status says when a request expired.
    After the expiry the platform answers request_uri with 410.
  • PID providers from ETSI TS 119 602 lists: PLENIPO_PID_TRUSTED_LISTS and
    PLENIPO_PID_TRUSTED_LIST_SIGNERS, read at start and every 12 hours, the last good reading kept when a
    list cannot be fetched. The public sandbox reads the EUDI list of test PID providers, so a PID from the
    EU test issuer can be presented from the EUDI reference wallet.
  • The platform publishes the CA of its request object certificate at /rp-ca.pem and in /api/info,
    and accepts PLATFORM_RP_KEY, PLATFORM_RP_CHAIN and WALLET_RP_ANCHORS as PEM text, so the
    certificate can be a Fly secret that survives restarts.
  • SANDBOX_RP_DIR: the request certificate and its CA are created on the first start and kept in that
    directory, on the Fly volume for the public sandbox, so the CA that wallet builds trust stays the same
    without handing a private key in as a secret.
  • Mandate requests carry eudi_wallet_url (eudi-openid4vp://authorize?...) next to the
    openid4vp:// link, and the request page offers a same-device link.
  • The public sandbox fetches the status lists of the EU test PIDs from their hosts
    (SANDBOX_ALLOW_PUBLIC_STATUS, PLENIPO_PID_LIST_STATUS_ORIGINS), and a rejected wallet response
    shows its detail in the platform feed and log. Found in the first run with the EUDI reference wallet
    (#44).
  • PLENIPO_PID_LIST_STATUS_SIGNERS (origin=identity pairs) sets statusSigners for the listed status
    origins; the public sandbox accepts lists from revocation.eudiw.dev signed by issuer.eudiw.dev, and
    from dev.revocation.eudiw.dev, where the PID of the iOS run pointed (#58).

Plenipo 0.5.1

Choose a tag to compare

@fabiolalli fabiolalli released this 13 Nov 07:59
6b7727d

Security fixes from the first CodeQL scan, and dependency updates that close the open Dependabot
alerts. No change to the profile, the API or the stores.

Security

  • Revocation: a PEM CRL supplied as a string in certificateRevocation.crls is cut out with indexOf
    instead of a lazy regex, whose time grew with the square of a malformed input (768 KB of BEGIN markers
    took about 19 s). CRLs fetched from distribution points arrive as bytes and were not affected.
  • plenipo/testing: the test wallet builds its disclosure frame without a prototype and ignores the
    claim names __proto__, constructor and prototype, so a DCQL query cannot pollute
    Object.prototype in the process that runs it.
  • jsonMediaType reads the charset parameter without a regex. CodeQL flagged the pattern; it was not
    slow in practice, and the new code accepts and refuses the same values.
  • The repository now runs CodeQL on every pull request and on main.

Dependencies

  • Hono 4.13.18 and @hono/node-server 2.1.8, which the MCP SDK uses under its HTTP transport
    (GHSA-jpvv-r467-5p4w, GHSA-qv5m-9pm6-hqp3 and five Hono advisories; none reachable through Plenipo's
    gateways, which route requests themselves).
  • The four @peculiar packages to 3.x together, @owf/token-status-list 0.7, @owf/eudi-lote 0.6,
    @sd-jwt/sd-jwt-vc 0.24, and the minor and patch group (#26, #32).

Sandbox

  • Audit log of the hosted MCP gateway: client name and version at initialize, every request and
    tool call with its outcome, refusals, and requests to other paths, with no secret, tool argument
    value or full address in it. Daily files on a volume on Fly.io (90 days), a token-protected page and
    JSON at /admin/mcp-audit, and an optional webhook for new clients and first tool calls. See
    sandbox/README.md, "Audit log of the MCP endpoint" (#27).
  • The sandbox image starts as root only to hand the audit directory to the node user.
  • @anthropic-ai/sdk 1.7 (#28).

Plenipo 0.5.0

Choose a tag to compare

@fabiolalli fabiolalli released this 26 Oct 14:12
2b06f87

Idempotent retries and a tighter revocation bound. Both came from questions after the public launch:
what happens when an agent's host restarts in the middle of a payment, and how long a revoked mandate
can still be accepted.

Breaking

  • Invocations with a member the profile does not define are refused with MALFORMED; until 0.4 they
    were ignored, which let a verifier silently drop a constraint it did not know. This includes standard
    JWT claims such as exp and jti that another agent library might add. The profile is now
    plenipo-0.2 (docs/spec.md); mandates, roots and delegations are unchanged.
  • ManagedStatusList and StatusListPublisher publish ttl 60 by default (was 300), and the status
    service's Cache-Control follows. Set ttlSeconds to keep the old value.
  • Postgres schema version 4 (a new idempotency table). migratePostgres upgrades from versions 1 to 3;
    src/stores/schema.sql is regenerated.
  • Four new DenyCode values: IDEMPOTENCY_CONFLICT, IDEMPOTENCY_IN_PROGRESS,
    IDEMPOTENCY_UNRESOLVED, ALREADY_EXECUTED. Code that switches over every code needs them.

Added

  • Idempotency keys. createInvocation({ …, idempotencyKey }) signs an idem member (requires args);
    every attempt of one intention carries the same key with its own nonce. With idempotency in the
    verify options, at most one attempt per key reaches the action: a key used for another request is
    IDEMPOTENCY_CONFLICT, a running attempt IDEMPOTENCY_IN_PROGRESS, an attempt of unknown outcome
    IDEMPOTENCY_UNRESOLVED until reconciled, an executed one ALREADY_EXECUTED with its stored result.
    Keys are scoped by audience and chain hash. A verifier without a store refuses invocations that carry
    a key (CONFIGURATION). The decision of an allowed attempt carries idempotency, which the caller ends
    with the outcome, as it settles the reservation.
  • InMemoryIdempotencyStore, PostgresIdempotencyStore, RedisIdempotencyStore, with claim, attach,
    finish, resolve (on the attempt that holds the key), get, unresolved (and sweep on Postgres
    and in memory). A key held by an attempt of unknown outcome follows the reconciliation of its reservation on Postgres and Redis ledgers: committed means
    executed, released means free again.
  • guardTool and the HTTP gateway end attempts with the same rule as reservations and keep results
    for replays (maxReplayBytes, default 64 KiB). A retry of an executed call gets the stored tool result
    with _meta['plenipo/replay'] (REPLAY_META_KEY), or the stored HTTP response with
    Plenipo-Replay: true (REPLAY_HEADER); the tool or API does not run again. idempotency_in_progress
    carries Retry-After. gateway.authorize(...).settle(input, { status, contentType, body }) keeps a
    response in authorize mode.
  • maxStatusAgeSeconds in the verify options, and per route in the gateway: a cached status list older
    than that is fetched again, and the default fetcher sends Cache-Control: max-age=<n>. 0 fetches on
    every call. StatusListCache.get and StatusFetcher take the bound as an optional argument;
    DEFAULT_STATUS_TTL_SECONDS is exported.
  • Test vectors (test-vectors/plenipo-0.2.json, renamed from plenipo-0.1.json): unknown invocation
    member, idempotency key without args_hash, idempotency key sent to a verifier without a store.
  • Exports: chainHash from the main entry point, idempotencyScope, requestFingerprint,
    newIdempotencyKey, IDEMPOTENCY_KEY_RE, DEFAULT_MAX_REPLAY_BYTES, MAX_STORED_RESULT_BYTES,
    MAX_REPLAY_BODY_BYTES.

Sandbox

  • The bank keeps idempotency keys for transfer (MCP and REST) and marks the tool idempotent: true in
    its binding; GET /api/idempotency lists payments with an unknown outcome and
    POST /admin/idempotency/<key>/resolve settles one.
  • The MCP bridge writes each payment's idempotency key to its state file before sending it, and reuses
    it when the same call is repeated after an unknown outcome, also after a restart of the host.
  • Scenarios idempotent-retry and retry-after-crash (the second is not run on request in a public
    sandbox, since it arms a bank-wide failure).
  • First run with a real wallet: walt.id Wallet API 2 approved a plenipo_mandate over OpenID4VP and
    the sandbox bank enforced it (sandbox/level2/README.md). The same run passed with a TS12 e-mandate
    bound to the PID (WALTID_EMANDATE=1).
  • sandbox/level2/waltid: the override for walt.id's own stack is now waltid-stack.override.yaml, so
    docker compose up in that folder no longer loads it by mistake.
  • Sandbox, hosted remote MCP: with SANDBOX_AGENT_GATEWAY=1 the bridge is also served over Streamable
    HTTP, one bridge per MCP session, so Claude can connect to the sandbox by URL. Each session has a
    demo code; the dashboard serves that session's events at /api/demo/<code> (JSON and SSE, readable
    from any origin) and shows it alone at /demo/<code>. The gateway can also run the scripted
    scenarios on request, each under its own code.
  • Sandbox, after the first public demo with Claude: with SANDBOX_ACCOUNT_SCOPE=mandate every root
    mandate gets its own copy of the account, so visitors never find bills another visitor paid;
    list_payees says in words which bills are open, or that none are; the wallet and the bridge say that
    approving pays nothing; a demo code now names a mandate journey, given with the first
    request_mandate, and a later connection can continue it (mandate_status with demo_code);
    connections that never call a tool leave no trace; gateway limits no longer count the address of
    the MCP client's servers; the revocation answer gives the bank's real cache delay. A workflow deploys
    the sandbox to Fly.io on merge.
  • Sandbox, hosting: a front door that dispatches by host name on one port (src/front.ts), a Fly.io
    configuration (sandbox/deploy/fly.toml), a daily clean restart and a play-money refill for a public
    instance. Bank payment and card events now carry the mandate id. When SANDBOX_ADMIN_TOKEN is set,
    posting dashboard events requires it.

Security review

  • An independent review of this release (AI review agent) found two serious problems and several minor
    ones, all fixed before the release with regression tests (test/review-0.5.test.ts,
    sandbox/test/bridge-retry.e2e.ts):
    • resolve acted on whichever attempt held a key, so two concurrent retries following the same
      released reservation could both run, and an operator acting on an old listing could free a newer
      attempt. resolve(key, outcome, attempt) is now compare-and-set on the attempt.
    • The gateway read every committed response through a tee to keep it for replays; a body larger than
      maxReplayBytes without Content-Length, or a stream, made handle() hang, with or without
      idempotency. It now reads only keyed requests, once, and rebuilds the response for the client.
    • The bridge kept one open call, so paying another bill, or a denial before the bank looked at the key,
      lost the key of an unanswered payment. It now keeps every open call until the bank settles it.
    • maxReplayBytes is bounded by what a store accepts, and an attempt is recorded as executed even when
      the store refuses its result.
    • Every idempotency refusal spends the retry's nonce, so a copy of it cannot read the stored result
      later.
    • InMemoryIdempotencyStore sweeps expired records on its own.
    • Documented: the bound of maxStatusAgeSeconds holds as far as HTTP caches honour the request, and
      with keys, the action and arguments must determine the operation.
  • A second round on the fixes confirmed them and found three smaller problems, also fixed
    (test/review-0.5-round2.test.ts, sandbox/test/review-round2.e2e.ts): parallel tool calls in the
    bridge could overwrite each other's open calls (state writes are now serialised), the 0.5.0-draft
    retry slot was migrated under a key no call computed, and a downstream body that was already read
    made the gateway's handle() reject instead of passing the response on.

Plenipo 0.4.1

Choose a tag to compare

@github-actions github-actions released this 25 Oct 10:01
36c3da4

Documentation and release process only; the library code is unchanged from 0.4.0.

  • README: new "Why Plenipo" section and a link to the npm package.
  • Releases: a version tag publishes to npm through trusted publishing and creates the GitHub release
    from this file.
  • Dependabot: weekly grouped updates for the library, the sandbox and GitHub Actions.