@stravica-ai/rcf-schemas 0.6.2 → 0.7.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,63 @@ All notable changes to `@stravica-ai/rcf-schemas` are documented in this file.
4
4
 
5
5
  The format roughly follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Pre-1.0 breaking changes are signalled by a minor bump per semver 0.x convention.
6
6
 
7
+ ## 0.7.0 - 2026-10-11
8
+
9
+ Minor bump for the discovery-UX gate: adds an optional `journeyStepIds[]` carrier on the FBS schema and a new `journeyStub` review-finding kind on `reviewAudit[].testTheatreFindings[].kind`. Both additions are additive at the shape level; every 0.6.3-valid document keeps validating. The bump is a minor (not a patch) because the review-kind enum is a shared vocabulary and the enum extension is a vocabulary change consumers may want to switch on, following the project's pre-1.0 convention. Canonical `$id` URLs are kept at `v0.6.0` on this release: no schema's `$id` or cross-file `$ref` changes, so every validator keyed to the `v0.6.0` URLs picks up the additions by file bytes alone. Rolling the URLs to `v0.7.0` is deferred to HQ at publish time if the convention calls for it.
10
+
11
+ ### Added
12
+
13
+ - **`fbs.schema.json`**: new optional top-level `journeyStepIds` property. Shape: `array` with items `{ type: "string", minLength: 1 }` and `uniqueItems: true`. Carries discovery journey step ids (shape `JNY-nnn-nnn`, owned by the discovery journey record at `rcf/discovery/journey.json`, minted by the discovery binder as `JNY-nnn-nnn` under their parent `JNY-nnn` journey) that the build unit delivers. Written at Define; read by the build-review surface so a UI-bearing FBS that leaves a journey step unbound, or a discovery step with no FBS binding, raises the new `journeyStub` finding kind. Pre-0.7.0 FBSes stay valid: the field is optional and no existing property changes.
14
+ - **`manifest.schema.json`**: `reviewAudit[].testTheatreFindings[].kind` enum gains `journeyStub` (appended between `uiBaselineDrift` and `otherDeclared`, nothing reordered). The `allOf` conditional that lets `uiBaselineDrift` findings omit `tsId` is widened via `anyOf` so `journeyStub` findings also omit `tsId`: they anchor on an FBS id or a `JNY-nnn-nnn` step id via `anchorId`, same pattern as `uiBaselineDrift`. Every other kind still requires `tsId`; the back-compat allOf arm is unchanged for them.
15
+ - **`manifest.schema.json`**: top-level `description` extended to name the new `journeyStub` kind, following the "From 0.X.Y the manifest additionally carries..." precedent set at 0.4.1, 0.4.4, 0.4.5, 0.5.1 and 0.6.3.
16
+ - **Fixtures (valid)**: `fixtures/valid/fbs/fbs-008-journey-step-ids.json` (FBS-215 carrying three `JNY-nnn-nnn` ids), `fixtures/valid/manifest/manifest-017-review-audit-journey-stub.json` (one `reviewAudit` with two `journeyStub` findings: one anchored on an FBS id, one anchored on a `JNY-nnn-nnn` step id).
17
+ - **Fixtures (invalid)**: `fixtures/invalid/fbs/fbs-014-journey-step-ids-non-string.json` (numeric item), `fixtures/invalid/fbs/fbs-015-journey-step-ids-duplicate.json` (two identical entries, `uniqueItems`), `fixtures/invalid/fbs/fbs-016-journey-step-ids-empty-string.json` (empty-string item, items `minLength` 1).
18
+ - **Tests**: `test/fbs.test.js` gains 9 cases for `journeyStepIds` (back-compat absent, populated, empty array, free-form ids, non-string rejected, empty-string rejected, duplicate rejected, non-array rejected, alongside `contextRequirements.standardIds`). `test/manifest.test.js` gains 5 cases for the `journeyStub` kind (anchor on FBS id, anchor on `JNY-nnn-nnn` step id, finding without `tsId` validates, bad severity rejected, non-exempt kind still requires `tsId`). Total suite grows from 365 to 379.
19
+
20
+ ### Changed
21
+
22
+ - No `$id` URL roll on this minor bump: the schemas remain keyed to `https://schemas.stravica.io/rcf/v0.6.0/...`. Deviates from the 0.3.0 / 0.4.0 / 0.5.0 / 0.6.0 precedent of rolling the URL on a minor; retained here because the scope is strictly additive and rolling the URL is itself a consumer-visible change that would be larger than the schema delta. Final call on URL rolling at publish time; nothing on this PR precommits it.
23
+
24
+ ### Migration
25
+
26
+ - **Existing chains on 0.6.3**: bump `@stravica-ai/rcf-schemas` to `0.7.0`. Every existing document keeps validating; both additions are optional and unknown to pre-0.7.0 callers.
27
+ - **To adopt `journeyStepIds` on an FBS**: list the discovery journey step ids the build unit delivers; the discovery record is the source of truth for the ids. The field is optional and may be left absent until the FBS is bound.
28
+ - **To emit a `journeyStub` finding from the review surface**: switch the current `otherDeclared` + `kindDescription: "journeyStub: ..."` path to `kind: "journeyStub"`, anchored on the relevant FBS id or `JNY-nnn-nnn` step id via `anchorId`.
29
+ - **Consumers to bump**: `rcf-lite` (its `packages/rcf-lite/package.json` pins the schemas package exact; the discovery-UX-gate train bumps it to `0.7.0`).
30
+
31
+ ### Notes
32
+
33
+ - Review-kind enum additive-safety was verified in-tree: `rcf-lite` carries only a JSDoc `TestTheatreFindingKind` typedef and non-exhaustive consumption of the `kind` string. No exhaustive `switch` on the enum surfaced in a repository walk at relay time.
34
+ - The `allOf` widening uses the same `if`/`then` conditional pattern the schema already uses for `uiBaselineDrift` (0.4.2) and `applicable` (0.6.3), with the `if` moved into an `anyOf` so both exempt kinds share one arm. The `else` arm is byte-identical to the pre-0.7.0 clause; every pre-0.7.0 finding keeps hitting the same requiredness.
35
+ - `back-compat-freeze.test.js` continues to pass: the frozen pre-0.4.4 manifest fixture is unaffected by the enum addition or the allOf widening.
36
+ - Scripted back-compat pass at authoring time: every 0.6.3 fixture at main `990875b4` (63 valid + 87 invalid = 150 total) validates to the same outcome against the 0.7.0 schemas with zero drift.
37
+
38
+ ## 0.6.3 - 2026-09-17
39
+
40
+ Patch bump for the last two schema-shaped claims on the rcf-lite 0.28.0 referee-guarantees train (docs claims C-33 and C-38). Adds an additive, optional `shipWithoutEval[]` carrier on the manifest (sister of `shipWithoutVerified`, written by `rcf finalise --ship-without-eval`), and an additive, optional `applicable` boolean on `browserVerificationProbePackCheck` (mirrors the pack-level `applicable`, so a check whose own `appliesTo` predicate returned false records `applicable: false` at the check level without a stray verdict or severity). Every change is additive: every 0.6.2-valid manifest keeps validating.
41
+
42
+ Patch semver convention: URLs pinned at `v0.6.0`. No breaking change; every 0.6.2-valid document keeps validating.
43
+
44
+ ### Added
45
+
46
+ - **`manifest.schema.json`**: new optional `shipWithoutEval` array on the top-level properties. Items are the new `$defs.shipWithoutEvalRecord` def: required `id` (pattern `^swe-FBS-\d{3,}(?:-[a-z0-9]+(?:-[a-z0-9]+)*)?-\d+$`, mirroring the `swv-` family and accepting both numeric-only and kebab-slug FBS ids), `fbsId`, `ackedAt` (ISO timestamp), `reason` (min-length-1 string, the operator's `--ship-without-eval "<reason>"` argument), `declaredAcs` (min-items-1, items are the new `$defs.shipWithoutEvalDeclaredAc` def with required `acId` and `verdict` enum `EVAL-MISSING | EVAL-BELOW-THRESHOLD`, plus an optional verify-supplied `reason`), and `reportPath` (min-length-1 string). `additionalProperties: false` on both new objects. Written by `packages/rcf-lite/src/finalise/ship-without-eval.js`; the writer's file header (rcf-lite `main` at time of this release) already names the exact deltas landed here.
47
+ - **`manifest.schema.json`**: new optional `applicable` boolean on `$defs.browserVerificationProbePackCheck`. When present and false, `verdict` and `severity` are omitted and the aggregate verdict rule (per spec section 3.4) treats the check as neither pass nor fail. When absent or true, the pre-0.6.3 requiredness of `verdict` and `severity` is preserved via an `if/then` guard, so every 0.6.1-valid check keeps validating. Mirrors the pack-level `applicable` on `browserVerificationProbePack`. Emitted by `packages/rcf-lite/src/browser-verify/pack-runner.js` from rcf-lite 0.28.0 for a check whose own `appliesTo` predicate returned false (rcf-lite `main` file header names the check-level `applicable: false` write path that this schema addition unblocks).
48
+ - **`manifest.schema.json`**: top-level `description` extended to name the new `shipWithoutEval[]` field and the check-level `applicable` flag, following the "From 0.X.Y the manifest additionally carries..." precedent set at 0.4.1, 0.4.4, 0.4.5, and 0.5.1.
49
+ - **Fixtures (valid)**: `fixtures/valid/manifest/manifest-015-ship-without-eval.json` (one ack with two `declaredAcs`, one carrying an optional verify-supplied `reason`, both verdict enum values exercised), `fixtures/valid/manifest/manifest-016-probe-pack-check-applicable-false.json` (a probe-pack with three checks: two normal `pass`, one `applicable: false` with a detail and no verdict / severity).
50
+ - **Fixtures (invalid)**: `fixtures/invalid/manifest/manifest-024-ship-without-eval-bad-id.json` (id does not match the `swe-FBS-<n>` pattern), `fixtures/invalid/manifest/manifest-025-ship-without-eval-missing-reason.json` (record missing the required `reason`), `fixtures/invalid/manifest/manifest-026-probe-pack-check-applicable-omitted-no-verdict.json` (a check omits `applicable` and omits `verdict` / `severity`, so the back-compat requiredness fires).
51
+ - **Tests**: `test/manifest.test.js` gains 15 cases: 11 for `shipWithoutEval` (positive shape, both verdict enum values, slugged FBS id, id-pattern rejection, verdict enum restriction, `reason` requiredness with both missing and empty-string, empty `declaredAcs` rejection, missing `fbsId`, empty `reportPath`, unknown-property rejection on the record, and a back-compat absent-`shipWithoutEval` case); 4 for the check-level `applicable` field (positive `applicable: false` with no verdict / severity, `applicable: true` still requires verdict + severity, back-compat check without `applicable` still requires verdict + severity, `applicable` typed as boolean not string). Total suite grows from 350 to 365.
52
+
53
+ ### Migration
54
+
55
+ - **Existing chains on 0.6.2**: bump `@stravica-ai/rcf-schemas` to `0.6.3`. Every existing document keeps validating; both additions are optional and unknown to pre-0.6.3 callers.
56
+ - **rcf-lite consumer bump**: `rcf-lite` pins `@stravica-ai/rcf-schemas` exactly. rcf-lite 0.28.0 already emits both shapes (the `shipWithoutEval[]` writer and the check-level `applicable: false` path); the follow-up rcf-lite PR bumps its schema pin to `0.6.3` and drops the two "schema-skipped" workarounds (the manifest-write validator skip in `ship-without-eval.js` and the `verdict: 'skipped'` fallback in the check-level applicability arm of `pack-runner.js`) so both writers persist through the strict validator.
57
+
58
+ ### Notes
59
+
60
+ - Traces to work item `w-2026-09-16-dave-019` (project `rcf-lite-wsd`) and the referee-guarantees train that shipped rcf-lite 0.28.0 (referee page docs claims C-33 for `shipWithoutEval` and C-38 for check-level `applicable`).
61
+ - The check-level `applicable` change uses a JSON Schema `if / then` conditional (mirroring the pattern set by the `uiBaselineDrift` per-kind `tsId` requiredness rule at 0.4.2): the `if` matches only when `applicable` is present with value `false`, so the `then` clause requiring `verdict` and `severity` is applied to every other case (absent `applicable` and `applicable: true` alike). Back-compat for every pre-0.6.3 probe-pack check is preserved.
62
+ - Sub-defs for `shipWithoutEval` sit alongside the existing `shipWithoutVerifiedRecord` and `shipWithoutVerifiedDeclaredAc` peers; the id family (`swe-FBS-<n>`) and verdict enum (`EVAL-MISSING | EVAL-BELOW-THRESHOLD`) are the eval-node analogues of the verify-integrity `swv-FBS-<n>` and `MOCK-ONLY-DECLARED | BLOCKED-BY-DECLARATION` shapes.
63
+
7
64
  ## 0.6.2 - 2026-09-09
8
65
 
9
66
  Patch bump for four additive, optional fields that let a blueprint's own layers point at their owning artefacts rather than restating shapes and promises inline. Adds `deliveredBy` on the requirement record (naming the TAC or ADR that delivers the requirement's externally promised property), and `ownerRef`, `disposition`, and `vendorCitation` on the acceptance criterion inline on a user story. Every change is additive: every 0.6.1-valid document remains valid.
