opencode-agent-orchestration-kit 1.0.42 → 1.0.44

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 (46) hide show
  1. package/README.md +12 -5
  2. package/docker/open-design/data/app.sqlite +0 -0
  3. package/docker/open-design/data/app.sqlite-shm +0 -0
  4. package/docker/open-design/data/app.sqlite-wal +0 -0
  5. package/docker/open-design/opencode-auth/log/2026-05-02T105802.log +17 -0
  6. package/docker/open-design/opencode-auth/log/2026-05-04T102127.log +16 -0
  7. package/docker/open-design/opencode-auth/opencode.db +0 -0
  8. package/docker/open-design/opencode-auth/opencode.db-shm +0 -0
  9. package/docker/open-design/opencode-auth/opencode.db-wal +0 -0
  10. package/docs/compatibility.md +13 -1
  11. package/docs/installation.md +5 -0
  12. package/docs/models.md +1 -1
  13. package/docs/releases/v1.0.28.md +1 -2
  14. package/docs/releases/v1.0.29.md +1 -2
  15. package/docs/releases/v1.0.43.md +67 -0
  16. package/docs/releases/v1.0.44.md +67 -0
  17. package/docs/superpowers/specs/2026-07-20-safe-installation-lifecycle-design.md +9 -5
  18. package/opencode/agents/developer.md +8 -0
  19. package/opencode/agents/lead.md +51 -21
  20. package/opencode/agents/researcher.md +14 -0
  21. package/opencode/agents/review_coordinator.md +2 -2
  22. package/opencode/agents/reviewer.md +22 -0
  23. package/opencode/agents/specifier.md +8 -0
  24. package/opencode/commands/review-orchestrated.md +1 -1
  25. package/opencode/docs/ai/evolution/benchmarks/replay-fixtures-red.jsonl +2 -0
  26. package/opencode/docs/ai/evolution/benchmarks/router-scenarios-red.jsonl +2 -0
  27. package/opencode/docs/ai/harness/agents.md +53 -2
  28. package/opencode/docs/ai/harness/orchestrated-review.md +11 -3
  29. package/opencode/docs/ai/harness/playbooks/lead-ahe-flow.md +43 -0
  30. package/opencode/package-lock.json +30 -27
  31. package/opencode/scripts/check-harness.mjs +28 -4
  32. package/opencode/scripts/check-harness.test.mjs +74 -0
  33. package/opencode/scripts/collect-session-evidence.mjs +197 -9
  34. package/opencode/scripts/collect-session-evidence.test.mjs +151 -0
  35. package/opencode/scripts/replay-routing.test.mjs +58 -0
  36. package/opencode/scripts/review-orchestrated-prepare.mjs +1 -1
  37. package/opencode/scripts/review-orchestrated-prepare.test.mjs +9 -0
  38. package/opencode/scripts/update-skill-registry.mjs +3 -2
  39. package/package.json +1 -1
  40. package/scripts/benchmark-tool-paths.mjs +1 -1
  41. package/scripts/check-public-boundary.mjs +1 -0
  42. package/scripts/manage-installation.mjs +17 -5
  43. package/scripts/manage-installation.test.mjs +61 -0
  44. package/scripts/package-smoke.test.mjs +2 -2
  45. package/scripts/version.test.mjs +2 -2
  46. package/docs/synology.md +0 -30
