Repository navigation
fix(http): a tenant-unique natural key replaces Idempotency-Key on create (0.60.3) - #87
Merged
Merged
Conversation
…eate (0.60.3) HTTP-IDEMKEY's one exception, workspace creation, becomes a rule: a create whose resource has a tenant-unique natural key takes no key, a unique constraint refuses the second row, and a retry answers 409 naming the existing resource so the client recovers by reading it. Runner registration, keyed by the tenant's host_id, is the second example. Indy approved the change: "Change the rule, drop receipts". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Main's #86 raised engines.bun to >=1.4.5 without a version bump, so 0.60.3 ships it beside the HTTP-IDEMKEY change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HTTP-IDEMKEY had one exception,
POST /v1/workspaces, and said it covered no other endpoint. This makes the exception a rule:Idempotency-Key. A unique constraint on that key refuses the second row.409naming the existing resource, and the client recovers by reading it.host_id) are the examples.agentsfleetM253_002 §14 needs it: runner registration drops its receipt table and becomes unique on(tenant_id, host_id). A replay under the old receipt carried no token, so the receipt never made a retry useful. Indy approved the change: "Change the rule, drop receipts".Release: 0.60.3 (
package.json,.orly/orly.json,docs/CHANGELOG.md). Consumers pick it up withbunx --bun @agentsfleet/orly@0.60.3 updateonce the release workflow publishes it.Verification
orly gate pronc0b924e:make conform(bin/orly verify):standards.catalogue,generated.root.current,packs.sources.currentgreenbun run typecheck: exit 0bun test src: 591 pass, 0 faildocs.language: changed documentation prose is clean🤖 Generated with Claude Code