Skip to content

feat(agent-runtime): bounded Cowork governed executor adapter (GT-531)#176

Merged
beyondnetPeru merged 1 commit into
mainfrom
develop
Jul 13, 2026
Merged

feat(agent-runtime): bounded Cowork governed executor adapter (GT-531)#176
beyondnetPeru merged 1 commit into
mainfrom
develop

Conversation

@beyondnetPeru

Copy link
Copy Markdown
Contributor

Trata a Claude Cowork como uno de varios ejecutores gobernados reemplazables, detrás del mismo IAgentEnginePort que stub/hermes/swarms (§8.2/§9-4), extendiendo el épico agent-runtime.

  • CoworkAgentEngineAdapter: acotado — solo propone una herramienta que existe en el catálogo de skills gobernado; una propuesta de Cowork/LLM a una capacidad fuera del catálogo se rechaza en vez de inventarse. El envelope del runtime (approval GT-441 / policy / trace) ya lo gobierna. La llamada viva a Claude es un CoworkClient inyectable (sin cliente → determinista, como el stub).
  • Actualizado el freeze de superficie pública GT-388 con los dos value-exports nuevos (aditivo).

Estado

Verificado: agent-runtime 92/92, tsc limpio, guard 532/478. GT-531 IN-PROGRESS; resta el CoworkClient real contra la Claude/Cowork API.

🤖 Generated with Claude Code

Treats Claude Cowork as one of several REPLACEABLE governed executors behind the same
IAgentEnginePort as stub/hermes/swarms (§8.2/§9-4), extending the agent-runtime epic.

- CoworkAgentEngineAdapter: BOUNDED — only ever proposes a tool that exists in the governed
  skill catalog; a Cowork/LLM proposal for a capability outside the catalog is rejected, not
  invented. The runtime's existing envelope (approval GT-441 / policy / trace) governs it.
  The live Claude call is an injectable CoworkClient (no client → deterministic, like the stub).
- Extended the GT-388 public-surface freeze with the two new value exports (additive).

Verified: agent-runtime 92/92, tsc clean, tracking guard green. GT-531 IN-PROGRESS;
remaining is the real CoworkClient against the Claude/Cowork API.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

📊 Bilingual Coverage Impact

PR Changes

  • Paired EN/ES files modified: 2
  • New EN files needing ES translation: 0

Repository Coverage

Metric Value
Total EN files 541
Total ES files 505
Paired files 0
Coverage 0%

Good: All EN changes have ES counterparts.


Generated by GitHub Actions

@beyondnetPeru beyondnetPeru merged commit d032a7b into main Jul 13, 2026
17 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 10726745d1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

export type { HermesClient, HermesAdapterOptions } from './engine/hermes-agent.adapter';
export { SwarmsAgentAdapter } from './engine/swarms-agent.adapter';
export type { SwarmsClient, SwarmsAdapterOptions } from './engine/swarms-agent.adapter';
export { CoworkAgentEngineAdapter, COWORK_ENGINE } from './engine/cowork-agent.adapter';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Wire Cowork into the automatic engine router

When a consumer uses the newly exported COWORK_ENGINE in EngineRouterConfig, createAgentRuntime still builds its automatic RoutingAgentAdapter with only stub, hermes, and swarms (src/packages/agent-runtime/src/bootstrap.ts:53-58), so defaultEngine: 'cowork' throws during construction and matched Cowork routes throw at plan time. Since this adapter is exported as another replaceable engine, either include it in the bootstrap router map or make the public API/docs explicit that Cowork cannot be selected through engineRouterConfig.

Useful? React with 👍 / 👎.

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