Skip to content

docs(adr): 0091 an operator names a worker's tags, and a lease may require them - #1841

Merged
V3RON merged 7 commits into
mainfrom
feature/1832-adr
Nov 25, 2026
Merged

V3RON merged 7 commits into
mainfrom
feature/1832-adr

Conversation

@V3RON

@V3RON V3RON commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

ADR for feature #1832 (request #1541). It is Proposed until the spec session gets the maintainer's approval.

  • A worker's config.json takes a tags list. Each tag shows in the worker's status as a capability that is always available.
  • requires matches tags and module names alike. A gateway places the lease only on a worker that has every name; otherwise it answers CAPABILITY_MISSING.
  • requires may now be sent together with idempotencyKey. A replay with a different set of names is an IDEMPOTENCY_CONFLICT.
  • simlock lease --requires and the MCP lease_simulator tool pass the list.

Review

Spec review: 2 blocking, 2 fixed, 0 notes. Code review: skipped. Claims review: skipped.
Rounds: 1. Tokens: 1.7M.
Runs: 5. Cost USD: 1.2796. Agent seconds: 436.

Assessment: complete

Status

Implement: n/a (ADR) Review: round 1 + fix-check passed, 2/2 fixed Hardware: n/a Gate: waiting for the stack
Next: flip to Accepted when the stack merges

Written by an agent.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 8035e0c3-1158-4e78-8a50-77d79c2a867c
Commits

Reviewing files that changed from the base of the PR and between b51b314 and b51b314.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The new ADR proposes worker tags as capabilities that can be requested by leases. It also describes how requires would work with idempotency keys and specifies inputs for the CLI, MCP tool, and HTTP endpoint. The ADR index adds the new entry and related ADR references. The ADR is marked “Accepted — not yet implemented.”

Suggested reviewers: leonardoxr

Merge Risk: Minimal · up to b51b3

This PR adds a design document and its index entry, with no runtime behavior change. The ADR status and the documented trade-offs match the repository's ADR process, so no merge-blocking concern remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: an ADR that lets an operator name a worker's tags and lets a lease require them. It matches the ADR 0091 content in the changeset and the objectives. The title is 79 c…
Description check Passed The description states that the change is an ADR for worker tags and lease requirements. It covers the config.json tags list, the requires matching rule, CAPABILITY_MISSING and IDEMPOTENCY_CONFLICT be…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: an ADR that lets an operator name a worker's tags and lets a lease require them. It matches the ADR 0091 content in the changeset and the objectives. The title is 79 characters, which is within a typical length, and the docs(adr) prefix states the type.

Full details: Description check

Explanation

The description states that the change is an ADR for worker tags and lease requirements. It covers the config.json tags list, the requires matching rule, CAPABILITY_MISSING and IDEMPOTENCY_CONFLICT behavior, and the CLI and MCP changes. This relates directly to the changeset.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: aa0ad059-0b82-4be8-8baa-ec3f3bb8e98e
Commits

Reviewing files that changed from the base of the PR and between 21742f0 and b51b314.

Files selected for processing: 2

  • docs/internal/adr/0091-an-operator-names-a-workers-tags-and-a-lease-may-require-them.md
  • docs/internal/adr/README.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@V3RON

V3RON commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: 8c010d7
Round fix-check: b51b314

Runs: 5. Cost USD: 1.2796. Agent seconds: 436.
Tokens input 74, output 17403, cache read 1661555, cache write 209098.
- fix implementer: claude-sonnet-5-5 65 s $0.0862
- review 1 reviewer: claude-sonnet-5-5 152 s $0.1252
- review 1 spec: claude-opus-5-5 111 s $0.833
- fix 1 implementer: claude-sonnet-5-5 65 s $0.13
- review fix-check reviewer: claude-sonnet-5-5 43 s $0.1052
Finding outcomes: {"fixed":2}. Classes: {"ADR index records every narrowing":1,"ADR records what it narrows":1}.
{"findings":[{"id":"R1","role":"spec","class":"ADR records what it narrows","outcome":"fixed","path":"docs/internal/adr/0091-an-operator-names-a-workers-tags-and-a-lease-may-require-them.md","round":"1","fix":"b51b3148b7d7d04205bd2533a54ab7d341c29f1e"},{"id":"R2","role":"spec","class":"ADR index records every narrowing","outcome":"fixed","path":"docs/internal/adr/README.md","round":"1","fix":"b51b3148b7d7d04205bd2533a54ab7d341c29f1e","canonicalId":null}]}

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review November 25, 2026 12:56
@V3RON
V3RON added this pull request to stack #1860 November 25, 2026 13:14
@V3RON
V3RON merged commit caa6adb into main Nov 25, 2026
53 checks passed
@V3RON
V3RON deleted the feature/1832-adr branch November 25, 2026 14:01
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