archctx-contracts 0.2.0 → 0.2.2

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 (64) hide show
  1. package/fixtures/boundary/attestation-v2-error.json +1 -1
  2. package/fixtures/invalid/attestation-v2-finding-field.json +1 -1
  3. package/fixtures/valid/attestation-v2.json +1 -1
  4. package/fixtures/valid/practice-catalog-manifest.json +1 -1
  5. package/fixtures/valid/product-version-manifest.json +5 -5
  6. package/package.json +6 -4
  7. package/schemas/cloud/attestation-v2.schema.json +85 -0
  8. package/schemas/cloud/attestation.schema.json +49 -0
  9. package/schemas/cloud/check-delivery.schema.json +25 -0
  10. package/schemas/cloud/cloud-egress-envelope.schema.json +19 -0
  11. package/schemas/cloud/device-identity.schema.json +18 -0
  12. package/schemas/cloud/entitlement.schema.json +24 -0
  13. package/schemas/cloud/governance-key-status.schema.json +19 -0
  14. package/schemas/cloud/org-runner-identity.schema.json +21 -0
  15. package/schemas/cloud/review-challenge-v2.schema.json +23 -0
  16. package/schemas/cloud/runner-identity.schema.json +42 -0
  17. package/schemas/integrations/adapter-fidelity.schema.json +21 -0
  18. package/schemas/integrations/chatgpt-ga-tool.schema.json +25 -0
  19. package/schemas/integrations/likec4-mapping.schema.json +32 -0
  20. package/schemas/integrations/structurizr-mapping.schema.json +33 -0
  21. package/schemas/repo/architecture-intervention.schema.json +41 -0
  22. package/schemas/repo/architecture-node.schema.json +50 -0
  23. package/schemas/repo/architecture-relation.schema.json +26 -0
  24. package/schemas/repo/compatibility-contract.schema.json +49 -0
  25. package/schemas/repo/constraint.schema.json +56 -0
  26. package/schemas/repo/cross-repo-relation.schema.json +47 -0
  27. package/schemas/repo/landscape.schema.json +50 -0
  28. package/schemas/repo/practices/practice-policy.schema.json +72 -0
  29. package/schemas/repo/practices/practice-profile.schema.json +30 -0
  30. package/schemas/repo/practices/practice-source.schema.json +34 -0
  31. package/schemas/repo/practices/practice-waiver.schema.json +27 -0
  32. package/schemas/repo/practices/practice.schema.json +88 -0
  33. package/schemas/runtime/agent-job.schema.json +63 -0
  34. package/schemas/runtime/architecture-candidate-delta-policy.schema.json +129 -0
  35. package/schemas/runtime/architecture-candidate-delta.schema.json +386 -0
  36. package/schemas/runtime/architecture-event.schema.json +76 -0
  37. package/schemas/runtime/architecture-snapshot.schema.json +61 -0
  38. package/schemas/runtime/architecture-subject-selector.schema.json +31 -0
  39. package/schemas/runtime/changeset.schema.json +65 -0
  40. package/schemas/runtime/evidence-binding.schema.json +37 -0
  41. package/schemas/runtime/evidence-item.schema.json +58 -0
  42. package/schemas/runtime/explorer-projection.schema.json +92 -0
  43. package/schemas/runtime/explorer-service.schema.json +19 -0
  44. package/schemas/runtime/external-document-resource.schema.json +55 -0
  45. package/schemas/runtime/investigation-report.schema.json +119 -0
  46. package/schemas/runtime/notification-event.schema.json +18 -0
  47. package/schemas/runtime/notification-provider.schema.json +26 -0
  48. package/schemas/runtime/practice-catalog-manifest.schema.json +22 -0
  49. package/schemas/runtime/practice-check-result.schema.json +45 -0
  50. package/schemas/runtime/practice-checkpoint.schema.json +127 -0
  51. package/schemas/runtime/practice-guidance.schema.json +44 -0
  52. package/schemas/runtime/practice-match.schema.json +41 -0
  53. package/schemas/runtime/product-version-manifest.schema.json +115 -0
  54. package/schemas/runtime/projection-target.schema.json +52 -0
  55. package/schemas/runtime/recommendation-feedback.schema.json +53 -0
  56. package/schemas/runtime/recommendation-run.schema.json +62 -0
  57. package/schemas/runtime/recommendation.schema.json +26 -0
  58. package/schemas/runtime/retrieval-config.schema.json +44 -0
  59. package/schemas/runtime/retrieval-decision.schema.json +49 -0
  60. package/schemas/runtime/retrieval-eval.schema.json +29 -0
  61. package/schemas/runtime/review-result.schema.json +48 -0
  62. package/schemas/runtime/task-context.schema.json +53 -0
  63. package/src/ledger.ts +2 -1
  64. package/src/product-version.ts +1 -1
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://archctx.repoharness.com/schemas/runtime/retrieval-eval.schema.json",
4
+ "title": "RetrievalEvalSet",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "id", "seed", "queries"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "archcontext.retrieval-eval/v1" },
10
+ "id": { "type": "string" },
11
+ "seed": { "type": "integer", "minimum": 0 },
12
+ "queries": {
13
+ "type": "array",
14
+ "minItems": 1,
15
+ "items": {
16
+ "type": "object",
17
+ "additionalProperties": false,
18
+ "required": ["id", "text", "expectedContextIds", "expectedConstraintIds", "prohibitedContextIds"],
19
+ "properties": {
20
+ "id": { "type": "string" },
21
+ "text": { "type": "string" },
22
+ "expectedContextIds": { "type": "array", "items": { "type": "string" } },
23
+ "expectedConstraintIds": { "type": "array", "items": { "type": "string" } },
24
+ "prohibitedContextIds": { "type": "array", "items": { "type": "string" } }
25
+ }
26
+ }
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://archctx.repoharness.com/schemas/runtime/review-result.schema.json",
4
+ "title": "ReviewResult",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "reviewId", "taskSessionId", "snapshot", "posture", "result", "summary", "findings"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "archcontext.review/v1" },
10
+ "reviewId": { "type": "string" },
11
+ "taskSessionId": { "type": "string" },
12
+ "snapshot": {
13
+ "type": "object",
14
+ "additionalProperties": false,
15
+ "required": ["headSha", "worktreeDigest", "modelDigest", "codeFactsDigest"],
16
+ "properties": {
17
+ "headSha": { "type": "string" },
18
+ "worktreeDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
19
+ "modelDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
20
+ "codeFactsDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
21
+ "practiceCatalogDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
22
+ "practicePolicyDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
23
+ "practiceCheckResultDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
24
+ "projectionSourceDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
25
+ "projectionDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
26
+ "projectionRendererVersion": { "type": "string" }
27
+ }
28
+ },
29
+ "posture": { "type": "string", "enum": ["normal", "structural", "intervention", "proof-required"] },
30
+ "result": { "type": "string", "enum": ["pass", "pass_with_warnings", "fail_action_required"] },
31
+ "summary": {
32
+ "type": "object",
33
+ "additionalProperties": false,
34
+ "required": ["errors", "warnings", "notices"],
35
+ "properties": {
36
+ "errors": { "type": "integer", "minimum": 0 },
37
+ "warnings": { "type": "integer", "minimum": 0 },
38
+ "notices": { "type": "integer", "minimum": 0 }
39
+ }
40
+ },
41
+ "findings": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
42
+ "practiceViolations": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
43
+ "waiversApplied": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
44
+ "actionsRequired": { "type": "array", "items": { "type": "string" } },
45
+ "cleanup": { "type": "object", "additionalProperties": false, "properties": { "required": { "type": "integer" }, "completed": { "type": "integer" } } },
46
+ "extensions": { "type": "object", "additionalProperties": true }
47
+ }
48
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://archctx.repoharness.com/schemas/runtime/task-context.schema.json",
4
+ "title": "TaskContext",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "task", "posture", "architecturePressure", "refactorConfidence", "relevantNodes", "constraints", "decisions"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "archcontext.task-context/v1" },
10
+ "task": { "type": "string" },
11
+ "posture": { "type": "string", "enum": ["normal", "structural", "intervention", "proof-required"] },
12
+ "architecturePressure": {
13
+ "type": "object",
14
+ "additionalProperties": false,
15
+ "required": ["level", "score", "signals"],
16
+ "properties": {
17
+ "level": { "type": "string", "enum": ["low", "medium", "high"] },
18
+ "score": { "type": "number", "minimum": 0, "maximum": 100 },
19
+ "signals": { "type": "array", "items": { "type": "string" } }
20
+ }
21
+ },
22
+ "refactorConfidence": {
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": ["level", "score", "coverage"],
26
+ "properties": {
27
+ "level": { "type": "string", "enum": ["low", "medium", "high"] },
28
+ "score": { "type": "number", "minimum": 0, "maximum": 100 },
29
+ "coverage": { "type": "array", "items": { "type": "string" } }
30
+ }
31
+ },
32
+ "relevantNodes": { "type": "array", "items": { "type": "string" } },
33
+ "constraints": { "type": "array", "items": { "type": "string" } },
34
+ "decisions": { "type": "array", "items": { "type": "string" } },
35
+ "realConstraints": { "type": "array", "items": { "type": "string" } },
36
+ "unknowns": { "type": "array", "items": { "type": "string" } },
37
+ "recommendedTargetState": { "type": "object", "additionalProperties": true },
38
+ "requiredCheckpoints": { "type": "array", "items": { "type": "string" } },
39
+ "resources": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
40
+ "practiceGuidance": {
41
+ "type": "object",
42
+ "additionalProperties": true,
43
+ "required": ["schemaVersion", "catalogDigest", "overlayDigest", "matches"],
44
+ "properties": {
45
+ "schemaVersion": { "const": "archcontext.practice-guidance/v1" },
46
+ "catalogDigest": { "type": "string", "pattern": "^sha256:" },
47
+ "overlayDigest": { "type": "string", "pattern": "^sha256:" },
48
+ "matches": { "type": "array", "items": { "type": "object", "additionalProperties": true } }
49
+ }
50
+ },
51
+ "extensions": { "type": "object", "additionalProperties": true }
52
+ }
53
+ }
package/src/ledger.ts CHANGED
@@ -122,7 +122,8 @@ export type ProjectionTargetType =
122
122
  | "architecture-changelog"
123
123
  | "diagram-mermaid"
124
124
  | "diagram-structurizr"
125
- | "diagram-likec4";
125
+ | "diagram-likec4"
126
+ | "agent-context";
126
127
  export type ProjectionTargetScopeKind = "repository" | "entity" | "relation" | "decision" | "diagram" | "changelog";
127
128
  export type ProjectionTargetOwnership = "generated" | "mixed";
128
129
  export type ProjectionTargetFormat = "markdown" | "mermaid" | "structurizr-json" | "likec4";
@@ -1,5 +1,5 @@
1
1
  export const ARCHCONTEXT_PRODUCT_NAME = "archctx";
2
- export const ARCHCONTEXT_PRODUCT_VERSION = "0.2.0";
2
+ export const ARCHCONTEXT_PRODUCT_VERSION = "0.2.2";
3
3
  export const ARCHCONTEXT_PACKAGE_MANAGER = "bun@1.3.10";
4
4
  export const ARCHCONTEXT_NODE_RANGE = ">=24 <26";
5
5
  export const LOCAL_RUNTIME_RPC_SCHEMA_VERSION = "archcontext.runtime-rpc/v1";