@stravica-ai/rcf-schemas 0.3.0 → 0.4.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.
Files changed (46) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/docs/fbs.md +1 -0
  3. package/fixtures/invalid/fbs/fbs-007-nocodenodes-non-boolean.json +14 -0
  4. package/fixtures/invalid/fbs/fbs-008-design-stage-complete-non-boolean.json +15 -0
  5. package/fixtures/invalid/fbs/fbs-009-design-stage-bad-theme-mode.json +23 -0
  6. package/fixtures/invalid/fbs/fbs-010-service-attestation-bad-mode.json +22 -0
  7. package/fixtures/invalid/fbs/fbs-011-design-journey-single-step.json +24 -0
  8. package/fixtures/invalid/manifest/manifest-004-optout-reason-too-short.json +18 -0
  9. package/fixtures/invalid/manifest/manifest-005-browser-verify-bad-verdict.json +24 -0
  10. package/fixtures/invalid/manifest/manifest-006-intake-fidelity-bad.json +16 -0
  11. package/fixtures/invalid/manifest/manifest-007-intake-artefact-bad-kind.json +18 -0
  12. package/fixtures/invalid/manifest/manifest-008-intake-finding-bad-kind.json +22 -0
  13. package/fixtures/invalid/manifest/manifest-009-review-surface-bad-mode.json +17 -0
  14. package/fixtures/invalid/manifest/manifest-010-preflight-bad-id.json +16 -0
  15. package/fixtures/invalid/manifest/manifest-011-ui-baseline-bad-id.json +14 -0
  16. package/fixtures/invalid/manifest/manifest-012-review-audit-bad-id.json +16 -0
  17. package/fixtures/invalid/manifest/manifest-013-browser-verify-bad-id.json +24 -0
  18. package/fixtures/invalid/manifest/manifest-014-baseline-optout-bad-id.json +18 -0
  19. package/fixtures/invalid/manifest/manifest-015-intake-bad-id.json +16 -0
  20. package/fixtures/invalid/manifest/manifest-016-register-canary-bad-id.json +24 -0
  21. package/fixtures/invalid/manifest/manifest-017-register-canary-missing-dimension.json +23 -0
  22. package/fixtures/invalid/req/req-004-shape-classification-bad-shape.json +18 -0
  23. package/fixtures/invalid/test-suite/ts-006-runtime-provenance-bad-profile.json +24 -0
  24. package/fixtures/invalid/user-story/us-003-provenance-bad-authored-by.json +23 -0
  25. package/fixtures/valid/fbs/fbs-003-no-code-nodes.json +14 -0
  26. package/fixtures/valid/fbs/fbs-004-track-a-service-attestation.json +23 -0
  27. package/fixtures/valid/fbs/fbs-005-track-b-ui-design-stage.json +56 -0
  28. package/fixtures/valid/manifest/manifest-003-v040-all-fields.json +217 -0
  29. package/fixtures/valid/manifest/manifest-004-pre-040-backcompat.json +8 -0
  30. package/fixtures/valid/manifest/manifest-005-preflight-operator-added-no-refs.json +26 -0
  31. package/fixtures/valid/req/req-003-shape-classification.json +23 -0
  32. package/fixtures/valid/test-suite/ts-003-runtime-provenance.json +38 -0
  33. package/fixtures/valid/user-story/us-003-baseline-provenance.json +41 -0
  34. package/package.json +1 -1
  35. package/schemas/adr.schema.json +10 -10
  36. package/schemas/build-sequence.schema.json +7 -7
  37. package/schemas/cn.schema.json +8 -8
  38. package/schemas/common.schema.json +5 -1
  39. package/schemas/fbs.schema.json +219 -11
  40. package/schemas/manifest.schema.json +693 -5
  41. package/schemas/prd.schema.json +6 -6
  42. package/schemas/req.schema.json +78 -7
  43. package/schemas/tac.schema.json +9 -9
  44. package/schemas/tad.schema.json +7 -7
  45. package/schemas/test-suite.schema.json +35 -9
  46. package/schemas/user-story.schema.json +35 -11
