Skip to content

Open-source skills for designing and reviewing software with AI agents

Document runtime packaging and release designs

Oliver Newthd15ed0cbea87
diff --git a/docs/designs/README.md b/docs/designs/README.md
index d9b56d9..1452ede 100644
--- a/docs/designs/README.md
+++ b/docs/designs/README.md
@@ -6,6 +6,8 @@ operational guardrails.
| Document | Author | Primary Component |
| :------- | :----- | :---------------- |
+| [runtime_packaging.md](runtime_packaging.md)<br>Draft runtime package boundaries, permissions, and validation. | [@n3wth](https://github.com/n3wth) | Runtime packaging proposal (#120) |
+| [releases.md](releases.md)<br>Draft versioned archives, checksums, and manual release procedure. | [@n3wth](https://github.com/n3wth) | Release proposal (#128) |
| [architecture.md](architecture.md)<br>System architecture of the EGM framework covering component models, end-to-end dataflow, and agent lifecycle. | [@quinnjim](https://github.com/quinnjim), [@eewing314](https://github.com/eewing314) | [EGM Framework Architecture](../../README.md) |
| [brainstorm.md](brainstorm.md)<br>Fast zero-doc ideation tool using a 6-lens Goldfish swarm to audit and stress-test early concepts before drafting. | [@briansuchy](https://github.com/briansuchy) | [`egm_brainstorm`](../../skills/egm_brainstorm/SKILL.md) |
| [draft.md](draft.md)<br>Iterative section-by-section specification drafting protocol and semantic boundary definitions. | [@quinnjim](https://github.com/quinnjim), [@eewing314](https://github.com/eewing314) | [`egm_draft`](../../skills/egm_draft/SKILL.md) |
diff --git a/docs/designs/releases.md b/docs/designs/releases.md
new file mode 100644
index 0000000..3141a1b
--- /dev/null
+++ b/docs/designs/releases.md
@@ -0,0 +1,78 @@
+# Versioned runtime releases
+
+Status: Draft. Maintainer scope approval and design review are pending.
+Author: @n3wth. Date: 2026-10-24.
+
+Related issue: #124. Proposed implementation: #128, dependent on #120.
+
+## Problem and scope
+
+Users need identifiable archives built from a reviewed commit. Prepare a draft
+release with source identity and checksums, then verify its exact artifacts
+before publication.
+
+Reuse the [runtime packaging design](runtime_packaging.md). Do not create tags
+automatically, publish automatically, run paid models in CI, or add host support.
+
+## Version and artifact contract
+
+Use the root plugin version as canonical. Require matching Claude and Codex
+manifest versions. Accept `vMAJOR.MINOR.PATCH` tags without leading zeroes.
+Never reuse a published version for changed artifacts.
+
+The proposed `scripts/prepare_release.py` accepts `--tag`, `--commit`, and
+`--output`. Require a full source SHA and a new output directory. Produce:
+
+- `egm-claude-VERSION.zip`
+- `egm-openai-VERSION.zip`
+- `SHA256SUMS`
+- `RELEASE_NOTES.md`, containing the source SHA, tag, and verification limits
+
+Local invocation validates the supplied values and builds archives. It does
+not prove Git ancestry or run tests. The workflow owns those checks.
+
+## Workflow and permissions
+
+Dispatch the workflow manually from `main` with an existing version tag. Resolve
+the tag to a commit and require that commit to be an ancestor of `main`. Check
+out that commit, run offline tests, and prepare its archives.
+
+The build job has read-only repository permission. A separate draft job receives
+the artifacts, verifies their checksums, rechecks tag identity, and creates a
+draft with contents-write permission. Duplicate release creation fails without
+replacing existing assets. Neither job creates tags or publishes releases.
+
+## Acceptance and release procedure
+
+1. Obtain scope approval for #124 and merge the reviewed design.
+2. Merge #120 after its design approval and renewed implementation review.
+3. Retarget #128 to `main`, refresh validation, and merge after approval.
+4. Select the reviewed version and commit. Regenerate packaged content and
+ validate all included runtime changes before a maintainer creates the tag.
+5. Dispatch the workflow. Inspect both archives, checksums, and source identity.
+6. Complete #60 for each claimed host using these exact artifacts. Record
+ installed-file identity, host/model versions, date, and separate installation,
+ workflow, and isolation results.
+7. Review final release notes and publish manually. Directory approval remains
+ separate from release publication.
+
+Test version mismatch, malformed tags and source IDs, archive contents,
+checksums, overwrite refusal, and generated freshness. Lint the workflow and
+validate its first real dispatch before accepting release preparation as done.
+
+Reuse historical host evidence only with an explicit explanation of its
+applicability. Do not present old candidate results as fresh artifact passes.
+Keep cloud support partial while #105 and #106 retain evidence gaps.
+
+## Failure handling and alternatives
+
+Leave a failed or unverified candidate unpublished. Build retries use a fresh
+local output directory. Do not replace a published archive or move its tag;
+prepare a corrected version instead.
+
+Hand-built releases can omit validation or source identity. Automatic publication
+would remove the final evidence review. A validated draft preserves that review
+without duplicating the package builder.
+
+This draft does not establish maintainer approval or claim an EGM design-review
+run. The issue remains open until the release workflow is validated.
diff --git a/docs/designs/runtime_packaging.md b/docs/designs/runtime_packaging.md
new file mode 100644
index 0000000..5929555
--- /dev/null
+++ b/docs/designs/runtime_packaging.md
@@ -0,0 +1,75 @@
+# Runtime packaging
+
+Status: Draft. Maintainer scope approval and design review are pending.
+Author: @n3wth. Date: 2026-10-24.
+
+Related issues: #121 and #122. Proposed implementation: #120.
+
+## Problem and scope
+
+Users need runtime packages with the resources required by each host. A full
+repository archive also contains development files and website assets.
+
+Build Claude and OpenAI runtime packages from one source tree. Preserve normal
+user-controlled permissions. Do not add new hosts, services, or automatic
+permission approval. Package validation does not establish directory approval
+or runtime support.
+
+## Package contract
+
+Use `scripts/pack_plugin.py`, proposed in #120, as the single builder.
+`--target claude|openai` selects the host. `--output` selects a new destination.
+Produce an `egm-TARGET` folder and an `egm-TARGET.zip` archive.
+
+Allowlist manifests, skills, references, personas, native adapters, required
+documentation, licenses, and image assets. Include SVG and PNG files under
+`docs/assets` for README images. Exclude website content, tests, workflows,
+hooks, development marketplace metadata, and unrelated files.
+
+Reject symlinks, paths outside the source tree, missing required files,
+unbundled manifest references, hooks, and unsupported MCP or app dependencies.
+Refuse an existing output folder or archive. A failed build can leave partial
+output; diagnose the failure and use a new destination for the next attempt.
+
+Sort archive entries and use fixed timestamps and file modes. Verify identical
+bytes under the same build environment. Do not claim reproducibility across
+untested toolchain versions.
+
+Generate `distributions/claude` from the same builder. Compare every path and
+byte against a fresh build in unit tests. Regenerate it when included source
+files change. Do not edit generated files independently.
+
+## Permissions and host boundaries
+
+Remove the automatic permission-approval hook. Keep bounded tools on Claude
+native adapters. Resource reads use normal host permissions. A denied read
+must stop the affected reviewer without a fabricated verdict.
+
+Test parent-context isolation separately from filesystem access and host-added
+instructions or memory. A Claude CLI probe does not establish Cowork behavior.
+OpenAI packaging does not establish support for every ChatGPT mode.
+
+## Validation and rollout
+
+- Test required content, image inclusion, exclusions, unsafe paths, missing
+ references, overwrite refusal, reproducibility, and generated freshness.
+- Verify allowed and denied resource reads against the generated runtime.
+- Record the source SHA, installed artifact identity, host/model version,
+ and separate installation, workflow, and isolation outcomes.
+- Preserve the evidence gaps tracked in #105 and #106.
+- Obtain scope approval and merge this design before merging #120.
+- Coordinate tagged artifacts through the [release design](releases.md).
+
+Directory publication in #121 and #122 remains separate. Confirm the owning
+account, policy links, publisher authority, and provider findings before
+submission. Close those issues only after verifying the published listing.
+
+## Alternatives and open decisions
+
+Separate hand-maintained packages would drift. A full repository ZIP includes
+unneeded development content. A shared allowlist keeps package boundaries
+explicit and reviewable.
+
+Maintainers must confirm whether #121/#122 provide the packaging approval path
+or identify another aligned issue. This draft does not imply that approval or
+an EGM design-review run has occurred.