@cratis/pi 7.153.8 → 7.153.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/harnesses/copilot/instructions/fast-feedback.instructions.md +14 -1
- package/package/corpus/rules/fast-feedback.md +14 -1
- package/package/corpus/skills/cratis-screenplay-extension-packages/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/extension-components.md +1 -0
- package/package.json +1 -1
|
@@ -29,9 +29,22 @@ default) per [`general.md`](../../../rules/general.md).
|
|
|
29
29
|
- **[contract] Analyzers and generators are cheap or they are not added.** A slow one is an
|
|
30
30
|
upstream issue; see [`framework.md`](./framework.instructions.md) for how analyzers are written for speed.
|
|
31
31
|
- **[convention] Specify with the cheapest proof that is real.** Call a pure decision directly;
|
|
32
|
-
use
|
|
32
|
+
use the in-memory scenario helpers for slice behavior through the Arc/Chronicle pipeline, which
|
|
33
|
+
cost milliseconds. The per-artifact table is in
|
|
33
34
|
[`specs.scenarios.csharp.md`](./specs.scenarios.csharp.instructions.md); the universal base is in
|
|
34
35
|
[`specs.md`](./specs.instructions.md).
|
|
36
|
+
- **[convention] Hosts, kernels, containers and browsers prove only contracts this repository
|
|
37
|
+
owns:** storage format, wire protocol, migration, generated proxy or package, deploy image, or a
|
|
38
|
+
real third-party integration. Never start one to re-prove Arc or Chronicle behavior. Build it once
|
|
39
|
+
per class or collection, never per fact, and keep it out of the default pull-request lane unless
|
|
40
|
+
that contract changed.
|
|
41
|
+
- **[contract] Consumer routing/e2e and service-boundary regression tests stay in the
|
|
42
|
+
pull-request lane.** A consumer's test of its own routing, or of a boundary between its services,
|
|
43
|
+
protects a contract the repository owns; the previous bullet is not a reason to move it off pull
|
|
44
|
+
requests or retire it.
|
|
45
|
+
- **[contract] Retiring a consumer assertion needs a named upstream spec** in the owning
|
|
46
|
+
repository that fails when the consumer behavior breaks. Without that mapping the assertion
|
|
47
|
+
stays.
|
|
35
48
|
|
|
36
49
|
A cold full-suite run under a minute is the target for a repository's spec gate. It is a budget to
|
|
37
50
|
protect, not a reason to delete coverage.
|
|
@@ -28,9 +28,22 @@ default) per [`general.md`](./general.md).
|
|
|
28
28
|
- **[contract] Analyzers and generators are cheap or they are not added.** A slow one is an
|
|
29
29
|
upstream issue; see [`framework.md`](./framework.md) for how analyzers are written for speed.
|
|
30
30
|
- **[convention] Specify with the cheapest proof that is real.** Call a pure decision directly;
|
|
31
|
-
use
|
|
31
|
+
use the in-memory scenario helpers for slice behavior through the Arc/Chronicle pipeline, which
|
|
32
|
+
cost milliseconds. The per-artifact table is in
|
|
32
33
|
[`specs.scenarios.csharp.md`](./specs.scenarios.csharp.md); the universal base is in
|
|
33
34
|
[`specs.md`](./specs.md).
|
|
35
|
+
- **[convention] Hosts, kernels, containers and browsers prove only contracts this repository
|
|
36
|
+
owns:** storage format, wire protocol, migration, generated proxy or package, deploy image, or a
|
|
37
|
+
real third-party integration. Never start one to re-prove Arc or Chronicle behavior. Build it once
|
|
38
|
+
per class or collection, never per fact, and keep it out of the default pull-request lane unless
|
|
39
|
+
that contract changed.
|
|
40
|
+
- **[contract] Consumer routing/e2e and service-boundary regression tests stay in the
|
|
41
|
+
pull-request lane.** A consumer's test of its own routing, or of a boundary between its services,
|
|
42
|
+
protects a contract the repository owns; the previous bullet is not a reason to move it off pull
|
|
43
|
+
requests or retire it.
|
|
44
|
+
- **[contract] Retiring a consumer assertion needs a named upstream spec** in the owning
|
|
45
|
+
repository that fails when the consumer behavior breaks. Without that mapping the assertion
|
|
46
|
+
stays.
|
|
34
47
|
|
|
35
48
|
A cold full-suite run under a minute is the target for a repository's spec gate. It is a budget to
|
|
36
49
|
protect, not a reason to delete coverage.
|
|
@@ -25,7 +25,7 @@ An **extension package** is the code and contract that realizes a Screenplay `sy
|
|
|
25
25
|
4. **Settings.** `setting <name> [public | secret]`. `public` may reach a browser; `secret` never does; both is `PLAY1103`; neither stays with the backend.
|
|
26
26
|
5. **Components.** `kind react | mount | screenplay` (else `PLAY1100`), `platform`, `placeholder "<path>"` (required for `react` and `mount`, `PLAY1102`), typed `property` lines, `raises <signal>` with typed values, and `invokes <Ability>` for abilities the component may call through the host (must be declared, `PLAY1104`). A placeholder is static HTML: no script, inline event handler, `javascript:` URL or external reference, styles inline and images as `data:` URIs (`PLAY1113`).
|
|
27
27
|
6. **Backend.** Stage hosts backends outside its own process over a two-way gRPC protocol; the backend asks Stage for settings, secrets and telemetry through host services. Tier is chosen by Stage (`None`, `SharedHost`, `Native`, `Container`) from the contract's runtime. A backend is told its address, system and package digest by `STAGE_EXTENSION_*` environment variables. Read the Stage SDK page for the language chosen.
|
|
28
|
-
7. **Frontend.** A frontend component registers as its declared kind and must pass the Scene conformance kit; use the Scene contract page, not memory.
|
|
28
|
+
7. **Frontend.** A frontend component registers as its declared kind and must pass the Scene conformance kit; use the Scene contract page, not memory. A signal it raises runs the screen's `on <signal>` interaction (a Scene `SignalInteractionTrigger`, bound by Stage); see [handling a raised signal](https://github.com/Cratis/Stage/blob/main/Documentation/extensions/components.md#handling-a-raised-signal).
|
|
29
29
|
8. **Same name twice** (abilities, triggers, components, settings, ignoring case) is `PLAY1105`; anything else unrecognized in the file is `PLAY0998`.
|
|
30
30
|
|
|
31
31
|
A `.extensionignore` in the package folder names what the build does not ship (sources, specifications, scripts) so verify can tell it from what ships.
|
package/package/corpus/skills/cratis-screenplay-ui-composition/references/extension-components.md
CHANGED
|
@@ -14,6 +14,7 @@ screen Checkout
|
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
- `property` lines, `on <signal>` (camel case, a signal the component `raises`) and `signal.<value>` (a typed value the handled signal carries) are checked against the restored contract: `PLAY1114` unknown component, `PLAY1115` undeclared property, `PLAY1116` signal not raised, `PLAY1117` value the signal does not carry or no signal handled. `on <System>.<Trigger>` is checked against the contract's triggers (`PLAY1112`).
|
|
17
|
+
- At run time a handled signal is a Scene `SignalInteractionTrigger` (`{ "signalName": "succeeded" }`), resolved with `resolveSignalBehaviors`; it never fires an application `trigger` of the same name, and the reverse. Stage binds `on <signal>` to it when the name is a signal the component's contract declares, runs the behaviors with the Scene interaction engine when the component raises the signal, and reads `signal.<value>` from the values it raised. Do not model a signal as a `trigger`, and do not hand-wire a DOM event for it. See Stage [extension components](https://github.com/Cratis/Stage/blob/main/Documentation/extensions/components.md#handling-a-raised-signal) and Scene [binding a raised signal](https://github.com/Cratis/Scene/blob/main/Documentation/extensions/contract.md).
|
|
17
18
|
- A `ui profile` platform that the component's `platform` lines do not list is the warning `PLAY1118`.
|
|
18
19
|
- Nothing is checked until the contract is restored; an unrestored contract is reported where the system names the extension (`PLAY1108`).
|
|
19
20
|
- Read Screenplay [screens: extension components](https://github.com/Cratis/Screenplay/blob/main/Documentation/screenplay/screens.md#extension-components), [interaction triggers](https://github.com/Cratis/Screenplay/blob/main/Documentation/screenplay/interactions.md#interaction-triggers) and the [UI contract](https://github.com/Cratis/Screenplay/blob/main/Documentation/screenplay/ui-contract.md#extension-components) for exact placement. Stage's component hosting is in its [extensions documentation](https://github.com/Cratis/Stage/blob/main/Documentation/extensions/index.md); do not claim a component renders without a render and run.
|