@open-agent-toolkit/cli 0.2.79 → 0.3.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 (57) hide show
  1. package/assets/agents/oat-phase-implementer.md +5 -5
  2. package/assets/agents/oat-reviewer.md +17 -15
  3. package/assets/bundle-metadata.json +1 -1
  4. package/assets/docs/cli-utilities/workflow-gates.md +1 -1
  5. package/assets/docs/workflows/projects/artifacts.md +2 -2
  6. package/assets/docs/workflows/projects/autonomy.md +1 -1
  7. package/assets/docs/workflows/projects/implementation-execution.md +4 -4
  8. package/assets/docs/workflows/projects/lifecycle.md +1 -1
  9. package/assets/docs/workflows/projects/reviews.md +11 -11
  10. package/assets/public-package-versions.json +4 -4
  11. package/assets/skills/oat-agent-instructions-analyze/SKILL.md +3 -3
  12. package/assets/skills/oat-docs-analyze/SKILL.md +3 -3
  13. package/assets/skills/oat-project-autonomous/SKILL.md +2 -2
  14. package/assets/skills/oat-project-autonomous/references/gate-inventory.md +14 -14
  15. package/assets/skills/oat-project-design/SKILL.md +2 -2
  16. package/assets/skills/oat-project-discover/SKILL.md +2 -2
  17. package/assets/skills/oat-project-document/SKILL.md +1 -1
  18. package/assets/skills/oat-project-document/references/docs/autonomy-contract.md +14 -14
  19. package/assets/skills/oat-project-implement/SKILL.md +2 -2
  20. package/assets/skills/oat-project-implement/references/completion-and-closeout.md +1 -1
  21. package/assets/skills/oat-project-implement/references/docs/autonomy-contract.md +14 -14
  22. package/assets/skills/oat-project-implement/references/phase-execution.md +3 -3
  23. package/assets/skills/oat-project-implement/references/plan-and-resume.md +2 -2
  24. package/assets/skills/oat-project-import-plan/SKILL.md +2 -2
  25. package/assets/skills/oat-project-lite/SKILL.md +1 -1
  26. package/assets/skills/oat-project-lite/references/docs/autonomy-contract.md +14 -14
  27. package/assets/skills/oat-project-plan/SKILL.md +2 -2
  28. package/assets/skills/oat-project-plan-writing/SKILL.md +4 -4
  29. package/assets/skills/oat-project-pr-final/SKILL.md +1 -1
  30. package/assets/skills/oat-project-pr-final/references/docs/autonomy-contract.md +14 -14
  31. package/assets/skills/oat-project-quick-start/SKILL.md +2 -2
  32. package/assets/skills/oat-project-quick-start/references/docs/autonomy-contract.md +14 -14
  33. package/assets/skills/oat-project-review-provide/SKILL.md +14 -14
  34. package/assets/skills/oat-project-review-provide-remote/SKILL.md +10 -10
  35. package/assets/skills/oat-project-review-receive/SKILL.md +64 -45
  36. package/assets/skills/oat-project-review-receive-remote/SKILL.md +6 -6
  37. package/assets/skills/oat-project-revise/SKILL.md +2 -2
  38. package/assets/skills/oat-review-provide/SKILL.md +2 -2
  39. package/assets/skills/oat-review-provide/references/review-artifact-template.md +3 -3
  40. package/assets/skills/oat-review-provide-remote/SKILL.md +11 -11
  41. package/assets/skills/oat-review-receive/SKILL.md +18 -17
  42. package/assets/skills/oat-review-receive-remote/SKILL.md +13 -13
  43. package/assets/skills/oat-wave-execute/SKILL.md +2 -2
  44. package/assets/templates/plan.md +1 -1
  45. package/dist/commands/gate/__fixtures__/fake-runtime.mjs +4 -4
  46. package/dist/commands/gate/index.d.ts.map +1 -1
  47. package/dist/commands/gate/index.js +20 -11
  48. package/dist/commands/gate/review-verdict.d.ts +2 -2
  49. package/dist/commands/gate/review-verdict.d.ts.map +1 -1
  50. package/dist/commands/gate/review-verdict.js +245 -57
  51. package/dist/review-remote/body-builder.d.ts +3 -3
  52. package/dist/review-remote/body-builder.d.ts.map +1 -1
  53. package/dist/review-remote/body-builder.js +12 -12
  54. package/dist/review-remote/reviewer-dispatch.d.ts +2 -2
  55. package/dist/review-remote/reviewer-dispatch.d.ts.map +1 -1
  56. package/dist/review-remote/reviewer-dispatch.js +15 -7
  57. package/package.json +2 -2
