Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions scripts/check-core-boundaries.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ test('portable contract crates expose only capability-local feature slices', asy
// Workspace byte readers expose AsyncRead/AsyncSeek without selecting a
// process, network, scheduler, or full Tokio runtime at the contract layer.
assert.deepEqual(new Set(runtimePortFeatures['workspace-ports']), new Set(['dep:anyhow', 'dep:tokio-util', 'dep:tokio', 'tokio/io-util']));
assert.deepEqual(runtimePortFeatures['terminal-port'], ['dep:tokio']);
assert.deepEqual(runtimePortFeatures['remote-exec-port'], ['dep:tokio']);
assert.deepEqual(runtimePortFeatures['terminal-port'], ['dep:tokio', 'dep:tokio-util']);
assert.deepEqual(runtimePortFeatures['remote-exec-port'], ['dep:tokio', 'dep:tokio-util']);
assert.deepEqual(
new Set(runtimePortFeatures['tool-runtime-handles']),
new Set([
Expand Down Expand Up @@ -640,7 +640,7 @@ test('runtime-ports async dependencies stay behind their exact port owners', ()
);
assert.deepEqual(
ownersByDependency.get('tokio-util'),
new Set(['permission', 'ts', 'workspace-ports']),
new Set(['permission', 'remote-exec-port', 'terminal-port', 'ts', 'workspace-ports']),
);
assert.deepEqual(
ownersByDependency.get('tokio'),
Expand Down Expand Up @@ -819,11 +819,11 @@ const RUNTIME_PORT_FEATURE_PROFILES = {
'plugin-runtime': [],
'product-search': ['dep:openbitfun-product-domains'],
'ptc-runtime': [],
'remote-exec-port': ['dep:tokio'],
'remote-exec-port': ['dep:tokio', 'dep:tokio-util'],
'remote-workspace-ports': ['dep:openbitfun-core-types'],
'runtime-event-port': [],
'script-tool-runtime': [],
'terminal-port': ['dep:tokio'],
'terminal-port': ['dep:tokio', 'dep:tokio-util'],
'tool-runtime-handles': ['workspace-ports', 'terminal-port', 'remote-exec-port'],
ts: [
'dep:ts-rs',
Expand Down
7 changes: 4 additions & 3 deletions scripts/core-boundaries/rules/feature-rules.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ export const optionalDependencyFeatureOwnerRules = [
{ depName: 'openbitfun-core-types', ownerFeatures: ['agent-api', 'remote-workspace-ports', 'ts'] },
{ depName: 'openbitfun-product-domains', ownerFeatures: ['permission', 'product-search', 'ts'] },
{ depName: 'tokio', ownerFeatures: ['remote-exec-port', 'terminal-port', 'workspace-ports'] },
{ depName: 'tokio-util', ownerFeatures: ['permission', 'ts', 'workspace-ports'] },
// Exec stdin ports carry an in-process cooperative output-wait token.
{ depName: 'tokio-util', ownerFeatures: ['permission', 'remote-exec-port', 'terminal-port', 'ts', 'workspace-ports'] },
{ depName: 'ts-rs', ownerFeatures: ['ts'] },
],
},
Expand Down Expand Up @@ -409,11 +410,11 @@ export const capabilityContractDependencyRules = [
'plugin-runtime': [],
'product-search': ['dep:openbitfun-product-domains'],
'ptc-runtime': [],
'remote-exec-port': ['dep:tokio'],
'remote-exec-port': ['dep:tokio', 'dep:tokio-util'],
'remote-workspace-ports': ['dep:openbitfun-core-types'],
'runtime-event-port': [],
'script-tool-runtime': [],
'terminal-port': ['dep:tokio'],
'terminal-port': ['dep:tokio', 'dep:tokio-util'],
'tool-runtime-handles': ['workspace-ports', 'terminal-port', 'remote-exec-port'],
'web-search-port': [],
ts: [
Expand Down
13 changes: 13 additions & 0 deletions src/crates/assembly/core/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,19 @@ Narrower local guides already exist for some subtrees:

## Verification

For WriteStdin steering, port routing, streaming and legacy result compatibility:

```bash
cargo test --locked -p openbitfun-core --no-default-features --features agent-runtime,git --lib agentic::tools::implementations::exec_command::stdin::
cargo test --locked -p openbitfun-core --no-default-features --features agent-runtime,git --lib yieldable_tools_end_normally_for_every_non_none_round_injection_policy
```

WriteStdin uses the same round-injection yield token as AgentWait. Only the
output wait ends; submitted stdin is not replayed and process control remains
explicit. The optional `wait_end_reason: "steered"` result is separate from
process `completion`; old results without it keep their existing meaning.
These Core fixtures cover both runtime ports with mocks, not live remote hosts.

For desktop card admission, per-turn Peer origin, recovery context and subagent
propagation:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ struct FixtureTerminal {
}
fn response(output: String, code: i32) -> TerminalExecCommandResponse {
TerminalExecCommandResponse {
wait_interrupted: false,
chunk_id: "fixture".into(),
wall_time_seconds: 0.0,
original_output_chars: output.chars().count(),
Expand Down
Loading
Loading