@agilno-tech/rivet 0.1.0-alpha.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 +202 -0
- package/NOTICE +6 -0
- package/README.md +59 -0
- package/bin/cli.js +42 -0
- package/dist/agents/backend-django-agent/SKILL.md +35 -0
- package/dist/agents/backend-nestjs-agent/SKILL.md +36 -0
- package/dist/agents/boss-agent/SKILL.md +28 -0
- package/dist/agents/bounded-worker/SKILL.md +28 -0
- package/dist/agents/data-performance-agent/SKILL.md +32 -0
- package/dist/agents/delivery-ticketing-agent/SKILL.md +36 -0
- package/dist/agents/devops-agent/SKILL.md +34 -0
- package/dist/agents/engineering-manager/SKILL.md +28 -0
- package/dist/agents/frontend-nextjs-agent/SKILL.md +34 -0
- package/dist/agents/frontend-web-agent/SKILL.md +31 -0
- package/dist/agents/incident-response-agent/SKILL.md +42 -0
- package/dist/agents/jest-agent/SKILL.md +77 -0
- package/dist/agents/mobile-agent/SKILL.md +32 -0
- package/dist/agents/playwright-agent/SKILL.md +54 -0
- package/dist/agents/product-design-manager/SKILL.md +27 -0
- package/dist/agents/qa-agent/SKILL.md +29 -0
- package/dist/agents/quality-manager/SKILL.md +28 -0
- package/dist/agents/vitest-agent/SKILL.md +77 -0
- package/dist/governance/pre-push-rules.md +75 -0
- package/dist/governance/prompt-hygiene.md +22 -0
- package/dist/governance/review-checklist.md +24 -0
- package/dist/governance/safety-and-data.md +27 -0
- package/dist/governance/usage-rules.md +21 -0
- package/dist/mandatory/address-pr-feedback/SKILL.md +196 -0
- package/dist/mandatory/agentic-goal/SKILL.md +42 -0
- package/dist/mandatory/agentic-status/SKILL.md +74 -0
- package/dist/mandatory/apply-design/SKILL.md +228 -0
- package/dist/mandatory/check-ac/SKILL.md +124 -0
- package/dist/mandatory/create-pr-and-commit/SKILL.md +304 -0
- package/dist/mandatory/design/SKILL.md +312 -0
- package/dist/mandatory/feature-workflow/SKILL.md +87 -0
- package/dist/mandatory/hotfix/SKILL.md +195 -0
- package/dist/mandatory/pre-push/SKILL.md +272 -0
- package/dist/mandatory/project-context/SKILL.md +180 -0
- package/dist/mandatory/release-docs/SKILL.md +191 -0
- package/dist/mandatory/review-pr/SKILL.md +323 -0
- package/dist/mandatory/security-review/SKILL.md +157 -0
- package/dist/skills/api-contract/SKILL.md +77 -0
- package/dist/skills/backend-django/SKILL.md +27 -0
- package/dist/skills/backend-nestjs/SKILL.md +65 -0
- package/dist/skills/bug-ticket-creation/SKILL.md +43 -0
- package/dist/skills/cloudwatch-troubleshooting/SKILL.md +73 -0
- package/dist/skills/database-migration/SKILL.md +97 -0
- package/dist/skills/debugging/SKILL.md +32 -0
- package/dist/skills/devops-infra/SKILL.md +26 -0
- package/dist/skills/documentation/SKILL.md +24 -0
- package/dist/skills/frontend-nextjs/SKILL.md +27 -0
- package/dist/skills/incident-postmortem/SKILL.md +38 -0
- package/dist/skills/kubernetes-troubleshooting/SKILL.md +71 -0
- package/dist/skills/mobile-react-native/SKILL.md +37 -0
- package/dist/skills/postgres-analytics/SKILL.md +29 -0
- package/dist/skills/product-jira-ticketing/SKILL.md +28 -0
- package/dist/skills/qa-bug-analysis/SKILL.md +27 -0
- package/dist/skills/refactoring/SKILL.md +32 -0
- package/dist/skills/sprint-planning/SKILL.md +32 -0
- package/dist/skills/testing-quality/SKILL.md +62 -0
- package/dist/v2/protocols/agent-orchestration.md +49 -0
- package/dist/v2/protocols/delivery.md +45 -0
- package/dist/v2/protocols/design-authority.md +29 -0
- package/dist/v2/protocols/goal-graph.md +44 -0
- package/dist/v2/protocols/pattern-first-development.md +29 -0
- package/dist/v2/protocols/qa-evidence.md +29 -0
- package/dist/v2/protocols/security.md +29 -0
- package/dist/v2/schemas/event.schema.json +86 -0
- package/dist/v2/schemas/evidence.schema.json +94 -0
- package/dist/v2/schemas/feature-decomposition.schema.json +48 -0
- package/dist/v2/schemas/feature-plan.schema.json +95 -0
- package/dist/v2/schemas/goal-graph.schema.json +61 -0
- package/dist/v2/schemas/integration.schema.json +119 -0
- package/dist/v2/schemas/orchestration.schema.json +69 -0
- package/dist/v2/schemas/project.schema.json +209 -0
- package/dist/v2/schemas/providers.schema.json +142 -0
- package/dist/v2/schemas/quality.schema.json +50 -0
- package/dist/v2/schemas/work-action.schema.json +44 -0
- package/dist/v2/schemas/work-request.schema.json +253 -0
- package/dist/v2/templates/evidence/qa-bundle.json +194 -0
- package/dist/v2/templates/github-actions/rivet-deploy.yml +98 -0
- package/dist/v2/templates/harness/SKILL.md +90 -0
- package/dist/v2/templates/project/.rivet/orchestration.yaml +42 -0
- package/dist/v2/templates/project/.rivet/project.yaml +14 -0
- package/dist/v2/templates/project/.rivet/providers.yaml +8 -0
- package/dist/v2/templates/project/.rivet/quality.yaml +16 -0
- package/package.json +58 -0
- package/protocols/agent-orchestration.md +49 -0
- package/protocols/delivery.md +45 -0
- package/protocols/design-authority.md +29 -0
- package/protocols/goal-graph.md +44 -0
- package/protocols/pattern-first-development.md +29 -0
- package/protocols/qa-evidence.md +29 -0
- package/protocols/security.md +29 -0
- package/schemas/event.schema.json +86 -0
- package/schemas/evidence.schema.json +94 -0
- package/schemas/feature-decomposition.schema.json +48 -0
- package/schemas/feature-plan.schema.json +95 -0
- package/schemas/goal-graph.schema.json +61 -0
- package/schemas/integration.schema.json +119 -0
- package/schemas/orchestration.schema.json +69 -0
- package/schemas/project.schema.json +209 -0
- package/schemas/providers.schema.json +142 -0
- package/schemas/quality.schema.json +50 -0
- package/schemas/work-action.schema.json +44 -0
- package/schemas/work-request.schema.json +253 -0
- package/src/adapters/confluence.js +138 -0
- package/src/adapters/contract.js +657 -0
- package/src/adapters/factory.js +122 -0
- package/src/adapters/figma.js +178 -0
- package/src/adapters/fixtures.js +183 -0
- package/src/adapters/github.js +314 -0
- package/src/adapters/http.js +704 -0
- package/src/adapters/jira.js +195 -0
- package/src/adapters/linear.js +171 -0
- package/src/adapters/node-transport.js +59 -0
- package/src/cli/integration-setup-prompt.js +32 -0
- package/src/cli/interrupt.js +25 -0
- package/src/cli/main.js +596 -0
- package/src/cli/output.js +174 -0
- package/src/cli/parse-args.js +246 -0
- package/src/cli/project-discovery.js +70 -0
- package/src/cli/task-confirmation.js +38 -0
- package/src/cli/task-presentation.js +22 -0
- package/src/clients/claude.js +214 -0
- package/src/clients/codex.js +180 -0
- package/src/clients/compatibility.js +23 -0
- package/src/clients/contract.js +224 -0
- package/src/clients/fake.js +170 -0
- package/src/clients/process-runner.js +657 -0
- package/src/clients/result-contract.js +78 -0
- package/src/commands/delivery-publish.js +80 -0
- package/src/commands/delivery-remote.js +230 -0
- package/src/commands/delivery-review-update.js +39 -0
- package/src/commands/delivery-tracker.js +94 -0
- package/src/commands/delivery-transition.js +79 -0
- package/src/commands/delivery.js +223 -0
- package/src/commands/dependency-approval.js +21 -0
- package/src/commands/doctor.js +191 -0
- package/src/commands/evidence.js +44 -0
- package/src/commands/feature.js +212 -0
- package/src/commands/goals.js +231 -0
- package/src/commands/human-run.js +208 -0
- package/src/commands/human-task.js +278 -0
- package/src/commands/init.js +848 -0
- package/src/commands/install.js +814 -0
- package/src/commands/integration-setup.js +65 -0
- package/src/commands/integrations.js +54 -0
- package/src/commands/models.js +158 -0
- package/src/commands/orchestrate.js +61 -0
- package/src/commands/preflight.js +125 -0
- package/src/commands/protocols.js +228 -0
- package/src/commands/repositories.js +77 -0
- package/src/commands/setup-remote.js +41 -0
- package/src/commands/setup.js +214 -0
- package/src/commands/status.js +224 -0
- package/src/commands/support.js +44 -0
- package/src/commands/task-completion.js +104 -0
- package/src/commands/uninstall.js +234 -0
- package/src/commands/verify.js +171 -0
- package/src/commands/work.js +220 -0
- package/src/commands/worktrees.js +52 -0
- package/src/config/command-readiness.js +218 -0
- package/src/config/commands.js +206 -0
- package/src/config/defaults.js +55 -0
- package/src/config/load.js +230 -0
- package/src/config/validate.js +560 -0
- package/src/delivery/bitbucket-review.js +123 -0
- package/src/delivery/branch-publication.js +23 -0
- package/src/delivery/contract.js +379 -0
- package/src/delivery/github-deployment.js +132 -0
- package/src/delivery/github-review.js +5 -0
- package/src/delivery/github.js +382 -0
- package/src/delivery/gitlab-review.js +5 -0
- package/src/delivery/gitlab.js +395 -0
- package/src/delivery/prepare.js +90 -0
- package/src/delivery/publication-process.js +33 -0
- package/src/delivery/publication-transport.js +112 -0
- package/src/delivery/review-request.js +184 -0
- package/src/delivery/review-update.js +74 -0
- package/src/delivery/service.js +400 -0
- package/src/delivery/store.js +76 -0
- package/src/delivery/tracker-target.js +51 -0
- package/src/delivery/tracker-transition.js +158 -0
- package/src/delivery/tracker.js +164 -0
- package/src/discovery/git.js +85 -0
- package/src/discovery/portable.js +108 -0
- package/src/discovery/project.js +345 -0
- package/src/discovery/tools.js +145 -0
- package/src/evaluations/approval.js +20 -0
- package/src/evaluations/cost-policy.js +20 -0
- package/src/evaluations/harness-attempt.js +113 -0
- package/src/evaluations/live-runner.js +55 -0
- package/src/evaluations/profile.js +28 -0
- package/src/evaluations/report.js +11 -0
- package/src/evaluations/text-attempt.js +18 -0
- package/src/evidence/checksum.js +87 -0
- package/src/evidence/collect.js +727 -0
- package/src/evidence/validate.js +354 -0
- package/src/feature/accepted-integration.js +46 -0
- package/src/feature/actions.js +37 -0
- package/src/feature/client-profile.js +56 -0
- package/src/feature/decomposition-contract.js +58 -0
- package/src/feature/host-execution.js +633 -0
- package/src/feature/host-lock-recovery.js +96 -0
- package/src/feature/host-run-lock.js +32 -0
- package/src/feature/local-approval.js +183 -0
- package/src/feature/plan-contract.js +215 -0
- package/src/feature/planner.js +253 -0
- package/src/feature/run-store.js +241 -0
- package/src/feature/runtime-bridge.js +840 -0
- package/src/feature/verification-report.js +168 -0
- package/src/feature/workflow.js +375 -0
- package/src/git/client.js +509 -0
- package/src/git/integration-worktree.js +153 -0
- package/src/git/reconcile.js +222 -0
- package/src/git/reservations.js +450 -0
- package/src/git/worktrees.js +478 -0
- package/src/graph/completion.js +189 -0
- package/src/graph/fixtures.js +116 -0
- package/src/graph/reducer.js +124 -0
- package/src/graph/scheduler.js +252 -0
- package/src/graph/validate.js +106 -0
- package/src/install/managed.js +579 -0
- package/src/install/project-reference.js +33 -0
- package/src/install/project-runtime.js +142 -0
- package/src/install/runtime-integrity.cjs +141 -0
- package/src/integrations/capabilities.js +69 -0
- package/src/integrations/host-observation.js +26 -0
- package/src/integrations/registry.js +56 -0
- package/src/models/delegate.js +102 -0
- package/src/models/profiles.js +53 -0
- package/src/models/protocols.js +208 -0
- package/src/models/registry.js +83 -0
- package/src/models/transport.js +59 -0
- package/src/policy/approvals.js +251 -0
- package/src/policy/authority.js +282 -0
- package/src/policy/budget.js +149 -0
- package/src/policy/command-bootstrap.js +219 -0
- package/src/policy/commands.js +803 -0
- package/src/prompts/launch-contract.js +43 -0
- package/src/prompts/planning-contract.js +92 -0
- package/src/protocols/presentation.js +53 -0
- package/src/protocols/project.js +289 -0
- package/src/quality/runner.js +497 -0
- package/src/quality/traceability.js +215 -0
- package/src/repositories/identity.js +59 -0
- package/src/repositories/index.js +2 -0
- package/src/repositories/provider.js +210 -0
- package/src/runtime/application.js +353 -0
- package/src/runtime/dependency-directory.js +33 -0
- package/src/runtime/harness-discovery.js +121 -0
- package/src/runtime/heartbeat.js +47 -0
- package/src/runtime/instance-store.js +112 -0
- package/src/runtime/orchestrator.js +1133 -0
- package/src/runtime/portable-dependencies.js +94 -0
- package/src/runtime/recovery.js +190 -0
- package/src/runtime/retry.js +54 -0
- package/src/runtime/supervisor.js +166 -0
- package/src/runtime/worktree-bootstrap.js +169 -0
- package/src/state/event-store.js +333 -0
- package/src/state/lock.js +266 -0
- package/src/state/paths.js +274 -0
- package/src/state/redact.js +106 -0
- package/src/state/snapshot-store.js +310 -0
- package/src/status/public/app.js +96 -0
- package/src/status/public/index.html +37 -0
- package/src/status/public/styles.css +50 -0
- package/src/status/server.js +323 -0
- package/src/status/view-model.js +356 -0
- package/src/support/bundle.js +195 -0
- package/src/support/failure-report.js +96 -0
- package/src/work-request/contract.js +250 -0
- package/src/work-request/host.js +78 -0
- package/src/work-request/local.js +163 -0
- package/src/work-request/tracker.js +105 -0
- package/templates/evidence/qa-bundle.json +194 -0
- package/templates/github-actions/rivet-deploy.yml +98 -0
- package/templates/harness/SKILL.md +90 -0
- package/templates/project/.rivet/orchestration.yaml +42 -0
- package/templates/project/.rivet/project.yaml +14 -0
- package/templates/project/.rivet/providers.yaml +8 -0
- package/templates/project/.rivet/quality.yaml +16 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.rivet.dev/rivet/v2/event.schema.json",
|
|
4
|
+
"title": "Agilno append-only runtime event",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "eventId", "graphId", "sequence", "timestamp", "actor", "type"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "type": "integer", "const": 1 },
|
|
10
|
+
"eventId": { "$ref": "#/$defs/id" },
|
|
11
|
+
"graphId": { "$ref": "#/$defs/id" },
|
|
12
|
+
"nodeId": { "$ref": "#/$defs/id" },
|
|
13
|
+
"sequence": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 },
|
|
14
|
+
"timestamp": { "$ref": "#/$defs/timestamp" },
|
|
15
|
+
"actor": { "$ref": "#/$defs/actor" },
|
|
16
|
+
"type": { "enum": ["graph-created", "state-transition", "retry", "authority-adjusted", "budget-adjusted", "evidence-recorded", "approval-recorded", "heartbeat", "cancelled"] },
|
|
17
|
+
"priorState": { "$ref": "#/$defs/state" },
|
|
18
|
+
"newState": { "$ref": "#/$defs/state" },
|
|
19
|
+
"retryReason": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
20
|
+
"authorityDelta": { "$ref": "#/$defs/authorityDelta" },
|
|
21
|
+
"budgetDelta": { "$ref": "#/$defs/budgetDelta" },
|
|
22
|
+
"evidenceRefs": { "type": "array", "minItems": 1, "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
23
|
+
"instanceId": { "$ref": "#/$defs/id" },
|
|
24
|
+
"leaseId": { "$ref": "#/$defs/id" },
|
|
25
|
+
"heartbeatSequence": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 },
|
|
26
|
+
"heartbeatIntervalMs": { "type": "integer", "minimum": 100, "maximum": 3600000 },
|
|
27
|
+
"approvalReceiptId": { "$ref": "#/$defs/id" }
|
|
28
|
+
},
|
|
29
|
+
"allOf": [
|
|
30
|
+
{ "if": { "properties": { "type": { "const": "state-transition" } } }, "then": { "properties": { "priorState": {}, "newState": {} }, "required": ["priorState", "newState"] } },
|
|
31
|
+
{ "if": { "properties": { "type": { "const": "retry" } } }, "then": { "properties": { "retryReason": {} }, "required": ["retryReason"] } },
|
|
32
|
+
{ "if": { "properties": { "type": { "const": "authority-adjusted" } } }, "then": { "properties": { "authorityDelta": {} }, "required": ["authorityDelta"] } },
|
|
33
|
+
{ "if": { "properties": { "type": { "const": "budget-adjusted" } } }, "then": { "properties": { "budgetDelta": {} }, "required": ["budgetDelta"] } },
|
|
34
|
+
{ "if": { "properties": { "type": { "enum": ["evidence-recorded", "approval-recorded"] } } }, "then": { "properties": { "evidenceRefs": {} }, "required": ["evidenceRefs"] } },
|
|
35
|
+
{ "if": { "properties": { "type": { "const": "heartbeat" } } }, "then": { "properties": { "nodeId": {}, "instanceId": {}, "leaseId": {}, "heartbeatSequence": {}, "heartbeatIntervalMs": {} }, "required": ["nodeId", "instanceId", "leaseId", "heartbeatSequence", "heartbeatIntervalMs"] } },
|
|
36
|
+
{ "if": { "properties": { "type": { "const": "approval-recorded" } } }, "then": { "properties": { "actor": { "type": "object", "properties": { "role": { "const": "human" } } }, "approvalReceiptId": {} }, "required": ["approvalReceiptId"] } },
|
|
37
|
+
{ "if": { "properties": { "type": { "not": { "const": "state-transition" } } } }, "then": { "not": { "properties": { "priorState": {} }, "required": ["priorState"] } } },
|
|
38
|
+
{ "if": { "properties": { "type": { "not": { "const": "state-transition" } } } }, "then": { "not": { "properties": { "newState": {} }, "required": ["newState"] } } },
|
|
39
|
+
{ "if": { "properties": { "type": { "not": { "const": "retry" } } } }, "then": { "not": { "properties": { "retryReason": {} }, "required": ["retryReason"] } } },
|
|
40
|
+
{ "if": { "properties": { "type": { "not": { "const": "authority-adjusted" } } } }, "then": { "not": { "properties": { "authorityDelta": {} }, "required": ["authorityDelta"] } } },
|
|
41
|
+
{ "if": { "properties": { "type": { "not": { "const": "budget-adjusted" } } } }, "then": { "not": { "properties": { "budgetDelta": {} }, "required": ["budgetDelta"] } } },
|
|
42
|
+
{ "if": { "properties": { "type": { "not": { "enum": ["evidence-recorded", "approval-recorded"] } } } }, "then": { "not": { "properties": { "evidenceRefs": {} }, "required": ["evidenceRefs"] } } },
|
|
43
|
+
{ "if": { "properties": { "type": { "not": { "const": "heartbeat" } } } }, "then": { "not": { "anyOf": [
|
|
44
|
+
{ "required": ["instanceId"] },
|
|
45
|
+
{ "required": ["leaseId"] },
|
|
46
|
+
{ "required": ["heartbeatSequence"] },
|
|
47
|
+
{ "required": ["heartbeatIntervalMs"] }
|
|
48
|
+
] } } },
|
|
49
|
+
{ "if": { "properties": { "type": { "not": { "const": "approval-recorded" } } } }, "then": { "not": { "properties": { "approvalReceiptId": {} }, "required": ["approvalReceiptId"] } } }
|
|
50
|
+
],
|
|
51
|
+
"$defs": {
|
|
52
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 64, "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
53
|
+
"externalRef": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$" },
|
|
54
|
+
"timestamp": { "type": "string", "minLength": 20, "maxLength": 35, "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,9})?Z$" },
|
|
55
|
+
"state": { "enum": ["proposed", "approved", "ready", "reserved", "running", "verifying", "corrective", "blocked", "failed", "completed", "archived", "cancelled"] },
|
|
56
|
+
"actor": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": false,
|
|
59
|
+
"required": ["role", "id"],
|
|
60
|
+
"properties": {
|
|
61
|
+
"role": { "enum": ["human", "boss", "manager", "worker", "system"] },
|
|
62
|
+
"id": { "$ref": "#/$defs/externalRef" }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"authorityDelta": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": ["added", "removed"],
|
|
69
|
+
"properties": {
|
|
70
|
+
"added": { "type": "array", "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
71
|
+
"removed": { "type": "array", "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } }
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"budgetDelta": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"minProperties": 1,
|
|
78
|
+
"properties": {
|
|
79
|
+
"timeMinutes": { "type": "integer", "minimum": -10080, "maximum": 10080 },
|
|
80
|
+
"tokenLimit": { "type": "integer", "minimum": -10000000, "maximum": 10000000 },
|
|
81
|
+
"costUsd": { "type": "number", "minimum": -10000, "maximum": 10000 },
|
|
82
|
+
"taskLimit": { "type": "integer", "minimum": -1000, "maximum": 1000 }
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.rivet.dev/rivet/v2/evidence.schema.json",
|
|
4
|
+
"title": "Agilno evidence bundle",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "id", "graphId", "approvalState", "publicationState", "items"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "type": "integer", "const": 1 },
|
|
10
|
+
"id": { "$ref": "#/$defs/id" },
|
|
11
|
+
"graphId": { "$ref": "#/$defs/id" },
|
|
12
|
+
"approvalState": { "$ref": "#/$defs/approvalState" },
|
|
13
|
+
"publicationState": { "enum": ["draft", "approved", "rejected"] },
|
|
14
|
+
"items": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "$ref": "#/$defs/item" } }
|
|
15
|
+
},
|
|
16
|
+
"allOf": [
|
|
17
|
+
{ "if": { "properties": { "publicationState": { "const": "approved" } } }, "then": { "properties": { "approvalState": { "const": "approved" } } } },
|
|
18
|
+
{ "if": { "properties": { "publicationState": { "const": "rejected" } } }, "then": { "properties": { "approvalState": { "const": "rejected" } } } }
|
|
19
|
+
],
|
|
20
|
+
"$defs": {
|
|
21
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 64, "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
22
|
+
"externalRef": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$" },
|
|
23
|
+
"timestamp": { "type": "string", "minLength": 20, "maxLength": 35, "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,9})?Z$" },
|
|
24
|
+
"approvalState": { "enum": ["pending", "approved", "rejected"] },
|
|
25
|
+
"producer": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["role", "id"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"role": { "enum": ["human", "boss", "manager", "worker", "system"] },
|
|
31
|
+
"id": { "$ref": "#/$defs/externalRef" }
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"source": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"minProperties": 1,
|
|
38
|
+
"properties": {
|
|
39
|
+
"commit": { "type": "string", "pattern": "^[0-9a-f]{7,64}$" },
|
|
40
|
+
"providerRef": { "$ref": "#/$defs/id" },
|
|
41
|
+
"resourceId": { "type": "string", "minLength": 1, "maxLength": 300, "pattern": "^[^\\u0000\\r\\n]+$" }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"details": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"required": ["command", "status"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"command": { "enum": ["build", "test", "lint", "typecheck", "dev"] },
|
|
50
|
+
"status": { "enum": ["passed", "failed", "blocked"] }
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"approval": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"required": ["actorId", "decision"],
|
|
57
|
+
"properties": {
|
|
58
|
+
"actorId": { "$ref": "#/$defs/externalRef" },
|
|
59
|
+
"decision": { "enum": ["approved", "rejected"] },
|
|
60
|
+
"note": { "type": "string", "minLength": 1, "maxLength": 1000 }
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"item": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"required": ["id", "type", "requirementRefs", "source", "producer", "timestamp", "classification", "approvalState"],
|
|
67
|
+
"properties": {
|
|
68
|
+
"id": { "$ref": "#/$defs/id" },
|
|
69
|
+
"type": { "$ref": "#/$defs/evidenceType" },
|
|
70
|
+
"requirementRefs": { "type": "array", "minItems": 1, "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/externalRef" } },
|
|
71
|
+
"source": { "$ref": "#/$defs/source" },
|
|
72
|
+
"producer": { "$ref": "#/$defs/producer" },
|
|
73
|
+
"timestamp": { "$ref": "#/$defs/timestamp" },
|
|
74
|
+
"classification": { "enum": ["public", "internal-redacted", "confidential-redacted"] },
|
|
75
|
+
"approvalState": { "$ref": "#/$defs/approvalState" },
|
|
76
|
+
"checksum": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
77
|
+
"location": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[^\\u0000\\r\\n]+$" },
|
|
78
|
+
"details": { "$ref": "#/$defs/details" },
|
|
79
|
+
"approval": { "$ref": "#/$defs/approval" }
|
|
80
|
+
},
|
|
81
|
+
"allOf": [
|
|
82
|
+
{ "if": { "properties": { "type": { "const": "commit" } } }, "then": { "properties": { "source": { "type": "object", "additionalProperties": false, "properties": { "commit": {}, "providerRef": {}, "resourceId": {} }, "required": ["commit"] } } } },
|
|
83
|
+
{ "if": { "properties": { "type": { "enum": ["test", "journey"] } } }, "then": { "properties": { "details": {} }, "required": ["details"] } },
|
|
84
|
+
{ "if": { "properties": { "type": { "enum": ["screenshot", "report"] } } }, "then": { "properties": { "location": {}, "checksum": {} }, "required": ["location", "checksum"] } },
|
|
85
|
+
{ "if": { "properties": { "type": { "const": "human-approval" } } }, "then": { "properties": { "approval": {} }, "required": ["approval"] } },
|
|
86
|
+
{ "if": { "properties": { "type": { "not": { "enum": ["test", "journey"] } } } }, "then": { "not": { "properties": { "details": {} }, "required": ["details"] } } },
|
|
87
|
+
{ "if": { "properties": { "type": { "not": { "enum": ["screenshot", "report"] } } } }, "then": { "not": { "properties": { "location": {} }, "required": ["location"] } } },
|
|
88
|
+
{ "if": { "properties": { "type": { "not": { "enum": ["screenshot", "report"] } } } }, "then": { "not": { "properties": { "checksum": {} }, "required": ["checksum"] } } },
|
|
89
|
+
{ "if": { "properties": { "type": { "not": { "const": "human-approval" } } } }, "then": { "not": { "properties": { "approval": {} }, "required": ["approval"] } } }
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"evidenceType": { "enum": ["commit", "test", "journey", "screenshot", "report", "review", "human-approval", "external-update"] }
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.rivet.dev/rivet/v2/feature-decomposition.schema.json",
|
|
4
|
+
"title": "Agilno bounded feature decomposition",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "workItems"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "type": "integer", "const": 1 },
|
|
10
|
+
"kind": { "type": "string", "const": "agilno.feature-decomposition" },
|
|
11
|
+
"workItems": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"minItems": 1,
|
|
14
|
+
"maxItems": 16,
|
|
15
|
+
"items": { "$ref": "#/$defs/workItem" }
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"$defs": {
|
|
19
|
+
"relativePath": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1,
|
|
22
|
+
"maxLength": 300,
|
|
23
|
+
"pattern": "^(?![\\/])(?![A-Za-z]:)(?!.*[\\/]{2})(?!.*(?:^|[\\/])\\.\\.(?:[\\/]|$))(?!.*(?:^|[\\/])\\.(?:[\\/]|$))(?!.+[\\/]$)[^\\u0000\\r\\n]+$"
|
|
24
|
+
},
|
|
25
|
+
"workItem": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["objective", "ownedPaths", "acceptanceCriterionIndexes"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"objective": { "type": "string", "minLength": 1, "maxLength": 2000 },
|
|
31
|
+
"ownedPaths": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"minItems": 1,
|
|
34
|
+
"maxItems": 64,
|
|
35
|
+
"uniqueItems": true,
|
|
36
|
+
"items": { "$ref": "#/$defs/relativePath" }
|
|
37
|
+
},
|
|
38
|
+
"acceptanceCriterionIndexes": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"minItems": 1,
|
|
41
|
+
"maxItems": 256,
|
|
42
|
+
"uniqueItems": true,
|
|
43
|
+
"items": { "type": "integer", "minimum": 1, "maximum": 256 }
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.rivet.dev/rivet/v2/feature-plan.schema.json",
|
|
4
|
+
"title": "Agilno governed feature plan",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "id", "baselineCommit", "workRequestDigest", "client", "providerRefs", "nodes"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "type": "integer", "const": 1 },
|
|
10
|
+
"id": { "$ref": "#/$defs/id" },
|
|
11
|
+
"baselineCommit": { "type": "string", "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$" },
|
|
12
|
+
"workRequestDigest": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
13
|
+
"client": { "enum": ["claude", "codex", "host"] },
|
|
14
|
+
"clientProfile": { "$ref": "#/$defs/clientProfile" },
|
|
15
|
+
"providerRefs": { "type": "array", "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
16
|
+
"nodes": { "type": "array", "minItems": 4, "maxItems": 128, "items": { "$ref": "#/$defs/node" } }
|
|
17
|
+
},
|
|
18
|
+
"$defs": {
|
|
19
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 64, "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
20
|
+
"relativePath": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 300,
|
|
24
|
+
"pattern": "^(?![\\/])(?![A-Za-z]:)(?!.*[\\/]{2})(?!.*(?:^|[\\/])\\.\\.(?:[\\/]|$))(?!.*(?:^|[\\/])\\.(?:[\\/]|$))(?!.+[\\/]$)[^\\u0000\\r\\n]+$"
|
|
25
|
+
},
|
|
26
|
+
"budget": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": ["timeMinutes", "tokenLimit", "costUsd", "taskLimit"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"timeMinutes": { "type": "integer", "minimum": 1, "maximum": 10080 },
|
|
32
|
+
"tokenLimit": { "type": "integer", "minimum": 1, "maximum": 10000000 },
|
|
33
|
+
"costUsd": { "type": "number", "exclusiveMinimum": 0, "maximum": 10000 },
|
|
34
|
+
"taskLimit": { "type": "integer", "minimum": 1, "maximum": 1000 }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"clientProfile": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": ["schemaVersion", "id", "provider", "model", "planning", "execution", "fallbackModel"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"schemaVersion": { "type": "integer", "const": 1 },
|
|
43
|
+
"id": { "const": "claude-bounded-sonnet-v1" },
|
|
44
|
+
"provider": { "const": "claude" },
|
|
45
|
+
"model": { "const": "sonnet" },
|
|
46
|
+
"planning": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"required": ["effort", "timeoutMs", "maxCostUsd"],
|
|
50
|
+
"properties": {
|
|
51
|
+
"effort": { "const": "low" },
|
|
52
|
+
"timeoutMs": { "const": 120000 },
|
|
53
|
+
"maxCostUsd": { "const": 1 }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"execution": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": false,
|
|
59
|
+
"required": ["maxCostUsd"],
|
|
60
|
+
"properties": { "maxCostUsd": { "const": 2 } }
|
|
61
|
+
},
|
|
62
|
+
"fallbackModel": { "type": "null" }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"evidenceType": { "enum": ["commit", "test", "journey", "screenshot", "report", "review", "human-approval", "external-update"] },
|
|
66
|
+
"node": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"required": ["id", "role", "roleId", "objective", "dependencies", "ownedPaths", "authorityScopes", "commandIds", "budget", "requiredEvidenceTypes", "acceptanceCriteria", "status"],
|
|
70
|
+
"properties": {
|
|
71
|
+
"id": { "$ref": "#/$defs/id" },
|
|
72
|
+
"parentId": { "$ref": "#/$defs/id" },
|
|
73
|
+
"role": { "enum": ["boss", "manager", "worker"] },
|
|
74
|
+
"roleId": { "$ref": "#/$defs/id" },
|
|
75
|
+
"execution": {
|
|
76
|
+
"type": "object", "additionalProperties": false, "required": ["client"],
|
|
77
|
+
"properties": {
|
|
78
|
+
"client": { "enum": ["claude", "codex"] },
|
|
79
|
+
"clientProfile": { "$ref": "#/$defs/clientProfile" }
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"objective": { "type": "string", "minLength": 1, "maxLength": 2000 },
|
|
83
|
+
"dependencies": { "type": "array", "maxItems": 100, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
84
|
+
"ownedPaths": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/relativePath" } },
|
|
85
|
+
"authorityScopes": { "type": "array", "minItems": 1, "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
86
|
+
"commandIds": { "type": "array", "maxItems": 16, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
87
|
+
"budget": { "$ref": "#/$defs/budget" },
|
|
88
|
+
"requiredEvidenceTypes": { "type": "array", "minItems": 1, "maxItems": 8, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceType" } },
|
|
89
|
+
"acceptanceCriteria": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "type": "string", "minLength": 1, "maxLength": 4096 } },
|
|
90
|
+
"status": { "const": "proposed" },
|
|
91
|
+
"approvalGate": { "enum": ["activation", "scope-change", "external-write", "visual-baseline", "merge", "deploy", "publication", "final-delivery"] }
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.rivet.dev/rivet/v2/goal-graph.schema.json",
|
|
4
|
+
"title": "Agilno runtime goal graph",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "id", "goal", "providerRefs", "maxDelegationDepth", "status", "nodes"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "type": "integer", "const": 1 },
|
|
10
|
+
"id": { "$ref": "#/$defs/id" },
|
|
11
|
+
"goal": { "type": "string", "minLength": 1, "maxLength": 2000 },
|
|
12
|
+
"providerRefs": { "type": "array", "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
13
|
+
"maxDelegationDepth": { "type": "integer", "minimum": 1, "maximum": 8 },
|
|
14
|
+
"status": { "$ref": "#/$defs/status" },
|
|
15
|
+
"nodes": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "$ref": "#/$defs/node" } }
|
|
16
|
+
},
|
|
17
|
+
"$defs": {
|
|
18
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 64, "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
19
|
+
"status": { "enum": ["proposed", "approved", "ready", "reserved", "running", "verifying", "corrective", "blocked", "failed", "completed", "archived", "cancelled"] },
|
|
20
|
+
"budget": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": ["timeMinutes", "tokenLimit", "costUsd", "taskLimit"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"timeMinutes": { "type": "integer", "minimum": 1, "maximum": 10080 },
|
|
26
|
+
"tokenLimit": { "type": "integer", "minimum": 1, "maximum": 10000000 },
|
|
27
|
+
"costUsd": { "type": "number", "exclusiveMinimum": 0, "maximum": 10000 },
|
|
28
|
+
"taskLimit": { "type": "integer", "minimum": 1, "maximum": 1000 }
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"owner": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"required": ["role", "id"],
|
|
35
|
+
"properties": {
|
|
36
|
+
"role": { "enum": ["boss", "manager", "worker"] },
|
|
37
|
+
"id": { "$ref": "#/$defs/id" }
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"node": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"required": ["id", "objective", "owner", "dependencies", "authorityScopes", "budget", "completionProfile", "requiredEvidenceTypes", "evidenceRefs", "status"],
|
|
44
|
+
"properties": {
|
|
45
|
+
"id": { "$ref": "#/$defs/id" },
|
|
46
|
+
"parentId": { "$ref": "#/$defs/id" },
|
|
47
|
+
"objective": { "type": "string", "minLength": 1, "maxLength": 2000 },
|
|
48
|
+
"owner": { "$ref": "#/$defs/owner" },
|
|
49
|
+
"dependencies": { "type": "array", "maxItems": 100, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
50
|
+
"authorityScopes": { "type": "array", "minItems": 1, "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
51
|
+
"budget": { "$ref": "#/$defs/budget" },
|
|
52
|
+
"completionProfile": { "$ref": "#/$defs/id" },
|
|
53
|
+
"requiredEvidenceTypes": { "type": "array", "minItems": 1, "maxItems": 8, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceType" } },
|
|
54
|
+
"evidenceRefs": { "type": "array", "minItems": 1, "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
55
|
+
"status": { "$ref": "#/$defs/status" },
|
|
56
|
+
"approvalGate": { "enum": ["activation", "scope-change", "external-write", "visual-baseline", "merge", "deploy", "publication", "final-delivery"] }
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"evidenceType": { "enum": ["commit", "test", "journey", "screenshot", "report", "review", "human-approval", "external-update"] }
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.rivet.dev/rivet/v2/integration.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"id",
|
|
8
|
+
"kind",
|
|
9
|
+
"mode",
|
|
10
|
+
"capabilities"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"$ref": "#/$defs/id"
|
|
15
|
+
},
|
|
16
|
+
"kind": {
|
|
17
|
+
"enum": [
|
|
18
|
+
"jira",
|
|
19
|
+
"linear",
|
|
20
|
+
"confluence",
|
|
21
|
+
"figma",
|
|
22
|
+
"git-ci",
|
|
23
|
+
"generic"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"mode": {
|
|
27
|
+
"enum": [
|
|
28
|
+
"disabled",
|
|
29
|
+
"read-only",
|
|
30
|
+
"read-write-with-approval"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"capabilities": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"minItems": 1,
|
|
36
|
+
"maxItems": 64,
|
|
37
|
+
"uniqueItems": true,
|
|
38
|
+
"items": {
|
|
39
|
+
"$ref": "#/$defs/id"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"resourceIds": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"maxItems": 64,
|
|
45
|
+
"uniqueItems": true,
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"minLength": 1,
|
|
49
|
+
"maxLength": 200,
|
|
50
|
+
"pattern": "^[^\\u0000\\r\\n]+$"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"endpoint": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 8,
|
|
56
|
+
"maxLength": 2048,
|
|
57
|
+
"pattern": "^https?://"
|
|
58
|
+
},
|
|
59
|
+
"credentials": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"minProperties": 1,
|
|
63
|
+
"properties": {
|
|
64
|
+
"apiTokenEnv": {
|
|
65
|
+
"$ref": "#/$defs/envName"
|
|
66
|
+
},
|
|
67
|
+
"accessTokenEnv": {
|
|
68
|
+
"$ref": "#/$defs/envName"
|
|
69
|
+
},
|
|
70
|
+
"tokenEnv": {
|
|
71
|
+
"$ref": "#/$defs/envName"
|
|
72
|
+
},
|
|
73
|
+
"usernameEnv": {
|
|
74
|
+
"$ref": "#/$defs/envName"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"transport": {
|
|
79
|
+
"enum": [
|
|
80
|
+
"harness-mcp",
|
|
81
|
+
"direct-api",
|
|
82
|
+
"local-cli"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"projectIds": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"maxItems": 64,
|
|
88
|
+
"uniqueItems": true,
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"minLength": 1,
|
|
92
|
+
"maxLength": 200
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"tools": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"maxItems": 64,
|
|
98
|
+
"uniqueItems": true,
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"pattern": "^[A-Za-z0-9_.:-]{1,128}$"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"$defs": {
|
|
106
|
+
"id": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"minLength": 1,
|
|
109
|
+
"maxLength": 64,
|
|
110
|
+
"pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
|
|
111
|
+
},
|
|
112
|
+
"envName": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"minLength": 2,
|
|
115
|
+
"maxLength": 128,
|
|
116
|
+
"pattern": "^[A-Z][A-Z0-9_]*$"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.rivet.dev/rivet/v2/orchestration.schema.json",
|
|
4
|
+
"title": "Agilno tracked orchestration policy",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "maxDelegationDepth", "roles", "approvalGates", "completionProfiles"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "type": "integer", "const": 1 },
|
|
10
|
+
"enabled": { "type": "boolean", "const": false, "default": false },
|
|
11
|
+
"maxDelegationDepth": { "type": "integer", "minimum": 1, "maximum": 8 },
|
|
12
|
+
"roles": { "type": "array", "minItems": 3, "maxItems": 128, "items": { "$ref": "#/$defs/role" } },
|
|
13
|
+
"approvalGates": { "type": "array", "minItems": 3, "maxItems": 16, "uniqueItems": true, "items": { "enum": ["activation", "scope-change", "external-write", "visual-baseline", "merge", "deploy", "publication", "final-delivery"] } },
|
|
14
|
+
"completionProfiles": { "type": "array", "minItems": 1, "maxItems": 32, "items": { "$ref": "#/$defs/completionProfile" } }
|
|
15
|
+
},
|
|
16
|
+
"$defs": {
|
|
17
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 64, "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
18
|
+
"budget": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"required": ["timeMinutes", "tokenLimit", "costUsd", "taskLimit"],
|
|
22
|
+
"properties": {
|
|
23
|
+
"timeMinutes": { "type": "integer", "minimum": 1, "maximum": 10080 },
|
|
24
|
+
"tokenLimit": { "type": "integer", "minimum": 1, "maximum": 10000000 },
|
|
25
|
+
"costUsd": { "type": "number", "exclusiveMinimum": 0, "maximum": 10000 },
|
|
26
|
+
"taskLimit": { "type": "integer", "minimum": 1, "maximum": 1000 }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"permissions": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["externalWrites", "merge", "deploy"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"externalWrites": { "type": "boolean" },
|
|
35
|
+
"merge": { "type": "boolean" },
|
|
36
|
+
"deploy": { "type": "boolean" }
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"role": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": ["id", "kind", "capacity", "canDelegate", "delegatesTo", "providerRefs", "authorityScopes", "permissions", "budget", "completionProfile"],
|
|
43
|
+
"properties": {
|
|
44
|
+
"id": { "$ref": "#/$defs/id" },
|
|
45
|
+
"kind": { "enum": ["boss", "manager", "worker"] },
|
|
46
|
+
"harness": { "enum": ["claude", "codex"] },
|
|
47
|
+
"capacity": { "type": "integer", "minimum": 1, "maximum": 64 },
|
|
48
|
+
"canDelegate": { "type": "boolean" },
|
|
49
|
+
"delegatesTo": { "type": "array", "maxItems": 3, "uniqueItems": true, "items": { "enum": ["boss", "manager", "worker"] } },
|
|
50
|
+
"providerRefs": { "type": "array", "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
51
|
+
"authorityScopes": { "type": "array", "minItems": 1, "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
52
|
+
"permissions": { "$ref": "#/$defs/permissions" },
|
|
53
|
+
"budget": { "$ref": "#/$defs/budget" },
|
|
54
|
+
"completionProfile": { "$ref": "#/$defs/id" }
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"completionProfile": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": ["id", "requiredEvidence", "requiredApprovals"],
|
|
61
|
+
"properties": {
|
|
62
|
+
"id": { "$ref": "#/$defs/id" },
|
|
63
|
+
"requiredEvidence": { "type": "array", "minItems": 1, "maxItems": 8, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceType" } },
|
|
64
|
+
"requiredApprovals": { "type": "array", "minItems": 1, "maxItems": 8, "uniqueItems": true, "items": { "enum": ["manager", "quality", "security", "human"] } }
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"evidenceType": { "enum": ["commit", "test", "journey", "screenshot", "report", "review", "human-approval", "external-update"] }
|
|
68
|
+
}
|
|
69
|
+
}
|