opencode-agent-orchestration-kit 1.0.32 → 1.0.37
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/README.md +73 -4
- package/SECURITY.md +7 -0
- package/docs/cli.md +100 -0
- package/docs/installation.md +25 -5
- package/docs/quickstart.md +1 -1
- package/docs/releases/v1.0.33.md +72 -0
- package/docs/releases/v1.0.34.md +59 -0
- package/docs/releases/v1.0.35.md +62 -0
- package/docs/releases/v1.0.36.md +58 -0
- package/docs/releases/v1.0.37.md +53 -0
- package/docs/security.md +4 -0
- package/docs/supply-chain.md +9 -5
- package/docs/threat-model.md +244 -0
- package/docs/use-cases/README.md +31 -0
- package/docs/use-cases/direct-label-change/README.md +76 -0
- package/docs/use-cases/direct-label-change/before/package.json +8 -0
- package/docs/use-cases/direct-label-change/before/src/settings-label.mjs +1 -0
- package/docs/use-cases/direct-label-change/before/test/settings-label.test.mjs +8 -0
- package/docs/use-cases/direct-label-change/case.json +118 -0
- package/docs/use-cases/direct-label-change/expected/package.json +8 -0
- package/docs/use-cases/direct-label-change/expected/src/settings-label.mjs +1 -0
- package/docs/use-cases/direct-label-change/expected/test/settings-label.test.mjs +8 -0
- package/docs/use-cases/feature-tag-normalizer/README.md +78 -0
- package/docs/use-cases/feature-tag-normalizer/before/package.json +8 -0
- package/docs/use-cases/feature-tag-normalizer/before/src/normalize-tags.mjs +3 -0
- package/docs/use-cases/feature-tag-normalizer/before/test/normalize-tags.test.mjs +13 -0
- package/docs/use-cases/feature-tag-normalizer/case.json +119 -0
- package/docs/use-cases/feature-tag-normalizer/expected/package.json +8 -0
- package/docs/use-cases/feature-tag-normalizer/expected/src/normalize-tags.mjs +14 -0
- package/docs/use-cases/feature-tag-normalizer/expected/test/normalize-tags.test.mjs +18 -0
- package/docs/workflows.md +6 -0
- package/opencode/agents/lead.md +11 -2
- package/opencode/agents/review_api.md +26 -9
- package/opencode/agents/review_coordinator.md +60 -68
- package/opencode/agents/review_quality.md +27 -11
- package/opencode/agents/review_security.md +26 -10
- package/opencode/agents/review_tests.md +26 -9
- package/opencode/agents/reviewer.md +95 -80
- package/opencode/commands/autonomous.md +75 -0
- package/opencode/commands/evolve.md +3 -1
- package/opencode/commands/feature.md +6 -2
- package/opencode/commands/loop.md +12 -8
- package/opencode/commands/review-orchestrated.md +26 -24
- package/opencode/commands/review-preflight.md +8 -7
- package/opencode/commands/review.md +27 -10
- package/opencode/docs/ai/harness/README.md +5 -0
- package/opencode/docs/ai/harness/agents.md +27 -3
- package/opencode/docs/ai/harness/checks.md +18 -0
- package/opencode/docs/ai/harness/commands.md +44 -0
- package/opencode/docs/ai/harness/orchestrated-review.md +8 -1
- package/opencode/docs/ai/harness/orchestration-contracts.json +924 -0
- package/opencode/package-lock.json +14 -8
- package/opencode/package.json +1 -0
- package/opencode/plugins/shell-export-guard.ts +23 -0
- package/opencode/scripts/adversarial-harness.test.mjs +5 -2
- package/opencode/scripts/check-harness.mjs +873 -18
- package/opencode/scripts/check-harness.test.mjs +562 -0
- package/opencode/scripts/loop-state.mjs +88 -14
- package/opencode/scripts/loop-state.test.mjs +82 -5
- package/opencode/scripts/review-orchestrated-prepare.mjs +18 -1
- package/opencode/scripts/review-orchestrated-prepare.test.mjs +49 -0
- package/opencode/scripts/shell-export-policy.d.mts +4 -0
- package/opencode/scripts/shell-export-policy.mjs +272 -0
- package/opencode/scripts/shell-export-policy.test.mjs +96 -0
- package/opencode/skills/code-review-and-quality/SKILL.md +63 -321
- package/opencode/skills/code-review-and-quality/references/profiles/backend-clean-ddd-cqrs.md +60 -0
- package/opencode/skills/code-review-and-quality/references/profiles/backend.md +54 -0
- package/opencode/skills/code-review-and-quality/references/profiles/frontend-clean-layered.md +60 -0
- package/opencode/skills/code-review-and-quality/references/profiles/frontend.md +62 -0
- package/opencode/skills/code-review-and-quality/references/review-policy.md +258 -0
- package/package.json +5 -2
- package/scripts/check-supply-chain.mjs +16 -2
- package/scripts/check-supply-chain.test.mjs +52 -1
- package/scripts/check-threat-model.mjs +421 -0
- package/scripts/check-threat-model.test.mjs +304 -0
- package/scripts/check-use-cases.mjs +501 -0
- package/scripts/check-use-cases.test.mjs +225 -0
- package/scripts/check.sh +55 -1
- package/scripts/install-smoke.sh +24 -1
- package/scripts/manage-installation.mjs +567 -25
- package/scripts/manage-installation.test.mjs +418 -0
- package/scripts/oak.mjs +246 -0
- package/scripts/oak.test.mjs +329 -0
- package/scripts/package-smoke.mjs +57 -0
- package/scripts/package-smoke.test.mjs +75 -2
- package/scripts/version.mjs +1 -0
- package/scripts/version.test.mjs +3 -2
- package/supply-chain.json +1 -0
package/README.md
CHANGED
|
@@ -156,6 +156,9 @@ Use the smallest useful flow:
|
|
|
156
156
|
- `/feature` when the work deserves full orchestration.
|
|
157
157
|
- `/loop` when you want an approved, resumable implementation-review cycle with
|
|
158
158
|
crash-recoverable structured state and a three-iteration cap.
|
|
159
|
+
- `/autonomous` for one explicitly requested local task with a task-specific
|
|
160
|
+
one-to-six-iteration budget, a hard ceiling of six, durable state, and
|
|
161
|
+
reviewer-only closure. Final approval stops the cycle immediately.
|
|
159
162
|
|
|
160
163
|
## Included agents
|
|
161
164
|
|
|
@@ -167,7 +170,7 @@ Use the smallest useful flow:
|
|
|
167
170
|
| `researcher` | Code, documentation, API, alternative, and risk investigation |
|
|
168
171
|
| `specifier` | Specs, tasks, acceptance criteria, scope boundaries, and validation plans |
|
|
169
172
|
| `developer` | Implementation, direct-mode changes, and focused validation |
|
|
170
|
-
| `reviewer` |
|
|
173
|
+
| `reviewer` | Final, read-only review against scope, real diff, original evidence, and contextual architecture |
|
|
171
174
|
| `evaluator` | Optional benchmark and smoke-test evidence collection |
|
|
172
175
|
| `debugger` | Optional root-cause analysis from failures and traces |
|
|
173
176
|
| `evolver` | Optional evidence-driven harness improvement proposals |
|
|
@@ -189,7 +192,7 @@ The `evaluator`, `debugger`, and `evolver` agents are optional harness-evolution
|
|
|
189
192
|
| `/implement` | Implement approved work directly |
|
|
190
193
|
| `/test` | Reproduce a bug or run focused validation |
|
|
191
194
|
| `/code-simplify` | Simplify code without changing behavior |
|
|
192
|
-
| `/review` |
|
|
195
|
+
| `/review` | Run the final read-only review of the current diff |
|
|
193
196
|
| `/evolve` | Run the optional harness-evolution workflow |
|
|
194
197
|
| `/init` | Initialize project-oriented context for the workflow |
|
|
195
198
|
|
|
@@ -229,6 +232,23 @@ A small request can also be written directly:
|
|
|
229
232
|
Change the Settings heading to Account settings and run the smallest relevant validation.
|
|
230
233
|
```
|
|
231
234
|
|
|
235
|
+
### One review policy across stacks
|
|
236
|
+
|
|
237
|
+
All review entry points use the same language- and framework-neutral policy.
|
|
238
|
+
The reviewer checks correctness, security, contracts, architecture,
|
|
239
|
+
maintainability, tests, and evidence—not only whether tests pass.
|
|
240
|
+
|
|
241
|
+
Generic backend and frontend profiles adapt those checks to the changed
|
|
242
|
+
surface. Strict Clean Architecture, DDD, hexagonal, CQRS, or layered profiles
|
|
243
|
+
activate only when the task or repository explicitly declares that
|
|
244
|
+
architecture; folder names alone do not activate them.
|
|
245
|
+
|
|
246
|
+
Only problems introduced or materially worsened by the current task can block
|
|
247
|
+
it. Relevant pre-existing debt is reported separately as a non-blocking
|
|
248
|
+
observation. `/review-preflight` remains deterministic, and focused
|
|
249
|
+
`/review-orchestrated` modes remain partial; only the general `/review` agent
|
|
250
|
+
emits a final verdict.
|
|
251
|
+
|
|
232
252
|
For this kind of request, `lead` should choose the direct path and delegate to `developer` without invoking the full feature workflow.
|
|
233
253
|
|
|
234
254
|
## Quick start: test it safely first
|
|
@@ -369,6 +389,29 @@ first, then choose the install command for that user-owned dependency graph.
|
|
|
369
389
|
|
|
370
390
|
## Upgrade, diagnose, uninstall, and rollback
|
|
371
391
|
|
|
392
|
+
The package also exposes the dependency-free `oak` CLI as a thin frontend over
|
|
393
|
+
the same tested engines:
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
oak --help
|
|
397
|
+
oak doctor
|
|
398
|
+
oak check
|
|
399
|
+
oak replay
|
|
400
|
+
oak state inspect --root /path/to/project --slug task-slug
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
The shell wrappers remain supported. `oak check` validates the installed target
|
|
404
|
+
without executing a target-provided checker, while `oak replay` defaults to the
|
|
405
|
+
packaged static corpus and synthetic fixtures. See the [`oak` CLI
|
|
406
|
+
guide](docs/cli.md) for commands, target precedence, exit codes, and explicit
|
|
407
|
+
exclusions.
|
|
408
|
+
|
|
409
|
+
`oak state` runs the packaged durable loop-state runtime against an explicit
|
|
410
|
+
project root; it is intended for bounded local workflows that need a journal,
|
|
411
|
+
lock, and recovery without copying harness scripts into the project.
|
|
412
|
+
Its completion gate requires a durable `reviewer` subagent `APPROVE`
|
|
413
|
+
attestation; see the CLI guide for the exact command.
|
|
414
|
+
|
|
372
415
|
Preview an ownership-safe upgrade, then apply it:
|
|
373
416
|
|
|
374
417
|
```bash
|
|
@@ -390,7 +433,20 @@ and an older source is blocked to prevent downgrade. `doctor` reports
|
|
|
390
433
|
`same-version-different-payload`, or `invalid-version-state` without consulting
|
|
391
434
|
the network.
|
|
392
435
|
|
|
393
|
-
Doctor
|
|
436
|
+
Doctor prints twelve ordered findings for OpenCode and Node compatibility,
|
|
437
|
+
installed dependencies, managed files and drift, required configuration,
|
|
438
|
+
optional plugins, permissions, executable scripts, the generated skill
|
|
439
|
+
registry, aggregate compatibility, and legacy residue. Each finding is
|
|
440
|
+
classified as `pass`, `info`, `action-required`, or `not-applicable`, followed
|
|
441
|
+
by a deterministic summary. It does not print configuration contents,
|
|
442
|
+
subprocess stderr, environment values, credentials, or rollback bytes.
|
|
443
|
+
|
|
444
|
+
Doctor returns `0` when no finding requires action, `1` for safely actionable
|
|
445
|
+
state, and `2` for invalid invocation, corrupt/unsafe state, or an unrecoverable
|
|
446
|
+
filesystem error. Suggested actions are never applied automatically, and
|
|
447
|
+
preserved custom configuration remains user-owned. See the
|
|
448
|
+
[installation lifecycle guide](docs/installation.md) for the full diagnostic
|
|
449
|
+
contract. To acknowledge a completed manual merge, run:
|
|
394
450
|
|
|
395
451
|
```bash
|
|
396
452
|
./doctor.sh --accept-preserved opencode.json
|
|
@@ -567,6 +623,17 @@ If your existing `tui.json` was preserved during installation, add the bundled p
|
|
|
567
623
|
|
|
568
624
|
## Validation
|
|
569
625
|
|
|
626
|
+
Normal harness use requires Node.js, npm, and a supported OpenCode version; it
|
|
627
|
+
does not require a system SQLite client.
|
|
628
|
+
|
|
629
|
+
Full validation and development additionally require the external `sqlite3`
|
|
630
|
+
binary because the session-evidence tests create real SQLite fixtures. On
|
|
631
|
+
Ubuntu or Debian, install it with:
|
|
632
|
+
|
|
633
|
+
```bash
|
|
634
|
+
sudo apt-get install -y sqlite3
|
|
635
|
+
```
|
|
636
|
+
|
|
570
637
|
Run the normal local check with:
|
|
571
638
|
|
|
572
639
|
```bash
|
|
@@ -610,7 +677,7 @@ Validate only the canonical identity and current release note with:
|
|
|
610
677
|
|
|
611
678
|
```bash
|
|
612
679
|
npm run check:version
|
|
613
|
-
node scripts/version.mjs --check-tag v1.0.
|
|
680
|
+
node scripts/version.mjs --check-tag v1.0.37
|
|
614
681
|
```
|
|
615
682
|
|
|
616
683
|
Tag validation compares an explicitly supplied tag with the package identity.
|
|
@@ -794,6 +861,8 @@ Detailed guides are available in [`docs/`](docs/):
|
|
|
794
861
|
- [Superpowers](docs/superpowers.md)
|
|
795
862
|
- [Impeccable](docs/impeccable.md)
|
|
796
863
|
- [Security](docs/security.md)
|
|
864
|
+
- [Threat model](docs/threat-model.md)
|
|
865
|
+
- [Reproducible use cases](docs/use-cases/README.md)
|
|
797
866
|
- [Troubleshooting](docs/troubleshooting.md)
|
|
798
867
|
- [Synology notes](docs/synology.md)
|
|
799
868
|
|
package/SECURITY.md
CHANGED
|
@@ -8,6 +8,13 @@ This kit configures coding agents and an optional Open Design workbench. Treat b
|
|
|
8
8
|
- Do not expose Open Design directly to the public Internet without authentication and network controls.
|
|
9
9
|
- Keep OpenCode auth files, provider credentials, sessions, logs, and `.env` files out of git.
|
|
10
10
|
|
|
11
|
+
## Threat model
|
|
12
|
+
|
|
13
|
+
The canonical [threat model](docs/threat-model.md) inventories protected
|
|
14
|
+
assets, trust boundaries, agent capabilities, abuse cases, controls, evidence,
|
|
15
|
+
and residual risks. OpenCode permissions are policy controls, not an
|
|
16
|
+
operating-system sandbox.
|
|
17
|
+
|
|
11
18
|
## Report a vulnerability
|
|
12
19
|
|
|
13
20
|
Open an issue with a minimal reproduction and no secrets. If the report contains sensitive information, contact the maintainer privately before publishing details.
|
package/docs/cli.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# `oak` CLI
|
|
2
|
+
|
|
3
|
+
`oak` is the dependency-free command-line frontend for the kit's existing
|
|
4
|
+
lifecycle, validation, and deterministic replay tools. It delegates to the same
|
|
5
|
+
engines as the shell wrappers; it does not add a second implementation.
|
|
6
|
+
|
|
7
|
+
## Commands
|
|
8
|
+
|
|
9
|
+
| Command | Behavior |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| `oak install` | Install the portable harness with the existing ownership-safe lifecycle |
|
|
12
|
+
| `oak upgrade` | Preview or apply a compatible upgrade |
|
|
13
|
+
| `oak doctor` | Run actionable environment and installation diagnostics |
|
|
14
|
+
| `oak check` | Validate an installed harness with the checker shipped by this package |
|
|
15
|
+
| `oak replay` | Run the packaged deterministic routing corpus and fixtures |
|
|
16
|
+
| `oak state` | Run the packaged durable loop-state runtime against an explicit project root |
|
|
17
|
+
| `oak uninstall` | Remove only unchanged files owned by the lifecycle manifest |
|
|
18
|
+
| `oak rollback` | Reverse the most recent committed lifecycle operation |
|
|
19
|
+
| `oak version` | Print the canonical package identity |
|
|
20
|
+
|
|
21
|
+
Use `oak --help` or `oak <command> --help` for the closed option set. The
|
|
22
|
+
existing `install.sh`, `upgrade.sh`, `doctor.sh`, `uninstall.sh`, and
|
|
23
|
+
`rollback.sh` wrappers remain supported.
|
|
24
|
+
|
|
25
|
+
## Installed harness check
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
oak check
|
|
29
|
+
oak check --target /path/to/opencode-config
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The target precedence is:
|
|
33
|
+
|
|
34
|
+
1. `--target`;
|
|
35
|
+
2. `OPENCODE_CONFIG_DIR`;
|
|
36
|
+
3. `$HOME/.config/opencode`.
|
|
37
|
+
|
|
38
|
+
The target must be an existing non-symlink directory. `oak check` runs the
|
|
39
|
+
checker included in the package with the target as its working directory. It
|
|
40
|
+
never executes a checker supplied by the target and does not repair or write
|
|
41
|
+
files.
|
|
42
|
+
|
|
43
|
+
## Deterministic replay
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
oak replay
|
|
47
|
+
oak replay --corpus scenarios.jsonl --fixtures fixtures.jsonl
|
|
48
|
+
oak replay --output report.json
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
With no overrides, replay uses the static public corpus and synthetic fixtures
|
|
52
|
+
included in the same package version. Overrides accept only `--corpus`,
|
|
53
|
+
`--fixtures`, and `--output`.
|
|
54
|
+
|
|
55
|
+
Replay preserves the engine's exit codes:
|
|
56
|
+
|
|
57
|
+
- `0`: pass;
|
|
58
|
+
- `1`: fail;
|
|
59
|
+
- `2`: invalid input or operational error;
|
|
60
|
+
- `3`: inconclusive.
|
|
61
|
+
|
|
62
|
+
Live replay is deliberately excluded because it requires an explicit OpenCode
|
|
63
|
+
runtime and session boundary. `oak benchmark` is also excluded until the kit
|
|
64
|
+
defines one canonical meaning rather than conflating metrics aggregation,
|
|
65
|
+
adversarial tests, and other evaluator workflows.
|
|
66
|
+
|
|
67
|
+
## Durable loop state
|
|
68
|
+
|
|
69
|
+
`oak state` delegates to the packaged loop-state runtime and requires a
|
|
70
|
+
non-implicit `--root PATH`. It supports `init`, `resume`, `record`, `release`,
|
|
71
|
+
`inspect`, `attest-review`, `repair`, and `migrate`; its remaining flags are exactly those of
|
|
72
|
+
the runtime.
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
oak state inspect --root /path/to/project --slug task-slug
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The runtime keeps its JSON snapshot, append-only history, and lease lock under
|
|
79
|
+
`<root>/.opencode/loops/`. It does not copy its implementation into that
|
|
80
|
+
project. State operations may write those durable artifacts; they do not
|
|
81
|
+
commit, publish, access the network, or execute a target-provided script.
|
|
82
|
+
|
|
83
|
+
Before a loop can record `status: completed`, it needs a reviewer attestation:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
oak state attest-review --root /path/to/project --slug task-slug \
|
|
87
|
+
--reviewer-session-id reviewer-session-id \
|
|
88
|
+
--reviewer-agent reviewer --reviewer-verdict APPROVE
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
This stores `<slug>.review.json`, bound to the approved contract. Completion
|
|
92
|
+
fails closed unless the attestation identifies the `reviewer` subagent and an
|
|
93
|
+
`APPROVE` verdict.
|
|
94
|
+
|
|
95
|
+
## Safety boundary
|
|
96
|
+
|
|
97
|
+
The dispatcher uses Node directly with `shell: false`. It does not install
|
|
98
|
+
dependencies, access the network, authenticate, inspect providers or models,
|
|
99
|
+
read sessions, or publish artifacts. Lifecycle commands retain their existing
|
|
100
|
+
confirmation, dry-run, ownership, and rollback contracts.
|
package/docs/installation.md
CHANGED
|
@@ -72,7 +72,7 @@ Use these read-only checks from the repository root:
|
|
|
72
72
|
```bash
|
|
73
73
|
node scripts/version.mjs
|
|
74
74
|
npm run check:version
|
|
75
|
-
node scripts/version.mjs --check-tag v1.0.
|
|
75
|
+
node scripts/version.mjs --check-tag v1.0.33
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
The tag check validates only the supplied value. It does not inspect the
|
|
@@ -107,12 +107,32 @@ Preserved user changes and pending protected-file merges are warnings, not autho
|
|
|
107
107
|
|
|
108
108
|
Ordinary `doctor` is lock-free and read-only. Exit codes are:
|
|
109
109
|
|
|
110
|
-
- `0`:
|
|
111
|
-
- `1`:
|
|
110
|
+
- `0`: no finding requires action; informational and not-applicable findings are allowed;
|
|
111
|
+
- `1`: one or more findings require safe operator action, including incompatible
|
|
112
|
+
runtimes, incomplete dependencies or configuration, owned drift, a pending
|
|
113
|
+
merge, unsafe permissions, stale generated registries, legacy residue, stale
|
|
114
|
+
locks, interrupted transactions, rollback conflicts, or cleanup residue;
|
|
112
115
|
- `2`: invalid invocation, corrupt/unknown state, unsafe path/symlink, structural collision, or a filesystem error that prevents safe analysis.
|
|
113
116
|
|
|
114
|
-
|
|
115
|
-
|
|
117
|
+
The human-readable report has a deterministic headline, twelve ordered checks,
|
|
118
|
+
an immediate action beneath every `action-required` finding, and a final
|
|
119
|
+
summary. Check statuses are `pass`, `info`, `action-required`, or
|
|
120
|
+
`not-applicable`. The stable check order is `opencode-version`,
|
|
121
|
+
`node-version`, `dependencies`, `installed-files`, `file-drift`,
|
|
122
|
+
`required-configuration`, `optional-plugins`, `permissions`,
|
|
123
|
+
`executable-scripts`, `skill-registry`, `compatibility`, and
|
|
124
|
+
`legacy-residue`.
|
|
125
|
+
|
|
126
|
+
External pinned plugins are reported as `info` when they cannot be verified
|
|
127
|
+
offline; missing local plugin files are actionable. Ordinary doctor does not
|
|
128
|
+
run npm, access the network, inspect models, authentication, or caches, repair
|
|
129
|
+
files, delete legacy state, or adopt unmanaged files. It never prints
|
|
130
|
+
configuration contents, subprocess stderr, environment values, credentials, or
|
|
131
|
+
lifecycle backup bytes. Only the explicit `--accept-preserved` workflow below
|
|
132
|
+
can mutate state.
|
|
133
|
+
|
|
134
|
+
The report retains `sourceVersion`, `installedVersion`, and `versionState`.
|
|
135
|
+
The state is exactly one of:
|
|
116
136
|
|
|
117
137
|
- `not-installed`: manifest absent;
|
|
118
138
|
- `current`: version and payload match;
|
package/docs/quickstart.md
CHANGED
|
@@ -73,5 +73,5 @@ Release upload require separate authorization and follow
|
|
|
73
73
|
[the supply-chain runbook](supply-chain.md).
|
|
74
74
|
|
|
75
75
|
For an explicitly planned release tag, validate it locally with
|
|
76
|
-
`node scripts/version.mjs --check-tag v1.0.
|
|
76
|
+
`node scripts/version.mjs --check-tag v1.0.33`. This check does not create,
|
|
77
77
|
push, or publish the tag or a hosted release.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# v1.0.33 - Safe lifecycle and canonical release identity
|
|
2
|
+
|
|
3
|
+
This release completes Phase 3 with a more diagnosable, maintainable, and
|
|
4
|
+
auditable public kit while preserving its local-first and human-gated scope.
|
|
5
|
+
|
|
6
|
+
## Highlights
|
|
7
|
+
|
|
8
|
+
- `doctor.sh` now reports twelve ordered, actionable checks covering runtime,
|
|
9
|
+
compatibility, dependencies, managed-file drift, configuration, optional
|
|
10
|
+
plugins, executable permissions, the skill registry, and stale state.
|
|
11
|
+
- The dependency-free `oak` CLI exposes the existing install, upgrade, doctor,
|
|
12
|
+
check, replay, uninstall, rollback, and version engines through one closed
|
|
13
|
+
command surface without adding a second implementation.
|
|
14
|
+
- A closed declarative contract cross-checks public agents, permissions,
|
|
15
|
+
delegations, commands, workflows, retries, completion authority, and evidence
|
|
16
|
+
against the shipped frontmatter and routing corpus.
|
|
17
|
+
- The formal threat model records actors, assets, trust boundaries, agent
|
|
18
|
+
capabilities, twenty risks, and exact coverage of the eleven adversarial
|
|
19
|
+
scenarios.
|
|
20
|
+
- Two dependency-free reproducible case packs compare harness and reduced
|
|
21
|
+
flows. Their four live observations are published honestly as failures under
|
|
22
|
+
exact repository equivalence; no successful benchmark claim is inferred.
|
|
23
|
+
- The supply-chain contract pins `brace-expansion` 5.0.8 to remediate
|
|
24
|
+
GHSA-mh99-v99m-4gvg in the transitive OpenTUI/Babel dependency path without
|
|
25
|
+
accepting the audit tool's incompatible downgrade.
|
|
26
|
+
|
|
27
|
+
## Installation or upgrade
|
|
28
|
+
|
|
29
|
+
For a new installation, preview the complete ownership plan before applying it:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
./install.sh --dry-run
|
|
33
|
+
./install.sh
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
For an existing manifest-owned installation, preview and apply the upgrade:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
./upgrade.sh --dry-run
|
|
40
|
+
./upgrade.sh
|
|
41
|
+
./doctor.sh
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
The supported runtime contract remains Node.js `^22.9.0 || ^24.0.0` with
|
|
45
|
+
OpenCode `>=1.14.41 <2.0.0`.
|
|
46
|
+
|
|
47
|
+
## Migration
|
|
48
|
+
|
|
49
|
+
No ownership-manifest schema or private configuration migration is required.
|
|
50
|
+
The new CLI, contracts, threat model, and case packs are additive. Existing
|
|
51
|
+
managed installations should use the normal dry-run upgrade flow so ownership
|
|
52
|
+
and preserved configuration remain explicit.
|
|
53
|
+
|
|
54
|
+
## Validation performed
|
|
55
|
+
|
|
56
|
+
Release readiness covers contract checks, 968 bundled script tests,
|
|
57
|
+
typechecking, zero-vulnerability production audit, 128 verified registry
|
|
58
|
+
signatures, 29 verified attestations, installation smoke, package smoke,
|
|
59
|
+
canonical version/tag validation, public leak scanning, and package-content
|
|
60
|
+
inspection.
|
|
61
|
+
|
|
62
|
+
The four use-case observations consumed one invocation per variant with no
|
|
63
|
+
retries. Raw output, temporary repositories, model/provider identity, and
|
|
64
|
+
reliable aggregate token totals were not published.
|
|
65
|
+
|
|
66
|
+
## Public safety boundary
|
|
67
|
+
|
|
68
|
+
The public release excludes private OpenCode configuration, local provider and
|
|
69
|
+
MCP wiring, credentials, authentication files, raw transcripts, private
|
|
70
|
+
evidence, user-specific absolute paths, machine-local state, and private
|
|
71
|
+
specification or planning documents. Local provider, search, and MCP
|
|
72
|
+
integrations are not part of this release.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# v1.0.34 - Safe lifecycle and canonical release identity
|
|
2
|
+
|
|
3
|
+
This release adds a bounded local `/autonomous` workflow to the portable
|
|
4
|
+
OpenCode harness. It remains local-first and does not grant publication,
|
|
5
|
+
network, worktree, or scheduling authority.
|
|
6
|
+
|
|
7
|
+
## Highlights
|
|
8
|
+
|
|
9
|
+
- `/autonomous` runs an explicitly invoked local task through a finite
|
|
10
|
+
`developer -> reviewer -> developer (state sync)` cycle of at most six
|
|
11
|
+
iterations.
|
|
12
|
+
- The packaged `oak state` runtime records durable state, an append-only
|
|
13
|
+
history, and a lease under the target checkout's `.opencode/loops/` path.
|
|
14
|
+
- Completion requires a contract-bound `APPROVE` attestation from a `reviewer`
|
|
15
|
+
subagent. A developer cannot self-approve or mark the task completed without
|
|
16
|
+
that evidence.
|
|
17
|
+
- `oak state` exposes initialization, resume, action recording, inspection,
|
|
18
|
+
repair, migration, release, and reviewer-attestation operations through the
|
|
19
|
+
installed CLI.
|
|
20
|
+
|
|
21
|
+
## Installation or upgrade
|
|
22
|
+
|
|
23
|
+
For a new installation, preview the complete ownership plan before applying it:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
./install.sh --dry-run
|
|
27
|
+
./install.sh
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
For an existing manifest-owned installation, preview and apply the upgrade:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
./upgrade.sh --dry-run
|
|
34
|
+
./upgrade.sh
|
|
35
|
+
./doctor.sh
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The supported runtime contract remains Node.js `^22.9.0 || ^24.0.0` with
|
|
39
|
+
OpenCode `>=1.14.41 <2.0.0`.
|
|
40
|
+
|
|
41
|
+
## Migration
|
|
42
|
+
|
|
43
|
+
No ownership-manifest schema or private configuration migration is required.
|
|
44
|
+
The `/autonomous` command and durable state CLI are additive. Existing managed
|
|
45
|
+
installations should use the normal dry-run upgrade flow so ownership and
|
|
46
|
+
preserved configuration remain explicit.
|
|
47
|
+
|
|
48
|
+
## Validation performed
|
|
49
|
+
|
|
50
|
+
Validation covers the public contract check, 122 harness contract tests, 29
|
|
51
|
+
durable-state and CLI tests, version/tag validation, and public leak scanning.
|
|
52
|
+
|
|
53
|
+
## Public safety boundary
|
|
54
|
+
|
|
55
|
+
The public release excludes private OpenCode configuration, local provider and
|
|
56
|
+
MCP wiring, credentials, authentication files, raw transcripts, private
|
|
57
|
+
evidence, user-specific absolute paths, machine-local state, and private
|
|
58
|
+
specification or planning documents. Local provider, search, and MCP
|
|
59
|
+
integrations are not part of this release.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# v1.0.35 - Safe lifecycle and canonical release identity
|
|
2
|
+
|
|
3
|
+
This release gives every review entry point one language- and
|
|
4
|
+
framework-neutral quality policy while preserving the kit's local-first,
|
|
5
|
+
read-only review boundary.
|
|
6
|
+
|
|
7
|
+
## Highlights
|
|
8
|
+
|
|
9
|
+
- The general reviewer now checks the real diff, task contract, original
|
|
10
|
+
evidence, correctness, security, contracts, architecture, maintainability,
|
|
11
|
+
tests, and residual risk before issuing a final verdict.
|
|
12
|
+
- Generic backend and frontend profiles adapt the policy to the changed
|
|
13
|
+
surface. Strict Clean Architecture, DDD, hexagonal, CQRS, or layered profiles
|
|
14
|
+
activate only when the task or repository explicitly declares them.
|
|
15
|
+
- Only defects introduced or materially worsened by the current task may block
|
|
16
|
+
it. Relevant pre-existing debt is reported as a non-blocking observation.
|
|
17
|
+
- Review stages are explicit: deterministic preparation is `preflight`, focused
|
|
18
|
+
specialist analysis is `partial`, and only the general reviewer may emit a
|
|
19
|
+
`final` verdict.
|
|
20
|
+
- Operational Markdown such as agent, command, and skill contracts is no longer
|
|
21
|
+
skipped as ordinary documentation during deterministic review preparation.
|
|
22
|
+
|
|
23
|
+
## Installation or upgrade
|
|
24
|
+
|
|
25
|
+
For a new installation, preview the complete ownership plan before applying it:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
./install.sh --dry-run
|
|
29
|
+
./install.sh
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
For an existing manifest-owned installation, preview and apply the upgrade:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
./upgrade.sh --dry-run
|
|
36
|
+
./upgrade.sh
|
|
37
|
+
./doctor.sh
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The supported runtime contract remains Node.js `^22.9.0 || ^24.0.0` with
|
|
41
|
+
OpenCode `>=1.14.41 <2.0.0`.
|
|
42
|
+
|
|
43
|
+
## Migration
|
|
44
|
+
|
|
45
|
+
No ownership-manifest schema or private configuration migration is required.
|
|
46
|
+
The policy, profiles, review envelopes, and preparer classification are additive
|
|
47
|
+
to the normal ownership-safe upgrade path.
|
|
48
|
+
|
|
49
|
+
## Validation performed
|
|
50
|
+
|
|
51
|
+
Release readiness covers the public contract checks, bundled negative checker
|
|
52
|
+
tests, orchestrated-review preparer tests, typechecking, production dependency
|
|
53
|
+
audit, dependency signature and attestation checks, installation smoke, package
|
|
54
|
+
smoke, canonical version/tag validation, and public leak scanning.
|
|
55
|
+
|
|
56
|
+
## Public safety boundary
|
|
57
|
+
|
|
58
|
+
The public release excludes private OpenCode configuration, local provider and
|
|
59
|
+
MCP wiring, credentials, authentication files, raw transcripts, private
|
|
60
|
+
evidence, user-specific absolute paths, machine-local state, and private
|
|
61
|
+
specification or planning documents. Local provider, search, and MCP
|
|
62
|
+
integrations are not part of this release.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# v1.0.36 - Safe lifecycle and canonical release identity
|
|
2
|
+
|
|
3
|
+
This release makes `/autonomous` choose a bounded iteration budget for the
|
|
4
|
+
specific local task instead of treating its six-iteration safety ceiling as a
|
|
5
|
+
target.
|
|
6
|
+
|
|
7
|
+
## Highlights
|
|
8
|
+
|
|
9
|
+
- `lead` records a task-specific planned iteration budget from one to six
|
|
10
|
+
iterations before the workflow starts; six remains a hard safety ceiling.
|
|
11
|
+
- Durable loop state persists and enforces the selected budget, including after
|
|
12
|
+
recovery. Schema migrations require explicit renewed approval before resume.
|
|
13
|
+
- Final reviewer approval stops the cycle immediately, so no additional action
|
|
14
|
+
or iteration starts after successful closure.
|
|
15
|
+
- The packaged `oak state` command forwards the planned-iteration argument and
|
|
16
|
+
the public contract checker rejects missing budget, ceiling, stop, or renewal
|
|
17
|
+
guarantees.
|
|
18
|
+
|
|
19
|
+
## Installation or upgrade
|
|
20
|
+
|
|
21
|
+
For a new installation, preview the complete ownership plan before applying it:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
./install.sh --dry-run
|
|
25
|
+
./install.sh
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
For an existing manifest-owned installation, preview and apply the upgrade:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
./upgrade.sh --dry-run
|
|
32
|
+
./upgrade.sh
|
|
33
|
+
./doctor.sh
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The supported runtime contract remains Node.js `^22.9.0 || ^24.0.0` with
|
|
37
|
+
OpenCode `>=1.14.41 <2.0.0`.
|
|
38
|
+
|
|
39
|
+
## Migration
|
|
40
|
+
|
|
41
|
+
The loop-state schema advances to v2. Existing v0 or v1 state must be migrated
|
|
42
|
+
explicitly with a newly selected budget and renewed human approval; previous
|
|
43
|
+
approval cannot resume migrated state.
|
|
44
|
+
|
|
45
|
+
## Validation performed
|
|
46
|
+
|
|
47
|
+
Release readiness covers the public and private contract checks, bundled
|
|
48
|
+
negative checker tests, loop-state and `oak` tests, installation smoke, exact
|
|
49
|
+
package smoke, canonical version/tag validation, and public leak scanning.
|
|
50
|
+
An end-to-end model transcript is not part of this deterministic release gate.
|
|
51
|
+
|
|
52
|
+
## Public safety boundary
|
|
53
|
+
|
|
54
|
+
The public release excludes private OpenCode configuration, local provider and
|
|
55
|
+
MCP wiring, credentials, authentication files, raw transcripts, private
|
|
56
|
+
evidence, user-specific absolute paths, machine-local state, and private
|
|
57
|
+
specification or planning documents. Local provider, search, and MCP
|
|
58
|
+
integrations are not part of this release.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# v1.0.37 - Safe lifecycle and canonical release identity
|
|
2
|
+
|
|
3
|
+
This patch release adds a public shell export guard that blocks high-signal
|
|
4
|
+
environment enumeration and secret propagation while preserving ordinary setup
|
|
5
|
+
exports such as `PATH` and `NODE_ENV`.
|
|
6
|
+
|
|
7
|
+
## Highlights
|
|
8
|
+
|
|
9
|
+
- Shell assignments are classified before execution and sensitive export
|
|
10
|
+
patterns are rejected by the public plugin.
|
|
11
|
+
- The policy is shared by the shell-export contract checker and its tests so
|
|
12
|
+
the documented guard behavior remains deterministic.
|
|
13
|
+
- Public documentation and package checks describe the new safety boundary.
|
|
14
|
+
|
|
15
|
+
## Installation or upgrade
|
|
16
|
+
|
|
17
|
+
For a new installation, preview the complete ownership plan before applying it:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
./install.sh --dry-run
|
|
21
|
+
./install.sh
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
For an existing manifest-owned installation, preview and apply the upgrade:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
./upgrade.sh --dry-run
|
|
28
|
+
./upgrade.sh
|
|
29
|
+
./doctor.sh
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The supported runtime contract remains Node.js `^22.9.0 || ^24.0.0` with
|
|
33
|
+
OpenCode `>=1.14.41 <2.0.0`.
|
|
34
|
+
|
|
35
|
+
## Migration
|
|
36
|
+
|
|
37
|
+
No migration is required. Existing installations can be upgraded using the
|
|
38
|
+
normal manifest-owned upgrade flow.
|
|
39
|
+
|
|
40
|
+
## Validation performed
|
|
41
|
+
|
|
42
|
+
Release readiness covers the public contract checks, unit and script tests,
|
|
43
|
+
type checking, dependency and signature audits, installation smoke, package
|
|
44
|
+
smoke, canonical version/tag validation, and the CI matrix for supported Node
|
|
45
|
+
and OpenCode compatibility versions.
|
|
46
|
+
|
|
47
|
+
## Public safety boundary
|
|
48
|
+
|
|
49
|
+
The public release excludes private OpenCode configuration, local provider and
|
|
50
|
+
MCP wiring, credentials, authentication files, raw transcripts, private
|
|
51
|
+
evidence, user-specific absolute paths, machine-local state, and private
|
|
52
|
+
specification or planning documents. Local provider, search, and MCP
|
|
53
|
+
integrations are not part of this release.
|
package/docs/security.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Security
|
|
2
2
|
|
|
3
|
+
The canonical [threat model](threat-model.md) documents the system boundaries,
|
|
4
|
+
abuse cases, control evidence, and residual risks. This page keeps the concise
|
|
5
|
+
operational guidance.
|
|
6
|
+
|
|
3
7
|
- Do not expose Open Design directly to the Internet without protection.
|
|
4
8
|
- Do not commit auth files, sessions, `.env`, logs, or provider credentials.
|
|
5
9
|
- Do not commit private product/design docs unless intended.
|
package/docs/supply-chain.md
CHANGED
|
@@ -16,6 +16,7 @@ the immutable identifier consumed by the repository.
|
|
|
16
16
|
| pnpm | 10.33.2 | exact version |
|
|
17
17
|
| opencode-ai | 1.14.31 | exact version |
|
|
18
18
|
| @babel/core override | 7.29.7 | exact version |
|
|
19
|
+
| brace-expansion override | 5.0.9 | exact version |
|
|
19
20
|
| uuid override | 14.0.0 | exact version |
|
|
20
21
|
<!-- supply-chain-pins:end -->
|
|
21
22
|
|
|
@@ -29,11 +30,12 @@ script exception requires a named dependency, a documented reason, and a
|
|
|
29
30
|
focused test. There is currently no exception.
|
|
30
31
|
|
|
31
32
|
The exact overrides exist for reviewable reasons: `@babel/core` 7.29.7 removes
|
|
32
|
-
the audited low-severity findings without an incompatible downgrade,
|
|
33
|
-
`
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
the audited low-severity findings without an incompatible downgrade,
|
|
34
|
+
`brace-expansion` 5.0.9 fixes GHSA-mh99-v99m-4gvg and GHSA-rgw5-rvv9-x895 in the transitive
|
|
35
|
+
OpenTUI/Babel resolution, and `uuid` 14.0.0 preserves the already tested
|
|
36
|
+
lockfile resolution. Change an override and regenerate the lockfile in the same
|
|
37
|
+
reviewed diff. Review every changed version, `resolved` URL, integrity value,
|
|
38
|
+
lifecycle script, and Git or non-registry dependency.
|
|
37
39
|
|
|
38
40
|
If installation preserves a target's differing `package.json` or
|
|
39
41
|
`package-lock.json`, the kit lockfile does not control that target. Review and
|
|
@@ -79,6 +81,8 @@ For each surface, also record:
|
|
|
79
81
|
build/load smoke.
|
|
80
82
|
- `@babel/core` override: advisory rationale, manifest/lockfile diff, low audit,
|
|
81
83
|
signature audit, import, and typecheck evidence.
|
|
84
|
+
- `brace-expansion` override: advisory rationale, manifest/lockfile diff, low
|
|
85
|
+
audit, signature audit, import, and full package smoke evidence.
|
|
82
86
|
- `uuid` override: compatibility rationale, manifest/lockfile diff, signature
|
|
83
87
|
audit, import, and typecheck evidence.
|
|
84
88
|
|