8000 feat(agentcore): define executor backend and worker contracts by Fodesu · Pull Request #92 · felinics/twilight · GitHub
[go: up one dir, main page]

Skip to content

feat(agentcore): define executor backend and worker contracts - #92

Merged
Fodesu merged 3 commits into
feat/agent-runtime-core-18-observe-kernelfrom
feat/agent-runtime-core-19-executor-contracts
Oct 3, 2026
Merged

Fodesu merged 3 commits into
feat/agent-runtime-core-18-observe-kernelfrom
feat/agent-runtime-core-19-executor-contracts

Conversation

@Fodesu
@Fodesu Fodesu commented Oct 3, 2026 •
Copy link
Copy Markdown
Member

Summary

Defines the executor-side contracts and persistence boundary for external effects. The package supplies the backend port, stable progress and settlement interfaces, execution records, and store conformance helpers without selecting a transport or concrete worker implementation.

Design

The executor store is keyed by effect.AssignmentKey, so model and tool attempts are isolated by session, Run, and effect identity. Records retain the accepted Assignment, lifecycle status, generation, and terminal Outcome separately. A repeated dispatch of the same key can therefore be recognized as the same logical effect rather than becoming a second attempt. seed support makes the initial durable record explicit for adapters that create state during acceptance.

The backend interface separates pre-start validation, dispatch, outcome reads, attachment inspection, cancellation, and abort. This keeps the Run Loop’s start-barrier invariant independent of whether the backend is local, remote, or restarted. Attachment states distinguish active, terminal, orphaned, missing, and aborted observations; callers must not treat an unreachable executor as proof that an effect is absent.

Progress is a bounded, per-key stream of provisional frames. Generation and sequence identify resets and gaps, while terminal outcomes remain readable through the store. Settlement notices are deliberately notification-only: subscribers receive a key and reread the outcome. The notice contract includes an epoch and sequence window so reconnects can detect restart or eviction.

The store conformance package exercises the required idempotency, lifecycle, outcome, attachment, cancellation, and notice semantics against an in-memory map implementation. This branch adds contracts and conformance infrastructure; concrete adapters and workers follow in later PRs.

@Fodesu
Fodesu added this pull request to stack #105 October 3, 2026 12:27
@Fodesu Fodesu changed the title feat/agent runtime core 19 executor contracts feat(agentcore): define executor backend and worker contracts Oct 3, 2026
@Fodesu
Fodesu force-pushed the feat/agent-runtime-core-19-executor-contracts branch from c980609 to 51830e2 Compare October 3, 2026 14:43
@Fodesu
Fodesu marked this pull request as ready for review October 3, 2026 15:50
@Fodesu
Fodesu removed this pull request from stack #105 October 3, 2026 16:13
@Fodesu
Fodesu added this pull request to stack #107 October 3, 2026 16:16
@Fodesu
Fodesu removed this pull request from stack #107 October 3, 2026 16:34
@Fodesu
Fodesu added this pull request to stack #108 October 3, 2026 16:37
@Fodesu
Fodesu removed this pull request from stack #108 October 3, 2026 16:51
@Fodesu
Fodesu added this pull request to stack #110 October 3, 2026 16:55
@Fodesu
Fodesu force-pushed the feat/agent-runtime-core-19-executor-contracts branch from 5a9297a to e3e4852 Compare October 3, 2026 17:04
@Fodesu
Fodesu force-pushed the feat/agent-runtime-core-19-executor-contracts branch from e3e4852 to f1d01ae Compare October 3, 2026 17:11
@Fodesu
Fodesu merged commit 35f6e16 into main Oct 3, 2026
4 checks passed
@Fodesu
Fodesu deleted the feat/agent-runtime-core-19-executor-contracts branch October 5, 2026 07:35
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

0