Repository navigation
Releases
Plenipo 0.12.0
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_hashesis refused with a message that says so: the wallet
did not show the mandate and may not support transaction data. The code staysTX_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 theplenipopackage 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 whenproductionConfigProblemsfinds
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
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 withCONFIRMATION_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 mostMAX_CONFIRMATION_SECONDS, 600).VerifyOptions.confirmationtakes 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. OtherwiseCONFIRMATION_INVALID(401). The decision carriesconfirmation.- Transport: the
Plenipo-Confirmationheader (CONFIRMATION_HEADER,asConfirmation,
authorizationHeaders(chain, invocation, confirmation)), read bycreateGatewayand removed before
forwarding, andconfirmationin the MCP_meta, read byguardTool. - Spec section 6.2; threat model T15; integration guide.
Sandbox
- The platform takes
confirm_aboveand 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_mandatetakesconfirm_above_eur, the new toolconfirm_paymentasks for a
confirmation, andtransferattaches it once the person confirmed, then forgets it. - Scenario
payment-confirmation(25 scenarios). mandate_statusshows 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
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.
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 aspayee_account, for Verification of Payee. Delegations keep a subset with the same holder
names.normalizeIbanchecks the ISO 13616 digits.- Sandbox: the platform takes
accountsorpayee_accounts: true, the wallet shows the accounts, the bank
checks the IBAN of its register,request_mandatetakespayee_accounts, and scenariopayee-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 unitXXX
(OPERATIONS_UNIT) and refused beyond withLIMIT_OPERATIONS(403). Delegations keep it or lower it. The
decision carriesoperation_reservation, settled likereservation; 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_mandatetakesmax_payments, scenario
payment-count.
Verification
strictrefuses in-memory stores (nonces, ledger, idempotency, duplicates, revocation) with
CONFIGURATION, unlessStrictOptions.singleInstancesays 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
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: anIdempotencyStorethat 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 newidem. The window is
the store's retention; a new mandate approved by the person starts a new scope. The decision carries
duplicate, ended likeidempotency; the MCP guard and the HTTP gateway do it themselves.requireIdempotency: a call that moves money withoutidemis refused withIDEMPOTENCY_REQUIRED.strict(StrictOptions): requires a completeexpected, and on money calls a ledger, idempotency and
duplicate stores andidem; 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) unlessmaxStatusAgeSecondsis set.productionConfigProblemsandassertProductionConfigname 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 withDUPLICATE_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
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
issequal to the client identifier with its prefix. client_metadatalists bothA128GCMandA256GCM, andencrypted_response_alg_values_supported
ECDH-ES. Both encryptions were already accepted.createMandateRequest({ trustedAuthorities })adds DCQLtrusted_authoritiesto every credential
query;createMandateRequest({ verifierInfo })addsverifier_info, carried as given;
requestAudiencesets the request objectaud(defaulthttps://self-issued.me/v2).signMandateRequestObject(request, signer, { walletNonce })signs the request object again with the
wallet_noncea wallet sent withrequest_uri_method=post.MandateRequesthas 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 anetsi_tltrusted 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, frompersonal_administrative_number
ortax_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_CLAIMSforprincipal_id.IT_WALLET_EUDIW_SCHEME(eu-eaap://),IT_WALLET_PID_VCT_TRANSITIONAL(urn:it-wallet:pid:1).it-wallet-1is unchanged and stays the profile for 1.4.7.
Testing
WalletRequestPolicy.encencrypts a test wallet response withA256GCM.
Sandbox
- Scenario
it-wallet-eudiw(21 scenarios in all): a request under profileit-wallet-2, linked with
eu-eaap://andrequest_uri_method=post; the wallet posts its metadata with awallet_nonceand
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 takesprofile: "it-wallet-2".
Dependencies
@owf/token-status-list0.9,@sd-jwt/sd-jwt-vc0.25 and, for the tests,@owf/eudi-lote0.8, whose
APIs changed, together with the other minor and patch updates of Dependabot's group (#75).- Status list tokens are checked as before:
typmust bestatuslist+jwt,submust equal the URI the
token was fetched from, andsub,iatandexpare required. The checks now usezStatusListJwtHeader
andverifyStatusListJwtClaimswithrequiredClaims, andStatusListPublisherbuilds the token itself
instead of calling the removedcreateHeaderAndPayload. A new test pins these checks.
Plenipo 0.7.0
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_hashclient identifiers (OpenID4VP 1.0, section 5.9.3):x509HashClientId(certificate), andcreateMandateRequestrefuses anx509_hashclient identifier without a signer or one that does not match the signing certificate inx5c. An emptyclientIdis 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;claimPurposesstates them,DEFAULT_CLAIM_PURPOSEScovers the claims Plenipo relies on, andrequireClaimPurposesrefuses 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 typeurn:eudi:pid:it:1, a purpose for every claim),itWalletVerifyDefaultsanditWalletRequestProblems, which names the rules of the Italian remote flow a request breaks.
Sandbox
- Scenario
it-wallet(20 scenarios in all): a request under profileit-wallet-1, with thex509_hashof 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 showprofileandclaims(every requested claim with its purpose), and themandate_requestedevent lists the claims with their purposes. - The wallet accepts
x509_hashclient 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 })andissuePid(…, { vct })issue PIDs of another type; the test wallet presents the type it holds, and can be restricted to client identifier prefixes (clientIdPrefixes) and checkx509_hashagainst the request object (checkX509Hash).
Plenipo 0.6.0
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 asPID_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.devwrites 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 carriesexp, the
request and its session carryexpiresAt, andhandleMandateResponserefuses 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_atin the
API, and in the answer of the MCP toolrequest_mandate;mandate_statussays when a request expired.
After the expiry the platform answersrequest_uriwith 410. - PID providers from ETSI TS 119 602 lists:
PLENIPO_PID_TRUSTED_LISTSand
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.pemand in/api/info,
and acceptsPLATFORM_RP_KEY,PLATFORM_RP_CHAINandWALLET_RP_ANCHORSas 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=identitypairs) setsstatusSignersfor the listed status
origins; the public sandbox accepts lists fromrevocation.eudiw.devsigned byissuer.eudiw.dev, and
fromdev.revocation.eudiw.dev, where the PID of the iOS run pointed (#58).
Plenipo 0.5.1
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.crlsis 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__,constructorandprototype, so a DCQL query cannot pollute
Object.prototypein the process that runs it.jsonMediaTypereads 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-server2.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
@peculiarpackages to 3.x together,@owf/token-status-list0.7,@owf/eudi-lote0.6,
@sd-jwt/sd-jwt-vc0.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
nodeuser. @anthropic-ai/sdk1.7 (#28).
Plenipo 0.5.0
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 asexpandjtithat another agent library might add. The profile is now
plenipo-0.2(docs/spec.md); mandates, roots and delegations are unchanged. ManagedStatusListandStatusListPublisherpublishttl60 by default (was 300), and the status
service'sCache-Controlfollows. SetttlSecondsto keep the old value.- Postgres schema version 4 (a new
idempotencytable).migratePostgresupgrades from versions 1 to 3;
src/stores/schema.sqlis regenerated. - Four new
DenyCodevalues:IDEMPOTENCY_CONFLICT,IDEMPOTENCY_IN_PROGRESS,
IDEMPOTENCY_UNRESOLVED,ALREADY_EXECUTED. Code that switches over every code needs them.
Added
- Idempotency keys.
createInvocation({ …, idempotencyKey })signs anidemmember (requiresargs);
every attempt of one intention carries the same key with its own nonce. Withidempotencyin the
verify options, at most one attempt per key reaches the action: a key used for another request is
IDEMPOTENCY_CONFLICT, a running attemptIDEMPOTENCY_IN_PROGRESS, an attempt of unknown outcome
IDEMPOTENCY_UNRESOLVEDuntil reconciled, an executed oneALREADY_EXECUTEDwith 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 carriesidempotency, which the caller ends
with the outcome, as it settles the reservation. InMemoryIdempotencyStore,PostgresIdempotencyStore,RedisIdempotencyStore, withclaim,attach,
finish,resolve(on the attempt that holds the key),get,unresolved(andsweepon 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.guardTooland 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
carriesRetry-After.gateway.authorize(...).settle(input, { status, contentType, body })keeps a
response in authorize mode.maxStatusAgeSecondsin the verify options, and per route in the gateway: a cached status list older
than that is fetched again, and the default fetcher sendsCache-Control: max-age=<n>.0fetches on
every call.StatusListCache.getandStatusFetchertake the bound as an optional argument;
DEFAULT_STATUS_TTL_SECONDSis exported.- Test vectors (
test-vectors/plenipo-0.2.json, renamed fromplenipo-0.1.json): unknown invocation
member, idempotency key withoutargs_hash, idempotency key sent to a verifier without a store. - Exports:
chainHashfrom 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 toolidempotent: truein
its binding;GET /api/idempotencylists payments with an unknown outcome and
POST /admin/idempotency/<key>/resolvesettles 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-retryandretry-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_mandateover 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 nowwaltid-stack.override.yaml, so
docker compose upin that folder no longer loads it by mistake.- Sandbox, hosted remote MCP: with
SANDBOX_AGENT_GATEWAY=1the 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=mandateevery root
mandate gets its own copy of the account, so visitors never find bills another visitor paid;
list_payeessays 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_statuswithdemo_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. WhenSANDBOX_ADMIN_TOKENis 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):resolveacted 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
maxReplayByteswithoutContent-Length, or a stream, madehandle()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. maxReplayBytesis 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. InMemoryIdempotencyStoresweeps expired records on its own.- Documented: the bound of
maxStatusAgeSecondsholds 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
retryslot was migrated under a key no call computed, and a downstream body that was already read
made the gateway'shandle()reject instead of passing the response on.
Plenipo 0.4.1
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.