a2da043cbd
CI / lint (pull_request) Successful in 25s
CI / benchmark-publish (pull_request) Has been skipped
CI / quality (pull_request) Successful in 21s
CI / typecheck (pull_request) Successful in 39s
CI / security (pull_request) Successful in 37s
CI / build (pull_request) Successful in 26s
CI / integration_tests (pull_request) Successful in 4m43s
CI / unit_tests (pull_request) Successful in 11m2s
CI / docker (pull_request) Successful in 58s
CI / benchmark-regression (pull_request) Successful in 18m58s
CI / coverage (pull_request) Successful in 24m24s
Adds PlanExecutionContext carrying plan metadata and delegating changeset ops to ChangeSetStore. RuntimeExecuteResult captures execution output (changeset_id, tool_call_count, sandbox_refs, decision_ids_processed, execution_duration_ms). RuntimeExecuteActor dispatches StrategyDecision lists through ToolRunner with full changeset capture and optional streaming callbacks. PlanExecutor gains execution_context param with has_runtime / changeset_store / execution_context properties and _run_execute_with_runtime / _run_execute_with_stub split. 31 Behave scenarios, 5 Robot smoke tests, ASV benchmark suite, and reference documentation. Ref: Day-14 Rebaseline – M1.2 Plan-execute runtime wiring [Jeff]
47 lines
2.3 KiB
Plaintext
47 lines
2.3 KiB
Plaintext
*** Settings ***
|
|
Documentation Smoke tests for plan execute runtime integration.
|
|
... Covers PlanExecutionContext, changeset capture,
|
|
... RuntimeExecuteActor, and PlanExecutor runtime mode.
|
|
Resource ${CURDIR}/common.resource
|
|
Suite Setup Setup Test Environment
|
|
Suite Teardown Cleanup Test Environment
|
|
|
|
*** Variables ***
|
|
${HELPER_SCRIPT} robot/helper_plan_execute_runtime.py
|
|
|
|
*** Test Cases ***
|
|
Plan Execution Context Creation
|
|
[Documentation] Verify PlanExecutionContext creates with valid plan_id and defaults
|
|
[Tags] plan execute runtime context
|
|
${result}= Run Process ${PYTHON} ${HELPER_SCRIPT} context-creation cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} context-creation-ok
|
|
|
|
Changeset Start And Record
|
|
[Documentation] Verify changeset start_changeset and record_change flow
|
|
[Tags] plan execute runtime changeset
|
|
${result}= Run Process ${PYTHON} ${HELPER_SCRIPT} changeset-ops cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} changeset-ops-ok
|
|
|
|
Runtime Execute Actor Dispatch
|
|
[Documentation] Verify RuntimeExecuteActor dispatches decisions and produces result
|
|
[Tags] plan execute runtime actor
|
|
${result}= Run Process ${PYTHON} ${HELPER_SCRIPT} runtime-actor cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} runtime-actor-ok
|
|
|
|
PlanExecutor Runtime Mode
|
|
[Documentation] Verify PlanExecutor has_runtime and changeset_store when context provided
|
|
[Tags] plan execute runtime executor
|
|
${result}= Run Process ${PYTHON} ${HELPER_SCRIPT} executor-runtime cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} executor-runtime-ok
|
|
|
|
PlanExecutor Stub Fallback
|
|
[Documentation] Verify PlanExecutor falls back to stub when no context
|
|
[Tags] plan execute runtime executor stub
|
|
${result}= Run Process ${PYTHON} ${HELPER_SCRIPT} executor-stub cwd=${WORKSPACE}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} executor-stub-ok
|