Skip to content

feat(source): claim work through the unified calls - #149

Merged
Sannrox merged 1 commit into
mainfrom
feat/129
Nov 27, 2026
Merged

Sannrox merged 1 commit into
mainfrom
feat/129

Conversation

@Sannrox

@Sannrox Sannrox commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Closes #129

The Sekai adapter lists, claims, and heartbeats governed isolated-process
work and streaming jobs through ListClaimableWork, ClaimWork, and
HeartbeatWorkClaim. Transform acknowledgement stays the fenced
write-back (WriteTransformRunResult); streaming acknowledgement stays
ApplyStreamingTransformBatch. sekai-client pins the v3.1.0 tag
(8cf5c026) instead of a commit.

A killed runner whose lease expires hands the same job to a later
generation, which completes once. Live plane tests stay ignored.

Lane

  • claim branch: feat/129
  • worktree: .worktrees/issue-129
  • base SHA: 32ff43c0e3ee361f50a1bc102ef4dabfb64fffc4
  • published SHA: 0ef6a42f454d3c9df20e26b567381db1e8032c3d
  • authority: land

Reuse decision

  • Job: list, take an exclusive lease on, renew, and complete a unit of work from an external queue
  • Verdict: Reuse
  • Concept: ClaimTransport / LiveClaimTransport / StreamingBatchClient; switch the live client call sites onto the unified family already in sekai-client
  • Edge: sekai-client tag pin, RPC mapping, and job-scoped credentials stay in kako-source-sekai
  • Searched: ClaimTransport, list_transform_work, claim_transform_work, heartbeat_transform, JobSource, FakeClaimTransport, streaming fence tests; rejected a second claim trait

Simplify-change

  • No new claim mechanism. Per-kind wrappers remain unused at the adapter edge.
  • Dropped a Fence-to-WorkFence mapping test that only echoed a conversion.
  • Remaining growth is the tag pin, unified call sites, lease-expiry fake, and a crate-graph check that the pin is a tag.

Verification

  • cargo fmt --all -- --check
  • cargo clippy --locked --workspace --all-targets -- -D warnings
  • cargo clippy --locked -p kako-source-sekai --features sekai-client --all-targets -- -D warnings
  • cargo test --locked --workspace
  • cargo test --locked -p kako-source-sekai --features sekai-client (83 passed, 3 ignored: live plane)
  • bash scripts/validate-workflow-skills.sh
  • python3 scripts/adr-index --check
  • bash scripts/check-workflows.sh
  • python3 -m unittest discover -s tests -t . (74 passed)
  • Autoreview: --mode local (Codex, gpt-6.1-sol), scoped-clean
  • validate-behavior skipped: no operator-visible CLI/UI without a live plane

Compatibility

  • Adapter client pin moves from commit 2c2759d to tag v3.1.0. Unified RPCs are experimental in that tag and stable on later main (Sannrox/sekai-chisei#2286); the wire family is the same.
  • JobSource and the receipt format are unchanged.
  • Rolling two client versions: the tagged client falls back to per-kind RPCs when a plane does not serve the family.

Security

  • Fence loss still aborts write-back. A second runner completes only after lease expiry at a higher generation.

Pin sekai-client to the v3.1.0 tag and list, claim, and heartbeat
governed and streaming work through the unified family. Transform
acknowledgement stays the fenced write-back.
@Sannrox
Sannrox marked this pull request as ready for review November 27, 2026 22:37
@Sannrox
Sannrox merged commit 6c0f9bb into main Nov 27, 2026
8 checks passed
@Sannrox
Sannrox deleted the feat/129 branch November 27, 2026 22:41
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.

feat(job-source): claim work through the unified calls

1 participant