archctx-contracts 0.17.1 → 0.18.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.
Files changed (112) hide show
  1. package/fixtures/valid/archctx-capabilities.json +2 -2
  2. package/fixtures/valid/product-version-manifest.json +4 -10
  3. package/package.json +4 -1
  4. package/schemas/repo/refactor-decision.schema.json +307 -37
  5. package/schemas/runtime/archctx-capabilities.schema.json +144 -20
  6. package/schemas/runtime/architecture-debt-delta.schema.json +58 -19
  7. package/schemas/runtime/architecture-debt.schema.json +42 -42
  8. package/schemas/runtime/architecture-event.schema.json +1 -1
  9. package/schemas/runtime/architecture-history.schema.json +354 -0
  10. package/schemas/runtime/capability-dependencies.schema.json +266 -59
  11. package/schemas/runtime/cli-check.schema.json +209 -0
  12. package/schemas/runtime/cli-help.schema.json +28 -0
  13. package/schemas/runtime/dependency-constraint-evaluation.schema.json +67 -68
  14. package/schemas/runtime/docs-anchors.schema.json +262 -67
  15. package/schemas/runtime/doctor-code-facts.schema.json +49 -0
  16. package/schemas/runtime/evidence-binding.schema.json +1 -1
  17. package/schemas/runtime/flow-selector-check.schema.json +179 -46
  18. package/schemas/runtime/hook-debt-checkpoint.schema.json +12 -12
  19. package/schemas/runtime/index-seed.schema.json +56 -0
  20. package/schemas/runtime/path-context.schema.json +120 -0
  21. package/schemas/runtime/product-version-manifest.schema.json +142 -54
  22. package/schemas/runtime/projection-slice.schema.json +34 -34
  23. package/schemas/runtime/recommendation-v3.schema.json +372 -1
  24. package/schemas/runtime/ref-impact-batch-request.schema.json +20 -7
  25. package/schemas/runtime/ref-impact-batch.schema.json +83 -13
  26. package/schemas/runtime/ref-impact.schema.json +68 -61
  27. package/schemas/runtime/refactor-scan-v2.schema.json +1392 -0
  28. package/schemas/runtime/refactor-simulate.schema.json +553 -0
  29. package/schemas/runtime/refactor-verify-v2.schema.json +172 -0
  30. package/schemas/runtime/resolve-path.schema.json +69 -0
  31. package/schemas/runtime/runtime-recommendation-show.schema.json +531 -2
  32. package/schemas/runtime/runtime-refactor-scan.schema.json +498 -2
  33. package/schemas/runtime/runtime-verify.schema.json +274 -56
  34. package/schemas/runtime/state-machine-check.schema.json +357 -89
  35. package/schemas/runtime/structural-observation-payload.schema.json +372 -1
  36. package/schemas/runtime/sync-check.schema.json +77 -0
  37. package/src/architecture-debt.ts +125 -38
  38. package/src/architecture-history.ts +168 -42
  39. package/src/architecture.ts +100 -0
  40. package/src/cli-read.ts +228 -0
  41. package/src/docs-anchors.ts +105 -50
  42. package/src/explorer-occurrence-ports.ts +175 -0
  43. package/src/explorer-query-ports.ts +270 -0
  44. package/src/failure.ts +4 -0
  45. package/src/index-seed.ts +42 -0
  46. package/src/index.ts +5 -0
  47. package/src/ledger-records.ts +262 -0
  48. package/src/ledger.ts +27 -566
  49. package/src/ownership-dependencies.ts +115 -5
  50. package/src/ports.ts +6 -541
  51. package/src/product-version.ts +74 -55
  52. package/src/projection-apply-types.ts +216 -0
  53. package/src/projection-apply-validators.ts +355 -0
  54. package/src/projection-capabilities.ts +181 -0
  55. package/src/projection-constants.ts +317 -0
  56. package/src/projection-manifest-types.ts +298 -0
  57. package/src/projection-manifest.ts +12 -299
  58. package/src/projection-recovery-validators.ts +229 -0
  59. package/src/projection-request-validators.ts +326 -0
  60. package/src/projection-types.ts +365 -0
  61. package/src/projection-validation-helpers.ts +15 -0
  62. package/src/projection.ts +7 -1689
  63. package/src/ref-impact.ts +225 -33
  64. package/src/refactor-constants.ts +213 -0
  65. package/src/refactor-decision-validators.ts +351 -0
  66. package/src/refactor-evidence-types.ts +286 -0
  67. package/src/refactor-observation-validators.ts +359 -0
  68. package/src/refactor-resolution-validators.ts +229 -0
  69. package/src/refactor-snapshot-validators.ts +368 -0
  70. package/src/refactor-types.ts +270 -0
  71. package/src/refactor-v2.ts +554 -0
  72. package/src/refactor-validation-helpers.ts +199 -0
  73. package/src/refactor.ts +7 -1849
  74. package/src/review-guards.ts +3 -23
  75. package/src/runtime-verify.ts +87 -0
  76. package/src/schema-kit.ts +187 -0
  77. package/src/schema-registry.ts +73 -0
  78. package/src/schema.ts +15 -4
  79. package/src/state-machine-schemas.ts +192 -0
  80. package/src/state-machine-types.ts +188 -0
  81. package/src/state-machine.ts +9 -189
  82. package/fixtures/boundary/agent-job-expired.json +0 -33
  83. package/fixtures/invalid/adapter-fidelity-reverse-sync.json +0 -9
  84. package/fixtures/invalid/agent-job-direct-mutation.json +0 -32
  85. package/fixtures/invalid/cloud-egress-envelope-private-field.json +0 -12
  86. package/fixtures/invalid/investigation-report-direct-mutation.json +0 -38
  87. package/fixtures/invalid/investigation-report-missing-proposed-delta.json +0 -19
  88. package/fixtures/invalid/notification-event-code-field.json +0 -11
  89. package/fixtures/valid/adapter-fidelity.json +0 -9
  90. package/fixtures/valid/agent-job.json +0 -33
  91. package/fixtures/valid/architecture-candidate-delta-policy.json +0 -45
  92. package/fixtures/valid/architecture-candidate-delta.json +0 -188
  93. package/fixtures/valid/chatgpt-ga-tool.json +0 -9
  94. package/fixtures/valid/cloud-egress-envelope.json +0 -11
  95. package/fixtures/valid/entitlement.json +0 -12
  96. package/fixtures/valid/investigation-report.json +0 -38
  97. package/fixtures/valid/likec4-mapping.json +0 -14
  98. package/fixtures/valid/notification-event.json +0 -10
  99. package/fixtures/valid/notification-provider.json +0 -12
  100. package/fixtures/valid/structurizr-mapping.json +0 -15
  101. package/schemas/cloud/cloud-egress-envelope.schema.json +0 -19
  102. package/schemas/cloud/entitlement.schema.json +0 -24
  103. package/schemas/integrations/adapter-fidelity.schema.json +0 -21
  104. package/schemas/integrations/chatgpt-ga-tool.schema.json +0 -25
  105. package/schemas/integrations/likec4-mapping.schema.json +0 -32
  106. package/schemas/integrations/structurizr-mapping.schema.json +0 -33
  107. package/schemas/runtime/agent-job.schema.json +0 -63
  108. package/schemas/runtime/architecture-candidate-delta-policy.schema.json +0 -129
  109. package/schemas/runtime/architecture-candidate-delta.schema.json +0 -386
  110. package/schemas/runtime/investigation-report.schema.json +0 -119
  111. package/schemas/runtime/notification-event.schema.json +0 -18
  112. package/schemas/runtime/notification-provider.schema.json +0 -26