@@ -5,7 +5,7 @@ disable-model-invocation: true
5
5
  user-invocable: true
6
6
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
7
7
  metadata:
8
- version: 1.3.1
8
+ version: 1.3.2
9
9
  ---
10
10
 
11
11
  # Remote Review Receive (Ad-hoc GitHub PR)
@@ -71,8 +71,8 @@ Normalize every finding to this shape:
71
71
 
72
72
  ```yaml
73
73
  finding:
74
- id: "C1" | "I1" | "M1" | "m1"
75
- severity: critical | important | medium | minor
74
+ id: "C1" | "H1" | "M1" | "L1"
75
+ severity: critical | high | medium | low
76
76
  title: string
77
77
  file: string | null
78
78
  line: number | null
@@ -86,9 +86,9 @@ finding:
86
86
  Severity conventions:
87
87
 
88
88
  - `critical`: Broken behavior, security risk, or missing P0 requirement.
89
- - `important`: Missing P1 requirement, major robustness issue.
89
+ - `high`: Missing P1 requirement, major robustness issue.
90
90
  - `medium`: Meaningful but non-blocking quality/maintainability issue.
91
- - `minor`: Cosmetic/style/documentation issue.
91
+ - `low`: Cosmetic/style/documentation issue.
92
92
 
93
93
  ## Process
94
94
 
@@ -126,16 +126,16 @@ For each item in JSON:
126
126
 
127
127
  - Capture `type` (`review_comment`, `issue_comment`, `review`).
128
128
  - Map location fields (`path`, `line`) when present.
129
- - Use comment body + context to assign severity (`critical`, `important`, `medium`, `minor`).
130
- - Treat `CHANGES_REQUESTED` review state as a strong hint toward `important+`, not an automatic override.
129
+ - Use comment body + context to assign severity (`critical`, `high`, `medium`, `low`).
130
+ - Treat `CHANGES_REQUESTED` review state as a strong hint toward `high+`, not an automatic override.
131
131
  - Normalize into the shared findings model.
132
132
 
133
133
  ID assignment per severity bucket:
134
134
 
135
135
  - Critical: `C1`, `C2`, ...
136
- - Important: `I1`, `I2`, ...
136
+ - High: `H1`, `H2`, ...
137
137
  - Medium: `M1`, `M2`, ...
138
- - Minor: `m1`, `m2`, ...
138
+ - Low: `L1`, `L2`, ...
139
139
 
140
140
  ### Step 4: Present Findings Overview and Triage
141
141
 
@@ -146,21 +146,21 @@ Before triage prompts, output:
146
146
 
147
147
  Disposition options per finding:
148
148
 
149
- - `convert` (default for critical/important/medium/minor)
149
+ - `convert` (default for critical/high/medium/low)
150
150
  - `defer`
151
151
  - `dismiss`
152
152
 
153
153
  Rules:
154
154
 
155
- - Require concrete rationale for `defer`/`dismiss` at any severity, including minor. Small findings are usually cheaper to fix inline than to track as backlog items, so a minor `defer` must be justified just like any other deferral.
156
- - For any deferral (minor included), require a concrete reason (duplicate, dependency, explicit out-of-scope follow-up, risky churn).
155
+ - Require concrete rationale for `defer`/`dismiss` at any severity, including low. Small findings are usually cheaper to fix inline than to track as backlog items, so a low `defer` must be justified just like any other deferral.
156
+ - For any deferral (low included), require a concrete reason (duplicate, dependency, explicit out-of-scope follow-up, risky churn).
157
157
 
158
158
  ### Step 5: Generate Standalone Task List
159
159
 
160
160
  Task entry format:
161
161
 
162
162
  ```markdown
