Skip to content

chore: drop the unused wit-component pin from the example crates - #273

Merged
arcjet-rei merged 1 commit into
mainfrom
rei/fix/ENG-1825-example-wit-component-pins
Nov 28, 2026
Merged

arcjet-rei merged 1 commit into
mainfrom
rei/fix/ENG-1825-example-wit-component-pins

Conversation

@arcjet-rei

Copy link
Copy Markdown
Contributor

Every example crate pinned wit-component beside wit-bindgen, but none of them uses wit_component. Each gets the wit-component its wit-bindgen requires through wit-bindgen-rust anyway. Only cmd/gravity calls it (wit_component::metadata::decode), and no wit-bindgen crate re-exports it, so that pin stays.

Dependabot's wit group picks each crate's latest version independently. So a wit-component release ahead of what wit-bindgen requires produces a lone bump that just check-wit refuses, as with #251 and #262, and both such a PR and its hand fix touched 23 manifests. They now touch one.

  • The 22 example Cargo.toml files drop wit-component; Cargo.lock loses only those 22 dependency lines.
  • check-wit's message names cmd/gravity/Cargo.toml as the file to pin.
  • AGENTS.md says the examples depend on wit-bindgen alone.

🤖 Generated with Claude Code

Every example crate pinned wit-component beside wit-bindgen, but none of
them uses wit_component; each gets the wit-component its wit-bindgen
requires through wit-bindgen-rust regardless. Only cmd/gravity calls it
(wit_component::metadata::decode), so its pin stays.

Dependabot's wit group picks each crate's latest version independently,
so a wit-component release ahead of wit-bindgen's requirement produces a
lone bump that `just check-wit` refuses, and both that PR and the hand fix
touched 23 manifests. They now touch one. check-wit's message names
cmd/gravity/Cargo.toml as the file to pin, and AGENTS.md says the examples
depend on wit-bindgen alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arcjet-rei
arcjet-rei requested a review from a team as a code owner November 27, 2026 20:08

@arcjet-review arcjet-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arcjet Review — 🟢 Normal Risk

Decision: Approved

Rationale: The 22 manifest removals match the 22 dependency entries removed from Cargo.lock. No locked package version changes, and cmd/gravity retains its direct wit-component pin. The checker still rejects split versions; only its guidance changes, and the updated fixture checks that it names the correct manifest.

Summary of Changes

Removes the redundant wit-component pin from all 22 example crates. AGENTS.md explains which pins to maintain, and the check-wit diagnostic points maintainers to cmd/gravity/Cargo.toml.

Escalation Triggers

  • Dependency Changes: The PR removes a direct dependency from 22 Cargo.toml files without adding or upgrading a package.

Review Steps

API Review

Relevancy Outcome
none ⏭️ Skipped

Data Flow Map

Relevancy Outcome
none ⏭️ Skipped

Dependency Audit

Relevancy Outcome
high ✅ Pass

The examples retain wit-bindgen, and the CLI retains wit-component. The lockfile changes only the examples’ direct dependency lists.

Docs Review

Relevancy Outcome
medium ✅ Pass

AGENTS.md reflects the new pinning arrangement. The build and usage instructions in examples/README.md remain applicable.

Historical ADR Review

Relevancy Outcome
none ⏭️ Skipped

Insider Threat

Relevancy Outcome
none ⏭️ Skipped

Migration Safety

Relevancy Outcome
none ⏭️ Skipped

Security Review

Relevancy Outcome
low ✅ Pass

The shell change adds a literal path to a diagnostic. It does not change command execution or weaken the version check.

Test Coverage

Relevancy Outcome
medium ✅ Pass

The split-wit-component fixture checks both failure status and the new manifest path. CI is configured to run the fixture suite and check the workspace lockfile.

Zero Data Retention

Relevancy Outcome
none ⏭️ Skipped

WorkOS Audit Logging

Relevancy Outcome
none ⏭️ Skipped

Review: 03b91210 | Model: openai/gpt-6.2-astra | Powered by Arcjet Review

@arcjet-review arcjet-review Bot added needs review Awaiting human review and removed ai-review-in-progress labels Nov 27, 2026
@arcjet-rei
arcjet-rei merged commit 3b6429e into main Nov 28, 2026
4 checks passed
@arcjet-rei
arcjet-rei deleted the rei/fix/ENG-1825-example-wit-component-pins branch November 28, 2026 04:54
@arcjet-review arcjet-review Bot removed the needs review Awaiting human review label Nov 28, 2026
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.

1 participant