S++Core systems, human-reviewable
S++ (SERVPP) · Language guide

What's New in S++: Roles, Short Names and Collection Transfers

The public basic SDK moved quickly in the last weeks of November 2026. This note summarises the language and runtime changes that affect how S++ source reads, and points to the places where the book, the tutorial and the demonstrations already use them. It describes the basic SDK at the time of writing; the tutorial and SDK user guide remain the reference for exact behaviour.

One participant per role, named by short names

A service or scenario now lists participant types only. It no longer declares parameter names. Inside the body each participant is referred to by a short name: the type name in lower camel case, so Buyer is buyer and StockLine[] is stockLines.

Scenario serial fundShopWallet(Buyer, SettlementAccount, WalletFundingAgreement) {
    checkBuyerCredential;
    checkFundingAmount;
    prepareWalletFunding;
    parallel { findBuyer; findSettlementAccount; }
    identify(buyer);
    identify(settlementAccount);
    transaction {
        transferWalletFunds bounds { settlementAccount.balance: [null, null]; buyer.wallet: [0, null]; };
    }
}

A type can choose its own names with short loss, losses; the second name is used for arrays. An explicit parameter name, or two parameters that end up with the same short name, is a compile error with an explanation available from spp-basic explain.

The same rule is why a type appears once per shape in a signature. A selector and a result collection can share a type, but two scalar records of one entity need two roles. A giving account and a receiving account are two roles, and one entity can play both.

Roles, take and play

A role carries all the facts of its player: the APP play binding when there is one, otherwise the first take in declaration order. Further takes only map their own sources onto those facts. The Petstore now binds its buyer, merchant and goods to the customer and product domains in the composing APP:

play Buyer by customer.Person {
    customerNumber = customerNumber;
    name = name;
    email = email;
    address = address;
}

A read by key lists the participants that supply the key: findLossRegisteringOperator by registrar.operatorNumber = "R1";, or findBook by selection. The key can also be read through a sibling role of the same player.

Quantum transfers: arrow only, and over collections

Direct assignment of a quantum field is a compile error. A change is a transfer, written with an arrow:

quantum update payOrderFunds(Buyer, Merchant, PaymentAgreement) {
    buyer.wallet -> merchant.cash : paymentAgreement.paymentAmount;
}

A transfer inside a for loop moves an amount for each element, and both endpoints can be elements of collections of roles over one player. The transaction locks every position in one sorted order, so two transactions moving between the same positions in opposite directions do not wait on each other. Bounds on the call are checked after every leg, and any failing leg rolls back the whole slip. Endpoints must be participant parameters or elements of a loop over a participant collection parameter, and a position may be keyed only once in its collection. Chapter 20 of the book walks through an example.

Several quantum stores bound to one QService are now settled as one command, so a transaction that touches attributes of more than one store reaches that service together. Stores bound to a different service are settled separately.

Locking moved from the find to the commit

Finds that hydrate the participants of an updating service no longer take row locks. Locks are taken afterwards, once per transaction: quantum positions in sorted order, and ordinary facts by comparing the revision token that the find read. A concurrent change is rejected with PERSISTENCE_VERSION_CONFLICT and the scenario is retried. A query that the APP declares locked keeps its lock.

Smaller changes

  • A failing check ends its enclosing block. Directly in a transaction block it rolls the transaction back; inside a nested serial { } it exits only that block; breakTransaction rolls back from any depth.
  • A boolean fact that nothing set is false in generated models.
  • A scenario that only reads can be declared readonly.
  • The basic SDK and the demonstrations build with JDK 25.

What has not changed

The three layers are the same: SPP states the business operation, APP selects realization and PHY supplies resources. The Petstore and bank deposit demonstrations are the executable reference. Both were brought to this syntax and compile against the current basic SDK. They are demonstrations, not evidence that every distributed failure mode or production integration is complete.