feat: add semantic draft authoring operations
This commit is contained in:
@@ -56,7 +56,6 @@ def test_server_exposes_upstream_admin_and_workflow_tools() -> None:
|
||||
assert "wf.workflow.set_draft_route" in names
|
||||
assert "wf.workflow.set_step_input_map" in names
|
||||
assert "wf.workflow.set_step_output_map" in names
|
||||
assert "wf.workflow.add_state_from_output" in names
|
||||
assert "wf.workflow.bind_output_to_state" in names
|
||||
assert "wf.workflow.add_step_from_capability" in names
|
||||
assert "wf.workflow.create_minimal_draft_workspace" in names
|
||||
@@ -115,12 +114,6 @@ def test_server_exposes_upstream_admin_and_workflow_tools() -> None:
|
||||
].inputSchema
|
||||
set_input_request = set_input_schema["properties"]["request"]
|
||||
assert "merge" in set_input_request["properties"]
|
||||
state_from_output_schema = tools_by_name[
|
||||
"wf.workflow.add_state_from_output"
|
||||
].inputSchema
|
||||
state_request = state_from_output_schema["properties"]["request"]
|
||||
assert "output_field" in state_request["properties"]
|
||||
assert "state_path" in state_request["properties"]
|
||||
add_step_schema = tools_by_name[
|
||||
"wf.workflow.add_step_from_capability"
|
||||
].inputSchema
|
||||
|
||||
@@ -44,7 +44,7 @@ def test_workflow_surface_rejects_unknown_draft_route_outcome_when_spec_is_known
|
||||
payload = asyncio.run(h.validate_draft(draft=draft))
|
||||
|
||||
assert payload["status"] == "invalid"
|
||||
assert payload["diagnostics"][0]["path"] == "routes.echo.typo"
|
||||
assert payload["diagnostics"][0]["path"] == "edges[0].outcome"
|
||||
|
||||
|
||||
def test_workflow_surface_creates_artifact_from_draft_with_binding_suggestions(
|
||||
@@ -150,7 +150,7 @@ def test_workflow_surface_validates_draft_workspace_with_live_outcomes(
|
||||
|
||||
assert payload["revision"] == 1
|
||||
assert payload["status"] == "invalid"
|
||||
assert payload["diagnostics"][0]["code"] == "unknown_outcome"
|
||||
assert payload["diagnostics"][0]["code"] == "undeclared_edge_outcome"
|
||||
assert fetched["status"] == "invalid"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user