archctx-contracts 0.11.3 → 0.11.4

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": "archcontext.capabilities/v1",
3
- "package": { "name": "archctx", "version": "0.11.3" },
3
+ "package": { "name": "archctx", "version": "0.11.4" },
4
4
  "protocols": {
5
5
  "projectionRequest": "archcontext.projection-request/v1",
6
6
  "projectionResult": "archcontext.projection-result/v2",
@@ -0,0 +1,17 @@
1
+ {
2
+ "schemaVersion": "archcontext.dependency-constraint-evaluation/v1",
3
+ "status": "pass",
4
+ "coverage": "complete",
5
+ "reasonCodes": [],
6
+ "constraintIds": [
7
+ "constraint.architecture-context.cloud-not-local-runtime",
8
+ "constraint.architecture-context.cloud-not-surfaces",
9
+ "constraint.architecture-context.contracts-depends-on-nothing",
10
+ "constraint.architecture-context.core-stays-pure",
11
+ "constraint.architecture-context.local-runtime-not-surfaces-or-cloud"
12
+ ],
13
+ "importEdgeCount": 2858,
14
+ "unresolvedImports": [],
15
+ "violations": [],
16
+ "warnings": []
17
+ }
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": "archcontext.product-version-manifest/v1",
3
3
  "product": {
4
4
  "name": "archctx",
5
- "version": "0.11.3",
5
+ "version": "0.11.4",
6
6
  "distribution": "one-package"
7
7
  },
8
8
  "packageManager": "bun@1.4.3",
@@ -12,25 +12,25 @@
12
12
  "surfaces": {
13
13
  "cli": {
14
14
  "packageName": "@archcontext/surfaces",
15
- "version": "0.11.3",
15
+ "version": "0.11.4",
16
16
  "entrypoint": "archctx"
17
17
  },
18
18
  "daemon": {
19
19
  "packageName": "@archcontext/local-runtime",
20
- "version": "0.11.3",
20
+ "version": "0.11.4",
21
21
  "entrypoint": "archctx daemon start",
22
22
  "rpcSchemaVersion": "archcontext.runtime-rpc/v2"
23
23
  },
24
24
  "mcp": {
25
25
  "packageName": "@archcontext/surfaces",
26
- "version": "0.11.3",
26
+ "version": "0.11.4",
27
27
  "entrypoint": "archctx mcp",
28
28
  "transport": "stdio"
29
29
  }
30
30
  },
31
31
  "schemas": {
32
32
  "schemaSetVersion": "2026-06-25.al0-ledger",
33
- "contractsPackageVersion": "0.11.3",
33
+ "contractsPackageVersion": "0.11.4",
34
34
  "reviewChallenge": "archcontext.review-challenge/v2",
35
35
  "attestation": "archcontext.attestation/v2",
36
36
  "deviceIdentity": "archcontext.device-identity/v1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archctx-contracts",
3
- "version": "0.11.3",
3
+ "version": "0.11.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -0,0 +1,207 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://archcontext.dev/schemas/runtime/dependency-constraint-evaluation.schema.json",
4
+ "title": "DependencyConstraintEvaluationV1",
5
+ "description": "The data of `archctx constraints check`: a read-only evaluation of the model's dependency constraints against observed import edges. `warnings` is added by the constraints-check command from the declaration reader, so it is not part of the evaluator's own type. Without code facts that attest to the measured tree, the evaluation still answers, but `coverage` is not `complete` and the import observations are dropped rather than reported as facts about some other tree.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "schemaVersion",
10
+ "status",
11
+ "coverage",
12
+ "reasonCodes",
13
+ "constraintIds",
14
+ "importEdgeCount",
15
+ "unresolvedImports",
16
+ "violations",
17
+ "warnings"
18
+ ],
19
+ "properties": {
20
+ "schemaVersion": {
21
+ "const": "archcontext.dependency-constraint-evaluation/v1"
22
+ },
23
+ "status": {
24
+ "enum": [
25
+ "not-applicable",
26
+ "pass",
27
+ "undetermined",
28
+ "violated"
29
+ ]
30
+ },
31
+ "coverage": {
32
+ "enum": [
33
+ "complete",
34
+ "partial",
35
+ "unknown"
36
+ ],
37
+ "description": "`complete` only when an index attested to the evaluated worktree and was not truncated."
38
+ },
39
+ "reasonCodes": {
40
+ "type": "array",
41
+ "uniqueItems": true,
42
+ "description": "Why a result is not a complete observation, sorted.",
43
+ "items": {
44
+ "enum": [
45
+ "code-facts-import-limit",
46
+ "code-facts-stale",
47
+ "code-facts-truncated",
48
+ "code-facts-unavailable",
49
+ "unresolved-import",
50
+ "layer-endpoint-unclassified",
51
+ "workspace-resolution-failed"
52
+ ]
53
+ }
54
+ },
55
+ "constraintIds": {
56
+ "type": "array",
57
+ "description": "The constraints this evaluation covered, in declaration order.",
58
+ "items": {
59
+ "type": "string",
60
+ "minLength": 1
61
+ }
62
+ },
63
+ "importEdgeCount": {
64
+ "type": "integer",
65
+ "minimum": 0,
66
+ "description": "Import observations the evaluation read; zero when the index did not attest to this tree."
67
+ },
68
+ "unresolvedImports": {
69
+ "type": "array",
70
+ "description": "Repository-local specifiers from constrained files that resolved to no file.",
71
+ "items": {
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": [
75
+ "from",
76
+ "specifier"
77
+ ],
78
+ "properties": {
79
+ "from": {
80
+ "type": "string",
81
+ "minLength": 1
82
+ },
83
+ "specifier": {
84
+ "type": "string",
85
+ "minLength": 1
86
+ }
87
+ }
88
+ }
89
+ },
90
+ "violations": {
91
+ "type": "array",
92
+ "description": "One record per (constraint, from path, to path), sorted by those keys.",
93
+ "items": {
94
+ "type": "object",
95
+ "additionalProperties": false,
96
+ "required": [
97
+ "constraintId",
98
+ "fromPath",
99
+ "toPath",
100
+ "fromNode",
101
+ "toNode",
102
+ "severity"
103
+ ],
104
+ "properties": {
105
+ "constraintId": {
106
+ "type": "string",
107
+ "minLength": 1
108
+ },
109
+ "fromPath": {
110
+ "type": "string",
111
+ "minLength": 1
112
+ },
113
+ "toPath": {
114
+ "type": "string",
115
+ "minLength": 1
116
+ },
117
+ "fromNode": {
118
+ "type": "string",
119
+ "minLength": 1
120
+ },
121
+ "toNode": {
122
+ "type": "string",
123
+ "minLength": 1
124
+ },
125
+ "fromLayer": {
126
+ "type": "string",
127
+ "minLength": 1
128
+ },
129
+ "toLayer": {
130
+ "type": "string",
131
+ "minLength": 1
132
+ },
133
+ "severity": {
134
+ "enum": [
135
+ "error",
136
+ "warning"
137
+ ]
138
+ }
139
+ }
140
+ }
141
+ },
142
+ "layerEdges": {
143
+ "type": "array",
144
+ "description": "Resolved imports between two layers of one `layer-direction` constraint. An import counts only when every owner of each endpoint carries one shared layer listed in the rule. Present only with a `layer-direction` constraint, `status` `pass` or `violated`, and `coverage` `complete`; otherwise absent. When present it may be an empty list, and it is sorted by `(constraintId, fromLayer, toLayer)`.",
145
+ "items": {
146
+ "type": "object",
147
+ "additionalProperties": false,
148
+ "required": [
149
+ "constraintId",
150
+ "fromLayer",
151
+ "toLayer",
152
+ "imports"
153
+ ],
154
+ "properties": {
155
+ "constraintId": {
156
+ "type": "string",
157
+ "minLength": 1
158
+ },
159
+ "fromLayer": {
160
+ "type": "string",
161
+ "minLength": 1
162
+ },
163
+ "toLayer": {
164
+ "type": "string",
165
+ "minLength": 1
166
+ },
167
+ "imports": {
168
+ "type": "integer",
169
+ "minimum": 1,
170
+ "description": "Import edges, so two specifiers from one file to the same target count twice."
171
+ }
172
+ }
173
+ }
174
+ },
175
+ "warnings": {
176
+ "type": "array",
177
+ "description": "Declaration-reader warnings, such as an unsupported rule. Every unevaluated constraint type produces one, because a validated constraint is not proof that its rule was evaluated.",
178
+ "items": {
179
+ "type": "string",
180
+ "minLength": 1
181
+ }
182
+ }
183
+ },
184
+ "allOf": [
185
+ {
186
+ "description": "The layer edges are an observation, so they exist only for a settled verdict over complete coverage.",
187
+ "if": {
188
+ "required": [
189
+ "layerEdges"
190
+ ]
191
+ },
192
+ "then": {
193
+ "properties": {
194
+ "status": {
195
+ "enum": [
196
+ "pass",
197
+ "violated"
198
+ ]
199
+ },
200
+ "coverage": {
201
+ "const": "complete"
202
+ }
203
+ }
204
+ }
205
+ }
206
+ ]
207
+ }
@@ -118,6 +118,17 @@ export interface DependencyConstraintViolationV1 {
118
118
  severity: "error" | "warning";
119
119
  }
