@wefter/opencode 0.2.0 → 0.2.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 (94) hide show
  1. package/CHANGELOG.md +36 -25
  2. package/LICENSE +21 -21
  3. package/README.md +126 -125
  4. package/bin/wefter.js +8 -8
  5. package/docs/ARCHITECTURE.md +75 -75
  6. package/docs/INSTALLATION.md +47 -47
  7. package/docs/SAFETY_MODEL.md +17 -17
  8. package/docs/SELF_AUDIT.md +37 -35
  9. package/docs/WORKFLOWS.md +17 -15
  10. package/package.json +45 -45
  11. package/schemas/documentation-audit-profile.schema.json +55 -55
  12. package/schemas/product-shaping-config.schema.json +63 -63
  13. package/schemas/product-shaping-contract.schema.json +204 -204
  14. package/schemas/product-shaping-profile.schema.json +39 -39
  15. package/schemas/product-shaping-run-manifest.schema.json +103 -103
  16. package/schemas/run-manifest.schema.json +14 -14
  17. package/schemas/wefter.config.schema.json +62 -62
  18. package/schemas/work-unit-config.schema.json +51 -44
  19. package/schemas/work-unit-profile.schema.json +38 -38
  20. package/schemas/work-unit-review-result.schema.json +13 -13
  21. package/schemas/workflow-manifest.schema.json +31 -21
  22. package/src/cli/main.js +2696 -2646
  23. package/src/workflows/documentation-audit/README.md +37 -37
  24. package/src/workflows/documentation-audit/templates/README.md.tmpl +47 -47
  25. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-consolidator.md.tmpl +27 -27
  26. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-orchestrator.md.tmpl +69 -65
  27. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-profile-builder.md.tmpl +58 -58
  28. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-validator.md.tmpl +26 -26
  29. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-auditor.md.tmpl +31 -28
  30. package/src/workflows/documentation-audit/templates/opencode/skills/documentation-audit/SKILL.md.tmpl +39 -38
  31. package/src/workflows/documentation-audit/templates/prompts/auditor-prompt.md +98 -97
  32. package/src/workflows/documentation-audit/templates/prompts/consolidator-prompt.md +84 -84
  33. package/src/workflows/documentation-audit/templates/prompts/validator-prompt.md +92 -92
  34. package/src/workflows/documentation-audit/workflow.json +24 -24
  35. package/src/workflows/documentation-repair/README.md +11 -11
  36. package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repair-orchestrator.md.tmpl +33 -33
  37. package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repair-planner.md.tmpl +17 -17
  38. package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repair-reviewer.md.tmpl +17 -17
  39. package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repairer.md.tmpl +14 -14
  40. package/src/workflows/documentation-repair/templates/opencode/skills/documentation-repair/SKILL.md.tmpl +17 -17
  41. package/src/workflows/documentation-repair/templates/prompts/repair-apply-prompt.md +43 -43
  42. package/src/workflows/documentation-repair/templates/prompts/repair-plan-prompt.md +73 -73
  43. package/src/workflows/documentation-repair/templates/prompts/repair-review-prompt.md +47 -47
  44. package/src/workflows/documentation-repair/workflow.json +10 -10
  45. package/src/workflows/product-shaping/README.md +1245 -1245
  46. package/src/workflows/product-shaping/compatibility.md +33 -33
  47. package/src/workflows/product-shaping/contracts/product-spec-contract.json +250 -250
  48. package/src/workflows/product-shaping/templates/default-config.json +34 -34
  49. package/src/workflows/product-shaping/templates/default-profile.json +48 -48
  50. package/src/workflows/product-shaping/templates/documentation-audit/workflow-self-audit-auditor-prompt.md +117 -116
  51. package/src/workflows/product-shaping/templates/documentation-audit-profile.json +80 -80
  52. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-auditor.md.tmpl +22 -22
  53. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-domain-modeler.md.tmpl +31 -31
  54. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-intake-analyst.md.tmpl +31 -31
  55. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-orchestrator.md.tmpl +48 -48
  56. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-reference-researcher.md.tmpl +29 -29
  57. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-release-planner.md.tmpl +34 -34
  58. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-repairer.md.tmpl +25 -25
  59. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-shaper.md.tmpl +31 -31
  60. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-validator.md.tmpl +23 -23
  61. package/src/workflows/product-shaping/templates/opencode/skills/product-shaping/SKILL.md.tmpl +45 -45
  62. package/src/workflows/product-shaping/templates/prompts/domain-modeler-prompt.md +27 -27
  63. package/src/workflows/product-shaping/templates/prompts/intake-prompt.md +30 -30
  64. package/src/workflows/product-shaping/templates/prompts/product-auditor-prompt.md +53 -53
  65. package/src/workflows/product-shaping/templates/prompts/product-repairer-prompt.md +25 -25
  66. package/src/workflows/product-shaping/templates/prompts/product-shaper-prompt.md +26 -26
  67. package/src/workflows/product-shaping/templates/prompts/product-validator-prompt.md +55 -55
  68. package/src/workflows/product-shaping/templates/prompts/reference-research-prompt.md +25 -25
  69. package/src/workflows/product-shaping/templates/prompts/release-planner-prompt.md +34 -34
  70. package/src/workflows/product-shaping/workflow.json +33 -33
  71. package/src/workflows/technical-shaping/README.md +7 -5
  72. package/src/workflows/technical-shaping/workflow.json +14 -10
  73. package/src/workflows/work-unit-implementation/README.md +71 -71
  74. package/src/workflows/work-unit-implementation/templates/default-config.json +46 -46
  75. package/src/workflows/work-unit-implementation/templates/default-profile.json +57 -57
  76. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-orchestrator.md.tmpl +62 -62
  77. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-auditor.md.tmpl +26 -26
  78. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-consolidator.md.tmpl +26 -26
  79. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-repairer.md.tmpl +25 -25
  80. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-validator.md.tmpl +25 -25
  81. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-planner.md.tmpl +27 -27
  82. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-task-implementer.md.tmpl +30 -30
  83. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-task-reviewer.md.tmpl +28 -28
  84. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-validator.md.tmpl +26 -26
  85. package/src/workflows/work-unit-implementation/templates/opencode/skills/work-unit-implementation/SKILL.md.tmpl +25 -25
  86. package/src/workflows/work-unit-implementation/templates/prompts/plan-auditor-prompt.md +89 -89
  87. package/src/workflows/work-unit-implementation/templates/prompts/plan-consolidator-prompt.md +64 -64
  88. package/src/workflows/work-unit-implementation/templates/prompts/plan-repairer-prompt.md +42 -42
  89. package/src/workflows/work-unit-implementation/templates/prompts/plan-validator-prompt.md +84 -84
  90. package/src/workflows/work-unit-implementation/templates/prompts/planner-prompt.md +150 -150
  91. package/src/workflows/work-unit-implementation/templates/prompts/task-implementation-prompt.md +57 -57
  92. package/src/workflows/work-unit-implementation/templates/prompts/task-review-prompt.md +69 -69
  93. package/src/workflows/work-unit-implementation/templates/prompts/work-unit-validator-prompt.md +50 -50
  94. package/src/workflows/work-unit-implementation/workflow.json +14 -14
