archctx-contracts 0.2.2 → 0.3.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/fixtures/boundary/explorer-projection-v2-budget.json +87 -0
- package/fixtures/invalid/architecture-snapshot-unknown-mode.json +22 -4
- package/fixtures/invalid/explorer-projection-query-v2-caller-scope.json +7 -0
- package/fixtures/invalid/explorer-projection-v2-derived-subject.json +101 -0
- package/fixtures/valid/architecture-snapshot.json +22 -4
- package/fixtures/valid/explorer-delta-query.json +11 -0
- package/fixtures/valid/explorer-projection-delta.json +32 -0
- package/fixtures/valid/explorer-projection-query-v2.json +6 -0
- package/fixtures/valid/explorer-projection-v2.json +138 -0
- package/fixtures/valid/product-version-manifest.json +7 -7
- package/package.json +1 -1
- package/schemas/runtime/architecture-event.schema.json +172 -2
- package/schemas/runtime/architecture-snapshot.schema.json +37 -4
- package/schemas/runtime/explorer-delta-query.schema.json +24 -0
- package/schemas/runtime/explorer-projection-delta.schema.json +79 -0
- package/schemas/runtime/explorer-projection-query-v2.schema.json +42 -0
- package/schemas/runtime/explorer-projection-v2.schema.json +538 -0
- package/src/ledger.ts +125 -3
- package/src/ports.ts +399 -32
- package/src/product-version.ts +5 -5
- package/src/schema.ts +3 -2
- package/src/validator.ts +52 -5
- package/fixtures/invalid/explorer-projection-write-field.json +0 -21
- package/fixtures/valid/explorer-projection.json +0 -53
- package/schemas/runtime/explorer-projection.schema.json +0 -92
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "archcontext.explorer-projection/v2",
|
|
3
|
+
"view": { "id": "system-map", "title": "System Map", "question": "What exists?" },
|
|
4
|
+
"availableViews": [{ "id": "system-map", "enabled": true }],
|
|
5
|
+
"semanticLevel": "context",
|
|
6
|
+
"breadcrumbs": [],
|
|
7
|
+
"cursor": {
|
|
8
|
+
"repository": { "repositoryId": "repo.local", "storageRepositoryId": "repo.1111111111111111" },
|
|
9
|
+
"worktree": { "workspaceId": "workspace.local", "storageWorkspaceId": "ws.1111111111111111", "branch": "main", "headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "worktreeDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111" },
|
|
10
|
+
"authoritySource": "git",
|
|
11
|
+
"authorityCursor": null,
|
|
12
|
+
"evidenceAuthorityCursor": null,
|
|
13
|
+
"inputManifestDigest": "sha256:9999999999999999999999999999999999999999999999999999999999999999",
|
|
14
|
+
"compatibilityDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
15
|
+
"graphDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
16
|
+
"evidenceStateDigest": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
17
|
+
"observedFactsDigest": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
18
|
+
"viewDefinitionDigest": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
|
|
19
|
+
"compilerVersion": "archcontext.explorer-view-compiler/v1",
|
|
20
|
+
"observedAvailability": { "status": "ready" }
|
|
21
|
+
},
|
|
22
|
+
"inputManifest": {
|
|
23
|
+
"schemaVersion": "archcontext.projection-input-manifest/v1",
|
|
24
|
+
"repository": { "repositoryId": "repo.local", "storageRepositoryId": "repo.1111111111111111" },
|
|
25
|
+
"worktree": { "workspaceId": "workspace.local", "storageWorkspaceId": "ws.1111111111111111", "branch": "main", "headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "worktreeDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111" },
|
|
26
|
+
"authoritySource": "git",
|
|
27
|
+
"authorityCursor": null,
|
|
28
|
+
"evidenceAuthorityCursor": null,
|
|
29
|
+
"queryDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
30
|
+
"graphDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
31
|
+
"evidenceStateDigest": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
32
|
+
"observedFactsDigest": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
33
|
+
"observedAvailability": { "status": "ready" },
|
|
34
|
+
"bindingsDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
35
|
+
"eventBacklinksDigest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
36
|
+
"driftDigest": null,
|
|
37
|
+
"pressureDigest": null,
|
|
38
|
+
"taskSessionDigest": null,
|
|
39
|
+
"readPlan": {
|
|
40
|
+
"schemaVersion": "archcontext.projection-read-plan/v1",
|
|
41
|
+
"plannerVersion": "archcontext.projection-read-planner/v1",
|
|
42
|
+
"kind": "bounded-context",
|
|
43
|
+
"source": "git-authority",
|
|
44
|
+
"queryDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
45
|
+
"semanticLevel": "context",
|
|
46
|
+
"focusSubjectId": null,
|
|
47
|
+
"expandedKinds": [],
|
|
48
|
+
"depth": 1,
|
|
49
|
+
"limits": { "maxEntities": 1, "maxRelations": 0, "maxConstraints": 2, "maxBindings": 4, "maxBacklinks": 8, "maxGraphRows": 3 },
|
|
50
|
+
"requiredDomains": ["authority", "bindings", "evidence", "graph", "observed"],
|
|
51
|
+
"ordering": "canonical-id-asc",
|
|
52
|
+
"truncation": "hard-limit-with-authoritative-totals",
|
|
53
|
+
"planDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
|
54
|
+
},
|
|
55
|
+
"readSet": {
|
|
56
|
+
"schemaVersion": "archcontext.projection-read-set/v1",
|
|
57
|
+
"planDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
58
|
+
"selectedGraphDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
59
|
+
"authoritativeTotals": { "entities": 10000, "relations": 9999, "constraints": 0 },
|
|
60
|
+
"entityKindTotals": [{ "kind": "module", "count": 10000 }],
|
|
61
|
+
"rowsRead": { "entities": 0, "relations": 0, "constraints": 0, "bindings": 0, "backlinks": 0 },
|
|
62
|
+
"truncated": true,
|
|
63
|
+
"readSetDigest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
|
64
|
+
},
|
|
65
|
+
"inputDomains": {
|
|
66
|
+
"authority": { "requirement": "required", "status": "ready", "digest": "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" },
|
|
67
|
+
"graph": { "requirement": "required", "status": "ready", "digest": "sha256:2222222222222222222222222222222222222222222222222222222222222222" },
|
|
68
|
+
"evidence": { "requirement": "required", "status": "ready", "digest": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" },
|
|
69
|
+
"observed": { "requirement": "required", "status": "ready", "digest": "sha256:3333333333333333333333333333333333333333333333333333333333333333" },
|
|
70
|
+
"bindings": { "requirement": "required", "status": "ready", "digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" },
|
|
71
|
+
"event-backlinks": { "requirement": "optional", "status": "ready", "digest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" },
|
|
72
|
+
"drift": { "requirement": "optional", "status": "unavailable", "digest": null, "reasonCode": "not-provided" },
|
|
73
|
+
"pressure": { "requirement": "optional", "status": "unavailable", "digest": null, "reasonCode": "not-provided" },
|
|
74
|
+
"task-session": { "requirement": "optional", "status": "unavailable", "digest": null, "reasonCode": "not-provided" }
|
|
75
|
+
},
|
|
76
|
+
"viewDefinitionDigest": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
|
|
77
|
+
"compilerVersion": "archcontext.explorer-view-compiler/v1",
|
|
78
|
+
"tokenRequired": true,
|
|
79
|
+
"compatibilityDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
80
|
+
"manifestDigest": "sha256:9999999999999999999999999999999999999999999999999999999999999999"
|
|
81
|
+
},
|
|
82
|
+
"occurrences": [],
|
|
83
|
+
"relations": [],
|
|
84
|
+
"page": { "budget": { "maxNodes": 1, "maxRelations": 0 }, "totalNodes": 10000, "totalRelations": 9999, "returnedNodes": 0, "returnedRelations": 0, "truncated": true, "omittedNodeCount": 10000, "omittedRelationCount": 9999 },
|
|
85
|
+
"projectionDigest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
|
|
86
|
+
"capabilities": { "readOnly": true, "mutationMode": "forbidden", "egress": "none", "tokenRequired": true }
|
|
87
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "archcontext.architecture-snapshot/
|
|
2
|
+
"schemaVersion": "archcontext.architecture-snapshot/v2",
|
|
3
3
|
"snapshotId": "arch_snapshot.invalid_mode",
|
|
4
4
|
"repository": {
|
|
5
5
|
"repositoryId": "repo.archcontext",
|
|
@@ -14,14 +14,32 @@
|
|
|
14
14
|
},
|
|
15
15
|
"sourceMode": "sql-only",
|
|
16
16
|
"eventCursor": {
|
|
17
|
+
"eventCount": 1,
|
|
18
|
+
"lastEventSequence": 1,
|
|
17
19
|
"lastEventId": "arch_event.al0_contract_freeze",
|
|
18
20
|
"lastEventHash": "sha256:5555555555555555555555555555555555555555555555555555555555555555"
|
|
19
21
|
},
|
|
20
22
|
"graphDigest": "sha256:6666666666666666666666666666666666666666666666666666666666666666",
|
|
23
|
+
"evidenceDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
24
|
+
"stateDigest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
25
|
+
"state": {
|
|
26
|
+
"graph": {
|
|
27
|
+
"entities": [],
|
|
28
|
+
"relations": [],
|
|
29
|
+
"constraints": []
|
|
30
|
+
},
|
|
31
|
+
"evidence": {
|
|
32
|
+
"schemaVersion": "archcontext.evidence-state-at-cursor/v1",
|
|
33
|
+
"evidenceItems": [],
|
|
34
|
+
"evidenceBindings": [],
|
|
35
|
+
"tombstones": [],
|
|
36
|
+
"stateDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
21
39
|
"projectionDigest": "sha256:7777777777777777777777777777777777777777777777777777777777777777",
|
|
22
|
-
"entityCount":
|
|
23
|
-
"relationCount":
|
|
24
|
-
"constraintCount":
|
|
40
|
+
"entityCount": 0,
|
|
41
|
+
"relationCount": 0,
|
|
42
|
+
"constraintCount": 0,
|
|
25
43
|
"inputDigests": {
|
|
26
44
|
"modelDigest": "sha256:8888888888888888888888888888888888888888888888888888888888888888"
|
|
27
45
|
},
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "archcontext.explorer-projection/v2",
|
|
3
|
+
"view": { "id": "system-map", "title": "System Map", "question": "What exists?" },
|
|
4
|
+
"availableViews": [{ "id": "system-map", "enabled": true }],
|
|
5
|
+
"semanticLevel": "overview",
|
|
6
|
+
"breadcrumbs": [],
|
|
7
|
+
"cursor": {
|
|
8
|
+
"repository": { "repositoryId": "repo.local", "storageRepositoryId": "repo.1111111111111111" },
|
|
9
|
+
"worktree": { "workspaceId": "workspace.local", "storageWorkspaceId": "ws.1111111111111111", "branch": "main", "headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "worktreeDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111" },
|
|
10
|
+
"authoritySource": "git",
|
|
11
|
+
"authorityCursor": null,
|
|
12
|
+
"evidenceAuthorityCursor": null,
|
|
13
|
+
"inputManifestDigest": "sha256:9999999999999999999999999999999999999999999999999999999999999999",
|
|
14
|
+
"compatibilityDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
15
|
+
"graphDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
16
|
+
"evidenceStateDigest": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
17
|
+
"observedFactsDigest": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
18
|
+
"viewDefinitionDigest": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
|
|
19
|
+
"compilerVersion": "archcontext.explorer-view-compiler/v1",
|
|
20
|
+
"observedAvailability": { "status": "ready" }
|
|
21
|
+
},
|
|
22
|
+
"inputManifest": {
|
|
23
|
+
"schemaVersion": "archcontext.projection-input-manifest/v1",
|
|
24
|
+
"repository": { "repositoryId": "repo.local", "storageRepositoryId": "repo.1111111111111111" },
|
|
25
|
+
"worktree": { "workspaceId": "workspace.local", "storageWorkspaceId": "ws.1111111111111111", "branch": "main", "headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "worktreeDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111" },
|
|
26
|
+
"authoritySource": "git",
|
|
27
|
+
"authorityCursor": null,
|
|
28
|
+
"evidenceAuthorityCursor": null,
|
|
29
|
+
"queryDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
30
|
+
"graphDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
31
|
+
"evidenceStateDigest": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
32
|
+
"observedFactsDigest": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
33
|
+
"observedAvailability": { "status": "ready" },
|
|
34
|
+
"bindingsDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
35
|
+
"eventBacklinksDigest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
36
|
+
"driftDigest": null,
|
|
37
|
+
"pressureDigest": null,
|
|
38
|
+
"taskSessionDigest": null,
|
|
39
|
+
"readPlan": {
|
|
40
|
+
"schemaVersion": "archcontext.projection-read-plan/v1",
|
|
41
|
+
"plannerVersion": "archcontext.projection-read-planner/v1",
|
|
42
|
+
"kind": "bounded-context",
|
|
43
|
+
"source": "git-authority",
|
|
44
|
+
"queryDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
45
|
+
"semanticLevel": "context",
|
|
46
|
+
"focusSubjectId": null,
|
|
47
|
+
"expandedKinds": [],
|
|
48
|
+
"depth": 1,
|
|
49
|
+
"limits": { "maxEntities": 80, "maxRelations": 160, "maxConstraints": 160, "maxBindings": 320, "maxBacklinks": 640, "maxGraphRows": 400 },
|
|
50
|
+
"requiredDomains": ["authority", "bindings", "evidence", "graph", "observed"],
|
|
51
|
+
"ordering": "canonical-id-asc",
|
|
52
|
+
"truncation": "hard-limit-with-authoritative-totals",
|
|
53
|
+
"planDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
|
54
|
+
},
|
|
55
|
+
"readSet": {
|
|
56
|
+
"schemaVersion": "archcontext.projection-read-set/v1",
|
|
57
|
+
"planDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
58
|
+
"selectedGraphDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
59
|
+
"authoritativeTotals": { "entities": 1, "relations": 0, "constraints": 0 },
|
|
60
|
+
"entityKindTotals": [{ "kind": "module", "count": 1 }],
|
|
61
|
+
"rowsRead": { "entities": 1, "relations": 0, "constraints": 0, "bindings": 0, "backlinks": 0 },
|
|
62
|
+
"truncated": false,
|
|
63
|
+
"readSetDigest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
|
64
|
+
},
|
|
65
|
+
"inputDomains": {
|
|
66
|
+
"authority": { "requirement": "required", "status": "ready", "digest": "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" },
|
|
67
|
+
"graph": { "requirement": "required", "status": "ready", "digest": "sha256:2222222222222222222222222222222222222222222222222222222222222222" },
|
|
68
|
+
"evidence": { "requirement": "required", "status": "ready", "digest": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" },
|
|
69
|
+
"observed": { "requirement": "required", "status": "ready", "digest": "sha256:3333333333333333333333333333333333333333333333333333333333333333" },
|
|
70
|
+
"bindings": { "requirement": "required", "status": "ready", "digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" },
|
|
71
|
+
"event-backlinks": { "requirement": "optional", "status": "ready", "digest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" },
|
|
72
|
+
"drift": { "requirement": "optional", "status": "unavailable", "digest": null, "reasonCode": "not-provided" },
|
|
73
|
+
"pressure": { "requirement": "optional", "status": "unavailable", "digest": null, "reasonCode": "not-provided" },
|
|
74
|
+
"task-session": { "requirement": "optional", "status": "unavailable", "digest": null, "reasonCode": "not-provided" }
|
|
75
|
+
},
|
|
76
|
+
"viewDefinitionDigest": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
|
|
77
|
+
"compilerVersion": "archcontext.explorer-view-compiler/v1",
|
|
78
|
+
"tokenRequired": true,
|
|
79
|
+
"compatibilityDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
80
|
+
"manifestDigest": "sha256:9999999999999999999999999999999999999999999999999999999999999999"
|
|
81
|
+
},
|
|
82
|
+
"occurrences": [{
|
|
83
|
+
"occurrenceId": "occurrence.system-map.group.fake",
|
|
84
|
+
"role": "derived-group",
|
|
85
|
+
"subjectRefs": [{ "kind": "architecture-entity", "id": "fake" }],
|
|
86
|
+
"name": "Fake",
|
|
87
|
+
"kind": "group",
|
|
88
|
+
"childrenCount": 0,
|
|
89
|
+
"expandable": false,
|
|
90
|
+
"verificationStatus": "UNKNOWN",
|
|
91
|
+
"authorityState": "DERIVED",
|
|
92
|
+
"pressure": { "evaluated": false, "signals": [] },
|
|
93
|
+
"sourceSelectors": [],
|
|
94
|
+
"provenance": { "declaredEntityIds": [], "observedSymbolIds": [], "evidenceBindingIds": [] },
|
|
95
|
+
"derivation": { "ruleId": "fake", "inputDigest": "sha256:x", "compilerVersion": "archcontext.explorer-view-compiler/v1" }
|
|
96
|
+
}],
|
|
97
|
+
"relations": [],
|
|
98
|
+
"page": { "budget": { "maxNodes": 1, "maxRelations": 0 }, "totalNodes": 1, "totalRelations": 0, "returnedNodes": 1, "returnedRelations": 0, "truncated": false, "omittedNodeCount": 0, "omittedRelationCount": 0 },
|
|
99
|
+
"projectionDigest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
|
|
100
|
+
"capabilities": { "readOnly": true, "mutationMode": "forbidden", "egress": "none", "tokenRequired": true }
|
|
101
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "archcontext.architecture-snapshot/
|
|
2
|
+
"schemaVersion": "archcontext.architecture-snapshot/v2",
|
|
3
3
|
"snapshotId": "arch_snapshot.al0_contract_freeze",
|
|
4
4
|
"repository": {
|
|
5
5
|
"repositoryId": "repo.archcontext",
|
|
@@ -14,14 +14,32 @@
|
|
|
14
14
|
},
|
|
15
15
|
"sourceMode": "dual",
|
|
16
16
|
"eventCursor": {
|
|
17
|
+
"eventCount": 1,
|
|
18
|
+
"lastEventSequence": 1,
|
|
17
19
|
"lastEventId": "arch_event.al0_contract_freeze",
|
|
18
20
|
"lastEventHash": "sha256:5555555555555555555555555555555555555555555555555555555555555555"
|
|
19
21
|
},
|
|
20
22
|
"graphDigest": "sha256:6666666666666666666666666666666666666666666666666666666666666666",
|
|
23
|
+
"evidenceDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
24
|
+
"stateDigest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
25
|
+
"state": {
|
|
26
|
+
"graph": {
|
|
27
|
+
"entities": [],
|
|
28
|
+
"relations": [],
|
|
29
|
+
"constraints": []
|
|
30
|
+
},
|
|
31
|
+
"evidence": {
|
|
32
|
+
"schemaVersion": "archcontext.evidence-state-at-cursor/v1",
|
|
33
|
+
"evidenceItems": [],
|
|
34
|
+
"evidenceBindings": [],
|
|
35
|
+
"tombstones": [],
|
|
36
|
+
"stateDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
21
39
|
"projectionDigest": "sha256:7777777777777777777777777777777777777777777777777777777777777777",
|
|
22
|
-
"entityCount":
|
|
23
|
-
"relationCount":
|
|
24
|
-
"constraintCount":
|
|
40
|
+
"entityCount": 0,
|
|
41
|
+
"relationCount": 0,
|
|
42
|
+
"constraintCount": 0,
|
|
25
43
|
"inputDigests": {
|
|
26
44
|
"modelDigest": "sha256:8888888888888888888888888888888888888888888888888888888888888888",
|
|
27
45
|
"codeFactsDigest": "sha256:9999999999999999999999999999999999999999999999999999999999999999",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "archcontext.explorer-delta-query/v2",
|
|
3
|
+
"base": {
|
|
4
|
+
"eventId": "arch_event.base",
|
|
5
|
+
"projectionDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111"
|
|
6
|
+
},
|
|
7
|
+
"head": {
|
|
8
|
+
"eventId": "arch_event.head",
|
|
9
|
+
"projectionDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "archcontext.explorer-projection-delta/v2",
|
|
3
|
+
"base": {
|
|
4
|
+
"schemaVersion": "archcontext.authority-cursor/v1",
|
|
5
|
+
"repository": { "repositoryId": "repo.local", "storageRepositoryId": "repo.storage" },
|
|
6
|
+
"worktree": { "workspaceId": "ws.local", "storageWorkspaceId": "ws.storage", "branch": "main", "headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "worktreeDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111" },
|
|
7
|
+
"eventSequence": 1,
|
|
8
|
+
"eventId": "arch_event.base",
|
|
9
|
+
"eventHash": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
10
|
+
"graphDigest": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
11
|
+
"evidenceStateDigest": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
|
|
12
|
+
"projectionDigest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
|
|
13
|
+
"inputManifestDigest": "sha256:6666666666666666666666666666666666666666666666666666666666666666"
|
|
14
|
+
},
|
|
15
|
+
"head": {
|
|
16
|
+
"schemaVersion": "archcontext.authority-cursor/v1",
|
|
17
|
+
"repository": { "repositoryId": "repo.local", "storageRepositoryId": "repo.storage" },
|
|
18
|
+
"worktree": { "workspaceId": "ws.local", "storageWorkspaceId": "ws.storage", "branch": "main", "headSha": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "worktreeDigest": "sha256:7777777777777777777777777777777777777777777777777777777777777777" },
|
|
19
|
+
"eventSequence": 2,
|
|
20
|
+
"eventId": "arch_event.head",
|
|
21
|
+
"eventHash": "sha256:8888888888888888888888888888888888888888888888888888888888888888",
|
|
22
|
+
"graphDigest": "sha256:9999999999999999999999999999999999999999999999999999999999999999",
|
|
23
|
+
"evidenceStateDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
24
|
+
"projectionDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
25
|
+
"inputManifestDigest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
|
26
|
+
},
|
|
27
|
+
"factChanges": [{ "deltaClass": "architecture-fact", "subjectId": "entity:module.api", "change": "added", "fields": ["entity"] }],
|
|
28
|
+
"evidenceChanges": [],
|
|
29
|
+
"projectionChanges": [],
|
|
30
|
+
"counts": { "architecture-fact": 1, "evidence": 0, "projection": 0 },
|
|
31
|
+
"deltaDigest": "sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"
|
|
32
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "archcontext.explorer-projection/v2",
|
|
3
|
+
"view": {
|
|
4
|
+
"id": "system-map",
|
|
5
|
+
"title": "System Map",
|
|
6
|
+
"question": "What accepted architecture entities exist and how do they relate?"
|
|
7
|
+
},
|
|
8
|
+
"availableViews": [
|
|
9
|
+
{ "id": "system-map", "enabled": true },
|
|
10
|
+
{ "id": "task-impact", "enabled": false, "reason": "task session required" },
|
|
11
|
+
{ "id": "drift-pressure", "enabled": true },
|
|
12
|
+
{ "id": "data-flow", "enabled": true },
|
|
13
|
+
{ "id": "external-integrations", "enabled": true }
|
|
14
|
+
],
|
|
15
|
+
"semanticLevel": "context",
|
|
16
|
+
"breadcrumbs": [],
|
|
17
|
+
"cursor": {
|
|
18
|
+
"repository": { "repositoryId": "repo.local", "storageRepositoryId": "repo.1111111111111111" },
|
|
19
|
+
"worktree": {
|
|
20
|
+
"workspaceId": "workspace.local",
|
|
21
|
+
"storageWorkspaceId": "ws.1111111111111111",
|
|
22
|
+
"branch": "main",
|
|
23
|
+
"headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
24
|
+
"worktreeDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111"
|
|
25
|
+
},
|
|
26
|
+
"authoritySource": "git",
|
|
27
|
+
"authorityCursor": null,
|
|
28
|
+
"evidenceAuthorityCursor": null,
|
|
29
|
+
"inputManifestDigest": "sha256:9999999999999999999999999999999999999999999999999999999999999999",
|
|
30
|
+
"compatibilityDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
31
|
+
"graphDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
32
|
+
"evidenceStateDigest": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
33
|
+
"observedFactsDigest": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
34
|
+
"viewDefinitionDigest": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
|
|
35
|
+
"compilerVersion": "archcontext.explorer-view-compiler/v1",
|
|
36
|
+
"observedAvailability": { "status": "ready" }
|
|
37
|
+
},
|
|
38
|
+
"inputManifest": {
|
|
39
|
+
"schemaVersion": "archcontext.projection-input-manifest/v1",
|
|
40
|
+
"repository": { "repositoryId": "repo.local", "storageRepositoryId": "repo.1111111111111111" },
|
|
41
|
+
"worktree": { "workspaceId": "workspace.local", "storageWorkspaceId": "ws.1111111111111111", "branch": "main", "headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "worktreeDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111" },
|
|
42
|
+
"authoritySource": "git",
|
|
43
|
+
"authorityCursor": null,
|
|
44
|
+
"evidenceAuthorityCursor": null,
|
|
45
|
+
"queryDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
46
|
+
"graphDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
47
|
+
"evidenceStateDigest": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
48
|
+
"observedFactsDigest": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
49
|
+
"observedAvailability": { "status": "ready" },
|
|
50
|
+
"bindingsDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
51
|
+
"eventBacklinksDigest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
52
|
+
"driftDigest": null,
|
|
53
|
+
"pressureDigest": "sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
54
|
+
"taskSessionDigest": null,
|
|
55
|
+
"readPlan": {
|
|
56
|
+
"schemaVersion": "archcontext.projection-read-plan/v1",
|
|
57
|
+
"plannerVersion": "archcontext.projection-read-planner/v1",
|
|
58
|
+
"kind": "bounded-context",
|
|
59
|
+
"source": "git-authority",
|
|
60
|
+
"queryDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
61
|
+
"semanticLevel": "context",
|
|
62
|
+
"focusSubjectId": null,
|
|
63
|
+
"expandedKinds": [],
|
|
64
|
+
"depth": 1,
|
|
65
|
+
"limits": { "maxEntities": 80, "maxRelations": 160, "maxConstraints": 160, "maxBindings": 320, "maxBacklinks": 640, "maxGraphRows": 400 },
|
|
66
|
+
"requiredDomains": ["authority", "bindings", "evidence", "graph", "observed"],
|
|
67
|
+
"ordering": "canonical-id-asc",
|
|
68
|
+
"truncation": "hard-limit-with-authoritative-totals",
|
|
69
|
+
"planDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
|
70
|
+
},
|
|
71
|
+
"readSet": {
|
|
72
|
+
"schemaVersion": "archcontext.projection-read-set/v1",
|
|
73
|
+
"planDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
74
|
+
"selectedGraphDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
75
|
+
"authoritativeTotals": { "entities": 1, "relations": 0, "constraints": 0 },
|
|
76
|
+
"entityKindTotals": [{ "kind": "module", "count": 1 }],
|
|
77
|
+
"rowsRead": { "entities": 1, "relations": 0, "constraints": 0, "bindings": 0, "backlinks": 0 },
|
|
78
|
+
"truncated": false,
|
|
79
|
+
"readSetDigest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
|
80
|
+
},
|
|
81
|
+
"inputDomains": {
|
|
82
|
+
"authority": { "requirement": "required", "status": "ready", "digest": "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" },
|
|
83
|
+
"graph": { "requirement": "required", "status": "ready", "digest": "sha256:2222222222222222222222222222222222222222222222222222222222222222" },
|
|
84
|
+
"evidence": { "requirement": "required", "status": "ready", "digest": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" },
|
|
85
|
+
"observed": { "requirement": "required", "status": "ready", "digest": "sha256:3333333333333333333333333333333333333333333333333333333333333333" },
|
|
86
|
+
"bindings": { "requirement": "required", "status": "ready", "digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" },
|
|
87
|
+
"event-backlinks": { "requirement": "optional", "status": "ready", "digest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" },
|
|
88
|
+
"drift": { "requirement": "optional", "status": "unavailable", "digest": null, "reasonCode": "not-provided" },
|
|
89
|
+
"pressure": { "requirement": "optional", "status": "ready", "digest": "sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" },
|
|
90
|
+
"task-session": { "requirement": "optional", "status": "unavailable", "digest": null, "reasonCode": "not-provided" }
|
|
91
|
+
},
|
|
92
|
+
"viewDefinitionDigest": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
|
|
93
|
+
"compilerVersion": "archcontext.explorer-view-compiler/v1",
|
|
94
|
+
"tokenRequired": true,
|
|
95
|
+
"compatibilityDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
96
|
+
"manifestDigest": "sha256:9999999999999999999999999999999999999999999999999999999999999999"
|
|
97
|
+
},
|
|
98
|
+
"occurrences": [
|
|
99
|
+
{
|
|
100
|
+
"occurrenceId": "occurrence.system-map.entity.module.runtime",
|
|
101
|
+
"role": "subject",
|
|
102
|
+
"subjectRefs": [{ "kind": "architecture-entity", "id": "module.runtime" }],
|
|
103
|
+
"name": "Runtime",
|
|
104
|
+
"kind": "module",
|
|
105
|
+
"childrenCount": 0,
|
|
106
|
+
"expandable": false,
|
|
107
|
+
"verificationStatus": "UNKNOWN",
|
|
108
|
+
"authorityState": "DECLARED_UNOBSERVED",
|
|
109
|
+
"pressure": { "evaluated": true, "level": "low", "score": 0, "signals": [], "inputDigest": "sha256:6666666666666666666666666666666666666666666666666666666666666666" },
|
|
110
|
+
"sourceSelectors": [],
|
|
111
|
+
"provenance": {
|
|
112
|
+
"declaredEntityIds": ["module.runtime"],
|
|
113
|
+
"observedSymbolIds": [],
|
|
114
|
+
"evidenceBindingIds": []
|
|
115
|
+
},
|
|
116
|
+
"inspector": { "constraints": [], "decisions": [], "historyEvents": [], "sourceSelectors": [], "evidenceBindingIds": [] },
|
|
117
|
+
"backlinks": { "appearsInViews": ["system-map"], "affectedByTaskSessionIds": [], "constrainedByIds": [], "evidencedByBindingIds": [], "changedByEventIds": [], "decidedByEventIds": [], "incomingRelationIds": [], "outgoingRelationIds": [] }
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"relations": [],
|
|
121
|
+
"page": {
|
|
122
|
+
"budget": { "maxNodes": 80, "maxRelations": 160 },
|
|
123
|
+
"totalNodes": 1,
|
|
124
|
+
"totalRelations": 0,
|
|
125
|
+
"returnedNodes": 1,
|
|
126
|
+
"returnedRelations": 0,
|
|
127
|
+
"truncated": false,
|
|
128
|
+
"omittedNodeCount": 0,
|
|
129
|
+
"omittedRelationCount": 0
|
|
130
|
+
},
|
|
131
|
+
"projectionDigest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
|
|
132
|
+
"capabilities": {
|
|
133
|
+
"readOnly": true,
|
|
134
|
+
"mutationMode": "forbidden",
|
|
135
|
+
"egress": "none",
|
|
136
|
+
"tokenRequired": true
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -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.3.0",
|
|
6
6
|
"distribution": "one-package"
|
|
7
7
|
},
|
|
8
8
|
"packageManager": "bun@1.3.10",
|
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
"surfaces": {
|
|
13
13
|
"cli": {
|
|
14
14
|
"packageName": "@archcontext/surfaces",
|
|
15
|
-
"version": "0.
|
|
15
|
+
"version": "0.3.0",
|
|
16
16
|
"entrypoint": "archctx"
|
|
17
17
|
},
|
|
18
18
|
"daemon": {
|
|
19
19
|
"packageName": "@archcontext/local-runtime",
|
|
20
|
-
"version": "0.
|
|
20
|
+
"version": "0.3.0",
|
|
21
21
|
"entrypoint": "archctx daemon start",
|
|
22
22
|
"rpcSchemaVersion": "archcontext.runtime-rpc/v1"
|
|
23
23
|
},
|
|
24
24
|
"mcp": {
|
|
25
25
|
"packageName": "@archcontext/surfaces",
|
|
26
|
-
"version": "0.
|
|
26
|
+
"version": "0.3.0",
|
|
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.3.0",
|
|
34
34
|
"reviewChallenge": "archcontext.review-challenge/v2",
|
|
35
35
|
"attestation": "archcontext.attestation/v2",
|
|
36
36
|
"deviceIdentity": "archcontext.device-identity/v1",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"schemaVersion": "archcontext.runtime-rpc/v1",
|
|
42
42
|
"protocol": "http-loopback"
|
|
43
43
|
},
|
|
44
|
-
"sqliteMigrations": "0001_runtime_state..
|
|
44
|
+
"sqliteMigrations": "0001_runtime_state..0012_explorer_projection_index",
|
|
45
45
|
"codeGraph": {
|
|
46
46
|
"packageName": "@colbymchenry/codegraph",
|
|
47
|
-
"requiredVersion": "1.0
|
|
47
|
+
"requiredVersion": "1.4.0",
|
|
48
48
|
"adapter": "codegraph-cli"
|
|
49
49
|
}
|
|
50
50
|
}
|