@miracle352/statute 0.0.0-stage → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +319 -2
- package/action.yml +356 -0
- package/bin/hook.js +81 -0
- package/bin/init.js +142 -0
- package/bin/mcp.js +166 -0
- package/bin/scope.js +78 -0
- package/bin/shots.js +52 -0
- package/bin/statute.js +362 -0
- package/examples/expect/newsletter_test.md +22 -0
- package/examples/expect/output-newsletter/.internal/execution.json +2053 -0
- package/examples/expect/output-newsletter/.internal/meta.json +39 -0
- package/examples/expect/output-newsletter/.internal/steps/1-d2368411/flows/0/actions.ndjson +2 -0
- package/examples/expect/output-newsletter/.internal/steps/2-a9e761f8/flows/0/actions.ndjson +6 -0
- package/examples/expect/output-newsletter/.internal/steps/3-63305a01/flows/0/actions.ndjson +2 -0
- package/examples/expect/output-newsletter/Result.md +21 -0
- package/examples/expect/search_test.md +20 -0
- package/laws/README.md +24 -0
- package/laws/accept_still_works_test.md +12 -0
- package/laws/cancel_as_easy_as_signup_test.md +15 -0
- package/laws/output-reject_means_reject/.internal/execution.json +1279 -0
- package/laws/output-reject_means_reject/.internal/meta.json +18 -0
- package/laws/output-reject_means_reject/.internal/steps/1-567cc234/flows/0/actions.ndjson +6 -0
- package/laws/output-reject_means_reject/.internal/steps/2-e3c06462/flows/0/actions.ndjson +1 -0
- package/laws/output-reject_means_reject/.internal/steps/3-3040a29b/flows/0/actions.ndjson +2 -0
- package/laws/output-reject_means_reject/Result.md +21 -0
- package/laws/price_shown_is_price_paid_test.md +12 -0
- package/laws/reject_means_reject_test.md +15 -0
- package/package.json +65 -4
- package/replays/cancel-demo-shop/evidence/cancel-1794754943192.evidence +0 -0
- package/replays/cancel-demo-shop/evidence/cancel-1794755110410.evidence +0 -0
- package/replays/cancel-demo-shop/loop.json +32 -0
- package/replays/demo-shop/evidence/consent-1794751413210.evidence +0 -0
- package/replays/demo-shop/evidence/consent-1794751523524.evidence +0 -0
- package/replays/demo-shop/evidence/consent-accept-1794751588395.evidence +0 -0
- package/replays/demo-shop/loop.json +40 -0
- package/replays/haxcms/evidence/consent-1794831086682.evidence +0 -0
- package/replays/haxcms/evidence/consent-1794831262757.evidence +0 -0
- package/replays/haxcms/evidence/consent-accept-1794831347132.evidence +0 -0
- package/replays/haxcms/loop.json +56 -0
- package/replays/in-the-wake-check/consent.json +67 -0
- package/replays/in-the-wake-check/consent.md +32 -0
- package/replays/kane-testmd-demo-shop/evidence/consent-1794935266000.evidence +0 -0
- package/replays/kane-testmd-demo-shop/loop.json +18 -0
- package/replays/lumen-pr-2/evidence/consent-1794929771799.evidence +0 -0
- package/replays/lumen-pr-2/evidence/consent-1794929845913.evidence +0 -0
- package/replays/lumen-pr-2/evidence/consent-accept-1794929886905.evidence +0 -0
- package/replays/lumen-pr-2/loop.json +57 -0
- package/replays/newsletter-expect/evidence/newsletter_test-round1-1795518837738.evidence +0 -0
- package/replays/newsletter-expect/evidence/newsletter_test-round2-1795519079029.evidence +0 -0
- package/replays/newsletter-expect/loop.json +99 -0
- package/replays/price-demo-shop/evidence/price-1794837093949.evidence +0 -0
- package/replays/price-demo-shop/evidence/price-1794837311639.evidence +0 -0
- package/replays/price-demo-shop/loop.json +43 -0
- package/rules/trackers.json +61 -0
- package/site/assets/fonts/OFL-archivo.txt +93 -0
- package/site/assets/fonts/OFL-geist.txt +93 -0
- package/site/assets/fonts/OFL-instrument-serif.txt +93 -0
- package/site/assets/fonts/archivo.woff2 +0 -0
- package/site/assets/fonts/geist.woff2 +0 -0
- package/site/assets/fonts/instrument-serif-italic.woff2 +0 -0
- package/site/assets/fonts/instrument-serif.woff2 +0 -0
- package/site/assets/fonts/inter.woff2 +0 -0
- package/site/assets/fonts/jetbrains-mono.woff2 +0 -0
- package/skill/statute/SKILL.md +57 -0
- package/src/agent.js +70 -0
- package/src/app.js +41 -0
- package/src/evidence.js +80 -0
- package/src/expect-cli.js +296 -0
- package/src/expect-view.js +79 -0
- package/src/expect.js +392 -0
- package/src/infer.js +32 -0
- package/src/kane.js +124 -0
- package/src/pack.js +128 -0
- package/src/packs/cancel.js +83 -0
- package/src/packs/consent-accept.js +57 -0
- package/src/packs/consent.js +237 -0
- package/src/packs/price.js +104 -0
- package/src/page.js +360 -0
- package/src/report.js +59 -0
- package/src/zip.js +38 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"test_id": "a53bc1c7-c658-43a0-b9e1-183692ec84ca",
|
|
3
|
+
"project_id": "01M7E4JR87M8V8X3PY5SPEP2E6",
|
|
4
|
+
"folder_id": "01M7E4K3PV0XT2AA4SK3Q4728E",
|
|
5
|
+
"org_id": "3430257",
|
|
6
|
+
"session_name": "reject_means_reject",
|
|
7
|
+
"commit_id": "3a062ac2-03da-4216-ac65-e24599453594",
|
|
8
|
+
"testcase_id": "01M7N7MN4Y2EQAHAWNCQ0H39YC",
|
|
9
|
+
"executions": [
|
|
10
|
+
{
|
|
11
|
+
"execution_id": "9c3ef5f3-3d09-4a9b-be87-ff1dbaef2b01",
|
|
12
|
+
"run_kind": "author",
|
|
13
|
+
"status": "passed",
|
|
14
|
+
"valid": true,
|
|
15
|
+
"at": "2026-11-17T17:09:36.944Z"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{"action_id": "7c8d5e1a-0787-49b8-bdec-88dfa2d930ad", "step": 1, "action_type": "navigate", "action_instruction": "Navigate to {{global.url}}", "intent": "Navigate to {{global.url}}", "selectors": null, "frame_info": null, "coordinates": null, "action_params": {"url": "{{global.url}}"}, "variables_used": {"global.url": "{{global.url}}"}, "until_condition": null, "until_max_retries": null, "until_settle_ms": null, "until_attempts": null, "until_condition_met": null, "output_variable": null, "output_value": null, "generated_code": "async def run_test():\n async with testmu.step('Navigate to {{global.url}}'):\n variable_value_0 = var('{{global.url}}')\n await page.goto(variable_value_0)", "ast_json": "{\n \"profile_id\": \"default\",\n \"imports\": [],\n \"setup\": {\n \"profile_id\": \"default\",\n \"statements\": []\n },\n \"main\": {\n \"profile_id\": \"default\",\n \"statements\": [\n {\n \"profile_id\": \"default\",\n \"expression\": {\n \"profile_id\": \"default\",\n \"name\": \"variable_value_0\",\n \"value\": {\n \"profile_id\": \"default\",\n \"variable_name\": {\n \"profile_id\": \"default\",\n \"value\": \"\\\"global.url\\\"\"\n },\n \"default_value\": {\n \"profile_id\": \"default\",\n \"value\": \"\\\"{{global.url}}\\\"\"\n }\n }\n },\n \"description\": \"Navigate to {{global.url}}\",\n \"timeout_ms\": null,\n \"failure_condition\": null,\n \"instruction_id\": null,\n \"retries\": null,\n \"retries_delay\": null,\n \"optional_flag\": false\n },\n {\n \"profile_id\": \"default\",\n \"expression\": {\n \"profile_id\": \"default\",\n \"object\": \"__DRIVER_GETTER__('default')\",\n \"method\": \"get\",\n \"args\": [\n \"variable_value_0\"\n ],\n \"kwargs\": {}\n },\n \"description\": null,\n \"timeout_ms\": null,\n \"failure_condition\": null,\n \"instruction_id\": null,\n \"retries\": null,\n \"retries_delay\": null,\n \"optional_flag\": false\n }\n ]\n },\n \"teardown\": {\n \"profile_id\": \"default\",\n \"statements\": []\n },\n \"kane_version\": \"v4\"\n}", "status": "success", "error": null, "duration_ms": 3672.0, "timestamp": "2026-11-17T17:07:46.261654+00:00", "visual_data": null, "rationale": "Navigate to the start URL to begin the test flow: {{global.url}}"}
|
|
2
|
+
{"action_id": "5de608a9-8676-4604-b50d-5b44955dcac1", "step": 2, "action_type": "analyze", "action_instruction": "Checking whether the cookie consent banner is present", "intent": "whether a cookie or analytics consent banner is present (in the cookie settings dialog)", "selectors": null, "frame_info": null, "coordinates": null, "action_params": {"key": "consent_banner_shown", "analyzer_type": "textual_visual", "condition": "A cookie or analytics consent banner is shown", "query": "whether a cookie or analytics consent banner is present (in the cookie settings dialog)", "expected_value": "true", "code_js": "/we value your privacy|cookies to improve your experience|analytics/i.test(el(47).textContent || '')", "wrapped_js": "(els) => {\n const __m = {47: 0};\n const el = (i) => els[__m[i]];\n const __v = (/we value your privacy|cookies to improve your experience|analytics/i.test(el(47).textContent || ''));\n return (typeof __v === 'boolean' ? String(__v) : __v);\n}", "locators": ["internal:role=dialog[name=\"Cookie settings\"i]"], "operator": "equals", "transforms": [], "needs_unit_conversion": false}, "variables_used": {}, "until_condition": null, "until_max_retries": null, "until_settle_ms": null, "until_attempts": null, "until_condition_met": null, "output_variable": "consent_banner_shown", "output_value": "true", "generated_code": "", "ast_json": null, "status": "success", "error": null, "duration_ms": 0.0, "timestamp": "2026-11-17T17:08:10.329573+00:00", "visual_data": null, "rationale": ""}
|
|
3
|
+
{"action_id": null, "step": 3, "action_type": "if_else", "action_instruction": "If-else checkpoint cp_1: condition 'A cookie or analytics consent banner is shown' matched", "action_params": {"branches": [{"condition": "A cookie or analytics consent banner is shown", "custom_event": "@v16:\"click the button that rejects or declines it\"", "sub_checks": [{"description": "A cookie or analytics consent banner is shown", "store_key": "consent_banner_shown", "expected_value": "true"}], "composite_operator": "or", "variable_refs": null}, {"condition": null, "custom_event": "@v16:do not look for one", "sub_checks": [], "composite_operator": "and", "variable_refs": null}], "winning_index": 0, "sub_results": [{"branch_index": 0, "condition": "A cookie or analytics consent banner is shown", "action": "@v16:\"click the button that rejects or declines it\"", "passed": true, "is_winner": true, "sub_results": [{"description": "A cookie or analytics consent banner is shown", "passed": true, "operator": "equals", "transforms": [], "json_path": null, "expected": "true", "extracted_value": "{{consent_banner_shown}}", "store_key": "consent_banner_shown", "variable_refs": {"{{consent_banner_shown}}": "true"}}]}, {"branch_index": 1, "condition": "else", "action": "@v16:do not look for one", "passed": true, "is_winner": false, "sub_results": [{"description": "else (default branch)", "passed": true, "operator": "equals", "transforms": [], "json_path": null, "expected": null, "extracted_value": null, "store_key": null, "variable_refs": null}]}]}, "generated_code": null, "ast_json": null, "status": "success", "timestamp": "2026-11-17T17:08:11.017335+00:00"}
|
|
4
|
+
{"action_id": null, "step": 4, "action_type": "child_agent_start", "action_instruction": "\"click the button that rejects or declines it\"", "action_params": {"child_id": "f1e050d6", "objective": "\"click the button that rejects or declines it\""}, "generated_code": null, "ast_json": null, "status": "executing", "timestamp": "2026-11-17T17:08:11.017335+00:00"}
|
|
5
|
+
{"action_id": "520bd560-723e-4789-914f-34d0f1ff6789", "step": 5, "action_type": "click", "action_instruction": "Clicking Reject all in the cookie settings dialog", "intent": "PRIMARY: Click the button that rejects or declines it; role=button; text=\"Reject all\" | HINTS: container=Cookie settings dialog; position=bottom-right", "selectors": [{"selector": "internal:role=button[name=\"Reject all\"i]", "score": 100, "isXPath": false}], "frame_info": null, "coordinates": null, "action_params": {}, "variables_used": {}, "until_condition": null, "until_max_retries": null, "until_settle_ms": null, "until_attempts": null, "until_condition_met": null, "output_variable": null, "output_value": null, "generated_code": "async def run_test():\n try:\n _loc_1 = page.locator(\"internal:role=button[name=\\\"Reject all\\\"i]\")\n await capture_visual_context(_loc_1)\n await _loc_1.click()\n except Exception:\n await page.mouse.click(1360, 1015)\n set_visual_context(1360, 1015)", "ast_json": "{\n \"profile_id\": \"default\",\n \"imports\": [],\n \"setup\": {\n \"profile_id\": \"default\",\n \"statements\": []\n },\n \"main\": {\n \"profile_id\": \"default\",\n \"statements\": [\n {\n \"profile_id\": \"default\",\n \"expression\": {\n \"profile_id\": \"default\",\n \"try_block\": {\n \"profile_id\": \"default\",\n \"statements\": [\n {\n \"profile_id\": \"default\",\n \"expression\": {\n \"profile_id\": \"default\",\n \"base_call\": {\n \"profile_id\": \"default\",\n \"selector\": [\n {\n \"type\": \"css\",\n \"value\": \"internal:role=button[name=\\\"Reject all\\\"i]\",\n \"score\": 100,\n \"isXPath\": false\n }\n ],\n \"description\": \"PRIMARY: Click the button that rejects or declines it; role=button; text=\\\"Reject all\\\" | HINTS: container=Cookie settings dialog; position=bottom-right\"\n },\n \"chained_calls\": [\n {\n \"profile_id\": \"default\",\n \"modifiers\": [],\n \"click_modifier\": null\n }\n ]\n },\n \"description\": null,\n \"timeout_ms\": null,\n \"failure_condition\": null,\n \"instruction_id\": null,\n \"retries\": null,\n \"retries_delay\": null,\n \"optional_flag\": false\n }\n ]\n },\n \"except_blocks\": [\n {\n \"profile_id\": \"default\",\n \"exception_type\": \"Exception\",\n \"variable_name\": null,\n \"block\": {\n \"profile_id\": \"default\",\n \"statements\": [\n {\n \"profile_id\": \"default\",\n \"expression\": {\n \"profile_id\": \"default\",\n \"x\": 1360,\n \"y\": 1015,\n \"description\": \"PRIMARY: Click the button that rejects or declines it; role=button; text=\\\"Reject all\\\" | HINTS: container=Cookie settings dialog; position=bottom-right\",\n \"modifiers\": [],\n \"click_modifier\": null\n },\n \"description\": null,\n \"timeout_ms\": null,\n \"failure_condition\": null,\n \"instruction_id\": null,\n \"retries\": null,\n \"retries_delay\": null,\n \"optional_flag\": false\n }\n ]\n }\n }\n ],\n \"finally_block\": null\n },\n \"description\": \"PRIMARY: Click the button that rejects or declines it; role=button; text=\\\"Reject all\\\" | HINTS: container=Cookie settings dialog; position=bottom-right\",\n \"timeout_ms\": null,\n \"failure_condition\": null,\n \"instruction_id\": null,\n \"retries\": null,\n \"retries_delay\": null,\n \"optional_flag\": false\n }\n ]\n },\n \"teardown\": {\n \"profile_id\": \"default\",\n \"statements\": []\n },\n \"kane_version\": \"v4\"\n}", "status": "success", "error": null, "duration_ms": 46.0, "timestamp": "2026-11-17T17:08:21.082635+00:00", "visual_data": {"x": 1360, "y": 1015, "bbox": {"x": 1333, "y": 1008, "width": 54, "height": 15}, "viewport_width": 1920, "viewport_height": 1080}, "rationale": "The cookie settings dialog offers a visible Reject all button."}
|
|
6
|
+
{"action_id": null, "step": 6, "action_type": "child_agent_end", "action_instruction": "\"click the button that rejects or declines it\"", "action_params": {"child_id": "f1e050d6", "objective": "\"click the button that rejects or declines it\"", "result_code": "100", "reason_code": "success.complete", "error_message": null, "summary": "You asked to reject or decline the cookie or analytics consent option.\nA cookie settings banner was present on the demo page.\nThe decline action was completed, and the page remained at the demo URL.", "one_liner": "rejected cookie consent on statute-production.up.railway.app"}, "generated_code": null, "ast_json": null, "status": "success", "timestamp": "2026-11-17T17:08:27.023153+00:00"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"action_id": "1aaf05c6-6fed-49b1-8d66-d4b3cb8c498d", "step": 1, "action_type": "click", "action_instruction": "Opening the Shop page from the top navigation", "intent": "PRIMARY: Open one page from the site's navigation; role=link; text=\"Shop\" | HINTS: container=top navigation", "selectors": [{"selector": "internal:role=link[name=\"Shop\"s]", "score": 100, "isXPath": false}], "frame_info": null, "coordinates": null, "action_params": {}, "variables_used": {}, "until_condition": null, "until_max_retries": null, "until_settle_ms": null, "until_attempts": null, "until_condition_met": null, "output_variable": null, "output_value": null, "generated_code": "async def run_test():\n try:\n _loc_1 = page.locator(\"internal:role=link[name=\\\"Shop\\\"s]\")\n await capture_visual_context(_loc_1)\n await _loc_1.click()\n except Exception:\n await page.mouse.click(1250, 33)\n set_visual_context(1250, 33)", "ast_json": "{\n \"profile_id\": \"default\",\n \"imports\": [],\n \"setup\": {\n \"profile_id\": \"default\",\n \"statements\": []\n },\n \"main\": {\n \"profile_id\": \"default\",\n \"statements\": [\n {\n \"profile_id\": \"default\",\n \"expression\": {\n \"profile_id\": \"default\",\n \"try_block\": {\n \"profile_id\": \"default\",\n \"statements\": [\n {\n \"profile_id\": \"default\",\n \"expression\": {\n \"profile_id\": \"default\",\n \"base_call\": {\n \"profile_id\": \"default\",\n \"selector\": [\n {\n \"type\": \"css\",\n \"value\": \"internal:role=link[name=\\\"Shop\\\"s]\",\n \"score\": 100,\n \"isXPath\": false\n }\n ],\n \"description\": \"PRIMARY: Open one page from the site's navigation; role=link; text=\\\"Shop\\\" | HINTS: container=top navigation\"\n },\n \"chained_calls\": [\n {\n \"profile_id\": \"default\",\n \"modifiers\": [],\n \"click_modifier\": null\n }\n ]\n },\n \"description\": null,\n \"timeout_ms\": null,\n \"failure_condition\": null,\n \"instruction_id\": null,\n \"retries\": null,\n \"retries_delay\": null,\n \"optional_flag\": false\n }\n ]\n },\n \"except_blocks\": [\n {\n \"profile_id\": \"default\",\n \"exception_type\": \"Exception\",\n \"variable_name\": null,\n \"block\": {\n \"profile_id\": \"default\",\n \"statements\": [\n {\n \"profile_id\": \"default\",\n \"expression\": {\n \"profile_id\": \"default\",\n \"x\": 1250,\n \"y\": 33,\n \"description\": \"PRIMARY: Open one page from the site's navigation; role=link; text=\\\"Shop\\\" | HINTS: container=top navigation\",\n \"modifiers\": [],\n \"click_modifier\": null\n },\n \"description\": null,\n \"timeout_ms\": null,\n \"failure_condition\": null,\n \"instruction_id\": null,\n \"retries\": null,\n \"retries_delay\": null,\n \"optional_flag\": false\n }\n ]\n }\n }\n ],\n \"finally_block\": null\n },\n \"description\": \"PRIMARY: Open one page from the site's navigation; role=link; text=\\\"Shop\\\" | HINTS: container=top navigation\",\n \"timeout_ms\": null,\n \"failure_condition\": null,\n \"instruction_id\": null,\n \"retries\": null,\n \"retries_delay\": null,\n \"optional_flag\": false\n }\n ]\n },\n \"teardown\": {\n \"profile_id\": \"default\",\n \"statements\": []\n },\n \"kane_version\": \"v4\"\n}", "status": "success", "error": null, "duration_ms": 47.0, "timestamp": "2026-11-17T17:08:49.980758+00:00", "visual_data": {"x": 1250, "y": 33, "bbox": {"x": 1233, "y": 22, "width": 34, "height": 23}, "viewport_width": 1920, "viewport_height": 1080}, "rationale": "The Shop navigation link opens a site page section."}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
{"action_id": "654c72f5-ff54-4148-a08d-7128840ecb01", "step": 1, "action_type": "refresh", "action_instruction": "Navigate refresh", "intent": "Navigate refresh", "selectors": null, "frame_info": null, "coordinates": null, "action_params": {}, "variables_used": {}, "until_condition": null, "until_max_retries": null, "until_settle_ms": null, "until_attempts": null, "until_condition_met": null, "output_variable": null, "output_value": null, "generated_code": "async def run_test():\n await page.reload(wait_until='domcontentloaded')", "ast_json": "{\n \"profile_id\": \"default\",\n \"imports\": [],\n \"setup\": {\n \"profile_id\": \"default\",\n \"statements\": []\n },\n \"main\": {\n \"profile_id\": \"default\",\n \"statements\": [\n {\n \"profile_id\": \"default\",\n \"expression\": {\n \"profile_id\": \"default\"\n },\n \"description\": \"\",\n \"timeout_ms\": null,\n \"failure_condition\": null,\n \"instruction_id\": null,\n \"retries\": null,\n \"retries_delay\": null,\n \"optional_flag\": false\n }\n ]\n },\n \"teardown\": {\n \"profile_id\": \"default\",\n \"statements\": []\n },\n \"kane_version\": \"v4\"\n}", "status": "success", "error": null, "duration_ms": 547.0, "timestamp": "2026-11-17T17:09:18.225833+00:00", "visual_data": null, "rationale": ""}
|
|
2
|
+
{"action_id": "0a14740b-86d9-444a-bd24-dca45e76b588", "step": 2, "action_type": "wait", "action_instruction": "Waiting for page reload to complete", "intent": "PRIMARY: confirm the page reload has completed", "selectors": null, "frame_info": null, "coordinates": null, "action_params": {"ms": 1000}, "variables_used": {}, "until_condition": null, "until_max_retries": null, "until_settle_ms": null, "until_attempts": null, "until_condition_met": null, "output_variable": null, "output_value": null, "generated_code": "async def run_test():\n await page.wait_for_timeout(1000)", "ast_json": "{\n \"profile_id\": \"default\",\n \"imports\": [],\n \"setup\": {\n \"profile_id\": \"default\",\n \"statements\": []\n },\n \"main\": {\n \"profile_id\": \"default\",\n \"statements\": [\n {\n \"profile_id\": \"default\",\n \"expression\": {\n \"profile_id\": \"default\",\n \"timeout_ms\": 1000\n },\n \"description\": \"\",\n \"timeout_ms\": 1000,\n \"failure_condition\": null,\n \"instruction_id\": null,\n \"retries\": null,\n \"retries_delay\": null,\n \"optional_flag\": false\n }\n ]\n },\n \"teardown\": {\n \"profile_id\": \"default\",\n \"statements\": []\n },\n \"kane_version\": \"v4\"\n}", "status": "success", "error": null, "duration_ms": 1032.0, "timestamp": "2026-11-17T17:09:24.036386+00:00", "visual_data": null, "rationale": "The page was reloaded successfully."}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
test: ../reject_means_reject_test.md
|
|
3
|
+
status: passed
|
|
4
|
+
started: 2026-11-17T17:07:27.229Z
|
|
5
|
+
duration_s: 128
|
|
6
|
+
session_id: 3a062ac2-03da-4216-ac65-e24599453594
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Statute: Reject means reject — Result
|
|
10
|
+
|
|
11
|
+
## Refuse cookies ✓ passed (60.4s)
|
|
12
|
+
md5: 567cc2345d5fd8b7f94d30d6637fcaa6
|
|
13
|
+
Go to {{url}}. If a cookie or analytics consent banner is shown, click the button that rejects or declines it. If no banner is shown, do not look for one.
|
|
14
|
+
|
|
15
|
+
## Browse one page ✓ passed (27.1s)
|
|
16
|
+
md5: e3c064629fe41123f2f81fe0ecb8f61b
|
|
17
|
+
Open one page from the site's navigation.
|
|
18
|
+
|
|
19
|
+
## Reload ✓ passed (31.4s)
|
|
20
|
+
md5: 3040a29b139be78326049c48fce4b187
|
|
21
|
+
Reload that page.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: testing
|
|
3
|
+
tags: [statute, price, drip-pricing]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Statute: The price shown is the price paid
|
|
7
|
+
|
|
8
|
+
## Read the shown price
|
|
9
|
+
Go to {{url}}. Reject all cookies if a banner appears. Open the first product and store the price shown for it in a variable named product_price.
|
|
10
|
+
|
|
11
|
+
## Read the checkout
|
|
12
|
+
Add it to the cart, go to checkout and stop on the page before payment. Store the total to pay in checkout_total. Copy every line listed between the product and the total, exactly as the page names it, with its amount, into checkout_lines (for example "Delivery: 3.00; Packaging fee: 1.50"; write none if there are no such lines). Do not pay.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: testing
|
|
3
|
+
tags: [statute, consent, gdpr, eprivacy]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Statute: Reject means reject
|
|
7
|
+
|
|
8
|
+
## Refuse cookies
|
|
9
|
+
Go to {{url}}. If a cookie or analytics consent banner is shown, click the button that rejects or declines it. If no banner is shown, do not look for one.
|
|
10
|
+
|
|
11
|
+
## Browse one page
|
|
12
|
+
Open one page from the site's navigation.
|
|
13
|
+
|
|
14
|
+
## Reload
|
|
15
|
+
Reload that page.
|
package/package.json
CHANGED
|
@@ -1,6 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miracle352/statute",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Kane CLI says the steps ran. Statute checks what the page did: trackers after Reject, typed data leaving the site, consumer-law checks. Code, not a model, judges Kane's evidence.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"statute": "bin/statute.js",
|
|
7
|
+
"statute-mcp": "bin/mcp.js",
|
|
8
|
+
"statute-hook": "bin/hook.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "node --test test/*.test.js",
|
|
12
|
+
"start": "node server/index.js",
|
|
13
|
+
"store": "node demo-store/server.js",
|
|
14
|
+
"check:consent": "node bin/statute.js check consent --url http://localhost:4173 --start \"node demo-store/server.js\"",
|
|
15
|
+
"demo:fix": "node bin/statute.js fix consent --url http://localhost:4173 --start \"node demo-store/server.js\" --app demo-store",
|
|
16
|
+
"demo:fix-cancel": "node bin/statute.js fix cancel --url http://localhost:4173 --start \"node demo-store/server.js\" --app demo-store",
|
|
17
|
+
"demo:reset": "node bin/statute.js reset-demo",
|
|
18
|
+
"census": "node bin/census.js",
|
|
19
|
+
"demo:hax": "node bin/statute.js fix consent --url http://localhost:8095/ --start \"node bin/serve.js 8095 examples/haxcms\" --app examples/haxcms",
|
|
20
|
+
"demo:hax-reset": "node -e \"for (const f of ['index.html','ghpages.html']) require('fs').copyFileSync('examples/haxcms/.original/'+f,'examples/haxcms/'+f)\"",
|
|
21
|
+
"demo": "node bin/statute.js replay",
|
|
22
|
+
"check:price": "node bin/statute.js check price --url http://localhost:4173 --start \"node demo-store/server.js\"",
|
|
23
|
+
"demo:fix-price": "node bin/statute.js fix price --url http://localhost:4173 --start \"node demo-store/server.js\" --app demo-store"
|
|
24
|
+
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=22"
|
|
27
|
+
},
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"files": [
|
|
30
|
+
"bin/statute.js",
|
|
31
|
+
"bin/init.js",
|
|
32
|
+
"bin/scope.js",
|
|
33
|
+
"bin/shots.js",
|
|
34
|
+
"bin/mcp.js",
|
|
35
|
+
"bin/hook.js",
|
|
36
|
+
"src",
|
|
37
|
+
"rules",
|
|
38
|
+
"replays",
|
|
39
|
+
"action.yml",
|
|
40
|
+
"README.md",
|
|
41
|
+
"site/assets/fonts",
|
|
42
|
+
"laws",
|
|
43
|
+
"skill",
|
|
44
|
+
"examples/expect"
|
|
45
|
+
],
|
|
46
|
+
"keywords": [
|
|
47
|
+
"kane-cli",
|
|
48
|
+
"gdpr",
|
|
49
|
+
"cookie-consent",
|
|
50
|
+
"compliance",
|
|
51
|
+
"testing",
|
|
52
|
+
"claude-code",
|
|
53
|
+
"mcp",
|
|
54
|
+
"github-action",
|
|
55
|
+
"dark-patterns",
|
|
56
|
+
"privacy",
|
|
57
|
+
"evidence",
|
|
58
|
+
"e2e"
|
|
59
|
+
],
|
|
60
|
+
"repository": {
|
|
61
|
+
"type": "git",
|
|
62
|
+
"url": "git+https://github.com/miracle352/statute.git"
|
|
63
|
+
},
|
|
64
|
+
"homepage": "https://statute-production.up.railway.app",
|
|
65
|
+
"bugs": "https://github.com/miracle352/statute/issues",
|
|
66
|
+
"author": "0xMiiracle"
|
|
67
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pack": "cancel",
|
|
3
|
+
"url": "http://localhost:4173/",
|
|
4
|
+
"app": "demo-store",
|
|
5
|
+
"strict": true,
|
|
6
|
+
"title": "Lumen demo shop: Kane subscribes in two clicks but cannot cancel online; Claude Code adds a cancel button; Kane proves cancelling is as easy as signing up",
|
|
7
|
+
"timeline": [
|
|
8
|
+
{
|
|
9
|
+
"round": 1,
|
|
10
|
+
"step": "kane",
|
|
11
|
+
"pack": "cancel",
|
|
12
|
+
"evidence": "evidence/cancel-1794754943192.evidence",
|
|
13
|
+
"at": "2026-11-15T15:02:23.000Z",
|
|
14
|
+
"verdict": "violation"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"round": 1,
|
|
18
|
+
"step": "agent",
|
|
19
|
+
"agent": "claude-code",
|
|
20
|
+
"summary": "Claude Code replaced the phone-only cancellation path with a cancel button on the account page and a single confirmation (the change is in demo-store/server.js after npm run demo:fix-cancel).",
|
|
21
|
+
"at": "2026-11-15T15:03:23.000Z"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"round": 2,
|
|
25
|
+
"step": "kane",
|
|
26
|
+
"pack": "cancel",
|
|
27
|
+
"evidence": "evidence/cancel-1794755110410.evidence",
|
|
28
|
+
"at": "2026-11-15T15:05:10.000Z",
|
|
29
|
+
"verdict": "pass"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pack": "consent",
|
|
3
|
+
"url": "http://localhost:4173/",
|
|
4
|
+
"app": "demo-store",
|
|
5
|
+
"strict": true,
|
|
6
|
+
"title": "Lumen demo shop: Kane finds trackers after Reject; Claude Code fixes the shop; Kane proves Reject holds and Accept still works",
|
|
7
|
+
"timeline": [
|
|
8
|
+
{
|
|
9
|
+
"round": 1,
|
|
10
|
+
"step": "kane",
|
|
11
|
+
"pack": "consent",
|
|
12
|
+
"evidence": "evidence/consent-1794751413210.evidence",
|
|
13
|
+
"at": "2026-11-15T14:03:33.000Z",
|
|
14
|
+
"verdict": "violation"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"round": 1,
|
|
18
|
+
"step": "agent",
|
|
19
|
+
"agent": "claude-code",
|
|
20
|
+
"summary": "Claude Code changed the shop so its Google and Meta tags load only after Accept (the full change is in demo-store/public/tags.js after npm run demo:fix).",
|
|
21
|
+
"at": "2026-11-15T14:04:33.000Z"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"round": 2,
|
|
25
|
+
"step": "kane",
|
|
26
|
+
"pack": "consent",
|
|
27
|
+
"evidence": "evidence/consent-1794751523524.evidence",
|
|
28
|
+
"at": "2026-11-15T14:05:23.000Z",
|
|
29
|
+
"verdict": "pass"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"round": 2,
|
|
33
|
+
"step": "kane",
|
|
34
|
+
"pack": "consent-accept",
|
|
35
|
+
"evidence": "evidence/consent-accept-1794751588395.evidence",
|
|
36
|
+
"at": "2026-11-15T14:06:28.000Z",
|
|
37
|
+
"verdict": "pass"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pack": "consent",
|
|
3
|
+
"url": "http://localhost:8095/",
|
|
4
|
+
"app": "examples/haxcms",
|
|
5
|
+
"timeline": [
|
|
6
|
+
{
|
|
7
|
+
"round": 1,
|
|
8
|
+
"step": "kane",
|
|
9
|
+
"pack": "consent",
|
|
10
|
+
"verdict": "violation",
|
|
11
|
+
"why": "Kane found no way to refuse cookies, and 4 tracker requests went out before the visitor made any choice.",
|
|
12
|
+
"run": "https://test-manager.lambdatest.com/projects/01M7E4JR87M8V8X3PY5SPEP2E6/test-cases/01M7J46RNFWHQW8EVPD3AM8PRR/dashboard/share/US_OC31M6ZTQSIA8N5D2UW6SDLUD1V5WMLS0Q9V33CP8DK9ZFTTW8GVY30I7BCSRAZW?type=summary&agentView=true&fqdn=summary-page",
|
|
13
|
+
"evidence": "evidence/consent-1794831086682.evidence",
|
|
14
|
+
"credits": 15.6289675,
|
|
15
|
+
"kaneStatus": "passed",
|
|
16
|
+
"kaneSummary": "The requested task was to open a page using the site navigation and reload it.\nNo cookie or analytics consent banner was shown, so no consent action was needed.\nOpened the About page and reloaded it successfully.",
|
|
17
|
+
"at": "2026-11-16T12:11:27.419Z"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"round": 1,
|
|
21
|
+
"step": "agent",
|
|
22
|
+
"agent": "claude-code",
|
|
23
|
+
"summary": "Wrong: `index.html` and `ghpages.html` loaded the Google tag (gtag) as soon as `haxcms-ready` fired, with no consent check and no way to refuse.\n\nChanged: `loadAnalyticsFromManifest()` now loads the tag only if the stored choice is \"granted\", stops if it's \"denied\", and otherwise shows an Accept/Decline banner; Accept saves the choice and loads the tag, Decline saves it and nothing loads. I haven't run it in a browser, and `node --check` can't check JavaScript inside HTML files.",
|
|
24
|
+
"at": "2026-11-16T12:12:29.279Z"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"round": 2,
|
|
28
|
+
"step": "kane",
|
|
29
|
+
"pack": "consent",
|
|
30
|
+
"verdict": "pass",
|
|
31
|
+
"why": "Kane refused cookies and recorded 312 requests; none went to a known tracker and no visitor ID was sent.",
|
|
32
|
+
"run": "https://test-manager.lambdatest.com/projects/01M7E4JR87M8V8X3PY5SPEP2E6/test-cases/01M7J4C28948AHZ3DM9AGNZT4D/dashboard/share/US_LNELOIJCIUVG03DPYTUFL97XGS8QKJF7FC1UYWJVEG60UHRJ9SCTIIEI0HRY0D2X?type=summary&agentView=true&fqdn=summary-page",
|
|
33
|
+
"evidence": "evidence/consent-1794831262757.evidence",
|
|
34
|
+
"credits": 21.581500000000002,
|
|
35
|
+
"kaneStatus": "passed",
|
|
36
|
+
"kaneSummary": "The request was to open a page from the site navigation and then reload it.\nA cookie or analytics consent banner was shown and its decline option was selected before continuing.\nThe About page was opened from the site navigation and then reloaded successfully.",
|
|
37
|
+
"at": "2026-11-16T12:14:23.437Z"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"round": 2,
|
|
41
|
+
"step": "kane",
|
|
42
|
+
"pack": "consent-accept",
|
|
43
|
+
"verdict": "pass",
|
|
44
|
+
"why": "After \"Accept\", the tags loaded as intended (google-analytics.com).",
|
|
45
|
+
"run": "https://test-manager.lambdatest.com/projects/01M7E4JR87M8V8X3PY5SPEP2E6/test-cases/01M7J4FHY38V2DRQVG7T6NQ1PE/dashboard/share/US_SKQSIE0CCUMV7HEA97UPVNVPZGMTTP8K063QWJF9Z0QWE0IXO45FJYD6NSB49YPA?type=summary&agentView=true&fqdn=summary-page",
|
|
46
|
+
"evidence": "evidence/consent-accept-1794831347132.evidence",
|
|
47
|
+
"credits": 12.65289,
|
|
48
|
+
"kaneStatus": "passed",
|
|
49
|
+
"kaneSummary": "Accepted the site\u2019s cookie or analytics consent prompt.\nOpened the About page from the site navigation.\nThe requested navigation was completed successfully.",
|
|
50
|
+
"at": "2026-11-16T12:15:47.769Z"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"credits": 49.8633575,
|
|
54
|
+
"title": "HAXCMS (real open-source template): Kane finds Google Analytics loading with no way to refuse; Claude Code adds Accept/Decline; Kane proves it",
|
|
55
|
+
"strict": true
|
|
56
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pack": "consent",
|
|
3
|
+
"title": "Reject means reject",
|
|
4
|
+
"rule": "When a visitor refuses cookies, no advertising or analytics tracker may load, before the choice or after it, and no visitor ID may be sent to a tracker.",
|
|
5
|
+
"laws": [
|
|
6
|
+
{
|
|
7
|
+
"ref": "ePrivacy Directive 2002/58/EC, Art. 5(3)",
|
|
8
|
+
"gist": "storing or reading non-essential data on a device needs prior consent"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"ref": "GDPR (EU) 2016/679, Art. 4(11) and Art. 7",
|
|
12
|
+
"gist": "consent must be freely given and as easy to withdraw as to give"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"ref": "California Civil Code §1798.120 (CCPA/CPRA)",
|
|
16
|
+
"gist": "consumers may opt out of the sale or sharing of their personal information"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"verdict": "violation",
|
|
20
|
+
"why": "Kane found no way to refuse cookies, and 6 tracker requests went out before the visitor made any choice.",
|
|
21
|
+
"rejectClick": null,
|
|
22
|
+
"trackerRequests": [
|
|
23
|
+
{
|
|
24
|
+
"phase": "unknown",
|
|
25
|
+
"tracker": "googletagmanager.com",
|
|
26
|
+
"url": "https://www.googletagmanager.com/gtag/js",
|
|
27
|
+
"method": "GET",
|
|
28
|
+
"status": 200,
|
|
29
|
+
"count": 3,
|
|
30
|
+
"firstTime": "2026-11-16T17:26:32.867180+00:00",
|
|
31
|
+
"pages": [],
|
|
32
|
+
"ids": [],
|
|
33
|
+
"consentDenied": false,
|
|
34
|
+
"loaderOnly": true,
|
|
35
|
+
"notCounted": true
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"phase": "unknown",
|
|
39
|
+
"tracker": "google-analytics.com",
|
|
40
|
+
"url": "https://www.google-analytics.com/g/collect",
|
|
41
|
+
"method": "POST",
|
|
42
|
+
"status": 204,
|
|
43
|
+
"count": 6,
|
|
44
|
+
"firstTime": "2026-11-16T17:26:34.075287+00:00",
|
|
45
|
+
"pages": [
|
|
46
|
+
"https://cruisinginthewake.com/",
|
|
47
|
+
"https://cruisinginthewake.com/about-us.html"
|
|
48
|
+
],
|
|
49
|
+
"ids": [
|
|
50
|
+
"Google Analytics client ID (_ga cookie): 1321631677.1794849994"
|
|
51
|
+
],
|
|
52
|
+
"consentDenied": false,
|
|
53
|
+
"loaderOnly": false,
|
|
54
|
+
"notCounted": false
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"idsAfterReject": [],
|
|
58
|
+
"trackerCookies": [],
|
|
59
|
+
"bannerShown": null,
|
|
60
|
+
"cookielessPings": 0,
|
|
61
|
+
"totalRequests": 72,
|
|
62
|
+
"evidence": "statute-report\\evidence\\consent-1794850070387.evidence",
|
|
63
|
+
"testUrl": "https://test-manager.lambdatest.com/projects/01M7E4JR87M8V8X3PY5SPEP2E6/test-cases/01M7JPA5RPHYZMWZSRK6A0BQFD/dashboard/share/US_LK5DHP7GHEDPQQ3OGDHG38EX97X3ETPA9F1Q2YDP2QPFOMN4467TF68XSK8LWAD4?type=summary&agentView=true&fqdn=summary-page",
|
|
64
|
+
"credits": 19.957695,
|
|
65
|
+
"kaneStatus": "passed",
|
|
66
|
+
"kaneSummary": "The requested navigation and reload were completed on Cruising in the Wake.\nNo cookie or analytics consent banner was displayed, so no consent action was needed.\nOpened the About Us page from the site navigation and reloaded it successfully."
|
|
67
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# VIOLATION: Reject means reject
|
|
2
|
+
|
|
3
|
+
Kane found no way to refuse cookies, and 6 tracker requests went out before the visitor made any choice.
|
|
4
|
+
|
|
5
|
+
## Rule
|
|
6
|
+
|
|
7
|
+
When a visitor refuses cookies, no advertising or analytics tracker may load, before the choice or after it, and no visitor ID may be sent to a tracker.
|
|
8
|
+
|
|
9
|
+
## Why it matters
|
|
10
|
+
|
|
11
|
+
- **ePrivacy Directive 2002/58/EC, Art. 5(3)**: storing or reading non-essential data on a device needs prior consent
|
|
12
|
+
- **GDPR (EU) 2016/679, Art. 4(11) and Art. 7**: consent must be freely given and as easy to withdraw as to give
|
|
13
|
+
- **California Civil Code §1798.120 (CCPA/CPRA)**: consumers may opt out of the sale or sharing of their personal information
|
|
14
|
+
|
|
15
|
+
_Evidence, not legal advice._
|
|
16
|
+
|
|
17
|
+
## Tracker requests Kane recorded
|
|
18
|
+
|
|
19
|
+
| When | Tracker | Endpoint | Times | Pages | Visitor ID sent |
|
|
20
|
+
|---|---|---|---|---|---|
|
|
21
|
+
| During the visit | googletagmanager.com (tag manager code only, not counted) | GET https://www.googletagmanager.com/gtag/js | 3 | | |
|
|
22
|
+
| During the visit | google-analytics.com | POST https://www.google-analytics.com/g/collect | 6 | https://cruisinginthewake.com/, https://cruisinginthewake.com/about-us.html | Google Analytics client ID (_ga cookie): 1321631677.1794849994 |
|
|
23
|
+
|
|
24
|
+
## How to fix
|
|
25
|
+
|
|
26
|
+
Load each tracker listed above only after the visitor accepts. Before a choice, and after Reject, the tags must not load at all (hiding the banner is not enough). Check the stored choice on every page load, before any tag script is added. Keep the tags working after Accept. If the site has no way to refuse yet, add a small banner with Accept and Decline buttons.
|
|
27
|
+
|
|
28
|
+
## Evidence
|
|
29
|
+
|
|
30
|
+
- Sealed Kane evidence pack: `statute-report\evidence\consent-1794850070387.evidence` (open with `kane-cli evidence serve <path>`)
|
|
31
|
+
- Kane run: https://test-manager.lambdatest.com/projects/01M7E4JR87M8V8X3PY5SPEP2E6/test-cases/01M7JPA5RPHYZMWZSRK6A0BQFD/dashboard/share/US_LK5DHP7GHEDPQQ3OGDHG38EX97X3ETPA9F1Q2YDP2QPFOMN4467TF68XSK8LWAD4?type=summary&agentView=true&fqdn=summary-page
|
|
32
|
+
- Credits used: 20.0
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Kane CLI test file laws/reject_means_reject_test.md on the demo shop, judged by Statute",
|
|
3
|
+
"pack": "consent",
|
|
4
|
+
"url": "https://statute-production.up.railway.app/demo/",
|
|
5
|
+
"strict": true,
|
|
6
|
+
"source": "kane-cli testmd run laws/reject_means_reject_test.md, then statute judge consent --latest",
|
|
7
|
+
"timeline": [
|
|
8
|
+
{
|
|
9
|
+
"round": 1,
|
|
10
|
+
"step": "kane",
|
|
11
|
+
"pack": "consent",
|
|
12
|
+
"verdict": "violation",
|
|
13
|
+
"kaneStatus": "passed",
|
|
14
|
+
"evidence": "evidence/consent-1794935266000.evidence",
|
|
15
|
+
"at": "2026-11-17T17:08:00Z"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pack": "consent",
|
|
3
|
+
"url": "http://localhost:3000",
|
|
4
|
+
"app": "lumen",
|
|
5
|
+
"strict": true,
|
|
6
|
+
"timeline": [
|
|
7
|
+
{
|
|
8
|
+
"round": 1,
|
|
9
|
+
"step": "kane",
|
|
10
|
+
"pack": "consent",
|
|
11
|
+
"verdict": "violation",
|
|
12
|
+
"why": "Kane found no way to refuse cookies, and 2 tracker requests went out before the visitor made any choice.",
|
|
13
|
+
"run": "https://test-manager.lambdatest.com/projects/01M7J0MNACT6FJN3GTSE6TJ9H7/test-cases/01M7N2BJM1MSM0PWFPE42Z1AA8/dashboard/share/US_ZF6RFZJ4SGBRUPV6BB47280WAFRPB1JZKMHSSHA7OD967T24UNC17DDY2XIW1OTN?type=summary&agentView=true&fqdn=summary-page",
|
|
14
|
+
"evidence": "evidence/consent-1794929771799.evidence",
|
|
15
|
+
"credits": 21.215470000000003,
|
|
16
|
+
"kaneStatus": "passed",
|
|
17
|
+
"kaneSummary": "The requested task was to open a page from the site navigation and reload it.\nNo cookie or analytics consent banner was displayed, so no consent action was needed.\nOpened the Subscribe page from the site navigation and reloaded it successfully.",
|
|
18
|
+
"at": "2026-11-17T15:36:11.806Z"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"round": 1,
|
|
22
|
+
"step": "agent",
|
|
23
|
+
"agent": "claude-code",
|
|
24
|
+
"summary": "The Google tag was hardcoded in every page's `<head>` and loaded straight away, so it ran before any choice and the site had no way to decline.\n\nIn `server.js` I removed that static tag and added an Accept/Decline banner. The tag now loads only when the stored choice is \"accepted\", or right after the visitor clicks Accept. On first visit, and after Decline, nothing loads. `node --check server.js` passes, but I haven't run the app or re-run Kane against it.",
|
|
25
|
+
"at": "2026-11-17T15:36:26.104Z"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"round": 2,
|
|
29
|
+
"step": "kane",
|
|
30
|
+
"pack": "consent",
|
|
31
|
+
"verdict": "pass",
|
|
32
|
+
"why": "Kane refused cookies and recorded 11 requests; none went to a known tracker and no visitor ID was sent.",
|
|
33
|
+
"run": "https://test-manager.lambdatest.com/projects/01M7J0MNACT6FJN3GTSE6TJ9H7/test-cases/01M7N2E2388KSXWP5NN25CR5DJ/dashboard/share/US_N5B7G7MY3YK4D6VNH5IVPQFHYK70FXQPBMPNK9KSKF0XWHHSLHZ4HGV8L9YU6O3P?type=summary&agentView=true&fqdn=summary-page",
|
|
34
|
+
"evidence": "evidence/consent-1794929845913.evidence",
|
|
35
|
+
"credits": 19.540259999999996,
|
|
36
|
+
"kaneStatus": "passed",
|
|
37
|
+
"kaneSummary": "You asked to open a page from the site navigation and then reload it.\nA cookie analytics consent banner was shown and its decline option was selected.\nThe Subscribe page was opened from the site navigation and then reloaded.\nThe run completed on the Subscribe page.",
|
|
38
|
+
"at": "2026-11-17T15:37:25.917Z"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"round": 2,
|
|
42
|
+
"step": "kane",
|
|
43
|
+
"pack": "consent-accept",
|
|
44
|
+
"verdict": "pass",
|
|
45
|
+
"why": "After \"Accept\", the tags loaded as intended (google-analytics.com, googletagmanager.com).",
|
|
46
|
+
"run": "https://test-manager.lambdatest.com/projects/01M7J0MNACT6FJN3GTSE6TJ9H7/test-cases/01M7N2FWNXYM77486KWR4BTJ0D/dashboard/share/US_8M7V5571DBUVR8RU6DGHHYIQEE7SUZ7X4GDSL9TLG6DTZ314KQ94F8T818ERXHYD?type=summary&agentView=true&fqdn=summary-page",
|
|
47
|
+
"evidence": "evidence/consent-accept-1794929886905.evidence",
|
|
48
|
+
"credits": 5.206802499999999,
|
|
49
|
+
"kaneStatus": "passed",
|
|
50
|
+
"kaneSummary": "Accepted the site\u2019s cookie or analytics consent prompt.\nOpened the Subscribe page using the site navigation.\nThe requested navigation was completed successfully.",
|
|
51
|
+
"at": "2026-11-17T15:38:06.908Z"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"credits": 45.9625325,
|
|
55
|
+
"title": "Lumen PR #2: a pasted Google tag, fixed and proven in CI",
|
|
56
|
+
"source": "https://github.com/miracle352/lumen/pull/2"
|
|
57
|
+
}
|
|
Binary file
|