opencode-agent-orchestration-kit 1.0.27
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/.github/CODEOWNERS +1 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +65 -0
- package/.github/ISSUE_TEMPLATE/config.yml +11 -0
- package/.github/ISSUE_TEMPLATE/documentation.yml +22 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +43 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +25 -0
- package/.github/workflows/check.yml +47 -0
- package/CODE_OF_CONDUCT.md +24 -0
- package/CONTRIBUTING.md +52 -0
- package/LICENSE +201 -0
- package/NOTICE.md +23 -0
- package/README.md +806 -0
- package/SECURITY.md +17 -0
- package/docker/open-design/.env.example +6 -0
- package/docker/open-design/Dockerfile +50 -0
- package/docker/open-design/docker-compose.yml +18 -0
- package/docker/open-design/opencode-od/agents/od-worker.md +22 -0
- package/docker/open-design/opencode-od/opencode.json +24 -0
- package/docs/agents.md +21 -0
- package/docs/commands.md +16 -0
- package/docs/configuration.md +30 -0
- package/docs/docker-open-design.md +42 -0
- package/docs/impeccable.md +18 -0
- package/docs/installation.md +176 -0
- package/docs/models.md +17 -0
- package/docs/open-design.md +25 -0
- package/docs/quickstart.md +74 -0
- package/docs/releases/v1.0.10.md +46 -0
- package/docs/releases/v1.0.14.md +39 -0
- package/docs/releases/v1.0.27.md +66 -0
- package/docs/security.md +8 -0
- package/docs/superpowers/plans/2026-07-20-safe-installation-lifecycle.md +779 -0
- package/docs/superpowers/plans/2026-07-20-version-identity-and-releases.md +590 -0
- package/docs/superpowers/specs/2026-07-20-safe-installation-lifecycle-design.md +1350 -0
- package/docs/superpowers/specs/2026-07-20-version-identity-and-releases-design.md +557 -0
- package/docs/superpowers.md +34 -0
- package/docs/synology.md +30 -0
- package/docs/troubleshooting.md +54 -0
- package/docs/workflows.md +44 -0
- package/doctor.sh +5 -0
- package/env.example +15 -0
- package/install.sh +5 -0
- package/opencode/AGENTS.md +104 -0
- package/opencode/agents/debugger.md +41 -0
- package/opencode/agents/designer.md +93 -0
- package/opencode/agents/developer.md +180 -0
- package/opencode/agents/evaluator.md +35 -0
- package/opencode/agents/evolver.md +31 -0
- package/opencode/agents/lead.md +251 -0
- package/opencode/agents/researcher.md +76 -0
- package/opencode/agents/review_api.md +34 -0
- package/opencode/agents/review_coordinator.md +111 -0
- package/opencode/agents/review_quality.md +35 -0
- package/opencode/agents/review_security.md +35 -0
- package/opencode/agents/review_tests.md +37 -0
- package/opencode/agents/reviewer.md +116 -0
- package/opencode/agents/scoper.md +75 -0
- package/opencode/agents/specifier.md +116 -0
- package/opencode/commands/code-simplify.md +36 -0
- package/opencode/commands/design.md +27 -0
- package/opencode/commands/evolve.md +165 -0
- package/opencode/commands/feature.md +67 -0
- package/opencode/commands/implement.md +11 -0
- package/opencode/commands/init.md +34 -0
- package/opencode/commands/loop.md +145 -0
- package/opencode/commands/mvp-spec.md +20 -0
- package/opencode/commands/plan.md +74 -0
- package/opencode/commands/research.md +12 -0
- package/opencode/commands/review-orchestrated.md +47 -0
- package/opencode/commands/review-preflight.md +26 -0
- package/opencode/commands/review.md +18 -0
- package/opencode/commands/scope.md +36 -0
- package/opencode/commands/spec.md +12 -0
- package/opencode/commands/test.md +40 -0
- package/opencode/docs/ai/evolution/README.md +135 -0
- package/opencode/docs/ai/evolution/benchmarks/manual-scenarios.md +123 -0
- package/opencode/docs/ai/evolution/benchmarks/router-scenarios.jsonl +8 -0
- package/opencode/docs/ai/evolution/evolution_history.md +83 -0
- package/opencode/docs/ai/evolution/mechanisms.jsonl +7 -0
- package/opencode/docs/ai/evolution/rejected_mechanisms.jsonl +2 -0
- package/opencode/docs/ai/evolution/runs/README.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/analysis/overview.md +12 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/change_evaluation.json +108 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/change_manifest.json +52 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/evaluation.md +19 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md +12 -0
- package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/analysis/overview.md +7 -0
- package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/change_evaluation.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/evaluation.md +19 -0
- package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/change_evaluation.json +66 -0
- package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/change_manifest.json +82 -0
- package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/evaluation.md +20 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/ahe-run-lifecycle-validator.md +40 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/evolve-evaluation-only-contract.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/open-design-tool-contract.md +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/slash-command-contract-coverage.md +40 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/pre_apply_approval.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/change_evaluation.json +252 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/change_manifest.json +210 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md +25 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/post_manifest_evaluation.md +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/pre_apply_evaluation.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/change_manifest.json +30 -0
- package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/evaluation.md +25 -0
- package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/change_manifest.json +29 -0
- package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/evaluation.md +18 -0
- package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/change_manifest.json +34 -0
- package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/evaluation.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/change_evaluation.json +12 -0
- package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/change_manifest.json +28 -0
- package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/evaluation.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/analysis/overview.md +9 -0
- package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/change_manifest.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/evaluation.md +18 -0
- package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/analysis/overview.md +12 -0
- package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/change_manifest.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/evaluation.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/analysis/overview.md +10 -0
- package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/change_manifest.json +30 -0
- package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/evaluation.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/analysis/overview.md +25 -0
- package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/change_evaluation.json +28 -0
- package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/change_manifest.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/evaluation.md +22 -0
- package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/analysis/overview.md +27 -0
- package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/change_evaluation.json +32 -0
- package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/change_manifest.json +49 -0
- package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/evaluation.md +92 -0
- package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/analysis/detail/token-vs-semantic.md +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/analysis/overview.md +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/evaluation.md +36 -0
- package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/change_evaluation.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/change_manifest.json +47 -0
- package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/evaluation.md +27 -0
- package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/analysis/overview.md +32 -0
- package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/change_evaluation.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/change_manifest.json +35 -0
- package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/evaluation.md +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/detail/pattern-1-feature-sidecar-false-positive.md +51 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/detail/pattern-2-checker-time-budget.md +52 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/overview.md +99 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/change_evaluation.json +61 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/change_manifest.json +61 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/evaluation.md +448 -0
- package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/analysis/detail/intake-gray-zone.md +65 -0
- package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/analysis/overview.md +172 -0
- package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/evaluation.md +226 -0
- package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/analysis/detail/plan-only-gray-zone.md +62 -0
- package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/analysis/overview.md +167 -0
- package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/evaluation.md +163 -0
- package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/analysis/overview.md +42 -0
- package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/change_evaluation.json +46 -0
- package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/change_manifest.json +57 -0
- package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/evaluation.md +48 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/analysis/detail/contract-vs-runtime-gap.md +163 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/analysis/detail/evidence-collection-blocker.md +134 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/analysis/overview.md +111 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/change_evaluation.json +52 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/change_manifest.json +50 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/evaluation.md +46 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/manifest-justification.md +48 -0
- package/opencode/docs/ai/evolution/session-sources.md +91 -0
- package/opencode/docs/ai/harness/README.md +32 -0
- package/opencode/docs/ai/harness/agents.md +148 -0
- package/opencode/docs/ai/harness/checks.md +119 -0
- package/opencode/docs/ai/harness/commands.md +391 -0
- package/opencode/docs/ai/harness/evidence.md +85 -0
- package/opencode/docs/ai/harness/init-detection-rules.md +160 -0
- package/opencode/docs/ai/harness/orchestrated-review.md +131 -0
- package/opencode/docs/ai/harness/skill-metadata-schema.md +198 -0
- package/opencode/docs/ai/harness/skill-resolution.md +202 -0
- package/opencode/docs/ai/harness/skill_registry.json +443 -0
- package/opencode/docs/ai/harness/skill_registry.md +43 -0
- package/opencode/docs/ai/project-context-template.md +53 -0
- package/opencode/opencode.json +38 -0
- package/opencode/package-lock.json +1717 -0
- package/opencode/package.json +11 -0
- package/opencode/plugins/token-tree-usage.tsx +206 -0
- package/opencode/references/performance-checklist.md +153 -0
- package/opencode/references/security-checklist.md +134 -0
- package/opencode/references/testing-patterns.md +236 -0
- package/opencode/scripts/check-harness.mjs +1572 -0
- package/opencode/scripts/check-harness.test.mjs +820 -0
- package/opencode/scripts/collect-session-evidence.mjs +612 -0
- package/opencode/scripts/collect-session-evidence.test.mjs +443 -0
- package/opencode/scripts/preflight-audit.mjs +497 -0
- package/opencode/scripts/preflight-audit.test.mjs +363 -0
- package/opencode/scripts/project-capability-snapshot.mjs +407 -0
- package/opencode/scripts/project-capability-snapshot.test.mjs +382 -0
- package/opencode/scripts/review-orchestrated-prepare.mjs +547 -0
- package/opencode/scripts/review-orchestrated-prepare.test.mjs +516 -0
- package/opencode/scripts/skill-resolver.mjs +585 -0
- package/opencode/scripts/skill-resolver.test.mjs +781 -0
- package/opencode/scripts/update-skill-registry.mjs +380 -0
- package/opencode/skills/api-and-interface-design/SKILL.md +315 -0
- package/opencode/skills/autonomous-loops/SKILL.md +312 -0
- package/opencode/skills/code-review-and-quality/SKILL.md +365 -0
- package/opencode/skills/code-simplification/SKILL.md +345 -0
- package/opencode/skills/context-engineering/SKILL.md +252 -0
- package/opencode/skills/debugging-and-error-recovery/SKILL.md +316 -0
- package/opencode/skills/documentation-and-adrs/SKILL.md +298 -0
- package/opencode/skills/doubt-driven-development/SKILL.md +168 -0
- package/opencode/skills/iterative-retrieval/SKILL.md +232 -0
- package/opencode/skills/open-design/SKILL.md +123 -0
- package/opencode/skills/performance-optimization/SKILL.md +365 -0
- package/opencode/skills/security-and-hardening/SKILL.md +369 -0
- package/opencode/skills/source-driven-development/SKILL.md +210 -0
- package/opencode/skills/test-driven-development/SKILL.md +406 -0
- package/opencode/skills/using-agent-skills/SKILL.md +194 -0
- package/opencode/skills/verification-loop/SKILL.md +162 -0
- package/opencode/tools/open_design.ts +361 -0
- package/opencode/tui.json +5 -0
- package/package.json +20 -0
- package/rollback.sh +5 -0
- package/scripts/check.sh +184 -0
- package/scripts/install-smoke.sh +111 -0
- package/scripts/manage-installation.mjs +1498 -0
- package/scripts/manage-installation.test.mjs +1936 -0
- package/scripts/version.mjs +197 -0
- package/scripts/version.test.mjs +195 -0
- package/uninstall.sh +5 -0
- package/upgrade.sh +5 -0
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
# Version Identity and Release Contract Design
|
|
2
|
+
|
|
3
|
+
## Status
|
|
4
|
+
|
|
5
|
+
Approved by independent review and the user; ready for implementation planning.
|
|
6
|
+
|
|
7
|
+
## Roadmap scope
|
|
8
|
+
|
|
9
|
+
This design covers Phase 1, Slice 1.3: canonical version identity and releases.
|
|
10
|
+
It builds on the release checks from Slice 1.1 and the installation manifest from
|
|
11
|
+
Slice 1.2. It does not publish a release.
|
|
12
|
+
|
|
13
|
+
## Problem
|
|
14
|
+
|
|
15
|
+
The repository currently exposes incompatible version histories:
|
|
16
|
+
|
|
17
|
+
- the newest local and remote tag is `v1.0.26`;
|
|
18
|
+
- the newest GitHub Release visible during preflight is `v1.0.22`;
|
|
19
|
+
- the root `package.json` still declares `0.1.0`;
|
|
20
|
+
- only `v1.0.10` and `v1.0.14` have checked-in release-note documents;
|
|
21
|
+
- the installation manifest identifies its schema and payload digest, but not
|
|
22
|
+
the kit release that produced it;
|
|
23
|
+
- the lifecycle wrappers and manager expose no version command;
|
|
24
|
+
- CI validates behavior but cannot reject a tag whose name disagrees with the
|
|
25
|
+
source version.
|
|
26
|
+
|
|
27
|
+
Consequently, a green check cannot prove which kit version was tested, an
|
|
28
|
+
installed manifest cannot report its originating release, and a tag can be
|
|
29
|
+
created over internally contradictory metadata.
|
|
30
|
+
|
|
31
|
+
The current functional baseline is healthy: `npm run check` passes all 245
|
|
32
|
+
tests. The public branch contains the completed but unpublished Slice 1.2 commit
|
|
33
|
+
and is one commit ahead of `origin/master`. The private OpenCode configuration is
|
|
34
|
+
clean and is not an input to this slice.
|
|
35
|
+
|
|
36
|
+
## Goals
|
|
37
|
+
|
|
38
|
+
1. Make the root `package.json` the single editable source of kit version.
|
|
39
|
+
2. Prepare stable version `1.0.27` without creating or publishing its tag.
|
|
40
|
+
3. Expose the same version identity through the lifecycle manager and all five
|
|
41
|
+
shell wrappers.
|
|
42
|
+
4. Persist the originating kit version in installation and transaction state.
|
|
43
|
+
5. Detect contradictory version, payload, release-note, and tag state
|
|
44
|
+
mechanically.
|
|
45
|
+
6. Make `doctor`, `upgrade`, recovery, and rollback version-aware without adding
|
|
46
|
+
network access or a new package dependency.
|
|
47
|
+
7. Define a release gate that remains manual and human-authorized.
|
|
48
|
+
|
|
49
|
+
## Non-goals
|
|
50
|
+
|
|
51
|
+
- Creating, pushing, moving, or deleting a Git tag.
|
|
52
|
+
- Creating or editing a GitHub Release.
|
|
53
|
+
- Publishing an npm package.
|
|
54
|
+
- Automatically incrementing the version.
|
|
55
|
+
- Backfilling release-note files for `v1.0.15` through `v1.0.26`.
|
|
56
|
+
- Declaring the OpenCode, Node, operating-system, or optional-integration
|
|
57
|
+
compatibility matrix from Slice 1.4.
|
|
58
|
+
- Adding checksums, signatures, provenance attestations, an SBOM, or other Slice
|
|
59
|
+
1.5 supply-chain mechanisms.
|
|
60
|
+
- Building the future `oak` CLI from Slice 3.2.
|
|
61
|
+
- Adding prerelease or build-metadata policy before a demonstrated need.
|
|
62
|
+
- Querying GitHub, npm, or another remote service during normal version checks
|
|
63
|
+
or lifecycle operations.
|
|
64
|
+
|
|
65
|
+
## Chosen approach
|
|
66
|
+
|
|
67
|
+
The root `package.json` is the only editable version source. The implementation
|
|
68
|
+
sets its `version` to `1.0.27`. All other surfaces consume or validate that
|
|
69
|
+
value; none stores an independently editable copy except durable installation
|
|
70
|
+
state and the release-note filename that intentionally records historical
|
|
71
|
+
identity.
|
|
72
|
+
|
|
73
|
+
The accepted public release format is exactly three non-negative decimal
|
|
74
|
+
components:
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
MAJOR.MINOR.PATCH
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Each component is `0` or a non-zero digit followed by digits. Leading zeroes,
|
|
81
|
+
prefix `v`, surrounding whitespace, prerelease identifiers, and build metadata
|
|
82
|
+
are invalid in this slice. Git tags add exactly one lowercase `v`, producing
|
|
83
|
+
`vMAJOR.MINOR.PATCH`.
|
|
84
|
+
|
|
85
|
+
A standalone `VERSION` file was rejected because it would add another source
|
|
86
|
+
that could drift from Node package metadata. Git tags were rejected as the
|
|
87
|
+
source of truth because source archives, shallow clones, untagged development
|
|
88
|
+
commits, and installed configurations may not have tag metadata.
|
|
89
|
+
|
|
90
|
+
## Version module
|
|
91
|
+
|
|
92
|
+
Add a dependency-free ESM module at `scripts/version.mjs`. It owns only version
|
|
93
|
+
identity and comparison. It must not perform installation mutations, Git
|
|
94
|
+
network operations, version increments, or release publication.
|
|
95
|
+
|
|
96
|
+
The module exports focused functions equivalent to:
|
|
97
|
+
|
|
98
|
+
```text
|
|
99
|
+
parseStableVersion(value)
|
|
100
|
+
compareStableVersions(left, right)
|
|
101
|
+
readCanonicalVersion(repositoryRoot)
|
|
102
|
+
formatVersion(version)
|
|
103
|
+
checkVersionContract(options)
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
`parseStableVersion` returns numeric major, minor, and patch components and the
|
|
107
|
+
canonical string, or rejects the value. Comparison is numeric per component;
|
|
108
|
+
string or locale comparison is forbidden. Inputs larger than JavaScript's safe
|
|
109
|
+
integer range are rejected rather than rounded.
|
|
110
|
+
|
|
111
|
+
`readCanonicalVersion` reads the root `package.json` as a regular file, parses
|
|
112
|
+
JSON, validates its exact public package name and version format, and returns the
|
|
113
|
+
canonical version. It does not read `opencode/package.json`, Git tags, release
|
|
114
|
+
badges, or installation state as competing sources.
|
|
115
|
+
|
|
116
|
+
The command:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
node scripts/version.mjs
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
prints exactly:
|
|
123
|
+
|
|
124
|
+
```text
|
|
125
|
+
opencode-agent-orchestration-kit 1.0.27
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
with one trailing newline and exit status zero. Invalid or contradictory state
|
|
129
|
+
prints a concise diagnostic to stderr and exits with status two. The output
|
|
130
|
+
contains no local path, environment value, Git remote, or package contents.
|
|
131
|
+
|
|
132
|
+
## Lifecycle version interface
|
|
133
|
+
|
|
134
|
+
The lifecycle entrypoint recognizes `--version` before command parsing:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
node scripts/manage-installation.mjs --version
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Each existing wrapper passes `--version` through and therefore prints the same
|
|
141
|
+
line without target resolution, source inventory, lock acquisition, manifest
|
|
142
|
+
access, or filesystem mutation:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
./install.sh --version
|
|
146
|
+
./upgrade.sh --version
|
|
147
|
+
./doctor.sh --version
|
|
148
|
+
./uninstall.sh --version
|
|
149
|
+
./rollback.sh --version
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
`--version` is valid only as the sole argument. Combinations such as
|
|
153
|
+
`--version --target PATH` fail with status two. Existing help output and normal
|
|
154
|
+
command parsing remain unchanged.
|
|
155
|
+
|
|
156
|
+
The manager imports the canonical reader from `scripts/version.mjs`. It must not
|
|
157
|
+
embed a second `KIT_VERSION = "1.0.27"` constant. Tests inject a version reader
|
|
158
|
+
or repository root where isolation is needed; they do not rewrite the real
|
|
159
|
+
`package.json` concurrently.
|
|
160
|
+
|
|
161
|
+
## Manifest version identity
|
|
162
|
+
|
|
163
|
+
Slice 1.2's manifest schema remains `schema_version: 1` because that manifest
|
|
164
|
+
format has not been published. Before its first public release, add one required
|
|
165
|
+
field:
|
|
166
|
+
|
|
167
|
+
```json
|
|
168
|
+
{
|
|
169
|
+
"schema_version": 1,
|
|
170
|
+
"manager": "opencode-agent-orchestration-kit",
|
|
171
|
+
"kit_version": "1.0.27",
|
|
172
|
+
"payload_sha256": "hex digest"
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
`schema_version` identifies the metadata format. `kit_version` identifies the
|
|
177
|
+
kit release whose payload and ownership state the manifest describes. They are
|
|
178
|
+
independent and must never be inferred from each other.
|
|
179
|
+
|
|
180
|
+
Every complete manifest object, including `previous_manifest` and
|
|
181
|
+
`next_manifest` snapshots inside transaction and rollback journals, requires a
|
|
182
|
+
valid `kit_version`. Its canonical JSON bytes and digest include that field.
|
|
183
|
+
Adding or changing a kit version therefore changes the manifest digest even when
|
|
184
|
+
the owned-file set is identical.
|
|
185
|
+
|
|
186
|
+
The manifest validator rejects:
|
|
187
|
+
|
|
188
|
+
- a missing or unknown `kit_version` field;
|
|
189
|
+
- a non-string or non-canonical version;
|
|
190
|
+
- prefix `v`, whitespace, prerelease, metadata, or leading zeroes;
|
|
191
|
+
- a manifest digest computed without the version field;
|
|
192
|
+
- an otherwise valid transaction whose manifest snapshot fails these rules.
|
|
193
|
+
|
|
194
|
+
No separate transaction-level kit-version field is required. Complete previous
|
|
195
|
+
and next manifest snapshots already carry the relevant identities; install has
|
|
196
|
+
only next, uninstall has only previous, and upgrade or accept-preserved has both.
|
|
197
|
+
`source_payload_sha256` remains the journal's independent source-content guard.
|
|
198
|
+
|
|
199
|
+
## Unpublished experimental state
|
|
200
|
+
|
|
201
|
+
A Slice 1.2 manifest with `schema_version: 1` but no `kit_version` is invalid.
|
|
202
|
+
There is no automatic migration for this experimental format because no public
|
|
203
|
+
release shipped it. `doctor` reports the validation failure and mutation
|
|
204
|
+
commands fail closed without changing files.
|
|
205
|
+
|
|
206
|
+
The repair documentation may instruct a developer who used the unpublished
|
|
207
|
+
manager to preserve or back up the target, remove only the experimental `.oak`
|
|
208
|
+
state after explicit review, and reinstall. The implementation must not silently
|
|
209
|
+
invent a version or claim ownership from an invalid manifest.
|
|
210
|
+
|
|
211
|
+
Installations predating the ownership manifest remain governed by Slice 1.2's
|
|
212
|
+
existing path: inspect with dry-run, review collisions, and use install
|
|
213
|
+
`--force` only when intentionally adopting or replacing a managed collision.
|
|
214
|
+
|
|
215
|
+
## Doctor version states
|
|
216
|
+
|
|
217
|
+
`doctor` compares only the canonical source checkout and the local installation.
|
|
218
|
+
It performs no network request and does not claim to know the newest remote
|
|
219
|
+
release.
|
|
220
|
+
|
|
221
|
+
When doctor can parse enough state to produce its normal structured report, it
|
|
222
|
+
adds these fields without renaming or removing any existing report key:
|
|
223
|
+
|
|
224
|
+
```json
|
|
225
|
+
{
|
|
226
|
+
"sourceVersion": "1.0.27",
|
|
227
|
+
"installedVersion": "1.0.26",
|
|
228
|
+
"versionState": "upgrade-available"
|
|
229
|
+
}
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
`sourceVersion` is the canonical package version, or `null` only when that
|
|
233
|
+
source is invalid. `installedVersion` is the validated manifest `kit_version`,
|
|
234
|
+
or `null` when the manifest is absent or cannot supply a valid version.
|
|
235
|
+
`versionState` is always one of the states below when a structured report is
|
|
236
|
+
returned; it is never omitted. Existing fields such as `manifest`, `blockers`,
|
|
237
|
+
`warnings`, `activeTransaction`, `activeLock`, `rollbackAvailable`, and
|
|
238
|
+
`cleanupResidue` retain their current meaning.
|
|
239
|
+
|
|
240
|
+
The states are disjoint:
|
|
241
|
+
|
|
242
|
+
| State | Meaning | Exit behavior |
|
|
243
|
+
| --- | --- | --- |
|
|
244
|
+
| `not-installed` | `manifest.json` is absent | Existing not-installed behavior |
|
|
245
|
+
| `current` | Version and payload both match | Healthy unless another check is actionable |
|
|
246
|
+
| `upgrade-available` | Source version is greater | Action required; recommend upgrade dry-run |
|
|
247
|
+
| `source-older` | Source version is lower | Blocking; refuse accidental downgrade |
|
|
248
|
+
| `same-version-different-payload` | Version matches but payload differs | Blocking release-identity contradiction |
|
|
249
|
+
| `invalid-version-state` | `manifest.json` is present but invalid, or the canonical source version is invalid | Validation error; fail closed with exit two |
|
|
250
|
+
|
|
251
|
+
Manifest absence is never classified as invalid. Conversely, a present
|
|
252
|
+
manifest missing `kit_version`, containing malformed JSON, failing another
|
|
253
|
+
manifest invariant, or carrying a non-canonical version is never classified as
|
|
254
|
+
`not-installed`. When invalid bytes prevent extraction, `installedVersion` is
|
|
255
|
+
`null`; when the source package version is invalid, `sourceVersion` is `null`.
|
|
256
|
+
The diagnostic must identify which side is invalid without echoing manifest or
|
|
257
|
+
package contents. If an underlying filesystem error prevents even a safe
|
|
258
|
+
structured report, existing generic fail-closed error handling remains valid,
|
|
259
|
+
but it must not emit `not-installed`.
|
|
260
|
+
|
|
261
|
+
The human-readable doctor output names both versions when available and gives a
|
|
262
|
+
specific next action. It must not label `upgrade-available` as a remote update;
|
|
263
|
+
it means only that the local source checkout is newer than the installed state.
|
|
264
|
+
|
|
265
|
+
Other doctor findings retain their current precedence and semantics. A current
|
|
266
|
+
version does not override ownership drift, preserved-file warnings, active
|
|
267
|
+
transactions, locks, or cleanup residue.
|
|
268
|
+
|
|
269
|
+
## Install and upgrade rules
|
|
270
|
+
|
|
271
|
+
Initial install writes the canonical source version into the next manifest.
|
|
272
|
+
Install dry-run reports that version without creating target or `.oak` state.
|
|
273
|
+
|
|
274
|
+
Upgrade planning applies these version gates after validating current state and
|
|
275
|
+
before acquiring a lock:
|
|
276
|
+
|
|
277
|
+
1. Source version greater than installed version: normal Slice 1.2 planning may
|
|
278
|
+
continue.
|
|
279
|
+
2. Source version equal and payload equal: no-op.
|
|
280
|
+
3. Source version equal and payload different: block the complete upgrade with
|
|
281
|
+
`same-version-different-payload`; do not partially update files or manifest.
|
|
282
|
+
4. Source version lower: block with `source-older`; no downgrade flag is added.
|
|
283
|
+
|
|
284
|
+
An intentional return to the previous committed state uses existing one-step
|
|
285
|
+
rollback. Arbitrary downgrade installation is outside this slice.
|
|
286
|
+
|
|
287
|
+
`accept-preserved` is allowed only when source and installed kit versions match
|
|
288
|
+
and the existing Slice 1.2 acknowledgement rules pass. It changes preserved
|
|
289
|
+
baselines, not release identity. If the source version is newer, the user must
|
|
290
|
+
perform the normal upgrade flow rather than using acknowledgement to bypass a
|
|
291
|
+
version transition.
|
|
292
|
+
|
|
293
|
+
Uninstall preserves the previous version only in its rollback snapshot. Its
|
|
294
|
+
resulting active manifest remains absent as already specified.
|
|
295
|
+
|
|
296
|
+
## Recovery and rollback
|
|
297
|
+
|
|
298
|
+
Recovery validates version-bearing manifest snapshots before inspecting or
|
|
299
|
+
inverting file operations. It never substitutes the current checkout version
|
|
300
|
+
for a journal snapshot.
|
|
301
|
+
|
|
302
|
+
Rollback restores the exact previous manifest, including `kit_version`, or
|
|
303
|
+
restores manifest absence for rollback of an initial install. A committed
|
|
304
|
+
rollback must still compare canonical manifest presence and digest, so changing
|
|
305
|
+
only the recorded version is a blocking mismatch.
|
|
306
|
+
|
|
307
|
+
Interrupted forward and inverse operations retain their current durability,
|
|
308
|
+
lock, and progress rules. Version identity adds no new mutable recovery file and
|
|
309
|
+
no remote dependency.
|
|
310
|
+
|
|
311
|
+
## Release-note contract
|
|
312
|
+
|
|
313
|
+
The canonical release-note path for the current package version is:
|
|
314
|
+
|
|
315
|
+
```text
|
|
316
|
+
docs/releases/v1.0.27.md
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
The filename must equal `v${package.json.version}.md`. Its first heading must be:
|
|
320
|
+
|
|
321
|
+
```text
|
|
322
|
+
# v1.0.27 - <concise title>
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
The document contains at least:
|
|
326
|
+
|
|
327
|
+
- user-visible highlights;
|
|
328
|
+
- installation or upgrade instructions;
|
|
329
|
+
- migration notes, or an explicit statement that no migration is required;
|
|
330
|
+
- validation performed;
|
|
331
|
+
- the public-safety exclusion boundary.
|
|
332
|
+
|
|
333
|
+
The Slice 1.3 implementation prepares this document as release-ready source
|
|
334
|
+
material but does not create a GitHub Release. Missing historical checked-in
|
|
335
|
+
notes are recorded as pre-contract drift and are not backfilled. The new checker
|
|
336
|
+
requires only the note matching the current canonical version; it does not scan
|
|
337
|
+
every historical tag for a corresponding file.
|
|
338
|
+
|
|
339
|
+
The README keeps its dynamic latest-release badge. It must not add a hard-coded
|
|
340
|
+
"latest" version that becomes a new drift surface. Documentation may show
|
|
341
|
+
`1.0.27` only where describing the prepared release or an exact version-output
|
|
342
|
+
example.
|
|
343
|
+
|
|
344
|
+
## Mechanical version checker
|
|
345
|
+
|
|
346
|
+
`scripts/version.mjs --check` validates repository-local state:
|
|
347
|
+
|
|
348
|
+
1. root package name and stable version syntax;
|
|
349
|
+
2. the current release-note filename and heading;
|
|
350
|
+
3. lifecycle manager and wrapper `--version` output through behavioral tests,
|
|
351
|
+
not source-text duplication;
|
|
352
|
+
4. required `kit_version` manifest schema and fixtures through manager tests;
|
|
353
|
+
5. absence of a competing root `VERSION` file or independently declared kit
|
|
354
|
+
version in an allowlisted set of version-bearing configuration surfaces.
|
|
355
|
+
|
|
356
|
+
The checker does not search arbitrary prose for every version-shaped string;
|
|
357
|
+
dependency versions, historical notes, examples for external tools, schema
|
|
358
|
+
versions, and compatibility declarations are legitimate. Drift checks are
|
|
359
|
+
allowlisted to known authoritative or consumer surfaces.
|
|
360
|
+
|
|
361
|
+
Add `npm run check:version` for the standalone check. The fast contractual path
|
|
362
|
+
invokes it, and `npm run check` and `npm run check:release` inherit it.
|
|
363
|
+
|
|
364
|
+
The check uses no Git network operation. In an exported source tree without
|
|
365
|
+
`.git`, repository-local validation still works.
|
|
366
|
+
|
|
367
|
+
## Tag validation
|
|
368
|
+
|
|
369
|
+
Tag validation is an explicit mode, for example:
|
|
370
|
+
|
|
371
|
+
```bash
|
|
372
|
+
node scripts/version.mjs --check-tag v1.0.27
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
It validates that the supplied tag name equals `v${canonicalVersion}`. Empty,
|
|
376
|
+
multiple, malformed, or mismatched values exit non-zero. It does not create,
|
|
377
|
+
move, delete, fetch, or push a tag and does not decide whether a GitHub Release
|
|
378
|
+
exists.
|
|
379
|
+
|
|
380
|
+
The GitHub Actions workflow adds tag pushes matching `v*` to its existing
|
|
381
|
+
triggers. On a tag ref it runs tag validation against `GITHUB_REF_NAME` and then
|
|
382
|
+
the complete release-readiness suite. On branch pushes and pull requests it runs
|
|
383
|
+
the repository-local version check without requiring HEAD to be tagged.
|
|
384
|
+
|
|
385
|
+
This distinction permits multiple reviewed commits to prepare a release while
|
|
386
|
+
ensuring that the eventual tag cannot disagree with its source. A normal
|
|
387
|
+
development commit is not required to have a tag.
|
|
388
|
+
|
|
389
|
+
## Manual release procedure
|
|
390
|
+
|
|
391
|
+
After implementation is complete and only after separate human authorization,
|
|
392
|
+
the documented release sequence is:
|
|
393
|
+
|
|
394
|
+
1. Confirm a clean intended public tree and canonical version.
|
|
395
|
+
2. Run `npm run check:version`.
|
|
396
|
+
3. Run `npm run check:release`.
|
|
397
|
+
4. Inspect release notes and migration instructions.
|
|
398
|
+
5. Confirm that the intended tag does not already exist locally or remotely.
|
|
399
|
+
6. Commit all release-bearing source surfaces.
|
|
400
|
+
7. Create annotated tag `v1.0.27` on that exact commit.
|
|
401
|
+
8. Push the commit, then push that exact tag.
|
|
402
|
+
9. Confirm the remote tag target.
|
|
403
|
+
10. Create the GitHub Release from the checked-in release notes and confirm the
|
|
404
|
+
dynamic README badge resolves to it.
|
|
405
|
+
|
|
406
|
+
These are documentation requirements, not actions authorized by this slice.
|
|
407
|
+
An existing remote tag is immutable unless the user explicitly authorizes an
|
|
408
|
+
exception after reviewing its impact; the tooling never moves it silently.
|
|
409
|
+
|
|
410
|
+
## Expected implementation files
|
|
411
|
+
|
|
412
|
+
- `package.json`
|
|
413
|
+
- `scripts/version.mjs`
|
|
414
|
+
- `scripts/version.test.mjs`
|
|
415
|
+
- `scripts/manage-installation.mjs`
|
|
416
|
+
- `scripts/manage-installation.test.mjs`
|
|
417
|
+
- `scripts/check.sh`
|
|
418
|
+
- `.github/workflows/check.yml`
|
|
419
|
+
- `docs/releases/v1.0.27.md`
|
|
420
|
+
- `README.md`
|
|
421
|
+
- `docs/installation.md`
|
|
422
|
+
- `docs/quickstart.md` if needed to keep the release check unambiguous
|
|
423
|
+
|
|
424
|
+
The five shell wrappers should remain behavior-free. They need not change if
|
|
425
|
+
their existing argument pass-through already makes `--version` work.
|
|
426
|
+
|
|
427
|
+
No private OpenCode configuration, provider, MCP, credential, session,
|
|
428
|
+
transcript, memory, database, endpoint, or machine-local path is an input or
|
|
429
|
+
output of the implementation.
|
|
430
|
+
|
|
431
|
+
## Test scenarios
|
|
432
|
+
|
|
433
|
+
The implementation adds focused synthetic coverage for at least:
|
|
434
|
+
|
|
435
|
+
1. `package.json` version `1.0.27` parses canonically.
|
|
436
|
+
2. Prefix, leading zero, missing component, negative, prerelease, metadata,
|
|
437
|
+
whitespace, and unsafe-integer versions are rejected.
|
|
438
|
+
3. Numeric comparison handles `1.9.9 < 1.10.0` correctly.
|
|
439
|
+
4. Direct manager `--version` output is exact and mutation-free.
|
|
440
|
+
5. All five wrappers produce the identical version line and status.
|
|
441
|
+
6. `--version` combined with another argument is rejected.
|
|
442
|
+
7. Current release-note path and heading pass.
|
|
443
|
+
8. Missing, wrongly named, or wrongly headed current notes fail.
|
|
444
|
+
9. Historical missing release notes do not fail the current contract.
|
|
445
|
+
10. Matching and mismatching tag values pass and fail deterministically.
|
|
446
|
+
11. Branch/PR check mode does not require a tag.
|
|
447
|
+
12. Initial install persists `kit_version`.
|
|
448
|
+
13. Install dry-run reports identity and writes nothing.
|
|
449
|
+
14. Missing or malformed manifest `kit_version` fails closed.
|
|
450
|
+
15. Manifest canonical digest changes when only kit version changes.
|
|
451
|
+
16. Greater source version plans an upgrade.
|
|
452
|
+
17. Equal version and payload is a no-op.
|
|
453
|
+
18. Equal version with different payload blocks all writes.
|
|
454
|
+
19. Lower source version blocks all writes.
|
|
455
|
+
20. `accept-preserved` cannot bypass an available version upgrade.
|
|
456
|
+
21. Doctor reports every version state with actionable output and additive
|
|
457
|
+
`sourceVersion`, `installedVersion`, and `versionState` fields.
|
|
458
|
+
22. Manifest absence reports `not-installed`, a source version, and null
|
|
459
|
+
installed version; a present invalid manifest reports
|
|
460
|
+
`invalid-version-state` and never `not-installed`.
|
|
461
|
+
23. Upgrade commits the next version into manifest and rollback journal.
|
|
462
|
+
24. Rollback restores the exact earlier kit version.
|
|
463
|
+
25. Rollback of initial install restores manifest absence.
|
|
464
|
+
26. Interrupted recovery preserves snapshot versions rather than using the
|
|
465
|
+
current checkout.
|
|
466
|
+
27. Corrupt version state never weakens existing lock, conflict, ownership, or
|
|
467
|
+
recovery checks.
|
|
468
|
+
|
|
469
|
+
Existing Slice 1.2 scenario IDs remain unique. New scenarios may continue the
|
|
470
|
+
numbered series or use a separate version-contract series, but the chosen scheme
|
|
471
|
+
must be mechanically checked and documented in the implementation plan.
|
|
472
|
+
|
|
473
|
+
## Validation
|
|
474
|
+
|
|
475
|
+
The implementation plan must include, in order:
|
|
476
|
+
|
|
477
|
+
```bash
|
|
478
|
+
node --test scripts/version.test.mjs
|
|
479
|
+
node --test scripts/manage-installation.test.mjs
|
|
480
|
+
npm run check:version
|
|
481
|
+
npm run check
|
|
482
|
+
node scripts/version.mjs --check-tag v1.0.27
|
|
483
|
+
# mismatched tag command, expected non-zero
|
|
484
|
+
npm run check:release
|
|
485
|
+
git diff --check
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
The installation smoke must assert version-bearing manifests during install,
|
|
489
|
+
upgrade, rollback, and final doctor state. A tag mismatch is a tested expected
|
|
490
|
+
failure, not a failed release readiness run.
|
|
491
|
+
|
|
492
|
+
Before any later public commit or release, run the public leak scan required by
|
|
493
|
+
`opencode-public-sync`. The spec and synthetic tests must contain no private
|
|
494
|
+
paths, provider names, MCP wiring, credentials, raw evidence, or private
|
|
495
|
+
configuration.
|
|
496
|
+
|
|
497
|
+
## Acceptance criteria
|
|
498
|
+
|
|
499
|
+
- Root `package.json` is the sole editable kit-version source and declares
|
|
500
|
+
`1.0.27`.
|
|
501
|
+
- All lifecycle entrypoints emit one identical deterministic version line.
|
|
502
|
+
- Every valid manifest snapshot records and validates `kit_version`.
|
|
503
|
+
- Doctor distinguishes absent, valid, and present-but-invalid local version
|
|
504
|
+
states through a deterministic additive report shape without network access.
|
|
505
|
+
- Upgrade blocks downgrade and same-version/different-payload ambiguity before
|
|
506
|
+
mutation.
|
|
507
|
+
- Rollback and recovery preserve exact historical version identity.
|
|
508
|
+
- Current release notes are mechanically bound to the canonical version.
|
|
509
|
+
- Normal CI checks source consistency; tag CI additionally validates the tag and
|
|
510
|
+
runs the complete release suite.
|
|
511
|
+
- Historical release-note gaps are documented but do not create fabricated
|
|
512
|
+
artifacts.
|
|
513
|
+
- All focused and full validation passes.
|
|
514
|
+
- Independent review reports no unresolved Critical or Important finding.
|
|
515
|
+
- No commit, push, tag, GitHub Release, or npm publication occurs without a
|
|
516
|
+
separate explicit request.
|
|
517
|
+
|
|
518
|
+
## Failure and rollback strategy
|
|
519
|
+
|
|
520
|
+
During implementation, version-contract changes are one coherent public slice.
|
|
521
|
+
If validation fails, do not tag or publish the tree. Revert only the files owned
|
|
522
|
+
by Slice 1.3 or correct them under review; do not weaken validation or alter
|
|
523
|
+
unrelated history.
|
|
524
|
+
|
|
525
|
+
After a future release, runtime rollback uses the Slice 1.2 committed rollback
|
|
526
|
+
point and restores the earlier manifest version. Source-control rollback uses a
|
|
527
|
+
new corrective commit and a new version. Never move an already published tag to
|
|
528
|
+
hide a release mistake.
|
|
529
|
+
|
|
530
|
+
## Risks and mitigations
|
|
531
|
+
|
|
532
|
+
- **Unreleased manifest schema is mistaken for a published compatibility
|
|
533
|
+
promise.** Mitigation: document that required `kit_version` completes schema 1
|
|
534
|
+
before its first release; reject experimental incomplete state.
|
|
535
|
+
- **Version numbers appear legitimately in many files.** Mitigation: validate an
|
|
536
|
+
explicit surface allowlist rather than grepping all prose.
|
|
537
|
+
- **Same version is reused for changed payload.** Mitigation: block
|
|
538
|
+
same-version/different-payload upgrades and require the release operator to
|
|
539
|
+
bump the canonical version.
|
|
540
|
+
- **A lower checkout overwrites a newer installation.** Mitigation: block
|
|
541
|
+
downgrade; use committed rollback for the supported one-step reversal.
|
|
542
|
+
- **CI branch checks incorrectly require a tag.** Mitigation: isolate tag
|
|
543
|
+
validation to explicit tag context.
|
|
544
|
+
- **A tag is valid but no GitHub Release is created.** Mitigation: keep remote
|
|
545
|
+
publication human-gated and require post-push confirmation in the documented
|
|
546
|
+
release procedure; automatic release publication is out of scope.
|
|
547
|
+
- **Historical tags and GitHub Releases remain inconsistent.** Mitigation: treat
|
|
548
|
+
them as documented pre-contract history and enforce the contract from 1.0.27
|
|
549
|
+
forward without rewriting history.
|
|
550
|
+
|
|
551
|
+
## Handoff boundary
|
|
552
|
+
|
|
553
|
+
Approval of this specification authorizes only creation of an implementation
|
|
554
|
+
plan. It does not authorize implementation, commit, push, tag, release, or
|
|
555
|
+
publication. The plan must preserve the current public branch, include strict
|
|
556
|
+
test-first version and lifecycle scenarios, and require independent review
|
|
557
|
+
before any final consolidation.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Superpowers
|
|
2
|
+
|
|
3
|
+
Superpowers is not vendored in this repository.
|
|
4
|
+
|
|
5
|
+
The starter config references it through the upstream OpenCode plugin:
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"plugin": ["superpowers@git+https://github.com/obra/superpowers.git"]
|
|
10
|
+
}
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
When OpenCode starts, the plugin is resolved from upstream if plugin support and network access are available. If you keep an existing `opencode.json`, you must add the plugin entry yourself.
|
|
14
|
+
|
|
15
|
+
It provides workflow skills for:
|
|
16
|
+
|
|
17
|
+
- brainstorming;
|
|
18
|
+
- writing plans;
|
|
19
|
+
- executing plans;
|
|
20
|
+
- test-driven development;
|
|
21
|
+
- systematic debugging;
|
|
22
|
+
- verification before completion;
|
|
23
|
+
- requesting and receiving code review;
|
|
24
|
+
- finishing a development branch.
|
|
25
|
+
|
|
26
|
+
The kit uses Superpowers as discipline for the orchestrator, developer, and reviewer. It is not used by `designer`, which is intentionally restricted to `open-design` and `impeccable`.
|
|
27
|
+
|
|
28
|
+
To pin a version:
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"plugin": ["superpowers@git+https://github.com/obra/superpowers.git#v5.0.5"]
|
|
33
|
+
}
|
|
34
|
+
```
|
package/docs/synology.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
```
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Troubleshooting
|
|
2
|
+
|
|
3
|
+
## OPEN_DESIGN_URL is empty
|
|
4
|
+
|
|
5
|
+
Export the base URL:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
export OPEN_DESIGN_URL="https://open-design.example.com"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## curl /api/health fails
|
|
12
|
+
|
|
13
|
+
Check Open Design is running and reachable:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
curl -sS "$OPEN_DESIGN_URL/api/health"
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## opencode does not appear in /api/agents
|
|
20
|
+
|
|
21
|
+
Install OpenCode, ensure it is on `PATH`, and run `opencode auth login`.
|
|
22
|
+
|
|
23
|
+
## crypto.randomUUID fails on HTTP LAN
|
|
24
|
+
|
|
25
|
+
Prefer HTTPS. Browser secure-context rules can block APIs on plain HTTP remote hosts.
|
|
26
|
+
|
|
27
|
+
## jq is broken by another distribution
|
|
28
|
+
|
|
29
|
+
Use system package manager jq, or avoid jq in scripts. This kit's checks do not require jq.
|
|
30
|
+
|
|
31
|
+
## using-superpowers loads by accident
|
|
32
|
+
|
|
33
|
+
Check plugin config and agent skill permissions. Designer intentionally denies Superpowers.
|
|
34
|
+
|
|
35
|
+
## designer cannot see open-design
|
|
36
|
+
|
|
37
|
+
Verify `opencode/skills/open-design/SKILL.md` exists and `OPEN_DESIGN_URL` is set.
|
|
38
|
+
|
|
39
|
+
## tool accepts invented URL
|
|
40
|
+
|
|
41
|
+
It should not. `open_design.ts` must not expose URL arguments and must read only `OPEN_DESIGN_URL`.
|
|
42
|
+
|
|
43
|
+
## Docker permissions
|
|
44
|
+
|
|
45
|
+
Ensure mounted directories are writable by the container user.
|
|
46
|
+
|
|
47
|
+
## Auth in container
|
|
48
|
+
|
|
49
|
+
Run:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
docker exec -it open-design bash
|
|
53
|
+
opencode auth login
|
|
54
|
+
```
|