File tree Expand file tree Collapse file tree
openspec/changes/harden-opencode-runtime-integration/specs/configuration-model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments