archctx-contracts 0.13.0 → 0.14.1
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/fixtures/invalid/projection-result-applied-incomplete-coverage.json +2 -2
- package/fixtures/valid/archctx-capabilities.json +5 -5
- package/fixtures/valid/architecture-refresh-signal.json +1 -3
- package/fixtures/valid/product-version-manifest.json +5 -5
- package/fixtures/valid/projection-manifest.json +2 -4
- package/fixtures/valid/projection-request.json +1 -1
- package/fixtures/valid/projection-result.json +2 -2
- package/fixtures/valid/state-machine-check.json +6 -2
- package/package.json +1 -1
- package/schemas/runtime/archctx-capabilities.schema.json +4 -4
- package/schemas/runtime/architecture-refresh-signal.schema.json +3 -4
- package/schemas/runtime/projection-apply-readback.schema.json +41 -41
- package/schemas/runtime/projection-apply-recovery.schema.json +7 -8
- package/schemas/runtime/projection-manifest.schema.json +21 -108
- package/schemas/runtime/projection-publish-run.schema.json +1 -1
- package/schemas/runtime/projection-request.schema.json +1 -1
- package/schemas/runtime/projection-result.schema.json +20 -21
- package/schemas/runtime/projection-target.schema.json +2 -2
- package/schemas/runtime/state-machine-check.schema.json +20 -2
- package/src/architecture-history.ts +8 -0
- package/src/failure.ts +16 -7
- package/src/ledger.ts +2 -2
- package/src/product-version.ts +1 -1
- package/src/projection-manifest.ts +62 -158
- package/src/projection-writer.ts +1 -1
- package/src/projection.ts +122 -99
- package/src/state-machine.ts +16 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "archcontext.projection-result/
|
|
2
|
+
"schemaVersion": "archcontext.projection-result/v3",
|
|
3
3
|
"requestId": "projection_request.repo_main",
|
|
4
4
|
"status": "applied",
|
|
5
5
|
"inputSnapshot": {
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"projection_target.entity.capability.api"
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
|
-
"receiptDigest": "sha256:
|
|
77
|
+
"receiptDigest": "sha256:04b89c0dfb1f4a5771286b9b968ac585686d58ca12f62fb12a9e6d1db78aa8f2"
|
|
78
78
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "archcontext.capabilities/v1",
|
|
3
|
-
"package": { "name": "archctx", "version": "0.
|
|
3
|
+
"package": { "name": "archctx", "version": "0.14.1" },
|
|
4
4
|
"protocols": {
|
|
5
5
|
"projectionRequest": "archcontext.projection-request/v1",
|
|
6
|
-
"projectionResult": "archcontext.projection-result/
|
|
7
|
-
"architectureRefreshSignal": "archcontext.architecture-refresh-signal/
|
|
6
|
+
"projectionResult": "archcontext.projection-result/v3",
|
|
7
|
+
"architectureRefreshSignal": "archcontext.architecture-refresh-signal/v2"
|
|
8
8
|
},
|
|
9
9
|
"renderers": {
|
|
10
10
|
"architectureDocs": "archcontext.docs-renderer/v6",
|
|
11
|
-
"agentContext": "archcontext.agent-context-renderer/
|
|
11
|
+
"agentContext": "archcontext.agent-context-renderer/v2"
|
|
12
12
|
},
|
|
13
|
-
"features": ["architecture-change-capabilities-v1", "architecture-debt-v1", "architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "capability-dependencies-declared-v1", "capability-dependencies-v1", "changeset-entity-operations-v1", "changeset-ownership-delta-v1", "code-facts-unavailable-error-v1", "docs-anchors-v1", "flow-selector-check-v1", "module-statistics-v1", "native-context-export-v1", "projection-apply-readback-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-apply-replay-restore-v1", "projection-apply-replay-v1", "projection-architecture-debt-v1", "projection-capability-isolation-v1", "projection-change-classification-
|
|
13
|
+
"features": ["architecture-change-capabilities-v1", "architecture-debt-v1", "architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "capability-dependencies-declared-v1", "capability-dependencies-v1", "changeset-entity-operations-v1", "changeset-ownership-delta-v1", "code-facts-unavailable-error-v1", "docs-anchors-v1", "flow-selector-check-v1", "module-statistics-v1", "native-context-export-v1", "projection-apply-readback-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-apply-replay-restore-v1", "projection-apply-replay-v1", "projection-architecture-debt-v1", "projection-capability-isolation-v1", "projection-change-classification-v2", "projection-check-freshness-v2", "projection-freshness-v2", "projection-manifest-contract-v4", "projection-observed-major-change-acceptance-v1", "projection-orphan-review-v1", "projection-preview-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "projection-publish-v1", "projection-snapshot-v1", "projection-verify-pr-v1", "recommendation-scan-decision-v1", "recommendation-v3", "refactor-assessment-v1", "refactor-observation-evidence-v1", "refactor-resolution-v1", "refactor-scan-limits-v1", "refactor-scan-untracked-count-v1"]
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "archcontext.architecture-refresh-signal/
|
|
2
|
+
"schemaVersion": "archcontext.architecture-refresh-signal/v2",
|
|
3
3
|
"signalId": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
|
|
4
4
|
"idempotencyKey": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
5
5
|
"mode": "refresh-required",
|
|
@@ -21,13 +21,11 @@
|
|
|
21
21
|
"refreshTargets": ["architecture-contract-context", "architecture-readiness", "capability-context", "capability-index"],
|
|
22
22
|
"baseDigests": {
|
|
23
23
|
"modelDigest": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
|
|
24
|
-
"sourceTreeDigest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
|
|
25
24
|
"flowProofDigest": "sha256:6666666666666666666666666666666666666666666666666666666666666666",
|
|
26
25
|
"projectionDigest": "sha256:7777777777777777777777777777777777777777777777777777777777777777"
|
|
27
26
|
},
|
|
28
27
|
"resultingDigests": {
|
|
29
28
|
"modelDigest": "sha256:8888888888888888888888888888888888888888888888888888888888888888",
|
|
30
|
-
"sourceTreeDigest": "sha256:9999999999999999999999999999999999999999999999999999999999999999",
|
|
31
29
|
"flowProofDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
32
30
|
"projectionDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
|
33
31
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": "archcontext.product-version-manifest/v1",
|
|
3
3
|
"product": {
|
|
4
4
|
"name": "archctx",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.14.1",
|
|
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.
|
|
15
|
+
"version": "0.14.1",
|
|
16
16
|
"entrypoint": "archctx"
|
|
17
17
|
},
|
|
18
18
|
"daemon": {
|
|
19
19
|
"packageName": "@archcontext/local-runtime",
|
|
20
|
-
"version": "0.
|
|
20
|
+
"version": "0.14.1",
|
|
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.
|
|
26
|
+
"version": "0.14.1",
|
|
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.
|
|
33
|
+
"contractsPackageVersion": "0.14.1"
|
|
34
34
|
},
|
|
35
35
|
"runtime": {
|
|
36
36
|
"localRpc": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "archcontext.architecture-docs-projection-manifest/
|
|
2
|
+
"schemaVersion": "archcontext.architecture-docs-projection-manifest/v4",
|
|
3
3
|
"rendererVersion": "archcontext.docs-renderer/v6",
|
|
4
4
|
"profile": "repo-harness/v1",
|
|
5
5
|
"layoutVersion": "archcontext.docs-layout/v1",
|
|
@@ -35,8 +35,6 @@
|
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
37
|
"targets": {
|
|
38
|
-
"projection_target.architecture.changelog":
|
|
39
|
-
{"type":"architecture-changelog","scope":{"kind":"changelog"},"path":"docs/architecture/changelog.md","ownership":"mixed","format":"markdown","outputDigest":"sha256:1f723aeb74466aae7d607eeab8c438a830c36f49a48e6622f868a8151afabea6"},
|
|
40
38
|
"projection_target.architecture.index":
|
|
41
39
|
{"type":"architecture-index","scope":{"kind":"repository"},"path":"docs/architecture/index.md","ownership":"mixed","format":"markdown","outputDigest":"sha256:64f1a29733be5033316aa99f657bfeb543df2fca99a2ba8b4103be22d46eeb57"},
|
|
42
40
|
"projection_target.decision.index":
|
|
@@ -48,6 +46,6 @@
|
|
|
48
46
|
"projection_target.diagram.structurizr":
|
|
49
47
|
{"type":"diagram-structurizr","scope":{"kind":"diagram","id":"architecture"},"path":"docs/architecture/diagrams/architecture.structurizr.json","ownership":"generated","format":"structurizr-json","outputDigest":"sha256:c886230580a87c89ee758db91fc26f6fb2100eb1017cfe0619a3e2332171c42d"},
|
|
50
48
|
"projection_target.entity.capability-example-billing":
|
|
51
|
-
{"type":"entity-summary","scope":{"kind":"entity","id":"capability.example.billing","entityKind":"capability"},"path":"docs/architecture/modules/example/billing.md","ownership":"mixed","format":"markdown","outputDigest":"sha256:2963da98797bba21c3e87b86e60dca3b7c19f75a592723e4c98e0f41b2eb8f58"
|
|
49
|
+
{"type":"entity-summary","scope":{"kind":"entity","id":"capability.example.billing","entityKind":"capability"},"path":"docs/architecture/modules/example/billing.md","ownership":"mixed","format":"markdown","outputDigest":"sha256:2963da98797bba21c3e87b86e60dca3b7c19f75a592723e4c98e0f41b2eb8f58"}
|
|
52
50
|
}
|
|
53
51
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"requestId": "projection_request.repo_main",
|
|
4
4
|
"profile": "repo-harness/v1",
|
|
5
5
|
"mode": "apply",
|
|
6
|
-
"targets": ["agent-context", "architecture-docs"],
|
|
6
|
+
"targets": ["agent-context", "architecture-docs", "architecture-history"],
|
|
7
7
|
"changedPaths": ["packages/core/src/index.ts", "src/cli/main.ts"],
|
|
8
8
|
"expected": {
|
|
9
9
|
"repositoryId": "repo.example",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "archcontext.projection-result/
|
|
2
|
+
"schemaVersion": "archcontext.projection-result/v3",
|
|
3
3
|
"requestId": "projection_request.repo_main",
|
|
4
4
|
"status": "applied",
|
|
5
5
|
"inputSnapshot": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
],
|
|
44
44
|
"humanActions": [],
|
|
45
45
|
"refreshSignals": [],
|
|
46
|
-
"receiptDigest": "sha256:
|
|
46
|
+
"receiptDigest": "sha256:2f8e73315a0ff9c678d496bf78438b47dc5a8a25eb757eda3d15718f58dd2b8c"
|
|
47
47
|
}
|
|
@@ -53,7 +53,10 @@
|
|
|
53
53
|
"path": "src/payment.ts",
|
|
54
54
|
"symbol": "PaymentService.capture",
|
|
55
55
|
"status": "anchor-unconfirmed",
|
|
56
|
-
"digest": "sha256:1111111111111111111111111111111111111111111111111111111111111111"
|
|
56
|
+
"digest": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
|
|
57
|
+
"callees": [
|
|
58
|
+
{ "path": "src/payment-gateway.ts", "qualifiedName": "chargeCard" }
|
|
59
|
+
]
|
|
57
60
|
},
|
|
58
61
|
{
|
|
59
62
|
"owner": "event",
|
|
@@ -61,7 +64,8 @@
|
|
|
61
64
|
"path": "src/order.ts",
|
|
62
65
|
"symbol": "shipOrder",
|
|
63
66
|
"status": "anchor-unconfirmed",
|
|
64
|
-
"digest": "sha256:2222222222222222222222222222222222222222222222222222222222222222"
|
|
67
|
+
"digest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
68
|
+
"callees": []
|
|
65
69
|
},
|
|
66
70
|
{
|
|
67
71
|
"owner": "event",
|
package/package.json
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"required": ["projectionRequest", "projectionResult", "architectureRefreshSignal"],
|
|
23
23
|
"properties": {
|
|
24
24
|
"projectionRequest": { "const": "archcontext.projection-request/v1" },
|
|
25
|
-
"projectionResult": { "const": "archcontext.projection-result/
|
|
26
|
-
"architectureRefreshSignal": { "const": "archcontext.architecture-refresh-signal/
|
|
25
|
+
"projectionResult": { "const": "archcontext.projection-result/v3" },
|
|
26
|
+
"architectureRefreshSignal": { "const": "archcontext.architecture-refresh-signal/v2" }
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"renderers": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"required": ["architectureDocs", "agentContext"],
|
|
33
33
|
"properties": {
|
|
34
34
|
"architectureDocs": { "const": "archcontext.docs-renderer/v6" },
|
|
35
|
-
"agentContext": { "const": "archcontext.agent-context-renderer/
|
|
35
|
+
"agentContext": { "const": "archcontext.agent-context-renderer/v2" }
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"features": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"type": "string",
|
|
44
44
|
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*-v[0-9]+$",
|
|
45
45
|
"description": "One feature flag: a lowercase kebab-case name that ends in a version suffix (-v1, -v2, ...). The pattern is open, so a validator built from this schema accepts flags that a later archctx adds. A consumer must ignore a flag it does not know. examples lists the flags this schema version knows.",
|
|
46
|
-
"examples": ["architecture-change-capabilities-v1", "architecture-debt-v1", "architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "capability-dependencies-declared-v1", "capability-dependencies-v1", "changeset-entity-operations-v1", "changeset-ownership-delta-v1", "code-facts-unavailable-error-v1", "docs-anchors-v1", "flow-selector-check-v1", "module-statistics-v1", "native-context-export-v1", "projection-apply-readback-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-apply-replay-restore-v1", "projection-apply-replay-v1", "projection-architecture-debt-v1", "projection-capability-isolation-v1", "projection-change-classification-
|
|
46
|
+
"examples": ["architecture-change-capabilities-v1", "architecture-debt-v1", "architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "capability-dependencies-declared-v1", "capability-dependencies-v1", "changeset-entity-operations-v1", "changeset-ownership-delta-v1", "code-facts-unavailable-error-v1", "docs-anchors-v1", "flow-selector-check-v1", "module-statistics-v1", "native-context-export-v1", "projection-apply-readback-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-apply-replay-restore-v1", "projection-apply-replay-v1", "projection-architecture-debt-v1", "projection-capability-isolation-v1", "projection-change-classification-v2", "projection-check-freshness-v2", "projection-freshness-v2", "projection-manifest-contract-v4", "projection-observed-major-change-acceptance-v1", "projection-orphan-review-v1", "projection-preview-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "projection-publish-v1", "projection-snapshot-v1", "projection-verify-pr-v1", "recommendation-scan-decision-v1", "recommendation-v3", "refactor-assessment-v1", "refactor-observation-evidence-v1", "refactor-resolution-v1", "refactor-scan-limits-v1", "refactor-scan-untracked-count-v1"]
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://archcontext.dev/schemas/runtime/architecture-refresh-signal.schema.json",
|
|
4
|
-
"title": "
|
|
4
|
+
"title": "ArchitectureRefreshSignalV2",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"required": ["schemaVersion", "signalId", "idempotencyKey", "mode", "repository", "worktree", "cause", "reasonCodes", "affectedNodeIds", "refreshTargets", "baseDigests", "resultingDigests", "projectionReceiptDigest"],
|
|
8
8
|
"properties": {
|
|
9
|
-
"schemaVersion": { "const": "archcontext.architecture-refresh-signal/
|
|
9
|
+
"schemaVersion": { "const": "archcontext.architecture-refresh-signal/v2" },
|
|
10
10
|
"signalId": { "$ref": "#/$defs/digest" },
|
|
11
11
|
"idempotencyKey": { "$ref": "#/$defs/digest" },
|
|
12
12
|
"mode": { "enum": ["human-action-required", "refresh-required"] },
|
|
@@ -103,10 +103,9 @@
|
|
|
103
103
|
"digestSet": {
|
|
104
104
|
"type": "object",
|
|
105
105
|
"additionalProperties": false,
|
|
106
|
-
"required": ["modelDigest", "
|
|
106
|
+
"required": ["modelDigest", "flowProofDigest", "projectionDigest"],
|
|
107
107
|
"properties": {
|
|
108
108
|
"modelDigest": { "$ref": "#/$defs/digest" },
|
|
109
|
-
"sourceTreeDigest": { "$ref": "#/$defs/digest" },
|
|
110
109
|
"flowProofDigest": { "$ref": "#/$defs/digest" },
|
|
111
110
|
"projectionDigest": { "$ref": "#/$defs/digest" }
|
|
112
111
|
}
|
|
@@ -386,7 +386,6 @@
|
|
|
386
386
|
"additionalProperties": false,
|
|
387
387
|
"required": [
|
|
388
388
|
"modelDigest",
|
|
389
|
-
"sourceTreeDigest",
|
|
390
389
|
"flowProofDigest",
|
|
391
390
|
"projectionDigest"
|
|
392
391
|
],
|
|
@@ -394,9 +393,6 @@
|
|
|
394
393
|
"modelDigest": {
|
|
395
394
|
"$ref": "#/$defs/digest"
|
|
396
395
|
},
|
|
397
|
-
"sourceTreeDigest": {
|
|
398
|
-
"$ref": "#/$defs/digest"
|
|
399
|
-
},
|
|
400
396
|
"flowProofDigest": {
|
|
401
397
|
"$ref": "#/$defs/digest"
|
|
402
398
|
},
|
|
@@ -442,7 +438,7 @@
|
|
|
442
438
|
],
|
|
443
439
|
"properties": {
|
|
444
440
|
"schemaVersion": {
|
|
445
|
-
"const": "archcontext.architecture-refresh-signal/
|
|
441
|
+
"const": "archcontext.architecture-refresh-signal/v2"
|
|
446
442
|
},
|
|
447
443
|
"signalId": {
|
|
448
444
|
"$ref": "#/$defs/digest"
|
|
@@ -822,12 +818,11 @@
|
|
|
822
818
|
"targetChange": {
|
|
823
819
|
"type": "object",
|
|
824
820
|
"additionalProperties": false,
|
|
825
|
-
"description": "How one target changes since the committed projection and what this run's write does to its file (#327). null is an unknown comparison. classification follows blocked > proof-change (a known proof change) > baseline-missing > semantic-change > output-change >
|
|
821
|
+
"description": "How one target changes since the committed projection and what this run's write does to its file (#327). null is an unknown comparison. classification follows blocked > proof-change (a known proof change) > baseline-missing > semantic-change > output-change > unchanged.",
|
|
826
822
|
"required": [
|
|
827
823
|
"targetId",
|
|
828
824
|
"path",
|
|
829
825
|
"affectedCapabilityIds",
|
|
830
|
-
"stampChanged",
|
|
831
826
|
"outputChanged",
|
|
832
827
|
"semanticChanged",
|
|
833
828
|
"proofChanged",
|
|
@@ -865,12 +860,6 @@
|
|
|
865
860
|
"minLength": 1
|
|
866
861
|
}
|
|
867
862
|
},
|
|
868
|
-
"stampChanged": {
|
|
869
|
-
"type": [
|
|
870
|
-
"boolean",
|
|
871
|
-
"null"
|
|
872
|
-
]
|
|
873
|
-
},
|
|
874
863
|
"outputChanged": {
|
|
875
864
|
"type": "boolean"
|
|
876
865
|
},
|
|
@@ -901,7 +890,6 @@
|
|
|
901
890
|
"output-change",
|
|
902
891
|
"proof-change",
|
|
903
892
|
"semantic-change",
|
|
904
|
-
"stamp-only",
|
|
905
893
|
"unchanged"
|
|
906
894
|
]
|
|
907
895
|
},
|
|
@@ -920,7 +908,6 @@
|
|
|
920
908
|
"rendered-output-changed",
|
|
921
909
|
"selector-evidence-changed",
|
|
922
910
|
"semantic-fingerprint-changed",
|
|
923
|
-
"source-stamp-changed",
|
|
924
911
|
"target-added",
|
|
925
912
|
"target-removed",
|
|
926
913
|
"target-row-missing",
|
|
@@ -954,10 +941,7 @@
|
|
|
954
941
|
"if": {
|
|
955
942
|
"properties": {
|
|
956
943
|
"classification": {
|
|
957
|
-
"
|
|
958
|
-
"stamp-only",
|
|
959
|
-
"unchanged"
|
|
960
|
-
]
|
|
944
|
+
"const": "unchanged"
|
|
961
945
|
}
|
|
962
946
|
},
|
|
963
947
|
"required": [
|
|
@@ -972,9 +956,6 @@
|
|
|
972
956
|
"outputChanged": {
|
|
973
957
|
"const": false
|
|
974
958
|
},
|
|
975
|
-
"stampChanged": {
|
|
976
|
-
"type": "boolean"
|
|
977
|
-
},
|
|
978
959
|
"semanticChanged": {
|
|
979
960
|
"const": false
|
|
980
961
|
},
|
|
@@ -1128,11 +1109,11 @@
|
|
|
1128
1109
|
"freshness": {
|
|
1129
1110
|
"type": "object",
|
|
1130
1111
|
"additionalProperties": false,
|
|
1131
|
-
"description": "Present on check results only. Canonical wire orders and the ok/reasonCodes/
|
|
1112
|
+
"description": "Present on check results only: render-equivalent freshness (ADR-0056 §1). Canonical wire orders and the ok/reasonCodes/staleTargets coupling are enforced by projectionResultInvariantIssues.",
|
|
1132
1113
|
"required": [
|
|
1133
1114
|
"ok",
|
|
1134
1115
|
"reasonCodes",
|
|
1135
|
-
"
|
|
1116
|
+
"staleTargets"
|
|
1136
1117
|
],
|
|
1137
1118
|
"properties": {
|
|
1138
1119
|
"ok": {
|
|
@@ -1143,34 +1124,52 @@
|
|
|
1143
1124
|
"uniqueItems": true,
|
|
1144
1125
|
"items": {
|
|
1145
1126
|
"enum": [
|
|
1127
|
+
"projection-manifest-changed",
|
|
1146
1128
|
"projection-manifest-missing",
|
|
1147
1129
|
"projection-manifest-unreadable",
|
|
1148
|
-
"projection-
|
|
1149
|
-
"projection-source-stamp-missing",
|
|
1150
|
-
"projection-source-tree-digest-mismatch"
|
|
1130
|
+
"projection-output-changed"
|
|
1151
1131
|
]
|
|
1152
1132
|
}
|
|
1153
1133
|
},
|
|
1154
|
-
"
|
|
1134
|
+
"staleTargets": {
|
|
1155
1135
|
"type": "array",
|
|
1156
1136
|
"items": {
|
|
1157
1137
|
"type": "object",
|
|
1158
1138
|
"additionalProperties": false,
|
|
1159
1139
|
"required": [
|
|
1160
|
-
"
|
|
1161
|
-
"
|
|
1162
|
-
"
|
|
1140
|
+
"targetId",
|
|
1141
|
+
"path",
|
|
1142
|
+
"committedOutputDigest",
|
|
1143
|
+
"renderedOutputDigest"
|
|
1163
1144
|
],
|
|
1164
1145
|
"properties": {
|
|
1165
|
-
"
|
|
1146
|
+
"targetId": {
|
|
1166
1147
|
"type": "string",
|
|
1167
1148
|
"minLength": 1
|
|
1168
1149
|
},
|
|
1169
|
-
"
|
|
1170
|
-
"
|
|
1150
|
+
"path": {
|
|
1151
|
+
"type": "string",
|
|
1152
|
+
"minLength": 1
|
|
1171
1153
|
},
|
|
1172
|
-
"
|
|
1173
|
-
"
|
|
1154
|
+
"committedOutputDigest": {
|
|
1155
|
+
"anyOf": [
|
|
1156
|
+
{
|
|
1157
|
+
"$ref": "#/$defs/digest"
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
"type": "null"
|
|
1161
|
+
}
|
|
1162
|
+
]
|
|
1163
|
+
},
|
|
1164
|
+
"renderedOutputDigest": {
|
|
1165
|
+
"anyOf": [
|
|
1166
|
+
{
|
|
1167
|
+
"$ref": "#/$defs/digest"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"type": "null"
|
|
1171
|
+
}
|
|
1172
|
+
]
|
|
1174
1173
|
}
|
|
1175
1174
|
}
|
|
1176
1175
|
}
|
|
@@ -1255,7 +1254,7 @@
|
|
|
1255
1254
|
],
|
|
1256
1255
|
"properties": {
|
|
1257
1256
|
"schemaVersion": {
|
|
1258
|
-
"const": "archcontext.projection-result/
|
|
1257
|
+
"const": "archcontext.projection-result/v3"
|
|
1259
1258
|
},
|
|
1260
1259
|
"requestId": {
|
|
1261
1260
|
"type": "string",
|
|
@@ -1331,7 +1330,7 @@
|
|
|
1331
1330
|
},
|
|
1332
1331
|
"changes": {
|
|
1333
1332
|
"type": "array",
|
|
1334
|
-
"description": "Present on every check and plan result and on no other. One entry per target
|
|
1333
|
+
"description": "Present on every check and plan result and on no other. One entry per target, the projection manifest excluded; targetId is unique, and only agent-context targets share a path (ADR-0056 §9). Canonical wire order is by path, then targetId; the precedence derivation of classification, the reason-code couplings and the binding of plannedAction to files[] and of blocked targets to coverage are enforced by projectionTargetChangesIssues and projectionResultInvariantIssues.",
|
|
1335
1334
|
"items": {
|
|
1336
1335
|
"$ref": "#/$defs/targetChange"
|
|
1337
1336
|
}
|
|
@@ -1578,7 +1577,7 @@
|
|
|
1578
1577
|
],
|
|
1579
1578
|
"properties": {
|
|
1580
1579
|
"schemaVersion": {
|
|
1581
|
-
"const": "archcontext.projection-apply-recovery-binding/
|
|
1580
|
+
"const": "archcontext.projection-apply-recovery-binding/v2"
|
|
1582
1581
|
},
|
|
1583
1582
|
"targets": {
|
|
1584
1583
|
"type": "array",
|
|
@@ -1588,7 +1587,8 @@
|
|
|
1588
1587
|
"items": {
|
|
1589
1588
|
"enum": [
|
|
1590
1589
|
"agent-context",
|
|
1591
|
-
"architecture-docs"
|
|
1590
|
+
"architecture-docs",
|
|
1591
|
+
"architecture-history"
|
|
1592
1592
|
]
|
|
1593
1593
|
}
|
|
1594
1594
|
},
|
|
@@ -1683,7 +1683,7 @@
|
|
|
1683
1683
|
],
|
|
1684
1684
|
"properties": {
|
|
1685
1685
|
"schemaVersion": {
|
|
1686
|
-
"const": "archcontext.projection-apply-readback-result/
|
|
1686
|
+
"const": "archcontext.projection-apply-readback-result/v2"
|
|
1687
1687
|
},
|
|
1688
1688
|
"requestId": {
|
|
1689
1689
|
"type": "string",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"required": ["schemaVersion"],
|
|
8
8
|
"properties": {
|
|
9
|
-
"schemaVersion": { "enum": ["archcontext.projection-apply-recovery-intent/v1", "archcontext.projection-apply-recovery-proof/
|
|
9
|
+
"schemaVersion": { "enum": ["archcontext.projection-apply-recovery-intent/v1", "archcontext.projection-apply-recovery-proof/v2", "archcontext.projection-apply-recovery-result/v2"] },
|
|
10
10
|
"requestId": {},
|
|
11
11
|
"profile": {},
|
|
12
12
|
"acceptedChange": {},
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"then": { "$ref": "#/$defs/intent" }
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"if": { "properties": { "schemaVersion": { "const": "archcontext.projection-apply-recovery-proof/
|
|
28
|
+
"if": { "properties": { "schemaVersion": { "const": "archcontext.projection-apply-recovery-proof/v2" } }, "required": ["schemaVersion"] },
|
|
29
29
|
"then": { "$ref": "#/$defs/proof" }
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
"if": { "properties": { "schemaVersion": { "const": "archcontext.projection-apply-recovery-result/
|
|
32
|
+
"if": { "properties": { "schemaVersion": { "const": "archcontext.projection-apply-recovery-result/v2" } }, "required": ["schemaVersion"] },
|
|
33
33
|
"then": { "$ref": "#/$defs/result" }
|
|
34
34
|
}
|
|
35
35
|
],
|
|
@@ -54,10 +54,9 @@
|
|
|
54
54
|
"digestSet": {
|
|
55
55
|
"type": "object",
|
|
56
56
|
"additionalProperties": false,
|
|
57
|
-
"required": ["modelDigest", "
|
|
57
|
+
"required": ["modelDigest", "flowProofDigest", "projectionDigest"],
|
|
58
58
|
"properties": {
|
|
59
59
|
"modelDigest": { "$ref": "#/$defs/digest" },
|
|
60
|
-
"sourceTreeDigest": { "$ref": "#/$defs/digest" },
|
|
61
60
|
"flowProofDigest": { "$ref": "#/$defs/digest" },
|
|
62
61
|
"projectionDigest": { "$ref": "#/$defs/digest" }
|
|
63
62
|
}
|
|
@@ -152,7 +151,7 @@
|
|
|
152
151
|
"additionalProperties": false,
|
|
153
152
|
"required": ["schemaVersion", "requestId", "requestDigest", "proofDigest", "deliveryStatus", "receipt", "acceptedChange", "expectedResultingDigests", "current"],
|
|
154
153
|
"properties": {
|
|
155
|
-
"schemaVersion": { "const": "archcontext.projection-apply-recovery-proof/
|
|
154
|
+
"schemaVersion": { "const": "archcontext.projection-apply-recovery-proof/v2" },
|
|
156
155
|
"requestId": { "type": "string", "pattern": "^[a-zA-Z0-9_.:-]+$", "minLength": 1 },
|
|
157
156
|
"requestDigest": { "$ref": "#/$defs/digest" },
|
|
158
157
|
"proofDigest": { "$ref": "#/$defs/digest" },
|
|
@@ -178,7 +177,7 @@
|
|
|
178
177
|
"additionalProperties": false,
|
|
179
178
|
"required": ["schemaVersion", "signalId", "idempotencyKey", "mode", "repository", "worktree", "cause", "reasonCodes", "affectedNodeIds", "refreshTargets", "baseDigests", "resultingDigests", "projectionReceiptDigest"],
|
|
180
179
|
"properties": {
|
|
181
|
-
"schemaVersion": { "const": "archcontext.architecture-refresh-signal/
|
|
180
|
+
"schemaVersion": { "const": "archcontext.architecture-refresh-signal/v2" },
|
|
182
181
|
"signalId": { "$ref": "#/$defs/digest" },
|
|
183
182
|
"idempotencyKey": { "$ref": "#/$defs/digest" },
|
|
184
183
|
"mode": { "enum": ["human-action-required", "refresh-required"] },
|
|
@@ -200,7 +199,7 @@
|
|
|
200
199
|
"additionalProperties": false,
|
|
201
200
|
"required": ["schemaVersion", "proof", "refreshSignals"],
|
|
202
201
|
"properties": {
|
|
203
|
-
"schemaVersion": { "const": "archcontext.projection-apply-recovery-result/
|
|
202
|
+
"schemaVersion": { "const": "archcontext.projection-apply-recovery-result/v2" },
|
|
204
203
|
"proof": { "$ref": "#/$defs/proof" },
|
|
205
204
|
"refreshSignals": { "type": "array", "items": { "$ref": "#/$defs/refreshSignal" } }
|
|
206
205
|
}
|