163
- - [ ] [important] Add null-guard in OAuth callback parser (`packages/auth/src/callback.ts:142`) - Validate provider payload before dereference.
163
+ - [ ] [high] Add null-guard in OAuth callback parser (`packages/auth/src/callback.ts:142`) - Validate provider payload before dereference.
164
164
  ```
165
165
 
166
166
  Output modes:
@@ -6,7 +6,7 @@ disable-model-invocation: false
6
6
  user-invocable: true
7
7
  allowed-tools: Read, Write, Edit, Bash, Grep, Glob, Task
8
8
  metadata:
9
- version: 1.9.4
9
+ version: 1.9.5
10
10
  ---
11
11
 
12
12
  # Execute a Wave of External Plans
@@ -181,7 +181,7 @@ excluded from groups) — never mid-run. **Reconciliation contract:** when recon
181
181
  reveals a stale plan premise, the reconciliation must be NON-NARROWING (WHERE
182
182
  the work happens may change; WHAT must be true may not), recorded exactly once
183
183
  in the Drift Refresh Record with pointer-only references elsewhere — a
184
- reconciliation that waives a source-plan requirement is a plan-gate Important
184
+ reconciliation that waives a source-plan requirement is a plan-gate High
185
185
  (wave-4 evidence).
186
186
 
187
187
  Recon is delegated; the Drift Refresh Record entries and any reconciliation
@@ -189,7 +189,7 @@ cell; never truncate a widened row back to five columns.
189
189
  - `received`: review artifact exists (not yet converted into fix tasks)
190
190
  - `fixes_added`: fix tasks were added to the plan (work queued)
191
191
  - `fixes_completed`: fix tasks implemented, awaiting re-review
192
- - `passed`: re-review run and recorded as passing (no Critical/Important)
192
+ - `passed`: re-review run and recorded as passing (no Critical/High)
193
193
 
194
194
  ---
195
195
 
@@ -55,9 +55,9 @@ async function writeArtifact() {
55
55
  `oat_invocation_reasoning_effort: ${promptValue('oat_invocation_reasoning_effort')}`,
56
56
  `oat_invocation_source: ${promptValue('oat_invocation_source')}`,
57
57
  'oat_review_critical_count: 0',
58
- 'oat_review_important_count: 0',
58
+ 'oat_review_high_count: 0',
59
59
  'oat_review_medium_count: 0',
60
- 'oat_review_minor_count: 0',
60
+ 'oat_review_low_count: 0',
61
61
  '---',
62
62
  '',
63
63
  '# Fake runtime review',
@@ -68,7 +68,7 @@ async function writeArtifact() {
68
68
  '',
69
69
  'None',
70
70
  '',
71
- '### Important',
71
+ '### High',
72
72
  '',
73
73
  'None',
74
74
  '',
@@ -76,7 +76,7 @@ async function writeArtifact() {
76
76
  '',
77
77
  'None',
78
78
  '',
79
- '### Minor',
79
+ '### Low',
80
80
  '',
81
81
  'None',
82
82
  '',
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/gate/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAKhB,KAAK,qBAAqB,EAE3B,MAAM,8BAA8B,CAAC;AAYtC,OAAO,EAWL,KAAK,UAAU,EAIf,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,UAAU,EAEhB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAOL,KAAK,cAAc,EACpB,MAAM,iBAAiB,CAAC;AAWzB,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAExB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EACL,uBAA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AAW,EAAE,CAAC;QAC7B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAC;KACjC,CAAC;IACF,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,WAAW,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAi3CD,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EAC9C,cAAc,EAAE,MAAM,EACtB,KAAK,EAAE,kBAAkB,EACzB,gBAAgB,CAAC,EAAE,oBAAoB,GACtC,kBAAkB,GAAG,IAAI,CAS3B;AA+xFD,wBAAgB,iBAAiB,CAC/B,SAAS,GAAE,OAAO,CAAC,uBAAuB,CAAM,GAC/C,OAAO,CAsOT"}
@@ -65,10 +65,18 @@ const VALID_CROSS_PROVIDER_AVOIDS = [
65
65
  ];
66
66
  const VALID_REVIEW_GATE_THRESHOLDS = [
67
67
  'critical',
68
- 'important',
68
+ 'high',
69
69
  'medium',
70
- 'minor',
70
+ 'low',
71
71
  ];
72
+ /**
73
+ * Threshold aliases accepted from configuration written before the severity
74
+ * rename, so an existing `exit_nonzero_on: important` keeps its meaning.
75
+ */
76
+ const LEGACY_REVIEW_GATE_THRESHOLDS = new Map([
77
+ ['important', 'high'],
78
+ ['minor', 'low'],
79
+ ]);
72
80
  const VALID_IDENTITY_PROVENANCES = [
73
81
  'declared',
74
82
  'observed',
@@ -76,7 +84,7 @@ const VALID_IDENTITY_PROVENANCES = [
76
84
  'unknown',
77
85
  ];
78
86
  const REVIEW_GATE_CONTEXT_NOTE = [
79
- 'This review is gate-originated. If you run `oat-project-review-provide`, set `oat_review_invocation: gate` in the review artifact. Write a canonical review artifact with `### Critical`, `### Important`, `### Medium`, and `### Minor` headings in that order, using `None` for empty sections.',
87
+ 'This review is gate-originated. If you run `oat-project-review-provide`, set `oat_review_invocation: gate` in the review artifact. Write a canonical review artifact with `### Critical`, `### High`, `### Medium`, and `### Low` headings in that order, using `None` for empty sections.',
80
88
  'Complete the review, artifact write, and required bookkeeping inline or through a synchronously awaited child before this headless process exits. Do not start background tasks, monitors, or waiters that outlive this turn.',