@@ -1,103 +1,103 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://wefter.dev/schemas/product-shaping-run-manifest.schema.json",
4
- "type": "object",
5
- "required": ["version", "workflowId", "runId", "releaseId", "generatedAt", "configPath", "profilePath", "contractPath", "processDocPath", "specRoot", "counts", "paths", "outputs", "handoff", "gate", "prompts", "requiredFiles"],
6
- "properties": {
7
- "version": { "const": 1 },
8
- "workflowId": { "const": "product-shaping" },
9
- "runId": { "type": "string", "minLength": 1 },
10
- "releaseId": { "type": "string", "minLength": 1 },
11
- "generatedAt": { "type": "string", "format": "date-time" },
12
- "configPath": { "$ref": "#/$defs/relativePath" },
13
- "profilePath": { "$ref": "#/$defs/relativePath" },
14
- "contractPath": { "$ref": "#/$defs/relativePath" },
15
- "processDocPath": { "$ref": "#/$defs/relativePath" },
16
- "specRoot": { "$ref": "#/$defs/relativePath" },
17
- "counts": {
18
- "type": "object",
19
- "required": ["requiredFiles", "variants", "lenses"],
20
- "properties": {
21
- "requiredFiles": { "type": "integer", "minimum": 1 },
22
- "variants": { "type": "integer", "minimum": 1 },
23
- "lenses": { "type": "integer", "minimum": 1 }
24
- },
25
- "additionalProperties": false
26
- },
27
- "paths": {
28
- "type": "object",
29
- "required": ["runRoot", "prompts", "draft", "review", "validation", "final", "specRoot", "releaseRoot"],
30
- "properties": {
31
- "runRoot": { "$ref": "#/$defs/relativePath" },
32
- "prompts": { "$ref": "#/$defs/relativePath" },
33
- "draft": { "$ref": "#/$defs/relativePath" },
34
- "review": { "$ref": "#/$defs/relativePath" },
35
- "validation": { "$ref": "#/$defs/relativePath" },
36
- "final": { "$ref": "#/$defs/relativePath" },
37
- "specRoot": { "$ref": "#/$defs/relativePath" },
38
- "releaseRoot": { "$ref": "#/$defs/relativePath" }
39
- },
40
- "additionalProperties": false
41
- },
42
- "outputs": {
43
- "type": "object",
44
- "required": ["adversarialReview", "finalValidation"],
45
- "properties": {
46
- "adversarialReview": { "$ref": "#/$defs/relativePath" },
47
- "finalValidation": { "$ref": "#/$defs/relativePath" }
48
- },
49
- "additionalProperties": false
50
- },
51
- "handoff": {
52
- "type": "object",
53
- "required": ["deliverables"],
54
- "properties": {
55
- "deliverables": { "allOf": [{ "$ref": "#/$defs/relativePath" }, { "pattern": "^.+/DELIVERABLES\\.md$" }] }
56
- },
57
- "additionalProperties": false
58
- },
59
- "gate": {
60
- "type": "object",
61
- "required": ["status", "requireNoReleaseBlockingQuestions", "requireAdversarialReview", "requireFinalValidation", "readyDeliverableStatuses"],
62
- "properties": {
63
- "status": { "enum": ["pending", "passed", "failed"] },
64
- "requireNoReleaseBlockingQuestions": { "type": "boolean" },
65
- "requireAdversarialReview": { "type": "boolean" },
66
- "requireFinalValidation": { "type": "boolean" },
67
- "readyDeliverableStatuses": {
68
- "type": "array",
69
- "minItems": 1,
70
- "items": { "const": "ready" }
71
- }
72
- },
73
- "additionalProperties": false
74
- },
75
- "requiredFiles": {
76
- "type": "array",
77
- "minItems": 1,
78
- "items": {
79
- "type": "object",
80
- "required": ["templatePath", "path", "fullPath"],
81
- "properties": {
82
- "templatePath": { "$ref": "#/$defs/relativePath" },
83
- "path": { "$ref": "#/$defs/relativePath" },
84
- "fullPath": { "$ref": "#/$defs/relativePath" }
85
- },
86
- "additionalProperties": false
87
- }
88
- },
89
- "prompts": {
90
- "type": "array",
91
- "minItems": 1,
92
- "items": { "$ref": "#/$defs/relativePath" }
93
- }
94
- },
95
- "additionalProperties": false,
96
- "$defs": {
97
- "relativePath": {
98
- "type": "string",
99
- "minLength": 1,
100
- "pattern": "^(?![A-Za-z]:)(?![\\\\/])(?!.*(?:^|/)\\.\\.(?:/|$))[^\\\\\r\n]+$"
101
- }
102
- }
103
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://wefter.dev/schemas/product-shaping-run-manifest.schema.json",
4
+ "type": "object",
5
+ "required": ["version", "workflowId", "runId", "releaseId", "generatedAt", "configPath", "profilePath", "contractPath", "processDocPath", "specRoot", "counts", "paths", "outputs", "handoff", "gate", "prompts", "requiredFiles"],
6
+ "properties": {
7
+ "version": { "const": 1 },
8
+ "workflowId": { "const": "product-shaping" },
9
+ "runId": { "type": "string", "minLength": 1 },
10
+ "releaseId": { "type": "string", "minLength": 1 },
11
+ "generatedAt": { "type": "string", "format": "date-time" },
12
+ "configPath": { "$ref": "#/$defs/relativePath" },
13
+ "profilePath": { "$ref": "#/$defs/relativePath" },
14
+ "contractPath": { "$ref": "#/$defs/relativePath" },
15
+ "processDocPath": { "$ref": "#/$defs/relativePath" },
16
+ "specRoot": { "$ref": "#/$defs/relativePath" },
17
+ "counts": {
18
+ "type": "object",
19
+ "required": ["requiredFiles", "variants", "lenses"],
20
+ "properties": {
21
+ "requiredFiles": { "type": "integer", "minimum": 1 },
22
+ "variants": { "type": "integer", "minimum": 1 },
23
+ "lenses": { "type": "integer", "minimum": 1 }
24
+ },
25
+ "additionalProperties": false
26
+ },
27
+ "paths": {
28
+ "type": "object",
29
+ "required": ["runRoot", "prompts", "draft", "review", "validation", "final", "specRoot", "releaseRoot"],
30
+ "properties": {
31
+ "runRoot": { "$ref": "#/$defs/relativePath" },
32
+ "prompts": { "$ref": "#/$defs/relativePath" },
33
+ "draft": { "$ref": "#/$defs/relativePath" },
34
+ "review": { "$ref": "#/$defs/relativePath" },
35
+ "validation": { "$ref": "#/$defs/relativePath" },
36
+ "final": { "$ref": "#/$defs/relativePath" },
37
+ "specRoot": { "$ref": "#/$defs/relativePath" },
38
+ "releaseRoot": { "$ref": "#/$defs/relativePath" }
39
+ },
40
+ "additionalProperties": false
41
+ },
42
+ "outputs": {
43
+ "type": "object",
44
+ "required": ["adversarialReview", "finalValidation"],
45
+ "properties": {
46
+ "adversarialReview": { "$ref": "#/$defs/relativePath" },
47
+ "finalValidation": { "$ref": "#/$defs/relativePath" }
48
+ },
49
+ "additionalProperties": false
50
+ },
51
+ "handoff": {
52
+ "type": "object",
53
+ "required": ["deliverables"],
54
+ "properties": {
55
+ "deliverables": { "allOf": [{ "$ref": "#/$defs/relativePath" }, { "pattern": "^.+/DELIVERABLES\\.md$" }] }
56
+ },
57
+ "additionalProperties": false
58
+ },
59
+ "gate": {
60
+ "type": "object",
61
+ "required": ["status", "requireNoReleaseBlockingQuestions", "requireAdversarialReview", "requireFinalValidation", "readyDeliverableStatuses"],
62
+ "properties": {
63
+ "status": { "enum": ["pending", "passed", "failed"] },
64
+ "requireNoReleaseBlockingQuestions": { "type": "boolean" },
65
+ "requireAdversarialReview": { "type": "boolean" },
66
+ "requireFinalValidation": { "type": "boolean" },
67
+ "readyDeliverableStatuses": {
68
+ "type": "array",
69
+ "minItems": 1,
70
+ "items": { "const": "ready" }
71
+ }
72
+ },
73
+ "additionalProperties": false
74
+ },
75
+ "requiredFiles": {
76
+ "type": "array",
77
+ "minItems": 1,
78
+ "items": {
79
+ "type": "object",
80
+ "required": ["templatePath", "path", "fullPath"],
81
+ "properties": {
82
+ "templatePath": { "$ref": "#/$defs/relativePath" },
83
+ "path": { "$ref": "#/$defs/relativePath" },
84
+ "fullPath": { "$ref": "#/$defs/relativePath" }
85
+ },
86
+ "additionalProperties": false
87
+ }
88
+ },
89
+ "prompts": {
90
+ "type": "array",
91
+ "minItems": 1,
92
+ "items": { "$ref": "#/$defs/relativePath" }
93
+ }
94
+ },
95
+ "additionalProperties": false,
96
+ "$defs": {
97
+ "relativePath": {
98
+ "type": "string",
99
+ "minLength": 1,
100
+ "pattern": "^(?![A-Za-z]:)(?![\\\\/])(?!.*(?:^|/)\\.\\.(?:/|$))[^\\\\\r\n]+$"
101
+ }
102
+ }
103
+ }
@@ -1,14 +1,14 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://wefter.dev/schemas/run-manifest.schema.json",
4
- "type": "object",
5
- "required": ["version", "runId", "generatedAt", "paths"],
6
- "properties": {
7
- "version": { "const": 1 },
8
- "workflowId": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
9
- "runId": { "type": "string", "minLength": 1 },
10
- "generatedAt": { "type": "string", "format": "date-time" },
11
- "paths": { "type": "object" }
12
- },
13
- "additionalProperties": true
14
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://wefter.dev/schemas/run-manifest.schema.json",
4
+ "type": "object",
5
+ "required": ["version", "runId", "generatedAt", "paths"],
6
+ "properties": {
7
+ "version": { "const": 1 },
8
+ "workflowId": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
9
+ "runId": { "type": "string", "minLength": 1 },
10
+ "generatedAt": { "type": "string", "format": "date-time" },
11
+ "paths": { "type": "object" }
12
+ },
13
+ "additionalProperties": true
14
+ }
@@ -1,62 +1,62 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://wefter.dev/schemas/wefter.config.schema.json",
4
- "type": "object",
5
- "required": ["version", "workflowRoot", "profilePath", "artifactRoot", "templateRoot", "processDocPath", "runnerCommand", "workflows"],
6
- "properties": {
7
- "$schema": { "type": "string" },
8
- "version": { "const": 1 },
9
- "workflowRoot": { "$ref": "#/$defs/relativePath" },
10
- "profilePath": { "$ref": "#/$defs/relativePath" },
11
- "artifactRoot": { "$ref": "#/$defs/relativePath" },
12
- "templateRoot": { "$ref": "#/$defs/relativePath" },
13
- "processDocPath": { "$ref": "#/$defs/relativePath" },
14
- "runnerCommand": { "type": "string", "minLength": 1 },
15
- "workflows": {
16
- "type": "object",
17
- "properties": {
18
- "product-shaping": {
19
- "allOf": [
20
- { "$ref": "#/$defs/workflowSettings" },
21
- {
22
- "type": "object",
23
- "required": ["status", "enabled", "specRoot", "runRoot", "configPath", "profilePath"],
24
- "properties": {
25
- "status": { "enum": ["available", "planned"] },
26
- "enabled": { "type": "boolean", "default": true },
27
- "specRoot": { "$ref": "#/$defs/relativePath", "default": ".wefter/specs" },
28
- "runRoot": { "$ref": "#/$defs/relativePath", "default": ".wefter/runs/product-shaping" },
29
- "configPath": { "$ref": "#/$defs/relativePath", "default": ".wefter/workflows/product-shaping/config.json" },
30
- "profilePath": { "$ref": "#/$defs/relativePath", "default": ".wefter/workflows/product-shaping/profile.json" }
31
- }
32
- }
33
- ]
34
- }
35
- },
36
- "additionalProperties": {
37
- "$ref": "#/$defs/workflowSettings"
38
- }
39
- }
40
- },
41
- "additionalProperties": false,
42
- "$defs": {
43
- "workflowSettings": {
44
- "type": "object",
45
- "required": ["status", "enabled"],
46
- "properties": {
47
- "status": { "enum": ["available", "planned"] },
48
- "enabled": { "type": "boolean" },
49
- "profilePath": { "$ref": "#/$defs/relativePath" },
50
- "configPath": { "$ref": "#/$defs/relativePath" },
51
- "specRoot": { "$ref": "#/$defs/relativePath" },
52
- "runRoot": { "$ref": "#/$defs/relativePath" }
53
- },
54
- "additionalProperties": false
55
- },
56
- "relativePath": {
57
- "type": "string",
58
- "minLength": 1,
59
- "pattern": "^(?![A-Za-z]:)(?![\\\\/])(?!.*(?:^|/)\\.\\.(?:/|$))[^\\\\\r\n]+$"
60
- }
61
- }
62
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://wefter.dev/schemas/wefter.config.schema.json",
4
+ "type": "object",
5
+ "required": ["version", "workflowRoot", "profilePath", "artifactRoot", "templateRoot", "processDocPath", "runnerCommand", "workflows"],
6
+ "properties": {
7
+ "$schema": { "type": "string" },
8
+ "version": { "const": 1 },
9
+ "workflowRoot": { "$ref": "#/$defs/relativePath" },
10
+ "profilePath": { "$ref": "#/$defs/relativePath" },
11
+ "artifactRoot": { "$ref": "#/$defs/relativePath" },
12
+ "templateRoot": { "$ref": "#/$defs/relativePath" },
13
+ "processDocPath": { "$ref": "#/$defs/relativePath" },
14
+ "runnerCommand": { "type": "string", "minLength": 1 },
15
+ "workflows": {
16
+ "type": "object",
17
+ "properties": {
18
+ "product-shaping": {
19
+ "allOf": [
20
+ { "$ref": "#/$defs/workflowSettings" },
21
+ {
22
+ "type": "object",
23
+ "required": ["status", "enabled", "specRoot", "runRoot", "configPath", "profilePath"],
24
+ "properties": {
25
+ "status": { "enum": ["available", "planned"] },
26
+ "enabled": { "type": "boolean", "default": true },
27
+ "specRoot": { "$ref": "#/$defs/relativePath", "default": ".wefter/specs" },
28
+ "runRoot": { "$ref": "#/$defs/relativePath", "default": ".wefter/runs/product-shaping" },
29
+ "configPath": { "$ref": "#/$defs/relativePath", "default": ".wefter/workflows/product-shaping/config.json" },
30
+ "profilePath": { "$ref": "#/$defs/relativePath", "default": ".wefter/workflows/product-shaping/profile.json" }
31
+ }
32
+ }
33
+ ]
34
+ }
35
+ },
36
+ "additionalProperties": {
37
+ "$ref": "#/$defs/workflowSettings"
38
+ }
39
+ }
40
+ },
41
+ "additionalProperties": false,
42
+ "$defs": {
43
+ "workflowSettings": {
44
+ "type": "object",
45
+ "required": ["status", "enabled"],
46
+ "properties": {
47
+ "status": { "enum": ["available", "planned"] },
48
+ "enabled": { "type": "boolean" },
49
+ "profilePath": { "$ref": "#/$defs/relativePath" },
50
+ "configPath": { "$ref": "#/$defs/relativePath" },
51
+ "specRoot": { "$ref": "#/$defs/relativePath" },
52
+ "runRoot": { "$ref": "#/$defs/relativePath" }
53
+ },
54
+ "additionalProperties": false
55
+ },
56
+ "relativePath": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "pattern": "^(?![A-Za-z]:)(?![\\\\/])(?!.*(?:^|/)\\.\\.(?:/|$))[^\\\\\r\n]+$"
60
+ }
61
+ }
62
+ }
@@ -1,44 +1,51 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://wefter.dev/schemas/work-unit-config.schema.json",
4
- "type": "object",
5
- "required": ["version", "workflowName", "releaseId", "workUnitsDocument", "sourceDocs", "runArtifactsRoot", "versionedArtifacts", "defaultWorkUnitId", "defaultPlanAuditPassesPerLens", "gatePolicy"],
6
- "properties": {
7
- "version": { "const": 1 },
8
- "workflowName": { "const": "work-unit-implementation" },
9
- "releaseId": { "type": "string", "minLength": 1 },
10
- "workUnitsDocument": { "type": "string", "minLength": 1 },
11
- "sourceDocs": {
12
- "type": "object",
13
- "required": ["include", "exclude"],
14
- "properties": {
15
- "include": { "type": "array", "items": { "type": "string", "minLength": 1 } },
16
- "exclude": { "type": "array", "items": { "type": "string", "minLength": 1 } }
17
- },
18
- "additionalProperties": false
19
- },
20
- "runArtifactsRoot": { "type": "string", "minLength": 1 },
21
- "versionedArtifacts": {
22
- "type": "object",
23
- "required": ["executionRoot", "decisionLogRoot"],
24
- "properties": {
25
- "executionRoot": { "type": "string", "minLength": 1 },
26
- "decisionLogRoot": { "type": "string", "minLength": 1 }
27
- },
28
- "additionalProperties": false
29
- },
30
- "defaultWorkUnitId": { "type": "string", "minLength": 1 },
31
- "defaultPlanAuditPassesPerLens": { "type": "integer", "minimum": 1 },
32
- "gatePolicy": {
33
- "type": "object",
34
- "required": ["mode", "structuralWorkUnits", "alwaysPauseOn"],
35
- "properties": {
36
- "mode": { "type": "string", "minLength": 1 },
37
- "structuralWorkUnits": { "type": "array", "items": { "type": "string", "minLength": 1 } },
38
- "alwaysPauseOn": { "type": "array", "items": { "type": "string", "minLength": 1 } }
39
- },
40
- "additionalProperties": false
41
- }
42
- },
43
- "additionalProperties": false
44
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://wefter.dev/schemas/work-unit-config.schema.json",
4
+ "type": "object",
5
+ "required": ["version", "workflowName", "releaseId", "workUnitsDocument", "sourceDocs", "runArtifactsRoot", "versionedArtifacts", "defaultWorkUnitId", "defaultPlanAuditPassesPerLens", "gatePolicy"],
6
+ "properties": {
7
+ "version": { "const": 1 },
8
+ "workflowName": { "const": "work-unit-implementation" },
9
+ "releaseId": { "type": "string", "minLength": 1 },
10
+ "workUnitsDocument": { "$ref": "#/$defs/relativePath" },
11
+ "sourceDocs": {
12
+ "type": "object",
13
+ "required": ["include", "exclude"],
14
+ "properties": {
15
+ "include": { "type": "array", "items": { "type": "string", "minLength": 1 } },
16
+ "exclude": { "type": "array", "items": { "type": "string", "minLength": 1 } }
17
+ },
18
+ "additionalProperties": false
19
+ },
20
+ "runArtifactsRoot": { "$ref": "#/$defs/relativePath" },
21
+ "versionedArtifacts": {
22
+ "type": "object",
23
+ "required": ["executionRoot", "decisionLogRoot"],
24
+ "properties": {
25
+ "executionRoot": { "$ref": "#/$defs/relativePath" },
26
+ "decisionLogRoot": { "$ref": "#/$defs/relativePath" }
27
+ },
28
+ "additionalProperties": false
29
+ },
30
+ "defaultWorkUnitId": { "type": "string", "minLength": 1 },
31
+ "defaultPlanAuditPassesPerLens": { "type": "integer", "minimum": 1 },
32
+ "gatePolicy": {
33
+ "type": "object",
34
+ "required": ["mode", "structuralWorkUnits", "alwaysPauseOn"],
35
+ "properties": {
36
+ "mode": { "type": "string", "minLength": 1 },
37
+ "structuralWorkUnits": { "type": "array", "items": { "type": "string", "minLength": 1 } },
38
+ "alwaysPauseOn": { "type": "array", "items": { "type": "string", "minLength": 1 } }
39
+ },
40
+ "additionalProperties": false
41
+ }
42
+ },
43
+ "additionalProperties": false,
44
+ "$defs": {
45
+ "relativePath": {
46
+ "type": "string",
47
+ "minLength": 1,
48
+ "pattern": "^(?![A-Za-z]:)(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$))[^\r\n]+$"
49
+ }
50
+ }
51
+ }
@@ -1,38 +1,38 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://wefter.dev/schemas/work-unit-profile.schema.json",
4
- "type": "object",
5
- "required": ["version", "variants", "lenses"],
6
- "properties": {
7
- "version": { "const": 1 },
8
- "variants": {
9
- "type": "array",
10
- "minItems": 1,
11
- "items": {
12
- "type": "object",
13
- "required": ["id", "title", "instruction"],
14
- "properties": {
15
- "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
16
- "title": { "type": "string", "minLength": 1 },
17
- "instruction": { "type": "string", "minLength": 1 }
18
- },
19
- "additionalProperties": false
20
- }
21
- },
22
- "lenses": {
23
- "type": "array",
24
- "minItems": 1,
25
- "items": {
26
- "type": "object",
27
- "required": ["id", "title", "focus"],
28
- "properties": {
29
- "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
30
- "title": { "type": "string", "minLength": 1 },
31
- "focus": { "type": "string", "minLength": 1 }
32
- },
33
- "additionalProperties": false
34
- }
35
- }
36
- },
37
- "additionalProperties": false
38
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://wefter.dev/schemas/work-unit-profile.schema.json",
4
+ "type": "object",
5
+ "required": ["version", "variants", "lenses"],
6
+ "properties": {
7
+ "version": { "const": 1 },
8
+ "variants": {
9
+ "type": "array",
10
+ "minItems": 1,
11
+ "items": {
12
+ "type": "object",
13
+ "required": ["id", "title", "instruction"],
14
+ "properties": {
15
+ "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
16
+ "title": { "type": "string", "minLength": 1 },
17
+ "instruction": { "type": "string", "minLength": 1 }
18
+ },
19
+ "additionalProperties": false
20
+ }
21
+ },
22
+ "lenses": {
23
+ "type": "array",
24
+ "minItems": 1,
25
+ "items": {
26
+ "type": "object",
27
+ "required": ["id", "title", "focus"],
28
+ "properties": {
29
+ "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
30
+ "title": { "type": "string", "minLength": 1 },
31
+ "focus": { "type": "string", "minLength": 1 }
32
+ },
33
+ "additionalProperties": false
34
+ }
35
+ }
36
+ },
37
+ "additionalProperties": false
38
+ }
@@ -1,13 +1,13 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://wefter.dev/schemas/work-unit-review-result.schema.json",
4
- "type": "object",
5
- "required": ["taskId", "result", "reviewIteration", "blockingFindings"],
6
- "properties": {
7
- "taskId": { "type": "string", "minLength": 1 },
8
- "result": { "enum": ["Pass", "Needs Fix", "Blocked"] },
9
- "reviewIteration": { "type": "integer", "minimum": 1 },
10
- "blockingFindings": { "type": "array", "items": { "type": "string" } }
11
- },
12
- "additionalProperties": false
13
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://wefter.dev/schemas/work-unit-review-result.schema.json",
4
+ "type": "object",
5
+ "required": ["taskId", "result", "reviewIteration", "blockingFindings"],
6
+ "properties": {
7
+ "taskId": { "type": "string", "minLength": 1 },
8
+ "result": { "enum": ["Pass", "Needs Fix", "Blocked"] },
9
+ "reviewIteration": { "type": "integer", "minimum": 1 },
10
+ "blockingFindings": { "type": "array", "items": { "type": "string" } }
11
+ },
12
+ "additionalProperties": false
13
+ }
@@ -1,21 +1,31 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://wefter.dev/schemas/workflow-manifest.schema.json",
4
- "type": "object",
5
- "required": ["id", "status", "title", "summary", "commands"],
6
- "properties": {
7
- "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
8
- "status": { "enum": ["available", "planned"] },
9
- "title": { "type": "string", "minLength": 1 },
10
- "summary": { "type": "string", "minLength": 1 },
11
- "commands": {
12
- "type": "object",
13
- "properties": {
14
- "cli": { "type": "array", "items": { "type": "string", "minLength": 1 } },
15
- "opencode": { "type": "array", "items": { "type": "string", "minLength": 1 } }
16
- },
17
- "additionalProperties": false
18
- }
19
- },
20
- "additionalProperties": true
21
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://wefter.dev/schemas/workflow-manifest.schema.json",
4
+ "type": "object",
5
+ "required": ["id", "status", "title", "summary", "commands"],
6
+ "properties": {
7
+ "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
8
+ "status": { "enum": ["available", "planned"] },
9
+ "title": { "type": "string", "minLength": 1 },
10
+ "summary": { "type": "string", "minLength": 1 },
11
+ "commands": {
12
+ "type": "object",
13
+ "required": ["cli", "opencode"],
14
+ "properties": {
15
+ "cli": { "type": "array", "items": { "type": "string", "minLength": 1 } },
16
+ "opencode": { "type": "array", "items": { "type": "string", "minLength": 1 } }
17
+ },
18
+ "additionalProperties": false
19
+ },
20
+ "plannedCommands": {
21
+ "type": "object",
22
+ "required": ["cli", "opencode"],
23
+ "properties": {
24
+ "cli": { "type": "array", "items": { "type": "string", "minLength": 1 } },
25
+ "opencode": { "type": "array", "items": { "type": "string", "minLength": 1 } }
26
+ },
27
+ "additionalProperties": false
28
+ }
29
+ },
30
+ "additionalProperties": true
31
+ }