feat(pbs): support quoted project imports and installed authoring contracts

This commit is contained in:
2026-11-10 15:19:53 +00:00
parent ea1cc26fe3
commit b351f2e582
159 changed files with 11368 additions and 50 deletions
@@ -134,6 +134,27 @@ Nominal manifest metadata does not participate in this runtime boot choice.
The default evaluation rule is strict left-to-right unless a construct explicitly states otherwise.
Boolean `&&` and `and` are equivalent eager conjunction operators; `||` and `or`
are equivalent eager disjunction operators. None provides short-circuit
evaluation. Each operand is evaluated once, left then right, before the operation,
unless abrupt completion prevents subsequent evaluation. A false left operand
of conjunction or true left operand of disjunction does not skip the right one.
Use nested `if` when a later call or access must depend on a prior check:
```pbs
if index >= 0 {
if index < values.length {
if let value = values[index] { consume(value); }
}
}
```
This is an illustrative body fragment; `values`, `index` and `consume` come from
the surrounding program. `index < values.length && read(values[index])` does not
protect the access. The installed production examples count evaluation effects
and distinguish the safe guard from deliberately faulting eager operands.
### 7.2 Call evaluation
For application:
@@ -205,6 +226,11 @@ At minimum, the following are abrupt-completion forms:
`else` is extraction with fallback, not error handling.
In particular, `values[index] else fallback` evaluates the array access first.
A vacant position at a valid index can yield `none` and select the fallback;
an invalid index faults, including in an empty array, before any fallback can
recover a value. See specification 14 for the fixed-array contract.
### 9.4 Trap behavior
`optional` is trap-free by itself.