cohorte 3.0.0-dev.8 → 3.0.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/CHANGELOG.md +1532 -0
- package/README.md +316 -62
- package/bin/cli.js +212 -0
- package/bin/report.js +141 -0
- package/core/agents/cohorte-profile-reader.md +50 -0
- package/core/agents/cohorte-release.md +58 -0
- package/core/agents/cohorte-review.md +174 -0
- package/core/agents/implementer.template.md +146 -0
- package/core/commands/cohorte-align-ds.md +33 -0
- package/core/commands/cohorte-audit.md +67 -0
- package/core/commands/cohorte-brainstorm.md +73 -0
- package/core/commands/cohorte-build.md +241 -0
- package/core/commands/cohorte-doctor.md +133 -0
- package/core/commands/cohorte-fix.md +80 -0
- package/core/commands/cohorte-fleet.md +111 -0
- package/core/commands/cohorte-init-pipeline.md +30 -0
- package/core/commands/cohorte-intake.md +92 -0
- package/core/commands/cohorte-patch.md +118 -0
- package/core/commands/cohorte-refactor.md +57 -0
- package/core/commands/cohorte-retro.md +85 -0
- package/core/commands/cohorte-review.md +224 -0
- package/core/commands/cohorte-ship.md +155 -0
- package/core/commands/cohorte-spec.md +105 -0
- package/core/commands/cohorte-update-pipeline.md +115 -0
- package/core/hooks/gate.py +2931 -0
- package/core/templates/agent-handoff.md +34 -0
- package/core/templates/brainstorm-return.md +42 -0
- package/core/templates/decisions.template.md +42 -0
- package/core/templates/design-brief.md +37 -0
- package/core/templates/patch.template.md +86 -0
- package/core/templates/pr-body.md +25 -0
- package/core/templates/review-feedback.md +46 -0
- package/core/templates/spec.template.md +88 -0
- package/core/templates/steps/init-pipeline/01-detect-stack.md +44 -0
- package/core/templates/steps/init-pipeline/02-interview-gaps.md +55 -0
- package/core/templates/steps/init-pipeline/03-draft-profile.md +9 -0
- package/core/templates/steps/init-pipeline/04-write-render.md +91 -0
- package/core/templates/steps/init-pipeline/05-report.md +11 -0
- package/core/templates/steps/review-pr/01-pr-mode.md +54 -0
- package/core/workflows/audit.js +306 -0
- package/core/workflows/loop.js +687 -0
- package/core/workflows/refactor.js +291 -0
- package/core/workflows/review.js +491 -0
- package/install.ps1 +72 -0
- package/install.sh +69 -0
- package/lib/doctor.js +472 -0
- package/lib/install.js +377 -0
- package/lib/project.js +322 -0
- package/lib/render.js +121 -0
- package/lib/versions.js +145 -0
- package/lib/yaml.js +174 -0
- package/package.json +36 -17
- package/profile/PIPELINE.template.md +250 -0
- package/profile/SCHEMA.md +749 -0
- package/profile/cohorte.config.template.yaml +43 -0
- package/scripts/feature-diff.sh +118 -0
- package/scripts/kanban-move.sh +307 -0
- package/scripts/metrics/collect.mjs +542 -0
- package/scripts/metrics/prices.json +42 -0
- package/scripts/new-feature.sh.template +122 -0
- package/scripts/preflight.sh +114 -0
- package/scripts/remove-feature.sh.template +56 -0
- package/assets/manifest.json +0 -203
- package/assets/migrations/config/README.md +0 -12
- package/assets/migrations/state/0001_init.sql +0 -154
- package/assets/prompts/README.md +0 -11
- package/assets/prompts/agents/brainstormer.md +0 -3
- package/assets/prompts/agents/fixer.md +0 -7
- package/assets/prompts/agents/implementer.md +0 -12
- package/assets/prompts/agents/reviewer.md +0 -8
- package/assets/prompts/agents/security-reviewer.md +0 -7
- package/assets/prompts/agents/spec-author.md +0 -3
- package/assets/prompts/phases/build.md +0 -5
- package/assets/prompts/phases/review.md +0 -5
- package/assets/prompts/phases/test.md +0 -5
- package/assets/prompts/system.md +0 -11
- package/assets/schemas/agent-output.schema.json +0 -225
- package/assets/schemas/auth-status.schema.json +0 -87
- package/assets/schemas/command-result.schema.json +0 -192
- package/assets/schemas/commands.schema.json +0 -959
- package/assets/schemas/config.schema.json +0 -2281
- package/assets/schemas/doctor-report.schema.json +0 -104
- package/assets/schemas/events.schema.json +0 -8514
- package/assets/schemas/fake-script.schema.json +0 -549
- package/assets/schemas/inspect.schema.json +0 -3133
- package/assets/schemas/manifest.schema.json +0 -79
- package/assets/schemas/ownership.schema.json +0 -52
- package/assets/schemas/policy-verdict.schema.json +0 -282
- package/assets/schemas/project-model.schema.json +0 -783
- package/assets/schemas/project-status.schema.json +0 -217
- package/assets/schemas/reconcile-plan.schema.json +0 -154
- package/assets/schemas/run-diff.schema.json +0 -177
- package/assets/schemas/run-snapshot-manifest.schema.json +0 -2104
- package/assets/schemas/run-state.schema.json +0 -1755
- package/assets/schemas/runtime-capabilities.schema.json +0 -1545
- package/assets/schemas/sandbox-capabilities.schema.json +0 -116
- package/assets/schemas/skill.schema.json +0 -87
- package/assets/schemas/spec.schema.json +0 -202
- package/assets/schemas/tool-catalogue.schema.json +0 -655
- package/assets/schemas/trust-record.schema.json +0 -38
- package/assets/skills/README.md +0 -9
- package/assets/skills/inspect-surface.md +0 -4
- package/dist/agent-host.mjs +0 -2187
- package/dist/agent-host.mjs.map +0 -1
- package/dist/bundle-manifest.json +0 -128
- package/dist/chunks/__host-DgGPyco9.mjs +0 -18
- package/dist/chunks/__host-DgGPyco9.mjs.map +0 -1
- package/dist/chunks/align-ds-r_X_1aQ_.mjs +0 -93
- package/dist/chunks/align-ds-r_X_1aQ_.mjs.map +0 -1
- package/dist/chunks/approve-Cv135UqI.mjs +0 -19
- package/dist/chunks/approve-Cv135UqI.mjs.map +0 -1
- package/dist/chunks/audit-B4ZWQ_DI.mjs +0 -179
- package/dist/chunks/audit-B4ZWQ_DI.mjs.map +0 -1
- package/dist/chunks/auth-BT5oVp76.mjs +0 -132
- package/dist/chunks/auth-BT5oVp76.mjs.map +0 -1
- package/dist/chunks/auth-Dnlksuo5.mjs +0 -141
- package/dist/chunks/auth-Dnlksuo5.mjs.map +0 -1
- package/dist/chunks/brainstorm-SJwOIEif.mjs +0 -123
- package/dist/chunks/brainstorm-SJwOIEif.mjs.map +0 -1
- package/dist/chunks/build-C_-mbZfD.mjs +0 -19
- package/dist/chunks/build-C_-mbZfD.mjs.map +0 -1
- package/dist/chunks/cancel-KV_cpsqS.mjs +0 -15
- package/dist/chunks/cancel-KV_cpsqS.mjs.map +0 -1
- package/dist/chunks/canonical-C8UxeEmB.mjs +0 -57
- package/dist/chunks/canonical-C8UxeEmB.mjs.map +0 -1
- package/dist/chunks/catalogue-IaCJdfB8.mjs +0 -1549
- package/dist/chunks/catalogue-IaCJdfB8.mjs.map +0 -1
- package/dist/chunks/compose-DRKjQcn0.mjs +0 -7333
- package/dist/chunks/compose-DRKjQcn0.mjs.map +0 -1
- package/dist/chunks/config-Cqu5XQoP.mjs +0 -96
- package/dist/chunks/config-Cqu5XQoP.mjs.map +0 -1
- package/dist/chunks/contract-DjssDPpS.mjs +0 -335
- package/dist/chunks/contract-DjssDPpS.mjs.map +0 -1
- package/dist/chunks/contract-bQ9FJl4N.mjs +0 -123
- package/dist/chunks/contract-bQ9FJl4N.mjs.map +0 -1
- package/dist/chunks/deny-ClTxSvHJ.mjs +0 -15
- package/dist/chunks/deny-ClTxSvHJ.mjs.map +0 -1
- package/dist/chunks/diff-Qw0II0sj.mjs +0 -101
- package/dist/chunks/diff-Qw0II0sj.mjs.map +0 -1
- package/dist/chunks/discover-BZPolSZG.mjs +0 -21
- package/dist/chunks/discover-BZPolSZG.mjs.map +0 -1
- package/dist/chunks/doctor-DcDFPvQM.mjs +0 -222
- package/dist/chunks/doctor-DcDFPvQM.mjs.map +0 -1
- package/dist/chunks/fix-C9roGiQz.mjs +0 -82
- package/dist/chunks/fix-C9roGiQz.mjs.map +0 -1
- package/dist/chunks/fleet-yWHQY2ya.mjs +0 -297
- package/dist/chunks/fleet-yWHQY2ya.mjs.map +0 -1
- package/dist/chunks/gc-BBXlBF5w.mjs +0 -161
- package/dist/chunks/gc-BBXlBF5w.mjs.map +0 -1
- package/dist/chunks/init--FxxkrcT.mjs +0 -63
- package/dist/chunks/init--FxxkrcT.mjs.map +0 -1
- package/dist/chunks/inspect-Buby4cQD.mjs +0 -22
- package/dist/chunks/inspect-Buby4cQD.mjs.map +0 -1
- package/dist/chunks/intake-C1pesxCJ.mjs +0 -12
- package/dist/chunks/intake-C1pesxCJ.mjs.map +0 -1
- package/dist/chunks/logs-Giq5sUau.mjs +0 -25
- package/dist/chunks/logs-Giq5sUau.mjs.map +0 -1
- package/dist/chunks/loop-BWsUpyus.mjs +0 -212
- package/dist/chunks/loop-BWsUpyus.mjs.map +0 -1
- package/dist/chunks/migrate-DuYCAbE3.mjs +0 -33
- package/dist/chunks/migrate-DuYCAbE3.mjs.map +0 -1
- package/dist/chunks/models-Btp6X2YZ.mjs +0 -24
- package/dist/chunks/models-Btp6X2YZ.mjs.map +0 -1
- package/dist/chunks/obsidian-BHLkXx_H.mjs +0 -235
- package/dist/chunks/obsidian-BHLkXx_H.mjs.map +0 -1
- package/dist/chunks/patch-sAgVqjpx.mjs +0 -50
- package/dist/chunks/patch-sAgVqjpx.mjs.map +0 -1
- package/dist/chunks/pause-BASBfKLO.mjs +0 -16
- package/dist/chunks/pause-BASBfKLO.mjs.map +0 -1
- package/dist/chunks/policy-Du7WVBFX.mjs +0 -139
- package/dist/chunks/policy-Du7WVBFX.mjs.map +0 -1
- package/dist/chunks/providers-Dx78imKj.mjs +0 -19
- package/dist/chunks/providers-Dx78imKj.mjs.map +0 -1
- package/dist/chunks/reconcile-BHn66X3C.mjs +0 -50
- package/dist/chunks/reconcile-BHn66X3C.mjs.map +0 -1
- package/dist/chunks/refactor-DV3RfGjk.mjs +0 -153
- package/dist/chunks/refactor-DV3RfGjk.mjs.map +0 -1
- package/dist/chunks/render-DyZr5Lgi.mjs +0 -53
- package/dist/chunks/render-DyZr5Lgi.mjs.map +0 -1
- package/dist/chunks/resume-GJQRb2Eb.mjs +0 -15
- package/dist/chunks/resume-GJQRb2Eb.mjs.map +0 -1
- package/dist/chunks/retro-Dr-2RTNN.mjs +0 -78
- package/dist/chunks/retro-Dr-2RTNN.mjs.map +0 -1
- package/dist/chunks/retry-CLrUem1H.mjs +0 -15
- package/dist/chunks/retry-CLrUem1H.mjs.map +0 -1
- package/dist/chunks/review-ZsBqp3vZ.mjs +0 -35
- package/dist/chunks/review-ZsBqp3vZ.mjs.map +0 -1
- package/dist/chunks/run-BGabwbDL.mjs +0 -109
- package/dist/chunks/run-BGabwbDL.mjs.map +0 -1
- package/dist/chunks/run-tool-C3rAv4XF.mjs +0 -26
- package/dist/chunks/run-tool-C3rAv4XF.mjs.map +0 -1
- package/dist/chunks/scan-C5uDr7Yq.mjs +0 -167
- package/dist/chunks/scan-C5uDr7Yq.mjs.map +0 -1
- package/dist/chunks/schema-Bq9qtgsd.mjs +0 -583
- package/dist/chunks/schema-Bq9qtgsd.mjs.map +0 -1
- package/dist/chunks/send-BdnJ85Nz.mjs +0 -19
- package/dist/chunks/send-BdnJ85Nz.mjs.map +0 -1
- package/dist/chunks/ship-BizfUe62.mjs +0 -140
- package/dist/chunks/ship-BizfUe62.mjs.map +0 -1
- package/dist/chunks/shutdown-BM92Iyv2.mjs +0 -15
- package/dist/chunks/shutdown-BM92Iyv2.mjs.map +0 -1
- package/dist/chunks/skip-DZG5kpcH.mjs +0 -18
- package/dist/chunks/skip-DZG5kpcH.mjs.map +0 -1
- package/dist/chunks/spec-C2h3U64g.mjs +0 -65
- package/dist/chunks/spec-C2h3U64g.mjs.map +0 -1
- package/dist/chunks/spec-path-tptqR7W8.mjs +0 -10
- package/dist/chunks/spec-path-tptqR7W8.mjs.map +0 -1
- package/dist/chunks/src-Bfr1yzsn.mjs +0 -1689
- package/dist/chunks/src-Bfr1yzsn.mjs.map +0 -1
- package/dist/chunks/src-CPW2_Ons.mjs +0 -5487
- package/dist/chunks/src-CPW2_Ons.mjs.map +0 -1
- package/dist/chunks/src-Cu3TxNob.mjs +0 -783
- package/dist/chunks/src-Cu3TxNob.mjs.map +0 -1
- package/dist/chunks/src-DNsLSxgm.mjs +0 -928
- package/dist/chunks/src-DNsLSxgm.mjs.map +0 -1
- package/dist/chunks/src-DbS9gkJy.mjs +0 -117
- package/dist/chunks/src-DbS9gkJy.mjs.map +0 -1
- package/dist/chunks/src-yi5whv3n.mjs +0 -2118
- package/dist/chunks/src-yi5whv3n.mjs.map +0 -1
- package/dist/chunks/status-SMjiOMYy.mjs +0 -29
- package/dist/chunks/status-SMjiOMYy.mjs.map +0 -1
- package/dist/chunks/tail-BuhT-2PH.mjs +0 -25
- package/dist/chunks/tail-BuhT-2PH.mjs.map +0 -1
- package/dist/chunks/update-BXIppsbi.mjs +0 -16
- package/dist/chunks/update-BXIppsbi.mjs.map +0 -1
- package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs +0 -56
- package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs.map +0 -1
- package/dist/cli.mjs +0 -186
- package/dist/cli.mjs.map +0 -1
package/assets/prompts/README.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# prompts/
|
|
2
|
-
|
|
3
|
-
Embedded agent prompts (spec §8 "inline skills", DESIGN §9 role scope cut: `implementer`, `fixer`, `reviewer`,
|
|
4
|
-
`security-reviewer` in V3.0; `architect`, `verifier`, `brainstormer`, `spec-author`, `tester`, `release-manager`,
|
|
5
|
-
`discoverer`, `reconciler` have their role ids reserved but no prompt yet).
|
|
6
|
-
|
|
7
|
-
`scripts/embed-assets.ts` copies this whole directory into `apps/cli/assets/prompts/**` and records it in
|
|
8
|
-
`assets/manifest.json` (DESIGN 1.4 step 2). Files here are content, not code: `scripts/check-prompts.ts` (`U4.09`)
|
|
9
|
-
checks them for transition/verdict vocabulary (spec 4.1); nothing under `prompts/**` is executed.
|
|
10
|
-
|
|
11
|
-
This directory is empty at G0 on purpose — the role prompts land with the units that use them (Wave 2+).
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
# Brainstormer
|
|
2
|
-
|
|
3
|
-
Challenge the idea before implementation. Return a structured brief with the problem, users, desired outcome, non-goals, risks, open questions, acceptance hypotheses, and affected surfaces. Do not edit the repository. Use only evidence available in the task context.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Fixer
|
|
2
|
-
|
|
3
|
-
Resolve the supplied finding without weakening its reproduction or changing unrelated behavior.
|
|
4
|
-
|
|
5
|
-
Reproduce the issue first when possible. Trace the smallest cause, implement a focused correction, and add a
|
|
6
|
-
regression test that would fail without it. Re-run the original check and inspect the final diff for accidental scope
|
|
7
|
-
growth. Report if the finding cannot be reproduced or if another dependency prevents a safe correction.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Implementer
|
|
2
|
-
|
|
3
|
-
Deliver the assigned change for your surface only.
|
|
4
|
-
|
|
5
|
-
1. Read the task and inspect the relevant code before writing.
|
|
6
|
-
2. Make the smallest coherent implementation that follows local patterns.
|
|
7
|
-
3. Add or update focused tests for observable behavior.
|
|
8
|
-
4. Run the narrow checks first, then the broader checks requested by the task.
|
|
9
|
-
5. Summarize the change with paths, evidence, and known limitations.
|
|
10
|
-
|
|
11
|
-
Do not edit another surface for convenience. If an interface is missing, record the exact interface needed instead of
|
|
12
|
-
silently inventing a cross-surface contract.
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Reviewer
|
|
2
|
-
|
|
3
|
-
Inspect the assigned surface against the frozen task and the repository conventions.
|
|
4
|
-
|
|
5
|
-
Look for functional gaps, unsafe paths, missing validation, data loss, concurrency hazards, and absent regression
|
|
6
|
-
coverage. Every finding must include severity, file and location, observed behavior, why it matters, and a concrete
|
|
7
|
-
reproduction or check. Do not propose cosmetic changes as blockers. If no material issue remains, describe the checks
|
|
8
|
-
that support that conclusion.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Security reviewer
|
|
2
|
-
|
|
3
|
-
Review only the assigned security surface and its boundary assumptions.
|
|
4
|
-
|
|
5
|
-
Check path confinement, command arguments, credential handling, process identity, sandbox policy, redaction, and
|
|
6
|
-
fail-closed behavior. Never request or display secrets. Findings must name the attacker-controlled input, the reached
|
|
7
|
-
boundary, the impact, and a safe regression check.
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
# Spec author
|
|
2
|
-
|
|
3
|
-
Turn the reviewed brief into a precise, testable specification. State the observable behavior, contracts, data and security implications, affected surfaces, acceptance criteria, and explicit non-goals. Do not implement code. Do not silently resolve open questions; record them.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Build phase guidance
|
|
2
|
-
|
|
3
|
-
Implement the frozen specification in the owned surface. Inspect the base tree and the surface contract before
|
|
4
|
-
editing. Keep the change isolated to the assigned work area, preserve public protocol shapes, and leave a concise
|
|
5
|
-
result that another host can verify.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Review phase guidance
|
|
2
|
-
|
|
3
|
-
Compare the implementation and its evidence with the frozen specification. Inspect every owned surface and record
|
|
4
|
-
findings with reproducible locations. Check that prior findings are addressed and that the integration tree still
|
|
5
|
-
matches the recorded evidence.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Test phase guidance
|
|
2
|
-
|
|
3
|
-
Run the exact repository checks recorded for the current task. Preserve command arguments and captured outcomes.
|
|
4
|
-
Separate a product failure from an unavailable environment, and include the relevant output without credentials or
|
|
5
|
-
unbounded logs.
|
package/assets/prompts/system.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Cohorte agent context
|
|
2
|
-
|
|
3
|
-
You work inside one isolated Cohorte work area. The host supplies the current task, allowed paths, available tools,
|
|
4
|
-
and the durable context. Treat those values as authoritative.
|
|
5
|
-
|
|
6
|
-
Keep changes small, inspect before editing, and preserve unrelated work. Use the repository's existing conventions and
|
|
7
|
-
run the checks named by the task when they are available. Do not read credential stores, private keys, or files
|
|
8
|
-
outside the paths granted to you.
|
|
9
|
-
|
|
10
|
-
Communicate concrete observations. When a requirement is unclear, report the missing evidence and leave the worktree
|
|
11
|
-
in a recoverable state. A result must describe files changed, checks run, and any remaining uncertainty.
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cohorte.dev/schemas/3/agent-output.schema.json",
|
|
4
|
-
"title": "Cohorte agent output (submit_result)",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": [
|
|
7
|
-
"status",
|
|
8
|
-
"summary",
|
|
9
|
-
"artifacts",
|
|
10
|
-
"findings",
|
|
11
|
-
"checks",
|
|
12
|
-
"questions",
|
|
13
|
-
"confidence"
|
|
14
|
-
],
|
|
15
|
-
"properties": {
|
|
16
|
-
"status": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"enum": [
|
|
19
|
-
"completed",
|
|
20
|
-
"failed",
|
|
21
|
-
"blocked",
|
|
22
|
-
"needs-input"
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
"summary": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"maxLength": 2000
|
|
28
|
-
},
|
|
29
|
-
"artifacts": {
|
|
30
|
-
"type": "array",
|
|
31
|
-
"items": {
|
|
32
|
-
"type": "object",
|
|
33
|
-
"required": [
|
|
34
|
-
"path",
|
|
35
|
-
"kind"
|
|
36
|
-
],
|
|
37
|
-
"properties": {
|
|
38
|
-
"path": {
|
|
39
|
-
"type": "string"
|
|
40
|
-
},
|
|
41
|
-
"kind": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"enum": [
|
|
44
|
-
"diff",
|
|
45
|
-
"file",
|
|
46
|
-
"test",
|
|
47
|
-
"report",
|
|
48
|
-
"contract"
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
"sha256": {
|
|
52
|
-
"type": "string"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"findings": {
|
|
58
|
-
"type": "array",
|
|
59
|
-
"items": {
|
|
60
|
-
"type": "object",
|
|
61
|
-
"required": [
|
|
62
|
-
"severity",
|
|
63
|
-
"kind",
|
|
64
|
-
"rule",
|
|
65
|
-
"expected",
|
|
66
|
-
"actual",
|
|
67
|
-
"confidence",
|
|
68
|
-
"scope"
|
|
69
|
-
],
|
|
70
|
-
"properties": {
|
|
71
|
-
"id": {
|
|
72
|
-
"type": "string",
|
|
73
|
-
"pattern": "^fnd_[0-9a-f]{16}$"
|
|
74
|
-
},
|
|
75
|
-
"severity": {
|
|
76
|
-
"type": "string",
|
|
77
|
-
"enum": [
|
|
78
|
-
"critical",
|
|
79
|
-
"major",
|
|
80
|
-
"minor",
|
|
81
|
-
"info"
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
"kind": {
|
|
85
|
-
"type": "string",
|
|
86
|
-
"enum": [
|
|
87
|
-
"spec-violation",
|
|
88
|
-
"security",
|
|
89
|
-
"quality",
|
|
90
|
-
"complexity",
|
|
91
|
-
"check-failure"
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
"rule": {
|
|
95
|
-
"type": "string"
|
|
96
|
-
},
|
|
97
|
-
"location": {
|
|
98
|
-
"type": "object",
|
|
99
|
-
"required": [
|
|
100
|
-
"file"
|
|
101
|
-
],
|
|
102
|
-
"properties": {
|
|
103
|
-
"file": {
|
|
104
|
-
"type": "string"
|
|
105
|
-
},
|
|
106
|
-
"line": {
|
|
107
|
-
"type": "integer",
|
|
108
|
-
"minimum": 1
|
|
109
|
-
},
|
|
110
|
-
"endLine": {
|
|
111
|
-
"type": "integer",
|
|
112
|
-
"minimum": 1
|
|
113
|
-
},
|
|
114
|
-
"symbol": {
|
|
115
|
-
"type": "string"
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
"reproduction": {
|
|
120
|
-
"type": "string"
|
|
121
|
-
},
|
|
122
|
-
"expected": {
|
|
123
|
-
"type": "string"
|
|
124
|
-
},
|
|
125
|
-
"actual": {
|
|
126
|
-
"type": "string"
|
|
127
|
-
},
|
|
128
|
-
"confidence": {
|
|
129
|
-
"type": "number",
|
|
130
|
-
"minimum": 0,
|
|
131
|
-
"maximum": 1
|
|
132
|
-
},
|
|
133
|
-
"suggestedFix": {
|
|
134
|
-
"type": "string"
|
|
135
|
-
},
|
|
136
|
-
"scope": {
|
|
137
|
-
"type": "string",
|
|
138
|
-
"enum": [
|
|
139
|
-
"in-scope",
|
|
140
|
-
"deferred"
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
|
-
"outOfScopeReason": {
|
|
144
|
-
"type": "string"
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
"maxItems": 30
|
|
149
|
-
},
|
|
150
|
-
"checks": {
|
|
151
|
-
"type": "array",
|
|
152
|
-
"items": {
|
|
153
|
-
"type": "object",
|
|
154
|
-
"required": [
|
|
155
|
-
"name",
|
|
156
|
-
"status"
|
|
157
|
-
],
|
|
158
|
-
"properties": {
|
|
159
|
-
"name": {
|
|
160
|
-
"type": "string"
|
|
161
|
-
},
|
|
162
|
-
"status": {
|
|
163
|
-
"type": "string",
|
|
164
|
-
"enum": [
|
|
165
|
-
"passed",
|
|
166
|
-
"failed",
|
|
167
|
-
"skipped",
|
|
168
|
-
"not-run"
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
"command": {
|
|
172
|
-
"type": "string"
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
"questions": {
|
|
178
|
-
"type": "array",
|
|
179
|
-
"items": {
|
|
180
|
-
"type": "string"
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
"confidence": {
|
|
184
|
-
"type": "number",
|
|
185
|
-
"minimum": 0,
|
|
186
|
-
"maximum": 1
|
|
187
|
-
},
|
|
188
|
-
"assumptions": {
|
|
189
|
-
"type": "array",
|
|
190
|
-
"items": {
|
|
191
|
-
"type": "object",
|
|
192
|
-
"required": [
|
|
193
|
-
"gap",
|
|
194
|
-
"decision"
|
|
195
|
-
],
|
|
196
|
-
"properties": {
|
|
197
|
-
"gap": {
|
|
198
|
-
"type": "string"
|
|
199
|
-
},
|
|
200
|
-
"decision": {
|
|
201
|
-
"type": "string"
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
"remediationAddressed": {
|
|
207
|
-
"type": "array",
|
|
208
|
-
"items": {
|
|
209
|
-
"type": "object",
|
|
210
|
-
"required": [
|
|
211
|
-
"findingId",
|
|
212
|
-
"how"
|
|
213
|
-
],
|
|
214
|
-
"properties": {
|
|
215
|
-
"findingId": {
|
|
216
|
-
"type": "string"
|
|
217
|
-
},
|
|
218
|
-
"how": {
|
|
219
|
-
"type": "string"
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cohorte.dev/schemas/3/auth-status.schema.json",
|
|
4
|
-
"title": "Cohorte authentication status (auth status --json)",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": [
|
|
7
|
-
"documentVersion",
|
|
8
|
-
"generatedAt",
|
|
9
|
-
"runtime",
|
|
10
|
-
"providers"
|
|
11
|
-
],
|
|
12
|
-
"properties": {
|
|
13
|
-
"documentVersion": {
|
|
14
|
-
"type": "number",
|
|
15
|
-
"const": 1
|
|
16
|
-
},
|
|
17
|
-
"generatedAt": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"format": "date-time",
|
|
20
|
-
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
21
|
-
},
|
|
22
|
-
"runtime": {
|
|
23
|
-
"type": "object",
|
|
24
|
-
"required": [
|
|
25
|
-
"id",
|
|
26
|
-
"version"
|
|
27
|
-
],
|
|
28
|
-
"properties": {
|
|
29
|
-
"id": {
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
"version": {
|
|
33
|
-
"type": "string"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"providers": {
|
|
38
|
-
"type": "array",
|
|
39
|
-
"items": {
|
|
40
|
-
"type": "object",
|
|
41
|
-
"required": [
|
|
42
|
-
"provider",
|
|
43
|
-
"state",
|
|
44
|
-
"subscription",
|
|
45
|
-
"billing",
|
|
46
|
-
"checkedAt"
|
|
47
|
-
],
|
|
48
|
-
"properties": {
|
|
49
|
-
"provider": {
|
|
50
|
-
"type": "string"
|
|
51
|
-
},
|
|
52
|
-
"state": {
|
|
53
|
-
"type": "string"
|
|
54
|
-
},
|
|
55
|
-
"subscription": {
|
|
56
|
-
"type": "boolean"
|
|
57
|
-
},
|
|
58
|
-
"billing": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"enum": [
|
|
61
|
-
"plan-limits",
|
|
62
|
-
"metered",
|
|
63
|
-
"unknown"
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
"source": {
|
|
67
|
-
"type": "string"
|
|
68
|
-
},
|
|
69
|
-
"accountLabel": {
|
|
70
|
-
"type": "string"
|
|
71
|
-
},
|
|
72
|
-
"accountLabelNote": {
|
|
73
|
-
"type": "string"
|
|
74
|
-
},
|
|
75
|
-
"caveat": {
|
|
76
|
-
"type": "string"
|
|
77
|
-
},
|
|
78
|
-
"checkedAt": {
|
|
79
|
-
"type": "string",
|
|
80
|
-
"format": "date-time",
|
|
81
|
-
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cohorte.dev/schemas/3/command-result.schema.json",
|
|
4
|
-
"title": "Cohorte command result (every controller, and the validators)",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": [
|
|
7
|
-
"documentVersion",
|
|
8
|
-
"commandId",
|
|
9
|
-
"type",
|
|
10
|
-
"status"
|
|
11
|
-
],
|
|
12
|
-
"properties": {
|
|
13
|
-
"documentVersion": {
|
|
14
|
-
"type": "number",
|
|
15
|
-
"const": 1
|
|
16
|
-
},
|
|
17
|
-
"commandId": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"pattern": "^cmd_[0-9a-f]{32}$"
|
|
20
|
-
},
|
|
21
|
-
"type": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"x-cohorte-known": [
|
|
24
|
-
"start",
|
|
25
|
-
"status",
|
|
26
|
-
"inspect",
|
|
27
|
-
"tail",
|
|
28
|
-
"pause",
|
|
29
|
-
"resume",
|
|
30
|
-
"cancel",
|
|
31
|
-
"approve",
|
|
32
|
-
"deny",
|
|
33
|
-
"retry",
|
|
34
|
-
"skip",
|
|
35
|
-
"run-tool",
|
|
36
|
-
"reconcile",
|
|
37
|
-
"shutdown",
|
|
38
|
-
"agent.send"
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
"status": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"enum": [
|
|
44
|
-
"completed",
|
|
45
|
-
"rejected",
|
|
46
|
-
"pending"
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
"result": {
|
|
50
|
-
"$ref": "#/$defs/JsonValue"
|
|
51
|
-
},
|
|
52
|
-
"error": {
|
|
53
|
-
"$ref": "#/$defs/ErrorInfo"
|
|
54
|
-
},
|
|
55
|
-
"lastSequence": {
|
|
56
|
-
"type": "integer",
|
|
57
|
-
"minimum": 0
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"$defs": {
|
|
61
|
-
"JsonValue": {
|
|
62
|
-
"anyOf": [
|
|
63
|
-
{
|
|
64
|
-
"type": "null"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"type": "boolean"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"type": "number"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"type": "string"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"type": "array",
|
|
77
|
-
"items": {
|
|
78
|
-
"$ref": "#/$defs/JsonValue"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"type": "object",
|
|
83
|
-
"patternProperties": {
|
|
84
|
-
"^.*$": {
|
|
85
|
-
"$ref": "#/$defs/JsonValue"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
},
|
|
91
|
-
"ErrorInfo": {
|
|
92
|
-
"type": "object",
|
|
93
|
-
"required": [
|
|
94
|
-
"code",
|
|
95
|
-
"class",
|
|
96
|
-
"message",
|
|
97
|
-
"impact",
|
|
98
|
-
"retryable",
|
|
99
|
-
"remediation"
|
|
100
|
-
],
|
|
101
|
-
"properties": {
|
|
102
|
-
"code": {
|
|
103
|
-
"type": "string",
|
|
104
|
-
"pattern": "^[a-z]+(?:-[a-z]+)*/[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
105
|
-
},
|
|
106
|
-
"class": {
|
|
107
|
-
"anyOf": [
|
|
108
|
-
{
|
|
109
|
-
"type": "string",
|
|
110
|
-
"const": "configuration"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"type": "string",
|
|
114
|
-
"const": "validation"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"type": "string",
|
|
118
|
-
"const": "permission"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"type": "string",
|
|
122
|
-
"const": "security"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"type": "string",
|
|
126
|
-
"const": "provider-transient"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"type": "string",
|
|
130
|
-
"const": "provider-terminal"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"type": "string",
|
|
134
|
-
"const": "tool-transient"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"type": "string",
|
|
138
|
-
"const": "tool-terminal"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"type": "string",
|
|
142
|
-
"const": "conflict"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"type": "string",
|
|
146
|
-
"const": "budget"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"type": "string",
|
|
150
|
-
"const": "timeout"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"type": "string",
|
|
154
|
-
"const": "corruption"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"type": "string",
|
|
158
|
-
"const": "human-required"
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
"message": {
|
|
163
|
-
"type": "string"
|
|
164
|
-
},
|
|
165
|
-
"impact": {
|
|
166
|
-
"type": "string"
|
|
167
|
-
},
|
|
168
|
-
"retryable": {
|
|
169
|
-
"type": "boolean"
|
|
170
|
-
},
|
|
171
|
-
"retryAfterMs": {
|
|
172
|
-
"type": "number",
|
|
173
|
-
"minimum": 0
|
|
174
|
-
},
|
|
175
|
-
"remediation": {
|
|
176
|
-
"type": "string"
|
|
177
|
-
},
|
|
178
|
-
"cause": {
|
|
179
|
-
"$ref": "#/$defs/ErrorInfo"
|
|
180
|
-
},
|
|
181
|
-
"details": {
|
|
182
|
-
"type": "object",
|
|
183
|
-
"patternProperties": {
|
|
184
|
-
"^.*$": {
|
|
185
|
-
"$ref": "#/$defs/JsonValue"
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|