gehuageyan commited on
Commit
2fcaca4
·
verified ·
1 Parent(s): 06e5bfe

Publish original Headless Browser inputs from 91ca91ae26d6baf84fbc104431f13e577ca41abf (part 6)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. definitions/tasks/L1/raw_cdp/v2_boot_target_get_targets.json +77 -0
  2. definitions/tasks/L1/raw_cdp/v2_boot_target_set_discover_targets.json +81 -0
  3. definitions/tasks/L1/raw_cdp/v2_diag_dispatchmouse_geometry.json +72 -0
  4. definitions/tasks/L1/raw_cdp/v2_diag_domsnapshot_computed_styles.json +71 -0
  5. definitions/tasks/L1/raw_cdp/v2_diag_domsnapshot_shape.json +73 -0
  6. definitions/tasks/L1/raw_cdp/v2_diag_gbcr_fixed.json +49 -0
  7. definitions/tasks/L1/raw_cdp/v2_diag_getboxmodel_border_box.json +92 -0
  8. definitions/tasks/L1/raw_cdp/v2_diag_getboxmodel_dims.json +92 -0
  9. definitions/tasks/L1/raw_cdp/v2_diag_getcontentquads_shape.json +86 -0
  10. definitions/tasks/L1/raw_cdp/v2_diag_layoutmetrics_viewport.json +59 -0
  11. definitions/tasks/L1/raw_cdp/v2_diag_offset_dims_fixed.json +49 -0
  12. definitions/tasks/L1/raw_cdp/v2_diag_scrollsize_fixed.json +49 -0
  13. definitions/tasks/L1/raw_cdp/v2_fetch_auth_required_e2e.json +124 -0
  14. definitions/tasks/L1/raw_cdp/v2_fetch_continue_request_modify_headers.json +96 -0
  15. definitions/tasks/L1/raw_cdp/v2_fetch_continue_request_modify_url.json +96 -0
  16. definitions/tasks/L1/raw_cdp/v2_fetch_continue_with_auth_probe.json +65 -0
  17. definitions/tasks/L1/raw_cdp/v2_fetch_disable_stops_pausing.json +111 -0
  18. definitions/tasks/L1/raw_cdp/v2_fetch_enable_no_patterns.json +79 -0
  19. definitions/tasks/L1/raw_cdp/v2_fetch_enable_patterns_continue.json +104 -0
  20. definitions/tasks/L1/raw_cdp/v2_fetch_fail_request.json +87 -0
  21. definitions/tasks/L1/raw_cdp/v2_fetch_fail_request_alt_reason.json +87 -0
  22. definitions/tasks/L1/raw_cdp/v2_fetch_fulfill_custom_response.json +108 -0
  23. definitions/tasks/L1/raw_cdp/v2_fetch_fulfill_json.json +94 -0
  24. definitions/tasks/L1/raw_cdp/v2_fetch_fulfill_status_override_404.json +99 -0
  25. definitions/tasks/L1/raw_cdp/v2_fetch_load_network_resource.json +99 -0
  26. definitions/tasks/L1/raw_cdp/v2_fetch_network_get_response_body.json +83 -0
  27. definitions/tasks/L1/raw_cdp/v2_fetch_network_relative_ordering.json +90 -0
  28. definitions/tasks/L1/raw_cdp/v2_fetch_request_paused_request_stage_fields.json +93 -0
  29. definitions/tasks/L1/raw_cdp/v2_fetch_response_stage_take_stream.json +121 -0
  30. definitions/tasks/L1/raw_cdp/v2_h_compute_product.json +120 -0
  31. definitions/tasks/L1/raw_cdp/v2_h_counter_clicks.json +120 -0
  32. definitions/tasks/L1/raw_cdp/v2_h_form_checksum.json +135 -0
  33. definitions/tasks/L1/raw_cdp/v2_h_frame_token.json +127 -0
  34. definitions/tasks/L1/raw_cdp/v2_ifx_block_resource_fallback.json +87 -0
  35. definitions/tasks/L1/raw_cdp/v2_ifx_header_rewrite_client.json +98 -0
  36. definitions/tasks/L1/raw_cdp/v2_ifx_json_field_inject.json +94 -0
  37. definitions/tasks/L1/raw_cdp/v2_ifx_mock_api_rewrite.json +95 -0
  38. definitions/tasks/L1/raw_cdp/v2_ifx_multi_intercept.json +116 -0
  39. definitions/tasks/L1/raw_cdp/v2_ifx_request_rewrite_url.json +95 -0
  40. definitions/tasks/L1/raw_cdp/v2_ifx_response_body_tamper.json +112 -0
  41. definitions/tasks/L1/raw_cdp/v2_ifx_status_override_branch.json +94 -0
  42. definitions/tasks/L1/raw_cdp/v2_neg_dom_getboxmodelfornode.json +46 -0
  43. definitions/tasks/L1/raw_cdp/v2_neg_emulation_devicemetrics_badwidth.json +49 -0
  44. definitions/tasks/L1/raw_cdp/v2_neg_input_dispatchkey_badtype.json +46 -0
  45. definitions/tasks/L1/raw_cdp/v2_neg_input_dispatchkey_missing_type.json +46 -0
  46. definitions/tasks/L1/raw_cdp/v2_neg_nonexistent_domain.json +44 -0
  47. definitions/tasks/L1/raw_cdp/v2_neg_page_deletecookie.json +47 -0
  48. definitions/tasks/L1/raw_cdp/v2_neg_page_navigate_badurl.json +46 -0
  49. definitions/tasks/L1/raw_cdp/v2_neg_runtime_evaluateexpression.json +46 -0
  50. definitions/tasks/L1/raw_cdp/v2_neg_runtime_getproperties_badobjid.json +46 -0