@@ -1,188 +0,0 @@
1
- {
2
- "schemaVersion": "archcontext.architecture-candidate-delta/v1",
3
- "deltaId": "delta.checkout-service",
4
- "repository": {
5
- "repositoryId": "repo.checkout",
6
- "storageRepositoryId": "repo.storage.checkout"
7
- },
8
- "worktree": {
9
- "workspaceId": "workspace.checkout.main",
10
- "storageWorkspaceId": "workspace.storage.checkout.main",
11
- "branch": "main",
12
- "headSha": "abc123",
13
- "worktreeDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111"
14
- },
15
- "changeCursor": {
16
- "source": "git",
17
- "changeSource": "commit",
18
- "baseSha": "abc122",
19
- "headSha": "abc123",
20
- "pathCount": 1,
21
- "metadataDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
22
- "codeFactsDigest": "sha256:3333333333333333333333333333333333333333333333333333333333333333"
23
- },
24
- "subjectSelectors": [
25
- {
26
- "schemaVersion": "archcontext.architecture-subject-selector/v1",
27
- "selectorId": "subject.path.src-checkout-service",
28
- "kind": "path",
29
- "repositoryId": "repo.checkout",
30
- "stableKey": "path:src/checkout/service.ts",
31
- "path": "src/checkout/service.ts",
32
- "digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
33
- }
34
- ],
35
- "changedSubjects": [
36
- {
37
- "subjectSelectorId": "subject.path.src-checkout-service",
38
- "changeKind": "materially_changed",
39
- "rawFactIds": ["fact.git.src-checkout-service"],
40
- "evidenceIds": ["evidence.al5.src-checkout-service"],
41
- "digest": "sha256:4444444444444444444444444444444444444444444444444444444444444444"
42
- }
43
- ],
44
- "rawFacts": [
45
- {
46
- "factId": "fact.git.src-checkout-service",
47
- "kind": "git-path-change",
48
- "subjectSelectorId": "subject.path.src-checkout-service",
49
- "source": "git",
50
- "summary": "Git reports materially_changed path src/checkout/service.ts.",
51
- "evidenceIds": ["evidence.al5.src-checkout-service"],
52
- "digest": "sha256:5555555555555555555555555555555555555555555555555555555555555555"
53
- }
54
- ],
55
- "interpretations": [
56
- {
57
- "interpretationId": "interpretation.al5.src-checkout-service",
58
- "kind": "code-subject-materially-changed",
59
- "subjectSelectorId": "subject.path.src-checkout-service",
60
- "evidenceIds": ["evidence.al5.src-checkout-service"],
61
- "confidence": "medium",
62
- "coverage": "partial",
63
- "heuristic": true,
64
- "summary": "Code subject changed; architecture mapping is not yet asserted.",
65
- "digest": "sha256:6666666666666666666666666666666666666666666666666666666666666666"
66
- }
67
- ],
68
- "declaredSubjectMappings": [
69
- {
70
- "mappingId": "mapping.checkout-service",
71
- "subjectSelectorId": "subject.path.src-checkout-service",
72
- "target": {
73
- "kind": "entity",
74
- "id": "module.checkout"
75
- },
76
- "matchReason": "declared-path-prefix",
77
- "confidence": "medium",
78
- "evidenceIds": ["evidence.al5.src-checkout-service"],
79
- "digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
80
- }
81
- ],
82
- "mappingAmbiguities": [],
83
- "candidateChanges": [
84
- {
85
- "candidateChangeId": "candidate_change.checkout-service",
86
- "kind": "node-materially-changed",
87
- "target": {
88
- "kind": "node",
89
- "id": "module.checkout"
90
- },
91
- "stateDimension": "target-state",
92
- "changeKind": "materially_changed",
93
- "subjectSelectorIds": ["subject.path.src-checkout-service"],
94
- "mappingIds": ["mapping.checkout-service"],
95
- "ambiguityIds": [],
96
- "evidenceIds": ["evidence.al5.src-checkout-service"],
97
- "confidence": "medium",
98
- "heuristic": true,
99
- "summary": "Declared architecture node module.checkout may be materially changed by changed code.",
100
- "digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
101
- }
102
- ],
103
- "evidenceItems": [
104
- {
105
- "schemaVersion": "archcontext.evidence-item/v2",
106
- "evidenceId": "evidence.al5.src-checkout-service",
107
- "kind": "git-path-change",
108
- "strength": "observed",
109
- "polarity": "positive",
110
- "origin": "codegraph",
111
- "subject": "subject.path.src-checkout-service",
112
- "selector": {
113
- "kind": "path",
114
- "id": "subject.path.src-checkout-service",
115
- "path": "src/checkout/service.ts"
116
- },
117
- "summary": "Observed changed path src/checkout/service.ts without source body or diff body.",
118
- "coverage": {
119
- "level": "partial",
120
- "scope": "git-change"
121
- },
122
- "supports": ["recommendation", "checkpoint"],
123
- "provenance": {
124
- "producer": "architecture-delta",
125
- "command": "buildArchitectureCandidateDelta",
126
- "inputDigest": "sha256:7777777777777777777777777777777777777777777777777777777777777777"
127
- },
128
- "createdAt": "2026-06-25T00:00:00.000Z",
129
- "digest": "sha256:8888888888888888888888888888888888888888888888888888888888888888"
130
- }
131
- ],
132
- "evidenceBindings": [
133
- {
134
- "schemaVersion": "archcontext.evidence-binding/v1",
135
- "bindingId": "binding.al5.src-checkout-service",
136
- "evidenceId": "evidence.al5.src-checkout-service",
137
- "target": {
138
- "kind": "subject",
139
- "id": "subject.path.src-checkout-service"
140
- },
141
- "bindingReason": "change-cursor",
142
- "authorityEffect": "context-only",
143
- "createdAt": "2026-06-25T00:00:00.000Z",
144
- "provenance": {
145
- "producer": "architecture-delta",
146
- "command": "buildArchitectureCandidateDelta",
147
- "inputDigest": "sha256:7777777777777777777777777777777777777777777777777777777777777777"
148
- }
149
- }
150
- ],
151
- "summary": {
152
- "added": 0,
153
- "removed": 0,
154
- "moved": 0,
155
- "renamed": 0,
156
- "materiallyChanged": 1,
157
- "unresolved": 0,
158
- "mapped": 1,
159
- "ambiguous": 0,
160
- "candidateChanges": 1,
161
- "targetStateChanges": 1,
162
- "migrationStateProgress": 0,
163
- "mappingCoverage": {
164
- "totalChangedSubjects": 1,
165
- "mappedSubjects": 1,
166
- "unresolvedSubjects": 0,
167
- "ambiguousSubjects": 0,
168
- "coveragePercent": 100
169
- },
170
- "unresolvedSubjects": {
171
- "total": 0,
172
- "byReason": {
173
- "declared-graph-unavailable": 0,
174
- "no-declared-target": 0,
175
- "multiple-declared-targets": 0,
176
- "relation-endpoint-unmapped": 0
177
- },
178
- "subjectSelectorIds": []
179
- },
180
- "evidenceStrengthDistribution": {
181
- "heuristic": 0,
182
- "declared": 0,
183
- "observed": 1,
184
- "verified": 0
185
- }
186
- },
187
- "deltaDigest": "sha256:9999999999999999999999999999999999999999999999999999999999999999"
188
- }
@@ -1,9 +0,0 @@
1
- {
2
- "schemaVersion": "archcontext.chatgpt-ga-tool/v1",
3
- "toolName": "archcontext_prepare_task",
4
- "surface": "local-runtime",
5
- "readOnlyByDefault": true,
6
- "dataClassification": "local-architecture",
7
- "requiresLocalConfirmationForWrite": false,
8
- "disclosure": "Private repository content is processed by the local runtime; remote ArchContext MCP exposes metadata only."
9
- }
@@ -1,11 +0,0 @@
1
- {
2
- "schemaVersion": "archcontext.cloud-egress/v1",
3
- "requestId": "req_0001",
4
- "category": "github.pull-head",
5
- "method": "GET",
6
- "host": "api.github.com",
7
- "pathTemplate": "/repos/{owner}/{repo}/pulls/{pull_number}",
8
- "statusCode": 200,
9
- "latencyMs": 42,
10
- "recordedAt": "2026-06-20T09:00:00Z"
11
- }
@@ -1,12 +0,0 @@
1
- {
2
- "schemaVersion": "archcontext.entitlement/v1",
3
- "entitlementId": "ent_acct_42_2026",
4
- "accountId": "acct_42",
5
- "plan": "pro",
6
- "billingInterval": "annual",
7
- "privateRepositoryScope": "user-all-private-repositories",
8
- "repositoryNumericIds": [1001, 1002],
9
- "issuedAt": "2026-06-19T00:00:00Z",
10
- "validUntil": "2027-06-19T00:00:00Z",
11
- "offlineUntil": "2026-06-26T00:00:00Z"
12
- }
@@ -1,38 +0,0 @@
1
- {
2
- "schemaVersion": "archcontext.investigation-report/v1",
3
- "reportId": "investigation_report.al0_investigate",
4
- "jobId": "agent_job.al0_investigate",
5
- "status": "succeeded",
6
- "findings": [
7
- {
8
- "findingId": "finding.boundary-import",
9
- "hypothesis": "The changed import may cross a declared architecture boundary.",
10
- "evidenceBindingIds": ["binding.evidence.al0.boundary-import"],
11
- "unknowns": ["Whether the target module is inside the same declared layer."],
12
- "falsifier": "A declared relation allowing this dependency exists at the same HEAD.",
13
- "proposedDelta": {
14
- "candidateChangeId": "candidate_change.al0.boundary-import",
15
- "kind": "node-materially-changed",
16
- "target": {
17
- "kind": "node",
18
- "id": "module.checkout"
19
- },
20
- "stateDimension": "target-state",
21
- "changeKind": "materially_changed",
22
- "subjectSelectorIds": ["subject.path.src-checkout-service"],
23
- "mappingIds": ["mapping.checkout-service"],
24
- "ambiguityIds": [],
25
- "evidenceIds": ["evidence.al0.boundary-import"],
26
- "confidence": "medium",
27
- "heuristic": true,
28
- "summary": "The checkout module may be materially changed by the observed boundary import.",
29
- "digest": "sha256:1515151515151515151515151515151515151515151515151515151515151515"
30
- },
31
- "proposedDeltaDigest": "sha256:1515151515151515151515151515151515151515151515151515151515151515",
32
- "confidence": "medium"
33
- }
34
- ],
35
- "outputDigest": "sha256:1616161616161616161616161616161616161616161616161616161616161616",
36
- "createdAt": "2026-06-25T00:00:00.000Z",
37
- "directMutationAllowed": false
38
- }
@@ -1,14 +0,0 @@
1
- {
2
- "schemaVersion": "archcontext.likec4-mapping/v1",
3
- "id": "mapping.likec4.native",
4
- "exportMode": "export-first",
5
- "native": {
6
- "nodeKinds": ["capability", "module", "component", "interface", "datastore", "external-system"],
7
- "relationKinds": ["depends-on", "calls", "publishes", "subscribes", "reads", "writes"]
8
- },
9
- "likec4": {
10
- "elementKinds": ["person", "system", "container", "component"],
11
- "relationLabels": ["depends-on", "calls", "publishes", "subscribes", "reads", "writes"]
12
- },
13
- "views": ["landscape", "module"]
14
- }
@@ -1,10 +0,0 @@
1
- {
2
- "schemaVersion": "archcontext.notification-event/v1",
3
- "eventId": "notification.review-complete",
4
- "prUrl": "https://github.com/ancienttwo/arch-context/pull/12",
5
- "result": "pass_with_warnings",
6
- "riskLevel": "medium",
7
- "commitSha": "abc1234",
8
- "runtimeVersion": "archctx/1.1.0",
9
- "occurredAt": "2026-06-19T00:00:00Z"
10
- }
@@ -1,12 +0,0 @@
1
- {
2
- "schemaVersion": "archcontext.notification-provider/v1",
3
- "id": "notification-provider.slack-review",
4
- "provider": "slack",
5
- "enabled": true,
6
- "target": "https://hooks.slack.com/services/example",
7
- "secretRef": "secret://slack-review-webhook",
8
- "retry": {
9
- "maxAttempts": 3,
10
- "backoffSeconds": 30
11
- }
12
- }
@@ -1,15 +0,0 @@
1
- {
2
- "schemaVersion": "archcontext.structurizr-mapping/v1",
3
- "id": "mapping.structurizr.native",
4
- "exportMode": "export-first",
5
- "native": {
6
- "nodeKinds": ["capability", "module", "component", "interface", "datastore", "external-system"],
7
- "relationKinds": ["depends-on", "calls", "publishes", "subscribes", "reads", "writes"]
8
- },
9
- "structurizr": {
10
- "workspace": "ArchContext",
11
- "model": ["softwareSystem", "container", "component"],
12
- "views": ["systemLandscape", "container", "component"]
13
- },
14
- "views": ["systemLandscape", "container"]
15
- }
@@ -1,19 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://archctx.repoharness.com/schemas/cloud/cloud-egress-envelope.schema.json",
4
- "title": "CloudEgressEnvelope",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": ["schemaVersion", "requestId", "category", "method", "host", "pathTemplate", "statusCode", "latencyMs", "recordedAt"],
8
- "properties": {
9
- "schemaVersion": { "const": "archcontext.cloud-egress/v1" },
10
- "requestId": { "type": "string" },
11
- "category": { "type": "string", "enum": ["github.metadata", "github.pull-head", "github.check-list-for-ref", "github.check-create", "github.check-update"] },
12
- "method": { "type": "string", "enum": ["GET", "POST", "PATCH"] },
13
- "host": { "type": "string", "enum": ["api.github.com"] },
14
- "pathTemplate": { "type": "string" },
15
- "statusCode": { "type": "integer", "minimum": 100, "maximum": 599 },
16
- "latencyMs": { "type": "integer", "minimum": 0 },
17
- "recordedAt": { "type": "string" }
18
- }
19
- }
@@ -1,24 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://archctx.repoharness.com/schemas/cloud/entitlement.schema.json",
4
- "title": "Entitlement",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": ["schemaVersion", "entitlementId", "accountId", "plan", "billingInterval", "privateRepositoryScope", "issuedAt"],
8
- "properties": {
9
- "schemaVersion": { "const": "archcontext.entitlement/v1" },
10
- "entitlementId": { "type": "string" },
11
- "accountId": { "type": "string" },
12
- "plan": { "type": "string", "enum": ["free", "pro"] },
13
- "billingInterval": { "type": "string", "enum": ["none", "monthly", "annual"] },
14
- "privateRepositoryScope": {
15
- "type": "string",
16
- "enum": ["public-only", "user-all-private-repositories"]
17
- },
18
- "repositoryNumericIds": { "type": "array", "items": { "type": "integer", "minimum": 1 } },
19
- "issuedAt": { "type": "string" },
20
- "validUntil": { "type": "string" },
21
- "offlineUntil": { "type": "string" },
22
- "extensions": { "type": "object", "additionalProperties": true }
23
- }
24
- }
@@ -1,21 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://archctx.repoharness.com/schemas/integrations/adapter-fidelity.schema.json",
4
- "title": "AdapterFidelityRule",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": ["schemaVersion", "id", "direction", "importScope", "nativeIsSourceOfTruth", "reverseSync", "protectedNativeFields"],
8
- "properties": {
9
- "schemaVersion": { "const": "archcontext.adapter-fidelity/v1" },
10
- "id": { "type": "string", "pattern": "^adapter-fidelity\\.[a-z0-9][a-z0-9-]*$" },
11
- "direction": { "const": "export-first" },
12
- "importScope": { "const": "initialization-only" },
13
- "nativeIsSourceOfTruth": { "const": true },
14
- "reverseSync": { "const": "forbidden" },
15
- "protectedNativeFields": {
16
- "type": "array",
17
- "items": { "type": "string", "enum": ["evidence", "verification", "constraint", "intervention"] },
18
- "minItems": 4
19
- }
20
- }
21
- }
@@ -1,25 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://archctx.repoharness.com/schemas/integrations/chatgpt-ga-tool.schema.json",
4
- "title": "ChatGptGaToolContract",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": [
8
- "schemaVersion",
9
- "toolName",
10
- "surface",
11
- "readOnlyByDefault",
12
- "dataClassification",
13
- "requiresLocalConfirmationForWrite",
14
- "disclosure"
15
- ],
16
- "properties": {
17
- "schemaVersion": { "const": "archcontext.chatgpt-ga-tool/v1" },
18
- "toolName": { "type": "string", "pattern": "^archcontext_[a-z0-9_]+$" },
19
- "surface": { "type": "string", "enum": ["cloud-metadata", "local-runtime"] },
20
- "readOnlyByDefault": { "const": true },
21
- "dataClassification": { "type": "string", "enum": ["cloud-metadata", "local-metadata", "local-architecture"] },
22
- "requiresLocalConfirmationForWrite": { "type": "boolean" },
23
- "disclosure": { "type": "string" }
24
- }
25
- }
@@ -1,32 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://archctx.repoharness.com/schemas/integrations/likec4-mapping.schema.json",
4
- "title": "LikeC4Mapping",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": ["schemaVersion", "id", "exportMode", "native", "likec4", "views"],
8
- "properties": {
9
- "schemaVersion": { "const": "archcontext.likec4-mapping/v1" },
10
- "id": { "type": "string", "pattern": "^mapping\\.likec4\\.[a-z0-9][a-z0-9-]*$" },
11
- "exportMode": { "const": "export-first" },
12
- "native": {
13
- "type": "object",
14
- "additionalProperties": false,
15
- "required": ["nodeKinds", "relationKinds"],
16
- "properties": {
17
- "nodeKinds": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
18
- "relationKinds": { "type": "array", "items": { "type": "string" }, "minItems": 1 }
19
- }
20
- },
21
- "likec4": {
22
- "type": "object",
23
- "additionalProperties": false,
24
- "required": ["elementKinds", "relationLabels"],
25
- "properties": {
26
- "elementKinds": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
27
- "relationLabels": { "type": "array", "items": { "type": "string" }, "minItems": 1 }
28
- }
29
- },
30
- "views": { "type": "array", "items": { "type": "string" }, "minItems": 1 }
31
- }
32
- }
@@ -1,33 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://archctx.repoharness.com/schemas/integrations/structurizr-mapping.schema.json",
4
- "title": "StructurizrMapping",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": ["schemaVersion", "id", "exportMode", "native", "structurizr", "views"],
8
- "properties": {
9
- "schemaVersion": { "const": "archcontext.structurizr-mapping/v1" },
10
- "id": { "type": "string", "pattern": "^mapping\\.structurizr\\.[a-z0-9][a-z0-9-]*$" },
11
- "exportMode": { "const": "export-first" },
12
- "native": {
13
- "type": "object",
14
- "additionalProperties": false,
15
- "required": ["nodeKinds", "relationKinds"],
16
- "properties": {
17
- "nodeKinds": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
18
- "relationKinds": { "type": "array", "items": { "type": "string" }, "minItems": 1 }
19
- }
20
- },
21
- "structurizr": {
22
- "type": "object",
23
- "additionalProperties": false,
24
- "required": ["workspace", "model", "views"],
25
- "properties": {
26
- "workspace": { "type": "string" },
27
- "model": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
28
- "views": { "type": "array", "items": { "type": "string" }, "minItems": 1 }
29
- }
30
- },
31
- "views": { "type": "array", "items": { "type": "string" }, "minItems": 1 }
32
- }
33
- }
@@ -1,63 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://archcontext.dev/schemas/runtime/agent-job.schema.json",
4
- "title": "AgentJob",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": ["schemaVersion", "jobId", "status", "runnerPort", "repository", "worktree", "fingerprint", "trigger", "budget", "inputDigest", "promptTemplateDigest", "stalePolicy", "directMutationAllowed", "queuedAt", "updatedAt"],
8
- "properties": {
9
- "schemaVersion": { "const": "archcontext.agent-job/v1" },
10
- "jobId": { "type": "string", "pattern": "^agent_job\\.[a-zA-Z0-9_-]+$" },
11
- "status": { "enum": ["queued", "running", "succeeded", "failed", "cancelled", "superseded", "expired"] },
12
- "runnerPort": { "enum": ["claude-code", "codex", "fake-provider"] },
13
- "repository": {
14
- "type": "object",
15
- "additionalProperties": false,
16
- "required": ["repositoryId", "storageRepositoryId"],
17
- "properties": {
18
- "repositoryId": { "type": "string" },
19
- "storageRepositoryId": { "type": "string" }
20
- }
21
- },
22
- "worktree": {
23
- "type": "object",
24
- "additionalProperties": false,
25
- "required": ["workspaceId", "storageWorkspaceId", "branch", "headSha", "worktreeDigest"],
26
- "properties": {
27
- "workspaceId": { "type": "string" },
28
- "storageWorkspaceId": { "type": "string" },
29
- "branch": { "type": "string" },
30
- "headSha": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
31
- "worktreeDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
32
- }
33
- },
34
- "fingerprint": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
35
- "trigger": {
36
- "type": "object",
37
- "additionalProperties": false,
38
- "required": ["source", "reason"],
39
- "properties": {
40
- "source": { "enum": ["prepare_task", "checkpoint", "plan_update", "apply_update", "complete_task", "git_hook", "yaml_import", "projection_reconcile", "migration", "manual"] },
41
- "reason": { "type": "string" }
42
- }
43
- },
44
- "budget": {
45
- "type": "object",
46
- "additionalProperties": false,
47
- "required": ["maxRunsPerTask", "maxRunsPerRepositoryPerDay"],
48
- "properties": {
49
- "maxRunsPerTask": { "type": "integer", "minimum": 0 },
50
- "maxRunsPerRepositoryPerDay": { "type": "integer", "minimum": 0 },
51
- "maxRunsPerDay": { "type": "integer", "minimum": 0 }
52
- }
53
- },
54
- "inputDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
55
- "promptTemplateDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
56
- "outputDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
57
- "stalePolicy": { "enum": ["cancel-on-head-change", "advisory-only-on-stale"] },
58
- "directMutationAllowed": { "const": false },
59
- "queuedAt": { "type": "string" },
60
- "updatedAt": { "type": "string" },
61
- "extensions": { "type": "object", "additionalProperties": true }
62
- }
63
- }