Clarify public release dependency policy
This commit is contained in:
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
||||||
Accepted
|
Accepted. The release dependency and workspace restrictions are partially
|
||||||
|
superseded by [ADR 0007](0007-public-release-dependencies.md); the framework
|
||||||
|
split and remaining decisions stay in force.
|
||||||
|
|
||||||
## Date
|
## Date
|
||||||
|
|
||||||
|
|||||||
40
docs/adr/0007-public-release-dependencies.md
Normal file
40
docs/adr/0007-public-release-dependencies.md
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# ADR 0007: Public Release Dependencies
|
||||||
|
|
||||||
|
## Status
|
||||||
|
|
||||||
|
Accepted. Partially supersedes [ADR 0002](0002-split-promptkit-from-scriptorium.md).
|
||||||
|
|
||||||
|
## Date
|
||||||
|
|
||||||
|
2026-11-23.
|
||||||
|
|
||||||
|
## Context
|
||||||
|
|
||||||
|
Scriptorium adopts ReleaseKit to own release mechanics. Earlier restrictions
|
||||||
|
on tagged dependencies, local replacements, and workspace commits were
|
||||||
|
stronger than needed to keep releases independent of local checkouts.
|
||||||
|
|
||||||
|
## Decision
|
||||||
|
|
||||||
|
Releases depend on publicly available library sources and versions, independent
|
||||||
|
of local checkouts. This applies to all libraries, including release tooling;
|
||||||
|
development may use local checkouts. Ordinary dependency review assesses this
|
||||||
|
requirement without a dedicated enforcement mechanism or additional gate.
|
||||||
|
Vendoring and published versioned replacements are not violations by themselves.
|
||||||
|
ReleaseKit owns native release mechanics; Scriptorium selects its product
|
||||||
|
profile and retains its application and framework boundaries.
|
||||||
|
|
||||||
|
This replaces ADR 0002's tagged-dependency and local-replacement release
|
||||||
|
restrictions and its blanket workspace and filesystem-replacement commit
|
||||||
|
rules. Its framework split and other decisions remain in force.
|
||||||
|
|
||||||
|
## Alternatives Considered
|
||||||
|
|
||||||
|
Retaining blanket bans or introducing a dedicated dependency-source checker
|
||||||
|
would impose restrictions beyond the public-source release requirement.
|
||||||
|
|
||||||
|
## Consequences
|
||||||
|
|
||||||
|
Development can use local dependency arrangements while release dependencies
|
||||||
|
remain independently available. Release policy and ordinary review express
|
||||||
|
that distinction; native release checks are not duplicated or bypassed.
|
||||||
@@ -59,9 +59,9 @@ Before recommending, planning, or implementing work:
|
|||||||
| Examples or copyable assets | The owning Scriptorium contract, the relevant [PromptKit v0.25.0 format contract](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/formats.md), and the related files under `examples/` |
|
| Examples or copyable assets | The owning Scriptorium contract, the relevant [PromptKit v0.25.0 format contract](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/formats.md), and the related files under `examples/` |
|
||||||
| Architecture decisions or future work | The [documentation policy](policy/documentation.md), relevant accepted ADRs, and relevant roadmap documents |
|
| Architecture decisions or future work | The [documentation policy](policy/documentation.md), relevant accepted ADRs, and relevant roadmap documents |
|
||||||
|
|
||||||
Cross-project changes land and release in Promptkit before Scriptorium adopts
|
Local checkouts may be used for development. Releases follow the public-source
|
||||||
the tagged version. Do not commit a Go workspace, local replacement, vendored
|
dependency requirement in the [release policy](policy/release.md). Do not
|
||||||
Promptkit source, or an import of a Promptkit `internal` package.
|
import a PromptKit `internal` package.
|
||||||
The module graph can include upstream maintainer tools such as ReleaseKit and
|
The module graph can include upstream maintainer tools such as ReleaseKit and
|
||||||
their dependencies even though those graph-only packages are not linked into
|
their dependencies even though those graph-only packages are not linked into
|
||||||
the Scriptorium runtime; use `go list -deps ./cmd/scriptorium` to distinguish
|
the Scriptorium runtime; use `go list -deps ./cmd/scriptorium` to distinguish
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
**Base Policy Version:** 1.3
|
**Base Policy Version:** 1.3
|
||||||
|
|
||||||
**Last Updated**: 2026-11-22
|
**Last Updated**: 2026-11-23
|
||||||
|
|
||||||
**Upstream Source:** https://gitea.maximumdirect.net/eric/policy/src/commit/593c9b52273c5c879785ae9e995d21026df467b4/docs/policy/architecture.md
|
**Upstream Source:** https://gitea.maximumdirect.net/eric/policy/src/commit/593c9b52273c5c879785ae9e995d21026df467b4/docs/policy/architecture.md
|
||||||
|
|
||||||
@@ -89,11 +89,11 @@ Application code may import Promptkit's public root package, but not its
|
|||||||
Scriptorium framework facade or former framework package families.
|
Scriptorium framework facade or former framework package families.
|
||||||
Adapter-owned interfaces use Promptkit public values when a consumer-side
|
Adapter-owned interfaces use Promptkit public values when a consumer-side
|
||||||
substitution boundary is needed. Omitted framework settings pass as zero
|
substitution boundary is needed. Omitted framework settings pass as zero
|
||||||
values so Promptkit applies its own defaults. Cross-project changes land and
|
values so Promptkit applies its own defaults. Framework logic remains owned by
|
||||||
release in Promptkit before
|
PromptKit rather than an application-maintained copy; ordinary dependency
|
||||||
Scriptorium adopts its tagged dependency; do not commit Go workspaces, local
|
vendoring is distinct from maintaining such a copy. Local checkouts may be used
|
||||||
replacements, vendored Promptkit source, or unpublished dependency assumptions.
|
in development; the [release policy](release.md) governs release dependency
|
||||||
The repository's architecture guard protects these import and removal
|
sources. The repository's architecture guard protects these import and removal
|
||||||
boundaries. Adapter separation does not require an interface for every type,
|
boundaries. Adapter separation does not require an interface for every type,
|
||||||
extra wrappers, or a fixed directory tree.
|
extra wrappers, or a fixed directory tree.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
**Base Policy Version:** 1.7
|
**Base Policy Version:** 1.7
|
||||||
|
|
||||||
**Last Updated**: 2026-11-17
|
**Last Updated**: 2026-11-23
|
||||||
|
|
||||||
**Upstream Source:** https://gitea.maximumdirect.net/eric/policy/src/commit/593c9b52273c5c879785ae9e995d21026df467b4/docs/policy/release.md
|
**Upstream Source:** https://gitea.maximumdirect.net/eric/policy/src/commit/593c9b52273c5c879785ae9e995d21026df467b4/docs/policy/release.md
|
||||||
|
|
||||||
@@ -250,14 +250,18 @@ The tag message derives from the checked-in note. A successful tag push
|
|||||||
completes the source release; binary delivery is asynchronous and does not
|
completes the source release; binary delivery is asynchronous and does not
|
||||||
gate it.
|
gate it.
|
||||||
|
|
||||||
The tagged source produces Linux amd64 and arm64 binaries and checksums through
|
ReleaseKit supplies the native release machinery. The tagged source produces
|
||||||
|
Linux amd64 and arm64 binaries and checksums through
|
||||||
the hosted workflow. Candidate validation runs the complete offline Go suite
|
the hosted workflow. Candidate validation runs the complete offline Go suite
|
||||||
once with the race detector because concurrent HTTP requests share engine and
|
once with the race detector because concurrent HTTP requests share engine and
|
||||||
backend capacity state. It builds both declared Linux targets. Narrow guards
|
backend capacity state. It builds both declared Linux targets. No CI polling,
|
||||||
reject committed workspaces, vendor trees, and module replacements so local
|
artifact availability, consumer installation, or new approval gate is required.
|
||||||
substitutions cannot mask unpublished framework code. These selected checks
|
|
||||||
address distinct application and release risks; no CI polling, artifact
|
Releases depend on publicly available library sources and versions,
|
||||||
availability, consumer installation, or new approval gate is required.
|
independent of local checkouts. This applies to all libraries, including
|
||||||
|
release tooling; development may use local checkouts. Ordinary dependency
|
||||||
|
review assesses this guidance without a dedicated checker or additional gate.
|
||||||
|
Vendoring and published versioned replacements are not in themselves violations.
|
||||||
|
|
||||||
The [release procedure](../release.md) owns exact commands, targets, guards,
|
The [release procedure](../release.md) owns exact commands, targets, guards,
|
||||||
delivery reporting, and recovery steps.
|
delivery reporting, and recovery steps.
|
||||||
|
|||||||
@@ -243,6 +243,12 @@ does not demonstrate hosted delivery.
|
|||||||
|
|
||||||
## Stage 4: Modernize Dependency Policy And Preserve Decision History
|
## Stage 4: Modernize Dependency Policy And Preserve Decision History
|
||||||
|
|
||||||
|
**Completed:** Release and architecture policies and contributor guidance now
|
||||||
|
express the public-source release requirement. ADR 0007 records the decision;
|
||||||
|
ADR 0002's status identifies its partial supersession without rewriting its
|
||||||
|
historical decision. Reviewed the wording and profile for conflicting bans or
|
||||||
|
additional dependency-source enforcement.
|
||||||
|
|
||||||
**Primary files:** `docs/policy/release.md`,
|
**Primary files:** `docs/policy/release.md`,
|
||||||
`docs/policy/architecture.md`, `docs/development.md`, new
|
`docs/policy/architecture.md`, `docs/development.md`, new
|
||||||
`docs/adr/0007-public-release-dependencies.md`, and the Status section of
|
`docs/adr/0007-public-release-dependencies.md`, and the Status section of
|
||||||
|
|||||||
Reference in New Issue
Block a user