Skip to content

Commit b903041

Browse files
committed
docs(openspec): add harden-opencode-runtime-integration spec.md
1 parent b2f7d93 commit b903041

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

  • openspec/changes/harden-opencode-runtime-integration/specs/configuration-model
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Delta for Configuration Model
2+
3+
## MODIFIED Requirements
4+
5+
### Requirement: Server configuration is represented explicitly
6+
7+
The configuration DTO MUST expose OpenCode server configuration using a typed or typed-plus-extensible model appropriate to the upstream schema.
8+
9+
#### Scenario: Read server config
10+
11+
- GIVEN the server returns a configuration object containing `server`
12+
- WHEN the SDK deserializes it
13+
- THEN callers MUST be able to access that server configuration without manually traversing a raw root map
14+
15+
### Requirement: Unknown configuration fields survive round trip
16+
17+
The SDK MUST preserve unknown configuration properties during read-modify-write workflows.
18+
19+
#### Scenario: Upstream introduces a new root property
20+
21+
- GIVEN the OpenCode server returns a root configuration property unknown to this SDK version
22+
- WHEN the SDK deserializes and later serializes the configuration object
23+
- THEN the unknown property MUST remain present unless the caller explicitly removes it

0 commit comments

Comments
 (0)