package/docs/fbs.md CHANGED
@@ -36,6 +36,7 @@ Structurally, each FBS carries the mandatory `bsId` back-reference plus `buildOr
36
36
  | `domain` | string | Free-form domain label. |
37
37
  | `notes` | string | FBS-specific gotchas. |
38
38
  | `noCodeNodes` | boolean | Declares this build spec produces no traceable code (docs-only or config-only). `rcf build --mark complete` records it via `--no-code-nodes` and the CodeNode gate skips the spec. Added in 0.3.1. |
39
+ | `journeyStepIds` | array of non-empty strings, `uniqueItems: true` | Discovery journey step ids (shape `JNY-nnn-nnn`, owned by the discovery journey record at `rcf/discovery/journey.json`) that this build unit delivers. Written at Define; read by the build-review surface so a UI-bearing FBS that leaves a journey step unbound, or a discovery step with no FBS binding, raises a `journeyStub` review finding. Optional; pre-0.7.0 FBSes keep validating. Added in 0.7.0. |
39
40
 
40
41
  ## `contextRequirements` shape
41
42
 
package/docs/manifest.md CHANGED
@@ -59,6 +59,20 @@ SSoT discipline. Every parent-child edge is encoded exactly once, on the child,
59
59
 
60
60
  Enumerating children in the manifest as well would create two sources of truth; pick one. The child owns the reference. The manifest stays small (~8 properties) and a new US / TAC / ADR / FBS / REQ / TS never requires a manifest edit.
61
61
 
62
+ ## `reviewAudit[].testTheatreFindings[].kind` vocabulary
63
+
64
+ Review findings on a `reviewAudit` record carry a `kind` from a fixed enum. The vocabulary grows additively; a consumer that switches on the enum should treat an unknown value as "unrecognised" rather than fail-closed.
65
+
66
+ | Kind | Introduced | Anchor | Notes |
67
+ |---|---|---|---|
68
+ | `mockOnlyIntegrationClaim` | 0.4.0 | `tsId` required | Test suite claims an integration level but the runtime profile is mock. |
69
+ | `testPointerBroken` | 0.4.0 | `tsId` required | The TS/TC pointer resolves to no code node. |
70
+ | `assertionStrengthWeak` | 0.4.0 | `tsId` required | Assertion found too weak for the AC it attests. |
71
+ | `acIdsCoverageDrift` | 0.4.0 | `tsId` required | AC coverage drifted between declared and attested. |
72
+ | `uiBaselineDrift` | 0.4.2 | `anchorId` (FBS id or file path) | UI implementation contradicts a declared uiBaseline default. Exempt from the `tsId` requirement. |
73
+ | `journeyStub` | 0.7.0 | `anchorId` (FBS id or discovery `JNY-nnn-nnn` step id) | Build-review surface flag: a UI-bearing FBS whose `journeyStepIds[]` is empty, or a discovery step with no FBS binding. Exempt from the `tsId` requirement; the sibling pattern of `uiBaselineDrift`. |
74
+ | `otherDeclared` | 0.4.0 | `tsId` required; `kindDescription` required in practice | Catch-all; carries free-text `kindDescription`. |
75
+
62
76
  ## Example
63
77
 
64
78
  ```json