120
120
 
121
+ /**
122
+ * Resolved imports between two layers of one `layer-direction` constraint. An import counts only
123
+ * when every owner of each endpoint carries one shared layer listed in `rule.layers`.
124
+ */
125
+ export interface DependencyLayerEdgeV1 {
126
+ constraintId: string;
127
+ fromLayer: string;
128
+ toLayer: string;
129
+ imports: number;
130
+ }
131
+
121
132
  export interface DependencyConstraintEvaluationV1 {
122
133
  schemaVersion: "archcontext.dependency-constraint-evaluation/v1";
123
134
  status: DependencyConstraintStatus;
@@ -130,6 +141,11 @@ export interface DependencyConstraintEvaluationV1 {
130
141
  /** Repository-local specifiers from constrained files that resolved to no file. */
131
142
  unresolvedImports: { from: string; specifier: string }[];
132
143
  violations: DependencyConstraintViolationV1[];
144
+ /**
145
+ * Present only with a `layer-direction` constraint, status `pass` or `violated`, and `complete`
146
+ * coverage; one row per `(constraintId, fromLayer, toLayer)`, sorted by those keys.
147
+ */
148
+ layerEdges?: DependencyLayerEdgeV1[];
133
149
  }
134
150
 
135
151
  /**
@@ -1,5 +1,5 @@
1
1
  export const ARCHCONTEXT_PRODUCT_NAME = "archctx";
2
- export const ARCHCONTEXT_PRODUCT_VERSION = "0.11.3";
2
+ export const ARCHCONTEXT_PRODUCT_VERSION = "0.11.4";
3
3
  export const ARCHCONTEXT_PACKAGE_MANAGER = "bun@1.4.3";
4
4
  export const ARCHCONTEXT_NODE_RANGE = ">=22.22 <26";
5
5
  export const LOCAL_RUNTIME_RPC_SCHEMA_VERSION = "archcontext.runtime-rpc/v2";