Clarify public release dependency policy

This commit is contained in:
2026-11-23 19:22:14 +00:00
parent f5589e973e
commit e5be1151a6
6 changed files with 69 additions and 17 deletions

View File

@@ -2,7 +2,9 @@
## 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

View 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.

View File

@@ -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/` |
| 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
the tagged version. Do not commit a Go workspace, local replacement, vendored
Promptkit source, or an import of a Promptkit `internal` package.
Local checkouts may be used for development. Releases follow the public-source
dependency requirement in the [release policy](policy/release.md). Do not
import a PromptKit `internal` package.
The module graph can include upstream maintainer tools such as ReleaseKit and
their dependencies even though those graph-only packages are not linked into
the Scriptorium runtime; use `go list -deps ./cmd/scriptorium` to distinguish

View File

@@ -2,7 +2,7 @@
**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
@@ -89,11 +89,11 @@ Application code may import Promptkit's public root package, but not its
Scriptorium framework facade or former framework package families.
Adapter-owned interfaces use Promptkit public values when a consumer-side
substitution boundary is needed. Omitted framework settings pass as zero
values so Promptkit applies its own defaults. Cross-project changes land and
release in Promptkit before
Scriptorium adopts its tagged dependency; do not commit Go workspaces, local
replacements, vendored Promptkit source, or unpublished dependency assumptions.
The repository's architecture guard protects these import and removal
values so Promptkit applies its own defaults. Framework logic remains owned by
PromptKit rather than an application-maintained copy; ordinary dependency
vendoring is distinct from maintaining such a copy. Local checkouts may be used
in development; the [release policy](release.md) governs release dependency
sources. The repository's architecture guard protects these import and removal
boundaries. Adapter separation does not require an interface for every type,
extra wrappers, or a fixed directory tree.

View File

@@ -2,7 +2,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
@@ -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
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
once with the race detector because concurrent HTTP requests share engine and
backend capacity state. It builds both declared Linux targets. Narrow guards
reject committed workspaces, vendor trees, and module replacements so local
substitutions cannot mask unpublished framework code. These selected checks
address distinct application and release risks; no CI polling, artifact
availability, consumer installation, or new approval gate is required.
backend capacity state. It builds both declared Linux targets. No CI polling,
artifact availability, consumer installation, or new approval gate is required.
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 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,
delivery reporting, and recovery steps.

View File

@@ -243,6 +243,12 @@ does not demonstrate hosted delivery.
## 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`,
`docs/policy/architecture.md`, `docs/development.md`, new
`docs/adr/0007-public-release-dependencies.md`, and the Status section of