definitions/tasks/L1/raw_cdp/v2_boot_target_get_targets.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Creates a page target then calls Target.getTargets and asserts the returned targetInfos array is non-empty and contains at least one 'page' entry with a targetId. Real semantic probe of getTargets return structure.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Target.createTarget",
10
+ "params": {
11
+ "url": "about:blank"
12
+ },
13
+ "save_result_as": "created",
14
+ "session": "browser"
15
+ },
16
+ {
17
+ "method": "Target.getTargets",
18
+ "params": {},
19
+ "save_result_as": "targets",
20
+ "session": "browser"
21
+ },
22
+ {
23
+ "method": "Target.closeTarget",
24
+ "optional": true,
25
+ "params": {
26
+ "targetId": "{saved:created.targetId}"
27
+ },
28
+ "session": "browser"
29
+ }
30
+ ]
31
+ },
32
+ "features": [
33
+ "cdp.target.get_targets",
34
+ "cdp.target.create_target"
35
+ ],
36
+ "grader": {
37
+ "checks": [
38
+ {
39
+ "kind": "array_length",
40
+ "min": 1,
41
+ "name": "targets",
42
+ "path": "targetInfos"
43
+ },
44
+ {
45
+ "expected": {
46
+ "type": "page"
47
+ },
48
+ "kind": "array_contains",
49
+ "name": "targets",
50
+ "path": "targetInfos"
51
+ },
52
+ {
53
+ "kind": "saved_path_truthy",
54
+ "name": "targets",
55
+ "path": "targetInfos.0.targetId"
56
+ }
57
+ ],
58
+ "kind": "inline_assertions"
59
+ },
60
+ "layer": "L1",
61
+ "scene": {
62
+ "kind": "about_blank"
63
+ },
64
+ "subset_id": "l1.raw_cdp",
65
+ "tags": [
66
+ "coverage.tier1_bootstrap",
67
+ "family.bootstrap",
68
+ "version.v0_2"
69
+ ],
70
+ "task_id": "v2_boot_target_get_targets",
71
+ "task_version": 1,
72
+ "timeouts": {
73
+ "hard_kill_ms": 30000,
74
+ "task_ms": 15000
75
+ },
76
+ "title": "Target.getTargets enumerates page targets"
77
+ }
definitions/tasks/L1/raw_cdp/v2_boot_target_set_discover_targets.json ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Turns on target discovery on the browser session, creates a page target, and waits for the Target.targetCreated event for that exact target id, asserting it describes a 'page'. Real probe that setDiscoverTargets actually opens the discovery event stream.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Target.setDiscoverTargets",
10
+ "params": {
11
+ "discover": true
12
+ },
13
+ "session": "browser"
14
+ },
15
+ {
16
+ "method": "Target.createTarget",
17
+ "params": {
18
+ "url": "about:blank"
19
+ },
20
+ "save_result_as": "created",
21
+ "session": "browser"
22
+ },
23
+ {
24
+ "match": {
25
+ "targetInfo": {
26
+ "targetId": "{saved:created.targetId}"
27
+ }
28
+ },
29
+ "save_result_as": "discovered",
30
+ "session": "browser",
31
+ "timeout_ms": 5000,
32
+ "wait_for_event": "Target.targetCreated"
33
+ },
34
+ {
35
+ "method": "Target.closeTarget",
36
+ "optional": true,
37
+ "params": {
38
+ "targetId": "{saved:created.targetId}"
39
+ },
40
+ "session": "browser"
41
+ }
42
+ ]
43
+ },
44
+ "features": [
45
+ "cdp.target.set_discover_targets",
46
+ "cdp.target.target_created"
47
+ ],
48
+ "grader": {
49
+ "checks": [
50
+ {
51
+ "kind": "event_observed",
52
+ "method": "Target.targetCreated",
53
+ "name": "discovered"
54
+ },
55
+ {
56
+ "expected": "page",
57
+ "kind": "saved_path_equals",
58
+ "name": "discovered",
59
+ "path": "targetInfo.type"
60
+ }
61
+ ],
62
+ "kind": "inline_assertions"
63
+ },
64
+ "layer": "L1",
65
+ "scene": {
66
+ "kind": "about_blank"
67
+ },
68
+ "subset_id": "l1.raw_cdp",
69
+ "tags": [
70
+ "coverage.tier1_bootstrap",
71
+ "family.bootstrap",
72
+ "version.v0_2"
73
+ ],
74
+ "task_id": "v2_boot_target_set_discover_targets",
75
+ "task_version": 1,
76
+ "timeouts": {
77
+ "hard_kill_ms": 30000,
78
+ "task_ms": 15000
79
+ },
80
+ "title": "Target.setDiscoverTargets emits targetCreated"
81
+ }
definitions/tasks/L1/raw_cdp/v2_diag_dispatchmouse_geometry.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "[diagnostic lane] This method is on the real framework main path (on_framework_main_path); routed to the diagnostic lane per bench policy. Input.dispatchMouseEvent press+release at CSS coordinate (150,110), the center of a 100x60 target at (100,80). A coordinate hit-test must fire the click handler, recording 'CLICKED@150,110'.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Input.dispatchMouseEvent",
10
+ "params": {
11
+ "button": "left",
12
+ "buttons": 1,
13
+ "clickCount": 1,
14
+ "type": "mousePressed",
15
+ "x": 150,
16
+ "y": 110
17
+ }
18
+ },
19
+ {
20
+ "method": "Input.dispatchMouseEvent",
21
+ "params": {
22
+ "button": "left",
23
+ "buttons": 1,
24
+ "clickCount": 1,
25
+ "type": "mouseReleased",
26
+ "x": 150,
27
+ "y": 110
28
+ }
29
+ },
30
+ {
31
+ "method": "Runtime.evaluate",
32
+ "params": {
33
+ "expression": "window.__clickInfo",
34
+ "returnByValue": true
35
+ },
36
+ "save_as": "click"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "cdp.input.dispatch_mouse_event",
42
+ "web.layout.hit_test"
43
+ ],
44
+ "grader": {
45
+ "checks": [
46
+ {
47
+ "expected": "CLICKED@150,110",
48
+ "kind": "value_equals",
49
+ "name": "click"
50
+ }
51
+ ],
52
+ "kind": "inline_assertions"
53
+ },
54
+ "layer": "L1",
55
+ "scene": {
56
+ "kind": "self_hosted_fixture",
57
+ "url": "/v2/diag/click"
58
+ },
59
+ "subset_id": "l1.raw_cdp",
60
+ "tags": [
61
+ "family.diagnostics",
62
+ "purpose.diagnostic",
63
+ "version.v0_2"
64
+ ],
65
+ "task_id": "v2_diag_dispatchmouse_geometry",
66
+ "task_version": 1,
67
+ "timeouts": {
68
+ "hard_kill_ms": 30000,
69
+ "task_ms": 15000
70
+ },
71
+ "title": "Input.dispatchMouseEvent coordinate hit-test"
72
+ }
definitions/tasks/L1/raw_cdp/v2_diag_domsnapshot_computed_styles.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "[diagnostic lane] This method is on the real framework main path (on_framework_main_path); routed to the diagnostic lane per bench policy. DOMSnapshot.captureSnapshot with computedStyles:['display','color']; assert the requested computed styles came back: layout.styles is populated and the resolved values ('block' for display, 'rgb(0, 0, 0)' for color) appear in the strings table.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "DOM.enable",
10
+ "optional": true
11
+ },
12
+ {
13
+ "method": "DOMSnapshot.enable",
14
+ "optional": true
15
+ },
16
+ {
17
+ "method": "DOMSnapshot.captureSnapshot",
18
+ "params": {
19
+ "computedStyles": [
20
+ "display",
21
+ "color"
22
+ ]
23
+ },
24
+ "save_result_as": "snap"
25
+ }
26
+ ]
27
+ },
28
+ "features": [
29
+ "cdp.domsnapshot.capture_snapshot"
30
+ ],
31
+ "grader": {
32
+ "checks": [
33
+ {
34
+ "kind": "saved_path_truthy",
35
+ "name": "snap",
36
+ "path": "documents.0.layout.styles"
37
+ },
38
+ {
39
+ "expected": "block",
40
+ "kind": "array_contains",
41
+ "name": "snap",
42
+ "path": "strings"
43
+ },
44
+ {
45
+ "expected": "rgb(0, 0, 0)",
46
+ "kind": "array_contains",
47
+ "name": "snap",
48
+ "path": "strings"
49
+ }
50
+ ],
51
+ "kind": "inline_assertions"
52
+ },
53
+ "layer": "L1",
54
+ "scene": {
55
+ "kind": "self_hosted_fixture",
56
+ "url": "/v2/diag/snapshot"
57
+ },
58
+ "subset_id": "l1.raw_cdp",
59
+ "tags": [
60
+ "family.diagnostics",
61
+ "purpose.diagnostic",
62
+ "version.v0_2"
63
+ ],
64
+ "task_id": "v2_diag_domsnapshot_computed_styles",
65
+ "task_version": 1,
66
+ "timeouts": {
67
+ "hard_kill_ms": 30000,
68
+ "task_ms": 15000
69
+ },
70
+ "title": "DOMSnapshot computedStyles round-trip"
71
+ }
definitions/tasks/L1/raw_cdp/v2_diag_domsnapshot_shape.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "[diagnostic lane] This method is on the real framework main path (on_framework_main_path); routed to the diagnostic lane per bench policy. DOMSnapshot.captureSnapshot over a known fixture; assert the snapshot shape invariants: exactly one document, a non-empty strings table, and the document exposes parallel layout.nodeIndex and nodes arrays.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "DOM.enable",
10
+ "optional": true
11
+ },
12
+ {
13
+ "method": "DOMSnapshot.enable",
14
+ "optional": true
15
+ },
16
+ {
17
+ "method": "DOMSnapshot.captureSnapshot",
18
+ "params": {
19
+ "computedStyles": []
20
+ },
21
+ "save_result_as": "snap"
22
+ }
23
+ ]
24
+ },
25
+ "features": [
26
+ "cdp.domsnapshot.capture_snapshot"
27
+ ],
28
+ "grader": {
29
+ "checks": [
30
+ {
31
+ "expected": 1,
32
+ "kind": "array_length",
33
+ "name": "snap",
34
+ "path": "documents"
35
+ },
36
+ {
37
+ "kind": "array_length",
38
+ "min": 10,
39
+ "name": "snap",
40
+ "path": "strings"
41
+ },
42
+ {
43
+ "kind": "saved_path_truthy",
44
+ "name": "snap",
45
+ "path": "documents.0.layout.nodeIndex"
46
+ },
47
+ {
48
+ "kind": "saved_path_truthy",
49
+ "name": "snap",
50
+ "path": "documents.0.nodes.nodeName"
51
+ }
52
+ ],
53
+ "kind": "inline_assertions"
54
+ },
55
+ "layer": "L1",
56
+ "scene": {
57
+ "kind": "self_hosted_fixture",
58
+ "url": "/v2/diag/snapshot"
59
+ },
60
+ "subset_id": "l1.raw_cdp",
61
+ "tags": [
62
+ "family.diagnostics",
63
+ "purpose.diagnostic",
64
+ "version.v0_2"
65
+ ],
66
+ "task_id": "v2_diag_domsnapshot_shape",
67
+ "task_version": 1,
68
+ "timeouts": {
69
+ "hard_kill_ms": 30000,
70
+ "task_ms": 15000
71
+ },
72
+ "title": "DOMSnapshot.captureSnapshot shape invariants"
73
+ }
definitions/tasks/L1/raw_cdp/v2_diag_gbcr_fixed.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "[diagnostic lane] getBoundingClientRect over Runtime.evaluate on a fixed 300x150 element at (0,0) (Defect C root: kernels miscompute layout). Expect exactly '300x150@0,0'.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Runtime.evaluate",
10
+ "params": {
11
+ "expression": "(function(){var r=document.getElementById('fixed').getBoundingClientRect();return r.width+'x'+r.height+'@'+r.left+','+r.top;})()",
12
+ "returnByValue": true
13
+ },
14
+ "save_as": "v"
15
+ }
16
+ ]
17
+ },
18
+ "features": [
19
+ "web.layout.bounding_client_rect"
20
+ ],
21
+ "grader": {
22
+ "checks": [
23
+ {
24
+ "expected": "300x150@0,0",
25
+ "kind": "value_equals",
26
+ "name": "v"
27
+ }
28
+ ],
29
+ "kind": "inline_assertions"
30
+ },
31
+ "layer": "L1",
32
+ "scene": {
33
+ "kind": "self_hosted_fixture",
34
+ "url": "/v2/diag/trio"
35
+ },
36
+ "subset_id": "l1.raw_cdp",
37
+ "tags": [
38
+ "family.diagnostics",
39
+ "purpose.diagnostic",
40
+ "version.v0_2"
41
+ ],
42
+ "task_id": "v2_diag_gbcr_fixed",
43
+ "task_version": 1,
44
+ "timeouts": {
45
+ "hard_kill_ms": 30000,
46
+ "task_ms": 15000
47
+ },
48
+ "title": "getBoundingClientRect on fixed-px element"
49
+ }
definitions/tasks/L1/raw_cdp/v2_diag_getboxmodel_border_box.json ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "[diagnostic lane] This method is on the real framework main path (on_framework_main_path); routed to the diagnostic lane per bench policy. DOM.getBoxModel on an element with content 200x100, padding 10, border 5. Assert the border box (model width/height 230x130 at origin 400,60) is distinct from the content box (200 wide at origin 415,75), proving content/padding/border box separation.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "DOM.enable",
10
+ "optional": true
11
+ },
12
+ {
13
+ "method": "DOM.getDocument",
14
+ "params": {
15
+ "depth": -1
16
+ },
17
+ "save_result_as": "doc"
18
+ },
19
+ {
20
+ "method": "DOM.querySelector",
21
+ "params": {
22
+ "nodeId": "{saved:doc.root.nodeId}",
23
+ "selector": "#padbox"
24
+ },
25
+ "save_result_as": "q"
26
+ },
27
+ {
28
+ "method": "DOM.getBoxModel",
29
+ "params": {
30
+ "nodeId": "{saved:q.nodeId}"
31
+ },
32
+ "save_result_as": "box"
33
+ }
34
+ ]
35
+ },
36
+ "features": [
37
+ "cdp.dom.get_box_model"
38
+ ],
39
+ "grader": {
40
+ "checks": [
41
+ {
42
+ "expected": 230,
43
+ "kind": "saved_path_equals",
44
+ "name": "box",
45
+ "path": "model.width"
46
+ },
47
+ {
48
+ "expected": 130,
49
+ "kind": "saved_path_equals",
50
+ "name": "box",
51
+ "path": "model.height"
52
+ },
53
+ {
54
+ "expected": 400,
55
+ "kind": "saved_path_equals",
56
+ "name": "box",
57
+ "path": "model.border.0"
58
+ },
59
+ {
60
+ "expected": 415,
61
+ "kind": "saved_path_equals",
62
+ "name": "box",
63
+ "path": "model.content.0"
64
+ },
65
+ {
66
+ "expected": 615,
67
+ "kind": "saved_path_equals",
68
+ "name": "box",
69
+ "path": "model.content.2"
70
+ }
71
+ ],
72
+ "kind": "inline_assertions"
73
+ },
74
+ "layer": "L1",
75
+ "scene": {
76
+ "kind": "self_hosted_fixture",
77
+ "url": "/v2/diag/geom"
78
+ },
79
+ "subset_id": "l1.raw_cdp",
80
+ "tags": [
81
+ "family.diagnostics",
82
+ "purpose.diagnostic",
83
+ "version.v0_2"
84
+ ],
85
+ "task_id": "v2_diag_getboxmodel_border_box",
86
+ "task_version": 1,
87
+ "timeouts": {
88
+ "hard_kill_ms": 30000,
89
+ "task_ms": 15000
90
+ },
91
+ "title": "DOM.getBoxModel content vs border box"
92
+ }
definitions/tasks/L1/raw_cdp/v2_diag_getboxmodel_dims.json ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "[diagnostic lane] This method is on the real framework main path (on_framework_main_path); routed to the diagnostic lane per bench policy. DOM.getBoxModel on a fixed 240x120 absolutely-positioned element (no border/padding, so content box == border box). Assert model width/height and the content quad coordinates (origin 50,60; far corner 290,180).",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "DOM.enable",
10
+ "optional": true
11
+ },
12
+ {
13
+ "method": "DOM.getDocument",
14
+ "params": {
15
+ "depth": -1
16
+ },
17
+ "save_result_as": "doc"
18
+ },
19
+ {
20
+ "method": "DOM.querySelector",
21
+ "params": {
22
+ "nodeId": "{saved:doc.root.nodeId}",
23
+ "selector": "#box"
24
+ },
25
+ "save_result_as": "q"
26
+ },
27
+ {
28
+ "method": "DOM.getBoxModel",
29
+ "params": {
30
+ "nodeId": "{saved:q.nodeId}"
31
+ },
32
+ "save_result_as": "box"
33
+ }
34
+ ]
35
+ },
36
+ "features": [
37
+ "cdp.dom.get_box_model"
38
+ ],
39
+ "grader": {
40
+ "checks": [
41
+ {
42
+ "expected": 240,
43
+ "kind": "saved_path_equals",
44
+ "name": "box",
45
+ "path": "model.width"
46
+ },
47
+ {
48
+ "expected": 120,
49
+ "kind": "saved_path_equals",
50
+ "name": "box",
51
+ "path": "model.height"
52
+ },
53
+ {
54
+ "expected": 8,
55
+ "kind": "array_length",
56
+ "name": "box",
57
+ "path": "model.content"
58
+ },
59
+ {
60
+ "expected": 50,
61
+ "kind": "saved_path_equals",
62
+ "name": "box",
63
+ "path": "model.content.0"
64
+ },
65
+ {
66
+ "expected": 290,
67
+ "kind": "saved_path_equals",
68
+ "name": "box",
69
+ "path": "model.content.2"
70
+ }
71
+ ],
72
+ "kind": "inline_assertions"
73
+ },
74
+ "layer": "L1",
75
+ "scene": {
76
+ "kind": "self_hosted_fixture",
77
+ "url": "/v2/diag/geom"
78
+ },
79
+ "subset_id": "l1.raw_cdp",
80
+ "tags": [
81
+ "family.diagnostics",
82
+ "purpose.diagnostic",
83
+ "version.v0_2"
84
+ ],
85
+ "task_id": "v2_diag_getboxmodel_dims",
86
+ "task_version": 1,
87
+ "timeouts": {
88
+ "hard_kill_ms": 30000,
89
+ "task_ms": 15000
90
+ },
91
+ "title": "DOM.getBoxModel geometry on fixed element"
92
+ }
definitions/tasks/L1/raw_cdp/v2_diag_getcontentquads_shape.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "[diagnostic lane] This method is on the real framework main path (on_framework_main_path); routed to the diagnostic lane per bench policy. DOM.getContentQuads on a fixed 240x120 element. Assert exactly one quad of 8 coordinates, matching the element rectangle (50,60)-(290,180).",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "DOM.enable",
10
+ "optional": true
11
+ },
12
+ {
13
+ "method": "DOM.getDocument",
14
+ "params": {
15
+ "depth": -1
16
+ },
17
+ "save_result_as": "doc"
18
+ },
19
+ {
20
+ "method": "DOM.querySelector",
21
+ "params": {
22
+ "nodeId": "{saved:doc.root.nodeId}",
23
+ "selector": "#box"
24
+ },
25
+ "save_result_as": "q"
26
+ },
27
+ {
28
+ "method": "DOM.getContentQuads",
29
+ "params": {
30
+ "nodeId": "{saved:q.nodeId}"
31
+ },
32
+ "save_result_as": "quads"
33
+ }
34
+ ]
35
+ },
36
+ "features": [
37
+ "cdp.dom.get_content_quads"
38
+ ],
39
+ "grader": {
40
+ "checks": [
41
+ {
42
+ "expected": 1,
43
+ "kind": "array_length",
44
+ "name": "quads",
45
+ "path": "quads"
46
+ },
47
+ {
48
+ "expected": 8,
49
+ "kind": "array_length",
50
+ "name": "quads",
51
+ "path": "quads.0"
52
+ },
53
+ {
54
+ "expected": 50,
55
+ "kind": "saved_path_equals",
56
+ "name": "quads",
57
+ "path": "quads.0.0"
58
+ },
59
+ {
60
+ "expected": 290,
61
+ "kind": "saved_path_equals",
62
+ "name": "quads",
63
+ "path": "quads.0.2"
64
+ }
65
+ ],
66
+ "kind": "inline_assertions"
67
+ },
68
+ "layer": "L1",
69
+ "scene": {
70
+ "kind": "self_hosted_fixture",
71
+ "url": "/v2/diag/geom"
72
+ },
73
+ "subset_id": "l1.raw_cdp",
74
+ "tags": [
75
+ "family.diagnostics",
76
+ "purpose.diagnostic",
77
+ "version.v0_2"
78
+ ],
79
+ "task_id": "v2_diag_getcontentquads_shape",
80
+ "task_version": 1,
81
+ "timeouts": {
82
+ "hard_kill_ms": 30000,
83
+ "task_ms": 15000
84
+ },
85
+ "title": "DOM.getContentQuads shape on fixed element"
86
+ }
definitions/tasks/L1/raw_cdp/v2_diag_layoutmetrics_viewport.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "[diagnostic lane] This method is on the real framework main path (on_framework_main_path); routed to the diagnostic lane per bench policy. Page.getLayoutMetrics viewport consistency: cssLayoutViewport.clientWidth, cssContentSize.width and the (deprecated) layoutViewport.clientWidth must all agree (780 under the pinned Chrome headless viewport).",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Page.getLayoutMetrics",
10
+ "save_result_as": "lm"
11
+ }
12
+ ]
13
+ },
14
+ "features": [
15
+ "cdp.page.get_layout_metrics",
16
+ "web.layout.viewport"
17
+ ],
18
+ "grader": {
19
+ "checks": [
20
+ {
21
+ "expected": 780,
22
+ "kind": "saved_path_equals",
23
+ "name": "lm",
24
+ "path": "cssLayoutViewport.clientWidth"
25
+ },
26
+ {
27
+ "expected": 780,
28
+ "kind": "saved_path_equals",
29
+ "name": "lm",
30
+ "path": "cssContentSize.width"
31
+ },
32
+ {
33
+ "expected": 780,
34
+ "kind": "saved_path_equals",
35
+ "name": "lm",
36
+ "path": "layoutViewport.clientWidth"
37
+ }
38
+ ],
39
+ "kind": "inline_assertions"
40
+ },
41
+ "layer": "L1",
42
+ "scene": {
43
+ "kind": "self_hosted_fixture",
44
+ "url": "/v2/diag/geom"
45
+ },
46
+ "subset_id": "l1.raw_cdp",
47
+ "tags": [
48
+ "family.diagnostics",
49
+ "purpose.diagnostic",
50
+ "version.v0_2"
51
+ ],
52
+ "task_id": "v2_diag_layoutmetrics_viewport",
53
+ "task_version": 1,
54
+ "timeouts": {
55
+ "hard_kill_ms": 30000,
56
+ "task_ms": 15000
57
+ },
58
+ "title": "Page.getLayoutMetrics viewport consistency"
59
+ }
definitions/tasks/L1/raw_cdp/v2_diag_offset_dims_fixed.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "[diagnostic lane] offsetWidth/offsetHeight over Runtime.evaluate on a fixed 300x150 element (Defect C root). Expect exactly '300x150'.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Runtime.evaluate",
10
+ "params": {
11
+ "expression": "(function(){var e=document.getElementById('fixed');return e.offsetWidth+'x'+e.offsetHeight;})()",
12
+ "returnByValue": true
13
+ },
14
+ "save_as": "v"
15
+ }
16
+ ]
17
+ },
18
+ "features": [
19
+ "web.layout.offset_dimensions"
20
+ ],
21
+ "grader": {
22
+ "checks": [
23
+ {
24
+ "expected": "300x150",
25
+ "kind": "value_equals",
26
+ "name": "v"
27
+ }
28
+ ],
29
+ "kind": "inline_assertions"
30
+ },
31
+ "layer": "L1",
32
+ "scene": {
33
+ "kind": "self_hosted_fixture",
34
+ "url": "/v2/diag/trio"
35
+ },
36
+ "subset_id": "l1.raw_cdp",
37
+ "tags": [
38
+ "family.diagnostics",
39
+ "purpose.diagnostic",
40
+ "version.v0_2"
41
+ ],
42
+ "task_id": "v2_diag_offset_dims_fixed",
43
+ "task_version": 1,
44
+ "timeouts": {
45
+ "hard_kill_ms": 30000,
46
+ "task_ms": 15000
47
+ },
48
+ "title": "offsetWidth/offsetHeight on fixed-px element"
49
+ }
definitions/tasks/L1/raw_cdp/v2_diag_scrollsize_fixed.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "[diagnostic lane] scrollHeight/scrollWidth over Runtime.evaluate on a 100x50 scroller whose 400x400 inner content sets the scrollable extent (Defect C root). Expect exactly '400x400'.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Runtime.evaluate",
10
+ "params": {
11
+ "expression": "(function(){var e=document.getElementById('scroller');return e.scrollHeight+'x'+e.scrollWidth;})()",
12
+ "returnByValue": true
13
+ },
14
+ "save_as": "v"
15
+ }
16
+ ]
17
+ },
18
+ "features": [
19
+ "web.layout.scroll_dimensions"
20
+ ],
21
+ "grader": {
22
+ "checks": [
23
+ {
24
+ "expected": "400x400",
25
+ "kind": "value_equals",
26
+ "name": "v"
27
+ }
28
+ ],
29
+ "kind": "inline_assertions"
30
+ },
31
+ "layer": "L1",
32
+ "scene": {
33
+ "kind": "self_hosted_fixture",
34
+ "url": "/v2/diag/trio"
35
+ },
36
+ "subset_id": "l1.raw_cdp",
37
+ "tags": [
38
+ "family.diagnostics",
39
+ "purpose.diagnostic",
40
+ "version.v0_2"
41
+ ],
42
+ "task_id": "v2_diag_scrollsize_fixed",
43
+ "task_version": 1,
44
+ "timeouts": {
45
+ "hard_kill_ms": 30000,
46
+ "task_ms": 15000
47
+ },
48
+ "title": "scrollHeight/scrollWidth on overflow container"
49
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_auth_required_e2e.json ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "End-to-end Basic-auth interception: Fetch.enable with handleAuthRequests, a page fetch() hits the 401-challenging /__auth__/ endpoint, Fetch.requestPaused is continued, Fetch.authRequired arrives carrying the Basic challenge, Fetch.continueWithAuth provides credentials, the retried request is continued and the page observes the authenticated 200 body. Closes the last T1_intercept anchor (Fetch.authRequired).",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "handleAuthRequests": true,
12
+ "patterns": [
13
+ {
14
+ "urlPattern": "*__auth__*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "fetch('/__auth__/data').then(function(r){return r.text();}).then(function(t){window.__abbAuth = t;}).catch(function(e){window.__abbAuth = 'ERR:' + String(e);})"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused1",
27
+ "session": "page",
28
+ "timeout_ms": 5000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.continueRequest",
33
+ "params": {
34
+ "requestId": "{saved:paused1.requestId}"
35
+ }
36
+ },
37
+ {
38
+ "save_result_as": "challenge",
39
+ "session": "page",
40
+ "timeout_ms": 5000,
41
+ "wait_for_event": "Fetch.authRequired"
42
+ },
43
+ {
44
+ "method": "Fetch.continueWithAuth",
45
+ "params": {
46
+ "authChallengeResponse": {
47
+ "password": "secret",
48
+ "response": "ProvideCredentials",
49
+ "username": "bench"
50
+ },
51
+ "requestId": "{saved:challenge.requestId}"
52
+ }
53
+ },
54
+ {
55
+ "optional": true,
56
+ "save_result_as": "paused2",
57
+ "session": "page",
58
+ "timeout_ms": 5000,
59
+ "wait_for_event": "Fetch.requestPaused"
60
+ },
61
+ {
62
+ "method": "Fetch.continueRequest",
63
+ "optional": true,
64
+ "params": {
65
+ "requestId": "{saved:paused2.requestId}"
66
+ }
67
+ },
68
+ {
69
+ "sleep_ms": 600
70
+ },
71
+ {
72
+ "method": "Runtime.evaluate",
73
+ "params": {
74
+ "expression": "window.__abbAuth",
75
+ "returnByValue": true
76
+ },
77
+ "save_as": "fetched"
78
+ }
79
+ ]
80
+ },
81
+ "features": [
82
+ "cdp.fetch.enable",
83
+ "cdp.fetch.auth_required",
84
+ "cdp.fetch.continue_with_auth",
85
+ "cdp.fetch.continue_request"
86
+ ],
87
+ "grader": {
88
+ "checks": [
89
+ {
90
+ "kind": "event_observed",
91
+ "method": "Fetch.authRequired",
92
+ "name": "challenge"
93
+ },
94
+ {
95
+ "kind": "saved_path_truthy",
96
+ "name": "challenge",
97
+ "path": "authChallenge.scheme"
98
+ },
99
+ {
100
+ "expected": "granted",
101
+ "kind": "value_contains",
102
+ "name": "fetched"
103
+ }
104
+ ],
105
+ "kind": "inline_assertions"
106
+ },
107
+ "layer": "L1",
108
+ "scene": {
109
+ "kind": "self_hosted_fixture",
110
+ "url": "/l1/core"
111
+ },
112
+ "subset_id": "l1.raw_cdp",
113
+ "tags": [
114
+ "family.fetch",
115
+ "version.v0_2"
116
+ ],
117
+ "task_id": "v2_fetch_auth_required_e2e",
118
+ "task_version": 1,
119
+ "timeouts": {
120
+ "hard_kill_ms": 30000,
121
+ "task_ms": 20000
122
+ },
123
+ "title": "Fetch.authRequired end-to-end Basic auth challenge"
124
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_continue_request_modify_headers.json ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "Fetch.continueRequest with an overridden request headers array (injecting x-abb-injected and Accept) still delivers the origin body to the page. Note: the fixture server does not echo request headers, so server-visible header values cannot be asserted here (documented in skipped_fetch.md); this probe covers the continueRequest header-override parameter path end to end.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*abbfetch-real*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.continueRequest",
33
+ "params": {
34
+ "headers": [
35
+ {
36
+ "name": "x-abb-injected",
37
+ "value": "1"
38
+ },
39
+ {
40
+ "name": "Accept",
41
+ "value": "text/plain"
42
+ }
43
+ ],
44
+ "requestId": "{saved:paused.requestId}"
45
+ }
46
+ },
47
+ {
48
+ "sleep_ms": 400
49
+ },
50
+ {
51
+ "method": "Runtime.evaluate",
52
+ "params": {
53
+ "expression": "window.__abbBody",
54
+ "returnByValue": true
55
+ },
56
+ "save_as": "body"
57
+ }
58
+ ]
59
+ },
60
+ "features": [
61
+ "cdp.fetch.enable",
62
+ "cdp.fetch.continue_request"
63
+ ],
64
+ "grader": {
65
+ "checks": [
66
+ {
67
+ "kind": "event_observed",
68
+ "method": "Fetch.requestPaused",
69
+ "name": "paused"
70
+ },
71
+ {
72
+ "expected": "REAL-SERVER-BODY",
73
+ "kind": "value_contains",
74
+ "name": "body"
75
+ }
76
+ ],
77
+ "kind": "inline_assertions"
78
+ },
79
+ "layer": "L1",
80
+ "scene": {
81
+ "kind": "self_hosted_fixture",
82
+ "url": "/v0_2/fetch/page"
83
+ },
84
+ "subset_id": "l1.raw_cdp",
85
+ "tags": [
86
+ "family.fetch",
87
+ "version.v0_2"
88
+ ],
89
+ "task_id": "v2_fetch_continue_request_modify_headers",
90
+ "task_version": 1,
91
+ "timeouts": {
92
+ "hard_kill_ms": 30000,
93
+ "task_ms": 20000
94
+ },
95
+ "title": "Fetch.continueRequest with header/method override"
96
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_continue_request_modify_url.json ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "The page fetches the 'real' route, but Fetch.continueRequest overrides the request url to a different origin route ('truth'); the server therefore serves the other resource and the page renders the truth body. Proves continueRequest url rewriting reaches the origin.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Runtime.evaluate",
10
+ "params": {
11
+ "expression": "location.origin+'/v0_2/fetch/abbfetch-truth'",
12
+ "returnByValue": true
13
+ },
14
+ "save_as": "truthurl"
15
+ },
16
+ {
17
+ "method": "Fetch.enable",
18
+ "params": {
19
+ "patterns": [
20
+ {
21
+ "requestStage": "Request",
22
+ "urlPattern": "*abbfetch-real*"
23
+ }
24
+ ]
25
+ }
26
+ },
27
+ {
28
+ "method": "Runtime.evaluate",
29
+ "params": {
30
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
31
+ }
32
+ },
33
+ {
34
+ "save_result_as": "paused",
35
+ "session": "page",
36
+ "timeout_ms": 6000,
37
+ "wait_for_event": "Fetch.requestPaused"
38
+ },
39
+ {
40
+ "method": "Fetch.continueRequest",
41
+ "params": {
42
+ "requestId": "{saved:paused.requestId}",
43
+ "url": "{saved:truthurl.result.value}"
44
+ }
45
+ },
46
+ {
47
+ "sleep_ms": 400
48
+ },
49
+ {
50
+ "method": "Runtime.evaluate",
51
+ "params": {
52
+ "expression": "window.__abbBody",
53
+ "returnByValue": true
54
+ },
55
+ "save_as": "body"
56
+ }
57
+ ]
58
+ },
59
+ "features": [
60
+ "cdp.fetch.enable",
61
+ "cdp.fetch.request_paused",
62
+ "cdp.fetch.continue_request"
63
+ ],
64
+ "grader": {
65
+ "checks": [
66
+ {
67
+ "kind": "event_observed",
68
+ "method": "Fetch.requestPaused",
69
+ "name": "paused"
70
+ },
71
+ {
72
+ "expected": "ROUTE-TRUTH-BODY",
73
+ "kind": "value_contains",
74
+ "name": "body"
75
+ }
76
+ ],
77
+ "kind": "inline_assertions"
78
+ },
79
+ "layer": "L1",
80
+ "scene": {
81
+ "kind": "self_hosted_fixture",
82
+ "url": "/v0_2/fetch/page"
83
+ },
84
+ "subset_id": "l1.raw_cdp",
85
+ "tags": [
86
+ "family.fetch",
87
+ "version.v0_2"
88
+ ],
89
+ "task_id": "v2_fetch_continue_request_modify_url",
90
+ "task_version": 1,
91
+ "timeouts": {
92
+ "hard_kill_ms": 30000,
93
+ "task_ms": 20000
94
+ },
95
+ "title": "Fetch.continueRequest rewrites the request URL"
96
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_continue_with_auth_probe.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "Structural probe for the auth path: Fetch.enable accepts handleAuthRequests true (auth-handling mode), and Fetch.continueWithAuth is a recognized command that cleanly rejects an invalid interception id. A full Basic-auth challenge (Fetch.authRequired) cannot be produced against the 200-only fixture server; see skipped_fetch.md.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "handleAuthRequests": true,
12
+ "patterns": [
13
+ {
14
+ "requestStage": "Request",
15
+ "urlPattern": "*abbfetch-real*"
16
+ }
17
+ ]
18
+ }
19
+ },
20
+ {
21
+ "expect_unsupported": true,
22
+ "method": "Fetch.continueWithAuth",
23
+ "params": {
24
+ "authChallengeResponse": {
25
+ "password": "p",
26
+ "response": "ProvideCredentials",
27
+ "username": "u"
28
+ },
29
+ "requestId": "abb-nonexistent-000"
30
+ }
31
+ }
32
+ ]
33
+ },
34
+ "features": [
35
+ "cdp.fetch.enable",
36
+ "cdp.fetch.continue_with_auth"
37
+ ],
38
+ "grader": {
39
+ "checks": [
40
+ {
41
+ "kind": "unsupported_observed",
42
+ "method": "Fetch.continueWithAuth",
43
+ "name": "value"
44
+ }
45
+ ],
46
+ "kind": "inline_assertions"
47
+ },
48
+ "layer": "L1",
49
+ "scene": {
50
+ "kind": "self_hosted_fixture",
51
+ "url": "/v0_2/fetch/page"
52
+ },
53
+ "subset_id": "l1.raw_cdp",
54
+ "tags": [
55
+ "family.fetch",
56
+ "version.v0_2"
57
+ ],
58
+ "task_id": "v2_fetch_continue_with_auth_probe",
59
+ "task_version": 1,
60
+ "timeouts": {
61
+ "hard_kill_ms": 30000,
62
+ "task_ms": 20000
63
+ },
64
+ "title": "Fetch.enable(handleAuthRequests) + continueWithAuth recognized"
65
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_disable_stops_pausing.json ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "First proves interception is active (a fetch pauses and is continued). Then Fetch.disable is issued; a second fetch to the same pattern is NOT paused (the optional wait times out and no paused event is captured) and completes normally with the real origin body. Verifies Fetch.disable tears down interception.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*abbfetch-real*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused1",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.continueRequest",
33
+ "params": {
34
+ "requestId": "{saved:paused1.requestId}"
35
+ }
36
+ },
37
+ {
38
+ "sleep_ms": 300
39
+ },
40
+ {
41
+ "method": "Fetch.disable"
42
+ },
43
+ {
44
+ "method": "Runtime.evaluate",
45
+ "params": {
46
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
47
+ }
48
+ },
49
+ {
50
+ "optional": true,
51
+ "save_result_as": "paused2",
52
+ "session": "page",
53
+ "timeout_ms": 1500,
54
+ "wait_for_event": "Fetch.requestPaused"
55
+ },
56
+ {
57
+ "sleep_ms": 300
58
+ },
59
+ {
60
+ "method": "Runtime.evaluate",
61
+ "params": {
62
+ "expression": "window.__abbBody",
63
+ "returnByValue": true
64
+ },
65
+ "save_as": "body2"
66
+ }
67
+ ]
68
+ },
69
+ "features": [
70
+ "cdp.fetch.enable",
71
+ "cdp.fetch.disable"
72
+ ],
73
+ "grader": {
74
+ "checks": [
75
+ {
76
+ "kind": "event_observed",
77
+ "method": "Fetch.requestPaused",
78
+ "name": "paused1"
79
+ },
80
+ {
81
+ "expected": null,
82
+ "kind": "saved_path_equals",
83
+ "name": "paused2",
84
+ "path": null
85
+ },
86
+ {
87
+ "expected": "REAL-SERVER-BODY",
88
+ "kind": "value_contains",
89
+ "name": "body2"
90
+ }
91
+ ],
92
+ "kind": "inline_assertions"
93
+ },
94
+ "layer": "L1",
95
+ "scene": {
96
+ "kind": "self_hosted_fixture",
97
+ "url": "/v0_2/fetch/page"
98
+ },
99
+ "subset_id": "l1.raw_cdp",
100
+ "tags": [
101
+ "family.fetch",
102
+ "version.v0_2"
103
+ ],
104
+ "task_id": "v2_fetch_disable_stops_pausing",
105
+ "task_version": 1,
106
+ "timeouts": {
107
+ "hard_kill_ms": 30000,
108
+ "task_ms": 20000
109
+ },
110
+ "title": "Fetch.disable stops further requestPaused events"
111
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_enable_no_patterns.json ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "Fetch.enable called with no patterns (intercept every request). A single page fetch() is paused, then released with Fetch.continueRequest; the page receives the real origin body. Contrasts with the pattern-scoped enable and exercises the pattern-less interception form.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {}
11
+ },
12
+ {
13
+ "method": "Runtime.evaluate",
14
+ "params": {
15
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
16
+ }
17
+ },
18
+ {
19
+ "save_result_as": "paused",
20
+ "session": "page",
21
+ "timeout_ms": 6000,
22
+ "wait_for_event": "Fetch.requestPaused"
23
+ },
24
+ {
25
+ "method": "Fetch.continueRequest",
26
+ "params": {
27
+ "requestId": "{saved:paused.requestId}"
28
+ }
29
+ },
30
+ {
31
+ "sleep_ms": 400
32
+ },
33
+ {
34
+ "method": "Runtime.evaluate",
35
+ "params": {
36
+ "expression": "window.__abbBody",
37
+ "returnByValue": true
38
+ },
39
+ "save_as": "body"
40
+ }
41
+ ]
42
+ },
43
+ "features": [
44
+ "cdp.fetch.enable",
45
+ "cdp.fetch.continue_request"
46
+ ],
47
+ "grader": {
48
+ "checks": [
49
+ {
50
+ "kind": "event_observed",
51
+ "method": "Fetch.requestPaused",
52
+ "name": "paused"
53
+ },
54
+ {
55
+ "expected": "REAL-SERVER-BODY",
56
+ "kind": "value_contains",
57
+ "name": "body"
58
+ }
59
+ ],
60
+ "kind": "inline_assertions"
61
+ },
62
+ "layer": "L1",
63
+ "scene": {
64
+ "kind": "self_hosted_fixture",
65
+ "url": "/v0_2/fetch/page"
66
+ },
67
+ "subset_id": "l1.raw_cdp",
68
+ "tags": [
69
+ "family.fetch",
70
+ "version.v0_2"
71
+ ],
72
+ "task_id": "v2_fetch_enable_no_patterns",
73
+ "task_version": 1,
74
+ "timeouts": {
75
+ "hard_kill_ms": 30000,
76
+ "task_ms": 20000
77
+ },
78
+ "title": "Fetch.enable() without patterns intercepts all requests"
79
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_enable_patterns_continue.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "Fetch.enable with a URL pattern at requestStage Request; a page fetch() triggers Fetch.requestPaused; the driver inspects the paused request fields and lets it through unchanged with Fetch.continueRequest, so the page receives the real origin body. Covers enable+patterns, Request stage, requestPaused field semantics, and plain continueRequest.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*abbfetch-real*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.continueRequest",
33
+ "params": {
34
+ "requestId": "{saved:paused.requestId}"
35
+ }
36
+ },
37
+ {
38
+ "sleep_ms": 400
39
+ },
40
+ {
41
+ "method": "Runtime.evaluate",
42
+ "params": {
43
+ "expression": "window.__abbBody",
44
+ "returnByValue": true
45
+ },
46
+ "save_as": "body"
47
+ }
48
+ ]
49
+ },
50
+ "features": [
51
+ "cdp.fetch.enable",
52
+ "cdp.fetch.request_paused",
53
+ "cdp.fetch.continue_request"
54
+ ],
55
+ "grader": {
56
+ "checks": [
57
+ {
58
+ "kind": "event_observed",
59
+ "method": "Fetch.requestPaused",
60
+ "name": "paused"
61
+ },
62
+ {
63
+ "kind": "saved_path_truthy",
64
+ "name": "paused",
65
+ "path": "requestId"
66
+ },
67
+ {
68
+ "expected": "abbfetch-real",
69
+ "kind": "saved_path_contains",
70
+ "name": "paused",
71
+ "path": "request.url"
72
+ },
73
+ {
74
+ "expected": "GET",
75
+ "kind": "saved_path_equals",
76
+ "name": "paused",
77
+ "path": "request.method"
78
+ },
79
+ {
80
+ "expected": "REAL-SERVER-BODY",
81
+ "kind": "value_contains",
82
+ "name": "body"
83
+ }
84
+ ],
85
+ "kind": "inline_assertions"
86
+ },
87
+ "layer": "L1",
88
+ "scene": {
89
+ "kind": "self_hosted_fixture",
90
+ "url": "/v0_2/fetch/page"
91
+ },
92
+ "subset_id": "l1.raw_cdp",
93
+ "tags": [
94
+ "family.fetch",
95
+ "version.v0_2"
96
+ ],
97
+ "task_id": "v2_fetch_enable_patterns_continue",
98
+ "task_version": 1,
99
+ "timeouts": {
100
+ "hard_kill_ms": 30000,
101
+ "task_ms": 20000
102
+ },
103
+ "title": "Fetch.enable(patterns, Request) + continueRequest passthrough"
104
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_fail_request.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "Fetch.failRequest with errorReason BlockedByClient aborts the paused request; the page's fetch() promise rejects and stores an ERR marker. Verifies failRequest surfaces as a network error to the page.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*abbfetch-real*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.failRequest",
33
+ "params": {
34
+ "errorReason": "BlockedByClient",
35
+ "requestId": "{saved:paused.requestId}"
36
+ }
37
+ },
38
+ {
39
+ "sleep_ms": 400
40
+ },
41
+ {
42
+ "method": "Runtime.evaluate",
43
+ "params": {
44
+ "expression": "window.__abbBody",
45
+ "returnByValue": true
46
+ },
47
+ "save_as": "body"
48
+ }
49
+ ]
50
+ },
51
+ "features": [
52
+ "cdp.fetch.enable",
53
+ "cdp.fetch.fail_request"
54
+ ],
55
+ "grader": {
56
+ "checks": [
57
+ {
58
+ "kind": "event_observed",
59
+ "method": "Fetch.requestPaused",
60
+ "name": "paused"
61
+ },
62
+ {
63
+ "expected": "ERR:",
64
+ "kind": "value_contains",
65
+ "name": "body"
66
+ }
67
+ ],
68
+ "kind": "inline_assertions"
69
+ },
70
+ "layer": "L1",
71
+ "scene": {
72
+ "kind": "self_hosted_fixture",
73
+ "url": "/v0_2/fetch/page"
74
+ },
75
+ "subset_id": "l1.raw_cdp",
76
+ "tags": [
77
+ "family.fetch",
78
+ "version.v0_2"
79
+ ],
80
+ "task_id": "v2_fetch_fail_request",
81
+ "task_version": 1,
82
+ "timeouts": {
83
+ "hard_kill_ms": 30000,
84
+ "task_ms": 20000
85
+ },
86
+ "title": "Fetch.failRequest(BlockedByClient) rejects the request"
87
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_fail_request_alt_reason.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "A second failRequest error-reason probe: errorReason ConnectionRefused also aborts the request and rejects the page fetch() promise. Confirms distinct Fetch.failRequest error codes route to a page-visible network failure.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*abbfetch-real*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.failRequest",
33
+ "params": {
34
+ "errorReason": "ConnectionRefused",
35
+ "requestId": "{saved:paused.requestId}"
36
+ }
37
+ },
38
+ {
39
+ "sleep_ms": 400
40
+ },
41
+ {
42
+ "method": "Runtime.evaluate",
43
+ "params": {
44
+ "expression": "window.__abbBody",
45
+ "returnByValue": true
46
+ },
47
+ "save_as": "body"
48
+ }
49
+ ]
50
+ },
51
+ "features": [
52
+ "cdp.fetch.enable",
53
+ "cdp.fetch.fail_request"
54
+ ],
55
+ "grader": {
56
+ "checks": [
57
+ {
58
+ "kind": "event_observed",
59
+ "method": "Fetch.requestPaused",
60
+ "name": "paused"
61
+ },
62
+ {
63
+ "expected": "ERR:",
64
+ "kind": "value_contains",
65
+ "name": "body"
66
+ }
67
+ ],
68
+ "kind": "inline_assertions"
69
+ },
70
+ "layer": "L1",
71
+ "scene": {
72
+ "kind": "self_hosted_fixture",
73
+ "url": "/v0_2/fetch/page"
74
+ },
75
+ "subset_id": "l1.raw_cdp",
76
+ "tags": [
77
+ "family.fetch",
78
+ "version.v0_2"
79
+ ],
80
+ "task_id": "v2_fetch_fail_request_alt_reason",
81
+ "task_version": 1,
82
+ "timeouts": {
83
+ "hard_kill_ms": 30000,
84
+ "task_ms": 20000
85
+ },
86
+ "title": "Fetch.failRequest(ConnectionRefused) error semantics"
87
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_fulfill_custom_response.json ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "Fetch.fulfillRequest injects a synthetic response: status 201, a custom x-abb-tag header, and a text body. The page reads back the status code, the custom header value, and the body, proving all three fulfillRequest response fields take effect.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*abbfetch-real*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.fulfillRequest",
33
+ "params": {
34
+ "body": "RlVMRklMTEVELUJPRFktdG9rZW4tZWNobw==",
35
+ "requestId": "{saved:paused.requestId}",
36
+ "responseCode": 201,
37
+ "responseHeaders": [
38
+ {
39
+ "name": "Content-Type",
40
+ "value": "text/plain"
41
+ },
42
+ {
43
+ "name": "x-abb-tag",
44
+ "value": "hdr-echo-77"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "sleep_ms": 400
51
+ },
52
+ {
53
+ "method": "Runtime.evaluate",
54
+ "params": {
55
+ "expression": "window.__abbStatus+'|'+window.__abbXTag+'|'+window.__abbBody",
56
+ "returnByValue": true
57
+ },
58
+ "save_as": "combo"
59
+ }
60
+ ]
61
+ },
62
+ "features": [
63
+ "cdp.fetch.enable",
64
+ "cdp.fetch.fulfill_request"
65
+ ],
66
+ "grader": {
67
+ "checks": [
68
+ {
69
+ "kind": "event_observed",
70
+ "method": "Fetch.requestPaused",
71
+ "name": "paused"
72
+ },
73
+ {
74
+ "expected": "201",
75
+ "kind": "value_contains",
76
+ "name": "combo"
77
+ },
78
+ {
79
+ "expected": "hdr-echo-77",
80
+ "kind": "value_contains",
81
+ "name": "combo"
82
+ },
83
+ {
84
+ "expected": "FULFILLED-BODY-token-echo",
85
+ "kind": "value_contains",
86
+ "name": "combo"
87
+ }
88
+ ],
89
+ "kind": "inline_assertions"
90
+ },
91
+ "layer": "L1",
92
+ "scene": {
93
+ "kind": "self_hosted_fixture",
94
+ "url": "/v0_2/fetch/page"
95
+ },
96
+ "subset_id": "l1.raw_cdp",
97
+ "tags": [
98
+ "family.fetch",
99
+ "version.v0_2"
100
+ ],
101
+ "task_id": "v2_fetch_fulfill_custom_response",
102
+ "task_version": 1,
103
+ "timeouts": {
104
+ "hard_kill_ms": 30000,
105
+ "task_ms": 20000
106
+ },
107
+ "title": "Fetch.fulfillRequest with custom code, headers and body"
108
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_fulfill_json.json ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "Fetch.fulfillRequest returns a JSON body with an application/json content type; the page JSON.parses it and reads a field. Verifies fulfillRequest can mock a JSON API response the origin never produced.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*abbfetch-real*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.fulfillRequest",
33
+ "params": {
34
+ "body": "eyJhbnN3ZXIiOiJNT0NLRURfTElWRV9BTlNXRVIifQ==",
35
+ "requestId": "{saved:paused.requestId}",
36
+ "responseCode": 200,
37
+ "responseHeaders": [
38
+ {
39
+ "name": "Content-Type",
40
+ "value": "application/json"
41
+ }
42
+ ]
43
+ }
44
+ },
45
+ {
46
+ "sleep_ms": 400
47
+ },
48
+ {
49
+ "method": "Runtime.evaluate",
50
+ "params": {
51
+ "expression": "JSON.parse(window.__abbBody).answer",
52
+ "returnByValue": true
53
+ },
54
+ "save_as": "ans"
55
+ }
56
+ ]
57
+ },
58
+ "features": [
59
+ "cdp.fetch.enable",
60
+ "cdp.fetch.fulfill_request"
61
+ ],
62
+ "grader": {
63
+ "checks": [
64
+ {
65
+ "kind": "event_observed",
66
+ "method": "Fetch.requestPaused",
67
+ "name": "paused"
68
+ },
69
+ {
70
+ "expected": "MOCKED_LIVE_ANSWER",
71
+ "kind": "value_equals",
72
+ "name": "ans"
73
+ }
74
+ ],
75
+ "kind": "inline_assertions"
76
+ },
77
+ "layer": "L1",
78
+ "scene": {
79
+ "kind": "self_hosted_fixture",
80
+ "url": "/v0_2/fetch/page"
81
+ },
82
+ "subset_id": "l1.raw_cdp",
83
+ "tags": [
84
+ "family.fetch",
85
+ "version.v0_2"
86
+ ],
87
+ "task_id": "v2_fetch_fulfill_json",
88
+ "task_version": 1,
89
+ "timeouts": {
90
+ "hard_kill_ms": 30000,
91
+ "task_ms": 20000
92
+ },
93
+ "title": "Fetch.fulfillRequest returns synthetic JSON"
94
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_fulfill_status_override_404.json ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "Fetch.fulfillRequest returns a non-2xx status (404) with a custom body for a route that would otherwise return 200; the page observes status 404 and the injected body. Covers fulfillRequest response-code override semantics.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*abbfetch-real*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.fulfillRequest",
33
+ "params": {
34
+ "body": "bm90LWhlcmUtNDA0LWJvZHk=",
35
+ "requestId": "{saved:paused.requestId}",
36
+ "responseCode": 404,
37
+ "responseHeaders": [
38
+ {
39
+ "name": "Content-Type",
40
+ "value": "text/plain"
41
+ }
42
+ ]
43
+ }
44
+ },
45
+ {
46
+ "sleep_ms": 400
47
+ },
48
+ {
49
+ "method": "Runtime.evaluate",
50
+ "params": {
51
+ "expression": "window.__abbStatus+'|'+window.__abbBody",
52
+ "returnByValue": true
53
+ },
54
+ "save_as": "combo"
55
+ }
56
+ ]
57
+ },
58
+ "features": [
59
+ "cdp.fetch.enable",
60
+ "cdp.fetch.fulfill_request"
61
+ ],
62
+ "grader": {
63
+ "checks": [
64
+ {
65
+ "kind": "event_observed",
66
+ "method": "Fetch.requestPaused",
67
+ "name": "paused"
68
+ },
69
+ {
70
+ "expected": "404",
71
+ "kind": "value_contains",
72
+ "name": "combo"
73
+ },
74
+ {
75
+ "expected": "not-here-404-body",
76
+ "kind": "value_contains",
77
+ "name": "combo"
78
+ }
79
+ ],
80
+ "kind": "inline_assertions"
81
+ },
82
+ "layer": "L1",
83
+ "scene": {
84
+ "kind": "self_hosted_fixture",
85
+ "url": "/v0_2/fetch/page"
86
+ },
87
+ "subset_id": "l1.raw_cdp",
88
+ "tags": [
89
+ "family.fetch",
90
+ "version.v0_2"
91
+ ],
92
+ "task_id": "v2_fetch_fulfill_status_override_404",
93
+ "task_version": 1,
94
+ "timeouts": {
95
+ "hard_kill_ms": 30000,
96
+ "task_ms": 20000
97
+ },
98
+ "title": "Fetch.fulfillRequest overrides status to 404"
99
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_load_network_resource.json ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "Network.loadNetworkResource fetches an origin resource out-of-band for a given frameId; the returned resource reports success, httpStatusCode 200, and an IO stream handle that IO.read drains to the body text. Covers the loadNetworkResource + IO stream read path.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Network.enable"
10
+ },
11
+ {
12
+ "method": "Page.enable"
13
+ },
14
+ {
15
+ "method": "Runtime.evaluate",
16
+ "params": {
17
+ "expression": "location.origin+'/v0_2/fetch/abbfetch-real'",
18
+ "returnByValue": true
19
+ },
20
+ "save_as": "realurl"
21
+ },
22
+ {
23
+ "method": "Page.getFrameTree",
24
+ "save_result_as": "ft"
25
+ },
26
+ {
27
+ "method": "Network.loadNetworkResource",
28
+ "params": {
29
+ "frameId": "{saved:ft.frameTree.frame.id}",
30
+ "options": {
31
+ "disableCache": true,
32
+ "includeCredentials": false
33
+ },
34
+ "url": "{saved:realurl.result.value}"
35
+ },
36
+ "save_result_as": "lnr"
37
+ },
38
+ {
39
+ "method": "IO.read",
40
+ "params": {
41
+ "handle": "{saved:lnr.resource.stream}",
42
+ "size": 4096
43
+ },
44
+ "save_result_as": "lread"
45
+ },
46
+ {
47
+ "method": "IO.close",
48
+ "params": {
49
+ "handle": "{saved:lnr.resource.stream}"
50
+ }
51
+ }
52
+ ]
53
+ },
54
+ "features": [
55
+ "cdp.network.load_network_resource",
56
+ "cdp.io.read",
57
+ "cdp.io.close"
58
+ ],
59
+ "grader": {
60
+ "checks": [
61
+ {
62
+ "expected": true,
63
+ "kind": "saved_path_equals",
64
+ "name": "lnr",
65
+ "path": "resource.success"
66
+ },
67
+ {
68
+ "expected": 200,
69
+ "kind": "saved_path_equals",
70
+ "name": "lnr",
71
+ "path": "resource.httpStatusCode"
72
+ },
73
+ {
74
+ "expected": "REAL-SERVER-BODY",
75
+ "kind": "saved_path_contains",
76
+ "name": "lread",
77
+ "path": "data"
78
+ }
79
+ ],
80
+ "kind": "inline_assertions"
81
+ },
82
+ "layer": "L1",
83
+ "scene": {
84
+ "kind": "self_hosted_fixture",
85
+ "url": "/v0_2/fetch/page"
86
+ },
87
+ "subset_id": "l1.raw_cdp",
88
+ "tags": [
89
+ "family.fetch",
90
+ "version.v0_2"
91
+ ],
92
+ "task_id": "v2_fetch_load_network_resource",
93
+ "task_version": 1,
94
+ "timeouts": {
95
+ "hard_kill_ms": 30000,
96
+ "task_ms": 20000
97
+ },
98
+ "title": "Network.loadNetworkResource streams a resource"
99
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_network_get_response_body.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "With the Network domain enabled, a page fetch() drives Network.responseReceived (captures requestId) and Network.loadingFinished; Network.getResponseBody then returns the decoded body (base64Encoded false for text). Covers Network.getResponseBody plus the responseReceived/loadingFinished events.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Network.enable"
10
+ },
11
+ {
12
+ "method": "Runtime.evaluate",
13
+ "params": {
14
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
15
+ }
16
+ },
17
+ {
18
+ "save_result_as": "resp",
19
+ "session": "page",
20
+ "timeout_ms": 6000,
21
+ "wait_for_event": "Network.responseReceived"
22
+ },
23
+ {
24
+ "optional": true,
25
+ "save_result_as": "fin",
26
+ "session": "page",
27
+ "timeout_ms": 6000,
28
+ "wait_for_event": "Network.loadingFinished"
29
+ },
30
+ {
31
+ "method": "Network.getResponseBody",
32
+ "params": {
33
+ "requestId": "{saved:resp.requestId}"
34
+ },
35
+ "save_result_as": "rb"
36
+ }
37
+ ]
38
+ },
39
+ "features": [
40
+ "cdp.network.get_response_body",
41
+ "cdp.network.response_received",
42
+ "cdp.network.loading_finished"
43
+ ],
44
+ "grader": {
45
+ "checks": [
46
+ {
47
+ "kind": "event_observed",
48
+ "method": "Network.responseReceived",
49
+ "name": "resp"
50
+ },
51
+ {
52
+ "expected": "REAL-SERVER-BODY",
53
+ "kind": "saved_path_contains",
54
+ "name": "rb",
55
+ "path": "body"
56
+ },
57
+ {
58
+ "expected": false,
59
+ "kind": "saved_path_equals",
60
+ "name": "rb",
61
+ "path": "base64Encoded"
62
+ }
63
+ ],
64
+ "kind": "inline_assertions"
65
+ },
66
+ "layer": "L1",
67
+ "scene": {
68
+ "kind": "self_hosted_fixture",
69
+ "url": "/v0_2/fetch/page"
70
+ },
71
+ "subset_id": "l1.raw_cdp",
72
+ "tags": [
73
+ "family.fetch",
74
+ "version.v0_2"
75
+ ],
76
+ "task_id": "v2_fetch_network_get_response_body",
77
+ "task_version": 1,
78
+ "timeouts": {
79
+ "hard_kill_ms": 30000,
80
+ "task_ms": 20000
81
+ },
82
+ "title": "Network.getResponseBody after loadingFinished"
83
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_network_relative_ordering.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "With both Fetch (Request stage) and Network enabled, a fetch pauses first (Fetch.requestPaused); only after Fetch.continueRequest does the origin respond and Network.responseReceived fire. Asserts the observed-event order: requestPaused is index 0, responseReceived follows.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Network.enable"
10
+ },
11
+ {
12
+ "method": "Fetch.enable",
13
+ "params": {
14
+ "patterns": [
15
+ {
16
+ "requestStage": "Request",
17
+ "urlPattern": "*abbfetch-real*"
18
+ }
19
+ ]
20
+ }
21
+ },
22
+ {
23
+ "method": "Runtime.evaluate",
24
+ "params": {
25
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
26
+ }
27
+ },
28
+ {
29
+ "save_result_as": "paused",
30
+ "session": "page",
31
+ "timeout_ms": 6000,
32
+ "wait_for_event": "Fetch.requestPaused"
33
+ },
34
+ {
35
+ "method": "Fetch.continueRequest",
36
+ "params": {
37
+ "requestId": "{saved:paused.requestId}"
38
+ }
39
+ },
40
+ {
41
+ "save_result_as": "resp",
42
+ "session": "page",
43
+ "timeout_ms": 6000,
44
+ "wait_for_event": "Network.responseReceived"
45
+ }
46
+ ]
47
+ },
48
+ "features": [
49
+ "cdp.fetch.request_paused",
50
+ "cdp.network.response_received"
51
+ ],
52
+ "grader": {
53
+ "checks": [
54
+ {
55
+ "expected": "Fetch.requestPaused",
56
+ "kind": "saved_path_equals",
57
+ "name": "__events_observed__",
58
+ "path": "0"
59
+ },
60
+ {
61
+ "kind": "event_observed",
62
+ "method": "Network.responseReceived",
63
+ "name": "resp"
64
+ },
65
+ {
66
+ "kind": "saved_path_truthy",
67
+ "name": "resp",
68
+ "path": "requestId"
69
+ }
70
+ ],
71
+ "kind": "inline_assertions"
72
+ },
73
+ "layer": "L1",
74
+ "scene": {
75
+ "kind": "self_hosted_fixture",
76
+ "url": "/v0_2/fetch/page"
77
+ },
78
+ "subset_id": "l1.raw_cdp",
79
+ "tags": [
80
+ "family.fetch",
81
+ "version.v0_2"
82
+ ],
83
+ "task_id": "v2_fetch_network_relative_ordering",
84
+ "task_version": 1,
85
+ "timeouts": {
86
+ "hard_kill_ms": 30000,
87
+ "task_ms": 20000
88
+ },
89
+ "title": "Fetch.requestPaused precedes Network.responseReceived"
90
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_request_paused_request_stage_fields.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "At requestStage Request, asserts the Fetch.requestPaused event carries requestId, frameId, request.method GET and request.url, and that responseStatusCode is absent (null) because the response has not been received yet. The request is released with continueRequest.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*abbfetch-real*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-real?n='+Date.now())"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.continueRequest",
33
+ "params": {
34
+ "requestId": "{saved:paused.requestId}"
35
+ }
36
+ }
37
+ ]
38
+ },
39
+ "features": [
40
+ "cdp.fetch.enable",
41
+ "cdp.fetch.request_paused"
42
+ ],
43
+ "grader": {
44
+ "checks": [
45
+ {
46
+ "kind": "saved_path_truthy",
47
+ "name": "paused",
48
+ "path": "requestId"
49
+ },
50
+ {
51
+ "kind": "saved_path_truthy",
52
+ "name": "paused",
53
+ "path": "frameId"
54
+ },
55
+ {
56
+ "expected": "GET",
57
+ "kind": "saved_path_equals",
58
+ "name": "paused",
59
+ "path": "request.method"
60
+ },
61
+ {
62
+ "expected": "abbfetch-real",
63
+ "kind": "saved_path_contains",
64
+ "name": "paused",
65
+ "path": "request.url"
66
+ },
67
+ {
68
+ "expected": null,
69
+ "kind": "saved_path_equals",
70
+ "name": "paused",
71
+ "path": "responseStatusCode"
72
+ }
73
+ ],
74
+ "kind": "inline_assertions"
75
+ },
76
+ "layer": "L1",
77
+ "scene": {
78
+ "kind": "self_hosted_fixture",
79
+ "url": "/v0_2/fetch/page"
80
+ },
81
+ "subset_id": "l1.raw_cdp",
82
+ "tags": [
83
+ "family.fetch",
84
+ "version.v0_2"
85
+ ],
86
+ "task_id": "v2_fetch_request_paused_request_stage_fields",
87
+ "task_version": 1,
88
+ "timeouts": {
89
+ "hard_kill_ms": 30000,
90
+ "task_ms": 20000
91
+ },
92
+ "title": "Fetch.requestPaused field semantics at Request stage"
93
+ }
definitions/tasks/L1/raw_cdp/v2_fetch_response_stage_take_stream.json ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "Fetch.enable at requestStage Response pauses after the response is available (requestPaused carries responseStatusCode 200). Fetch.takeResponseBodyAsStream returns an IO stream handle; IO.read pulls the body text, a second IO.read reaches eof, and IO.close releases the handle. Covers the streaming response-body read path.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Response",
14
+ "urlPattern": "*abbfetch-big*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbGet(location.origin+'/v0_2/fetch/abbfetch-big?n='+Date.now())"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.takeResponseBodyAsStream",
33
+ "params": {
34
+ "requestId": "{saved:paused.requestId}"
35
+ },
36
+ "save_result_as": "stream"
37
+ },
38
+ {
39
+ "method": "IO.read",
40
+ "params": {
41
+ "handle": "{saved:stream.stream}",
42
+ "size": 4096
43
+ },
44
+ "save_result_as": "read1"
45
+ },
46
+ {
47
+ "method": "IO.read",
48
+ "params": {
49
+ "handle": "{saved:stream.stream}",
50
+ "size": 4096
51
+ },
52
+ "save_result_as": "read2"
53
+ },
54
+ {
55
+ "method": "IO.close",
56
+ "params": {
57
+ "handle": "{saved:stream.stream}"
58
+ }
59
+ },
60
+ {
61
+ "method": "Fetch.failRequest",
62
+ "optional": true,
63
+ "params": {
64
+ "errorReason": "Aborted",
65
+ "requestId": "{saved:paused.requestId}"
66
+ }
67
+ }
68
+ ]
69
+ },
70
+ "features": [
71
+ "cdp.fetch.enable",
72
+ "cdp.fetch.take_response_body_as_stream",
73
+ "cdp.io.read",
74
+ "cdp.io.close"
75
+ ],
76
+ "grader": {
77
+ "checks": [
78
+ {
79
+ "expected": 200,
80
+ "kind": "saved_path_equals",
81
+ "name": "paused",
82
+ "path": "responseStatusCode"
83
+ },
84
+ {
85
+ "kind": "saved_path_truthy",
86
+ "name": "stream",
87
+ "path": "stream"
88
+ },
89
+ {
90
+ "expected": "STREAM-CHUNK",
91
+ "kind": "saved_path_contains",
92
+ "name": "read1",
93
+ "path": "data"
94
+ },
95
+ {
96
+ "expected": true,
97
+ "kind": "saved_path_equals",
98
+ "name": "read2",
99
+ "path": "eof"
100
+ }
101
+ ],
102
+ "kind": "inline_assertions"
103
+ },
104
+ "layer": "L1",
105
+ "scene": {
106
+ "kind": "self_hosted_fixture",
107
+ "url": "/v0_2/fetch/page"
108
+ },
109
+ "subset_id": "l1.raw_cdp",
110
+ "tags": [
111
+ "family.fetch",
112
+ "version.v0_2"
113
+ ],
114
+ "task_id": "v2_fetch_response_stage_take_stream",
115
+ "task_version": 1,
116
+ "timeouts": {
117
+ "hard_kill_ms": 30000,
118
+ "task_ms": 20000
119
+ },
120
+ "title": "Response-stage takeResponseBodyAsStream + IO.read/close"
121
+ }
definitions/tasks/L1/raw_cdp/v2_h_compute_product.json ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Builds a child page session via the dialect handshake, navigates to a compute fixture, clicks the compute button via Runtime.evaluate, and reads the page-computed result (a*b+7 from body data attributes => 6*7+7 = 49). The answer emerges from the runtime computation, not a literal in the markup.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Target.setAutoAttach",
10
+ "params": {
11
+ "autoAttach": true,
12
+ "flatten": true,
13
+ "waitForDebuggerOnStart": true
14
+ },
15
+ "session": "browser"
16
+ },
17
+ {
18
+ "method": "Target.createTarget",
19
+ "params": {
20
+ "url": "{fixture_url}"
21
+ },
22
+ "save_result_as": "created",
23
+ "session": "browser"
24
+ },
25
+ {
26
+ "match": {
27
+ "targetInfo": {
28
+ "targetId": "{saved:created.targetId}"
29
+ }
30
+ },
31
+ "save_result_as": "attached",
32
+ "save_session_as": "h_page",
33
+ "timeout_ms": 6000,
34
+ "wait_for_event": "Target.attachedToTarget"
35
+ },
36
+ {
37
+ "method": "Page.enable",
38
+ "session": "h_page"
39
+ },
40
+ {
41
+ "method": "Page.setLifecycleEventsEnabled",
42
+ "params": {
43
+ "enabled": true
44
+ },
45
+ "session": "h_page"
46
+ },
47
+ {
48
+ "method": "Runtime.enable",
49
+ "session": "h_page"
50
+ },
51
+ {
52
+ "method": "Runtime.runIfWaitingForDebugger",
53
+ "session": "h_page"
54
+ },
55
+ {
56
+ "match": {
57
+ "name": "load"
58
+ },
59
+ "save_result_as": "loaded",
60
+ "session": "h_page",
61
+ "timeout_ms": 8000,
62
+ "wait_for_event": "Page.lifecycleEvent"
63
+ },
64
+ {
65
+ "method": "Runtime.evaluate",
66
+ "params": {
67
+ "expression": "document.getElementById('go').click(); Number(document.getElementById('result').textContent);",
68
+ "returnByValue": true
69
+ },
70
+ "save_as": "answer",
71
+ "session": "h_page"
72
+ },
73
+ {
74
+ "method": "Target.closeTarget",
75
+ "optional": true,
76
+ "params": {
77
+ "targetId": "{saved:created.targetId}"
78
+ },
79
+ "session": "browser"
80
+ }
81
+ ]
82
+ },
83
+ "features": [
84
+ "cdp.target.attached_to_target",
85
+ "cdp.runtime.run_if_waiting_for_debugger",
86
+ "cdp.page.lifecycle_event"
87
+ ],
88
+ "grader": {
89
+ "checks": [
90
+ {
91
+ "kind": "event_observed",
92
+ "method": "Page.lifecycleEvent",
93
+ "name": "loaded"
94
+ },
95
+ {
96
+ "expected": 49,
97
+ "kind": "value_equals",
98
+ "name": "answer"
99
+ }
100
+ ],
101
+ "kind": "inline_assertions"
102
+ },
103
+ "layer": "L1",
104
+ "scene": {
105
+ "kind": "self_hosted_fixture",
106
+ "url": "/v2/h/compute"
107
+ },
108
+ "subset_id": "l1.raw_cdp",
109
+ "tags": [
110
+ "family.handwritten",
111
+ "version.v0_2"
112
+ ],
113
+ "task_id": "v2_h_compute_product",
114
+ "task_version": 1,
115
+ "timeouts": {
116
+ "hard_kill_ms": 40000,
117
+ "task_ms": 25000
118
+ },
119
+ "title": "bootstrap replay -> data-attribute product"
120
+ }
definitions/tasks/L1/raw_cdp/v2_h_counter_clicks.json ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Builds a flat child page session via the dialect handshake, navigates to a counter fixture, drives a click sequence (three +3 clicks and two +5 clicks) via Runtime.evaluate on the child session, and reads back the running total. The answer (19) emerges only from the interaction; it is not present as a literal in the fixture HTML/JS.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Target.setAutoAttach",
10
+ "params": {
11
+ "autoAttach": true,
12
+ "flatten": true,
13
+ "waitForDebuggerOnStart": true
14
+ },
15
+ "session": "browser"
16
+ },
17
+ {
18
+ "method": "Target.createTarget",
19
+ "params": {
20
+ "url": "{fixture_url}"
21
+ },
22
+ "save_result_as": "created",
23
+ "session": "browser"
24
+ },
25
+ {
26
+ "match": {
27
+ "targetInfo": {
28
+ "targetId": "{saved:created.targetId}"
29
+ }
30
+ },
31
+ "save_result_as": "attached",
32
+ "save_session_as": "h_page",
33
+ "timeout_ms": 6000,
34
+ "wait_for_event": "Target.attachedToTarget"
35
+ },
36
+ {
37
+ "method": "Page.enable",
38
+ "session": "h_page"
39
+ },
40
+ {
41
+ "method": "Page.setLifecycleEventsEnabled",
42
+ "params": {
43
+ "enabled": true
44
+ },
45
+ "session": "h_page"
46
+ },
47
+ {
48
+ "method": "Runtime.enable",
49
+ "session": "h_page"
50
+ },
51
+ {
52
+ "method": "Runtime.runIfWaitingForDebugger",
53
+ "session": "h_page"
54
+ },
55
+ {
56
+ "match": {
57
+ "name": "load"
58
+ },
59
+ "save_result_as": "loaded",
60
+ "session": "h_page",
61
+ "timeout_ms": 8000,
62
+ "wait_for_event": "Page.lifecycleEvent"
63
+ },
64
+ {
65
+ "method": "Runtime.evaluate",
66
+ "params": {
67
+ "expression": "for(var i=0;i<3;i++){document.getElementById('add3').click();} for(var j=0;j<2;j++){document.getElementById('add5').click();} Number(document.getElementById('total').textContent);",
68
+ "returnByValue": true
69
+ },
70
+ "save_as": "answer",
71
+ "session": "h_page"
72
+ },
73
+ {
74
+ "method": "Target.closeTarget",
75
+ "optional": true,
76
+ "params": {
77
+ "targetId": "{saved:created.targetId}"
78
+ },
79
+ "session": "browser"
80
+ }
81
+ ]
82
+ },
83
+ "features": [
84
+ "cdp.target.attached_to_target",
85
+ "cdp.runtime.run_if_waiting_for_debugger",
86
+ "cdp.page.lifecycle_event"
87
+ ],
88
+ "grader": {
89
+ "checks": [
90
+ {
91
+ "kind": "event_observed",
92
+ "method": "Page.lifecycleEvent",
93
+ "name": "loaded"
94
+ },
95
+ {
96
+ "expected": 19,
97
+ "kind": "value_equals",
98
+ "name": "answer"
99
+ }
100
+ ],
101
+ "kind": "inline_assertions"
102
+ },
103
+ "layer": "L1",
104
+ "scene": {
105
+ "kind": "self_hosted_fixture",
106
+ "url": "/v2/h/counter"
107
+ },
108
+ "subset_id": "l1.raw_cdp",
109
+ "tags": [
110
+ "family.handwritten",
111
+ "version.v0_2"
112
+ ],
113
+ "task_id": "v2_h_counter_clicks",
114
+ "task_version": 1,
115
+ "timeouts": {
116
+ "hard_kill_ms": 40000,
117
+ "task_ms": 25000
118
+ },
119
+ "title": "bootstrap replay -> counter interaction"
120
+ }
definitions/tasks/L1/raw_cdp/v2_h_form_checksum.json ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Builds a child page session via the dialect handshake, navigates to a form fixture, focuses the input and types via Input.insertText, clicks compute, and reads the page-computed checksum (sum of char codes mod 1000). The answer (317 for 'abz') is computed by the page from the typed value, not stored as a literal.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Target.setAutoAttach",
10
+ "params": {
11
+ "autoAttach": true,
12
+ "flatten": true,
13
+ "waitForDebuggerOnStart": true
14
+ },
15
+ "session": "browser"
16
+ },
17
+ {
18
+ "method": "Target.createTarget",
19
+ "params": {
20
+ "url": "{fixture_url}"
21
+ },
22
+ "save_result_as": "created",
23
+ "session": "browser"
24
+ },
25
+ {
26
+ "match": {
27
+ "targetInfo": {
28
+ "targetId": "{saved:created.targetId}"
29
+ }
30
+ },
31
+ "save_result_as": "attached",
32
+ "save_session_as": "h_page",
33
+ "timeout_ms": 6000,
34
+ "wait_for_event": "Target.attachedToTarget"
35
+ },
36
+ {
37
+ "method": "Page.enable",
38
+ "session": "h_page"
39
+ },
40
+ {
41
+ "method": "Page.setLifecycleEventsEnabled",
42
+ "params": {
43
+ "enabled": true
44
+ },
45
+ "session": "h_page"
46
+ },
47
+ {
48
+ "method": "Runtime.enable",
49
+ "session": "h_page"
50
+ },
51
+ {
52
+ "method": "Runtime.runIfWaitingForDebugger",
53
+ "session": "h_page"
54
+ },
55
+ {
56
+ "match": {
57
+ "name": "load"
58
+ },
59
+ "save_result_as": "loaded",
60
+ "session": "h_page",
61
+ "timeout_ms": 8000,
62
+ "wait_for_event": "Page.lifecycleEvent"
63
+ },
64
+ {
65
+ "method": "Runtime.evaluate",
66
+ "params": {
67
+ "expression": "document.getElementById('name').focus();",
68
+ "returnByValue": true
69
+ },
70
+ "session": "h_page"
71
+ },
72
+ {
73
+ "method": "Input.insertText",
74
+ "params": {
75
+ "text": "abz"
76
+ },
77
+ "session": "h_page"
78
+ },
79
+ {
80
+ "method": "Runtime.evaluate",
81
+ "params": {
82
+ "expression": "document.getElementById('compute').click(); Number(document.getElementById('out').textContent);",
83
+ "returnByValue": true
84
+ },
85
+ "save_as": "answer",
86
+ "session": "h_page"
87
+ },
88
+ {
89
+ "method": "Target.closeTarget",
90
+ "optional": true,
91
+ "params": {
92
+ "targetId": "{saved:created.targetId}"
93
+ },
94
+ "session": "browser"
95
+ }
96
+ ]
97
+ },
98
+ "features": [
99
+ "cdp.target.attached_to_target",
100
+ "cdp.runtime.run_if_waiting_for_debugger",
101
+ "cdp.input.insert_text"
102
+ ],
103
+ "grader": {
104
+ "checks": [
105
+ {
106
+ "kind": "event_observed",
107
+ "method": "Page.lifecycleEvent",
108
+ "name": "loaded"
109
+ },
110
+ {
111
+ "expected": 317,
112
+ "kind": "value_equals",
113
+ "name": "answer"
114
+ }
115
+ ],
116
+ "kind": "inline_assertions"
117
+ },
118
+ "layer": "L1",
119
+ "scene": {
120
+ "kind": "self_hosted_fixture",
121
+ "url": "/v2/h/form"
122
+ },
123
+ "subset_id": "l1.raw_cdp",
124
+ "tags": [
125
+ "family.handwritten",
126
+ "version.v0_2"
127
+ ],
128
+ "task_id": "v2_h_form_checksum",
129
+ "task_version": 1,
130
+ "timeouts": {
131
+ "hard_kill_ms": 40000,
132
+ "task_ms": 25000
133
+ },
134
+ "title": "bootstrap replay -> typed-value checksum"
135
+ }
definitions/tasks/L1/raw_cdp/v2_h_frame_token.json ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Builds a child page session via the dialect handshake, navigates to a parent fixture with a same-origin iframe, verifies the child frame appears in Page.getFrameTree, and reads the token that the child frame computes from a data attribute (reversed 'xy9' => '9yx'). The answer is derived by the child frame at runtime, not a static literal.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Target.setAutoAttach",
10
+ "params": {
11
+ "autoAttach": true,
12
+ "flatten": true,
13
+ "waitForDebuggerOnStart": true
14
+ },
15
+ "session": "browser"
16
+ },
17
+ {
18
+ "method": "Target.createTarget",
19
+ "params": {
20
+ "url": "{fixture_url}"
21
+ },
22
+ "save_result_as": "created",
23
+ "session": "browser"
24
+ },
25
+ {
26
+ "match": {
27
+ "targetInfo": {
28
+ "targetId": "{saved:created.targetId}"
29
+ }
30
+ },
31
+ "save_result_as": "attached",
32
+ "save_session_as": "h_page",
33
+ "timeout_ms": 6000,
34
+ "wait_for_event": "Target.attachedToTarget"
35
+ },
36
+ {
37
+ "method": "Page.enable",
38
+ "session": "h_page"
39
+ },
40
+ {
41
+ "method": "Page.setLifecycleEventsEnabled",
42
+ "params": {
43
+ "enabled": true
44
+ },
45
+ "session": "h_page"
46
+ },
47
+ {
48
+ "method": "Runtime.enable",
49
+ "session": "h_page"
50
+ },
51
+ {
52
+ "method": "Runtime.runIfWaitingForDebugger",
53
+ "session": "h_page"
54
+ },
55
+ {
56
+ "match": {
57
+ "name": "load"
58
+ },
59
+ "save_result_as": "loaded",
60
+ "session": "h_page",
61
+ "timeout_ms": 8000,
62
+ "wait_for_event": "Page.lifecycleEvent"
63
+ },
64
+ {
65
+ "method": "Page.getFrameTree",
66
+ "params": {},
67
+ "save_result_as": "tree",
68
+ "session": "h_page"
69
+ },
70
+ {
71
+ "method": "Runtime.evaluate",
72
+ "params": {
73
+ "expression": "window.frames[0].document.getElementById('ctoken').textContent;",
74
+ "returnByValue": true
75
+ },
76
+ "save_as": "answer",
77
+ "session": "h_page"
78
+ },
79
+ {
80
+ "method": "Target.closeTarget",
81
+ "optional": true,
82
+ "params": {
83
+ "targetId": "{saved:created.targetId}"
84
+ },
85
+ "session": "browser"
86
+ }
87
+ ]
88
+ },
89
+ "features": [
90
+ "cdp.target.attached_to_target",
91
+ "cdp.page.get_frame_tree",
92
+ "cdp.runtime.run_if_waiting_for_debugger"
93
+ ],
94
+ "grader": {
95
+ "checks": [
96
+ {
97
+ "kind": "array_length",
98
+ "min": 1,
99
+ "name": "tree",
100
+ "path": "frameTree.childFrames"
101
+ },
102
+ {
103
+ "expected": "9yx",
104
+ "kind": "value_equals",
105
+ "name": "answer"
106
+ }
107
+ ],
108
+ "kind": "inline_assertions"
109
+ },
110
+ "layer": "L1",
111
+ "scene": {
112
+ "kind": "self_hosted_fixture",
113
+ "url": "/v2/h/frames_parent"
114
+ },
115
+ "subset_id": "l1.raw_cdp",
116
+ "tags": [
117
+ "family.handwritten",
118
+ "version.v0_2"
119
+ ],
120
+ "task_id": "v2_h_frame_token",
121
+ "task_version": 1,
122
+ "timeouts": {
123
+ "hard_kill_ms": 40000,
124
+ "task_ms": 25000
125
+ },
126
+ "title": "bootstrap replay -> cross-frame token read"
127
+ }
definitions/tasks/L1/raw_cdp/v2_ifx_block_resource_fallback.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "The app requests /api-primary; the driver failRequest(BlockedByClient) blocks it, and the page's catch/fallback path renders a local FALLBACK_LOCAL_42 value. Proves resource blocking activates the client fallback branch.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*ifx/api-primary*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbWithFallback(location.origin+'/v0_2/ifx/api-primary','FALLBACK_LOCAL_42')"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.failRequest",
33
+ "params": {
34
+ "errorReason": "BlockedByClient",
35
+ "requestId": "{saved:paused.requestId}"
36
+ }
37
+ },
38
+ {
39
+ "sleep_ms": 500
40
+ },
41
+ {
42
+ "method": "Runtime.evaluate",
43
+ "params": {
44
+ "expression": "window.__answer",
45
+ "returnByValue": true
46
+ },
47
+ "save_as": "ans"
48
+ }
49
+ ]
50
+ },
51
+ "features": [
52
+ "cdp.fetch.enable",
53
+ "cdp.fetch.fail_request"
54
+ ],
55
+ "grader": {
56
+ "checks": [
57
+ {
58
+ "kind": "event_observed",
59
+ "method": "Fetch.requestPaused",
60
+ "name": "paused"
61
+ },
62
+ {
63
+ "expected": "FALLBACK_LOCAL_42",
64
+ "kind": "value_equals",
65
+ "name": "ans"
66
+ }
67
+ ],
68
+ "kind": "inline_assertions"
69
+ },
70
+ "layer": "L1",
71
+ "scene": {
72
+ "kind": "self_hosted_fixture",
73
+ "url": "/v0_2/ifx/app"
74
+ },
75
+ "subset_id": "l1.raw_cdp",
76
+ "tags": [
77
+ "family.fetch_intercept",
78
+ "version.v0_2"
79
+ ],
80
+ "task_id": "v2_ifx_block_resource_fallback",
81
+ "task_version": 1,
82
+ "timeouts": {
83
+ "hard_kill_ms": 30000,
84
+ "task_ms": 20000
85
+ },
86
+ "title": "Blocked resource triggers client fallback"
87
+ }
definitions/tasks/L1/raw_cdp/v2_ifx_header_rewrite_client.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "fulfillRequest returns a custom x-abb-token response header; the app reads response.headers and renders the injected token. Covers client-observable response-header rewriting. (Server-visible request-header injection is not observable via the fixture server; see skipped_fetch.md.)",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*ifx/api-answer*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbHeader(location.origin+'/v0_2/ifx/api-answer','x-abb-token')"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.fulfillRequest",
33
+ "params": {
34
+ "body": "b2s=",
35
+ "requestId": "{saved:paused.requestId}",
36
+ "responseCode": 200,
37
+ "responseHeaders": [
38
+ {
39
+ "name": "Content-Type",
40
+ "value": "text/plain"
41
+ },
42
+ {
43
+ "name": "x-abb-token",
44
+ "value": "injected-token-xyz"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "sleep_ms": 500
51
+ },
52
+ {
53
+ "method": "Runtime.evaluate",
54
+ "params": {
55
+ "expression": "window.__answer",
56
+ "returnByValue": true
57
+ },
58
+ "save_as": "ans"
59
+ }
60
+ ]
61
+ },
62
+ "features": [
63
+ "cdp.fetch.enable",
64
+ "cdp.fetch.fulfill_request"
65
+ ],
66
+ "grader": {
67
+ "checks": [
68
+ {
69
+ "kind": "event_observed",
70
+ "method": "Fetch.requestPaused",
71
+ "name": "paused"
72
+ },
73
+ {
74
+ "expected": "injected-token-xyz",
75
+ "kind": "value_equals",
76
+ "name": "ans"
77
+ }
78
+ ],
79
+ "kind": "inline_assertions"
80
+ },
81
+ "layer": "L1",
82
+ "scene": {
83
+ "kind": "self_hosted_fixture",
84
+ "url": "/v0_2/ifx/app"
85
+ },
86
+ "subset_id": "l1.raw_cdp",
87
+ "tags": [
88
+ "family.fetch_intercept",
89
+ "version.v0_2"
90
+ ],
91
+ "task_id": "v2_ifx_header_rewrite_client",
92
+ "task_version": 1,
93
+ "timeouts": {
94
+ "hard_kill_ms": 30000,
95
+ "task_ms": 20000
96
+ },
97
+ "title": "Injected response header observed by the client"
98
+ }
definitions/tasks/L1/raw_cdp/v2_ifx_json_field_inject.json ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "The app reads the 'secret' field from /api-answer; the origin JSON has no such field. fulfillRequest returns JSON containing secret=INJECTED_FIELD_VALUE and the page renders it. Proves field-level response fabrication.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*ifx/api-answer*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbApiField(location.origin+'/v0_2/ifx/api-answer','secret')"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.fulfillRequest",
33
+ "params": {
34
+ "body": "eyJhbnN3ZXIiOiJ4Iiwic2VjcmV0IjoiSU5KRUNURURfRklFTERfVkFMVUUifQ==",
35
+ "requestId": "{saved:paused.requestId}",
36
+ "responseCode": 200,
37
+ "responseHeaders": [
38
+ {
39
+ "name": "Content-Type",
40
+ "value": "application/json"
41
+ }
42
+ ]
43
+ }
44
+ },
45
+ {
46
+ "sleep_ms": 500
47
+ },
48
+ {
49
+ "method": "Runtime.evaluate",
50
+ "params": {
51
+ "expression": "window.__answer",
52
+ "returnByValue": true
53
+ },
54
+ "save_as": "ans"
55
+ }
56
+ ]
57
+ },
58
+ "features": [
59
+ "cdp.fetch.enable",
60
+ "cdp.fetch.fulfill_request"
61
+ ],
62
+ "grader": {
63
+ "checks": [
64
+ {
65
+ "kind": "event_observed",
66
+ "method": "Fetch.requestPaused",
67
+ "name": "paused"
68
+ },
69
+ {
70
+ "expected": "INJECTED_FIELD_VALUE",
71
+ "kind": "value_equals",
72
+ "name": "ans"
73
+ }
74
+ ],
75
+ "kind": "inline_assertions"
76
+ },
77
+ "layer": "L1",
78
+ "scene": {
79
+ "kind": "self_hosted_fixture",
80
+ "url": "/v0_2/ifx/app"
81
+ },
82
+ "subset_id": "l1.raw_cdp",
83
+ "tags": [
84
+ "family.fetch_intercept",
85
+ "version.v0_2"
86
+ ],
87
+ "task_id": "v2_ifx_json_field_inject",
88
+ "task_version": 1,
89
+ "timeouts": {
90
+ "hard_kill_ms": 30000,
91
+ "task_ms": 20000
92
+ },
93
+ "title": "Inject a JSON field the origin never returns"
94
+ }
definitions/tasks/L1/raw_cdp/v2_ifx_mock_api_rewrite.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "End-to-end mock: the app fetches /api-answer (origin serves {\"answer\":\"SERVER_DECOY_SECRET\"}); the driver intercepts at Request stage and fulfillRequest returns {\"answer\":\"MOCKED_LIVE_ANSWER\"}. The page renders the mocked answer, which does not exist on the origin route, proving the interception superseded the server value. Mechanism trace: Fetch.requestPaused observed.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*ifx/api-answer*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbApiField(location.origin+'/v0_2/ifx/api-answer')"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.fulfillRequest",
33
+ "params": {
34
+ "body": "eyJhbnN3ZXIiOiJNT0NLRURfTElWRV9BTlNXRVIifQ==",
35
+ "requestId": "{saved:paused.requestId}",
36
+ "responseCode": 200,
37
+ "responseHeaders": [
38
+ {
39
+ "name": "Content-Type",
40
+ "value": "application/json"
41
+ }
42
+ ]
43
+ }
44
+ },
45
+ {
46
+ "sleep_ms": 500
47
+ },
48
+ {
49
+ "method": "Runtime.evaluate",
50
+ "params": {
51
+ "expression": "window.__answer",
52
+ "returnByValue": true
53
+ },
54
+ "save_as": "ans"
55
+ }
56
+ ]
57
+ },
58
+ "features": [
59
+ "cdp.fetch.enable",
60
+ "cdp.fetch.request_paused",
61
+ "cdp.fetch.fulfill_request"
62
+ ],
63
+ "grader": {
64
+ "checks": [
65
+ {
66
+ "kind": "event_observed",
67
+ "method": "Fetch.requestPaused",
68
+ "name": "paused"
69
+ },
70
+ {
71
+ "expected": "MOCKED_LIVE_ANSWER",
72
+ "kind": "value_equals",
73
+ "name": "ans"
74
+ }
75
+ ],
76
+ "kind": "inline_assertions"
77
+ },
78
+ "layer": "L1",
79
+ "scene": {
80
+ "kind": "self_hosted_fixture",
81
+ "url": "/v0_2/ifx/app"
82
+ },
83
+ "subset_id": "l1.raw_cdp",
84
+ "tags": [
85
+ "family.fetch_intercept",
86
+ "version.v0_2"
87
+ ],
88
+ "task_id": "v2_ifx_mock_api_rewrite",
89
+ "task_version": 1,
90
+ "timeouts": {
91
+ "hard_kill_ms": 30000,
92
+ "task_ms": 20000
93
+ },
94
+ "title": "Mock API rewrite: fulfilled JSON supersedes origin"
95
+ }
definitions/tasks/L1/raw_cdp/v2_ifx_multi_intercept.json ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "The app issues two concurrent fetches (/api-answer and /api-second), both matched by patterns. The driver fulfills the first paused request with FULFILLED_ONE and continues the second to the origin. Verifies independent handling of multiple paused requests by requestId.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*ifx/api-answer*"
15
+ },
16
+ {
17
+ "requestStage": "Request",
18
+ "urlPattern": "*ifx/api-second*"
19
+ }
20
+ ]
21
+ }
22
+ },
23
+ {
24
+ "method": "Runtime.evaluate",
25
+ "params": {
26
+ "expression": "window.__abbTwo(location.origin+'/v0_2/ifx/api-answer', location.origin+'/v0_2/ifx/api-second')"
27
+ }
28
+ },
29
+ {
30
+ "save_result_as": "p1",
31
+ "session": "page",
32
+ "timeout_ms": 6000,
33
+ "wait_for_event": "Fetch.requestPaused"
34
+ },
35
+ {
36
+ "method": "Fetch.fulfillRequest",
37
+ "params": {
38
+ "body": "eyJhbnN3ZXIiOiJGVUxGSUxMRURfT05FIn0=",
39
+ "requestId": "{saved:p1.requestId}",
40
+ "responseCode": 200,
41
+ "responseHeaders": [
42
+ {
43
+ "name": "Content-Type",
44
+ "value": "application/json"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "save_result_as": "p2",
51
+ "session": "page",
52
+ "timeout_ms": 6000,
53
+ "wait_for_event": "Fetch.requestPaused"
54
+ },
55
+ {
56
+ "method": "Fetch.continueRequest",
57
+ "params": {
58
+ "requestId": "{saved:p2.requestId}"
59
+ }
60
+ },
61
+ {
62
+ "sleep_ms": 600
63
+ },
64
+ {
65
+ "method": "Runtime.evaluate",
66
+ "params": {
67
+ "expression": "String(window.__a)+'|'+String(window.__b)",
68
+ "returnByValue": true
69
+ },
70
+ "save_as": "combo"
71
+ }
72
+ ]
73
+ },
74
+ "features": [
75
+ "cdp.fetch.enable",
76
+ "cdp.fetch.fulfill_request",
77
+ "cdp.fetch.continue_request"
78
+ ],
79
+ "grader": {
80
+ "checks": [
81
+ {
82
+ "kind": "event_observed",
83
+ "method": "Fetch.requestPaused",
84
+ "name": "p1"
85
+ },
86
+ {
87
+ "kind": "saved_path_truthy",
88
+ "name": "p2",
89
+ "path": "requestId"
90
+ },
91
+ {
92
+ "expected": "FULFILLED_ONE",
93
+ "kind": "value_contains",
94
+ "name": "combo"
95
+ }
96
+ ],
97
+ "kind": "inline_assertions"
98
+ },
99
+ "layer": "L1",
100
+ "scene": {
101
+ "kind": "self_hosted_fixture",
102
+ "url": "/v0_2/ifx/app"
103
+ },
104
+ "subset_id": "l1.raw_cdp",
105
+ "tags": [
106
+ "family.fetch_intercept",
107
+ "version.v0_2"
108
+ ],
109
+ "task_id": "v2_ifx_multi_intercept",
110
+ "task_version": 1,
111
+ "timeouts": {
112
+ "hard_kill_ms": 30000,
113
+ "task_ms": 20000
114
+ },
115
+ "title": "Two concurrent requests: one fulfilled, one continued"
116
+ }
definitions/tasks/L1/raw_cdp/v2_ifx_request_rewrite_url.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "The app fetches /api-answer (origin: SERVER_DECOY_SECRET); Fetch.continueRequest rewrites the url to /api-truth, so the origin actually serves REWRITTEN_TRUTH_ROUTE and the page renders it. Proves URL rewriting changes which origin resource the server delivers.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Runtime.evaluate",
10
+ "params": {
11
+ "expression": "location.origin+'/v0_2/ifx/api-truth'",
12
+ "returnByValue": true
13
+ },
14
+ "save_as": "truthurl"
15
+ },
16
+ {
17
+ "method": "Fetch.enable",
18
+ "params": {
19
+ "patterns": [
20
+ {
21
+ "requestStage": "Request",
22
+ "urlPattern": "*ifx/api-answer*"
23
+ }
24
+ ]
25
+ }
26
+ },
27
+ {
28
+ "method": "Runtime.evaluate",
29
+ "params": {
30
+ "expression": "window.__abbApiField(location.origin+'/v0_2/ifx/api-answer')"
31
+ }
32
+ },
33
+ {
34
+ "save_result_as": "paused",
35
+ "session": "page",
36
+ "timeout_ms": 6000,
37
+ "wait_for_event": "Fetch.requestPaused"
38
+ },
39
+ {
40
+ "method": "Fetch.continueRequest",
41
+ "params": {
42
+ "requestId": "{saved:paused.requestId}",
43
+ "url": "{saved:truthurl.result.value}"
44
+ }
45
+ },
46
+ {
47
+ "sleep_ms": 500
48
+ },
49
+ {
50
+ "method": "Runtime.evaluate",
51
+ "params": {
52
+ "expression": "window.__answer",
53
+ "returnByValue": true
54
+ },
55
+ "save_as": "ans"
56
+ }
57
+ ]
58
+ },
59
+ "features": [
60
+ "cdp.fetch.enable",
61
+ "cdp.fetch.continue_request"
62
+ ],
63
+ "grader": {
64
+ "checks": [
65
+ {
66
+ "kind": "event_observed",
67
+ "method": "Fetch.requestPaused",
68
+ "name": "paused"
69
+ },
70
+ {
71
+ "expected": "REWRITTEN_TRUTH_ROUTE",
72
+ "kind": "value_equals",
73
+ "name": "ans"
74
+ }
75
+ ],
76
+ "kind": "inline_assertions"
77
+ },
78
+ "layer": "L1",
79
+ "scene": {
80
+ "kind": "self_hosted_fixture",
81
+ "url": "/v0_2/ifx/app"
82
+ },
83
+ "subset_id": "l1.raw_cdp",
84
+ "tags": [
85
+ "family.fetch_intercept",
86
+ "version.v0_2"
87
+ ],
88
+ "task_id": "v2_ifx_request_rewrite_url",
89
+ "task_version": 1,
90
+ "timeouts": {
91
+ "hard_kill_ms": 30000,
92
+ "task_ms": 20000
93
+ },
94
+ "title": "Request URL rewrite redirects to a different origin route"
95
+ }
definitions/tasks/L1/raw_cdp/v2_ifx_response_body_tamper.json ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "At requestStage Response, the driver reads the true origin body via Fetch.getResponseBody (contains the ORIG token), then fulfillRequest replaces it with a TAMPERED/INJECTED body. The page renders the tampered text. Proves the original was observed and then rewritten. It passes when the `Fetch.requestPaused` event is observed; the decoded body in `orig` equals `original-document-body-token-ORIG`, regardless of CDP base64 representation; the saved value `ans` contains `TAMPERED`; the saved value `ans` contains `INJECTED`.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Response",
14
+ "urlPattern": "*ifx/doc*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbText(location.origin+'/v0_2/ifx/doc')"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.getResponseBody",
33
+ "params": {
34
+ "requestId": "{saved:paused.requestId}"
35
+ },
36
+ "save_result_as": "orig"
37
+ },
38
+ {
39
+ "method": "Fetch.fulfillRequest",
40
+ "params": {
41
+ "body": "VEFNUEVSRUQtZG9jLWJvZHktSU5KRUNURUQ=",
42
+ "requestId": "{saved:paused.requestId}",
43
+ "responseCode": 200,
44
+ "responseHeaders": [
45
+ {
46
+ "name": "Content-Type",
47
+ "value": "text/plain"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ {
53
+ "sleep_ms": 500
54
+ },
55
+ {
56
+ "method": "Runtime.evaluate",
57
+ "params": {
58
+ "expression": "window.__answer",
59
+ "returnByValue": true
60
+ },
61
+ "save_as": "ans"
62
+ }
63
+ ]
64
+ },
65
+ "features": [
66
+ "cdp.fetch.enable",
67
+ "cdp.fetch.get_response_body",
68
+ "cdp.fetch.fulfill_request"
69
+ ],
70
+ "grader": {
71
+ "checks": [
72
+ {
73
+ "kind": "event_observed",
74
+ "method": "Fetch.requestPaused",
75
+ "name": "paused"
76
+ },
77
+ {
78
+ "expected": "original-document-body-token-ORIG",
79
+ "kind": "saved_body_text_equals",
80
+ "name": "orig"
81
+ },
82
+ {
83
+ "expected": "TAMPERED",
84
+ "kind": "value_contains",
85
+ "name": "ans"
86
+ },
87
+ {
88
+ "expected": "INJECTED",
89
+ "kind": "value_contains",
90
+ "name": "ans"
91
+ }
92
+ ],
93
+ "kind": "inline_assertions"
94
+ },
95
+ "layer": "L1",
96
+ "scene": {
97
+ "kind": "self_hosted_fixture",
98
+ "url": "/v0_2/ifx/app"
99
+ },
100
+ "subset_id": "l1.raw_cdp",
101
+ "tags": [
102
+ "family.fetch_intercept",
103
+ "version.v0_2"
104
+ ],
105
+ "task_id": "v2_ifx_response_body_tamper",
106
+ "task_version": 2,
107
+ "timeouts": {
108
+ "hard_kill_ms": 30000,
109
+ "task_ms": 20000
110
+ },
111
+ "title": "Response-body tamper after reading the origin body"
112
+ }
definitions/tasks/L1/raw_cdp/v2_ifx_status_override_branch.json ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "off",
4
+ "description": "fulfillRequest returns status 503 for /api-answer; the app's status branch renders DEGRADED_MODE_503 instead of the success path. Proves an injected error status steers client control flow.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "method": "Fetch.enable",
10
+ "params": {
11
+ "patterns": [
12
+ {
13
+ "requestStage": "Request",
14
+ "urlPattern": "*ifx/api-answer*"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "method": "Runtime.evaluate",
21
+ "params": {
22
+ "expression": "window.__abbStatusBranch(location.origin+'/v0_2/ifx/api-answer')"
23
+ }
24
+ },
25
+ {
26
+ "save_result_as": "paused",
27
+ "session": "page",
28
+ "timeout_ms": 6000,
29
+ "wait_for_event": "Fetch.requestPaused"
30
+ },
31
+ {
32
+ "method": "Fetch.fulfillRequest",
33
+ "params": {
34
+ "body": "",
35
+ "requestId": "{saved:paused.requestId}",
36
+ "responseCode": 503,
37
+ "responseHeaders": [
38
+ {
39
+ "name": "Content-Type",
40
+ "value": "text/plain"
41
+ }
42
+ ]
43
+ }
44
+ },
45
+ {
46
+ "sleep_ms": 500
47
+ },
48
+ {
49
+ "method": "Runtime.evaluate",
50
+ "params": {
51
+ "expression": "window.__answer",
52
+ "returnByValue": true
53
+ },
54
+ "save_as": "ans"
55
+ }
56
+ ]
57
+ },
58
+ "features": [
59
+ "cdp.fetch.enable",
60
+ "cdp.fetch.fulfill_request"
61
+ ],
62
+ "grader": {
63
+ "checks": [
64
+ {
65
+ "kind": "event_observed",
66
+ "method": "Fetch.requestPaused",
67
+ "name": "paused"
68
+ },
69
+ {
70
+ "expected": "DEGRADED_MODE_503",
71
+ "kind": "value_equals",
72
+ "name": "ans"
73
+ }
74
+ ],
75
+ "kind": "inline_assertions"
76
+ },
77
+ "layer": "L1",
78
+ "scene": {
79
+ "kind": "self_hosted_fixture",
80
+ "url": "/v0_2/ifx/app"
81
+ },
82
+ "subset_id": "l1.raw_cdp",
83
+ "tags": [
84
+ "family.fetch_intercept",
85
+ "version.v0_2"
86
+ ],
87
+ "task_id": "v2_ifx_status_override_branch",
88
+ "task_version": 1,
89
+ "timeouts": {
90
+ "hard_kill_ms": 30000,
91
+ "task_ms": 20000
92
+ },
93
+ "title": "Injected 503 status drives a degradation branch"
94
+ }
definitions/tasks/L1/raw_cdp/v2_neg_dom_getboxmodelfornode.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Negative: DOM.getBoxModelForNode does not exist (the real command is DOM.getBoxModel). A misremembered method name must be cleanly rejected as unknown, not silently accepted.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "expect_unsupported": true,
10
+ "method": "DOM.getBoxModelForNode",
11
+ "params": {
12
+ "nodeId": 1
13
+ }
14
+ }
15
+ ]
16
+ },
17
+ "features": [
18
+ "cdp.protocol.unknown_method"
19
+ ],
20
+ "grader": {
21
+ "checks": [
22
+ {
23
+ "kind": "unsupported_observed",
24
+ "method": "DOM.getBoxModelForNode"
25
+ }
26
+ ],
27
+ "kind": "inline_assertions"
28
+ },
29
+ "layer": "L1",
30
+ "scene": {
31
+ "kind": "about_blank"
32
+ },
33
+ "subset_id": "l1.raw_cdp",
34
+ "tags": [
35
+ "family.negative",
36
+ "purpose.negative",
37
+ "version.v0_2"
38
+ ],
39
+ "task_id": "v2_neg_dom_getboxmodelfornode",
40
+ "task_version": 1,
41
+ "timeouts": {
42
+ "hard_kill_ms": 30000,
43
+ "task_ms": 15000
44
+ },
45
+ "title": "dom_getboxmodelfornode"
46
+ }
definitions/tasks/L1/raw_cdp/v2_neg_emulation_devicemetrics_badwidth.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Negative (bad param type): Emulation.setDeviceMetricsOverride.width must be an integer; passing a string must yield a clean InvalidParams rejection rather than a hang.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "expect_unsupported": true,
10
+ "method": "Emulation.setDeviceMetricsOverride",
11
+ "params": {
12
+ "deviceScaleFactor": 1,
13
+ "height": 600,
14
+ "mobile": false,
15
+ "width": "wide"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ "features": [
21
+ "cdp.emulation.set_device_metrics_override"
22
+ ],
23
+ "grader": {
24
+ "checks": [
25
+ {
26
+ "kind": "unsupported_observed",
27
+ "method": "Emulation.setDeviceMetricsOverride"
28
+ }
29
+ ],
30
+ "kind": "inline_assertions"
31
+ },
32
+ "layer": "L1",
33
+ "scene": {
34
+ "kind": "about_blank"
35
+ },
36
+ "subset_id": "l1.raw_cdp",
37
+ "tags": [
38
+ "family.negative",
39
+ "purpose.negative",
40
+ "version.v0_2"
41
+ ],
42
+ "task_id": "v2_neg_emulation_devicemetrics_badwidth",
43
+ "task_version": 1,
44
+ "timeouts": {
45
+ "hard_kill_ms": 30000,
46
+ "task_ms": 15000
47
+ },
48
+ "title": "emulation_devicemetrics_badwidth"
49
+ }
definitions/tasks/L1/raw_cdp/v2_neg_input_dispatchkey_badtype.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Negative (bad param type): Input.dispatchKeyEvent.type must be one of the enum strings; passing a number must yield a clean InvalidParams rejection rather than a hang or a synthesized event.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "expect_unsupported": true,
10
+ "method": "Input.dispatchKeyEvent",
11
+ "params": {
12
+ "type": 42
13
+ }
14
+ }
15
+ ]
16
+ },
17
+ "features": [
18
+ "cdp.input.dispatch_key_event"
19
+ ],
20
+ "grader": {
21
+ "checks": [
22
+ {
23
+ "kind": "unsupported_observed",
24
+ "method": "Input.dispatchKeyEvent"
25
+ }
26
+ ],
27
+ "kind": "inline_assertions"
28
+ },
29
+ "layer": "L1",
30
+ "scene": {
31
+ "kind": "about_blank"
32
+ },
33
+ "subset_id": "l1.raw_cdp",
34
+ "tags": [
35
+ "family.negative",
36
+ "purpose.negative",
37
+ "version.v0_2"
38
+ ],
39
+ "task_id": "v2_neg_input_dispatchkey_badtype",
40
+ "task_version": 1,
41
+ "timeouts": {
42
+ "hard_kill_ms": 30000,
43
+ "task_ms": 15000
44
+ },
45
+ "title": "input_dispatchkey_badtype"
46
+ }
definitions/tasks/L1/raw_cdp/v2_neg_input_dispatchkey_missing_type.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Negative (missing required param): Input.dispatchKeyEvent requires 'type'; omitting it must yield a clean InvalidParams rejection rather than a hang or a synthesized event.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "expect_unsupported": true,
10
+ "method": "Input.dispatchKeyEvent",
11
+ "params": {
12
+ "key": "a"
13
+ }
14
+ }
15
+ ]
16
+ },
17
+ "features": [
18
+ "cdp.input.dispatch_key_event"
19
+ ],
20
+ "grader": {
21
+ "checks": [
22
+ {
23
+ "kind": "unsupported_observed",
24
+ "method": "Input.dispatchKeyEvent"
25
+ }
26
+ ],
27
+ "kind": "inline_assertions"
28
+ },
29
+ "layer": "L1",
30
+ "scene": {
31
+ "kind": "about_blank"
32
+ },
33
+ "subset_id": "l1.raw_cdp",
34
+ "tags": [
35
+ "family.negative",
36
+ "purpose.negative",
37
+ "version.v0_2"
38
+ ],
39
+ "task_id": "v2_neg_input_dispatchkey_missing_type",
40
+ "task_version": 1,
41
+ "timeouts": {
42
+ "hard_kill_ms": 30000,
43
+ "task_ms": 15000
44
+ },
45
+ "title": "input_dispatchkey_missing_type"
46
+ }
definitions/tasks/L1/raw_cdp/v2_neg_nonexistent_domain.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Negative: 'Moli' is not a CDP domain and inspectEverything is not a command. A call into a wholly nonexistent domain must be cleanly rejected as unknown.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "expect_unsupported": true,
10
+ "method": "Moli.inspectEverything",
11
+ "params": {}
12
+ }
13
+ ]
14
+ },
15
+ "features": [
16
+ "cdp.protocol.unknown_method"
17
+ ],
18
+ "grader": {
19
+ "checks": [
20
+ {
21
+ "kind": "unsupported_observed",
22
+ "method": "Moli.inspectEverything"
23
+ }
24
+ ],
25
+ "kind": "inline_assertions"
26
+ },
27
+ "layer": "L1",
28
+ "scene": {
29
+ "kind": "about_blank"
30
+ },
31
+ "subset_id": "l1.raw_cdp",
32
+ "tags": [
33
+ "family.negative",
34
+ "purpose.negative",
35
+ "version.v0_2"
36
+ ],
37
+ "task_id": "v2_neg_nonexistent_domain",
38
+ "task_version": 1,
39
+ "timeouts": {
40
+ "hard_kill_ms": 30000,
41
+ "task_ms": 15000
42
+ },
43
+ "title": "nonexistent_domain"
44
+ }
definitions/tasks/L1/raw_cdp/v2_neg_page_deletecookie.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Negative: Page.deleteCookie was removed from the Page domain and relocated to Network.deleteCookies. On a conformant engine it must be cleanly rejected as an unknown method; a hang or crash fails. Declared expect_unsupported so the clean rejection is the passing outcome.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "expect_unsupported": true,
10
+ "method": "Page.deleteCookie",
11
+ "params": {
12
+ "cookieName": "x",
13
+ "url": "http://127.0.0.1/"
14
+ }
15
+ }
16
+ ]
17
+ },
18
+ "features": [
19
+ "cdp.page.delete_cookie.removed"
20
+ ],
21
+ "grader": {
22
+ "checks": [
23
+ {
24
+ "kind": "unsupported_observed",
25
+ "method": "Page.deleteCookie"
26
+ }
27
+ ],
28
+ "kind": "inline_assertions"
29
+ },
30
+ "layer": "L1",
31
+ "scene": {
32
+ "kind": "about_blank"
33
+ },
34
+ "subset_id": "l1.raw_cdp",
35
+ "tags": [
36
+ "family.negative",
37
+ "purpose.negative",
38
+ "version.v0_2"
39
+ ],
40
+ "task_id": "v2_neg_page_deletecookie",
41
+ "task_version": 1,
42
+ "timeouts": {
43
+ "hard_kill_ms": 30000,
44
+ "task_ms": 15000
45
+ },
46
+ "title": "page_deletecookie"
47
+ }
definitions/tasks/L1/raw_cdp/v2_neg_page_navigate_badurl.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Negative (bad param type): Page.navigate.url must be a string; passing a number must yield a clean synchronous InvalidParams rejection rather than a hang or a bogus navigation. Declared expect_unsupported (a rejected/InvalidParams outcome passes).",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "expect_unsupported": true,
10
+ "method": "Page.navigate",
11
+ "params": {
12
+ "url": 123
13
+ }
14
+ }
15
+ ]
16
+ },
17
+ "features": [
18
+ "cdp.page.navigate"
19
+ ],
20
+ "grader": {
21
+ "checks": [
22
+ {
23
+ "kind": "unsupported_observed",
24
+ "method": "Page.navigate"
25
+ }
26
+ ],
27
+ "kind": "inline_assertions"
28
+ },
29
+ "layer": "L1",
30
+ "scene": {
31
+ "kind": "about_blank"
32
+ },
33
+ "subset_id": "l1.raw_cdp",
34
+ "tags": [
35
+ "family.negative",
36
+ "purpose.negative",
37
+ "version.v0_2"
38
+ ],
39
+ "task_id": "v2_neg_page_navigate_badurl",
40
+ "task_version": 1,
41
+ "timeouts": {
42
+ "hard_kill_ms": 30000,
43
+ "task_ms": 15000
44
+ },
45
+ "title": "page_navigate_badurl"
46
+ }
definitions/tasks/L1/raw_cdp/v2_neg_runtime_evaluateexpression.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Negative: Runtime.evaluateExpression is not a real command (the actual command is Runtime.evaluate). A plausible-but-wrong method name must be cleanly rejected as unknown, not silently accepted; a hang or crash fails.",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "expect_unsupported": true,
10
+ "method": "Runtime.evaluateExpression",
11
+ "params": {
12
+ "expression": "1"
13
+ }
14
+ }
15
+ ]
16
+ },
17
+ "features": [
18
+ "cdp.protocol.unknown_method"
19
+ ],
20
+ "grader": {
21
+ "checks": [
22
+ {
23
+ "kind": "unsupported_observed",
24
+ "method": "Runtime.evaluateExpression"
25
+ }
26
+ ],
27
+ "kind": "inline_assertions"
28
+ },
29
+ "layer": "L1",
30
+ "scene": {
31
+ "kind": "about_blank"
32
+ },
33
+ "subset_id": "l1.raw_cdp",
34
+ "tags": [
35
+ "family.negative",
36
+ "purpose.negative",
37
+ "version.v0_2"
38
+ ],
39
+ "task_id": "v2_neg_runtime_evaluateexpression",
40
+ "task_version": 1,
41
+ "timeouts": {
42
+ "hard_kill_ms": 30000,
43
+ "task_ms": 15000
44
+ },
45
+ "title": "runtime_evaluateexpression"
46
+ }
definitions/tasks/L1/raw_cdp/v2_neg_runtime_getproperties_badobjid.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_profile": "l1_standard",
3
+ "chrome_gate": "best_effort",
4
+ "description": "Negative (bad param type): Runtime.getProperties.objectId must be a string RemoteObjectId; passing an integer must yield a clean synchronous InvalidParams rejection rather than a hang. Declared expect_unsupported (a rejected/InvalidParams outcome passes).",
5
+ "driver": {
6
+ "kind": "raw_cdp",
7
+ "steps": [
8
+ {
9
+ "expect_unsupported": true,
10
+ "method": "Runtime.getProperties",
11
+ "params": {
12
+ "objectId": 12345
13
+ }
14
+ }
15
+ ]
16
+ },
17
+ "features": [
18
+ "cdp.runtime.get_properties"
19
+ ],
20
+ "grader": {
21
+ "checks": [
22
+ {
23
+ "kind": "unsupported_observed",
24
+ "method": "Runtime.getProperties"
25
+ }
26
+ ],
27
+ "kind": "inline_assertions"
28
+ },
29
+ "layer": "L1",
30
+ "scene": {
31
+ "kind": "about_blank"
32
+ },
33
+ "subset_id": "l1.raw_cdp",
34
+ "tags": [
35
+ "family.negative",
36
+ "purpose.negative",
37
+ "version.v0_2"
38
+ ],
39
+ "task_id": "v2_neg_runtime_getproperties_badobjid",
40
+ "task_version": 1,
41
+ "timeouts": {
42
+ "hard_kill_ms": 30000,
43
+ "task_ms": 15000
44
+ },
45
+ "title": "runtime_getproperties_badobjid"
46
+ }