81
89
  "Artifact hygiene contract: Before finishing or committing, format every file you created or edited. Use the concrete write/fix formatting command supplied by the governing plan, task, or brief. If none is usable, discover the repository's documented write/fix command from applicable `AGENTS.md`/`CLAUDE.md` instructions and relevant package manifests; do not infer or hardcode a formatter. Prefer a file-scoped invocation when supported, and avoid rewriting unrelated files. If no command is discoverable, warn once with `no format command discovered in repo instructions; skipping`, then continue.",
82
90
  ].join('\n\n');
@@ -349,9 +357,10 @@ function parseCrossProviderAvoid(value) {
349
357
  return avoid;
350
358
  }
351
359
  function parseReviewGateThreshold(value) {
352
- const threshold = value?.trim() || 'important';
360
+ const raw = value?.trim() || 'high';
361
+ const threshold = LEGACY_REVIEW_GATE_THRESHOLDS.get(raw) ?? raw;
353
362
  if (!VALID_REVIEW_GATE_THRESHOLDS.includes(threshold)) {
354
- throw new Error('--exit-nonzero-on must be one of critical | important | medium | minor.');
363
+ throw new Error('--exit-nonzero-on must be one of critical | high | medium | low.');
355
364
  }
356
365
  return threshold;
357
366
  }
