Skip to content

Document WSLC runtime architecture - #157

Merged
japperJ merged 3 commits into
masterfrom
japperj-wincontainer-fix
Sep 4, 2026
Merged

japperJ merged 3 commits into
masterfrom
japperj-wincontainer-fix

Conversation

@japperJ

@japperJ japperJ commented Sep 4, 2026 •

Copy link
Copy Markdown
Owner

Why

WinContainers is intentionally built around a WSLC-only runtime contract, but that design was not clearly documented in the main README. This update makes the architecture, ownership boundaries, and key runtime contracts easier to understand for future maintenance and debugging.

What changed

  • Added a runtime architecture section that shows how the app, service, runtime, and WSLC layers fit together.
  • Documented the repository boundaries for the app, service, runtime, and core command-building layers.
  • Called out the actual runtime contracts in use: WslcCommands, WslcContainerParser, WslcResourceParser, PortBindingConverter, ContainerConfigStore, and WslcDriver.
  • Clarified how container and resource parsing, port binding normalization, and access changes fit into the runtime model.

Notes

  • This is a documentation-only change; no runtime behavior was modified.
  • I did not add visuals.

Testing

  • N/A for this docs-only change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 4, 2026 08:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new README architecture section contains a few verifiable inaccuracies (diagram/component responsibilities and repo layout) that should be corrected to avoid misleading maintainers.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a new README section documenting WinContainers’ WSLC-only runtime architecture, with an emphasis on layer boundaries and the key runtime contracts that the rest of the app depends on.

Changes:

  • Introduces a “Runtime architecture” section describing the WSLC-only contract and separation of app/service/runtime responsibilities.
  • Adds a Mermaid flowchart illustrating the WSLC execution + parsing pipeline and how tests protect key contracts.
  • Documents repository boundaries and highlights key runtime components/contracts for maintenance/debugging.
File summaries
File Description
README.md Adds runtime architecture documentation (diagram, boundaries, and contract callouts) to clarify the WSLC-only design.
Review details

Suppressed comments (1)

README.md:102

  • This section describes WslcResourceParser as normalizing container/image data, but that responsibility is implemented in WslcContainerParser. Updating these bullets will keep the runtime contract documentation aligned with the actual code.
- `WslcCommands` is the canonical command builder; it turns app intent into WSLC arguments and is covered by contract tests.
- `WslcResourceParser` handles both JSON and fallback text outputs, normalizing container, image, network, and volume data before it reaches the UI.
- `PortBindingConverter` validates and normalizes published port mappings, including local-only vs LAN-enabled binding behavior.
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md Resolved
Comment thread README.md Resolved
japperJ and others added 2 commits September 4, 2026 10:13
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@japperJ
japperJ merged commit 023be41 into master Sep 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants