Context
Preview interfaces currently return a list of generated files. That is enough for rendering a dry-run, but some future consumers may need a complete, restorable representation of the generated workspace.
Before exposing a new format, we should identify whether a real consumer needs to restore, transfer, persist, or incrementally update a previewed workspace.
Potential benefits
- Restore or transfer exactly the workspace that was previewed.
- Support reproducible bug reports or saved Recipe Builder sessions.
- Provide a stable handoff for programmatic or remote consumers.
- Send smaller updates when two processes share a known base workspace.
Questions
- Which concrete consumer needs more than the existing file list?
- Should an artifact describe the complete workspace, only relevant repository state, or only generated changes?
- Which interface should produce and own it?
- What compatibility and versioning guarantees would it require?
- How would size limits and untrusted artifact decoding be handled?
- Should persistence belong to Stack Effect or to the embedding application?
Effect VFS snapshots and deltas demonstrate technical feasibility, but this discussion should not commit Stack Effect's domain interfaces to those implementation types. Any externally exchanged artifact should use a Stack Effect-owned, versioned schema at the scaffold or application seam so its storage encoding remains replaceable.
Useful outcome
Related
Context
Preview interfaces currently return a list of generated files. That is enough for rendering a dry-run, but some future consumers may need a complete, restorable representation of the generated workspace.
Before exposing a new format, we should identify whether a real consumer needs to restore, transfer, persist, or incrementally update a previewed workspace.
Potential benefits
Questions
Effect VFS snapshots and deltas demonstrate technical feasibility, but this discussion should not commit Stack Effect's domain interfaces to those implementation types. Any externally exchanged artifact should use a Stack Effect-owned, versioned schema at the scaffold or application seam so its storage encoding remains replaceable.
Useful outcome
Related
--output jsonflag forinitandaddcommands #123