@@ -0,0 +1,217 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "projectName": "Uptime Monitor",
4
+ "description": "Watchpost rebuild against the 0.7.0 release train.",
5
+ "prd": { "id": "PRD-001", "path": "rcf/prd.json" },
6
+ "tad": { "id": "TAD-001", "path": "rcf/tad.json" },
7
+ "bs": { "id": "BS-001", "path": "rcf/build-sequence.json" },
8
+ "testCommand": "pnpm -r test",
9
+ "preFlightConfig": [
10
+ {
11
+ "id": "pfc-2026-07-30-001",
12
+ "createdAt": "2026-07-30T14:20:00Z",
13
+ "prdId": "PRD-001",
14
+ "servicesInScope": [
15
+ {
16
+ "id": "resend",
17
+ "displayName": "Resend email API",
18
+ "sourceRefs": ["PRD-001#external-integrations", "TAD-001#dispatch-flow"],
19
+ "attestationMode": "declaredMockOnly",
20
+ "credentialSupplied": false,
21
+ "sandboxProvisioned": false,
22
+ "operatorReason": "no key available; ship blocker acknowledged, cannot enter deployed profile",
23
+ "affectedFbsIds": ["FBS-011", "FBS-012"]
24
+ }
25
+ ],
26
+ "operatorAckAt": "2026-07-30T14:22:00Z",
27
+ "designShapeAnswers": [
28
+ {
29
+ "questionId": "auth.htmlLoginPage",
30
+ "reqId": "REQ-012",
31
+ "answer": "apiOnly",
32
+ "reason": "SDK-driven clients only; no human browser flow ships in v1",
33
+ "answeredAt": "2026-07-30T14:24:00Z"
34
+ }
35
+ ]
36
+ }
37
+ ],
38
+ "reviewAudit": [
39
+ {
40
+ "id": "ra-FBS-011-1",
41
+ "fbsId": "FBS-011",
42
+ "createdAt": "2026-07-30T15:10:00Z",
43
+ "testTheatreFindings": [
44
+ {
45
+ "tsId": "TS-015",
46
+ "tcId": "TC-015-happy-path",
47
+ "kind": "mockOnlyIntegrationClaim",
48
+ "detail": "testLevel=integration but runtimeProvenance.profile=mock; AC-1001-2 dependsOnServices.attestationMode=live",
49
+ "severity": "block"
50
+ },
51
+ {
52
+ "tsId": "TS-016",
53
+ "kind": "uiBaselineDrift",
54
+ "detail": "src/ui/dashboard.ts contains hex literals; uiBaseline.defaults.noHexInViewFiles is true",
55
+ "severity": "block"
56
+ }
57
+ ],
58
+ "mutationSampling": {
59
+ "mode": "agent-v1",
60
+ "mutantsGenerated": 22,
61
+ "mutantsRun": 22,
62
+ "killed": 18,
63
+ "survived": 4,
64
+ "durationMs": 187000,
65
+ "survivors": [
66
+ {
67
+ "mutationId": "mut-011-04",
68
+ "targetFile": "src/email-dispatcher.ts",
69
+ "targetSymbol": "shouldSend",
70
+ "mutationSummary": "flip guard condition: !isRecovery becomes isRecovery",
71
+ "acIds": ["AC-1001-2"],
72
+ "tsIdsShouldHaveCaught": ["TS-015"],
73
+ "tcIdsShouldHaveCaught": ["TC-015-happy-path", "TC-015-non-2xx"]
74
+ }
75
+ ]
76
+ },
77
+ "verdict": "block"
78
+ }
79
+ ],
80
+ "uiBaseline": {
81
+ "id": "uib-2026-07-30-001",
82
+ "createdAt": "2026-07-30T14:15:00Z",
83
+ "prdId": "PRD-001",
84
+ "defaults": {
85
+ "themeMode": "light-default-with-toggle",
86
+ "sharedLayoutModule": "src/ui/layout.ts",
87
+ "designTokensModule": "src/ui/tokens.ts",
88
+ "noHexInViewFiles": true,
89
+ "contrastTarget": "WCAG AA",
90
+ "contrastTestBeforePalette": true,
91
+ "focusRingsRequired": true,
92
+ "hoverStatesRequired": true,
93
+ "componentVocabulary": {
94
+ "declaredComponents": ["Button", "Input", "Card", "Badge", "Table", "Notice"],
95
+ "singleBadgeShape": true
96
+ },
97
+ "typography": {
98
+ "baseFontStack": "system-ui",
99
+ "bodyLineHeight": 1.5,
100
+ "headingLineHeight": 1.25,
101
+ "proseMaxWidth": "72ch"
102
+ },
103
+ "interactionDefaults": {
104
+ "loadingIndicatorOnFetch": true,
105
+ "disabledStateVisuallyDistinct": true
106
+ },
107
+ "authFlow": {
108
+ "htmlLoginPageRequired": true,
109
+ "smokeChecksRequired": true
110
+ }
111
+ },
112
+ "operatorOptOuts": [
113
+ {
114
+ "field": "componentVocabulary.declaredComponents",
115
+ "reason": "single-page app with no forms; only Button and Notice needed",
116
+ "operatorAckAt": "2026-07-30T14:14:00Z"
117
+ }
118
+ ],
119
+ "operatorAckAt": "2026-07-30T14:15:00Z"
120
+ },
121
+ "uiBaselineHistory": [],
122
+ "browserVerification": [
123
+ {
124
+ "id": "bv-FBS-016-1",
125
+ "fbsId": "FBS-016",
126
+ "createdAt": "2026-07-30T15:22:00Z",
127
+ "mode": "agentScreenshotCritique",
128
+ "runtimeProfile": "local-dev",
129
+ "runtimeUrl": "http://127.0.0.1:3000",
130
+ "routesChecked": [
131
+ { "path": "/", "screenshotPath": ".rcf/artefacts/bv-FBS-016-1/dashboard-light.png", "themeApplied": "light" },
132
+ { "path": "/", "screenshotPath": ".rcf/artefacts/bv-FBS-016-1/dashboard-dark.png", "themeApplied": "dark" }
133
+ ],
134
+ "invariantChecks": [
135
+ { "invariant": "sharedNavPresent", "verdict": "pass" },
136
+ { "invariant": "themeToggleVisible", "verdict": "pass" },
137
+ { "invariant": "signedInAsAffordance", "verdict": "fail", "detail": "no visible signed-in-as on /monitors/new" }
138
+ ],
139
+ "authSmokeChecks": [
140
+ { "check": "GET /login", "status": 200, "contentType": "text/html", "verdict": "pass" },
141
+ { "check": "POST /logout", "status": 302, "verdict": "pass" }
142
+ ],
143
+ "notes": "Component consistency: pass. Typography: pass. Interaction affordances: pass. Modern feel: reads as recently designed.",
144
+ "verdict": "block"
145
+ }
146
+ ],
147
+ "baselineAcOptOuts": [
148
+ {
149
+ "id": "boo-2026-07-30-001",
150
+ "createdAt": "2026-07-30T14:30:00Z",
151
+ "reqId": "REQ-012",
152
+ "baselineKey": "auth.htmlLoginPage",
153
+ "scope": "req",
154
+ "reason": "auth surface is API-only; SDK-driven clients only, no human browser flow",
155
+ "operatorAckAt": "2026-07-30T14:30:00Z",
156
+ "linkedPreFlightConfigRef": "pfc-2026-07-30-001#designShapeAnswers.auth.htmlLoginPage"
157
+ }
158
+ ],
159
+ "intakeClassification": {
160
+ "id": "ic-2026-07-30-001",
161
+ "createdAt": "2026-07-30T13:50:00Z",
162
+ "fidelity": "briefStrong",
163
+ "artefacts": [
164
+ {
165
+ "path": "docs/2026-07-29_uptime-monitor-product-brief.md",
166
+ "kind": "productBrief",
167
+ "wordCount": 3200,
168
+ "hash": "sha256:8f4a00000000000000000000000000000000000000000000000000000000",
169
+ "operatorSourced": true
170
+ }
171
+ ],
172
+ "validationFindings": [
173
+ {
174
+ "kind": "impliedButNotStated",
175
+ "detail": "brief names Resend for email but does not state whether a browser sign-in page is in scope",
176
+ "raisedAt": "2026-07-30T13:52:00Z",
177
+ "operatorResponse": "browser sign-in required; confirmed at 13:55Z",
178
+ "resolvedAt": "2026-07-30T13:55:00Z"
179
+ }
180
+ ],
181
+ "elicitationScope": {
182
+ "prdDrafted": "drafted",
183
+ "reqDraftedFromArtefact": ["REQ-001", "REQ-002", "REQ-003"],
184
+ "reqRequiringElicitation": ["REQ-004", "REQ-005"],
185
+ "acsFromArtefact": 0,
186
+ "acsFromElicitation": "all"
187
+ },
188
+ "operatorAckAt": "2026-07-30T13:55:00Z"
189
+ },
190
+ "registerCanary": [
191
+ {
192
+ "id": "rc-2026-07-30-001",
193
+ "createdAt": "2026-07-30T18:10:00Z",
194
+ "buildVersion": "0.7.0-rc.1",
195
+ "fixturePromptId": "canary-prompt-01",
196
+ "responseWordCount": 152,
197
+ "grades": {
198
+ "internalRuleCitation": { "verdict": "pass", "matches": [] },
199
+ "unglossedJargon": { "verdict": "pass", "matches": [] },
200
+ "redundantPermissionAsk": { "verdict": "pass", "matches": [] },
201
+ "bypassOffer": { "verdict": "pass", "matches": [] },
202
+ "wordCountBudget": { "verdict": "pass", "target": 200, "actual": 152 }
203
+ },
204
+ "verdict": "pass"
205
+ }
206
+ ],
207
+ "reviewSurface": {
208
+ "viewServer": {
209
+ "mode": "detached",
210
+ "startedAt": "2026-07-30T09:40:00Z",
211
+ "socketPath": ".rcf/view.sock",
212
+ "pid": 42137,
213
+ "healthCheckPath": "http://127.0.0.1:4373/healthz",
214
+ "lastHeartbeatAt": "2026-07-30T16:32:00Z"
215
+ }
216
+ }
217
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "projectName": "Pre-0.4.0 back-compat check",
4
+ "description": "Identical shape to a manifest authored under 0.3.1 or earlier: no preFlightConfig, no reviewAudit, no uiBaseline, no browserVerification, no baselineAcOptOuts, no intakeClassification, no registerCanary, no reviewSurface, no testCommand. Any pre-0.4.0 manifest whose shape matches this fixture must continue to validate against the 0.4.0 schema; that is the additive-only guarantee.",
5
+ "prd": { "id": "PRD-100", "path": "rcf/prd.json" },
6
+ "tad": { "id": "TAD-100", "path": "rcf/tad.json" },
7
+ "bs": { "id": "BS-100", "path": "rcf/build-sequence.json" }
8
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "projectName": "Operator-added service candidate",
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
+ "preFlightConfig": [
8
+ {
9
+ "id": "pfc-2026-07-30-002",
10
+ "createdAt": "2026-07-30T14:20:00Z",
11
+ "prdId": "PRD-001",
12
+ "servicesInScope": [
13
+ {
14
+ "id": "sentry",
15
+ "displayName": "Sentry error tracking",
16
+ "sourceRefs": [],
17
+ "attestationMode": "declaredMockOnly",
18
+ "credentialSupplied": false,
19
+ "sandboxProvisioned": false,
20
+ "operatorReason": "operator-added at pre-flight; not named in PRD or TAD but wanted for early observability"
21
+ }
22
+ ],
23
+ "operatorAckAt": "2026-07-30T14:22:00Z"
24
+ }
25
+ ]
26
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "reqId": "REQ-012",
3
+ "prdId": "PRD-001",
4
+ "title": "Signed-in owner dashboard",
5
+ "description": "The signed-in owner must land on a browser admin dashboard showing the status of every monitor.",
6
+ "rationale": "Operator needs one glance to see failures without walking the API.",
7
+ "category": "functional",
8
+ "domain": "webUi",
9
+ "priority": "must",
10
+ "version": "0.1.0",
11
+ "status": "draft",
12
+ "createdAt": "2026-07-30T14:20:00Z",
13
+ "updatedAt": "2026-07-30T14:20:00Z",
14
+ "shapeClassification": {
15
+ "shapes": ["webUi", "auth"],
16
+ "reason": "keyword-scan",
17
+ "signals": [
18
+ { "source": "description", "match": "browser admin", "shape": "webUi" },
19
+ { "source": "description", "match": "signed-in", "shape": "auth" }
20
+ ],
21
+ "classifiedAt": "2026-07-30T14:20:00Z"
22
+ }
23
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "id": "TS-015",
3
+ "usId": "US-1001",
4
+ "title": "Recovery email dispatch",
5
+ "purpose": "Cover the recovery-email flow against the Resend API contract.",
6
+ "testLevel": "integration",
7
+ "acIds": ["AC-1001-2"],
8
+ "testCases": [
9
+ {
10
+ "id": "TC-015-happy-path",
11
+ "acId": "AC-1001-2",
12
+ "description": "email dispatched on recovery event",
13
+ "testPointer": "test/email-dispatcher.test.ts::happy path",
14
+ "status": "passing",
15
+ "runtimeProvenance": {
16
+ "profile": "live",
17
+ "envVarsRequired": ["RESEND_API_KEY"],
18
+ "externalHostsReached": ["api.resend.com"],
19
+ "notes": "Playwright records requests, asserts POST /v1/send received"
20
+ }
21
+ },
22
+ {
23
+ "id": "TC-015-non-2xx",
24
+ "acId": "AC-1001-2",
25
+ "description": "non-2xx response surfaces to caller",
26
+ "status": "passing",
27
+ "runtimeProvenance": {
28
+ "profile": "mock",
29
+ "envVarsRequired": [],
30
+ "externalHostsReached": [],
31
+ "notes": "CapturingEmailSender stub returns a 500"
32
+ }
33
+ }
34
+ ],
35
+ "status": "approved",
36
+ "createdAt": "2026-07-30T14:20:00Z",
37
+ "updatedAt": "2026-07-30T15:00:00Z"
38
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "usId": "US-1201",
3
+ "prdId": "PRD-001",
4
+ "reqId": "REQ-012",
5
+ "version": "0.1.0",
6
+ "status": "draft",
7
+ "title": "Signed-in owner reaches dashboard",
8
+ "asA": "signed-in owner",
9
+ "iWant": "to land on the dashboard after logging in",
10
+ "soThat": "I can see every monitor's status at a glance",
11
+ "acceptanceCriteria": [
12
+ {
13
+ "id": "AC-1201-1",
14
+ "description": "any authenticated route renders the shared nav",
15
+ "given": "the user is signed in",
16
+ "when": "any authenticated route is loaded",
17
+ "then": "the response HTML contains the shared nav element with aria-current on the matching link",
18
+ "testable": true,
19
+ "provenance": {
20
+ "authoredBy": "baseline",
21
+ "baselineKey": "webUi.sharedNav",
22
+ "injectedAt": "2026-07-30T14:22:00Z",
23
+ "sourceReqShape": "webUi",
24
+ "acceptedByOperatorAt": "2026-07-30T14:25:00Z"
25
+ }
26
+ },
27
+ {
28
+ "id": "AC-1201-2",
29
+ "description": "operator's own hand-authored acceptance criterion",
30
+ "given": "the dashboard has loaded",
31
+ "when": "the operator clicks a monitor tile",
32
+ "then": "the tile expands into a detail view",
33
+ "testable": true,
34
+ "provenance": {
35
+ "authoredBy": "operator"
36
+ }
37
+ }
38
+ ],
39
+ "createdAt": "2026-07-30T14:20:00Z",
40
+ "updatedAt": "2026-07-30T14:25:00Z"
41
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stravica-ai/rcf-schemas",
3
- "version": "0.3.0",
3
+ "version": "0.4.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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://schemas.stravica.io/rcf/v0.3.0/adr.schema.json",
3
+ "$id": "https://schemas.stravica.io/rcf/v0.4.0/adr.schema.json",
4
4
  "title": "RCF Architectural Decision Record",
5
5
  "description": "Architectural Decision Record. One per decision, one file each. Nygard / MADR convention.",
6
6
  "type": "object",
@@ -19,11 +19,11 @@
19
19
  "updatedAt"
20
20
  ],
21
21
  "properties": {
22
- "adrId": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/adrId" },
23
- "prdId": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/prdId" },
24
- "tadId": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/tadId" },
25
- "version": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/version" },
26
- "status": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/adrStatus" },
22
+ "adrId": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/adrId" },
23
+ "prdId": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/prdId" },
24
+ "tadId": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/tadId" },
25
+ "version": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/version" },
26
+ "status": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/adrStatus" },
27
27
 
28
28
  "title": { "type": "string", "minLength": 1 },
29
29
  "context": { "type": "string", "minLength": 1 },
@@ -34,14 +34,14 @@
34
34
  "items": { "$ref": "#/$defs/alternative" }
35
35
  },
36
36
 
37
- "supersededBy": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/adrId" },
37
+ "supersededBy": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/adrId" },
38
38
  "relatedAdrs": {
39
39
  "type": "array",
40
- "items": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/adrId" }
40
+ "items": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/adrId" }
41
41
  },
42
42
 
43
- "createdAt": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/timestamp" },
44
- "updatedAt": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/timestamp" }
43
+ "createdAt": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/timestamp" },
44
+ "updatedAt": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/timestamp" }
45
45
  },
46
46
  "$defs": {
47
47
  "alternative": {
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://schemas.stravica.io/rcf/v0.3.0/build-sequence.schema.json",
3
+ "$id": "https://schemas.stravica.io/rcf/v0.4.0/build-sequence.schema.json",
4
4
  "title": "RCF Build Sequence",
5
5
  "description": "One per project. Pure planning shell. FBSs each carry the mandatory bsId parent reference plus buildOrder; the ordered FBS list is computed by loading every FBS under rcf/fbs/, filtering by bsId, and sorting by buildOrder. Duplicate buildOrder within one BS is a validation error at load time.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "required": ["bsId", "prdId", "version", "status", "createdAt", "updatedAt"],
9
9
  "properties": {
10
- "bsId": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/bsId" },
11
- "prdId": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/prdId" },
12
- "version": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/version" },
13
- "status": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/authoringStatus" },
10
+ "bsId": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/bsId" },
11
+ "prdId": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/prdId" },
12
+ "version": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/version" },
13
+ "status": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/authoringStatus" },
14
14
  "title": { "type": "string" },
15
15
  "buildPhilosophy": { "type": "string" },
16
16
  "generationStrategy": {
17
17
  "enum": ["verticalSlice", "dependencyFirst", "domainGrouped", "riskFrontLoaded"]
18
18
  },
19
- "createdAt": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/timestamp" },
20
- "updatedAt": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/timestamp" }
19
+ "createdAt": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/timestamp" },
20
+ "updatedAt": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/timestamp" }
21
21
  }
22
22
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://schemas.stravica.io/rcf/v0.3.0/cn.schema.json",
3
+ "$id": "https://schemas.stravica.io/rcf/v0.4.0/cn.schema.json",
4
4
  "title": "RCF Code Node",
5
5
  "description": "Code Node document. One file per node. Identity is a working-tree path, optionally #symbol-suffixed; granularity (file vs symbol) is derived from the presence of '#', never stored. Bridges the spec graph to source: implementsAcIds anchors the node into the AC layer, dependencies declares CN-to-CN edges.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "required": ["cnId", "path", "implementsAcIds", "version", "status", "createdAt", "updatedAt"],
9
9
  "properties": {
10
- "cnId": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/cnId" },
10
+ "cnId": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/cnId" },
11
11
  "path": {
12
12
  "type": "string",
13
13
  "minLength": 1,
@@ -18,19 +18,19 @@
18
18
  "description": { "type": "string" },
19
19
  "implementsAcIds": {
20
20
  "type": "array",
21
- "items": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/acId" },
21
+ "items": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/acId" },
22
22
  "minItems": 0,
23
23
  "description": "Acceptance criteria this code node satisfies. May be empty: an orphan CN (utilities, glue, wiring) is a legitimate state."
24
24
  },
25
25
  "dependencies": {
26
26
  "type": "array",
27
- "items": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/cnId" },
27
+ "items": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/cnId" },
28
28
  "minItems": 0,
29
29
  "description": "Code nodes this node depends on (CN-to-CN edges). Hand-declared in v1."
30
30
  },
31
- "version": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/version" },
32
- "status": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/cnStatus" },
33
- "createdAt": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/timestamp" },
34
- "updatedAt": { "$ref": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json#/$defs/timestamp" }
31
+ "version": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/version" },
32
+ "status": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/cnStatus" },
33
+ "createdAt": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/timestamp" },
34
+ "updatedAt": { "$ref": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json#/$defs/timestamp" }
35
35
  }
36
36
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://schemas.stravica.io/rcf/v0.3.0/common.schema.json",
3
+ "$id": "https://schemas.stravica.io/rcf/v0.4.0/common.schema.json",
4
4
  "title": "RCF Shared Definitions",
5
5
  "description": "Shared $defs referenced via $ref from every other RCF schema. ID patterns, status enums, version string, timestamp format, and the docRef shape. This file is not a document schema; consumers register it alongside the 11 doc-type schemas at validator init.",
6
6
  "$defs": {
@@ -90,6 +90,10 @@
90
90
  "enum": ["draft", "approved", "deprecated"],
91
91
  "description": "Lifecycle status for Code Node documents."
92
92
  },
93
+ "attestationMode": {
94
+ "enum": ["live", "sandboxed", "mocked", "declaredMockOnly", "notShipped"],
95
+ "description": "How a third-party service dependency is attested by tests. Shared between fbs.dependsOnServices[] and manifest.preFlightConfig.servicesInScope[]. live: tests hit the live provider with real credentials. sandboxed: tests hit a provider-run sandbox. mocked: local fixtures or stubs; not ship-authoritative on its own. declaredMockOnly: operator has explicitly declared the FBS ships mock-only for this service. notShipped: the service is used only in local development."
96
+ },
93
97
  "docRef": {
94
98
  "type": "object",
95
99
  "additionalProperties": false,