@@ -0,0 +1,14 @@
1
+ {
2
+ "fbsId": "FBS-215",
3
+ "prdId": "PRD-001",
4
+ "bsId": "BS-001",
5
+ "buildOrder": 15,
6
+ "executionStatus": "notStarted",
7
+ "title": "journeyStepIds non-string item",
8
+ "summary": "journeyStepIds carries a numeric entry; the schema requires string items.",
9
+ "acIds": ["AC-001"],
10
+ "dependsOnFbsIds": [],
11
+ "journeyStepIds": ["JNY-001-001", 2],
12
+ "createdAt": "2026-10-11T00:00:00Z",
13
+ "updatedAt": "2026-10-11T00:00:00Z"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "fbsId": "FBS-215",
3
+ "prdId": "PRD-001",
4
+ "bsId": "BS-001",
5
+ "buildOrder": 15,
6
+ "executionStatus": "notStarted",
7
+ "title": "journeyStepIds duplicate items",
8
+ "summary": "journeyStepIds carries two identical entries; uniqueItems is enforced.",
9
+ "acIds": ["AC-001"],
10
+ "dependsOnFbsIds": [],
11
+ "journeyStepIds": ["JNY-001-001", "JNY-001-001"],
12
+ "createdAt": "2026-10-11T00:00:00Z",
13
+ "updatedAt": "2026-10-11T00:00:00Z"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "fbsId": "FBS-215",
3
+ "prdId": "PRD-001",
4
+ "bsId": "BS-001",
5
+ "buildOrder": 15,
6
+ "executionStatus": "notStarted",
7
+ "title": "journeyStepIds empty-string entry",
8
+ "summary": "journeyStepIds carries an empty-string entry; items have minLength 1.",
9
+ "acIds": ["AC-001"],
10
+ "dependsOnFbsIds": [],
11
+ "journeyStepIds": ["JNY-001-001", ""],
12
+ "createdAt": "2026-10-11T00:00:00Z",
13
+ "updatedAt": "2026-10-11T00:00:00Z"
14
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "projectName": "Ship-without-eval bad id",
4
+ "prd": { "id": "PRD-001", "path": "rcf/prd.json" },
5
+ "tad": { "id": "TAD-001", "path": "rcf/tad.json" },
6
+ "bs": { "id": "BS-001", "path": "rcf/build-sequence.json" },
7
+ "shipWithoutEval": [
8
+ {
9
+ "id": "not-a-swe-id",
10
+ "fbsId": "FBS-015",
11
+ "ackedAt": "2026-09-16T14:20:00Z",
12
+ "reason": "reason string",
13
+ "declaredAcs": [
14
+ { "acId": "AC-1501-2", "verdict": "EVAL-MISSING" }
15
+ ],
16
+ "reportPath": ".rcf-verify-report.json"
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "projectName": "Ship-without-eval missing reason",
4
+ "prd": { "id": "PRD-001", "path": "rcf/prd.json" },
5
+ "tad": { "id": "TAD-001", "path": "rcf/tad.json" },
6
+ "bs": { "id": "BS-001", "path": "rcf/build-sequence.json" },
7
+ "shipWithoutEval": [
8
+ {
9
+ "id": "swe-FBS-015-1",
10
+ "fbsId": "FBS-015",
11
+ "ackedAt": "2026-09-16T14:20:00Z",
12
+ "declaredAcs": [
13
+ { "acId": "AC-1501-2", "verdict": "EVAL-MISSING" }
14
+ ],
15
+ "reportPath": ".rcf-verify-report.json"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "projectName": "Probe-pack check omits verdict without applicable:false",
4
+ "prd": { "id": "PRD-001", "path": "rcf/prd.json" },
5
+ "tad": { "id": "TAD-001", "path": "rcf/tad.json" },
6
+ "bs": { "id": "BS-001", "path": "rcf/build-sequence.json" },
7
+ "browserVerification": [
8
+ {
9
+ "id": "bv-FBS-042-3",
10
+ "fbsId": "FBS-042",
11
+ "createdAt": "2026-09-16T15:10:00Z",
12
+ "mode": "agentScreenshotCritique",
13
+ "runtimeProfile": "local-dev",
14
+ "runtimeUrl": "http://127.0.0.1:3000",
15
+ "routesChecked": [
16
+ { "path": "/", "screenshotPath": ".rcf/artefacts/x.png", "themeApplied": "light" }
17
+ ],
18
+ "invariantChecks": [
19
+ { "invariant": "sharedNavPresent", "verdict": "pass" }
20
+ ],
21
+ "probePacks": [
22
+ {
23
+ "packName": "application-datatable-grid-shell",
24
+ "packVersion": "1.0.0",
25
+ "blueprintSlug": "application-datatable",
26
+ "applicable": true,
27
+ "checks": [
28
+ { "id": "AC-17101-2" }
29
+ ]
30
+ }
31
+ ],
32
+ "verdict": "pass"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "fbsId": "FBS-215",
3
+ "prdId": "PRD-001",
4
+ "bsId": "BS-001",
5
+ "buildOrder": 15,
6
+ "executionStatus": "notStarted",
7
+ "title": "Discovery UX gate: journeyStub review-kind binding",
8
+ "summary": "Bind the FBS to the discovery journey steps it delivers so build review can detect unbound steps and unbound UI-bearing specs.",
9
+ "acIds": ["AC-215-1", "AC-215-2"],
10
+ "dependsOnFbsIds": ["FBS-210"],
11
+ "journeyStepIds": ["JNY-001-001", "JNY-001-002", "JNY-002-001"],
12
+ "createdAt": "2026-10-11T00:00:00Z",
13
+ "updatedAt": "2026-10-11T00:00:00Z"
14
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "projectName": "Ship-without-eval ack coverage",
4
+ "prd": { "id": "PRD-001", "path": "rcf/prd.json" },
5
+ "tad": { "id": "TAD-001", "path": "rcf/tad.json" },
6
+ "bs": { "id": "BS-001", "path": "rcf/build-sequence.json" },
7
+ "shipWithoutEval": [
8
+ {
9
+ "id": "swe-FBS-015-1",
10
+ "fbsId": "FBS-015",
11
+ "ackedAt": "2026-09-16T14:20:00Z",
12
+ "reason": "grading rubric still needs an operator pass; ship the FBS on shape review only",
13
+ "declaredAcs": [
14
+ {
15
+ "acId": "AC-1501-2",
16
+ "verdict": "EVAL-MISSING",
17
+ "reason": "no EVAL doc authored for the non-deterministic AC"
18
+ },
19
+ {
20
+ "acId": "AC-1501-3",
21
+ "verdict": "EVAL-BELOW-THRESHOLD"
22
+ }
23
+ ],
24
+ "reportPath": ".rcf-verify-report.json"
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "projectName": "Probe-pack check-level applicable:false coverage",
4
+ "prd": { "id": "PRD-001", "path": "rcf/prd.json" },
5
+ "tad": { "id": "TAD-001", "path": "rcf/tad.json" },
6
+ "bs": { "id": "BS-001", "path": "rcf/build-sequence.json" },
7
+ "browserVerification": [
8
+ {
9
+ "id": "bv-FBS-042-1",
10
+ "fbsId": "FBS-042",
11
+ "createdAt": "2026-09-16T15:00:00Z",
12
+ "mode": "agentScreenshotCritique",
13
+ "runtimeProfile": "local-dev",
14
+ "runtimeUrl": "http://127.0.0.1:3000",
15
+ "routesChecked": [
16
+ { "path": "/", "screenshotPath": ".rcf/artefacts/bv-FBS-042-1/root.png", "themeApplied": "light" }
17
+ ],
18
+ "invariantChecks": [
19
+ { "invariant": "sharedNavPresent", "verdict": "pass" }
20
+ ],
21
+ "probePacks": [
22
+ {
23
+ "packName": "application-datatable-grid-shell",
24
+ "packVersion": "1.0.0",
25
+ "blueprintSlug": "application-datatable",
26
+ "applicable": true,
27
+ "checks": [
28
+ { "id": "AC-17101-1", "verdict": "pass", "severity": "block" },
29
+ { "id": "AC-17101-2", "applicable": false, "detail": "check-level appliesTo: capability datatable-server-side-sort not applied" },
30
+ { "id": "AC-17101-3", "verdict": "pass", "severity": "warn" }
31
+ ]
32
+ }
33
+ ],
34
+ "verdict": "pass"
35
+ }
36
+ ]
37
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "projectName": "journeyStub review-kind coverage",
4
+ "prd": { "id": "PRD-001", "path": "rcf/prd.json" },
5
+ "tad": { "id": "TAD-001", "path": "rcf/tad.json" },
6
+ "bs": { "id": "BS-001", "path": "rcf/build-sequence.json" },
7
+ "reviewAudit": [
8
+ {
9
+ "id": "ra-FBS-215-1",
10
+ "fbsId": "FBS-215",
11
+ "createdAt": "2026-10-11T15:30:00Z",
12
+ "testTheatreFindings": [
13
+ {
14
+ "anchorId": "FBS-215",
15
+ "kind": "journeyStub",
16
+ "detail": "FBS-215 is UI-bearing (uiBearing: true) but journeyStepIds[] is empty; the discovery journey record binds no step to this build.",
17
+ "severity": "block"
18
+ },
19
+ {
20
+ "anchorId": "JNY-001-003",
21
+ "kind": "journeyStub",
22
+ "detail": "Discovery step JNY-001-003 has no FBS binding; no FBS lists it in journeyStepIds[].",
23
+ "severity": "warn"
24
+ }
25
+ ],
26
+ "verdict": "block"
27
+ }
28
+ ]
29
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stravica-ai/rcf-schemas",
3
- "version": "0.6.2",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "description": "JSON Schemas for the Requirements Confidence Framework (RCF). Language-neutral. The contract every RCF tool keys to.",
6
6
  "license": "Apache-2.0",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schemas.stravica.io/rcf/v0.6.0/fbs.schema.json",
4
4
  "title": "RCF Functional Build Spec",
5
- "description": "Functional Build Specification. One per build session. Carries the mandatory bsId parent reference plus buildOrder and executionStatus. Owns its acIds[] scope (Acceptance Criteria delivered by this FBS) and its dependsOnFbsIds[] graph edge (other FBSs this one depends on). From 0.4.4 the contextRequirements block carries an optional standardIds[] array. It is the host for the bundle assembler's selective-retrieval step: the assembler analyses the FBS work text against the manifest.standards[] tag vocabulary and populates standardIds for that bundle only, or honours an operator override authored on the FBS. Every added field is optional; pre-0.4.4 FBSes remain valid.",
5
+ "description": "Functional Build Specification. One per build session. Carries the mandatory bsId parent reference plus buildOrder and executionStatus. Owns its acIds[] scope (Acceptance Criteria delivered by this FBS) and its dependsOnFbsIds[] graph edge (other FBSs this one depends on). From 0.4.4 the contextRequirements block carries an optional standardIds[] array. It is the host for the bundle assembler's selective-retrieval step: the assembler analyses the FBS work text against the manifest.standards[] tag vocabulary and populates standardIds for that bundle only, or honours an operator override authored on the FBS. From 0.7.0 the FBS additionally carries an optional journeyStepIds[] array: discovery journey step ids (JNY-nnn-nnn) owned by the discovery journey record that this build unit delivers, so the build-review surface can detect unbound discovery steps and unbound UI-bearing build specs. Every added field is optional; pre-0.4.4 FBSes remain valid.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "required": [
@@ -37,6 +37,12 @@
37
37
  "minItems": 0,
38
38
  "items": { "$ref": "https://schemas.stravica.io/rcf/v0.6.0/common.schema.json#/$defs/fbsId" }
39
39
  },
40
+ "journeyStepIds": {
41
+ "type": "array",
42
+ "items": { "type": "string", "minLength": 1 },
43
+ "uniqueItems": true,
44
+ "description": "Discovery journey step ids (shape JNY-nnn-nnn, owned by the discovery journey record at rcf/discovery/journey.json) that this build unit delivers. Written at Define by the author or the discovery binder; read by the build-review surface so a UI-bearing FBS that leaves a journey step unbound, or a discovery step with no FBS binding, raises a journeyStub review finding. Optional; pre-0.7.0 FBSes keep validating with no journeyStepIds field present."
45
+ },
40
46
  "contextRequirements": {
41
47
  "type": "object",
42
48
  "additionalProperties": false,
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schemas.stravica.io/rcf/v0.6.0/manifest.schema.json",
4
4
  "title": "RCF Project Manifest",
5
- "description": "Project manifest. Roots-only shape: declares prd, tad, bs. Children are owned by their parents and discovered by walking from the roots. From 0.4.0 the manifest also carries optional records for pre-flight configuration, review audits, UI baselines, browser verification, baseline-AC opt-outs, intake classification, register-regression canaries, and the review-surface state. From 0.4.1 the manifest additionally carries optional shipWithoutVerified acknowledgements written by rcf finalise --ship-without-verified. From 0.4.2 the testTheatreFinding shape carries an optional anchorId and drops tsId from its required list when kind is uiBaselineDrift (the drift finding is not anchored on a test suite); every other kind still requires tsId, and any 0.4.0- or 0.4.1-valid record remains valid. From 0.4.4 the manifest carries two optional additive sections that host the blueprint-library mechanism: blueprints[] (applied-blueprints registry written by rcf blueprint add / remove / upgrade) and standards[] (standards-pack registry written at rcf init and rcf standards add). From 0.4.5 the manifest additionally carries an optional resolutions[] section: one entry per operator-authored resolution of a cross-blueprint conflict, keyed at first by the globalAdrTopic conflict class (two applied blueprints each contributing a scope:global ADR on the same topic, resolved by a project-level ADR that supersedes both). Written by rcf blueprint supersede and by rcf blueprint add --resolve; read by the conflict detector so the resolved conflict is honoured and both blueprint ADRs may co-reside as superseded history. From 0.5.1 the appliedBlueprintRecord carries an optional libraryPrefix (blueprintSlug), stamped when an apply resolves through a registered external blueprint library so the library-registered ownership is durable on the record itself rather than derived by string-matching source; absent for shelf or path applies. Every added field is optional; pre-0.4.0 manifests remain valid.",
5
+ "description": "Project manifest. Roots-only shape: declares prd, tad, bs. Children are owned by their parents and discovered by walking from the roots. From 0.4.0 the manifest also carries optional records for pre-flight configuration, review audits, UI baselines, browser verification, baseline-AC opt-outs, intake classification, register-regression canaries, and the review-surface state. From 0.4.1 the manifest additionally carries optional shipWithoutVerified acknowledgements written by rcf finalise --ship-without-verified. From 0.4.2 the testTheatreFinding shape carries an optional anchorId and drops tsId from its required list when kind is uiBaselineDrift (the drift finding is not anchored on a test suite); every other kind still requires tsId, and any 0.4.0- or 0.4.1-valid record remains valid. From 0.4.4 the manifest carries two optional additive sections that host the blueprint-library mechanism: blueprints[] (applied-blueprints registry written by rcf blueprint add / remove / upgrade) and standards[] (standards-pack registry written at rcf init and rcf standards add). From 0.4.5 the manifest additionally carries an optional resolutions[] section: one entry per operator-authored resolution of a cross-blueprint conflict, keyed at first by the globalAdrTopic conflict class (two applied blueprints each contributing a scope:global ADR on the same topic, resolved by a project-level ADR that supersedes both). Written by rcf blueprint supersede and by rcf blueprint add --resolve; read by the conflict detector so the resolved conflict is honoured and both blueprint ADRs may co-reside as superseded history. From 0.5.1 the appliedBlueprintRecord carries an optional libraryPrefix (blueprintSlug), stamped when an apply resolves through a registered external blueprint library so the library-registered ownership is durable on the record itself rather than derived by string-matching source; absent for shelf or path applies. From 0.6.3 the manifest additionally carries an optional shipWithoutEval[] section written by rcf finalise --ship-without-eval (sister of shipWithoutVerified; acknowledges EVAL-MISSING or EVAL-BELOW-THRESHOLD per-AC verdicts on the verify report and carries the operator's reason string); and the browserVerificationProbePackCheck item accepts an optional applicable:boolean flag, letting a check-level appliesTo predicate record applicable:false without a verdict or severity (aggregate verdict treats such a check as neither pass nor fail). From 0.7.0 the testTheatreFinding kind enum additionally accepts journeyStub (sibling of uiBaselineDrift), carried by the build-review surface when the FBS-to-discovery-journey binding is incomplete; the enum extension is additive, every 0.6.3-valid finding keeps validating. Every added field is optional; pre-0.4.0 manifests remain valid.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "required": ["version", "projectName", "prd", "tad", "bs"],
@@ -56,6 +56,11 @@
56
56
  "items": { "$ref": "#/$defs/shipWithoutVerifiedRecord" },
57
57
  "description": "Operator acknowledgements recorded when rcf finalise --ship-without-verified acknowledges a MOCK-ONLY-DECLARED or BLOCKED-BY-DECLARATION verdict on the verify report and ships the FBS at complete without promoting to verified. One entry per acknowledgement (verification-integrity-cluster-spec section 5.2). The ack is durable and greppable at ship time."
58
58
  },
59
+ "shipWithoutEval": {
60
+ "type": "array",
61
+ "items": { "$ref": "#/$defs/shipWithoutEvalRecord" },
62
+ "description": "Operator acknowledgements recorded when rcf finalise --ship-without-eval acknowledges an EVAL-MISSING or EVAL-BELOW-THRESHOLD per-AC verdict on the verify report and ships the FBS at complete without a passing EVAL. One entry per acknowledgement. Sister of shipWithoutVerified; carries the operator's --ship-without-eval reason string on the record (rcf-eval-node spec sections 5.2 and 8). The ack is durable and greppable at ship time."
63
+ },
59
64
  "blueprints": {
60
65
  "type": "array",
61
66
  "items": { "$ref": "#/$defs/appliedBlueprintRecord" },
@@ -209,9 +214,10 @@
209
214
  "assertionStrengthWeak",
210
215
  "acIdsCoverageDrift",
211
216
  "uiBaselineDrift",
217
+ "journeyStub",
212
218
  "otherDeclared"
213
219
  ],
214
- "description": "Category of the finding. uiBaselineDrift is added by the UI-design-gate track for FBS implementations that contradict a uiBaseline default. otherDeclared requires a kindDescription."
220
+ "description": "Category of the finding. uiBaselineDrift is added by the UI-design-gate track for FBS implementations that contradict a uiBaseline default. journeyStub (added 0.7.0) is raised by the build-review surface when the FBS-to-journey binding (fbs.journeyStepIds[] against the discovery journey record) is incomplete: a discovery step with no FBS binding, or a UI-bearing FBS whose journeyStepIds[] is empty. Previously these cases went out as otherDeclared with a `journeyStub:` detail prefix; the dedicated kind lets consumers key on it without parsing the detail string. otherDeclared requires a kindDescription."
215
221
  },
216
222
  "kindDescription": {
217
223
  "type": "string",
@@ -230,7 +236,12 @@
230
236
  },
231
237
  "allOf": [
232
238
  {
233
- "if": { "properties": { "kind": { "const": "uiBaselineDrift" } }, "required": ["kind"] },
239
+ "if": {
240
+ "anyOf": [
241
+ { "properties": { "kind": { "const": "uiBaselineDrift" } }, "required": ["kind"] },
242
+ { "properties": { "kind": { "const": "journeyStub" } }, "required": ["kind"] }
243
+ ]
244
+ },
234
245
  "then": {},
235
246
  "else": {
236
247
  "properties": {
@@ -502,23 +513,44 @@
502
513
  "browserVerificationProbePackCheck": {
503
514
  "type": "object",
504
515
  "additionalProperties": false,
505
- "required": ["id", "verdict", "severity"],
516
+ "required": ["id"],
506
517
  "properties": {
507
518
  "id": {
508
519
  "type": "string",
509
520
  "minLength": 1,
510
521
  "description": "Check id. For a browser check the id equals an AC id contributed by the same blueprint (loader cross-checks this at pack load time)."
511
522
  },
523
+ "applicable": {
524
+ "type": "boolean",
525
+ "description": "Optional check-level applicability flag. When present and false, the check's own appliesTo predicate returned false (typically because the applied capability set does not include a capability the check depends on); verdict and severity are then omitted and the aggregate verdict treats the check as neither pass nor fail. When absent or true, verdict and severity are required as before. Mirrors the pack-level applicable boolean on browserVerificationProbePack. Emitted by packages/rcf-lite/src/browser-verify/pack-runner.js from rcf-lite 0.28.0."
526
+ },
512
527
  "verdict": {
513
528
  "enum": ["pass", "warn", "fail", "skipped"],
514
- "description": "Check verdict. skipped is emitted by the pack-runner when a browser check's dependsOn pre-check failed."
529
+ "description": "Check verdict. skipped is emitted by the pack-runner when a browser check's dependsOn pre-check failed. Required when applicable is absent or true; omitted when applicable is false."
515
530
  },
516
531
  "severity": {
517
532
  "enum": ["block", "warn", "advisory"],
518
- "description": "Check severity, copied from the pack declaration. Feeds the aggregate verdict rule per spec section 3.4."
533
+ "description": "Check severity, copied from the pack declaration. Feeds the aggregate verdict rule per spec section 3.4. Required when applicable is absent or true; omitted when applicable is false."
519
534
  },
520
535
  "detail": { "type": "string" }
521
- }
536
+ },
537
+ "allOf": [
538
+ {
539
+ "if": {
540
+ "not": {
541
+ "properties": { "applicable": { "const": false } },
542
+ "required": ["applicable"]
543
+ }
544
+ },
545
+ "then": {
546
+ "properties": {
547
+ "verdict": true,
548
+ "severity": true
549
+ },
550
+ "required": ["verdict", "severity"]
551
+ }
552
+ }
553
+ ]
522
554
  },
523
555
  "browserVerificationRoute": {
524
556
  "type": "object",
@@ -846,6 +878,53 @@
846
878
  }
847
879
  }
848
880
  },
881
+ "shipWithoutEvalRecord": {
882
+ "type": "object",
883
+ "additionalProperties": false,
884
+ "required": ["id", "fbsId", "ackedAt", "reason", "declaredAcs", "reportPath"],
885
+ "properties": {
886
+ "id": {
887
+ "type": "string",
888
+ "pattern": "^swe-FBS-\\d{3,}(?:-[a-z0-9]+(?:-[a-z0-9]+)*)?-\\d+$",
889
+ "description": "Ship-without-eval acknowledgement id. Format: swe-<fbsId>-<n>; the trailing integer increments per acknowledgement of the same FBS. Accepts both numeric-only and kebab-slug FBS ids. Sister of the shipWithoutVerified swv- id family."
890
+ },
891
+ "fbsId": { "$ref": "https://schemas.stravica.io/rcf/v0.6.0/common.schema.json#/$defs/fbsId" },
892
+ "ackedAt": { "$ref": "https://schemas.stravica.io/rcf/v0.6.0/common.schema.json#/$defs/timestamp" },
893
+ "reason": {
894
+ "type": "string",
895
+ "minLength": 1,
896
+ "description": "Operator-supplied reason string passed on the finalise command (rcf finalise --ship-without-eval \"<reason>\"). Required and non-empty; the acknowledgement's purpose is to record why the operator shipped without a passing EVAL."
897
+ },
898
+ "declaredAcs": {
899
+ "type": "array",
900
+ "minItems": 1,
901
+ "items": { "$ref": "#/$defs/shipWithoutEvalDeclaredAc" },
902
+ "description": "The per-AC verdicts on the verify report that the operator acknowledged. At least one entry, otherwise there is nothing to acknowledge."
903
+ },
904
+ "reportPath": {
905
+ "type": "string",
906
+ "minLength": 1,
907
+ "description": "Path (repo-relative or absolute as recorded by finalise) to the verify report file that carried the acknowledged verdicts."
908
+ }
909
+ },
910
+ "description": "Operator acknowledgement recorded on rcf finalise --ship-without-eval. Records the FBS, the operator's reason string, the verify verdicts acknowledged, and the report they came from, so the ack is durable and greppable at ship time. Written by packages/rcf-lite/src/finalise/ship-without-eval.js."
911
+ },
912
+ "shipWithoutEvalDeclaredAc": {
913
+ "type": "object",
914
+ "additionalProperties": false,
915
+ "required": ["acId", "verdict"],
916
+ "properties": {
917
+ "acId": { "$ref": "https://schemas.stravica.io/rcf/v0.6.0/common.schema.json#/$defs/acId" },
918
+ "verdict": {
919
+ "enum": ["EVAL-MISSING", "EVAL-BELOW-THRESHOLD"],
920
+ "description": "The verify per-AC verdict class the operator acknowledged. Only these two verdict classes are legitimately acknowledgeable via --ship-without-eval."
921
+ },
922
+ "reason": {
923
+ "type": "string",
924
+ "description": "Optional verify-supplied reason string carried through from the report entry."
925
+ }
926
+ }
927
+ },
849
928
  "appliedBlueprintRecord": {
850
929
  "type": "object",
851
930
  "additionalProperties": false,