Skip to content

chore(workspace): freeze the crate set and mark every crate unpublished (reld#152) - #157

Merged
zackees merged 1 commit into
mainfrom
chore/152-publish-policy
Sep 17, 2026
Merged

zackees merged 1 commit into
mainfrom
chore/152-publish-policy

Conversation

@zackees

@zackees zackees commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Closes #152.

What this settles

All seven workspace crates are mandatory to build reld. None is optional functionality an outside consumer would depend on, and nothing has ever been published — all six reld-* names are still unclaimed on crates.io. With publish left unset, a stray cargo publish would have been accepted, so the manifests now say publish = false explicitly.

AGENTS.md gains a Crate layout section: add a module, not a crate; a new workspace member needs explicit developer approval in the motivating issue before the work starts, and must meet all five criteria (more than one consumer; it removes a wrong dependency edge; narrow stable surface; no cycle or lockstep diamond; not single-use test scaffolding). A long file, a feeling that something is its own concern, an unmeasured hope of faster incremental builds, and mirroring another project's layout are called out as insufficient.

ci/tests/test_crate_layout.py pins both the member list and the publish flag, so a new crate cannot arrive without a reviewed change to that file. It runs in the existing Python job — no new workflow.

Left to the owner

These are deliberately not decided here:

  1. Steady-state crate count. Seven is what exists; whether that is also the target is a call to make once the Polylinker no-gaps gate: classify every flag, route by target not host, prove coverage before reld becomes soldr's default #123 routing work lands.
  2. Squatting the names. Publishing placeholder 0.0.0 crates for the six unclaimed reld-* names would reserve them. That is a product decision, not a cleanup.
  3. reld-trace vs reld-layout-schema. They are adjacent and could merge; both currently justify themselves under criterion 2, so nothing is forced.

Verification

  • cargo fmt --all -- --check, cargo clippy --workspace --all-targets -- -D warnings, cargo metadata — clean
  • uv run --no-sync python -m pytest ci/tests -q — 260 passed (2 new)
  • python3 ci/check_dependencies.py — clean

🤖 Generated with Claude Code

…ed (reld#152)

The seven crates are all mandatory to build reld, none is optional functionality
for an outside consumer, and nothing has ever been published: all six `reld-*`
names are still unclaimed on crates.io. Publishing is a product decision for the
owner, so the manifests now say so instead of leaving `publish` unset, where a
stray `cargo publish` would have been accepted.

The criteria for adding a crate go in AGENTS.md, and `ci/tests/test_crate_layout.py`
pins the member list and the publish flag so a new crate needs a reviewed change
that states which criteria it meets.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@zackees
zackees merged commit 6419b09 into main Sep 17, 2026
18 checks passed
@zackees
zackees deleted the chore/152-publish-policy branch September 17, 2026 21:08
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.

arch: freeze the crate layout — criteria for adding a crate, and ask the dev first

1 participant