Skip to content

Introduce the worker API - #1000

Merged
Julian Gutierrez Oschmann (juli4n) merged 6 commits into
agent-substrate:mainfrom
sfunkenhauser:worker_api
Aug 19, 2026
Merged

Introduce the worker API#1000
Julian Gutierrez Oschmann (juli4n) merged 6 commits into
agent-substrate:mainfrom
sfunkenhauser:worker_api

Conversation

@sfunkenhauser

Copy link
Copy Markdown
Collaborator

Make workers a gobal resource, identified by a unique name. Worker APIs will be implemented in a follow up change.

Part of #730

  • [ x ] Tests pass
  • [ x ] Appropriate changes to documentation are included in the PR

Comment thread pkg/proto/ateapipb/ateapi.proto Outdated
Make workers a gobal resource, identified by a unique name.
Worker APIs will be implemented in a follow up change.
// See the License for the specific language governing permissions and
// limitations under the License.

package controlapi

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

worker.go has been created since I started this PR. I'll move all these API stubs to worker.go.

Comment thread pkg/proto/ateapipb/ateapi.proto
@juli4n
Julian Gutierrez Oschmann (juli4n) merged commit 43fa6cc into agent-substrate:main Aug 19, 2026
9 checks passed
shrutiyam-glitch added a commit to shrutiyam-glitch/substrate that referenced this pull request Aug 19, 2026
Main's worker rework (agent-substrate#1000 and successors) keys workers by a single
resource name (Metadata.Name), moves the assignment under WorkerStatus,
and references workers in MintCert by ObjectRef. Adapt the branch:

- DeleteWorker keeps the feed append (writeAndAppendChange) on the new
  name-keyed signature; DebugClearAll truncates the current table set
  plus worker_changes/worker_changes_trim.
- authorizeActor keeps the store read-through on denial, now reading
  through by worker name; denyMint logs the worker resource name.
- Feed tests seed Metadata-named workers and use the name-keyed
  Get/Update/Delete; the read-through test uses the actorFixture/
  WorkerStatus.Assignment shapes.

All store, actoridentity, workercache and controlapi suites pass.
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.

2 participants