@@ -13,6 +13,7 @@ import {
13
13
  buildPlan,
14
14
  canonicalManifestBytes,
15
15
  createInstallationManager,
16
+ fsyncDirectory,
16
17
  inventorySource,
17
18
  inspectInstallation,
18
19
  main,
@@ -1567,6 +1568,66 @@ test("[S094] ambiguous PID-probe errors fail closed", async (t) => {
1567
1568
  assert.equal(fs.existsSync(path.join(targetRoot, ".oak", "lock.json")), true);
1568
1569
  });
1569
1570
 
1571
+ test("[S137] Windows directory fsync skips directory handles", () => {
1572
+ let opened = false;
1573
+ const fsOps = {
1574
+ openSync() {
1575
+ opened = true;
1576
+ throw new Error("directory handles are not supported");
1577
+ },
1578
+ };
1579
+
1580
+ assert.doesNotThrow(() => fsyncDirectory("/tmp/oak", fsOps, "win32"));
1581
+ assert.equal(opened, false);
1582
+ });
1583
+
1584
+ test("[S138] failed lock acquisition cleans only its own published lock", async (t) => {
1585
+ const first = makeFixture(t);
1586
+ put(first.sourceRoot, "agents/lead.md", "lead\n");
1587
+ const oakPath = path.join(first.targetRoot, ".oak");
1588
+ let regularFileFsyncs = 0;
1589
+ const failingFs = new Proxy(fs, {
1590
+ get(target, property) {
1591
+ if (property === "openSync") {
1592
+ return (fullPath, ...args) => {
1593
+ if (fullPath === oakPath) throw Object.assign(new Error("directory fsync failed"), { code: "EIO" });
1594
+ return target.openSync(fullPath, ...args);
1595
+ };
1596
+ }
1597
+ if (property === "fsyncSync") {
1598
+ return (descriptor) => {
1599
+ regularFileFsyncs += 1;
1600
+ return target.fsyncSync(descriptor);
1601
+ };
1602
+ }
1603
+ const value = Reflect.get(target, property);
1604
+ return typeof value === "function" ? value.bind(target) : value;
1605
+ },
1606
+ });
1607
+
1608
+ const failed = await managerFixture(first.sourceRoot, { fsOps: failingFs }).run("install", {
1609
+ targetRoot: first.targetRoot,
1610
+ });
1611
+ assert.equal(failed.exitCode, 2);
1612
+ assert.equal(regularFileFsyncs, 1);
1613
+ assert.equal(fs.existsSync(path.join(first.targetRoot, ".oak", "lock.json")), false);
1614
+ assert.equal(fs.existsSync(path.join(first.targetRoot, ".oak", "transaction.json")), false);
1615
+
1616
+ const second = makeFixture(t);
1617
+ put(second.sourceRoot, "agents/lead.md", "lead\n");
1618
+ fs.mkdirSync(path.join(second.targetRoot, ".oak"), { recursive: true });
1619
+ const lockPath = path.join(second.targetRoot, ".oak", "lock.json");
1620
+ fs.writeFileSync(lockPath, `${JSON.stringify({
1621
+ transaction_id: "existing", pid: 4321, command: "install", created_at: "2026-07-20T00:00:00.000Z",
1622
+ })}\n`);
1623
+ const before = fs.readFileSync(lockPath);
1624
+ const blocked = await managerFixture(second.sourceRoot, { fsOps: failingFs }).run("install", {
1625
+ targetRoot: second.targetRoot,
1626
+ });
1627
+ assert.equal(blocked.exitCode, 1);
1628
+ assert.deepEqual(fs.readFileSync(lockPath), before);
1629
+ });
1630
+
1570
1631
  test("[S043] failure before journal creation leaves zero persistent state", async (t) => {
1571
1632
  const { sourceRoot, targetRoot } = makeFixture(t);
1572
1633
  put(sourceRoot, "agents/lead.md", "lead\n");
@@ -17,7 +17,7 @@ import {
17
17
 
18
18
  const ROOT = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
19
19
  const HASH = "a".repeat(64);
20
- const BASENAME = "opencode-agent-orchestration-kit-1.0.42.tgz";
20
+ const BASENAME = "opencode-agent-orchestration-kit-1.0.44.tgz";
21
21
  const REQUIRED = [
22
22
  "package/package.json",
23
23
  "package/supply-chain.json",
@@ -210,7 +210,7 @@ test("smokeTarball validates both archive listings before extraction", async ()
210
210
  await assert.rejects(
211
211
  smokeTarball({
212
212
  repositoryRoot: ROOT,
213
- tarball: "/public/opencode-agent-orchestration-kit-1.0.42.tgz",
213
+ tarball: "/public/opencode-agent-orchestration-kit-1.0.44.tgz",
214
214
  captureTarball(_source, destination) {
215
215
  fs.writeFileSync(destination, "fixture");
216
216
  return { size: 1 };
@@ -109,7 +109,7 @@ test("[V004] direct version entrypoints are exact and mutation-free", (t) => {
109
109
  for (const args of [["scripts/version.mjs"], ["scripts/manage-installation.mjs", "--version"]]) {
110
110
  const result = run(process.execPath, args, { HOME: home });
111
111
  assert.equal(result.status, 0, result.stderr);
112
- assert.equal(result.stdout, "opencode-agent-orchestration-kit 1.0.42\n");
112
+ assert.equal(result.stdout, "opencode-agent-orchestration-kit 1.0.44\n");
113
113
  assert.equal(fs.existsSync(target), false);
114
114
  }
115
115
  });
@@ -118,7 +118,7 @@ test("[V005] all lifecycle wrappers expose the canonical version", () => {
118
118
  for (const wrapper of ["install.sh", "upgrade.sh", "doctor.sh", "uninstall.sh", "rollback.sh"]) {
119
119
  const result = run(path.join(REPOSITORY_ROOT, wrapper), ["--version"]);
120
120
  assert.equal(result.status, 0, `${wrapper}: ${result.stderr}`);
121
- assert.equal(result.stdout, "opencode-agent-orchestration-kit 1.0.42\n", wrapper);
121
+ assert.equal(result.stdout, "opencode-agent-orchestration-kit 1.0.44\n", wrapper);
122
122
  }
123
123
  });
124
124
 
package/docs/synology.md DELETED
@@ -1,30 +0,0 @@
1
- # Synology Deployment
2
-
3
- Use Container Manager or Docker Compose.
4
-
5
- Recommended setup:
6
-
7
- 1. Build the image from `docker/open-design`.
8
- 2. Keep volumes for `data` and `opencode-auth` outside git.
9
- 3. Map port `7456` only on trusted LAN unless protected.
10
- 4. Configure Synology reverse proxy with HTTPS if exposing beyond localhost.
11
- 5. Protect public access with VPN, Tailscale, WireGuard, or authentication.
12
-
13
- The Dockerfile pins Open Design and OpenCode CLI build inputs. To update them,
14
- build with explicit args instead of editing to a floating branch or `latest`:
15
-
16
- ```bash
17
- docker compose build \
18
- --build-arg OPEN_DESIGN_REF=<commit-sha> \
19
- --build-arg OPENCODE_AI_VERSION=<version>
20
- docker compose up -d
21
- ```
22
-
23
- Useful operations:
24
-
25
- ```bash
26
- docker compose logs -f
27
- docker compose restart
28
- docker compose pull
29
- docker compose up -d --build
30
- ```