Skip to content

Align agent-task-contracts test to DM-free default substrate#1633

Merged
chubes4 merged 1 commit into
mainfrom
fix/agent-task-contracts-dm-free
Jun 29, 2026
Merged

Align agent-task-contracts test to DM-free default substrate#1633
chubes4 merged 1 commit into
mainfrom
fix/agent-task-contracts-dm-free

Conversation

@chubes4

@chubes4 chubes4 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes a stale test that was red on main. The generic agent-task recipe (packages/runtime-core/src/agent-task-recipe.ts, defaultRuntimeComponentSources()) no longer mounts data-machine or data-machine-code by default — the default runtime substrate is now agents-api (when resolvable) plus the bundled wordpress-plugin (wp-codebox) only. The external coding-agent plugin is no longer mounted by default.

tests/agent-task-contracts.test.ts still asserted, against the genericRecipe (built with no Data Machine inputs, relying on the default substrate), that data-machine / data-machine-code appeared in extra_plugins, component_manifest.components, and the runtime-component-contracts-json step arg. Those assertions now fail.

Changes

Only tests/agent-task-contracts.test.ts, only the genericRecipe default-substrate assertions:

  • extra_plugins contains data-machine / data-machine-code: truefalse
  • component_manifest.components contains data-machine / data-machine-code: truefalse
  • runtime-component-contracts-json arg contains data-machine / data-machine-code: truefalse
  • Added an explanatory comment documenting the agents-api + wp-codebox-plugin substrate.

The existing positive assertions (agents-api and wordpress-plugin present) are unchanged. The separate explicit-propagation recipe below still passes data-machine / data-machine-code via component_contracts and still asserts they ARE provisioned — explicit caller propagation remains fully covered, so this is not a weakening to a no-op.

This aligns the test to merged intent (DM-free default substrate per the code comment and native-runtime direction), not masking a regression.

Test

$ npm run test:legacy-agent-task-contracts
agent task contracts passed

Confirmed red before the change (actual: false, expected: true) and green after. Adjacent recipe tests (test:recipe-validation-descriptors, test:host-recipe-builder) also pass.

AI assistance

  • AI assistance: Yes
  • Tool(s): Claude Code (Claude Opus 4.8)
  • Used for: Aligning the stale agent-task-contracts test to the DM-free default substrate.

The generic agent-task recipe no longer mounts data-machine or
data-machine-code by default; the default runtime substrate is now
agents-api (when resolvable) plus the bundled wp-codebox plugin only.
The genericRecipe assertions still expected Data Machine / Data Machine
Code in extra_plugins, component_manifest.components, and the
runtime-component-contracts arg, turning CI red on main.

Flip those genericRecipe default-substrate assertions to assert absence.
The explicit-propagation recipe below still passes data-machine and
data-machine-code via component_contracts and still asserts they are
provisioned, so explicit caller propagation remains covered.
@chubes4 chubes4 merged commit 597057a into main Jun 29, 2026
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