hadara 0.1.0-rc.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/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/agent/evidence.js +50 -0
- package/dist/agent/loop.js +124 -0
- package/dist/cli/args.js +70 -0
- package/dist/cli/dashboard.js +185 -0
- package/dist/cli/debt.js +41 -0
- package/dist/cli/doctor.js +68 -0
- package/dist/cli/errors.js +58 -0
- package/dist/cli/evidence-json.js +75 -0
- package/dist/cli/evidence.js +80 -0
- package/dist/cli/handoff.js +16 -0
- package/dist/cli/harness.js +57 -0
- package/dist/cli/hermes-json.js +31 -0
- package/dist/cli/hermes.js +28 -0
- package/dist/cli/init.js +142 -0
- package/dist/cli/install.js +34 -0
- package/dist/cli/main.js +216 -0
- package/dist/cli/mcp.js +15 -0
- package/dist/cli/package-smoke.js +37 -0
- package/dist/cli/policy-json.js +22 -0
- package/dist/cli/policy.js +43 -0
- package/dist/cli/release-artifact.js +47 -0
- package/dist/cli/release-dry-run.js +24 -0
- package/dist/cli/release-gate.js +28 -0
- package/dist/cli/release-publish.js +41 -0
- package/dist/cli/run-scaffold.js +68 -0
- package/dist/cli/run-state.js +41 -0
- package/dist/cli/run.js +191 -0
- package/dist/cli/smoke.js +58 -0
- package/dist/cli/status-json.js +6 -0
- package/dist/cli/status.js +26 -0
- package/dist/cli/task-json.js +8 -0
- package/dist/cli/task.js +64 -0
- package/dist/cli/tools.js +25 -0
- package/dist/cli/tui.js +72 -0
- package/dist/cli/write-preflight.js +27 -0
- package/dist/core/audit.js +41 -0
- package/dist/core/events.js +63 -0
- package/dist/core/fs.js +44 -0
- package/dist/core/paths.js +59 -0
- package/dist/core/redaction.js +178 -0
- package/dist/core/schema.js +253 -0
- package/dist/core/workspace.js +47 -0
- package/dist/evidence/evidence.js +170 -0
- package/dist/evidence/private-manifest.js +101 -0
- package/dist/handoff/handoff.js +49 -0
- package/dist/harness/replay.js +200 -0
- package/dist/harness/validate.js +465 -0
- package/dist/hermes/context-export.js +104 -0
- package/dist/index.js +29 -0
- package/dist/mcp/server.js +104 -0
- package/dist/mcp/tool-dispatch.js +159 -0
- package/dist/mcp/tool-registry.js +150 -0
- package/dist/mcp/tool-schemas.js +18 -0
- package/dist/policy/command-risk.js +39 -0
- package/dist/policy/permission-matrix.js +42 -0
- package/dist/policy/policy.js +20 -0
- package/dist/policy/preflight.js +47 -0
- package/dist/policy/presets.js +24 -0
- package/dist/policy/tokenizer.js +53 -0
- package/dist/providers/fallback-executor.js +46 -0
- package/dist/providers/mock-provider.js +49 -0
- package/dist/providers/provider-contract.js +2 -0
- package/dist/providers/provider-preparation.js +220 -0
- package/dist/providers/scripted-provider.js +69 -0
- package/dist/schemas/active-run-projection.schema.json +73 -0
- package/dist/schemas/active-run-resume.schema.json +68 -0
- package/dist/schemas/clean-checkout-smoke.schema.json +126 -0
- package/dist/schemas/context-export.schema.json +35 -0
- package/dist/schemas/event.schema.json +17 -0
- package/dist/schemas/evidence-list.schema.json +49 -0
- package/dist/schemas/feature-smoke.schema.json +67 -0
- package/dist/schemas/install-plan.schema.json +93 -0
- package/dist/schemas/package-smoke.schema.json +130 -0
- package/dist/schemas/private-evidence.schema.json +48 -0
- package/dist/schemas/provider-call.schema.json +42 -0
- package/dist/schemas/provider-config.schema.json +43 -0
- package/dist/schemas/release-artifact-manifest.schema.json +55 -0
- package/dist/schemas/release-artifact.schema.json +140 -0
- package/dist/schemas/release-dry-run.schema.json +141 -0
- package/dist/schemas/release-gate.schema.json +42 -0
- package/dist/schemas/release-publish.schema.json +114 -0
- package/dist/schemas/schema-index.json +145 -0
- package/dist/schemas/smoke-evidence-summary.schema.json +88 -0
- package/dist/schemas/tools-list.schema.json +78 -0
- package/dist/schemas/write-preflight.schema.json +47 -0
- package/dist/services/active-run-state.js +215 -0
- package/dist/services/capability-registry.js +540 -0
- package/dist/services/clean-checkout-smoke.js +393 -0
- package/dist/services/evidence-list.js +136 -0
- package/dist/services/feature-smoke.js +155 -0
- package/dist/services/harness-service.js +7 -0
- package/dist/services/install-plan.js +233 -0
- package/dist/services/operational-debt.js +767 -0
- package/dist/services/operations-status-service.js +195 -0
- package/dist/services/package-smoke.js +676 -0
- package/dist/services/policy-service.js +25 -0
- package/dist/services/project-read-model.js +101 -0
- package/dist/services/release-artifact-evidence.js +77 -0
- package/dist/services/release-artifact.js +351 -0
- package/dist/services/release-dry-run.js +253 -0
- package/dist/services/release-evidence.js +138 -0
- package/dist/services/release-publish.js +163 -0
- package/dist/services/smoke-evidence.js +104 -0
- package/dist/services/task-read-model.js +125 -0
- package/dist/services/tools-list.js +26 -0
- package/dist/services/write-preflight.js +240 -0
- package/dist/task/task-capsule.js +121 -0
- package/dist/tools/fake-shell.js +56 -0
- package/dist/tui/cache.js +341 -0
- package/dist/tui/constants.js +44 -0
- package/dist/tui/layout.js +140 -0
- package/dist/tui/markdown.js +238 -0
- package/dist/tui/read-model-worker.js +24 -0
- package/dist/tui/read-model.js +502 -0
- package/dist/tui/snapshot.js +434 -0
- package/dist/tui/state.js +229 -0
- package/dist/tui/terminal.js +475 -0
- package/dist/tui/theme.js +86 -0
- package/package.json +16 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "hadara.releaseArtifact.v1",
|
|
4
|
+
"x-hadara-schema-id": "hadara.releaseArtifact.v1",
|
|
5
|
+
"title": "HADARA Release Artifact Report",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"command",
|
|
11
|
+
"ok",
|
|
12
|
+
"mode",
|
|
13
|
+
"execution",
|
|
14
|
+
"output",
|
|
15
|
+
"package",
|
|
16
|
+
"artifacts",
|
|
17
|
+
"packageContents",
|
|
18
|
+
"privacy",
|
|
19
|
+
"issues"
|
|
20
|
+
],
|
|
21
|
+
"properties": {
|
|
22
|
+
"schemaVersion": { "const": "hadara.releaseArtifact.v1" },
|
|
23
|
+
"command": { "const": "release.artifact" },
|
|
24
|
+
"ok": { "type": "boolean" },
|
|
25
|
+
"mode": { "const": "execute" },
|
|
26
|
+
"execution": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": true,
|
|
29
|
+
"required": [
|
|
30
|
+
"stagingCreated",
|
|
31
|
+
"npmPackExecuted",
|
|
32
|
+
"checksumGenerated",
|
|
33
|
+
"manifestGenerated",
|
|
34
|
+
"packageContentsVerified",
|
|
35
|
+
"publishExecuted",
|
|
36
|
+
"githubReleaseCreated",
|
|
37
|
+
"dockerImageBuilt"
|
|
38
|
+
],
|
|
39
|
+
"properties": {
|
|
40
|
+
"stagingCreated": { "type": "boolean" },
|
|
41
|
+
"npmPackExecuted": { "type": "boolean" },
|
|
42
|
+
"checksumGenerated": { "type": "boolean" },
|
|
43
|
+
"manifestGenerated": { "type": "boolean" },
|
|
44
|
+
"packageContentsVerified": { "type": "boolean" },
|
|
45
|
+
"publishExecuted": { "const": false },
|
|
46
|
+
"githubReleaseCreated": { "const": false },
|
|
47
|
+
"dockerImageBuilt": { "const": false }
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"output": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"additionalProperties": true,
|
|
53
|
+
"required": ["kind", "displayPath", "pathRedacted", "retention"],
|
|
54
|
+
"properties": {
|
|
55
|
+
"kind": { "type": "string", "enum": ["disposable", "explicit"] },
|
|
56
|
+
"displayPath": { "type": "string", "minLength": 1 },
|
|
57
|
+
"pathRedacted": { "const": true },
|
|
58
|
+
"relativePath": { "type": "string", "minLength": 1 },
|
|
59
|
+
"retention": { "type": "string", "enum": ["deleted", "kept-temporary", "explicit-output"] }
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"package": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"additionalProperties": true,
|
|
65
|
+
"required": ["name", "version", "private", "filesWhitelistApplied"],
|
|
66
|
+
"properties": {
|
|
67
|
+
"name": { "type": "string", "minLength": 1 },
|
|
68
|
+
"version": { "type": "string", "minLength": 1 },
|
|
69
|
+
"private": { "type": "boolean" },
|
|
70
|
+
"filesWhitelistApplied": { "const": true }
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"artifacts": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": { "$ref": "#/$defs/artifact" }
|
|
76
|
+
},
|
|
77
|
+
"packageContents": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": true,
|
|
80
|
+
"required": ["verified", "fileCount", "allowedRoots", "requiredFiles", "forbiddenMatches"],
|
|
81
|
+
"properties": {
|
|
82
|
+
"verified": { "type": "boolean" },
|
|
83
|
+
"fileCount": { "type": "integer" },
|
|
84
|
+
"allowedRoots": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
85
|
+
"requiredFiles": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
86
|
+
"forbiddenMatches": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"privacy": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": true,
|
|
92
|
+
"required": [
|
|
93
|
+
"rawLogsIncluded",
|
|
94
|
+
"packageContentsIncluded",
|
|
95
|
+
"privatePathsIncluded",
|
|
96
|
+
"environmentSecretsIncluded",
|
|
97
|
+
"privateStorePathsIncluded"
|
|
98
|
+
],
|
|
99
|
+
"properties": {
|
|
100
|
+
"rawLogsIncluded": { "const": false },
|
|
101
|
+
"packageContentsIncluded": { "const": false },
|
|
102
|
+
"privatePathsIncluded": { "const": false },
|
|
103
|
+
"environmentSecretsIncluded": { "const": false },
|
|
104
|
+
"privateStorePathsIncluded": { "const": false }
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"issues": {
|
|
108
|
+
"type": "array",
|
|
109
|
+
"items": { "$ref": "#/$defs/issue" }
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"$defs": {
|
|
113
|
+
"artifact": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"additionalProperties": true,
|
|
116
|
+
"required": ["kind", "visibility", "fileName", "pathRedacted", "rawContentIncluded"],
|
|
117
|
+
"properties": {
|
|
118
|
+
"kind": { "type": "string", "enum": ["tarball", "checksum", "manifest"] },
|
|
119
|
+
"visibility": { "type": "string", "enum": ["temporary", "local"] },
|
|
120
|
+
"fileName": { "type": "string", "minLength": 1 },
|
|
121
|
+
"relativePath": { "type": "string", "minLength": 1 },
|
|
122
|
+
"pathRedacted": { "const": true },
|
|
123
|
+
"byteLength": { "type": "integer" },
|
|
124
|
+
"hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
125
|
+
"rawContentIncluded": { "const": false }
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"issue": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"additionalProperties": true,
|
|
131
|
+
"required": ["severity", "code", "message"],
|
|
132
|
+
"properties": {
|
|
133
|
+
"severity": { "type": "string", "enum": ["warning", "error"] },
|
|
134
|
+
"code": { "type": "string", "minLength": 1 },
|
|
135
|
+
"message": { "type": "string", "minLength": 1 },
|
|
136
|
+
"stepId": { "type": "string", "minLength": 1 }
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "hadara.releaseDryRun.v1",
|
|
4
|
+
"x-hadara-schema-id": "hadara.releaseDryRun.v1",
|
|
5
|
+
"title": "HADARA Release Dry Run Report",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"command",
|
|
11
|
+
"mode",
|
|
12
|
+
"ok",
|
|
13
|
+
"current",
|
|
14
|
+
"releaseTargets",
|
|
15
|
+
"checks",
|
|
16
|
+
"evidence",
|
|
17
|
+
"plannedSteps",
|
|
18
|
+
"privacy",
|
|
19
|
+
"issues"
|
|
20
|
+
],
|
|
21
|
+
"properties": {
|
|
22
|
+
"schemaVersion": { "const": "hadara.releaseDryRun.v1" },
|
|
23
|
+
"command": { "const": "release.dryRun" },
|
|
24
|
+
"mode": { "const": "dry-run" },
|
|
25
|
+
"ok": { "type": "boolean" },
|
|
26
|
+
"current": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": true,
|
|
29
|
+
"required": ["packageName", "packageVersion"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"packageName": { "type": "string", "minLength": 1 },
|
|
32
|
+
"packageVersion": { "type": "string", "minLength": 1 },
|
|
33
|
+
"gitCommit": { "type": "string", "pattern": "^[a-f0-9]{40}$" }
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"releaseTargets": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"required": ["primary", "secondary", "dockerImage"],
|
|
40
|
+
"properties": {
|
|
41
|
+
"primary": { "const": "npm-package" },
|
|
42
|
+
"secondary": { "const": "github-release" },
|
|
43
|
+
"dockerImage": { "const": "deferred" }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"checks": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": { "$ref": "#/$defs/check" }
|
|
49
|
+
},
|
|
50
|
+
"evidence": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": { "$ref": "#/$defs/evidence" }
|
|
53
|
+
},
|
|
54
|
+
"plannedSteps": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": { "$ref": "#/$defs/plannedStep" }
|
|
57
|
+
},
|
|
58
|
+
"privacy": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"additionalProperties": true,
|
|
61
|
+
"required": [
|
|
62
|
+
"tokenValuesIncluded",
|
|
63
|
+
"rawLogsIncluded",
|
|
64
|
+
"privatePathsIncluded",
|
|
65
|
+
"publishExecuted",
|
|
66
|
+
"githubReleaseCreated",
|
|
67
|
+
"dockerImageBuilt"
|
|
68
|
+
],
|
|
69
|
+
"properties": {
|
|
70
|
+
"tokenValuesIncluded": { "const": false },
|
|
71
|
+
"rawLogsIncluded": { "const": false },
|
|
72
|
+
"privatePathsIncluded": { "const": false },
|
|
73
|
+
"publishExecuted": { "const": false },
|
|
74
|
+
"githubReleaseCreated": { "const": false },
|
|
75
|
+
"dockerImageBuilt": { "const": false }
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"issues": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": { "$ref": "#/$defs/issue" }
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"$defs": {
|
|
84
|
+
"check": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"additionalProperties": true,
|
|
87
|
+
"required": ["code", "name", "status", "summary"],
|
|
88
|
+
"properties": {
|
|
89
|
+
"code": { "type": "string", "minLength": 1 },
|
|
90
|
+
"name": { "type": "string", "minLength": 1 },
|
|
91
|
+
"status": { "type": "string", "enum": ["passed", "warning", "error"] },
|
|
92
|
+
"summary": { "type": "string", "minLength": 1 }
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"evidence": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": true,
|
|
98
|
+
"required": ["code", "artifactExists"],
|
|
99
|
+
"properties": {
|
|
100
|
+
"code": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"enum": ["PACKAGE_SMOKE_EVIDENCE", "CLEAN_CHECKOUT_SMOKE_EVIDENCE", "RELEASE_ARTIFACT_EVIDENCE"]
|
|
103
|
+
},
|
|
104
|
+
"taskId": { "type": "string", "pattern": "^T-[0-9]{4}$" },
|
|
105
|
+
"time": { "type": "string", "minLength": 1 },
|
|
106
|
+
"evidencePath": { "type": "string", "minLength": 1 },
|
|
107
|
+
"artifactExists": { "type": "boolean" },
|
|
108
|
+
"artifactSchemaValid": { "type": "boolean" },
|
|
109
|
+
"sourceOk": { "type": "boolean" },
|
|
110
|
+
"category": { "type": "string", "minLength": 1 },
|
|
111
|
+
"mode": { "type": "string", "minLength": 1 },
|
|
112
|
+
"result": { "type": "string", "minLength": 1 },
|
|
113
|
+
"packageVersion": { "type": "string", "minLength": 1 },
|
|
114
|
+
"gitCommit": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
115
|
+
"manifestHash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"plannedStep": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"additionalProperties": true,
|
|
121
|
+
"required": ["id", "target", "willExecute", "requiresApproval", "summary"],
|
|
122
|
+
"properties": {
|
|
123
|
+
"id": { "type": "string", "minLength": 1 },
|
|
124
|
+
"target": { "type": "string", "enum": ["npm-package", "github-release", "docker-image"] },
|
|
125
|
+
"willExecute": { "const": false },
|
|
126
|
+
"requiresApproval": { "type": "boolean" },
|
|
127
|
+
"summary": { "type": "string", "minLength": 1 }
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"issue": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"additionalProperties": true,
|
|
133
|
+
"required": ["severity", "code", "message"],
|
|
134
|
+
"properties": {
|
|
135
|
+
"severity": { "type": "string", "enum": ["warning", "error"] },
|
|
136
|
+
"code": { "type": "string", "minLength": 1 },
|
|
137
|
+
"message": { "type": "string", "minLength": 1 }
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "hadara.releaseGate.v1",
|
|
4
|
+
"x-hadara-schema-id": "hadara.releaseGate.v1",
|
|
5
|
+
"title": "HADARA Release Gate Report",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["schemaVersion", "command", "mode", "ok", "checks", "issues"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaVersion": { "const": "hadara.releaseGate.v1" },
|
|
11
|
+
"command": { "const": "release.gate" },
|
|
12
|
+
"mode": { "type": "string", "enum": ["advisory", "strict"] },
|
|
13
|
+
"ok": { "type": "boolean" },
|
|
14
|
+
"checks": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": true,
|
|
19
|
+
"required": ["code", "name", "status", "summary"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"code": { "type": "string", "minLength": 1 },
|
|
22
|
+
"name": { "type": "string", "minLength": 1 },
|
|
23
|
+
"status": { "type": "string", "enum": ["passed", "warning", "error"] },
|
|
24
|
+
"summary": { "type": "string", "minLength": 1 }
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"issues": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": true,
|
|
33
|
+
"required": ["severity", "code", "message"],
|
|
34
|
+
"properties": {
|
|
35
|
+
"severity": { "type": "string", "enum": ["warning", "error"] },
|
|
36
|
+
"code": { "type": "string", "minLength": 1 },
|
|
37
|
+
"message": { "type": "string", "minLength": 1 }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "hadara.releasePublish.v1",
|
|
4
|
+
"x-hadara-schema-id": "hadara.releasePublish.v1",
|
|
5
|
+
"title": "HADARA Release Publish Report",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["schemaVersion", "command", "mode", "ok", "current", "approval", "releaseTargets", "checks", "privacy", "issues"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaVersion": { "const": "hadara.releasePublish.v1" },
|
|
11
|
+
"command": { "const": "release.publish" },
|
|
12
|
+
"mode": { "type": "string", "enum": ["dry-run", "execute"] },
|
|
13
|
+
"ok": { "type": "boolean" },
|
|
14
|
+
"current": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": true,
|
|
17
|
+
"required": ["packageName", "packageVersion", "private"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"packageName": { "type": "string", "minLength": 1 },
|
|
20
|
+
"packageVersion": { "type": "string", "minLength": 1 },
|
|
21
|
+
"private": { "type": "boolean" }
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"approval": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"required": ["required", "actorProvided", "reasonProvided", "confirmationProvided"],
|
|
28
|
+
"properties": {
|
|
29
|
+
"required": { "const": true },
|
|
30
|
+
"actorProvided": { "type": "boolean" },
|
|
31
|
+
"reasonProvided": { "type": "boolean" },
|
|
32
|
+
"confirmationProvided": { "type": "boolean" }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"releaseTargets": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": { "$ref": "#/$defs/releaseTarget" }
|
|
38
|
+
},
|
|
39
|
+
"checks": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": { "$ref": "#/$defs/check" }
|
|
42
|
+
},
|
|
43
|
+
"privacy": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"additionalProperties": true,
|
|
46
|
+
"required": [
|
|
47
|
+
"tokenValuesIncluded",
|
|
48
|
+
"rawLogsIncluded",
|
|
49
|
+
"privatePathsIncluded",
|
|
50
|
+
"publishExecuted",
|
|
51
|
+
"githubReleaseCreated",
|
|
52
|
+
"dockerImageBuilt"
|
|
53
|
+
],
|
|
54
|
+
"properties": {
|
|
55
|
+
"tokenValuesIncluded": { "const": false },
|
|
56
|
+
"rawLogsIncluded": { "const": false },
|
|
57
|
+
"privatePathsIncluded": { "const": false },
|
|
58
|
+
"publishExecuted": { "const": false },
|
|
59
|
+
"githubReleaseCreated": { "const": false },
|
|
60
|
+
"dockerImageBuilt": { "const": false }
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"audit": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"required": ["attempted", "written"],
|
|
67
|
+
"properties": {
|
|
68
|
+
"attempted": { "type": "boolean" },
|
|
69
|
+
"written": { "type": "boolean" }
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"issues": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": { "$ref": "#/$defs/issue" }
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"$defs": {
|
|
78
|
+
"releaseTarget": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"additionalProperties": true,
|
|
81
|
+
"required": ["id", "target", "status", "willExecute", "summary"],
|
|
82
|
+
"properties": {
|
|
83
|
+
"id": { "type": "string", "enum": ["npm-publish", "github-release", "docker-image"] },
|
|
84
|
+
"target": { "type": "string", "enum": ["npm-package", "github-release", "docker-image"] },
|
|
85
|
+
"status": { "type": "string", "enum": ["ready", "blocked", "deferred"] },
|
|
86
|
+
"tokenName": { "type": "string", "minLength": 1 },
|
|
87
|
+
"tokenPresent": { "type": "boolean" },
|
|
88
|
+
"willExecute": { "const": false },
|
|
89
|
+
"summary": { "type": "string", "minLength": 1 }
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"check": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"additionalProperties": true,
|
|
95
|
+
"required": ["code", "name", "status", "summary"],
|
|
96
|
+
"properties": {
|
|
97
|
+
"code": { "type": "string", "minLength": 1 },
|
|
98
|
+
"name": { "type": "string", "minLength": 1 },
|
|
99
|
+
"status": { "type": "string", "enum": ["passed", "warning", "error"] },
|
|
100
|
+
"summary": { "type": "string", "minLength": 1 }
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"issue": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"additionalProperties": true,
|
|
106
|
+
"required": ["severity", "code", "message"],
|
|
107
|
+
"properties": {
|
|
108
|
+
"severity": { "type": "string", "enum": ["warning", "error"] },
|
|
109
|
+
"code": { "type": "string", "minLength": 1 },
|
|
110
|
+
"message": { "type": "string", "minLength": 1 }
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "hadara.schema.index.v1",
|
|
3
|
+
"schemas": [
|
|
4
|
+
{
|
|
5
|
+
"id": "hadara.evidence.list.v1",
|
|
6
|
+
"path": "src/schemas/evidence-list.schema.json",
|
|
7
|
+
"status": "fixture",
|
|
8
|
+
"owner": "services/evidence-list",
|
|
9
|
+
"notes": "Shared by CLI evidence list and read-only MCP hadara.evidence.list."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "hadara.context.export.v1",
|
|
13
|
+
"path": "src/schemas/context-export.schema.json",
|
|
14
|
+
"status": "fixture",
|
|
15
|
+
"owner": "hermes/context-export",
|
|
16
|
+
"notes": "Documents read-only MCP memory-mode context export; CLI export-context remains file-writing."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "hadara.tools.list.v1",
|
|
20
|
+
"path": "src/schemas/tools-list.schema.json",
|
|
21
|
+
"status": "fixture",
|
|
22
|
+
"owner": "services/tools-list",
|
|
23
|
+
"notes": "Documents CLI/MCP capability discovery, availability metadata, and disabled surfaces."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "hadara.active_run.projection.v1",
|
|
27
|
+
"path": "src/schemas/active-run-projection.schema.json",
|
|
28
|
+
"status": "fixture",
|
|
29
|
+
"owner": "services/active-run-state",
|
|
30
|
+
"notes": "Documents read-only active-run projection with degraded warnings for local mutable state."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "hadara.active_run.resume.v1",
|
|
34
|
+
"path": "src/schemas/active-run-resume.schema.json",
|
|
35
|
+
"status": "fixture",
|
|
36
|
+
"owner": "services/active-run-state",
|
|
37
|
+
"notes": "Documents read-only resume guidance; it does not mutate active-run state or resume a process."
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "hadara.privateEvidence.v1",
|
|
41
|
+
"path": "src/schemas/private-evidence.schema.json",
|
|
42
|
+
"status": "fixture",
|
|
43
|
+
"owner": "evidence/private-manifest",
|
|
44
|
+
"notes": "Documents private portable-store manifest records without private raw content or source paths."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "hadara.releaseGate.v1",
|
|
48
|
+
"path": "src/schemas/release-gate.schema.json",
|
|
49
|
+
"status": "fixture",
|
|
50
|
+
"owner": "services/operational-debt",
|
|
51
|
+
"notes": "Documents advisory and strict release gate reports."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "hadara.event.v1",
|
|
55
|
+
"path": "src/schemas/event.schema.json",
|
|
56
|
+
"status": "fixture",
|
|
57
|
+
"owner": "core/events",
|
|
58
|
+
"notes": "Documents structured HADARA event records used by private audit JSONL and future debug/read surfaces."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "hadara.provider.config.v1",
|
|
62
|
+
"path": "src/schemas/provider-config.schema.json",
|
|
63
|
+
"status": "fixture",
|
|
64
|
+
"owner": "providers/preparation",
|
|
65
|
+
"notes": "Documents provider adapter configuration references without storing provider secret values."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "hadara.provider.call.v1",
|
|
69
|
+
"path": "src/schemas/provider-call.schema.json",
|
|
70
|
+
"status": "fixture",
|
|
71
|
+
"owner": "providers/preparation",
|
|
72
|
+
"notes": "Documents provider call summary reports without prompt, response, or secret content."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "hadara.write.preflight.v1",
|
|
76
|
+
"path": "src/schemas/write-preflight.schema.json",
|
|
77
|
+
"status": "fixture",
|
|
78
|
+
"owner": "services/write-preflight",
|
|
79
|
+
"notes": "Documents read-only CLI write-boundary preflight reports for expected project/portable write paths."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "hadara.install.plan.v1",
|
|
83
|
+
"path": "src/schemas/install-plan.schema.json",
|
|
84
|
+
"status": "fixture",
|
|
85
|
+
"owner": "install/plan",
|
|
86
|
+
"notes": "Documents dry-run installer planning reports before any install mutation implementation."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "hadara.packageSmoke.v1",
|
|
90
|
+
"path": "src/schemas/package-smoke.schema.json",
|
|
91
|
+
"status": "fixture",
|
|
92
|
+
"owner": "package-smoke/report",
|
|
93
|
+
"notes": "Documents reduced package-smoke reports before dry-run or executable package-smoke command implementation."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "hadara.featureSmoke.v1",
|
|
97
|
+
"path": "src/schemas/feature-smoke.schema.json",
|
|
98
|
+
"status": "fixture",
|
|
99
|
+
"owner": "feature-smoke/runner",
|
|
100
|
+
"notes": "Documents reduced read-only major feature smoke reports for core service/read-model validation; installed binary and launcher checks are deferred."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "hadara.cleanCheckoutSmoke.v1",
|
|
104
|
+
"path": "src/schemas/clean-checkout-smoke.schema.json",
|
|
105
|
+
"status": "fixture",
|
|
106
|
+
"owner": "clean-checkout/smoke",
|
|
107
|
+
"notes": "Documents reduced executable source-checkout smoke reports for disposable clean checkout validation."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "hadara.releaseArtifact.v1",
|
|
111
|
+
"path": "src/schemas/release-artifact.schema.json",
|
|
112
|
+
"status": "fixture",
|
|
113
|
+
"owner": "release/artifact",
|
|
114
|
+
"notes": "Documents reduced release artifact build reports for tarball, checksum, manifest, and package-content verification without publish or GitHub Release mutation."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "hadara.releaseDryRun.v1",
|
|
118
|
+
"path": "src/schemas/release-dry-run.schema.json",
|
|
119
|
+
"status": "fixture",
|
|
120
|
+
"owner": "release/dry-run",
|
|
121
|
+
"notes": "Documents read-only final release dry-run reports that cross-check public evidence artifacts and planned release targets without publish or GitHub Release mutation."
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "hadara.releasePublish.v1",
|
|
125
|
+
"path": "src/schemas/release-publish.schema.json",
|
|
126
|
+
"status": "fixture",
|
|
127
|
+
"owner": "release/publish",
|
|
128
|
+
"notes": "Documents approval-gated publish/deploy readiness reports with token presence checks but no token values or release mutation."
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "hadara.smokeEvidenceSummary.v1",
|
|
132
|
+
"path": "src/schemas/smoke-evidence-summary.schema.json",
|
|
133
|
+
"status": "fixture",
|
|
134
|
+
"owner": "smoke/evidence",
|
|
135
|
+
"notes": "Documents reduced public smoke evidence summaries attached by package-smoke and clean-checkout smoke execution."
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "hadara.releaseArtifact.manifest.v1",
|
|
139
|
+
"path": "src/schemas/release-artifact-manifest.schema.json",
|
|
140
|
+
"status": "fixture",
|
|
141
|
+
"owner": "release/artifact",
|
|
142
|
+
"notes": "Documents generated release artifact manifest files for tarball hash and package file lists without publish or GitHub Release mutation."
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|