@@ -1421,10 +1430,10 @@ function reviewBlocksAtThreshold(verdict, threshold) {
1421
1430
  if (threshold === 'critical') {
1422
1431
  return false;
1423
1432
  }
1424
- if (verdict.counts.important > 0) {
1433
+ if (verdict.counts.high > 0) {
1425
1434
  return true;
1426
1435
  }
1427
- if (threshold === 'important') {
1436
+ if (threshold === 'high') {
1428
1437
  return false;
1429
1438
  }
1430
1439
  if (verdict.counts.medium > 0) {
@@ -1433,7 +1442,7 @@ function reviewBlocksAtThreshold(verdict, threshold) {
1433
1442
  if (threshold === 'medium') {
1434
1443
  return false;
1435
1444
  }
1436
- return verdict.counts.minor > 0;
1445
+ return verdict.counts.low > 0;
1437
1446
  }
1438
1447
  function buildReviewGateHandoff(options) {
1439
1448
  const receiveInstruction = `Run oat-project-review-receive for ${options.artifactPath} before treating this gate review as consumed.`;
@@ -1481,7 +1490,7 @@ function writeReviewGateResult(context, payload) {
1481
1490
  if (payload.normalization) {
1482
1491
  context.logger.info(`${payload.normalization.persisted ? 'Artifact normalized' : 'Artifact snapshot normalized in memory; source file unchanged'}: inserted ${payload.normalization.insertedSeverities.map((severity) => severityDisplayName(severity)).join(', ')} empty Findings section(s).`);
1483
1492
  }
1484
- context.logger.info(`Verdict: ${payload.status} (critical=${payload.counts.critical}, important=${payload.counts.important}, medium=${payload.counts.medium}, minor=${payload.counts.minor})`);
1493
+ context.logger.info(`Verdict: ${payload.status} (critical=${payload.counts.critical}, high=${payload.counts.high}, medium=${payload.counts.medium}, low=${payload.counts.low})`);
1485
1494
  if (payload.diversity) {
1486
1495
  if (payload.diversity.warning) {
1487
1496
  context.logger.warn(payload.diversity.warning);
@@ -1893,7 +1902,7 @@ async function emitGateProjectLogPartialFinalization(options) {
1893
1902
  }
1894
1903
  async function finalizeReviewGateProjectLog(context, dependencies, finalization) {
1895
1904
  const findings = finalization.counts
1896
- ? ` findings=critical:${finalization.counts.critical},important:${finalization.counts.important},medium:${finalization.counts.medium},minor:${finalization.counts.minor}`
1905
+ ? ` findings=critical:${finalization.counts.critical},high:${finalization.counts.high},medium:${finalization.counts.medium},low:${finalization.counts.low}`
1897
1906
  : '';
1898
1907
  const artifact = finalization.artifactPath
1899
1908
  ? ` artifact=${finalization.artifactPath}`
@@ -3012,7 +3021,7 @@ export function createGateCommand(overrides = {}) {
3012
3021
  .option('--project <path-or-name>', 'Project path or name to review; defaults to the active project')
3013
3022
  .option('--review-scope <scope>', 'Review scope hint for the provider')
3014
3023
  .option('--review-type <type>', 'Review type hint for the provider')
3015
- .option('--exit-nonzero-on <severity>', 'Lowest severity that exits nonzero: critical, important, medium, or minor')
3024
+ .option('--exit-nonzero-on <severity>', 'Lowest severity that exits nonzero: critical, high, medium, or low')
3016
3025
  .argument('<prompt...>', 'Review prompt arguments appended to the target command')
3017
3026
  .action(async (prompt, options, command) => {
3018
3027
  const context = dependencies.buildCommandContext(readGlobalOptions(command));
@@ -7,9 +7,9 @@ export interface ReviewGateVerdict {
7
7
  gateInvocation?: ReviewArtifactGateInvocation;
8
8
  counts: {
9
9
  critical: number;
10
- important: number;
10
+ high: number;
11
11
  medium: number;
12
- minor: number;
12
+ low: number;
13
13
  };
14
14
  blocking: boolean;
15
15
  normalization?: {
@@ -1 +1 @@
1
- {"version":3,"file":"review-verdict.d.ts","sourceRoot":"","sources":["../../../src/commands/gate/review-verdict.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IAC5C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,cAAc,CAAC,EAAE,4BAA4B,CAAC;IAC9C,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE;QACd,kBAAkB,EAAE,QAAQ,EAAE,CAAC;QAC/B,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,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