Repository navigation
Commit 83e202f
feat(acq-kits): add OpenDesign browser kit (#438)
## Summary
Adds an opt-in `opendesign` ACQ kit that runs OpenDesign headlessly
inside the sandbox as a browser-accessible design workspace.
The kit reuses the existing sandbox OpenCode CLI and keeps model
credentials on the ACQ/OpenCode path, especially when composed with
`usai-provider`.
## Content Type
- [ ] Skill
- [ ] Prompt
- [ ] Workflow
- [ ] Agent instructions
- [ ] Lesson learned
- [x] Integration / ACQ kit
## What Changed
- Added `integrations/isolation/acq-kits/opendesign/` with `hybrid/v1`
spec, installer, supervisor, verifier, README, troubleshooting, and
design records.
- Pins OpenDesign to `open-design-v0.24.0` and verifies commit
`0d3a14c1df6dc5017f3cc3ef05b24558250c220b`.
- Installs kit-managed Node `24.21.0` with SHA-256 verification and pnpm
`10.33.2`.
- Runs OpenDesign on guest port `7456` and publishes it via neutral
`publishedPorts`.
- Adds a `10G` persistent volume for OpenDesign source/state/tooling
under `/home/agent/.local/share/opendesign`.
- Seeds OpenDesign app config for `agentId: "opencode"`,
`onboardingCompleted: true`, and local telemetry disabled.
- Does not seed a default model.
- Does not copy `USAI_API_KEY` or any provider key into OpenDesign
state.
- Registers the kit in `kits.yaml` and the ACQ kits README.
## Safety Checklist
- [x] No secrets, tokens, credentials, or private keys
- [x] No PII, CUI, customer data, or sensitive info
- [x] No internal URLs or system details
- [x] Examples use placeholders
- [x] Credentials remain with ACQ/OpenCode, not persisted by the kit
## Security Impact
This adds a local browser daemon to the sandbox attack surface.
- OpenDesign binds `0.0.0.0:7456` inside the guest so ACQ/MSB
create-time port publishing can reach it.
- The host side is expected to be loopback-only through ACQ port
publishing.
- `OD_DISABLE_API_AUTH=1` is intentional for this trusted, single-user
ACQ browser kit posture, matching the approved direction during
implementation.
- Documentation explicitly warns not to forward the mapped port or use
it on an untrusted multi-user host.
- Live verification now checks both in-guest daemon/UI health and
host-loopback reachability.
## Adversarial Review Follow-Up
A sub-agent adversarial review flagged these issues and they were
addressed:
- Pinned pnpm store to the OpenDesign persistent volume.
- Replaced recursive startup `chown -R` with shallow ownership
initialization.
- Made verifier output explicit about skipped schema validation.
- Strengthened live credential check to look for the injected secret
value, not just the variable name.
- Kept auth-disabled posture as an intentional accepted risk documented
in README and ADR.
## Verification
Local verification run in this agent sandbox:
```text
integrations/isolation/acq-kits/opendesign/scripts/verify
Result: 15 passed, 0 failed, 1 skipped
Note: schema validator skipped here because this sandbox lacks jsonschema/pyyaml.
```
```text
bash -n integrations/isolation/acq-kits/opendesign/scripts/verify
sh -n integrations/isolation/acq-kits/opendesign/files/home/opendesign-install.sh
sh -n integrations/isolation/acq-kits/opendesign/files/home/opendesign-start.sh
git diff --check
Result: passed
```
Host verification performed by maintainer during development:
```text
python integrations/isolation/acq-kits/validate-kits.py --strict
Result: all 8 acq-kits valid, including opendesign
```
```text
integrations/isolation/acq-kits/opendesign/scripts/verify
Result: 13 passed, 0 failed before later verifier hardening
```
```text
KEEP=1 RUN_ACQ=1 READY_TIMEOUT=1200 integrations/isolation/acq-kits/opendesign/scripts/verify
Observed:
- volume ownership corrected to agent:agent
- OpenDesign source install completed
- Next/OpenDesign web build completed after increasing Node heap
- daemon/UI reachable inside sandbox
- OpenCode present on PATH
- app-config seeded correctly:
{"agentId":"opencode","onboardingCompleted":true,"telemetry":{"metrics":false,"content":false,"artifactManifest":false}}
- guest port 7456 reported as mapped by `acq ports`
```
Residual host-side follow-up:
```text
A browser attempt against http://127.0.0.1:7456 initially returned ERR_CONNECTION_REFUSED despite `acq ports` reporting a mapping. The verifier was updated to curl the reported host-loopback URL so this cannot be missed in the next live run.
```
## Rollback
Remove `integrations/isolation/acq-kits/opendesign/` and delete the
`opendesign` entries from `integrations/isolation/acq-kits/kits.yaml`
and `integrations/isolation/acq-kits/README.md`.
## AI Assistance
This PR was developed with AI assistance from OpenCode.
---------
Co-authored-by: OpenCode Agent <[email protected]>
Co-authored-by: OpenCode Agent <[email protected]>1 parent c3a6dac commit 83e202f
19 files changed
Lines changed: 2137 additions & 31 deletions
File tree
- .github/linters
- integrations/isolation/acq-kits
- opendesign
- docs/decisions
- files/home
- scripts
- pi-coding-agent
- docs/decisions
- scripts/tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
101 | 121 | | |
102 | 122 | | |
103 | 123 | | |
| |||
133 | 153 | | |
134 | 154 | | |
135 | 155 | | |
136 | | - | |
137 | | - | |
| 156 | + | |
| 157 | + | |
138 | 158 | | |
139 | 159 | | |
140 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
0 commit comments